no that is just the usual way of doing it.. I need to be able to dynamically upcast..
like: vart = new _global['somepackage']['someClass'](); something like that.. i can't remeber how to do that.. with prototypes or _global.. On 8/23/06, Hans Wichman <[EMAIL PROTECTED]> wrote:
Hi, not sure if this is what you mean but: import com.somepackage.HomeView; var bv:BasicView = getSomeBasicView(); var newHomeViewHomeView =HomeView( bv ); grtz JC On 8/23/06, aaron smith <[EMAIL PROTECTED]> wrote: > > How do I cast to something that is in the _global tree. by that i mean. > cast > referencing like this: _global.com.somepackage.SomeClass( var ) or is the > _prototype chain? I can't remember... > > the situation is this, I have a BasicView class. that needs to dynamically > be upcast to other views that would potentially extend it, say a HomeView > that extends BasicView.. > > say like this: > > var bv:BasicView = getSomeBasicView(); > var newHomeView:_global.com.somepackage.HomeView = > _global.com.somepackage.HomeView( bv ); > > I'm pretty sure it's possible, don't remember how to do it... > > thanks.. > _______________________________________________ > [email protected] > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

