|
All, I
am trying to get a classRef from a string variable that contains a class
name. I am trying to use this in the function createSegment in the
accordion control. The function requires you to pass a class name like
mx.containers.Canvas. You can’t pass in a string. In my
instance I have that value stored in a string variable. In java is would
be something like Class.forName(“mx.containers.Canvas”).getInstance().
How do you do the same thing in actionScript. I think it has to do with
Object.RegisterClass() but I haven’t been able to figure that out. I
have also looked at UIObject.createClassObject, I have tried to cast the
value. So any ideas or help would be appreciated. Thanks Jeff
Yahoo! Groups Links
|

