all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

Translation ?


Translation ? ThePainter242
5/31/2004 7:11:24 PM
flash actionscript: Hi,
I have just upgraded to Flash MX 2004 from Flash MX, I dont want to learn
actionscript as a whole but I learn the bits I need

when I come across the need for them.
There are a few peices of script I have used in the passed in MX and I would
like the equivalent in ActionScript 2.

The first makes a movie pause on a frame:

stop();
myInterval=setInterval(pausePlay,3000)
function pausePlay(){play();clearInterval(myInterval);}


The next handles a preloader:

if(_framesLoaded>=_totalFrames){gotoAndPlay("Main",1);
}


The last is a get url:

on(release){
getURL("nextPage.HTML");
}


I would like someone to give me these in the right syntax for ActionScript 2,
but just as simple as they are, I dont want a

totally different more complicated method unless it is totally necessary.
Thanks:-)
Re: Translation ? kglad
5/31/2004 7:42:36 PM
pause movieclip containing this code:

stop();
myInterval=setInterval(pausePlay,3000) // pauses for 3000ms=3seconds.
function pausePlay(){
play();
clearInterval(myInterval);
}

preload movieclip containing this code:

stop();
preloadI=setInterval(preloadF,100);
function preloadF(){
if(_framesloaded>=_totalframes){
gotoAndPlay("main_scene_frame_1"); // don't use scenes to navigate - use
frame labels
}
}

for a getURL attached to a button opening a new window your code needs no
changes.
Re: Translation ? ThePainter242
5/31/2004 8:09:18 PM
Re: Translation ? kglad
5/31/2004 11:40:41 PM
AddThis Social Bookmark Button