Skip to main content
satyamaheshb90976265
Participating Frequently
June 29, 2017
Question

Swf files become struck.

  • June 29, 2017
  • 1 reply
  • 302 views

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.

    This topic has been closed for replies.

    1 reply

    Colin Holgate
    Inspiring
    June 29, 2017

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

    satyamaheshb90976265
    Participating Frequently
    June 30, 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.

    Colin Holgate
    Inspiring
    June 30, 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.