Friday, April 2, 2010

loadMovie issue

I am trying to load an external swf at a specific x%26amp; y pos. from a button. This is the code I am using :

on (release) {gotoAndPlay(4);
loadMovie(''gallery.swf'',1);
xpos=''7'', ypos=''119'';
?

}

The movie loads fine if I remove xpos=''7'', ypos=''119'';

How do I get it to load at that specific position??

loadMovie issue

if you're going to load into a _level you should use loadMovieNum.?in addition, to change the target _level to your desired x,y you need to wait until loading is complete.

you'll probably find it's easier to load into a target movieclip because you don't have to wait until loading is complete to assign the desired x,y:

this.createEmptyMovieClip(''targetMC'',1);

targetMC.loadMovie(''gallery.swf'');

targetMC._x=7;

targetMC._y=119

loadMovie issue

Thank you. U have me on the right track, but..the code moved the swf to the right x and y pos, but the swf seems to be moved incomplete. check out file I sent.

Any thoughts?

that's not the code i suggested.?i explicitly recommended you NOT load into a _level.

use the code i gave.

No comments:

Post a Comment