Global variables in flex
Hi all,
How do we create and use global variables in Flex 4.0.
I tried the following
Created the following on mxml file.
public var gbString:String;
and used the following line in another mxml file.
txtTest.text = FlexGlobals.topLevelApplication.gbString;
While running this file, it shows the following error.
ReferenceError: Error #1069: Property gbString not found on dbtest1 and there is no default value.
at dbtest1/button1_clickHandler()
at dbtest1/___dbtest1_Button1_click()
Please help me
Thanks in advance
Ajay
