Hello, I've have started doing some OOP programming in flash8 AS 2.0 but have ran into some problem, how do you call a function in the class if it looks like this?
Maybe it is totally wrong to do like this or it is something ive missed,Code:class someClass { var mc:MovieClip; public function someClass(mc:MovieClip) { this.mc = mc; this.mc.onPress = function() { testFunction(); // <--- here! } public function testFunction() { trace("Yes!, I was called!"); // <- Call this! } } }
I would be happy if someone could guide me to the right way of doing it!
Thanks