Simple ActionScript in Flash file breaks in Captivate

This is sooooo frustrating! Can anyone help!? :p
I've got a little flash file that has a text box in which I
use a bit of ActionScript to put the current date into.
When I preview the SWF in flash, or publish the SWF, etc. it
works fine!
Then I go to my Captivate project and import the SWF file
with INSERT => ANIMATION.
It looks like it's working, I place it where I want on the
slide and I actually can see the date has been displayed (as per
the preview on the captivate slide)
But when I publish the Captivate file or preview the project,
the date is nowhere to be seen! SO ANNOYING!.
This is the code on my flash file behind the date display
text box (added line numbers for convenience):
1. quizcompletedate=new date();
2. month = new Array("January", "February", "March", "April",
"May", "June", "July", "August", "September", "October",
"November", "December");
3. quizcompletedate=(month[quizcompletedate.getMonth()]+"
"+quizcompletedate.getDate()+", "+quizcompletedate.getFullYear());
All works fine in flash, just not when it's inserted into a
captivate slide.
PLEASE HELP?!?!
G.

wow! OK, I actually didn't think that would make much of a
difference! but I'm a step closer...
now the textbox is appearing at least! Thanks Paul_D, but now
a new problem...
When I preview the captivate project now, the text box says:
"undefined undefined, undefined undefined:undefined" - but
remember, it is working in Flash, and it even works in Captivate
when I'm in design view (while I'm working on the slides) it just
doesn't wok in the final product.. any more suggestions???

