[F8] Multiple functions for attachMovie
Hi everyone,
I have a movie that runs 30 slides full screen continuously, no buttons.
Each slide is to have a different pan or zoom effect to make the slideshow a bit more interesting. Each slide fades in above the other.
I am just learning Actionscript, and I would like to stick to the Best Practices of coding. I have this so far on a test file:
-----------------------------
//FUNCTIONS
function fadeIn() {
this._alpha += 2;
if (this._alpha<=0) {
this._alpha = 0;
this.onEnterFrame = null;
}
}
//this event will make the MC move
function panLeft() {
this.onEnterFrame = function() {
//move the MC 1 pixels at a time
this._x += 1;
}
}
this.attachMovie("pic1", "pic1", getNextHighestDepth, _alpha=100)
this.onEnterFrame = (panLeft);
-------------------------------
I would like to add the fadeIn function to the panLeft function, but so far I've only been able to do one OR the other. I'm going this root so I can mix and match effects to the different slides easily, based on the whims of the client.
A nudge in the right direction would be appreciated. Thank you all for your time!