How to find totalFrames of Captivate 4 .swf in Flash CS4

I have a series of Captivate4 AS3 .swf files that I am loading into an interface created in Flash CS4.  The files are loading and playing correctly, but I need to find a way to detect when an imported .swf gets to the end of it's timeline so that I can load the next one.
Here's my code:
var myLoader:Loader = new Loader();
var movieURL:String = "resources/testTestTest.swf";
var req:URLRequest = new URLRequest(movieURL);
var currentMovie;
var endShow:Boolean = false;
myLoader.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(evt:Event)
    currentMovie = myLoader.content;
    currentMovie.rdcmndPause = 0; //fails to pause imported .swf
    trace(currentMovie.cpInfoCurrentDate); //fails to trace out
addChild(myLoader);
myLoader.load(req);
Please, help!!

I forgot to add "contentLoaderInfo" to the myLoader eventListener.  Here's my working code:
Captivate- output to AS3, make sure Flash player is same as destination
AS3 code from flash UI:
//initial variables
var myLoader:Loader = new Loader();
var movieURL:String = "fileName.swf";
var req:URLRequest = new URLRequest(movieURL);
var currentMovie:*; //data type movie; use wildcard- data type unavailable at compile time
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(evt:Event):void
    currentMovie = MovieClip(myLoader.content);//data type imported .swf
    trace("frame count = " + currentMovie.rdinfoFrameCount); //rdinfoFrameCount is a Captivate var
    //trace("current frame = " + currentMovie.rdinfocurrFrame); //rdinfoFrameCount is a Captivate var
addChild(myLoader);
myLoader.load(req);
//set up timer to check to see if current frame == total frames
var endTimer:Timer = new Timer(1000);//runs every sec.
endTimer.addEventListener(TimerEvent.TIMER, onTimer);
endTimer.start();
function onTimer(evt:TimerEvent):void
    //trace("current frame = " + currentMovie.rdinfocurrFrame);
    if((currentMovie.rdinfocurrFrame + 10) >= currentMovie.rdinfoFrameCount) //had to add 10 to current frame
     //write your function here
    endTimer.stop();

