Link to home
Start Free TrialLog in
Avatar of deross
deross

asked on

Flex 3 Variable

How can I declare a variable to hold any type of data. ie. integer of text?
ASKER CERTIFIED SOLUTION
Avatar of deepanjandas
deepanjandas
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zzynx
var anyType : Object;

Further on - when you know the type for sure - you can cast it to the right type:

var myString : String = anyType as String;
Avatar of deross
deross

ASKER

Thank you.  Worked great.

Don