Can a Flash 6 SWF (AS 1) read variables of a Captivate 4 SWF (AS 2)?

I have a Captivate 4 CP that I published to Flash Player 9, AS 2.0 SWF ( and Flash Player 7 as well, which didn't help either). I load this SWF in a Flash wrapper SWF (published to Flash Player 6, AS 1.0) which needs to read the rdinfoCurrentFrame and rdinfoFrameCount variables in order to find out if the Captivate movie has completed. The logic works when I test this locally, but not in our test environment, probably because the two (Flash SWF and the Captivate SWF) are in two different directories. My suspicion is that it is due to cross-domain issue which comes into play only with Captivate 4 SWFs, because when I tried replacing the Captivate 4 SWF with a Captivate 2 SWF it worked. I tried displaying the value of rdInfoCurrentFrame in the Flash wrapper using a dynamic text box, and while it shows and updates the value in case of a Captivate 2 SWF, it shows a null value for Captivate 4 SWF. Is this a known issue? I'm playing the content in Flash Player v9.0.45.0.
Also, can someone here tell me what ActionScript version does Captivate 2 publish the SWFs to?
Thanks in advance for your help!
Mohsin

The crossdomain policy is a result of the Flash player - not Captivate. It was implemented with FP 8.0 so if you publish to that then you will have the restrictions. However, the crossdomain policy only applies to different domains - not different directories.
Captivate 4 publishes to AS2 per default.
The problem you have is due to the fundamental changes between CP2 and CP4. While your paths for the variables might work for CP2 they have changed for CP4.
I can't remember exactly what they are right now and I dont have access to my files but try these paths
movie.rdInfoCurrentFrame
mainmov.rdInfoCurrentFrame
/Michael
Visit my Captivate blog with tips & tricks, tutorials and Widgets.

Similar Messages

  • Problem accessing variables in loaded Captivate swfs when run locally

    I'm loading Captivate 3 swfs into a custom Flash player. Here
    is pseudocode that just gets to the point:
    var cp1_mc:MovieClip = this.createEmptyMovieClip("cp1_mc",
    1);
    cp1_mc.loadMovie("captivate1.swf");
    [wait for (cp1_mc.rdcmndGotoSlide != undefined) via
    setInterval]
    // ***** cp1_mc.rdcmndGotoSlide is FOUND
    var cp2_mc:MovieClip = this.createEmptyMovieClip("cp2_mc",
    2);
    cp2_mc.loadMovie("captivate2.swf");
    [wait for (cp2_mc.rdcmndGotoSlide != undefined) via
    setInterval]
    // ***** cp2_mc.rdcmndGotoSlide REMAINS UNDEFINED
    INDEFINITELY
    The thing is, this problem does not happen when testing the
    movie in Flash, nor does it happen when the player.swf is run on a
    server. It happens when the player.swf is playing locally in an
    html page.
    Can anyone give me a clue as to what's going on? My best
    guess is that it has something to do with Flash Player Security,
    because it only happens locally in a browser, but I just don't get
    what's happening.

    Turns out it was a Flash Player security issue and I had to
    set security settings to "always trust" for my local
    directory.

  • Variables from Adobe Captivate to flash

    Hi,
    can anybody explain me, how to acces variables in captivate
    from flash?
    I can't export my CP file to Flash CS3, there is an alert
    message
    The following elements in your project have not been
    converted. They are not supported by this importer.
    Question slide
    508 compliance
    A swf animation slide has been imported. The following files
    must be made available at publish time:
    DefaultPreloader.swf
    Please make sure you publish the project to "D:\MyQuizzes\".
    Saving the project to this directory will ensure that test
    project will work with the swf animation slide.
    Thanks for answer...

    Hi tikiri,
    You can access variables directly using the movie instance.
    Please check the code below, where we are printing the varCount
    variable.
    on(release){
    _root.play();
    _root.createEmptyMovieClip("movie", 999);
    _root.movie._x=146;
    _root.movie._y=12;
    loadMovie("test/test.swf", _root.movie);
    trace (_root.movie.varCount);
    This code is specific for AS2 captivate swfs. You can try
    accessing any of captivate system variables also in this way:
    _root.movie.rdcmndNextSlide = 1; // jumps to next slide
    _root.movie.cpCmndMute = 1; // mute the audio
    trace(_root.movie.cpInfoCurrentDate); // print the current
    date
    _root.movie.rdInfoCurrentSlide =
    _root.movie.cpInfoLastVisitedSlide // jumps to last visited slide
    Please go through the list of available variables in
    captivate documentation. All the variables starting from "rdcmnd"
    are legacy variables and exist in captivate 3 projects as well.
    Ones starting with "cp" are new and are not available prior to
    captivate 4. Accessing method remains the same for both cp3 and cp4
    generated swfs.
    For accessing variables in AS3 captivate movies:-
    var movieLdr:Loader = new Loader();
    var movieURL:String = "CA3_Demo.swf"
    var movieURLReq:URLRequest = new URLRequest(movieURL);
    var cpMovie;
    movieLdr.addEventListener(Event.COMPLETE,loadComplete);
    function loadComplete(ae:Event)
    cpMovie = movieLdr.content;
    //Pause the movie
    cpMovie.rdcmndPause = 1;
    //Resume the movie
    cpMovie.rdcmndResume = 1;
    //Jump to next slide
    cpMovie.rdcmndNextSlide = 1;
    also try,
    // print current date
    trace(cpMovie.movie.cpInfoCurrentDate);
    addChild(movieLdr);
    movieLdr.load(movieURLReq);

  • How can I pass a variable(s) between two swfs?

    Hello all,
    I was wondering if it is possible to pass variables between
    two standalone swfs that are not being hosted on a webserver.
    I am creating a flash projector to go on a CD Rom and want to
    load another swf into the _root level and in the process, want to
    pass a variable or two to the "new" swf that is being loaded. Any
    help or insights that you can offer would be greatly appreciated!
    Thanks for your help.
    Tim

    if by _root level you mean you're loading something into
    _level0 you can't won't be able to use the localconnection. the
    sharedobject is your only option.

  • I have a Dell Inspiron 1545 and I can't download Adobe flash or Adobe acrobat reader, when I try to play my games it says update flash and when I try to download it the screen comes up blank

    I have a Dell Inspiron 1545 and I can't download Adobe flash or Adobe acrobat reader, when I try to play my games it says update flash and when I try to download it the screen comes up blank

    Try the offline installers:
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)
    For Adobe Reader: http://get.adobe.com/reader/enterprise/

  • How to read .xml file from embedded .swf(flash output) in captivate

    I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
    I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
    Here is is graphical demonstration of my query :
    Message was edited by: captainmkv

    Hi Captainmkv,
    Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
    Tristan,

  • How can I get serial numbers or the free versions of Adobe, Air, Flash Player 14, and Reader XI Pro

    How can I get serial numbers or the free versions of Adobe, Air, Flash Player 14, and Reader XI Pro that I had installed on my computer before Microsoft crashed my computer and I had to do a fresh install? I finished reinstalling Win 8.1Pro on my computer thanks to Microsoft Lvl 1 Techies corrupting my Command Structure so nothing would work. I had recently taken a picture of my installed programs (control panel, uninstall programs list) so that I would be able to reinstall everything I needed. I can't seem to find an email for the Reader which I remember paying for, the others I believe were free installs. Can anyone help me out.

    Safari Version 5.0.5  <  from your first post
    5.0.5 is an outdated version of Safari.
    There is an update available for Safari for version 5.1.1
    That may help.
    Click your Apple menu icon top left in your screen the click Software Update
    Restart your Mac after the updates are installed.
    Try full screen ...
    If you have problems using Software Update from the menu you can use the standalone installer here >  Safari 5.1.1

  • I bought a 5 yr old Mac G5 OSx 10.4.11, 2 GHz intel Core 2 Duo processor, 1GB 667 MHz DDR1 SDRAM memory.  It works fine but I can't get Thunderbird, Flash Player or Adobe reader to install -- it shows up on desktop as download but not App folder. Why?

    Question:  I bought a 5 yr old Mac G5 OSx 10.4.11, 2 GHz intel Core 2 Duo processor, 1GB 667 MHz DDR1 SDRAM memory.  It works fine but I can't get Thunderbird, Flash Player or Adobe reader to install -- it shows up on desktop as download but not App folder. Why?

    The downloads are probably .dmg files (disk images).  You would open the disk image (double-click it) to find the application or an installer.  If it's the application itself, you then drag the application to your Applications folder to "install" it.  If it's an installer, double-click the installer to run the installer that installs the application.
    NOTE:  If you iMac is Intel, it's not a PPC G5.

  • HT1677 I can't see videos because I can't install adobe flash player.  I read to enable plug ins, but I can't see either in my iPad.

    I can't see videos because I can't install adobe flash player.  I read to enable plug ins, but I can't see either in my iPad.

    You can try using the 'official' Facebook app or Friendly For Facebook - not sure whether they work with videos.

  • Child.swf to pass two variables to parent in global function

    Hi, I have a parent.swf and wish to load a varying child.swf as a sub-menu. How do I establish a global function that will allow the child.swf to pass back two variables (storyName & storyType) to the parent and kick off a task.
    The submenu (swf) items will change so I cannot explicitly add a listener to a child.button. The submenu is on a children’s library so will have numerous graphics and movieclips included so I don’t think it would be suitable to simply call xml data to build a menu at runtime (at my level of knowledge). There will be a number of child.swf depending on books available.
    I am not familiar with package { and public class { etc...
    In as2 I would have used a _global.function() and used that to pass the variables back to the parent and then start a parent.action.
    Totally new to AS3, suggestions appreciated. I have no problem loading the child.swf.

    Hi Ned, thank you for your response. I don’t know if it is relevant, but the container clip is run via AIR. That seems to affect some things as I’ve lost fullscreen functionality somewhere.
    I tried you suggestions, if I have translated it into place correctly I don’t know. Do I need to treat the parent.parent as a variable (yes this one is done via a loader) ?
    I get an error if I leave the function call open, I can tell I’m getting into the call as the trace on each side is happening.
    In the External Movie:
    blob_b.addEventListener(MouseEvent.CLICK, ms_bF);
    function MbRemEL(nameof:String):void {
                blob_b.removeEventListener(MouseEvent.CLICK, ms_bF);
    function ms_bF(event:MouseEvent):void {
                var m_ar:Array = new Array();
                m_ar=event.target.name.split("_");
                MbRemEL("r");
                trace("StoryMenu: "+event.target.name);
                if (this.parent.parent != null){
                            MovieClip(parent.parent).story = event.target.name;
                            //MovieClip(parent.parent).gcr(event.target.name);
                             // = TypeError: Error #1006: gcr is not a function.
                            MovieClip(parent.parent).gotoAndStop("g_home");                   
    In Container Movie:
    function gcr(stry:String):void{
                trace("gcr: "+stry);

  • Can a flash website launch quicktime files?

    Hi
    I am not really familiar with what options are available for
    video but would appreciate some advice on what is achievable. Does
    the server always need to be enabled in some way to run any type of
    flash video, if so can flash launch quicktime files?
    Many thanks
    Tristram23

    If your question is to whether Flash can load QuickTime into
    a swf, the
    answer is no. Flash can load Flash Video (.flv)
    If your question is whether Flash can launch a QuickTime
    movie, use
    getURL("yourMovie.mov")
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "tristram23" <[email protected]> wrote in
    message
    news:elbdfj$m8i$[email protected]..
    > Hi
    >
    > I am not really familiar with what options are available
    for video but
    > would
    > appreciate some advice on what is achievable. Does the
    server always need
    > to be
    > enabled in some way to run any type of flash video, if
    so can flash launch
    > quicktime files?
    >
    > Many thanks
    >
    > Tristram23
    >

  • Flash/Javascript access of USER Variables

    Hi all,
    I've searched online many many times and have made many attempts in Flash and in Captivate 4, but to no avail, and I'm wracking my brain over it. By now I've almost given up on Captivate, since what has wasted so much time could have been done in a day or so using Flash to make the entire thing. I would like to avoid that though, since this is a University project, not a personal project.
    I need to access USER created variables, both in Flash animations AND in Javascript (i.e. in the execute Javascript field under multiple actions). They need to be accessed this way since there's no default way to multiply variables or append strings of text to variables (things which as an experienced AS2 user I know should be very simple to do). Also, I want to be able to copy the contents of one (user) variable to another (system) variable later on (for LMS).
    So say I have a user defined Captivate variable called 'userPath', and on a certain slide I want to multiply it by 5 in Flash or in Javascript (just an example).
    How could I access it from Flash with AS2? (I've tried _root.userPath, _root.movie.userPath, no luck).
    How could I access it from the Javascript? (I am comfortable with programming, but don't really use Javascript, so I may be having a problem with the notation).
    Any help would be greatly appreciated, since I need to get this work done soon. Many thanks.

    Lboro SB,
    How familliar are you with AS3?  I would recommend altering the CaptivateMaintimeline.as file typically located at C:\Program Files\Adobe\Adobe Captivate 4\ActionScript 3.0.  You can write your custom functions in AS3 to do your multiplication or whatever and it will use this file to compile your Cp4 project.  Just make sure you're publishing your Cp4 project in AS3 in the project properties.  You could also add your function to the list of ExternalInterface.addCallback(... so that your function could be accessible from JavaScript.  Here's my custom function I've put in the CaptivateMaintimeline.as file:
    /JBL: For External Interface setting any type of value
            public function jim_cpSetValue(variable:String, val):void
            //myTrace("cpSetValue variable1 " + variable + " ; val  " + val);
            var arr:Array = variable.split(".");
            var ref = this;
            for(var i=0; i < arr.length -1; i++)
                ref = ref[arr[i]];
            ref[ arr[arr.length -1] ] = val; // This works fine for numbers, booleans and strings
    // JBL: adding callback to set variables in cp via JavaScript
    ExternalInterface.addCallback("jim_cpSetValue", jim_cpSetValue);
    If you want to do this in JavaScript, you need to get a reference to the Captivate main movie.  I do it like so:
        // Set objCaptivate in IE
        CaptivateObj = document.Captivate;
    Then you can call your custom function
        //JBL:  Custom Function to set Captivate Vars via Javascript
        function setCaptivateVariable(myVariable, myValue)
            CaptivateObj.jim_cpSetValue(myVariable, myValue);
        //JBL:  Shortcut function for Getting values from Captivate SWF
        function getCaptivateUserVariable(n)
            return CaptivateObj.cpGetValue(n);
    I also HIGHLY recommend a lightweight .js file by Philip Hutchison that can do much more located here.
    Good Luck,
    Jim Leichliter

  • Why do scaled and masked captivate swfs respond to clicks outside the mask? Can it be stopped?

    We load Captivate 3 SWFs at runtime into our own course player, with movieclip.loadmovie. Our player is built with AS2 and published to Flash 8. We publish our Captivate movies to the same specs. Our latest challenge requires scaling and masking the Captivate SWF.
    A click outside the masked Captivate still triggers a click as far as Captivate is concerned, and it throws up a “that’s incorrect” message. Specifically, it only happens when you click in a spot that has masked Captivate “behind” it. In other words, if there would be Captivate there if the mask was turned off, Captivate will respond even when the mask is turned on.
    Is there a way to make Captivate ignore mouse clicks outside of the mask? I think it must be responding to Mouse.onMouseDown() since normally a masked object won’t respond to clicks outside the mask.
    I’ve put together a small test file to demonstrate exactly what’s happening, and I’ve posted it here: http://www.tbgprod.com/_experiments/captivatemasktest/captivatemasktest.swf
    I’ve also uploaded the .fla file. It’s ony 50kb and it’s available here: http://www.tbgprod.com/_experiments/captivatemasktest/MaskTest01.fla
    You’ll also need the Captivate .swf file if you want to test locally. Here’s the direct link. Right-click and save target as: http://www.tbgprod.com/_experiments/captivatemasktest/DisplayProperties.swf
    My question is "how do I make Captivate ignore clicks outside the mask?"
    Many thanks,
    Todd S

    Even if anyone just has any knowledge of how Captivate 3 movies actually monitor the mouse, I'd be happy to hear it. In other words, can anyone confirm my hunch? If we knew the internal structure of the Captivate SWF would it be possible to clear and restore some function as the mouse moves inside or outside of the target area? Something like this:
    on mousemove {
         if mouse has crossed boundary to the outside {
              functionBuffer = container.whatever.whatever.function;
              container.whatever.whatever.function = null;
         else if mouse has cross boundary to the inside {
              container.whatever.whatever.function = functionBuffer;
    This would kill Captivate's mouse functions and then bring them back to life, as the mouse exits and re-enters the masked Captivate area. Two questions:
    1. If we knew the necessary whatever.whatever.function information, would this work?
    2. Does anybody know the necessary whatever.whatever.function information?

  • How to create a flash menu that links to specific slides with in a Captivate swf

    Hi,
    I was wondering if someone could step by step explain how to
    create a menu in flash that links to specific slides with in a
    captivate swf. I understand that there is a rdcmndGotoSlide
    command. I can't seem to get it to work.
    Thanks,

    pdp_1 wrote:
    Hi!
    I would like to create a DVD menu that offers two languages. So the first page gives two options: Language 1 and Language 2. Then depending on which language you choose, you go to a menu that proposes different videos and a photo slideshow.
    Regardless on which language button you click on initially, you get the same content but in different languages.
    I've been looking at Premiere's templates, which I can certainly customize, but I really don't see how to create the double menu. Does anybody have an idea?
    Put the video with the first language on the timeline followed by the video with the second language.  Use chapter markers so you can have each video as a chapter in the menu.
    I use Premiere Pro, so I can't give more specific directions. Perhaps somebody like ATR will chime in.
    Also, I have another question: can I put videos from different projects in the same DVD with Premiere or must all of the videos that go into the DVD be in the same project?
    Thank you very much!!!
    pdp1
    They must be in the same project.

  • Flash Player And adobe reader not working and downloads don't work

    I have IE 8 and windows vista and everything has worked great for 2 years until 2 or 3 weeks ago.  At that time my flash player stopped working so I could no longer get videos , streaming stock quotes, weather map loops, etc and when I go to websites that use Flash (i.e. Piaaz Hut) it wouldn't work.  Also, at that same time my adobe reader stopped working properly and I can't view mosy PDF Files.
    I have gone through many of the posts on this forum and have tried many of the fixes, but none have work for me.
    I tried to uninstall the Flash Player, but I didn't use the Adobe uninstaller.
    Whenever I try to update or load the Flash player, a dialog box with the globe tossing papers to the folder appears and then after a few seconds I get the the message that IE can't install_flash_player_ax.exe from fp download.adobe.com, and then a message that says IE was not able to open this internet site. The requested site is either unavailable or cannot be found.
    In control panel programs I have listed
    Adobe AIR      no size
    Adobe Flash Player 10 active X           no size
    Adobe Reader 9.3     141mb
    Macromedia Shockwave player      no size
    In Tools i have the following add ons and they are all enabled
    Shockwave Flash object 10.0.42.34
    Adobe PDF Link Helper
    Adobe PDF Reader
    Macromedia Shockwave Active X Control 10.1
    As I said I've already attempted a number of the fixes on this forum, but so far no luck.
    Does anyone have any suggestions on what else I might try?
    Thanks

    Ok, I tried to download the firefox browser but IE wouldn't let me download it.  My friend downloaded it from their computer to a flash drive and I loaded it to my computer from the flash drive.  The download of Firefox from the flash drive worked, and now I'm using Firefox & both my adobe flash player and my adobe reader are working just great.
    However, neither the flash player nor the reader are working if I use IE, so I guess I will just have to use Firefox as my browser.
    I'm going to mark my question as answered since I really don't care that I have to use Firefox instead of IE,although I can't understand why it works using Firefox but not using IE.
    Thank you so much for your assistance in walking me step-by-step through this problem until I was able to reach a satisfactory solution.

Maybe you are looking for

  • Ad Hoc Query testing when upgrading to ECC 6.0

    Hi, We have a decentralized SAP HR system. Instead of developing custom ABAP reports, we have given permission to superusers to create their own reports using Ad Hoc Query. This has lead to large number of Ad Hoc Queries  (>2000). Techincally speakin

  • How to create new structure for SOP?

    How to create new structure for SOP? and transfer data for long term planning?

  • How to import .my to LMS 3.2

    Hi all, I need to import a .my file downloaded from Cisco in order to monitor Digital Signage Manager notifications (snmp) 1st .my file is ftp://ftp-sj.cisco.com/pub/mibs/v2/CISCO-DIGITAL-MEDIA-SYSTEMS-CAPABILITY.my and 2nd one is ftp://ftp-sj.cisco.

  • Keyboard and search not working!!!!!!

    my upper case icon and #'s as well as the space dont work and search is not working just the lower lines dont work ...tried restore nothing!!

  • How to set mime types in AppServer 8

    Couldn't find commands to list mime types or set mime types used by Sun Java Application Server 8