[haXe] Flash instanceof

Luke Schreur luke.schreur at profero.com.au
Wed Aug 1 09:31:40 CEST 2007


Thanks, that seems to do the trick. Where did you copy the info from?

Cheers.


On 01/08/2007, at 5:25 PM, Baluta Cristian wrote:

> //actionscript
> if(obj instanceof
> MovieClip){
> 	var mc:MovieClip= MovieClip
> (obj);
> }
> //haxe
> if(Std.is(obj,
> MovieClip))
> {
> 	var mc:MovieClip= cast(obj,
> MovieClip);
> }
>
>
> On 8/1/07, Luke Schreur < luke.schreur at profero.com.au> wrote:
>
> Hi guys,
>
>
> I'm trying to use the equivalent of the Flash instanceof operator.  
> On this page,  http://www.haxe.org/haxe/api/magic#flash_magic, it  
> states that instanceof should be used as __instanceof__(o, c1).  
> However, I can't seem to be able to find the __instanceof__  
> function. I noticed that __keys__ is in flash.Lib.keys but  
> __instanceof__ is nowhere to be found. Have things changed since  
> this information was created? I'm currently using haxe-1.14-osx.
>
> Any help much appreciated.
>
> Thanks!
>
>
>
>
>
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
>
>
> -- 
> Cristi
> www.ralcr.com
>
> Click here to report this email as spam.
>
> -- 
> haXe - an open source web programming language
> http://haxe.org


LUKE.SCHREUR | WEB DEVELOPER
PROFERO.COM.AU
FIVE WAYS 220A GLENMORE ROAD PADDINGTON NSW 2021
LUKE.SCHREUR at PROFERO.COM.AU | T +61 2 8915 1870



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070801/814cec4e/attachment-0001.htm


More information about the Haxe mailing list