Importing flash as3 animation: stop commands are ignored in Captivate

I have created a Flash animation in Flash CS5 which has some interactive buttons to go to frames and then stop. The problem is Captivate seems to ignore the stop commands.
When I preview in Flash it works fine, when I preview in Captivate it just keeps on going.
I can't use a click box because I need the user to click one of my interactive buttons to then continue to the nect part of the animation.
I am not a programmer and have just started using Adobe CS5 master edition.
I can add bits of actionscript provided I know how and where :-)
all help for a a dumbo newbie appreciated.....

If your Flash animations are published as AS3, make sure your Captivate movie is also set to publish as AS3 in the Preferences.
Does that do anything?

Similar Messages

  • Troubles importing Flash 10 Animation with 3D Transform

    I am looking for any workaround/experiences for importing a Flash 10 animation with 3D transforms. Currently, doing this will wig out Captivate 4 and break the embedded animation in all sorts of ways. AS3 support in Captivate is turned on and the same animation will load and play correctly if the 3D transform is removed. All other Flash 10/AS3 possibilites work including motiosn graphs and filters.
    I find the 3D transform option of Flash CS4 to be one of the most powerful features ever introduced in Flash and would allow some incredible breakthrough design possibilities for my Captivate projects, if it would just support it! Any experiences with this issue welcomed. A bug report has been submitted also, but looking for a quicker remedy.

    Problem Resolved!
    I got this tip from Vikram (Adobe Support)
    1. Open your project having Flash Player 10 animations involving 3D transforms.
    2. Click the Edit menu and select Preferences.
    3. Select "Publish settings" under the "Project" section.
    4. Check "Animations" option under the "Externalize resources" section.
    5. Press OK.
    6. Now click the publish button.
    7. In the publish dialog, select Flash Player 10 from the "Flash Player version:" drop down.
    8. Click publish.
    (F4 preview may not work, so use preview in browser)
    Also, you may need to be wary of embedded scripted symbols as they may loose reference to the parent symbol after being embedded in yoru your CP4 project containing 3D transforms. My advice here is to try to script using as much object oriented js as possible in the main timeframe.
    I am using a combination of localConnect and ExternalInterface functions to control the 3D animation from captivate quiz buttons. This process adds a whole new level of interactivity and visual interest to your captivates!

  • Problem importing Flash .swf animation

    When I tried to import a Flash CS4 animation into captivate,
    i get a message saying something about "actionscript references
    root" and the animation might not play back correctly. When i
    publish the captivate project, the animation just loops
    continously. Any ways around this?

    > When I tried to import a Flash CS4 animation into
    captivate, i get a
    > message
    > saying something about "actionscript references root"
    and the animation
    > might
    > not play back correctly. When i publish the captivate
    project, the
    > animation
    > just loops continously. Any ways around this?
    >
    Try fixing the FLA doesn't reference root. Also make sure the
    Loop option is
    not selected in FLA options.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Flash player animations stopping on frame 1

    In our Digital Signage application, a number of our installations are experiencing problems with the Flash player.  It appears that most, if not all of them, are at Flash version 10.3.183.10.
    The symptom is:  Within our Windows .NET based app (which embeds the flashplayer.ocx) the SWF file is loaded and begins playing - but appears to stop all animations at or around the first frame.   We first thought it was only text that was disappearing but it seems that any object that is placed on screen dynamically (after frame 1) is not showing up.
    The screenshots we are seeing will show whatever background image exists plus sometimes the beginning of a text or other object's entry effect.  The strange part is that the underlying frame based scripting seems to still process in that we still are receiving the proper fscommands during and at the end of the SWF movie - and the movie will play the proper duration.  Thus it seems like the underlying script is chugging along - not realizing that nothing is actually happening graphicaly.  Once this problem occurs, it will then effect every subsequent SWF until an application restart or reboot.   We've seen this occasionally for a few months now but it seems to be happening more and more often.  We have not been able to reproduce it consistantly in-house and it is still faily rare (Probably 20 out of 1000 units daily) - and not always the same units. 
    We're still working on corralating other information but that's what we know now.   It would be easy to work around if the scripting would die too (like the WSOD)  - in that case we could detect missing fscommands and gracefully restart.
    We will eventually get all systems to Flash 11 but that will take a little time - and we're not even sure if that will fix it. ???
    Any ideas or thoughts would be appreciated.  A fix would be nice but just being able to detect it would satisfy me.
    Thanks.

    In our Digital Signage application, a number of our installations are experiencing problems with the Flash player.  It appears that most, if not all of them, are at Flash version 10.3.183.10.
    The symptom is:  Within our Windows .NET based app (which embeds the flashplayer.ocx) the SWF file is loaded and begins playing - but appears to stop all animations at or around the first frame.   We first thought it was only text that was disappearing but it seems that any object that is placed on screen dynamically (after frame 1) is not showing up.
    The screenshots we are seeing will show whatever background image exists plus sometimes the beginning of a text or other object's entry effect.  The strange part is that the underlying frame based scripting seems to still process in that we still are receiving the proper fscommands during and at the end of the SWF movie - and the movie will play the proper duration.  Thus it seems like the underlying script is chugging along - not realizing that nothing is actually happening graphicaly.  Once this problem occurs, it will then effect every subsequent SWF until an application restart or reboot.   We've seen this occasionally for a few months now but it seems to be happening more and more often.  We have not been able to reproduce it consistantly in-house and it is still faily rare (Probably 20 out of 1000 units daily) - and not always the same units. 
    We're still working on corralating other information but that's what we know now.   It would be easy to work around if the scripting would die too (like the WSOD)  - in that case we could detect missing fscommands and gracefully restart.
    We will eventually get all systems to Flash 11 but that will take a little time - and we're not even sure if that will fix it. ???
    Any ideas or thoughts would be appreciated.  A fix would be nice but just being able to detect it would satisfy me.
    Thanks.

  • Issues with loading flash as3 animation in Captivate

    Hello Everyone,
    I have a flash file that pulls together two external swf files and displays them one after the other. This flash file has only the AS3 code to display the two external swf files. The external swfs are in the same folder as the final flash file. When I insert the final flash animation into Captivate using the Insert-->animation feature in Captivate, and view the published the file, the swf file starts automatically playing right from the first slide till the end of the project. The swf file is actually placed in the second slide of Captivate. Has anyone had similar experience? Am I missing something?
    Thank you.

    In all probability there's something wrong with your AS3 code and it's not working once you add your loader SWF into a Captivate movie.  This may be due to the fact that the Captivate movie is also a Flash Movie Clip too.  So if your AS3 code has the loader looking for the other two SWFs at the same level it's never going to find them once you add it into Captivate because it's buried one level too far down.  Change your AS3 code to allow for this and things might start working.

  • Constrained optimization does not terminate (stopping criteria are ignored)

    Dear dev and users,
    the "constrained nonlinear optimization" in my program won't terminate. Limiting the calculation time (<1s) or the number of iterations (<300) or other "stopping criteria" does not help. The process hangs on for tens minutes (I kill it finally). The input data are nothing special compared to the other hundreds previously processed successfully. I processed my data set (600 data) and it hanged twice at different data. What other information shall I supply, so I could get some help from you, please?
    Thank you for listening.
    Cheers,
    M

    The code might be hanging inside the model or in some other subVI.
    Can you provide a bit more detail on the type of the polymorphic instance and model type you are using?
    Would it be possible for you to attach a small sample VI containing data that shows the problem?
    LabVIEW Champion . Do more with less code and in less time .

  • Importing Flash Animation AS3 into Captivate 3.0

    I have some animations and interactions that were written in
    Flash AS3, that work fine when published in a SWF file and run with
    FlashPlayer 9, but they don't work at all when I import them into
    Captivate 3.0. In Captivate, they seem to run when they apear in
    the in the Insert -> Animation dialog box., but then once they
    are placed in Captivate, they don't show up at all when I Preview
    -> Project (F4). The dialog box says that the duration of the
    animation is 00:00:00.1 (i.e., one tenth of a second!). What was on
    the stage (from the Flash file) shows up, but none of the AS3 code
    works. Help!!

    If you create an AS3 widget in Cp4, you'll notice that is starts you off using a template.  Most of the action takes place on the onEnterFrame event handler.  If you want something specific to occur at a certain time, you must place a condition for either the current slide, or the current frame.  Otherwise, the actions you describe above will occur... you animation AS3 code just executes immediately because Cp doesn't know when to execute it otherwise .  I'd suggest that you either use the widget framework, or place a condition in your code for executing on a specific frame or slide.  When I create widgets, I check for a specific frame:
    if (mainmov.rdinfoCurrentFrame  == currentFrameCheck) {
         //your code here
    If you go this route, I'd look into another function called AddNoSkipFrame which ensures Cp4 will not skip over the frame you're trying to check.  You can read more about it here.  And there's a thread about it here.
    Good Luck,
    Jim Leichliter

  • Imported Flash files are not playing in published output

    Adobe Presenter 7 with the latest updates and PowerPoint 2007
    When I insert a Captivate 3 generated Flash file into a Presenter slide, the flash file does not play in the Published output. The slide's image is displayed for 5 seconds and then stops.
    After further review, I found that my imported Flash files are not included in the output. Any ideas?
    Terry

    Hi Terry,
    It's been awhile since I've messed around w/ Captivate 3, but I have a quick question: does your Captivate content include a skin.swf file?  If so, then you may have to look at a couple of different solutions to fix the playback problem that you're seeing with Presenter.
    One fix includes eliminating the skin by turning the borders option off which will eliminate the "_skin.swf" file. That'll be one less file to deal with, but you need to do that BEFORE publishing in Captivate.  From there, you should end up with one swf file from your Captivate content; and then at that point you can include that swf in your Presenter content.
    And while we're at it....are you using any Full Motion Recordings at all?  I've seen instances where, as you reported, Captivate content will run for awhile, but then the screen "goes blank"...so I'm just curious to know if your Captivate content in actuality has many more files than the "base" swf---which is probably the swf you included in PowerPoint.
    Having said that, can you share more information about what your Captivate project looks like (in terms of the number of swf files you're working with, etc), and let's see if we can resolve this for you.
    Rob
    http://www.robrode.com/yabb/

  • Flash CS3 Play/Stop audio button problem

    I made a play/stop audio button with this youtube tutorial (youtube.com/watch?v=XU6oMEFUFF8) but after the sound is finished I want the play button to show up agian.
    Here is the actionscript:
    import flash.events.MouseEvent;
    play_btn.addEventListener(MouseEvent.CLICK,clickha ndler);
    stop_btn.addEventListener(MouseEvent.CLICK,clickha ndler);
    function clickhandler(event:MouseEvent):void{
    swapChildren(play_btn,stop_btn);
    what code should I add to my current code?
    I also can send you the Fla.

    You should consider using the Sound class. Here's a quick overview of it:
    http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d21.html
    You'll be able to add event listeners to the sound to know when it completes so you can execute more code, such as swapping the play and stop button. There is an example in that overview of listening for the SOUND_COMPLETE event (e.g. channel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);). It should contain everything you need.
    A basic example of what you'll end up with (there's many ways to do it) might look something like this:
    // just set up and wait for click
    var isPlaying:Boolean = false;
    var mySound:Sound = new MySoundInLibrary();
    var myChannel:SoundChannel = new SoundChannel();
    myChannel.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);
    // buttons
    play_btn.addEventListener(MouseEvent.CLICK,clickhandler);
    stop_btn.addEventListener(MouseEvent.CLICK,clickhandler);
    function clickhandler(event:MouseEvent):void
              swapChildren(play_btn, stop_btn);
              if (isPlaying)
                        isPlaying = false;
                        myChannel.stop();
              else
                        isPlaying = true;
                        myChannel = mySound.play();
    function onPlaybackComplete(e:Event):void
              isPlaying = false;
              swapChildren(play_btn, stop_btn);
    The basic idea is keeping a flag if the audio is currently playing. If it isn't then assign the sound to a channel and play it while setting the flag (isPlaying) to true. If it's already playing, set the flag to false and stop playing the audio.
    The swapChildren is run in the onPlaybackComplete() method so when the audio completes the play button is swapped back in front.
    Rather than swapping the children I'd urge you to toggle the .visible property instead. It's easy to run commands in the wrong order and get desynched on depth.

  • Creating a file on server, using Flash AS3 + PHP

    I have a very simple PHP script that creates a new file on my server using a random number for the file name (e.g., 412561.txt).  When I load the script directly from a browser, it works.  But when I load the script from a very simple Flash (AS3) script, it does not work (i.e., doesn't create a file).  The Flash script and PHP script are both in the same directory.  Permissions on the directory and its content are 755.  Temporarily setting those permissions to 777 does not solve the problem (i.e., PHP still doesn't create file when called via Flash).
    Here is my phpinfo.
    Here is the PHP file.
    The contents of the PHP file are:
    <?php
    error_reporting(E_ALL);
    ini_set("display_errors", 1);
    $RandomNumber = rand(1,1000000);
    $filename = "$RandomNumber" . ".txt";
    $filecontent = "This is the content of the file.";
    if(file_exists($filename))
              {$myTextFileHandler = fopen($filename,"r+"); }
    else
              {$myTextFileHandler = fopen($filename,"w"); }
    if($myTextFileHandler)
              {$writeInTxtFile = @fwrite($myTextFileHandler,"$filecontent");}     
    fclose($myTextFileHandler);   
    ?>
    Here is the html container for the Flash script.  The Flash script features a single button which calls the PHP script when pressed.  In case it helps, here is the raw Flash file itself.  The code of the Flash script is as follows:
    stop();
    var varLoader:URLLoader = new URLLoader;
    var varURL:URLRequest = new URLRequest("http://www.jasonfinley.com/research/testing/TestingSaveData.php");
    btnSave.addEventListener(MouseEvent.CLICK,fxnSave);
    function fxnSave(event:MouseEvent):void{
              btnSave.enabled=false;
              varLoader.load(varURL);
    Directory listing is enabled at the parent directory here, so you can see there when a new text file is created or not.  (Um, if this is a security disaster, please let me know!)
    Can anyone please help me understand why this isn't working and how I can fix it?  Thank you
    ~jason

    #1, Yes that is a security risk, please disable directory index viewing.
    #2, Always validate. I see no issue with the code you're using but clearly it's not working. The way you find out is your trusty errors.
    Make a new document (or paste this into your existing) where a button with the instance name btnSave is on screen:
    // import required libs
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.MouseEvent;
    import flash.events.SecurityErrorEvent;
    import flash.text.TextField;
    // assign handler
    btnSave.addEventListener(MouseEvent.CLICK, fxnSave);
    // make a textfield to display status
    var tf:TextField = new TextField();
    addChild(tf);
    tf.width = stage.stageWidth;
    tf.height = 300;
    tf.multiline = true;
    tf.wordWrap = true;
    tf.selectable = false;
    tf.text = "Loading...\n";
    // just making sure the textfield is below the button
    this.swapChildren(tf,btnSave);
    function fxnSave(event:MouseEvent):void
        // disable button
        event.currentTarget.enabled = false;
        // new loader
        var varLoader:URLLoader = new URLLoader();
        // listen for load success
        varLoader.addEventListener(Event.COMPLETE, _onCompleteHandler);
        // listen for general errors
        varLoader.addEventListener(IOErrorEvent.IO_ERROR, _onErrorHandler);
        // listen for security / cross-domain errors
        varLoader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, _onErrorHandler);
        // perform load
        varLoader.load(new URLRequest("http://www.jasonfinley.com/research/testing/TestingSaveData.php"));
    // complete handler
    function _onCompleteHandler(e:Event):void
        tf.appendText("Load complete: " + e);
    // error handler
    function _onErrorHandler(e:Event)
        if (e.type == SecurityErrorEvent.SECURITY_ERROR)
            tf.appendText("Load failed, Security error: " + e + " type[" + e.type + "]");
        else if (e.type == IOErrorEvent.IO_ERROR)
            tf.appendText("Load failed, IO error: " + e + " type[" + e.type + "]");
    I get a Event.COMPLETE for mine, so the PHP script is definitely firing. Change the URL to something invalid and you'll see the IOErrorEvent fire off right away.
    That leaves you to diagnose the PHP script. Check your error_log and see what is going wrong. You're suppressing errors on your file write which doesn't help you locate the issue saving the file. If you want to handle errors yourself you should do the usual try/catch and handle the error yourself (write a debug log file, anything).

  • Question re Flash to Animated GIF

    Hi,
    I developed a simple animation for my home page. It simulates
    a title being "typed" out one letter at a time the way it would
    look if keyed in a program like MS Word. Once the words are
    "typed," the .swf version of the animation stops, and the title
    remains on the screen.
    After creating the .fla file, it occurred to me that it might
    make sense to export the file as an animated .gif so that folks
    without the Flash plugin could see it.
    However, as far as I can tell, I have only two options for
    creating the animated .gif version: either have the animation
    repeat, or have it disappear after it finishes.
    Is there a way to convert to an animated .gif so that the
    animation occurs once and then the title's words remain on the
    screen instead of disappearing?
    Thanks!
    Bill

    OK, the answer is to put "1" in the "Repeat" field in the GIF
    publish settings. To me, that means it will repeat one time,
    meaning it plays twice. I had put 0 in that field and that makes it
    loop continuously.
    That's the answer!

  • Controlling External Captivate 5 swf using flash AS3

    Hi,
    I have created a basic Flash AS3 interface in which I am trying to control the navigation (next slide / previous slide) of an external captivate 5 swf which I have added using a loader, but i cant work out the solution.
    My code is currently as follows:
    import flash.net.URLRequest;
    var Xpos: Number = 96
    var Ypos: Number = 94
    var my_loader:Loader = new Loader();
    my_loader.load(new URLRequest("content.swf"));
    my_loader.x = Xpos;
    my_loader.y = Ypos;
    addChild(my_loader);
    stop();
    nextBut.addEventListener(MouseEvent.MOUSE_UP,gotonextframe);
    function gotonextframe(event:MouseEvent){
    MovieClip(my_loader.content).rdcmndNextSlide();
    Any help would be much appreciated,
    thanks
    Dez

    Thats perfect, thanks for the reply, much appreciated!
    I guess you have tried:
    rdcmndRewindAndStop
    Set to 1 to rewind and stop the project.

  • Importing Flash into PowerPoint

    Hello - I have a Flash file that I would like to import into PowerPoint.  Below are my questions.  I am hoping to get some guidance on this.
    First a few pieces of information:
    1.  I use a Mac but have a Parallel system at work so I have access to Windows PPT 2008.  I am using Flash CS5.
    2.  The Flash file is not huge, it's just these animated curtains that open up to reveal a logo and text.
    Questions:
    1.  I have found the only way to import the Flash file is to export as a .mov and then import that into PPT.  This works great EXCEPT for that the text and logo look blurry in PPT.  I have no idea why.
    2.  Is it possible to export a .mov file with just the curtain animation but with a transparent background so that when I import into PPT, we can just type the text directly within PPT and not have to include that in the Flash file?
    3.  I read online that you can import SWFs into Windows PPT but I have not been able to get that to work either.
    Thanks in advance for any and all information!! 

    Dear MedicalDoctorWebPixie:
    This is the product you're looking for for importing Flash (both interactive or non-interactive) content into PowerPoint:
    http://www.adobe.com/products/presenter/

  • Freelance Flash AS3 coder needed in Dublin Ireland

    Experienced freelance Flash AS3 coder needed to resolve issues on a  touchscreen interface built using Flash AS3.
    Needs to have experience with Timer Class and URLRequest  method.
    Anyone interested, please let me know.

    We've done these types of playbars before for other clients. Cannot promise anything, but we'll take a look at your requirements.
    For future reference, this link provides some information about commissioning a custom-built widget: http://www.infosemantics.com.au/catalog/widgets/Custom_WDGT_DevService/about
    The most important thing to remember is that anything like this will cost many times more than even the msot expensive widget you can buy online, because those widgets are sold hundreds of times over before the developer recovers their costs.  Development of one-off widgets need to be fully funded by the person that wants it.  If this widget isn't worth a lot to you, but would just have been "nice to have" you're probably NOT going to be interested in what it would cost to build.

  • Animation stops in .exe playback

    I am trying to publish a Captivate project as an .exe and any
    embedded animation that is longer than 60 seconds is stopping
    during playback even though the .swf's play fine by themselves. The
    frame rates are consistant throughout and the slide lengths are all
    the same as the animation length.
    I am lost as to why this is happening. Any thoughts?
    Thanks

    well you answered yourself - 16,000 frames has always been
    documented as the limit for flash
    (frames, levels, loaded movies).
    You will have to re-think your timeline - nobody ever reaches
    this length (it's very rare) because
    flash was never designed for such long running SWF movies
    unless you break it down into several
    smaller SWfs and loaded them dynamically (daisy-chain them).
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    ekim2005 wrote:
    > I have a couple presentations that I'm trying to create
    using a single
    > projector/EXE, that include both sound and animation.
    They are pretty long in
    > terms of how many frames they (current one is 16K frames
    +) and the problem I'm
    > running into is that the animation keeps freezing
    towards the end of the
    > presentation. The audio continues to play, but the
    animation freezes.
    >
    > I've tried everything I can think of, but can't figure
    out a solution other
    > than splitting the project into multiple SWFs and
    loading them (loadMovie)
    > externally. Ideally, I'd like the project to be just a
    single file, but this is
    > the only way I can find to get it to work.
    >
    > Is there an issue with Flash not playing past a certain
    number of frames?
    >
    > Anyone else run into this? Any help/suggestions would be
    greatly appreciated!
    >
    > Thanks,
    > Mike
    >

Maybe you are looking for

  • How can i upload a dvd+-r on to my imac?

    Im asking for know how to upload a dvd that I have burn on a dvd player

  • Direct Debits F110

    Hi Specialist I need help to find a standar function module to do it: - Normally in my company we receive bank rejections and the users must reverse the payments manually. - I propose do it automatic and for that we received from the bank a file with

  • Pop up to get log reason from user

    hi guru i am using POPUP_TO_CONFIRM function module to conform whether the user want to delete the record or no. Beside that i also have the log table, where i log the reason to delete. how to pop up a screen to enter reson log. with regards ajay

  • Best way to apply simple CSS text styles?

    Merry Christmas all! I'm about to apply pre-defined CSS text styles to about 200 individual pages. Most of the text will be 'Body'. As all of my pages are children, based in an editable region in a cell of a table in my template page, am I safe to ap

  • About par file

    Hi to all Iam very much new to Portal Development ... i have Zip file which contains the par file i have extract it and import into the NWDS now i want to build  and deployee the project can u please guide me on this and changes is required in .xml f