Similar Messages

  • Flash file breaks when moved to PC

    I created several flash files on a Mac using Flash CS3 and then recently moved them to my PC. I tried to open them up on the PC and when I run the code, my .load no longer works. It doesn't make any sense because the AS should work the same no matter what. I also no longer have assess to my Mac, so I can't go back and change anything.
    My codes goes a little like this:
    testingXML = new XML ();
    testingXML.onLoad = loadingAction;
    testingXML.load ("http://www.google.com");
    Thanks!

    In my case, this exception was due to a defect in some timeout code I'd written. I didn't want to wait forever for the command to complete, so after an appropriate amount of time, the code would destroy the process. That invalidated the data streams however, causing the bad file number exception in the reader threads.
    So you may look for ways in which the executed process might be getting destroyed.

  • Browser hangs when trying to open large Flash file created in Captivate 5

    Hi all,
    I've created a large demo in Captivate 5 (about 200 slides) and published it for output to Flash Version 10 for distribution to my project team (sent out in a zip file). Some members of the team can open and play the demo with no problem, but a few others are telling me that IE hangs when they try to open the file. The progress bar at the bottom of the page just freezes.
    Has anyone come across this problem?
    Thanks

    If you sent the published output files to people inside a zip archive make sure you tell everyone to unzip the contents to a folder on their hard drive before trying to launch the HTM file and play.  I find a lot of people just double-click the zip file, which opens up the archive to browsing, and then just double-click the HTM file.  Unfortunately, because the objects inside a zip archive don't always retain relationships, things don't necessarily work this way.  So the only sure fire way for all the files to find each other properly is to unzip completely and then try to play them.
    The other thing to check is which version of Flash Player your team members are on.  If you published for Flash 10, are some of them still on Flash 9?

  • Flash files with right click imported in dreamweaver files

    Flash files created with Captivate which contain rightclick
    functionality are imported to html files created in Dreamweaver. In
    other words, I don't use the html created by Captivate but another
    html file to build up a whole course. But now a couple of those
    flash files contain a right click and obviously I have to adjust
    the dreamweaver file with some of the script that William Heinz has
    created. I am not an HTML expert and I am not 100% confident that I
    can do with just endless try&error. Could anyone give me some
    hints?
    I suppose I need to use the second bit of William's article
    "the more complex requirement".
    When I insert the flash file this is what I get: (This is
    where I am suppose to make the changes????)
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','widt h','746','height','591','title','Schedule
    Let
    Me','vspace','5','src','Resources/Sched_LM_skin','quality','high','pluginspage','
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','Resources/Sched_LM_skin'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"
    width="746" height="591" vspace="5" title="Schedule Let Me">
    <param name="movie" value="Resources/Sched_LM_skin.swf"
    />
    <param name="quality" value="high" />
    <embed src="Resources/Sched_LM_skin.swf" width="746"
    height="591" vspace="5" quality="high" pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash"></embed>
    </object></noscript>
    I am not sure what to do with the "<Body
    onload='javascript:init()..... "etc as suggested by William.
    Thanks for any advice on this!!!

    I hope there is one person out there who can help me with
    this issue.
    I have started from scratch and created a blank html with
    dreamweaver and inserted the flash file (with right click
    animation) created with Captivate.
    Then I made the adjustments as per Heinz and also included a
    ID=Captivate1 as the RightClick.js refers to that.
    The main difference between this html file and the html file
    created with Captivate, is that the Captivate one also has
    writedocument bit.
    Anyway, is there anybody in the world who can give me
    atip/hint/suggestion?????

  • How to load other obejects in flash file after intro using ActionScript 3.0

    How to load other obejects in flash file after intro using ActionScript 3.0 or any other method all in same fla file. see blow intro screen shot ,this one playing repeatedly without loading other fla pages .only way to load other pages is click on Skip intro .see second screeshot below .i need that site to load after intro .
    see codes already in
    stop();
    skipintro_b.addEventListener(MouseEvent.CLICK, skipintro_b_clicked);
    function skipintro_b_clicked(e:MouseEvent):void{
    gotoAndStop("whoweare");
    There is another script there
    /* Simple Timer
    Displays a countdown timer in the Output panel until 30 seconds elapse.
    This code is a good place to start for creating timers for your own purposes.
    Instructions:
    1. To change the number of seconds in the timer, change the value 30 in the first line below to the number of seconds you want.
    var fl_TimerInstance:Timer = new Timer(1000, 30);
    fl_TimerInstance.addEventListener(TimerEvent.TIMER, fl_TimerHandler);
    fl_TimerInstance.start();
    var fl_SecondsElapsed:Number = 1;
    function fl_TimerHandler(event:TimerEvent):void
              trace("Seconds elapsed: " + fl_SecondsElapsed);
              fl_SecondsElapsed++;
    i have no knowledge about these thing ,any help really appreciated .

    Ned Murphy Thank you very Much .It is working .Great advice

  • Flash files not playing in Captivate correctly.

    I have Flash files that make up a course that play correctly in Flash but are breaking in Captivate once I import into the Publish folder. There is a button that remains active without being clicked and will not close as it is supposed to, creating obvious issues in the course. The button does not have these issues in Flash, only in Captivate.
    Has anyone had an issue like this or any thoughts on how to fix it?

    Is the SWF published for AS2 or AS3?  Captivate only accepts AS3 nowadays.
    The other likely issue is that perhaps you have inadvertently used a symbol name for your button, or some of your AS code functions/variables etc, that happen to be reserved by Captivate for its own use.  These types of conflicts can cause issues.

  • I have 5 different flash files that i am trying to insert all in one file and access them through 5 buttons. please shoot any advice or just the name of the actionscript 2.0. thank you.

    i am doing an assignment for my class and i need to insert all of my 5 different flash files into one and create 5 buttons apply related actionscript 2 in order to play a particular animation. please help me out. thank you.

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    The Cloud is not a program, it is a delivery process... a program would be Photoshop or Lighroom or Muse or ???

  • Need help placing Flash file in Captivate...

    I have a few short animations I did in Flash that I want to put in Adobe Captivate. They place fine and play fine. But I wanted to know if it is possible to have the last frame of the animation show for the rest of the captivate slide. I'm using Captivate 6 and Flash Pro CS6. Thanks!

    That depends mostly on what you did in the Flash file.  You should ideally NOT fade out the animation at the end and it should terminate with a stop(); action inside the Flash file on its last frame.  Have all of the animation on the main timeline in Flash so that it's not buried down inside a symbol, which would just continue to loop.  Then in Captivate, don't use fade out there either.

  • IMPORTING FLASH FILE IN CAPTIVATE

    Hi!
    I have an interactive training module created with Flash. It has buttons, videos, and quizzes.
    Now, to make it compatible with SCORM. I was advised to use Captivate.
    Is it possible to export the whole flash file in Captivate? Please help.
    Thank you very much!

    If this was all developed in Flash then the best bet is to use the Pipwerks SCORM wrapper to make your Flash file compatible.
    More info here: http://pipwerks.com/
    You may be able to insert your Flash file as an animation into Captivate, but this won't make it SCORM compatible.  You might be able to recode the Flash file as an interactive widget and make it have a Success result when the user passes the module.  Then when you insert it into Captivate you can set the interactive widget to have a score.
    More information about coding widgets can be found here:
    http://www.infosemantics.com.au/widgetfactory/info

  • How load swf file (flash 8) with adobe captivate 3 without enter the HTML?

    How load swf file (flash 8) with adobe captivate 3 without enter the HTML?

    Hi SaSQuaCh69247,
    Issue 1 :- Select the SWF file in library, right click, and
    select update.
    Issue 2 :- Actually it could be valid for Issue 1 also. It
    seems like SWF file you are trying to import, does some action
    like, importing another swf or connecting to server on the first
    frame itself. Captivate will try to play the first frame of SWF
    when you import them. Try creating a keyframe with the stop action
    as the first frame in your SWF, and see if you still have the
    issue.
    Issue 3 :- The approach I am mentioning over here is
    generally the last approach which I will take in such scenerios,
    but since you have already experimented a little, so try this.
    Go to C:\Documents and Settings\<user name>\Application
    Data\Adobe\Adobe Captivate
    Rename captivate_v20.dat as captivate_v20_org.dat.
    Restart Captivate Application.
    thanks

  • Flash version detection with Captivate published files?

    Doe sanyone know if the Captivate publishes their HTML file
    that includes a flash detector of the user's system when they first
    attempt to activate a piece of Cpativate content.?
    I have a customer who wants to know how (most automatic )
    method to have their Captivate contnet viewers systmes checked for
    the approriate Flash player and feedback message to alert them tof
    the need and how to download.

    Hi jonturkle
    I'm going to crawl way out here on this shaky little limb and
    say that this is factored into the mix. I say that because I
    recently saw a post where someone needed to output Captivate in
    Flash 6 format. Captivate 3 outputs in Flash 7 format as a minimum.
    They were saying that when they attempted to run the Captivate
    files, the users were being prompted to install a newer version of
    the Flash player.
    Cheers... Rick

  • Breaking Down Flash File

    G'day,
    I am trying to convert a flash website into a static html
    website. To do this I've saved the flash web pages to hard disk and
    I want to be able to open up the flash files to get all the photo's
    out.
    I am trying to open a flash file in flash, but when I do it
    simply plays. How do I access the insides of a flash file please?
    Thanks
    Ray

    If you do not have the FLA then there is no easy way - and
    technically anything you view in your
    browser is actually on you hard drive in a temporary Internet
    files folder - location differs
    depending on browser and OS.
    If you find the SWF(s) and if it is not protected at time of
    publish - then you can try importing it
    into Flash - this will not allow you to edit it like the
    original but it may import some assets
    depending on how the original file was setup and what kind of
    assets were used.
    You have a slightly uphill battle here - kind of like asking
    how to get the egg back in its shell
    after it's been made into an omelette.
    Chris Georgenes
    Adobe Community Expert
    www.mudbubble.com
    www.keyframer.com
    www.howtocheatinflash.com
    Ray Dar wrote:
    > Hi Rex,
    >
    > Thanks for the reply. Doesn't really answer my question
    though. How can I save
    > a flash page from the internet, and then use the data
    from that flash page to
    > build an html page?
    >
    > There is no copyright issue with this. The info
    contained on the site belongs
    > to my client, I want that info to give his website a
    static html function for
    > people on slow connections.
    >
    > Cheers
    >
    > Ray
    >

  • Ending Flash Files with Actionscript

    Hi there folks,
    Unfortunately I'm new to flash so you'll have to forgive this
    question,
    Q) What is the correct script to end a flash file once it
    reaches a specific frame (e.g If you want to end a Flash
    presentation when it reaches a certain point!?).
    If anyone can help with this, it would be much appreciated!!
    :)

    Captain Elgy,
    > Unfortunately I'm new to flash so you'll have to forgive
    > this question,
    No worries. :) Every one of us was new at some point.
    > Q) What is the correct script to end a flash file once
    it
    > reaches a specific frame (e.g If you want to end a Flash
    > presentation when it reaches a certain point!?).
    What do you mean by "end a flash file"? Do you mean stop? If
    so, a
    stop() action may be all you need -- that will stop the
    timeline. Do you
    mean quit and close the browser window? If so, you'll be
    stepping outside
    the realm of Flash, so you'd have to trigger JavaScript to
    close the window.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Captivate 5-generated HTML wrapper won't play back Flash files (no error posted)

    I am trying to play Flash content generated using Captivate 5.0.2.630. I can publish from Captivate (including electing to create an .htm) and the content plays/replays correctly when I preview it through Captivate (i.e., locally). I can also d&d the .swf onto IE (8 or 9) and it will play. However, no matter how I call the .htm (whether via a link or d&d or typed-in URL), if it's not local, the .swf does not play and I am not receiving any error message. I have tried IE 8 (32-bit) and IE 9 (32- and 64-bit), and I have tried on XP and Win7 systems. The result is consistent: I can play the .swf without problems; however, the Captivate-generated .htm does not seem to be able to start the Flash player/play the .swf. Any help will be most appreciated.

    Oops. I totally forgot about that...
    Thanks for the help!
    (Doh!)

  • Flash File too Large

    I have a flash file that is 28K KB. I cannot get it to open,
    and definately cannot publish the file. At this size, is there any
    way to break the file up, or even to get it open so that I can do
    that?
    Thx,

    Thanks for the reply.
    Maybe you can help me a little more.
    I looked up some tutorials having to do with the AS2 xml galleries, and I found that almost all of them were for galleries with fancy scrolling options and slider bars, etc.
    My galleries are very very basic, thumbs are layed out on the left, click one and the image appears on the right. I'm not the best at using the actionscript and knowing what to do with all of it. So some of the tutorials made sense about getting files to load dynamically, but I'm not sure what code to keep in for my gallery, and what code to take out that I dont need for all the fancy effects.
    my site is http://www.mrolfedesigns.com
    as you can see, the galleries are pretty simple, I would like to keep them that way, and not have any complex scrolling or slider bars. Ive searched a lot into looking for some more simple tutorials, but am not finding any great ones that I can use.

Maybe you are looking for