Similar Messages

  • Unable to export from Captivate 4 to Flash CS4

    Hello everyone!
    I am attempting to export a captivate project over to flash CS4.  However when it goes from captivate over to flash the result is basically a slide show. It does not show any of the animations that are present in Captivate. I also keep recieving an error message.
    I have searched for how to solve this problem for quite a while now and so far have come up with nothing.
    This is the error message that flash gives me:
    The following elements in your project have not been converted. They are not supported by this importer.
    508 Compliance
    A swf animation slide has been imported. The following files must be made available at publish time:
    Project01_slide_22_0.swf
    DefaultPreloader.swf
    Please make sure you publish the project to “C:\Documents and Settings\jmillard\Desktop.” Saving the project to this directory will ensure that test project will work with the swf animation slides.
    Unfortunately I am on a tight schedule to get this project done and the Captivate 4 and Flash CS4 I am using are both 30 day trials, so I am in quite a hurry.
    If you could please help me I'd greately appreciate it! 

    When you click on <Send Book to Blurb> a dialog should come up that asks for your ID and password for your Blurb account. I don't know if Blurb ships to Norway - you probably can find out at the Blurb website. But I don't think that this is the problem here since you also cannot export a PDF or JPGs.
    I don't know of any specifics why this is not possible for you but it's worth trying to replace the Preference File.
    This file can go "funny" and is then responsible for all kinds of strange behavior of Lr. The remedy is replacing the Preference File. 
    BTW: Re-installing Lr or updating / upgrading Lr does not replace the Preference File since it is designed to "survive" upgrades.
    See here for where to find the Preference file for your OS: http://helpx.adobe.com/lightroom/kb/preference-file-locations-lightroo m-4.html
    See here for how to go about Replacing the Preference File: http://lightroomers.com/replacing-the-lightroom-preference-file/745/

  • S.o.s. how to set a memory usage limit in flash cs4?

    flash is using 1 200 000 k. and i cant work in this situation. i know that i can limit the usage of memory in ps cs4. but i dont know how i do it in flash. is there a way of limiting the memory usage or making flash use memory as much as this?

    Thats all my poblems!!!
    I used File Monitors from Sysinternals and I see, that Flash operated with C:\xalan\xercesImpl.jar (on my system), and can't find C:\Program Files\Adobe\Adobe Flash CS4\META-INF\services\org.apache.xerces.xni.parser.XMLParserConfiguration  and others...
    I temporary remove xalan - well - thats all - CS4 successfully compile, test, check codes !!!
    1) Adobe CS4 used Xerces Apache (and configurated himself, without us)
    2) Use Sysinternals to detect other file-problems
    On my machine Flash 8, CS3, CS4 - for adjusting project compatibility.
    ==========
    PS.  Читает то, что попалось первым
    ENVIRONMENT > CLASSPATH:
    .;C:\xalan\xalan.jar;C:\xalan\serializer.jar;C:\CODE\xalan-j\xml-apis.jar;C:\xalan\xercesI mpl.jar;%CLASSPATH%;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
    Ну нравится Макромедиа-Адоб Флэш...

  • How can we create such navigation buttons using Flash CS4?

    Hi,
    How can we create such navigation buttons using Flash CS4 is in the following website? Please help me with any such tutorial to make my custom navigation bar/buttons.
    http://city.reallusion.com/join.html
    Thanks.

    While the Note 4 is a reasonably large device it still falls into the phone layout bucket. We need this layout to function on very small screens some as low as 320 pixels high and 240 pixels wide. These sorts of devices don't have the space for a full toolbar.

  • How can I mask on flv file in flash cs4?

    Hi,
    I am new to Flash CS4. I saw one video on how to use flv file in flash and mask it. It is working fine when I am using the following option while importing a video file to flash:
    Load external video with playback component
    But when I tried with the following option it doesn't show the background, it shows only movie which is playing nicely. But not the background which has a bill board.
    Embed FLV in SWF and play in timeline
    It seems the mask is not working with this option.
    How to solve this problem? Please help.
    Actually it should be like the above.
    But when I am using the option Embed FLV in SWF and play in timeline while importing the flv video, getting the result like below: It is not showing the Bill board as above.
    See the layers created:

    Hi,
    I Tried with CS4 by creating mask layer and importing video , layers created were same as you have created and it is working for me .
    Here is the screen shot of the .fla file.
    Screenshot of .fla file

  • Export Captivate 3 to Flash CS4

    Hello All,
    I am using Captivate 3 and when I try to export project to Falsh, only Flash 8 and Flash CS3 are listed but they are grayed out because I am using Flash CS4. My question is how do I export project to Flash CS4 if it is not an option?  Is there another way to create a FLV file?
    Thanks,
    Chad

    Hi there
    I posted a reply and possible workaround in the thread below where you also asked this question.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Flash swf from Flash CS4 not functioning in Director

    I  am building an app in Shockwave and am using a Flash swf as the navigation bar to change screens etc. I created the initial swf in Flash MX 2004  published for Flash 6.0 and Actionscript 2.0. This worked fine. I then needed to add some more screens and since  I now have Flash CS4 Pro I decide to use this to make the changes published for Flash 6.0 and Actionscript 2.0. I created the changes, tested the movie, everything runs fine in Flash The published swf works fine when executes from the desktop. When I import into Director, the swf does not function. Is there some step that I am missing?
    What am I doing wrong?

    Well nothing is working, no rollover buttons , no changing screens, nada.
    The Code worked when published with Flash MX 2004. I brought the file into
    Flash CS4 Pro, made my additions, published. Tested the swf alone. But when
    I import into Director MX version 9.0 it is not functioning.

  • How do I get a Captivate SWF file converted for MAC products?

    I thought I'd be able to publish to HTML5 and then use the APP Packager to get the file in a formate for Macs, but the HTML5 file doesn't work correctly.  The program has 62 slides, and may just be too long to convert to HTML5.
    I really need my program to work on MACs, and my SWF runs perfectly. 

    Okay - the big question must be:
    1) Are you trying to publish an HTML5 compatible course, which users can view on their iPad using the Safari browser?
    or
    2) Are you trying to publish your course as an App, which must be uploaded and distributed through the App Store?
    If it is number 1 then it is as Rod says. You need to upload all the published files to a web server. The users can then access your course in their Safari browser on the iPad by going to the URL (www.yourdomain.com/mycourse/)
    If it is number 2 then you'll need to :
    a) Get an Apple Developer ID
    b) Run the course through the Adobe Captivate App Packager
    c) Upload the finished App to the App store.
    www.cpguru.com - Adobe Captivate Widgets, Tutorials, Tips and Tricks and much more..

  • How to find out what version of Adobe/Flash Access you're running

    To find out what version of Adobe Access server you’re running, do this:
    1.          Unzip (or unpack) your flashaccess.war file (it’s just a zip file)
    2.          Navigate to: \flashaccess\META-INF\
    3.          Open “MANIFEST.MF” and look for “Implementation-Version” for something like 3.0.0296
    4.          That is your Adobe/Flash Access version#
    cheers,
    /Eric.

    When Pages is running, select Pages > About Pages.  The latest version that only runs on OS X Mavericks is 5.0.1.

  • Swf from flash cs4 into dreamweaver cs4

    I don't know why this is so difficult, but I'm unable to embed a swf generated in flash into a dreamweaver template. I can finally create a few basic animations and want to test them out in the  dreamweaver envoirment. What is the simplest path to accomplishing this? For example if I open flash, create a simple animation, like a ball moving across the screen. If I save that SWF, what's the next step after opening dreamweaver. I just want to be able to test it the site with dreamweaver or see it "live". Thanks in advance.

    Go to the Insert menu in DW and select swf. Find the .swf that you want to use and select it. Save the file and then use the Preview in Browser tool. Alternately, you can use the Publish function in the File menu in Flash to publish an html docuement that you can then open in DW.

  • How can I NOT let collision happen in Flash CS4(AS3)?

    I have been playing with collisions for quite a while, but cannot seem to get it just the way i want it to be.
    I made a new rectangle into a Movie Clip, with an instance name : "block_mc"
    I made a sphere into a Movie Clip, with an instance name : "ball_mc"
    I made the sphere(ball_mc) movable with the arrow keys.(see post:http://forums.adobe.com/thread/491457?tstart=0 )
    Now I wanted to try and make the sphere(ball_mc) stop moving so it wont hit the rectangle(block_mc), so that the rectangle(block_mc) would act like a solid object.
    Meaning the sphere(ball_mc) would not be able to touch the rectangle(block_mc). It would act like a wall.
    Now my problem is I don't know if there is a way of not letting objects collide?
    I tried the ".hitTestObject()" but that did not work for me.
    ~ Thanks for Help and Advice~

    I apologize, for this confusing long question, I simply ment to ask:
    Is there a way Flash CS4(AS3.0) will not let Objects on stage collide?
    ~Thank you for any Tips, Advice and Help~

  • How can i change the lenguage in adobe flash cs4

    i instal the sofware today and i try to do in sapnish but in the end is in english,,,i deleted the sofware from my computer beacouse not space in there,,so now i need to change the lenguage to spanish,,,some one can help me???
    thanks
    he instalado el programa de adobe flash cs4 por lo visto en ingles,,,sabe alguien como cambiarlo a espanol,,,,he borrado el programa bajado de adobe asi que no lo tengo para poder desinstalar y volver a instalar en espanol,,,me puede ayudar alguien..
    gracias

    The old-is-gold method: Uninstall the older version, reinstall the newer version.
    Alternatively (quicker and happy version),
    1. Go to Preferences.
    2. Select Language from the left side.
    3. Look for "Application Language" dropdown.
    4. Select "Choose at application startup".
    5. Restart Reader.

  • How to make like Spry Products demo using Flash CS4 / xml?

    hello there!
    i wonder is it possible to make something similar to Spry Products Demo using Flash CS4 for front end and xml for back end data. take a look at this draft image. If it can be done, can someone guide me please. I am super new to AS2/3 - Please. Thanks for your help.

    hello there!
    i wonder is it possible to make something similar to Spry Products Demo using Flash CS4 for front end and xml for back end data. take a look at this draft image. If it can be done, can someone guide me please. I am super new to AS2/3 - Please. Thanks for your help.

  • I want to know wats my previous version of flash player...how to find it.?

    pls help me to find the previous version of my flash player...yesterday i've installed the latest flash player ..but i need to reinstall my previous version...can anyone tell me how to find the previos version of my flash player and how to download it.?

    That depends on your operating system; on Windows it is in C:\WINDOWS\system32\Macromed\Flash

  • Question Slide won't export to Flash CS4 (Captivate 4)

    I'm using Captivate 4 and Flash CS4 in Windows.  I have built a short and simple 5-question quiz in Captivate, and I need to export it to Flash CS4.
    I have tried both opening the .cp file onto a new Flash stage, and exporting to Flash from inside Captivate.  Sometimes, Flash crashes.  Mostly, I get this error:
    The following elements in your project have not been converted.  They are not supported by this importer.
    Question Slide
    Since I'm basically using Captivate 4 as a quiz generator for this project, this is definitely a showstopper.  Any suggestions?
    Thanks in advance!

    Hi,
    There is no suport for quzzing for "Export to Flash" feature in Captivate 4.
    You can either publish the quiz as a SWF and add it into flash or use learning interactions which you get as templates in flash for ELearning Suite.
    Manoj

Maybe you are looking for