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

E.P. de Boer eddydeboer1 at home.nl
Sat Apr 22 12:43:28 CEST 2006


I get it thanx!



-----Oorspronkelijk bericht-----
Van: haxe-bounces at lists.motion-twin.com
[mailto:haxe-bounces at lists.motion-twin.com]Namens Nicolas Cannasse
Verzonden: zaterdag 22 april 2006 12:32
Aan: The haXe compiler list
Onderwerp: Re: [haXe] Changing "Using HAXE from AS2" into "Using HAXE
from HAXE"


> 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

--
haXe - an open source web programming language
http://haxe.org




More information about the Haxe mailing list