Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Load MovieClip at X, Y

Status
Not open for further replies.

alokwww

Technical User
Dec 25, 2002
86
I'm sure you can do this but I have no idea how.

Say I have a Movie Clip that is identified as "MC1"

How can I (using actionscript on a pushbutton) make the Movie Clip appear and play at the coordinates 100,100?

I know I can just put MC1 on another frame and link the button to there but is it possible to make the movie clip appear at those coordinates so I dont have to link it to another frame?

Thanks
-Alok
 
If you have a first blank keyframe with a stop(); action on that movie clip, just position it at 100,100. Then when you want it visible and playing just use:

_root.MC1.gotoAndPlay(2);

Assuming MC1 is also the instance name of the mc on stage and not just it's Library name, and that it is not nested in any other mc, in which case you would have to add the instance names of those "parent" movie clips to your gotoAndPlay action. Regards,

oldman3.gif


Don't worry, if my reply is wrong, BillWatson will clean it up for me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top