| | | Tyler |  |
| Posted: Sat Jun 07, 2008 2:18 pm Post subject: Simple scope Question |  |
Hi, I'll make this short. I working with classes at the mo but I'm having problems with getting a var from with a function within a class
heres a rough of how the code goes
class constructor(param){ this.var = param;
trace(this.var)//works
this.AnotherVar.onEnterFrame = Myfunc;
function Myfunc(){
trace(this.var)//does not work undefined
} }
Have tried more things than I can remember But no joy, an help is appreciated
Roy |
|