Question
AS2 to AS3 help please (hints or anything)
- October 6, 2009
- 1 reply
- 967 views
Hello everyone,
I am a huge noob in flash, I am to change a code from AS2 to AS3, this function (is a display tracking) should send a request for a server, and load the movie after, please tell me how to change it, some alternatives, some hints, but remember, keep the level low.
var EMISJE = "http://server.com/_"+Math.ceil(Math.random()*1000000000)+"/id=234";
_root.MAI_catchEmision = function(url) {
if (_root.MAI_catchEmision_run == undefined || _root.MAI_catchEmision_run == false) {
_root.createEmptyMovieClip("MAI_catchEmision_target_mc",_root.getNextHighestDep th());
_root.MAI_catchEmision_run = true;
_root.MAI_catchEmision_target_mc._x = Stage.width+10;
_root.MAI_catchEmision_target_mc._y = Stage.height+10;
_root.MAI_catchEmision_target_mc.loadMovie(url);
}
}
Thank you very much
