Haxe NME call function with delay

Posted by Dana on April 1, 2013 in NME |

Haxe Timer has the delay method. haxe.Timer.delay(func , time_ms); The function can’t accept parameters or return anything. If you need one of those things to happen I would suggest using it like this: haxe.Timer.delay(function () { func(arg1, arg2); }, delay);   EDIT theres a new way of doing this. You can use Actuate like this […]


Haxe NME Array indexOf

Posted by Dana on April 1, 2013 in HAXE, NME |

Arrays on Haxe/NME are not very straignt forward to me. So if your are looking for indexOf the Lambda Class is where you will find it. On the Haxe documentation for Array it show only this vars and methods: var length(default,null) : Int function new() : Void function concat( a : Array<T> ) : Array<T> function copy() : Array<T> function filter( f : T -> Bool ) : Array<T> function insert( […]

Copyright © 2012-2018 Code in GoGoLand All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.