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:-)
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.
Don't see what you're looking for? Try a search.
|