function rolloveranimation(){
trace("rollover")
}
function rolloutanimation(){
trace("rollout")
}
then you could simulate both rollover and rollout events calling both functions. Although, one would execute first the other second, depending on which you called first.
Now, lets say the rollover and rollout functions trigger some onEnterFrame event of another movieclip. Then only the second function called would work cause the onEnterFrame triggered in that function would overwrite the previous...or you could just mess up everything depending on your code.
But anyway, if you see, why, even if there was a way, would you like to execute a rollover and rollout event at the same time (in the same button or movieclip), i dont see a good reason. Maybe do that on two different symbols.
I was just seeing if somebody was going to answer my question, seeing the other one i posted was just ignored (either it was a bit technical, or dumber than this one).
oh, but this is interesting though. say you got two movieclips in the same frame in the same timeline, each one executing some code everyframe. (so, you d think both actions were started and called at the same time). How does flash execute the code?
Flash can't execute two things at the exact same time. So one of them must execute first.
On my example (see flash attached) i have two movieclips with the following code:
code:
//var i was initialized before
onClipEvent (enterFrame) {
trace(this._name+" "+this._parent.i);
this._parent.i++;
}
well, if they actually executed at the first time, the output should be:
also, it is interesting that the movie that has a higher depth (the one that is on top of the other one, or in other words, the last one i copied n pasted) executed first.
so, the answer i may be wrong, but my answer would be no, two events can not happen at the same time (in flash) cause flash has to process one thing to go to the next one. right?