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!

Loading .swf into main movie

Status
Not open for further replies.

Chrono

Technical User
Nov 19, 2001
1
GB
I have a movie and each "page" needs to be an external .swf file.
I need to create an action for a button so when I click on the button it loads the external .swf in a SET location.
I know the load movie action but it just loads it in the top left corner. I need to set the location it loads it into.
I am using flash 5.
Thanks

-Chrono
 
Rather than just using loadMovie on it's own, you should load the movie in an empty movie clip already positioned, or if you have acces to the .flas of these movies, simply set, in their first frames, their position and/or other properties.

Thus positioning (relative to the top left corner) an external movie 100 pixels from the top and 150 pixels from the left would be done with:

this._y = 100;
this._x = 150;

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top