Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorericv
    • CommentTimeJun 5th 2008
     
    I'm loading Captivate 3 swfs into a custom Flash player:

    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. I happens when the player.swf is playing locally in an html page.

    Can anyone give me a clue as to what's going on? (Please!)
    • CommentAuthorphilip
    • CommentTimeJun 5th 2008
     
    i've never come across that problem myself... i'm not sure what's happening in your file.

    you might want to consider using MovieClipLoader to load the SWFs since it has events you can use for troubleshooting.
    • CommentAuthorericv
    • CommentTimeJun 5th 2008
     
    Thanks Philip. I am using MovieClipLoader, but I found that even after the onLoadInit event, I need to wait for the Captivate vars/commands to be valid before I start using them.

    This problem only occurs when I'm playing the swf *locally* in a browser. For the first loaded Cp swf I can access the variables, and thereafter I can't. I just don't get it. :-\
    • CommentAuthorphilip
    • CommentTimeJun 5th 2008 edited
     
    You said

    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. I happens when the player.swf is playing locally in an html page.


    If the Flash movie works in the browser when the SWF is served by the web server, but the Flash movie doesn't work in the browser when the SWF is served locally, it makes me wonder if you have a Flash Player security issue. There are all kinds of weird security measures in Flash Player, maybe you hit on one. :neutral:

    Try changing your security settings to "always trust" content in your local directory. Worth a shot. :smile:
    • CommentAuthorericv
    • CommentTimeJun 6th 2008
     
    Worth a shot, indeed. That was it, Philip!

    You know, the fact that it wasn't working locally made me think of Flash Player Security, but A) there was no security popup as there usually would be and B) I couldn't imagine how I could access those variables once without a problem, but then not again. Bizarre.

    But anyway, thank you! Thank you! Saved my day.:cheer:
    • CommentAuthorphilip
    • CommentTimeJun 6th 2008
     
    Yeah, Flash Player 9 introduced a slew of new security features, some of which cause seemingly unrelated bizarre behavior, as you saw in your project.

    I'm glad in your case there was a simple solution. :smile: