i trouble with listeners on a movieclip. does anybody can help me?


i have been working 2 days , cant make work.......i
am going crazy....

ok have code if can help... appreciate lot.

the thing if compile program works well, if upload
or test on slow connection y doesnt onstart event... show
you:

i have code.

firstroom = random(3);

setpic("sidea_mc", picorder['id'+firstroom+'a'], -1, -1, 0, 0, 5);
_root.loadingfirst++;
setpic("sideb_mc", picorder['id'+firstroom+'b'], -1, -1, 0, 0, 5);
_root.loadingfirst++;


previously have:

//******************************************************************
var listener = new object();
listener.onloaderror = function(target_mc:movieclip, errorcode:string,
httpstatus:number) {
trace(">> loadlistener.onloaderror()");
trace(">> ==========================");
trace(">> errorcode: "+errorcode);
trace(">> httpstatus: "+httpstatus);
};

listener.onloadstart = function(mc:movieclip) {
trace("startloading:"+mc);
};

listener.onloadcomplete = function(mc:movieclip) {
[...]
};

listener.onloadinit = function(mc:movieclip) {
[...]
};

var mcloader:moviecliploader = new moviecliploader();

mcloader.addlistener(this.listener);

function setpic(sprite, fichero:string, startx:number, starty:number,
sizex:number, sizey:number, align) {
mcloader.loadclip(fichero, sprite);
_root.loading_mc._visible = 1;
trace("setpic");
};

/******************************************************

can spot problem????

thanks!!!! ! ! ! !





More discussions in Adobe Animate CC - General


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