Controlling an AS3 Captivate swf from Flex -- set quiz preferences

Hi All,
I'm able to use the SWFLoader to load the a Captivate.swf, and play it using the nextSlide, previousSlide etc.  However I am being blocked by the quizzes.
I have access to all the rd* and cp* symbols.   I would like to navigate through all the slides, but if I have a quiz, I am blocked from 'rdcmndNextSlide'  or setting 'rdcmndGotoSlide'  past the quiz.  Does anyone know if this can be done?  Please help!

DaddyDog,
Have you checked your Quiz Settings in preferences for your Cp4 project?  There are two options to allow backward movement and to allow reviewing of the quiz.  You may want to try adjusting these.
When you say you've been successful using the "nextSlide, previousSlide etc.", do you mean the buttons on the Cp playbar?
One trick that has helped me greatly is obtaining and modifying the movie xml.  The movie xml is generated at runtime and defines the slides, slide objects, quiz settings, quiz slides... etc.  You may want to examine this to see if you can manipulate it to your advantage.  Here's how I can reference it from an AS3 Cp4 widget:
var mainmov:MovieClip = MovieClip(root);
var movXML:XML = new XML(mainmov.movieXML);
Not sure how you have your Flex app loading the captivate swf, but I'm sure you could figure out how to reference the movieXML from another parent in your app.
HTH,
Jim Leichliter

