flash headz
- Started
- Last post
- 4 Responses
- czrock
Take this function for instance:
fadeclip.onEnterFrame = function(){
if(fade){
this.nextFrame();
}else{
this.prevFrame();
}
}My question is: how do I structure the function so that rather than using the name of the clip to fade it is generic and the names of different clips can be inserted so that the function is used over and over.
-thnx
- kpl0
function blahblah() {
blah();
}fadeclip.onEnterFrame = function () {
blahblah();
}looks kinda clumsy, but thats how I work it.
- czrock0
actually you couldn't have said it better, thanks mang
- czrock0
actually I have this now:
function fade(){
if(fade){
this.nextFrame();
}else{
this.prevFrame();
}
}
fadeclip.onEnterFrame = function(){
fade();
}and it's not working... what the fuck?
- czrock0
I have this on the button:
on(rollOver){
fade = true;
invis.useHandCursor = false;
}
on(rollOut, dragOut){
fade = false;
}