PDA

View Full Version : getting a Class that extends MovieClip to do something onClipEvent(load)


ashley_coleman
02-24-2004, 07:35 PM
In the example in this link:

http://www.kirupa.com/developer/oop2/AS2OOPInheritance4.htm

on'event' methods of MovieClip are used (what I call handelling methods).

onClipEvent doesnt seem work using the same method.

private function onClipEvent(load):Void {
trace("Hello I loaded!");
}

Is there another way to control actions that a Movie Clip performs when it loads, from its extending class?

Any help much appreciated :)

senocular
02-24-2004, 08:51 PM
its onLoad

also see
http://www.kirupa.com/developer/oop/AS1OOPClassesWithMCs7.htm

from the AS1 tutorial from Kirupa (same applies in as2). Depending on what you're doing, you can probably just use the constructor - the lorem scroller example shows when you might need onLoad.


onClipEvents are completely differnt and only used ON movieclips. 'onEvent' style functions are used for classes.

ashley_coleman
02-24-2004, 08:59 PM
I love this forum and all its flashed up denizens.