Actionscript help!
Actionscript help!
- Started
- Last post
- 2 Responses
- Milan
How do you avoid using onClipEvent(load) ?
In the Actionscript 2.0 Best Practices article ( http://www.adobe.com/devnet/flas… ) they say to avoid using on() and onClipEvent() handler functions, because it forces you to attach actions directly to a MovieClip. This works fine when replacing this:
on (release) {
// Do something.
}with this:
myMovieClip.onRelease = function() {
// Do something.
};But replacing onClipEvent(load) with myMovieClip.onLoad doesn't seem to work... Anyone know an alternative method?
- ORAZAL0
Instead of:
myClip.on(load){
this._alpha = 50;
}from the _root
myClip._alpha = 50;
- Milan0
Haha, that was pretty simple... Thanks!