Link to home
Start Free TrialLog in
Avatar of rgarimella
rgarimella

asked on

AS3 AttachMovie??

Hi Folks,

I have a button the library and I want to attach it dynamically to the position x:100, y:100. How do we do it in AS3

Any sample is greatly appreciated

Thanks

RG
Avatar of ugeb
ugeb
Flag of United States of America image

Hi,

I'n not exactly sure what you mean by "attach dynamically to the position".  Do you mean move the button to that position?

If so, it's simply:

mybutton.x = 100;
mybutton.y = 100;

where mybutton is your instance name.  If you mean something else, please clarify.

HTH
Gene




Avatar of rgarimella
rgarimella

ASKER

Hi

I have a button in the library named CA

I wanted it to attach it dynamically from the library to the position

In AS2 attachMoveClip was used dont know how to do in AS3

RG
ASKER CERTIFIED SOLUTION
Avatar of ugeb
ugeb
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial