duplicateMovieClip


hi . m trying load jpg image(1.jpg) frm same folder ve fla file throught moviecliploader class. problem once image has been loaded swf cant duplicate it. m trying duplicate onloadinit event listener.
please me . code follows.this code in first frame of root timeline , m working in flash 8.

_root.attachmovie("gr", "mc", 0);
mc._x = 275;
mc._y = 200;
var imgloader:moviecliploader = new moviecliploader();
var imglis:object = new object();
imglis.onloadinit = function(mc:movieclip) {

mc.duplicatemovieclip("zz", 10, { _x : 100 } );

};
imgloader.addlistener(imglis);
imgloader.loadclip("1.jpg", mc);

read entry duplicatemovieclip() carefully. says can't duplicate dynamically loaded content.

you either need load multiple times – should cached , not take long.

or if using flash 8 might able change bitmap , duplicate that.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support