I am totally confused now. I have NEVER understood listeners and I tried one just now...not working for me.
This is the part that doesn't work...
The problem is that my 'target_mc' is a whole path. '_root.picStage.picHolder.locator' Everytime I put that in I got an error for a missing ) or , . I tried to make a variable for target_mc and then make that equal to my path...
but then nothing happened.
I got the code from an '05 post...
If this won't work...then I have two complete functions to load a pic...then inside one I check to see if pic is loaded...if not reload...if so then resize.
Thanks
"Credit belongs to the man who is actually in the arena - T.Roosevelt
This is the part that doesn't work...
Code:
listener.onLoadInit = function(target_mc:MovieClip) {
The problem is that my 'target_mc' is a whole path. '_root.picStage.picHolder.locator' Everytime I put that in I got an error for a missing ) or , . I tried to make a variable for target_mc and then make that equal to my path...
Code:
var target_mc = _root.picStage.picHolder.locator
I got the code from an '05 post...
Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
listener.onLoadInit = function(target_mc:MovieClip) {
target_mc._width = 400;
target_mc._height = 200;
}
mcl.addListener(listener);
mcl.loadClip(picUrl, myClip);
If this won't work...then I have two complete functions to load a pic...then inside one I check to see if pic is loaded...if not reload...if so then resize.
Thanks
"Credit belongs to the man who is actually in the arena - T.Roosevelt