Hi all

I am currently learning AS3, and I seem to be a bit confused on
understanding accessing variables outside of the class it resides in.


for example:
------------------------------------------------
package test {

public class test extends Sprite {

         public var hello = "hello";

}

}
--------------------------------------------
I thought this var will be available to access from within another
class like this:
--------------------------------------------
package test {

public class test2 extends Sprite {

         hello = "hello from another class";

}

}
-----------------------------------------------

But I get :

1120: Access of undefined property hello.

Is anyone kind enough to put me right ?

Thanks


Johnny
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to