[haXe] Flash instanceof

Baluta Cristian cristi.baluta at gmail.com
Wed Aug 1 09:36:50 CEST 2007


from comparisons between as2 and haxe: http://haxe.org/tutos/as2_compare

On 8/1/07, Luke Schreur <luke.schreur at profero.com.au> wrote:
>
> 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:
>
> //actionscriptif(obj instanceof
> MovieClip){
> 	var mc:MovieClip= MovieClip
> (obj);}
>
> //haxeif(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<https://www.mailcontrol.com/sr/SMnPic17dEq9GYgyQqP3uGoD1FOnwoVjyVShkjDs8NhYfN9sqrC923hNzxQfyz8JcECW0ENgQDt2!+PwBmTW6WGHvA2dNyRxlKAWYTbv!n1oDIOvA31bDq2sK0xplrDhQvgWpUDwPlAapGiQsuwZI34jmWKXKwKpzs8Bz4bCiSJEemb4gNfZkUle6PKsgwTs58Lty0gD5jvw0QB7kz1lczDI0LxGmBaT>to report this email as spam.
> --
> haXe - an open source web programming language
> http://haxe.org
>
>
>  [image: PROFERO]LUKE.SCHREUR | WEB DEVELOPER*
> *PROFERO.COM.AU <http://www.profero.com.au/>
> FIVE WAYS 220A GLENMORE ROAD PADDINGTON NSW 2021
> LUKE.SCHREUR at PROFERO.COM.AU <luke.schreur at profero.com.au> | T +61 2 8915
> 1870
>
>
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>



-- 
Cristi
www.ralcr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070801/e4754975/attachment.htm


More information about the Haxe mailing list