Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Flash - ActionScript

Simple scope Question

 
Jump to:  
 
Tyler
PostPosted: 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
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

Katalog Kwantowy kasyno online Yahoo Dieta darmowe typy