It would make sense if it's doing something custom, like reverse ordering
buttons or fields. But I'd still try to use parameters, or at the very least
simply put some sort of ID in the resource bundle. Putting a class there
seems kinda nasty to me :)

-J

On Fri, May 30, 2008 at 10:29 AM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>    I think you should be able to do something like
>
>
>
> var c:Class = resourceManager.getClass('mybundle", "mykey");
>
> var specialViewCanvas:SpecialViewCanvas = SpecialViewCanvas(new c());
>
>
>
> But why are you putting classes into resource bundles? Do you have, for
> example, one version of this class for English and one for French? If so,
> they can't both be named com.SpecialViewCanvas if they're linked into the
> same app.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Durres76
> *Sent:* Thursday, May 29, 2008 2:17 PM
> *To:* [email protected]
> *Subject:* [flexcoders] ClassReference and resourceBundles
>
>
>
> Hi,
> can you use ClassReference to point to a display object, i.e.
> ClassReference("com.SpecialViewCanvas")?
> i'm trying to do that but then how do you add that as a child of a
> container?
>
> thanks,
> d
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to