I am new to Flex2. I have a class called test.as. I am trying
to create object in mxml script tag by
var t:test = new test();
If I try to access any the prop of object itz throwing error.
But if I define the same inside a function itz working fine.
Why is it so? I cant use that object outside the function.
Is there any solution or is it like that.