PDA

View Full Version : loading movie through ascript in MX



kyletrip
March 17th, 2003, 02:54 PM
Hey all, I'm kind of new and pretty stuck...I created a movie in my library, and i want to load it using actionscript. is loadMovie(); just for external SWF files?! if it is, what command do i use??
Thanks,
Kyle

lava
March 17th, 2003, 02:58 PM
haha... what's up dude...

make sure you're using linkage... when you're looking at the movie properties, select linkage, and then give it a name..

... you can also use attachMovie();
_raf

kyletrip
March 17th, 2003, 03:25 PM
im tryin to use the attatchMovie() command... i checked the linkage, exported for actionscript with identifier main...
on a button press i want it to load the movie so i do this:

on(release) {
attatchmovie("main");
}
right???
i HAVE to be retarded this week....

lava
March 17th, 2003, 03:28 PM
attactmovie is like this

movie.attachMovie("linkagename", "newname", level)

kyletrip
March 17th, 2003, 03:28 PM
ok i got it to load, but now i cant position it...cant i use :
main._x= blah;
main._y = bleh;
??

lava
March 17th, 2003, 03:32 PM
yeah.... just make sure you have the right path for the movie...

like _root.newmovie._x= whatever

or _root.container.newmovie._x = whatever