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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load movie

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
I'm trying to load a swf using

on (release) {
loadMovie ("backgroundone.swf", "bg");
}


How can I align the swf to the center of the bg box instead of the bottom right corner?
 

hi,
If you want to load a swf to an exact place you should make a new empty movieclip and put it somewhere on stage and give it an instancename.
If you load a swf into that movie clip it will be with it's upper left corner in the centerspot of that empty movieclip.

For example, to load your movie into an empty movieclip, with instancename targetclip, which is on level 4 your code would look like this:


loadmovie ("backgroundone.swf", "_root.level4.targetclip");

regards, goaganesha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top