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 

 

Reply via email to