[mtasc] MTASC problem

Matus Laco leto at host.sk
Thu Nov 3 23:50:10 CET 2005


Hi!

First thanks for MTASC!

I have discovered this problem:
I load an .jpg via loadClip - WORKS FINE if the test() function is called  
 from any place BUT when I call the function form an onRelase function  
definition, the myListener.onLoadComplete is not triggered. The code works  
when compiled with MMC, works not with MTASC.

-----------------------------------------
examle begin
-----------------------------------------

private function someFunction()   // a function of a class
{
	var parentObj:Object = this;  //get reference to the class

	playButtonMovie.onRelease = function()
	{
		parentObj.test();
	};
}

private function test()
{
	var testImage:Image = new Image(imageHolderMovie,imageSrc);
}

-----------------------------------------
example end
-----------------------------------------

Thanks for any clues!

Matus.



More information about the mtasc mailing list