Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Swf files become struck.

New Here ,
Jun 29, 2017 Jun 29, 2017

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.

275
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 29, 2017 Jun 29, 2017

Can you explain what "struck" means? Is the SWF online somewhere that we could try it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 29, 2017 Jun 29, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 29, 2017 Jun 29, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 29, 2017 Jun 29, 2017

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 29, 2017 Jun 29, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines