class myclass extends MovieClip { public function myclass() { trace("myclass - constructor"); }; private function onLoad() :Void { trace("On Load from class"); }; } class </strong>myclass extends MovieClip { public function myclass() { trace("myclass - constructor"); }; private function onLoad() :Void { trace("On Load from class"); }; }in flash ive linked that class with some movie clip (this is the way you can extend movie clips in flash ;)). after putting clip on stage ive added it an action code 2:
onClipEvent (load) { trace("loading from IDE"); }and while running this script we can see that : I. code defined for object already placed on stage does not override function defined in class implementation ( that is both - code 1 and code 2 will be invoked ) II. code 2 will be invoked as the first one afterwards code 1 -- a friend of mine said : "well, its normal behavior ! didnt you know that ?!?" ;/ i didnt ... -- BUT... lets suppose ive placed my object in first frame and called it : tst. if i write, also in first frame, code shown as code 3 i will override onLoad function defined in class implementation. and new onLoad handler will also be invoked after code 2: code 3:
tst.onLoad = function() { trace("OnLoad from IDE - onLoad<-function"); };- i think that what flash do is that it treads onClipEvent as if it was method implemented for MovieClip. in my class, MovieClips descendant, flash modifies onLoad method adding
super.onLoad() code. this tip works also for other events that can movieclip handle.
3 comments
to: Admin - If You want to delete your site from my spam list, please visit this site for instructions: stopspam.idoo.com
to: Admin - If You want to delete your site from my spam list, please sent url of your domain to my emai: stop.web.spam@gmail.com
And I will remove your site from my base within 24 hours
webmastegz
PS. As the previous address of an e-mail has been removed also all letters on it have been lost I is compelled to make this dispatch once again.
PS2. To send url your site on an e-mail stop.web.spam@gmail.com is a unique way to avoid a spam from me. To write abuses to the various "stop spam" sites - it is useless.
PS3. Your addresses of an e-mail are not necessary to me, you can create an e-mail through free service and send me yours url through this e-mail
PS4. sorry for my bad English :)
to: Admin - If You want to delete your site from my spam list, please sent url of your domain to my e-mail: stop.spam.today@gmail.com
And I will remove your site from my base within 24 hours
webmastegz