Check connection with Zinc
function isConnected():Boolean {var results = mdm.Network.checkConnection();
return results;
}
var hasConnection = isConnected();
mdm.Dialogs.prompt(hasConnection);
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++;
}
| « Earlier | 4 items total | Later » |