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

load a .swf into level 2 at a specific x and y point?

Status
Not open for further replies.

hezaa

Technical User
Nov 30, 2005
2
0
0
US
Is it possible to load a .swf at a specific x and y point ? The movie I am loading is loading onto level 2, but I would like it to be positioned at x=30 and y=40.

Thanks!

on(rollOver) {
loadMovie("filemenuonly.swf",2)
}
 
The correct syntax would be...

on(rollOver) {
loadMovieNum("filemenuonly.swf",2)
}

You can't really & easily position a movie on another level, until it's fully loaded, so the easiest is really to pre-position the "to be loaded" movie itself by adding the following in it's own first frame...

Thus on the filemenuonly.fla's first frame...

this._x=30;
this._y=40;

Regards. Affiliate Program - Web Hosting - Web Design

03/13/05 -> OLDNEWBIE VS FLASHK
 
load it into a movieclip, like you would a jpeg, then move the movieclip to the correct position.

nb - loadMovie, loadMovieNum and layers in general are out-dataed now. they still work, but there are better ways of doing all these things
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top