In actionscript, why is my static class member variable not the same when accessed from different pa

Posted by Ryan M on Stack Overflow See other posts from Stack Overflow or by Ryan M
Published on 2010-04-05T02:10:32Z Indexed on 2010/04/05 2:13 UTC
Read the original article Hit count: 239

Filed under:
|
|
|
|

I have an actionscript class with a static member variable defined.

public class A
{
     public static var x:int;
}

When I try to access it from different parts in my code I don't get the same value in each spot.

A.x 

I am accessing the variable in different modules that are loaded, so they are all in their own separate .swf file. Could this by why?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about swf