SetTimeout : Flash
function testMe() { trace("callback: "+getTimer()+" ms."); } var intervalID:Number = setTimeout(testMe, 1000); // clearTimeout(intervalID) // for clear the timeout
TextSnippets > flash >
Post code snippets. Sort by tags, people, people and tags, etc..
? Earlier | 4 items total | Later ? |
function testMe() { trace("callback: "+getTimer()+" ms."); } var intervalID:Number = setTimeout(testMe, 1000); // clearTimeout(intervalID) // for clear the timeout
var myMC:MovieClip; var i = 1; var pad = 5; while (i<6) { trace(" i : "+i); myMC.duplicateMovieClip("myMC"+i, i); myMC.removeMovieClip(); this["myMC"+i]._x = this["myMC"+(i-1)]._x+(this["myMC"+(i-1)]._width)+pad; this["myMC"+i].onRollOver = function() { trace(this); }; i++; }
var localDomainLC:LocalConneciton = new LocalConnection(); myDomainName = localDomainLC.domain(); trace( "My domain is " + myDomainName );
My domain is example.com
var oImgListener = new Object(); oImgListener.onLoadInit = function(target_mc) { trace(target_mc._name + " load complete"); ... } var mclImg = new MovieClipLoader(); mclImg.addListener(oImgListener); mclImg.loadClip("http://myurl.com/path/to/swf/or/jpg", mcImgLoader);
? Earlier | 4 items total | Later ? |