View Mode: Normal | Article List
Problems with setInterval and clearInterval in flash
[ 2006-09-21 13:40:12 | Author: liuhuan ]
If setInterval in flash as :Then we can't clear this interval using such as:The only way to clear it is to set the Interval as global , like :...
Read More...
Quote
this.btn.onPress = function() {
var LoadingProcessInterval2 = setInterval(_root, "loadingprocess", 1);
};
var LoadingProcessInterval2 = setInterval(_root, "loadingprocess", 1);
};
Quote
function loadingprocess() {
clearInterval(LoadingProcessInterval2);
}
clearInterval(LoadingProcessInterval2);
}
Quote
this.btn.onPress = function() {
Read More...
Loading ring in flash
[ 2006-09-20 08:43:25 | Author: liuhuan ]
Paste these codes in the first frame .
Source files : Click Here To Download...
Read More...
Source files : Click Here To Download
Quote
function drawRing(target_mc, instance, r1, r2, rgb, doHide) {
var TO_RADIANS = 0.017453;
target_mc[instance] == undefined ? (target_mc.createEmptyMovieClip(instance, target_mc.getNextHighestDepth())) : (target_mc[instance].clear());
with (target_mc[instance]) {
var TO_RADIANS = 0.017453;
target_mc[instance] == undefined ? (target_mc.createEmptyMovieClip(instance, target_mc.getNextHighestDepth())) : (target_mc[instance].clear());
with (target_mc[instance]) {
Read More...