Similar Messages

  • Planned order are showing in PWB even outside the View Recommendations for (Days from Today) set at preferences

    Hi
    We have set PWB preferences View Recommendations for (Days from Today) as 10days,
    But in supply/demand the datas are showing outside this time limit.For example if I saw today (04-Nov-days),only 10days from today suggested order dates order should show.But it is showing even orders in dec also.Any setup we mssed?
    Please guide us
    Regards
    VKPK

    Hi
    We have set PWB preferences View Recommendations for (Days from Today) as 10days,
    But in supply/demand the datas are showing outside this time limit.For example if I saw today (04-Nov-days),only 10days from today suggested order dates order should show.But it is showing even orders in dec also.Any setup we mssed?
    Please guide us
    Regards
    VKPK

  • How can I have an instance of mx.controls.List in a SWF from Flash?

    How can I have an instance of mx.controls.List component in a Flash, and import its SWF into a Flex application so it can controll it?  Is it possible to do this either at author-time or runtime?
    I see plenty of examples of how you can import a SWC into Flex, but how can I have my Flash interface, with Flex components already in place to be consumed by Flex?
    Thanks

    Hallo, here is more code for my problem:
    class Login {
       Devisen dev=new Devisen();
    class Devisen {
       JTextField field2;
       if (!Check.check_field2()) return; // if value not okay than return
    class Check {
       public static void check_field2()
         HOW TO GET THE CONTENT OF field2 HERE ?
    One solution ist to give the instance to the static function, with the keyword "this"
    if (!Check.check_field2(this)) return;and get the instance
    public static void check_field2(Devisen dev)BUT is that a problem for memory to give every method an instance of the class ? I have 50 fields to control and I dont want do give every check_method an instance of Devisen, if this is a problem for performance.
    Or do I only give the place where the existing instance is.
    Hmm...?
    Thank you Wolfgang

  • Having problem controling resizing of a swf from another swf

    I'm trying to build a site where all the pages are full browser and maintain aspect ratio. I would like to control the resizing from the menu page.  The resizing works fine from the page that's being resized but when I try to let the parent swf do that it has issues.
    Here's what the home page looks like with the controls built in  http://www.mespinach/example1/
    This example is the site it has a menu page that I open the others from I remove the resizing code from the home page and try to resize from menu.swf.
    here's the code from menu.swf
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var holder:btnHolder = new btnHolder();
    addChild(holder);
    stage.addEventListener(Event.RESIZE, moveHolder);
    moveHolder();
    function moveHolder(e:Event = null):void {
        holder.x = stage.stageWidth - (holder.width +25);
        holder.y = 50;
    holder.mcHome.buttonMode = true;
    holder.mcAbout.buttonMode = true;
    holder.mcMovies.buttonMode = true;
    //holder.mcLocation.buttonMode = true;
    holder.mcStore.buttonMode = true;
    //var objFileToLoad:URLRequest = new URLRequest();
    var swfLoader:Loader;
    addListeners();
    function addListeners():void {
        holder.mcHome.addEventListener(MouseEvent.CLICK, homePage);
        holder.mcAbout.addEventListener(MouseEvent.CLICK, aboutPage);
        holder.mcMovies.addEventListener(MouseEvent.CLICK, moviesPage);
        // holder.mcLocation.addEventListener(MouseEvent.CLICK, locationPage);
        holder.mcStore.addEventListener(MouseEvent.CLICK, storePage);
    var currentPage:*;
    var xImage:Sprite = new Sprite();
    homePage();
    function homePage(event:MouseEvent = null):void {
        SoundMixer.stopAll();
        addListeners();
        if(swfLoader){this.removeChildAt(0);}
        holder.mcHome.removeEventListener(MouseEvent.CLICK, homePage);
        var loadRequest:URLRequest = new URLRequest("home.swf");
        swfLoader = new Loader();
        swfLoader.contentLoaderInfo.addEventListener(Event.INIT, positionContent);
        swfLoader.load(loadRequest);
        this.addChildAt(swfLoader, 0);
        function positionContent(e:Event):void {
            currentPage = swfLoader.content;
            var loadedImage = currentPage.onStage;
            xImage = loadedImage;
    //        loadedImage.x= 0;
    //        loadedImage.y= 0;
            fillBG();
    function aboutPage(event:MouseEvent):void {
        SoundMixer.stopAll();
        var objFileToLoad:URLRequest = new URLRequest("about.swf");
        loader.contentLoaderInfo.addEventListener(Event.INIT,positionContent);
        loader.load(objFileToLoad);
        this.addChildAt(loader, 0);
        function positionContent(e:Event):void{
           loader.x= 0;
           loader.y= 0;
    function moviesPage(event:MouseEvent):void {
        addListeners();
        holder.mcMovies.removeEventListener(MouseEvent.CLICK, moviesPage);
        SoundMixer.stopAll();
        if(swfLoader){this.removeChildAt(0);}
        var objFileToLoad:URLRequest = new URLRequest("Movies.swf");
        swfLoader.contentLoaderInfo.addEventListener(Event.INIT,loadedHandler);
        swfLoader.load(objFileToLoad);
        this.addChildAt(swfLoader, 0);
        function loadedHandler(e:Event):void {
            currentPage = swfLoader.content;
            xImage = currentPage;
    function locationPage(event:MouseEvent):void {
        SoundMixer.stopAll();
        var objFileToLoad:URLRequest = new URLRequest("location.swf");
        loader.load(objFileToLoad);
         this.addChildAt(loader, 0);
    function storePage(event:MouseEvent):void {
        SoundMixer.stopAll();
        var objFileToLoad:URLRequest = new URLRequest("store.swf");
        loader.load(objFileToLoad);
         this.addChildAt(loader, 0);
    holder.addEventListener(MouseEvent.MOUSE_OVER, over);
    holder.addEventListener(MouseEvent.MOUSE_OUT, out);
    holder.addEventListener(MouseEvent.MOUSE_DOWN, down);
    holder.addEventListener(MouseEvent.MOUSE_UP, up);
    holder.mcAbout.buttonMode = true;
    holder.mcHome.buttonMode = true;
    holder.mcMovies.buttonMode = true;
    holder.mcStore.buttonMode = true;
    //holder.mcLocation.buttonMode = true;
    var myColor:ColorTransform = transform.colorTransform;
    function over(e:MouseEvent):void {
        myColor.alphaMultiplier = 3;
        e.target.transform.colorTransform = myColor;
    function out(e:MouseEvent):void {
        myColor.alphaMultiplier = 1;
        e.target.transform.colorTransform = myColor;
    function down(e:MouseEvent):void {
        myColor.alphaMultiplier = 5;
        e.target.transform.colorTransform = myColor;
    function up(e:MouseEvent):void {
        myColor.alphaMultiplier = 1;
        e.target.transform.colorTransform = myColor;
    //var cpc = this.child.child.getChildByName("onStage");
    //trace(cpc);
    var ratio:Number;
    var rRatio:Number;
    ratio = xImage.height/xImage.width;
    rRatio = xImage.width/xImage.height;
    var newRatio:Number;
    function fillBG(evt:Event = null):void {
        trace("width: " + xImage.width);
        trace("height: " + xImage.height);
        trace("ratio: " + ratio.toString());
        trace("rRatio: " + rRatio.toString());
        trace("newRatio: " + newRatio.toString());
        newRatio = stage.stageHeight/stage.stageWidth;
        holder.x = stage.stageWidth - (holder.width +25);
        holder.y = 50;
        if (newRatio > ratio) {
            trace("newRatio > ratio: ");
            xImage.height = stage.stageHeight;
            xImage.width = stage.stageHeight * rRatio;
        } else {
            trace("else");
            xImage.width = stage.stageWidth;
            xImage.height = stage.stageWidth * ratio;
        stage.addEventListener(Event.RESIZE, fillBG);
    messages from trace statements here:
    width: 939
    height: 704
    ratio: NaN
    rRatio: NaN
    newRatio: NaN
    else
    width: 561
    height: 704
    ratio: NaN
    rRatio: NaN
    newRatio: 0.49376114081996436
    else
    The height never changes
    retio and rRatio are NaN even though they are the Quotient of numbers.

    First, it is too much code to go through so I don't think I will give a complete answer. I assume this is a timeline code.
    Here is what I was able to notice:
    1. You declare the variables outside the scopes of the functions:
    var ratio:Number;
    var rRatio:Number;
    ratio = xImage.height/xImage.width;
    rRatio = xImage.width/xImage.height;
    var newRatio:Number;
    Naturally, they are NaN because neither xImage.height nor xImage.width are available at this point.
    I suspect that you anticipate that when code hits these lines - swf is already loaded but IT IS NOT. Flash executes ALL THE CODE to the end NOT WAITING for swf to load - this is one of the premises of asynchronous event model.
    To remedy this you need to place value assignments into the event handler:
    Version One:
    Declare variable at the top of the code before you start loading:
    var ratio:Number;
    var rRatio:Number;
    var newRatio:Number;
    Calculate values in event handler:
    function positionContent(e:Event):void {
            ccurrentPage = swfLoader.content;
            var loadedImage = currentPage.onStage;
            xImage = loadedImage;
            ratio = xImage.height/xImage.width;
            rRatio = xImage.width/xImage.height;
            fillBG();
    Or do it inside  fillBG(); method (version two)
    2. Nested functions are evil and I would like to suggest you reconsider using them and bring them outside of other methods' scopes. I am talking about positionContent handlers you use.

  • How to access the flash player button controls from FLEX?

    Hi,
    I'm creating one application in that i hav created a presentation in Adobe Presenter and i played in flex, now i want to control the flash player buttons from flex 3.
    Can anyone tell how to solve this, i need the solution for this very urgent, please help.
    Thanks in Advance.

    Hi,
    I'm creating one application in that i hav created a presentation in Adobe Presenter and i played in flex, now i want to control the flash player buttons from flex 3.
    Can anyone tell how to solve this, i need the solution for this very urgent, please help.
    Thanks in Advance.

  • Trouble comunicating from flex to swf, when the swf is embedded

    i'm a newbie to flex/air so i'm hoping there is going to be a
    simple answer to this problem. it's caused a massive headache!
    i have been using a swfLoader to load a swf, then triggering
    function calls within the swf from flex by using the following in
    the script tag of my mxml
    var mc:MovieClip = MovieClip(myMP3player.content);
    mc.loadMP3Player("file:///"+path, artist, title);
    where loadMP3Player is the function in the linked swf and
    myMP3player is the id of the swfLoader.
    this works great, no problems... but when i change the code
    so that the swf is embedded, rather than loaded at runtime the code
    above gives a
    "ReferenceError:Error #1069 Property loadMP3Player not found"
    error
    when i try to trigger the function.
    i have tried many different ways of referencing and embedding
    the swf, all have the same result. i.e. swf loads fine and the flex
    project compiles without errors, but i am unable to call the
    function.
    how do i reference the function in the swf when the swf is
    embedded?
    any help will be really appreciated.
    btw: i need to embed the swf as i am distributing the
    finished article as an air app.

    Relief - well sort of.
    I uninstalled the last Flash version (10.3 latest built that I downloaded a couple of days ago) on all my browsers.
    Then I downloaded the older 10.2 and installed, and the problem was gone. I'm on MacOSX Lion, by the way.
    So this must be a bug in the last flashplayer.
    Cost me five hours and a bucket of sweat.
    And from now on, I'll be pretty scared to give the flashplayer an update, that's a fact.
    ottie

  • Flashbuilder 4 Upgrade from Flex 3 getting following errors any idea

    Hi:
      I'm getting the following 2 errors when I try to compile a swf from Flex 3 to FB4
      Any ideas and how to get around this
      1) 1061: Call to a possibly undefined method addChild through a reference with static type mx.core:INavigatorContent
          this is the AS call
            app.dashboardstack.selectedCild.addChild(panel);
    2) 1118: Implicit coercion of a value with static type mx.core.INavigatorContent to a possibly unrelated type
                 mx.core.Container
            var subjectObject:Container = accordion.selectedChild;
    Thanks, Mike

    You need to read this, http://www.adobe.com/devnet/flex/articles/flex3and4_differences.html and a couple of other related articles in the Flex Developer Center.

  • Change Captivate 3 Quiz Preferences

    Because we do not yet use an LMS, we always use the same quiz preferences in our modules. Can I change something in captivate 3 to make the quiz preferences come in by default to the one setup that actually works for us?

    Open up a new project and set all your settings to your liking. Then save the "blank" project as "standardTemplate" or whatever and use that as a basis for all your new projects. That way your settings will always be the same.
    When I used Captivate 3 I had a standard template project, which contained my settings and the buttons I use in my projects. I just opened that up - saved it with the new project name and then I was ready to start.
    /Michael
    Click here to visit the www.captivate4.com blog

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

  • Flash SWF (with as3 code) integrate in Flex probelm

    Hello everyone,
    I'm having a problem to make my Flash SWF working in Flex. I
    created an animation movieclip, made a button and wrote a script to
    play this movieclip in Flash. Everything works fine but when I use
    SWFLoader in Flex to integrate this SWF in my application. This
    "play" button is working anymore in Flex.
    Should I remove the button and script in Flash and put them
    in Flex? How could I write the script in Flex to call a function to
    play this SWF?
    Is there any other way to solve this problem?
    Thank you in advance.

    "Smile2JP" <[email protected]> wrote in
    message
    news:gmqtde$fbi$[email protected]..
    > Hello everyone,
    >
    > I'm having a problem to make my Flash SWF working in
    Flex. I created an
    > animation movieclip, made a button and wrote a script to
    play this
    > movieclip in
    > Flash. Everything works fine but when I use SWFLoader in
    Flex to integrate
    > this
    > SWF in my application. This "play" button is working
    anymore in Flex.
    >
    > Should I remove the button and script in Flash and put
    them in Flex? How
    > could
    > I write the script in Flex to call a function to play
    this SWF?
    > Is there any other way to solve this problem?
    I have an example on my blog that demonstrates controlling a
    Flash movie
    from Flex:
    http://flexdiary.blogspot.com/2009/01/example-of-casting-contets-of-swfloader.html
    I included links to more basic examples in the code, so you
    might find one
    of them helpful even if this isn't.

  • SWF from Captivate in other video editors

    I have published some Captivate 2.0 movies to .swfs and they
    work fine and run in my browser just fine. However, another group
    needs them converted to a video format to put into another project.
    No problem, I say, since we have Adobe Premiere Elements 3.0
    which lists .swf as an import file format and .wmv and/or mpeg as
    an export file format.
    The problem is that when I bring the Captivate swfs into PE
    it sees them as 1 second/x# of frames. I can download a random swf
    from the Internet and PE reads it just fine, XXXseconds/XXX# of
    frames.
    I have tried tinkering with just about every setting in
    Captivate and still can't get it to work. I've also tried just a
    swf to .avi converted which worked fine, the .avi plays just fine,
    but when I bring that .avi into an editor like PE it's one second
    long again.
    Help!

    I can't believe I didn't notice before that Captivate can't
    output to a
    movie format.
    I'd download a trial version of Camtasia, open the SWF you
    created with
    Captivate, and use Camtasia to record it - then output to
    AVI.
    I think many conversion utilities expect Flash documents to
    be 'linear'.
    Captivate has movie clips in movie clips and is not a linear
    file...so
    these conversion utilities get confused.
    Essentially, I think you'll need to record the original SWFs
    playback
    with some other software then publish as a movie. There are
    lots of SWF
    to AVI conversion utilities out there but I dunno how well
    any will work
    with Captivate-generated SWFs.
    Erik
    dicknsont wrote:
    > I have published some Captivate 2.0 movies to .swfs and
    they work fine and run
    > in my browser just fine. However, another group needs
    them converted to a video
    > format to put into another project.
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Problem calling AS3 class's methods from Flex Project

    Sorry if this is a stupid question, but after 2 days of Web
    searching and 2 books give up; I am a Java and c# programmer and am
    having problems calling AS3 classes (in packages) from Flex Builder
    2 Flex Projects; the AS3 classes work great as Flex Builder "AS3
    Projects", but when I try to use the classes in a Flex Builder
    "Flex Project" I am able to see and set their properties, but
    cannot see (through "code completion") their methods (unless the
    class extends another AS3 class; and in that case I can see the
    base class's methods). Here is the code:
    AS3 Example Class:
    package asText {
    public class CheckWord {
    public var strData:String;
    public var strAProperty:String;
    public var intAProperty:int;
    // Constructor
    public function CheckWord() {
    public function TestMethod():void {
    trace("test...");
    public function WordLength():int {
    var intLength:int = 0;
    trace(strData);
    intLength = strData.length;
    return intLength;
    } // From Method WordLength
    } // From Class CheckWord
    } // From Package asText
    The MXML code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    width="442" height="488" horizontalAlign="center"
    verticalAlign="middle"
    backgroundGradientColors="[#c0c0c0, #c0c0c0]"
    xmlns:asTheText="asText.*"
    >
    <asTheText:CheckWord strData="Test words" />
    <mx:Panel title="Welcome to ........" width="337"
    height="393" horizontalAlign="center" verticalAlign="middle"
    layout="absolute" y="15" x="50">
    <mx:Text text="First Name" enabled="true" width="68"
    fontWeight="bold" x="27.25" y="36"/>
    <mx:TextInput id="txtFName" x="112.25" y="34"/>
    <mx:Text text="Last Name" enabled="true" width="68"
    fontWeight="bold" x="27.25" y="66"/>
    <mx:TextInput x="112.25" y="64" id="txtLName"/>
    <mx:Text text="email address" enabled="true" width="87"
    fontWeight="bold" x="17.25" y="96"/>
    <mx:TextInput width="189" id="txtEmail" left="112.25"
    top="94"/>
    <mx:Button id="butSubmit" label="Submit" x="95" y="194"
    click="asTheText:TestMethod();"/>
    ..............and so on ............
    All this does is give me an 1180 error:
    1180: Call to a possibly undefined method TestMethod.
    flexConveyMovie1.mxml

    Thanks, I have it working; I was not assigning an "ID" to the
    "MXML use of the class" (whatever the formal name for that is;
    like: <asTheText:CheckWord id="MyText" strData="The Data" />
    ) and then I was not referencing that ID in what I am refering to
    as calling methods for the Class; like:
    <mx:Button id="butTest" label="Test Function" x="39"
    y="208" click="MyText.TestMethod();"/>
    Also, I did some tests on this, and I am shocked that
    apparently neither of these two "uses"(?) of a custom AS3 class
    actually "call" the Class's constructor. Does that make sense or is
    that the result of how I am structuring this?
    Phil

  • Controlling multiple external swfs from main timeline

    Hi, I've been trying to combine the features of two tutorials I found, one that deals with controlling external swf's from the main timeline and the other that explains how to load and unload multiple external swf's.  I'd like to be able to load and unload multiple external swf's, and control these swf's buttons from the main timeline. 
    I asked this same question on the forum of the site where I found these tutorials, and receive only one reply saying that "it should'nt be hard to do." but they did not elaborate any further.  This left me think that I was missing something very obvious and I've spent too much time now trying to work what it is now.  I understand pretty much how both pieces of code work, but just can't work out how to combine them.
    If someone could explain it to me, I'd much appreciate it.
    Tutorial One code - controlling an external swf from the main timeline.
    var ldr:Loader = new Loader();
    var urlReq:URLRequest = new URLRequest("swfs/balls.swf");
    ldr.load(urlReq);
    function loadHandler (event:Event) {
    var myClip:MovieClip = event.target.content;
    addChild(myClip);
    function myClipOver(event:MouseEvent):void {
    myClip.myBlueBalls.stop();
    function myClipOut(event:MouseEvent):void {
    myClip.myBlueBalls.play();
    // set listeners
    myClip.addEventListener(MouseEvent.ROLL_OVER, myClipOver);
    myClip.addEventListener(MouseEvent.ROLL_OUT, myClipOut);
    // listener
    ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler);
    Tutorial Two code - loading and unloading multiple external swfs.
    var Xpos:Number = 110;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    // Btns Universal function
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
        loader.y = Ypos;
    addChild(loader);
    // Btn listeners
    eyesClosed.addEventListener(MouseEvent.CLICK, btnClick);
    stingray.addEventListener(MouseEvent.CLICK, btnClick);
    demon.addEventListener(MouseEvent.CLICK, btnClick);
    strongman.addEventListener(MouseEvent.CLICK, btnClick);

    I will not be able to help you with whatever relaxatraja provided though it is purported by relaxatraja to be clearly explaining what I was explaining (???).
    Your loadHandler function appears a bit confused.  For the code you show I don't see you assigning any event listeners for the events that will be dispatched in the loaded file.  As I showed earlier, your loadHandler function should be assigning a listener for the event that will be dispatched (modified slightly below). and if you have three different events being dispatched in the loaded file, then you'll do better to have three different listeners.  I show only one below for one of the events you dispatch...
    function loadHandler (event:Event) {
      // assign a listener for the loaded file's goExit function's event
       MovieClip(event.currentTarget.content).addEventListener("close", event1Handler);
    // I can't make sense of what you have here
        removeChild(myClip); // why ?? - it hasn't been added yet as far as I can see - error 2007?
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf"); // the event.target is the Loader
        ldr.load(newSWFRequest); // this will load over the file you just finished loading??
        ldr.x = Xpos;
        ldr.y = Ypos;
        addChild(myClip);  // why?? it has nothing in it
    function event1Handler(e:Event):void {
        // do whatever is involved with what the "close" event is supposed to do
        trace("goExit function executed");
    As far as what you have in the loaded file, you appear to be trying to pass the files names as if they were parameters.  The file naming should be done at the receiving side for the event handler function for the event listener.  While you could create a custom event that include parameters that you can pass, that's another level of coding that is better left for a future experience.
    Study the following - understand it before you try to use it.
    Below is a link to some files I made for another posting that demonstrates what I have been explaining.  The neurope file is the main file.  Publish the netherlands file so that you have an swf to load for it, and then run the neurope file.  The file that gets loaded (netherlands) only has a button in it that when clicked dispatches an event for which the main file (neurope) has assigned a listener.  The main file displays a message when the button gets clicked in the loaded file.
    http://www.nedwebs.com/Flash/neurope.zip

  • Controlling loaded swf from main timeline

    Hello,
    I'm working on loading external swf files for ios. I am able to load the swf files and set them to visible or invisible in different frames. I am having trouble controlling the loaded swf files from the main timeline. Specifically, I would like to have a button on the main timeline, that when clicked will move a loaded swf to frame 1.
    Here is a code that loads one swf file:
    var myLoader1:Loader;
    var loaderContext1:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader1 == null)
              myLoader1 = new Loader();
              addChild(myLoader1);
    myLoader1.load(new URLRequest("folder/file1.swf"),loaderContext1);
    myLoader1.visible = true;
    backbutton.addEventListener(MouseEvent.MOUSE_DOWN, backbutton1);
    function backbutton1(myEvent:MouseEvent):void {???????????? myLoader1.gotoAndStop(1);}  (this line does not work)
    (Once I load file1.swf, within the file1.swf I click a forward button to move to different frames. My question is: how do I code the 'backbutton' on the main timeline so that it causes the loaded file1.swf to go to frame 1?)
    Thank you for your help.

    sure.
    if the movieclip on the loaded swf's main timeline has reference mc, you would use:
    MovieClip(myLoader.content).mc.gotoAndStop(1);
    p.s.  you might find the following helpful,  http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

  • Cookie set on the request from flex disappers

    All,
    I need to set cookie for calls from flex. So on the server side I set the cookie and send the response back to flex. I used tools like tamperdata and debugbar to monitor the request calls and I found that the cookie i set is available + a
    JSessionID cookie is also available in the response headers "
    Set-Cookie".Since cookie is set on the response headers, it is expected to be available in all the next successive calls.
    But on my next successive call I see only the the Jsession id for all the calls. And in some call i see the cookie I set. 
    I use caringorm framework. So far I have analysed and found that if the call goes from same delegate I see my cookie, but if its from different delegate then i don't see the cookie in the request. I tried using same delegate for all my commands by creating objects of the same delegate but still it didn't work. 
    I feel creazy when i thing why only JseesionId is available in the cookie and not the one which i set in the calls irrespective of the delegate. I am not sure where i am going wrong. Even when i try to do document.cookie in the external interface call or in the URL using Javascript alert I only see a empty string not ven the Jsession id in the document.cookie. some thing is really creazy. 
    Sicne result event does not have the option of cookie, is flex eating the cookie set on the response. Then why on Jsessionid is available? I have also seen that in HTTPServiceMessage has an option of recordHeaders. Is my isseu is related to this. If so please let me know an example to use this. I am going insane with this issue. Please help!!

    It's probably not the same delegate you need to hit, but exactly the same HTTPService.
    This is a bit I've gleaned from encountering similar issues, so it might not be exactly right!
    The Flash Player attaches the cookie info into the Channel that is used to make the call. If you want the same cookie, you need to use the same Channel.
    The jsessionid you are seeing is the way the same session is indicated to back end resources, so if two Flash apps hit the same service it knows they are different.
    The way I'm currently playing with, is to keep the ChannelSet around and inject it into Services as I need them, that's covering most of my problems!

Maybe you are looking for

  • How do i get rid of Adware/malware on my Macbook Pro?

    I have a MacBook Pro, 15" with Retina Display, When i click on a page, mackeeper opens up in a new tab, also my default browser which is "Google.com" has been changed to "Search-Quick.com". i also just started seeing a pop up Ad, also from the "macke

  • Content Server - Print Attached PDF

    Dear experts, we have the following requirement - print (preferrably in batch mode) the attached PDF documents from DMS. The documents are located at the content server. To reduce the network load the documents should be accessed directly from the co

  • Problem reading data from two tables

    Hi experts, I'm developing a JDBC - IDOC scenario that needs to read data from two oracle tables. I have created a BPM that has a initial fork for the two channels and it works fine. The problem is that I need to read data from the first, two or both

  • The request for account "iCloud" failed.  The server responded with "400" to operation CalDAVAddSubscriptionCalendarQueueableOperation

    Does anyone know how to fix this problem?  Or even what the problem is?  I am trying to subscribe to a calendar and every time I do, it gives me this response: The request for account "iCloud" failed. The server responded with "400" to operation CalD

  • Shoot me or share the pain Apple geek family LOL

    Hello GUYS This morning really suck. Everything is broken. Where do I start!? I have a macbook pro and G4 on Leopard. I'm using it for a week. I'm quite happy with it. Unfortunately! problem 1- G4 ->the major problem I don't know how to solve Leopard