View Full Version : flash cant duplicate a created MC w/ image loaded into it?
eron19
May 31st, 2003, 12:13 AM
is it not possible to duplicate a created movieclip with a jpg loaded into it?
catreya
May 31st, 2003, 02:41 AM
can u elaborate more on what u want to do? I suspect you could.
eron19
May 31st, 2003, 07:29 AM
when u use.......
_root.createEmptyMovieClip( yada yada );
then can u go duplicateMovieClip( yada yada );
no right? b/c im having a reaaaal hard time w/it....
Jubba
May 31st, 2003, 11:36 AM
yeah, I do it all the time. Is the image loaded dynamically?
catreya
May 31st, 2003, 11:38 AM
i have written the script from the top of my head and I cant test it out now.
_root.createEmptyMovieClip("movieloader",1);
/* _root.movieloader._width = 200;
_root.movieloader._height = 200;*/
_root.movieloader._x = 228;
_root.movieloader._y = 150;
_root.movieloader._alpha = 100;
_root.movieloader.loadMovie("movie/jpg");
_root.movieloader.dupicateMovieClip("newname",2);
It should work. Give it a try. If not then perhaps the some script expert out here can help!
Jubba
May 31st, 2003, 11:39 AM
I don't think the loaded image will transfer over to the new clip... I think you'll need to call the jpg file into the new MC for it tow ork correctly, but don't quote me on that...
catreya
May 31st, 2003, 11:45 AM
if what jubba says is right, then you might need to add one last line:
_root.newname.loadMovie("movie/jpg",2);
That should do the trick.
Let me know if it worked.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.