Re: [Flashcoders] Selection.getFocus()

2006-10-19 Thread Michael Stuhr
Lieven Cardoen schrieb: FlashCoders, Selection.getFocus() gives back a String. Is there a way to get the Object? eval() micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Selection.getFocus()

2006-10-19 Thread Zárate
Exactly. I was amazed too first time I saw it. As micha said, you can do getFocusObject():MovieClip{ eval(Selection.getFocus()); } Any ideas why is working that way? Cheers On 10/19/06, Michael Stuhr [EMAIL PROTECTED] wrote: Lieven Cardoen schrieb: FlashCoders, Selection.getFocus()

Re: [Flashcoders] Selection.getFocus()

2006-10-19 Thread David Buff
Hi I did something like this before... You can do a recursive method parsing the path like this: function extractObject(aPath:String):Object { return extractObjectRecurs(this, aPath.split(.), 0); } // end extractRunTime function

Re: [Flashcoders] Selection.getFocus()

2006-10-19 Thread David Buff
: [Flashcoders] Selection.getFocus() Lieven Cardoen schrieb: FlashCoders, Selection.getFocus() gives back a String. Is there a way to get the Object? eval() micha ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search

Re: [Flashcoders] Selection.getFocus()

2006-10-19 Thread Muzak
, October 19, 2006 7:10 PM Subject: Re: [Flashcoders] Selection.getFocus() Hi again... eval works but it's a old fonction... I'm not sure it works good in AS 2.0 David Buff ___ Flashcoders@chattyfig.figleaf.com To change your subscription options

RE: [Flashcoders] Selection.getFocus()

2006-10-19 Thread Steven Sacks | BLITZ
eval() is not deprecated. You're right. It's more than deprecated. It's been removed altogether in the next version of Flash. http://livedocs.macromedia.com/flex/2/langref/migration.html Global Functions eval() Removed No screen name said on Jul 22, 2006 at 7:59 AM : Why was eval()