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.

Similar Messages

  • Tweens don't work in multiple external AS2 SWFs loaded by AS3 SWF

    When I try to load a single external AS2 SWF in an AS3 parent
    SWF, scripted tweens using the mx.tween class work fine. However,
    when I load two or more external AS2 SWFs, the first will work, but
    in subsequent SWFs the tweens do not animate. Does anyone have a
    solution?
    Related post:
    http://www.actionscript.org/forums/showthread.php3?t=147637

    SymTsb,
    So what is the code to do that? To delete the TWEEN variable?
    easeTime = .5;
    var day_handlerX:Tween = new
    mx.transitions.Tween(daynightlabel_mc, "_x",
    mx.transitions.easing.Regular.easeOut, daynightlabel_mc._x,
    (left_point+daynightlabel_mc_leftDifference), easeTime, true);
    day_handlerX.onMotionFinished = function() {
    trace("day_handlerX="+day_handlerX);
    trace("day_handlerX onMotionFinished triggered");
    delete day_handlerX;
    trace("deleted day_handlerX="+day_handlerX);
    does not work. the TWEEN object is still there.
    Can ADOBE say something??
    AS3 is ...

  • Controlling Embedded Captivate SWFs

    Hi:
    I have a SWF (SWF A) that I'm loading into a movieclip
    (Movieclip C)which is part of another SWF (SWF B). Basically, SWF B
    functions as a player, with play and pause controls. These controls
    control Movieclip C where the external SWF A is loaded into.
    Normally, I have had no problem with this and it always
    works. At run time, when you click the pause button on SWF B, a
    stop() command is issued to Movieclip C, which stops the play of
    the external movieclip (SWF A) loaded into it.
    However, I did a screen capture with Captivate and published
    it as a SWF. I loaded this SWF (SWF A) into Movieclip C in SWF B at
    run time. However, clicking the controls on SWF I created has NO
    EFFECT on the SWF I created in Captivate. It just keeps playing.
    I guess all SWFs are NOT created equal. How can I make this
    work?
    By the way, I do not want to use the embedded controls that
    come with Captivate.
    Loren
    “The only real mistake is the one from which we learn
    nothing." - John Powell

    Loren,
    > Normally, I have had no problem with this and it
    > always works.
    Good.
    > However, I did a screen capture with Captivate and
    > published it as a SWF. I loaded this SWF (SWF A)
    > into Movieclip C in SWF B at run time. However,
    > clicking the controls on SWF I created has NO EFFECT
    > on the SWF I created in Captivate.
    I'll bet it does have an effect, but you just don't see the
    effect
    you're expecting.
    > It just keeps playing.
    > I guess all SWFs are NOT created equal. How can I
    > make this work?
    A SWF is a SWF is a SWF. They are all created equal, from a
    certain
    point of view. Flash Paper SWFs are just SWFs, at bottom,
    even though they
    have additional functionality. Captivate SWFs are also just
    SWFs -- which
    means they must adhere to the MovieClip class, all of whose
    methods,
    properties, and events are listed in the "MovieClip class"
    entry of the
    ActionScript 2.0 Language Reference.
    It may be that Captivate nests its SWFs, so that you need to
    adjust your
    target when telling a given movie clip container what to do.
    Would you show
    the exact ActionScript you're using?
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Other problems with loading Captivate files into Flash AS3 project

    I have a Captivate file done with Captivate 3, published to
    Flash player 9 that is being loaded into Flash AS3. The captivate
    is a simple recording of some mouse clicks in a browser. I am
    displaying the playbar along the bottom, and its buttons all work
    fine except for the progress bar, where you can drag the knob and
    scrub back & forth in your presentation.
    This progress bar is not working as it should. I see the
    mouse cursor change to a hand, but when I click I cannot drag the
    knob to control the progress bar. The other buttons in the playbar
    do work (replay, pause, play, back, forward).
    This is a unique problem in that it is only happening when
    viewed in IE (7) when loaded into my Flash AS3 project. When viewed
    in Firefox in my project, or as a standalone SWF, or as a SWF
    simply embedded onto a plain HTML page, it works just fine.
    Does anybody have any insight?
    Another thing I notice with loading Captivate files with AS3
    is the the amount of output messages it displays. Rather annoying
    (unless this is a "feature" I've yet to be aware of - heh)

    Hi,
    I know exactly how you feel, there is simple answer; replace
    Captivate for Camtasia Studio 5 at techsmith.com. The weight on
    those shoulders will be gone! You'll smile more, be more
    socialable. One Happy Person.
    I am very happy person ;)
    Kind Regards,
    Boxing Boom

  • 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).

  • I need to change the height of a Captivate playbar using Flash Pro

    I need to change the height of a playbar in Adobe Captivate.  I have Flash Pro. I am very new to Flash Pro. I read.. "To change the height of the playbar, adjust the height of pbcBk_mc movie clip inside cpPlaybar symbol in Library".  The problem is I CAN'T FIND pbcBk_mc anywhere.  I see the cpPlaybar attrbute.  When I click on it and look at the timeline I am not seeing an attribute for pbcBk_mc or height.  Where in the world is it??

    You start with a source / authoring file for the "static" content (e.g., Name, Last:). Say this is an MS Word file.
    You master the "static" content..
    You keep this authoring file and have a backup of this file.
    You output a PDF and use Acrobat to build and fine tune the "form" (form = the form fields, not the "static" content).
    The authoring file  and output PDF (with form fields) gives you "rev 00".
    Now, you must change something in the "static" content.
    Open the authoring file and save as to a new version (e.g., "wordfile_v00"  becomes "wordfile_v01).
    Output this to "pdffile_v01".
    Use Acrobat to open the PDF form file "pdffile_v00". Save As to a new file name ("pdffile_v00update").
    Using Acrobat XI Pro the click-path Tools - Pages - Replace lets you replace a page or pages of "pdffile_v00update" with a page or pages from "pdffile_v01".
    This replaces the "static" PDF page content and does not affect the form fields on the page.
    (you may have to adjust position of form fields)
    Save "pdffile_v00update" to "pdffile_v01" to reflect the revised status of the PDF form file.
    Be well...

  • Disabling the fastforward and rewind in a swf using the AS3 video components

    Hi,
    I am trying to create a custom video player for a client that needs to be able to have the fastforward or rewind disabled until the end of the video file, and I am not sure were to start. Any help would be greatly appreciated.
    Alex

    the videoplayer class is a good place to start for creating a custom video player.

  • Preloading a published captivate recording to flash AS2

    Hi,
    I have a video recording made in adobe captivate 4 and disabled the preloader on the publish preferences. The reason why I disabled this is because other people cannot see the preloader while the captivate movie is loading but the preloader displays when I view it online usign my computer (Do you have any idea on how I can fix this?). As an alternative/workaround I created a movieclip loader class and load the external captivate movie in flash. The preloader that I created works. However, the captivate movie plays at once even if the movieclip loader hasn't reached 100%. How can I prevent the captivate movie to play while the preloader isn't 100%? I also get an error on flash while simulating download in flash. The error says:
    Branching::script:;;
    deepak branching : scripteval:[object Object];
    When I get that error, that is the time that the captivate movie plays. Below is my code in flash it is in AS2.
    var linking:MovieClip = _root;
    var level2 = linking.attachMovie("captivateHolder", "captivateHolder", this.getNextHighestDepth());
    var loader:MovieClipLoader = new MovieClipLoader();
    loader.loadClip("captivate/prequalified_contractors.swf", level2.captivateMovie);
    var preload:Object = new Object();
    loader.addListener(preload);
    preload.onLoadStart = function(target){
      trace("Started Loading");
    preload.onLoadProgress = function (target, loadedBytes, totalBytes){
      level2.captivatePreloader.text = Math.floor((loadedBytes/totalBytes)*100)+"%";
      level2.captivateMovie.rdcmndNextSlide = 0;
    preload.onLoadComplete = function(target){
      level2.captivatePreloader.text = " ";
      level2.captivateMovie.rdcmndNextSlide = 1;
    I tried to restrict the captivate movie from playing by putting rdcmndNextSlide = 0;
    My question is, how can I restrict the captivate movie from playing while the event is still on the onLoadProgress and make it play once the preloader reaches 100%.
    This is the first time that I used adobe captivate 4.
    Thank you.
    Regards,
    Harry

    You could pause the Captivate project when you start to preload it by using the Captivate system variables. Then when your file has been loaded 100% you could resume it again by using a different system variable.
    You can see a list of the various system variables here: http://www.cpguru.com/2009/04/28/system-variables-in-captivate-4-%e2%80%93-a-complete-list /
    The relevant variables for you would be:
    rdcmndPause = 1; (to pause the project)
    rdcmndResume = 1; (to resume playback)
    Naturally you need the instancename (where you load your Captivate movie into) infront of the variable name.
    myLoaderContainer.rdcmndPause = 1;
    /Michael

  • Exporting a Captivate Movie into Flash 8

    I am trying to export my Captivate movie using Flash Pro 8,
    but I keep getting the "message" I can only export if I had Flash
    MX 2004 installed. Is there a way around this????

    Hi mindtube and welcome to our community
    I am inferring from your question that you may think Adobe
    employees are monitoring this forum. While we might see one or two
    pop in here and there, by and large this is a total "user-to-user"
    community. I'm a Captivate user same as you. So you might want to
    post your question to support using the link at the bottom of this
    page. Either that, or via the WishForm linked below:
    Click
    here to visit the WishForm
    Cheers... Rick :)

  • Using Flash with Facebook Connect

    I was wondering if anyone has any information or resources on using Flash AS3 with facebook connect.  What I'm particularly looking for is how to do facebook authentication within the flash interface (so the user doesn't need to exit to the facebook website to connect) and also if there are any ways to make facebook calls from within flash once you have authenticated (rather than loading xml generated in PHP as I am currently doing).
    Any information or resources would be appreciated.

    The dial in process would be exactly the same as if you were dialing into the bridge as a participant. Most of the time it needs the following steps.
    Phone number:           800-555-5555
    Delay:                        3000 ms
    DTMF: (passcode)     123456#
    Delay:                        3000ms
    DTMF:                      1 or # (for a roll call or to join the bridge)
    However if the provider is not using a SIP compliant bridge, the Universal Voice tool will fail upon attempting to dial out.
    Also, for the hosted environment, the phone bridge must have a toll-free number.

  • 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.

  • Flash as3 video chat

    I am using flash as3 and red5 to record a  live chat
    But while i playing that videos it's unsync due to streaming . because i recorded user1 and user2 both members chat in separate flv's.
    Any possiblities to sync this two videos
    Thanks in Advance
    Sankar

    Hi.
    you can find the simple tutorial here:
    http://www.adobe.com/devnet/flashplayer/articles/rtmfp_cirrus_app.html
    working example:
    http://labs.adobe.com/technologies/cirrus/samples/

  • Problems in using Flash swf in captivate 5

    Hi,
    I am using captivate 5 and in that for a project I created some flash animation in flash cs4 and using the swf output file in captivate.
    So the problem is this:
    When I publish the project and try playing the project(exe/html output), those flash swf animations are not playing properly or not at all playing.
    There are around 40-50 slides in captivate and around 90% of those files contain flash swf animation. Some of the animations are playing and some are not.
    In flash cs4 the action script version is 3 and also I tried publishing the project in both flash player 9 and 10 but still some animations are not playing. Its random.
    Any fix for that? Its urgent.
    Thanks in advance.

    There's a known issue with the way Captivate 5 loads SWFs.  If the animation is not all on the main timeline level of the SWF, but the animation has been placed inside a symbol, Captivate triggers the animations to play when the SWF is loaded right at the beginning of the movie instead of making them play only on the slide where the SWF should play.  This means that by the time your movie gets to the slide in question, the animation has already finished playing, and it looks to you like it won't play, when in fact it already HAS played.
    This issue only affects SWFs with animation inside symbols, which is unfortunately the way most Flash animation designers are taught to create them.  It can be fixed via some AS3 code inside the SWF, but this is only possible if you have access to the FLA files used to create the SWF, and you know how to use Flash.
    There is more information in this thread: http://forums.adobe.com/message/3551526#3551526

  • How to Load an external swf using loadmovie in AS3

    I need to create a button with script, on rollover load an external swf into movieclip in AS3.  This was able to create this in AS2, but I need to create this in AS3

    Thanks again Ned.
    Kenneth Russell
    graphic artist, Sr.
    Lockheed Martin - MS2
    2323 Eastern Blvd., Baltimore, MD 21220
    Phone 410.682.0554    Fax 410.682.0543
    From: Ned Murphy <[email protected]>
    Reply-To: [email protected]
    Date: Thu, 23 Jul 2009 19:08:25 -0600
    To: kenneth russell <[email protected]>
    Subject: How to Load an external swf using loadmovie in AS3
    In AS3 you use the Loader class to load external swf's and image files.  You
    should be able to find examples both in the Flash help files and these forums
    if you search.  If you aren't aware of how to code buttons in AS3, that can be
    found as well.  In AS3, just about any kind of interction involves the use of
    event listeners in combination event handler functions... in the case of a
    button rollover an example would be...
    btnName.addEventListener(MouseEvent.ROLL_OVER, overHandler);
    function overHandler(evt:MouseEvent):void {
         // your loading code or whatever
    >

  • Using Flash 8 swfs in Captivate

    Does anyone know of a backdoor method of making flash 8 swfs
    work when imported into Captivate? We are then publishing the
    Captivate movies and integrating them in a Flash 8 interface.
    Your feedback is greatly appreciated.
    Best Regards,
    J

    Hi J and welcome to our community
    There is no way (back door or otherwise) that I'm aware of to
    do this. Unless, of course, you mean to use Flash 8 and export the
    Flash in a version 6 format.
    Hopefully we will see Flash 8 files working just dandy in
    Captivate version 2.
    Cheers... Rick

Maybe you are looking for

  • QT pro 7.1.5

    Help! when I upgraded to QT pro 7.1.5, it no longer plays automaticaly in my e-mails,web sites...ect it only displays a Q with a question mark in the center...Very frustrating Please help Dell   Windows XP   fast

  • Can we open Solidworks 2009 files with Acrobat 9 pro extended

    Hello, I'm testing Acrobat 9.0.0 Pro extended and I can not open Solidworks 2009 files. But I can open Solidworks 2007 files. I'm on Windows XP 64 bits. Can you tell me if this feature is corrected in newer version as 9.1 and later? Or any other solu

  • Exception caught by adapter framework: RfcAdapter: receiver channel not in

    Hi friends, I am  doing a file-RFC-file scenario. This is based on the blog: /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit The company ID is sent to the RFC through a xml file. RFC will return the company details which will b

  • Moving multiple fields in a single iternal table

    TABLES: mseg,mkpf,kna1. TYPES: BEGIN OF ty_mseg,          mblnr TYPE mseg-mblnr,          werks TYPE mseg-werks,          bwart TYPE mseg-bwart,          mjahr TYPE mseg-mjahr,          zeile TYPE mseg-zeile,          matnr TYPE mseg-matnr,         

  • Implementing Side Navigation(Level 3 menus) using core apps

    Hi all, I have created the require menu structure and its as followed Responsibility Menu | Home Page (attached to Responsibility Menu) | HTML Tab (attached to Home Page) | HTML Sub Tab (attached to HTML Tab) | HTML SideBar(attached to HTML Sub Tab)