[haXe] Flash instanceof
Baluta Cristian
cristi.baluta at gmail.com
Wed Aug 1 09:25:35 CEST 2007
//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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070801/132819b2/attachment.htm
More information about the Haxe
mailing list