Skip to main content
Inspiring
July 6, 2016
Question

Captivate 9 - Is there a limit to the number of Advanced Action IF statements in SWF?

  • July 6, 2016
  • 1 reply
  • 431 views

Hello,

I have a project called MENU.

On Slide 1 I use On Enter to run some JavaScript to pick up a 'myCallingMenu' variable stored on the hard drive.

I then use the On Exit to run an Advanced Action.

The Advanced action uses IF statements to jump to a slide based on the value of the variable myCallingMenu.

All this works perfectly when I publish as HTML5.

and

All of this worked perfectly published in SWF when I only had 16 IF statements.

I then added a 17th IF statement to jump to a new slide.

Now...

All still works perfectly in HTML5

However, when I publish as SWF, the Jump to Slide 1-16 works, but the Jump to Slide 17 fails.

Remedial actions

I have tried various actions to rectify this problem.

Save As to new file, in new location.

Published to new location.

Published to Folder.

Published to Flash Player 10 / 11.

Deleted the IF and created it again.

Changed the position of the IF in the Advanced Action.

Changed the text I use in the comparison.

But nothing solved the problem.

Question:

Have I done something wrong?

Does the SWF have a limit of 16 IF statements?

Is my file corrupt?

Any thoughts greatly appreciated.

Thank you

Peter

IF numbers 1 - 16 (all works perfectly in HTML5 and SWF)

IF number 17 (Works in HTML5, but fails in SWF)

    This topic has been closed for replies.

    1 reply

    Captiv8r
    Legend
    July 6, 2016

    Hi there

    Is there by chance a Quiz Question between where the user is and the slide they are expecting to visit?

    If so, it could be the Quiz settings are blocking the jump. Look at your quiz settings and see if it's set to required. If so, you won't be able to skip over an unanswered question.

    Cheers... Rick

    Inspiring
    July 6, 2016

    @Captv8r.

    Thank you for the suggestion.

    There are no quiz slides in the project.

    I have tried to decompile the project to see if I can identify the code that the Advanced Action uses to run the IF statements. Unfortunately I could not find anything of any benefit.

    I am sure that it is a Flash problem as the HTML5 works perfectly.

    I will try removing the first 16 IF statements and see if just the single 17th IF works or not.

    Cheers.

    Lilybiri
    Legend
    July 6, 2016

    Can you show the 17th decision?

    On Exit event can sometimes act very weirdly, this may also be the case. The behavior of an advanced action is not always the same in SWF and HTML output. Did you really need so many decisions? Was there no better way?