Nice! But it's not working for me yet. The "in" expression doesn't succeed.
I'll keep digging through the reflection docs, but if you have any
refinements, please pass them along.

On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith <gosm...@adobe.com> wrote:

>
>
>  Try this:
>
>
>
> if ("load" in fileReference)
>
>     fileReference["load"]();
>
>
>
> That should compile against the Player 9 version of playerglobal.swc, but,
> in Player 10, detect that the method exists and call it by name.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Richard Rodseth
> *Sent:* Wednesday, July 22, 2009 6:12 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] FileReference.load()
>
>
>
>
>
> I was hoping to provide an optional feature that requires reading a local
> file if Player 10 is available, without requiring 10 for the whole
> application.
>
> But it appears that I can't compile code that uses FileReference.load()
> without setting the target player in FlexBuilder.
>
> Anyone dealt with this situation?
>
>   
>

Reply via email to