Copy link to clipboard
Copied
Hi,
I am using Adobe flash CS5 with Action script 2. In SWF files i using previous and next buttons. While i clicking next button continuously the SWF files getting struck. Is there any solution to get ride off?
Please help me ASAP.
Thanks & Regards
B. Satya Mahesh.
Copy link to clipboard
Copied
Can you explain what "struck" means? Is the SWF online somewhere that we could try it?
Copy link to clipboard
Copied
Sorry for the spelling mistake. It's not struck it is stuck.
There are many SWF Files while i playing from first swf file and then i clicking navigation button to navigate another SWF file. If i clicking the Next Button continuously at that time it getting stuck. It means not navigating to next SWF file.
Sorry, It is not available in the online.
Copy link to clipboard
Copied
When you're in one SWF and you're going to click a button that takes you to another SWF, you may have code like this:
btn.onPress = function(){
gotoOtherSWF();
}
If you managed to click that twice before the gotoOtherSWF() function has run, the second click might call the gotoOtherSWF() function after its already on the way to the next SWF, and that could cause problems.
This might solve the problem:
btn.onPress = function(){
btn.onPress = null;
gotoOtherSWF();
}
I'm installing CS6 so I can test that, but maybe you could think about whether it would help.
Copy link to clipboard
Copied
I did a test and could jump between SWFs without a problem, my work around didn't seem to be needed.
I did get reminded about one thing though, in AS2 if you haven't moved the mouse the next click will be ignored. Does anything change for you if you make sure you're clicking in a different position?
Copy link to clipboard
Copied
Inside the button i using this code to navigate another SWF file. Please go through the below code:
on(release){
stopAllSounds ();
loadMovieNum("s2.swf",1);
}
while i clicking the next button it will loads the next SWF file.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now