What is you want to know?
 
BTW, take a look at the UIComponentDescriptor class.
 
Are you planning to link into your SWF all possible components that your
app might want to instantiate? Or are you going to put them into modules
and load them as needed?
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of kevininnewyork
Sent: Monday, November 12, 2007 7:50 AM
To: [email protected]
Subject: [flexcoders] Casting Objects at Runtime (possible evolution of
eval()?)



Hello everyone, Kevin here from San Francisco building an application
that is populated at runtime (i.e., no MXML) and whose Classes are not
known at authoring time. Here is what I am trying to do:

var VM:ViewManager=new ViewManager();
VM.addDisplayObject(
"myCanv",
new Canvas(),
{x:70,
y:70,
width:200,
height:50})
VM.addDisplayObject(
"myLabel",
new Label(),
{x:70,
y:70,
width:200,
height:50})

In my ViewManager, which I am extending from Sprite, but could be as
primitive as an EventDispatcher for my uses with it, I'm trying to
abstract whatever Components may be rendered at runtime.

Thanks for any pointers,

Oiled up in San Francisco



 

Reply via email to