[flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Amy
--- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: Look up the manual on describeType. Note that local variables type isn't possible to get at runtime. I've learned over time that if I say It's not possible to... someone else will come back with how to do it. So I

Re: [flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Oleg Sivokon
Nope, sorry Amy, it's not possible to get the type of a local variable, you can only get the type of a value it references. Example: function foo():void { var bar:IBitmapDrawable = new BitmapData(); } you can only know what the type of the value is ( BitmapData ) the type of the bar variable

RE: [flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Gordon Smith
[mailto:flexcod...@yahoogroups.com] On Behalf Of Oleg Sivokon Sent: Wednesday, June 16, 2010 4:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: how to access action script variable data type in mxml Nope, sorry Amy, it's not possible to get the type of a local variable, you can only get

Re: [flexcoders] Re: how to access action script variable data type in mxml

2010-06-16 Thread Oleg Sivokon
Well, it's not exactly like that... the type of the local variable is checked at compile time. Later on local variables kind of don't exist, that is the bytecode doesn't have a concept of get local function variable strict because what's used is the address. I.e. take for example something as