[mtasc] Version 8. My app doesn´t work with version 8 switch.
Gregorio Buldain Zozaya
gregorio at buldain.com
Thu Nov 3 15:55:01 CET 2005
Excuse me first. (and sorry then i supose). This simple code is an extract from
my application to fix the problem.
It works without -version 8. ( ie browser with and without housed/embedded in
html page).
It works with -version 8 ie browser not housed/embedded in html page.
it does not work with -version 8 housed/embedded in html page.
class Test extends MovieClip
{
var lv:LoadVars;
var iTimer:Number;
function Test(target)
{
iTimer=1234;
_root.createTextField( "elTexto", _root.getNextHighestDepth(), 150, 10, 200,
40);
_root.elTexto.text = "nill";
lv = new LoadVars();
lv.onData = function(str)
{
Debug.write("str: " + str);
};
lv.load("http://localhost:8000");
}
function MiTimer(yo:Test) {
yo.iTimer++;
_root.elTexto.text = yo.iTimer;
}
public static function main ()
{
var test:Test = new Test( _root );
setInterval(test.MiTimer, 1000,test); // en miliseconds
}
}
More information about the mtasc
mailing list