-
Loading mc from library issue
i currently have and an empty mc that i am loading external swf into by a button.
i am wanting to load an mc from my library on a frame from the timeline into this empty mc. i tried using the same type of code from the button but cant get it working right. basically i want the loaded mc from the library to be replaced by other external mc.
here is the code on the button which works fine for the external swfs.
on (press) {
_root.movieloader._xscale = 100;
_root.movieloader._yscale = 100;
_root.movieloader._x = 325;
_root.movieloader._y = 180;
loadMovie("mc.swf", "/movieloader");
}
on the frame i tried this
_root.movieloader._xscale = 100;
_root.movieloader._yscale = 100;
_root.movieloader._x = 325;
_root.movieloader._y = 180;
_root.attachMovie("Description_Text","movieloader" );
it loads if i add a depth to it
_root.attachMovie("Description_Text","movieloader" ,0);
but it doesnt get replaced by the other mc and its also placed in the upper left corner which i dont want.
can someone help with this?
-
You're attaching to _root when you use _root.attachMovie()
If you want to attach to a different timeline, write its instance name as prefix:
otherMC.attachMovie()
You should read the documentation on attachMovie()
gparis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|