[haXe] Changing "Using HAXE from AS2" into "Using HAXE from HAXE"

Nicolas Cannasse ncannasse at motion-twin.com
Sat Apr 22 12:32:17 CEST 2006


> Thanks for your comments on the code Nicolas it made a lot of things clear,
> 
> Sorry for bothering you again so soon, but I'm stuck at the following issue:
> 
> The dynamic creation of properties for the MovieClipLoader doesn't seem to
> work in the code.
> When trying to create the onLoadInit function by assigning onInit, the
> compiler comes with the following message:
> 
> C:\Haxe\Projects\Haxe2Haxe>as2test.hxml
> AS2Test.hx:10: characters 3-17 : flash.MovieClipLoader have no field
> onLoadInit

That's exact. Some fields are missing in MCL declaration.
Edit haxe/std/flash/MovieClipLoader.hx and add the following to class
declaration :

	function onLoadInit(target:MovieClip) : Void;
	function onLoadStart(target:MovieClip) : Void;
	function onLoadProgress(target:MovieClip, loaded : Int, total : Int) :
Void;
	function onLoadComplete(target:MovieClip) : Void;
	function onLoadError(target:MovieClip, error:String) : Void;


Nicolas



More information about the Haxe mailing list