Aaron,
 What are you trying to do..?

 There's no point in dynamically casting. Casting is just used to
tell the compiler that you know what you're doing.

For example:

class A
{
 function doSomething(){/**/}
}

class B extends A
{
 function doSomethingElse(){/**/}
}

var someObject:A=new B();
someObject.doSomethingElse(); // Wouldn't compile.
var someCastObject:B=B(someObject);
someCastObject.doSomethingElse(); // Would compile.

If you don't know what types you're dealing with 'til runtime - i.e.
you're working with dynamic types - you should never hit a situation
where you need this kind of casting.

Can you give an example of what you're trying to do..?

Ian


On 8/23/06, aaron smith <[EMAIL PROTECTED]> wrote:
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..

_______________________________________________
[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

Reply via email to