Playing a SWF from an Assessment "answer" button

Hello , I want to do something I thought was Easy :-) I have a Multiple Choice Assessment and want to play separate SWF files ( or start/stop at a various FRAMEs within a single Flash file) for each "answer" that is selected. The SWFs will serve as feedback for each MC question selection.



When I use the Flash Command, "GoTo Frame", It will go to the specified Frame in the SWF but I cannot get it to play. If I use separate SWFs for each button and just use the "PLAY" function, only the 1st SWF selected will stay on screen and the others would play behind it. I would like to have it where if you click one button and the SWF ( Or start from FRAME X) is playing , if you click another button it will stop the first SWF and Play the Second SWF ( or FRAME start point)



Any help would be much appreciated as I am headed into a deadline and thought this would be easy to do! :confused:

Comments

  • ssneg
    ssneg Community Member Posts: 1,456 ♪ Opening Act ♪
    What happens is you add "play()" in the target frame? Or what if you run Lectora's flash command "Play" after the GotoFrame command?
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    Thanks for the quick reply!



    When I use the Lectora "Flash Command" Go To Frame, ( i.e. Frame 5). I have the Play() command in the Keyframe of Frame 5 in Flash. It does not play. Lectora will send it to the correct Frame but I cannot get it to play once that happens.



    It will play if you have the regular "Play" command to play the SWF. The problem with that is that I have 3-4 answers and only the first answer selected would show - visible and the others would play under it. It would save space also if I could just have one SWF and have Lectora access the appropriate frames.



    I just need to play Frame segment or movie clip one each Answer is selected. And if you select on before the first is complete it will stop it and start the current one.



    Thanks!
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    How would your Run Lectora's Play Command after the Goto Frame command. I only see one setting in the Answer " On Selection" screen.
  • timk
    timk Community Member Posts: 1,245 ✭ Legend ✭
    Put both your actions into a group and use the one setting to run that action group.



    Tim
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    Hmmm how do you create a "Group" and then call it from the Assessment button " On Selection" setting.



    Thanks for your help Tim!
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    Ok I see how to create a Group and put in Actions and access the group from the Selection Buttons.



    1. Create a Group ( Group 1 )

    2. Put in Action - Flash Command > Go To Frame

    3. Put in Action - Flash Command > Play



    4. In the "On Select/Change" setting I have " Run Action Group" and selected Group 1.



    Upon selecting the Answer Button, it will play the SWF but ignores the Goto Frame command.



    Any ideas?
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    I think it is working now. Will keep testing to see.



    Thanks for the tip Tim! Have a great evening!
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    OK another issue.... everything works fine until I publish to HTML to test it out. It works in the F11 Preview mode but not when you publish to HTML. The SWF does not play at all when selecting the Answers.



    Any ideas?
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    It works fine while previewing it in Lectora.



    It has 3 different looks on 3 browsers ( Chrome, IE. Firefox) and does not work at all. Am I missing something when I publish to HTML. I have never seen this before. Usually when it works in the Lectora Preview mode it will work on all 3 browsers.



    Any ideas??
  • timk
    timk Community Member Posts: 1,245 ✭ Legend ✭
    Sometimes Flash actions won't work properly when opening the page in a browser from the local machine. That's due to some security settings of the Adobe Flash Player. You can either change the security settings on the Adobe website to trust the folder that contains the pages or upload your course to a server. Those issues don't come up online.



    It may be an idea as well to set a short delay on the "Play" action to make sure, that the gotoframe action has been done.



    Tim



    P.S. Just tested to "go to frame" and "Play" successfully. You should check these security settings...
  • eprenticecentrax-com
    eprenticecentrax-com Community Member Posts: 12
    That was the TICKET! YOU DA MAN!





    Thanks for the guidance Tim! I totally forgot about that! You usually get the "Flash Security" warning pop-up and that does not happen when working locally.



    When I moved it to the staging server it worked fine on the browsers.



    Have a Blessed day and weekend Tim! :cool: