mike
Casual Client
- Joined
- Feb 4, 2012
Re: 22 Feb 14 - Mod.fla template v0.96.4
Hey guys, I'd like to make something a little bit different but I'm kinda blocked by my lack of code knowledge so I thought maybe you could provide help.
What I'd like to achieve is switching between a layer's frames using mouse clicks. I know it can be done since Calla did it for his mass effect's tali import link
I guess code would look something like that :
What I have in mind is a revamp of my supergirl import with normal and torn costumes. If possible I'd like a single mod rather than two different so thanks if someone can provide help.
Hey guys, I'd like to make something a little bit different but I'm kinda blocked by my lack of code knowledge so I thought maybe you could provide help.
What I'd like to achieve is switching between a layer's frames using mouse clicks. I know it can be done since Calla did it for his mass effect's tali import link
I guess code would look something like that :
Code:
chest.stop()
chest.addEventListener(MouseEvent.CLICK,dothething);
main.unloadMod();
}
function dothething(){
if(frame != lastframedrawn){
gotoandstop(currentframe + 1);
}
else{
gotoAndStop(frame 0);
}
}
What I have in mind is a revamp of my supergirl import with normal and torn costumes. If possible I'd like a single mod rather than two different so thanks if someone can provide help.