Flash, LoadMovie, Button States
- Started
- Last post
- 9 Responses
- pushme
I'm trying to load a bunch of thumbnails into movieclips (for an action not defined below). Then assigning onRollOver & onPress methods to those thumbnails. Loading thumbnails is not problem and a test on the rollover works but the attachMovie does not. Any insight is appreciated.
stop();
myMCL = new MovieClipLoader(); //define MovieClipLoader
myListener = new Object(); //define listener
myListener.onLoadComplete = function(targetMC){ //set the onComplete function on listener
targetMC.onRollOver = function() { //define onRollOver within function
debug.text += newline + "targetMC = " + targetMC._name; //trace to test it's working
this.attachMovie("rolloverimg...
this.rolloverimg1._x = 80;
myMCL.loadClip ("rollover.jpg", this.rolloverimg1);
}
}
function initClips(){
for (i=1; i
- ganon0
pvn doesnt like "less than" and "greater than" signs....
- ganon0
im not sure i understand, that attachMovie works ok....
- pushme0
are you saying your not sure if attachMovie will work w/ the targetMC.onRollOver function?
- ganon0
i am saying from your post i understood that everything works except for attachMovie, the code looked good, i tested the attachMovie and it works fine....
did i misunderstand...?
- pushme0
The attachMovie at the bottom works but the on w/in the rollover function doesn't. You got it to work?
- pushme0
*bump
- unfittoprint0
I think you should either create multiple listners /multiple movieloader objects
OR
create a functon within the listener to load the next movie only after the previous was loaded and its onPress event initiated.
- pushme0
unfit...you answer or turn me to the solution everytime. thx.