Opening a swf from other swf

Hello Readers,
I have been working on an application.
There is a login screen for the application, in one of the swf's I have been writing the login code, along-with communications with XML.
Now once the user has been validated, I want to redirect the user to some XYZ.swf  file and close the login.swf file else if not then I have to display an error message.
The issue may sound simple, but I am a beginner at this.
I would be encouraged to explore my endeavors, if some one could help me out with it.
Thank You for reading.
Regards,
Jayesh Sidhwani

Absolutely! Yup, you got it! If you want to use a SWF with all its script and interactions, you have to put it in another place and treat it as an external URL. It has to be boss of its territory (I almost said 'domain' but of course it can be in the same domain).
Go navigateToURL() and you have no problems.
The problem is, we often want to load a SWF without navigating outside our main compiled SWF, and it's frustrating to find out that it loads but doesn't use its timeline code. When you want to do this, you should forget using a SWF and make the object an MC instead.

Similar Messages

  • Controlling swfs from other swfs.

    hi there. the site i've designed has a background layer, a
    navigation panel layer(menu) and the content is loaded as separate
    swf files on levels behind the navigation panel. to allow for
    seamless unload of the content i want to control the transition
    from the navigation panel layer.
    eg. When the user clicks on "Story" button, the navi panel
    layer communicates with the content layer (eg. Welcome page), tells
    it to play from frames 50-60 and then unload. After this, the
    desired content layer (in this case "Story") is loaded into, say
    layer 5.
    how do i go about coding this in actionscript? i'm slightly
    bamboozled by the actual script for it and i'd really appreciate
    some direction.

    If you load your movieClips into levels, you simply use those
    levels to direct them, e.g. _level5.gotoAndPlay(50)
    You can't tell a movieClip to play from frame 50 to 60 and
    then stop. I mean you could, but judging from the question you ask
    I guess you don't want to get into so much complexity.
    You tell the clip to play, and the clip should know itself
    when to stop. If you want to be a bit more flexible, you can set a
    variable in the clip and check it at certain keyframes via
    actionscript:
    in the controlling clip:
    _level5.stopFrame = 60;
    _level5.gotoAndPlay(50);
    And in the controlled clip in possible stop frames:
    if(stopFrame == _currentframe) { stop(); }
    You could enable this for every frame via an onEnterFrame
    event handler.
    Of course you need to tell the controlling clip to continue
    in some way, e.g. by sending it to another frame....
    This of course is very linear and old style programming, not
    object oriented.
    It would be better not to load into levels, but into named
    movieClips at certain depths. This allows you to use the
    movieClipLoader class, and program all that event-driven.

  • How to unload swf from anather swf

    I am calling 3 different swf in to test.swf.
    now i want to unload only 1 swf from test.swf
    can any 1 tell me how it is possible i am trying
    with removeMoviClip() and unloadMovie()
    but its of no use.
    regards
    Justbipin

    Maybe that's not really what you're doing?
    I would guess you rather have
    loadMovieNum("myFiLe.swf",99);
    This would be unloaded with
    unloadMovieNum(99);
    Good luck
    Wolf
    PS Or do you have a container movieClip called "99" to fool
    us all? :-)
    PPS watch your capitalization. If you call a file "myFiLe"
    (and mis-spell it somewhere) it might work on Windows, but not on
    Unix-derivatives. A potential source of "Why did it work when I
    tested it but not when I uploaded it?"

  • RemoveChild in parent.swf from child.swf (AS3)

    Hi! How do I remove a child from a parent timeline with an externally-loaded swf? Specifically, I have a main.swf that loads movie_1.swf and movie_2.swf. In the movie_1.swf, I have a button to remove movie_2.swf from main.swf.
    //--------- main.swf code:
    var loader1:Loader = new Loader();
    var loader2:Loader = new Loader();
    loader1.load(new URLRequest("movie_1.swf"));
    loader2.load(new URLRequest("movie_2.swf"));
    addChild(loader1);
    addChild(loader2);
    //------------- movie_1.swf code:
    removeMovie2_btn.addEventListener(MouseEvent.CLICK , removeMovie2);
    function removeMovie2(event:MouseEvent):void
    this.parent.parent.removeChild(this.loader2); // this does not work (get error code 2007, "Parameter child must be non-null")
    // Thank you!

    Here's how your code will change:
    //--------- main.swf code:
    var loader1:Loader = new Loader();
    var loader2:Loader = new Loader();
    loader1.contentLoaderInfo.addEventListener(Event.COMPLETE, assignMovie1Listener);
    loader1.load(new URLRequest("movie_1.swf"));
    loader2.load(new URLRequest("movie_2.swf"));
    addChild(loader1);
    addChild(loader2);
    function assignMovie1Listener(evt:Event):void {
          MovieClip(evt.currentTarget.content).addEventListener("eventTriggered", removeLoader2);
    function removeLoader2(evt:Event):void {
          loader2.unloadAndStop();
          removeChild(loader2);
    //------------- movie_1.swf code:
    removeMovie2_btn.addEventListener(MouseEvent.CLICK , removeMovie2);
    function removeMovie2(event:MouseEvent):void
          dispatchEvent(new Event("eventTriggered"));

  • Error when opening swf from another swf

    Hi all,
    I'll try to explain this as good as possible.... I made a maze game that works perfectly when I run it by clicking on it's own .swf file, but when I try to access it from another .swf file which is a menu for the games I created, it does not work.
    I have absolutely no idea where to look for the error, so my question is: can it be that the main.swf (which is the menu for games) could be the problem, or the problem must be in the maze.swf?
    Thanx in advance!

    no, all code is in the first frame of actions layer:
    stop();
        var rightArrow:Boolean = false;   
        var leftArrow:Boolean = false;
        var upArrow:Boolean = false;
        var downArrow:Boolean = false;
        var speed:int = 5;
        stage.addEventListener(KeyboardEvent.KEY_DOWN, stage_onKeyDown);
        stage.addEventListener(KeyboardEvent.KEY_UP, stage_onKeyUp);
        stage.addEventListener(Event.ENTER_FRAME, stage_onEnterFrame);
        function stage_onKeyDown(event:KeyboardEvent):void {
            if(event.keyCode == Keyboard.RIGHT) rightArrow = true;
            if(event.keyCode == Keyboard.LEFT) leftArrow = true;
            if(event.keyCode == Keyboard.UP) upArrow = true;
            if(event.keyCode == Keyboard.DOWN) downArrow = true;
        function stage_onKeyUp(event:KeyboardEvent):void {
            if(event.keyCode == Keyboard.RIGHT) rightArrow = false;
            if(event.keyCode == Keyboard.LEFT) leftArrow = false;
            if(event.keyCode == Keyboard.UP) upArrow = false;
            if(event.keyCode == Keyboard.DOWN) downArrow = false;
        function stage_onEnterFrame(event:Event):void {
            var rect:Rectangle = player.getBounds(this);
            var i:int = 0;
            var xBump:int = 0;
            var yBump:int = 0;
            if(rightArrow) {
                xBump = speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(rect.right + i, player.y, true)) {
                        xBump = i - 1;
                        break;
            if(leftArrow) {
                xBump = -speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(rect.left - i, player.y, true)) {
                        xBump = -i + 1;
                        break;
            if(upArrow) {
                yBump = -speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(player.x, rect.top - i, true)) {
                        yBump = -i + 1;
                        break;
            if(downArrow) {
                yBump = speed;
                for(i = 0; i < speed; i++) {
                    if(maze.hitTestPoint(player.x, rect.bottom + i, true)) {
                        yBump = i - 1;
                        break;
            player.x += xBump;
            player.y += yBump;
            if(rightArrow) {
                xBump = speed;
                for(i = 0; i < speed; i++) {
                    if(cilj.hitTestPoint(rect.right + i, player.y, true)) {
                        xBump = i - 1;
                        nextScene();

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

  • Control swf from separate swf in main file

    Im loading 2 swfs into my main swf. So I have a top swf and a
    bottom swf being loaded in externally into my main swf that makes 3
    swfs, 1MAIN swf loading TOP swf & BOTTOM swf.
    Is there a way to have the bottom swf control or command the
    top swf? I need a button on in the bottom swf to tell the top swf
    to load a movie.

    in AS2 you can point directly from one to the other with the
    correct pathing.
    IE:
    _level0.TopSwfLoader.content.FunctionToCall();
    or
    _level0.TopSwfLoader.content.Property = NewPropertyValue;
    _level0 takes you to the main swf (_root, but this works
    around if lockroot is set)
    TopSwfLoader.content is the content of the Loader component
    that has your Top.swf loaded into it. If you are not using a Loader
    component, then you can change this to the instance name of the
    Movie Clip that has the swf loaded into it.
    FunctionToCall()/Property is what you want to control. Either
    a function call or a property.
    In AS3 this works a bit differently. I would dispatch a
    custom event from the Bottom swf. Then the main swf would catch
    that event, and call the appropriate function/property in the top
    swf. I can elaborate more on this if you need.

  • Firefox 3.6 doesn't open links clicked from other programs (IM, etc.,)

    Whenever I try to open a link from either my IM or an IRC program like mIRC it won't open in firefox. I have to copy and paste the link.

    I now have FireFox 32.0.2 no joy. I have loaded ThunderBrowse which took care of Thunderbird but still can't load links from other programs. I fixed this before (other backups, I crashed my windows C drive and have been trying to restore), but can't remember how. I think it required reloading IE (I had deleted IE on my latest restore), but I have now done that with no joy.
    When I click on a link from another program, nothing happens, and when I right click and am offered "open in browser" nothing happens, and when offered " copy browser link" it doesn't copy.
    I tried resetting FireFox, no joy.
    Noticed control panel "set program access" doesn't hold, always goes back to custom, and defaults to "uses default browser"!
    Please help!

  • Adobe will not open PDF files from other programs

    This is on one of the computers in our office.  We use a medical records program called Sevocity.  This program stores documents that we import into the electronic charts as PDF files.  When we upgraded that computer from Adobe to Adobe Pro, it no longer opened the PDF documents stored there.  Is this an issue with the medical program or with Adobe Pro?  We already had Sevocity Support attempt to fix the problem, but they said the issue looked like it was with Adobe.
    We would like to troubleshoot by re-installing AdobePro, but we want to make sure that none of our files stored to the Adobe Document Cloud.  If we re-install Adobe, will those documents still be available in the online Adobe account's Document Cloud, or do we need to move those documents to the collective Creative Cloud?

    Yeah, it does open from other sources like "My Documents", but sometimes it won't open the print previews in our billing system either.  Communication error with secure sites and programs, maybe?  I don't get an error message, though.  It just displays the "processing" symbol next to the mouse for a second or two like it does when PDF's usually open, and then nothing happens.  We are using Windows 7 on that computer.  The other computer that runs on Windows 7 also has Adobe Pro XI, but does not experience these problems.  I have also put in a ticket with Sevocity (the program that is not communicating with Adobe). 
    And that's a relief about the Document Cloud!  We will try to re-install just in case it was something that went wrong with the initial install.

  • Loading External Swf with Other Swf Dependencies

    I'm trying to load an old project into a new project via swf. My old project had local external swf dependencies.In other words A.swf is the old project swf and it loads in B.swf and C.swf. I want to load A.swf into my new project. All the .swf file are local and will be loaded locally. Using the url and loader to load the old project's swf into the new project, I get an error that says that the stage must not be null. I have put A.swf, B.swf, and C.swf all within the same folder together in the new project. Is the correct approach? I'd like to know if this is even possible and if so how should I do it? Thanks in advance!

    Hmm I don't believe I have targeted the stage. Here's my code below.
    package ExergameShell.screens
      import flash.display.Loader;
      import flash.events.Event;
      import flash.net.URLRequest;
      import feathers.controls.Screen;
      import starling.core.Starling;
      import starling.events.Event;
      public class Leaderboard extends Screen
      private var url1:URLRequest;
      private var loader1:Loader;
      public function Leaderboard()
      addEventListener(starling.events.Event.ADDED_TO_STAGE, init); // necessary for all screens
      private function init():void
      url1 = new URLRequest("A.swf");
      trace(JSON.stringify(url1));
      loader1 = new Loader();
      loader1.load(url1);
      //Starling.current.nativeStage.addChild(loader1);
      //loader1.contentLoaderInfo.addEventListener(starling.events.Event.COMPLETE, resetFPS);
      private function resetFPS(event:flash.events.Event):void
      Starling.current.nativeStage.frameRate = 60;

  • 1046 from other swf

    1046: Type was not found or was not a compile-time constant:
    RectangleParticle.
    This is a error that I get. I know why, but I don't know how
    to fix like I want.
    I create a swf that have a class. This class have a metod
    like this:
    public function createSomeThing() {
    return new someThing();
    Simple. But in a another fla, I wont put like this:
    var myObject:someThing = swfLoaded.createSomeThing();
    I get that code. The soluction is:
    var myObject = swfLoaded.createSomeThing();
    But I want some form to do this and put intance of. Somebody
    help me?
    Thanks and sorry about my english.

    orlleite wrote:
    > 1046: Type was not found or was not a compile-time
    constant: RectangleParticle.
    >
    > This is a error that I get. I know why, but I don't know
    how to fix like I
    > want.
    >
    > I create a swf that have a class. This class have a
    metod like this:
    >
    > public function createSomeThing() {
    > return new someThing();
    > }
    >
    > Simple. But in a another fla, I wont put like this:
    >
    > var myObject:someThing = swfLoaded.createSomeThing();
    >
    > I get that code. The soluction is:
    >
    > var myObject = swfLoaded.createSomeThing();
    >
    > But I want some form to do this and put intance of.
    Somebody help me?
    >
    > Thanks and sorry about my english.
    >
    Import the class into the loading fla

  • Trigger swf from main swf

    Alright so i'm fairly new to AS3 and flash in gernal, have done a bit of work in flash but nothing this major and need some help. I have a longtail flash player setup to a rtmp server to stream live events using adobe flash encoder 3. In gerneral it works fine now the problem is content i have a second swf file within the same page that was a powerpoint presentation that is now converted to a swf.
    What i need to do is somehow send a command from the longtail video player to the slide show to trigger a slide push. So lets say we are live and streaming away i would need to send some sort of command that will tell the second swf to change slides so that everything is in sync.
    Currenty we are using Windows media enncoder and we just send out a command to a iframe within the encoder which changes the slide, the slides are JPG so its easy to do. In the testing stage we have a standalone slide controller that is linked to the iframe and we can push a slide from the contoller which push the slide on the iframe. This method works if i remove wmp and put in a flash place since it not going through a video stream, but i need it to go through the video stream and then tell either a swf to change a slide or an ifreame to change a slide.
    Reason it has to go through the video stream is so we can record the video and the commands so they can be setup as archive, so video and slide will cue at the right areas. Just like how you can send out commands from within windows media encoder and archive them and they auto trigger once he video plays.
    Well i just need a way that will sync video with slides i don't really care how its done just that its done. There has to be a way to record the slide push commands so they can be used again to play the video and so it advances the slides.
    PS this is related to my Job

    If you want to inject metadata into a life stream, you, perhaps, need to look into Flash Interactive Server. This forum is not a server forum tough. Managing FMS is a special skill/knowledge set. There is FMS forum.

  • Record or output SWF from dynamic SWF

    Hello everyone
    I have a SWF that pulls images from a database and dynamically creates a slideshow.  Each time the URL is loaded with different parameters, a new slideshow is shown.
    I was wondering if it is possible to record or output a SWF - for each dynamically generated slideshow?
    Meaning: The original slideshow is dynamically generated and at the same time, a copy of that slideshow is recorded and or an output of a second SWF is performed....
    Is that possible??
    Thank you for your time and attention

    1. You can't bind in the table name. You would have to use string concatenation for the table_name. But should still use binds for the variable.
    2. The syntax for execute immediate is not
    execute immediate 'select into ...'but
    execute immediate 'select ....' into variable.extending your example to include the table_name, you would end up with something like this:
    set serveroutput on;
    declare
    myvar varchar2(200);
    mytablename varchar2(30) := 'DUAL';
    secondvar number;
    begin
    EXECUTE IMMEDIATE 'select 1 from '|| mytablename ||' where rownum = 1' into secondvar;  --using 'using' if binding in the variable for a predicate
    dbms_output.put_line(secondvar);
    end;Edited by: dombrooks on Sep 23, 2009 4:17 PM

  • Opening an application from other application causes time out - urgent...

    Hi All,
    I have a wierd issue using weblogic server 9.2 mp2.
    Here is the breif overview of the environment and issue.
    Environment: WLS - 9.2 mp2
    In this weblogic server i have two Managed servers.
    Managed Server 1 : MS1
    Managed Server 2 : MS2
    Two Applications deployed on the server.
    myapp1 on MS1 URL: http://myappserver:7309/myapp1
    myapp2 on MS2 URL: http://myappserver:7310/myapp2
    Now here is the issue.
    I launch myapp2 from myapp1 using javascript window.open()
    In this configuration when i launch myapp2 from myapp1, myapp1 times out.
    Now when i deploy both app on same managed server (say MS1) and launch myapp2 from myapp1, myapp1 does not time out.
    I deployed myapp1 on my local machine and launched myapp2 and it works fine. It times out only when both apps are on same weblogic server but different Managed server.
    any pointers would be greatly helpful.
    Regards,
    B

    Hi James,
    Are you sure the ports are correct in the javascript link when the apps are deployed to different managed servers?
    Yes i made sure the port number is currect.
    Have you tried using absolute URL's instead of relative links?
    Yes i am putting the absolute URL.
    When you say the timeout occurs, where are you observing this timeout, in the browser or something in the server logs?
    I can see the time out in the browser. I checked the server log but it does not say anything.
    Hope it clears the air.
    Regards,
    B

  • GotoAndPlay specific frame in external swf from main swf

    I have a main swf that loads 2 external swfs.
    I click on button to see content of external swf #1 and see stuff. I do something that causes external swf to show other stuff (i.e. not at beginning state)
    In the main swf I click on button to see content of external swf #2. External swf #1 content is made invisible and I see content of external swf stuff.
    NOW, if I click on button to take me back to see external swf #1, I see it's content in current state. I want to force it to start over again at frame #1 which will reset content.
    However, no matter what I try, I can't seem to control which frame to go to in external swf using gotoAndplay.
    Here is code in frame #1 of main swf to load external swfs:
    //load academic movie
    var swfLoader1:Loader = new Loader();
    container1.addChild(swfLoader1);
    var url1:URLRequest = new URLRequest("academic.swf");
    swfLoader1.load(url1);
    //load wisdom movie
    var swfLoader3:Loader = new Loader();
    container3.addChild(swfLoader3);
    var url3:URLRequest = new URLRequest("wisdom.swf");
    swfLoader3.load(url3);
    Here is code in frame 2 of main swf that checks button to see where to go in external swf:
    //academic button clicked
    function academicClick(event:MouseEvent){
       container3.alpha = 0;
       container3.visible = false;
       container1.visible = true;
       container1.gotoAndPlay(1); //this is where I am trying to force it to start at frame 1
       container1.alpha = 1;
    I don't want to reload the external movie to force it to start over.
    Any help would be much appreciated.

    You can easily control this by making the external swf to load with your movieclip, The below is the code snippet that clear on accessing the specific frame on external swf.
    //Loading clips content
    var ldr:Loader;
    var mcExt:MovieClip;
    //Loading
    loadswf("external.swf");
    function loadswf(tmp:String):void{
        unloadSwf();
        ldr= new Loader();
        ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, progressListener);
        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
        ldr.load(new URLRequest(tmp));
        function progressListener (e:ProgressEvent):void{
            ploader.visible=true;
        function swfLoaded(e:Event):void {
            mcExt = e.target.content as MovieClip;
            ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
            mcExt.addEventListener(Event.ENTER_FRAME,onEnterfn);
            ploader.visible=false;
            addChild(mcExt);
    //UnLoading
    function unloadSwf():void{
        if (ldr!=null){
            ldr.unloadAndStop();
            removeChild(mcExt);
            mcExt=null;
    //Intervals (The part you work on the specific frame within the external swf
    function onEnterfn(e:Event):void{
        var num:int=mcExt.currentFrame;
        if (num==1) mcExt.play();
        if (num==9) {
                mcExt.skipmc.addEventListener(MouseEvent.CLICK,skipfn);
                function skipfn(e:MouseEvent):void{
                    mcExt.stop();
                    mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
                    gotoAndStop("help");
        if (num==mcExt.totalFrames){
            mcExt.removeEventListener(Event.ENTER_FRAME,onEnterfn);
            gotoAndStop("help");
    hope it solve

Maybe you are looking for

  • Error while reading the Long text Using READ_TEXT

    Hi friends, Right now I am working with Smartforms.While I am reading the Long text of the material using function module READ_TEXT  I am getting the following error if the text is not there. OUT_PURCH_PO ID GRUN language EN not found. I should not g

  • Flash CC crashes after publishing iOS app + publish settings are not being saved to file

    I have two issues: 1. Flash CC crashes every time I publish an iOS app 2. My Publish Settings are not being saved 1. Flash CC crashes every time I publish an iOS app Since yesterday Flash CC keeps crashing right after I publish an iOS app. The app is

  • [svn] 3870: Fixing compiler error in my sample.

    Revision: 3870 Author: [email protected] Date: 2008-10-24 08:57:35 -0700 (Fri, 24 Oct 2008) Log Message: Fixing compiler error in my sample. I accidentally copy/pasted a line. Modified Paths: flex/sdk/branches/gumbo_alpha/frameworks/projects/flex4/as

  • How to send Ctrl+Tab after ItemName in UI

    Dear Developer, I would like to know how can I send Ctrl+Tab key after ItemName column of system documents. I working on a alternative CopyTo function and I need to copy modified ItemName on document. I tried as: System.Windows.Forms.SendKeys.Send("^

  • Audio getting worse in FCPX

    I have been working on a 1 hour project over the past two months. I have recently noticed that the quality of the audio is getting worse. I have several interviews and each time I listen to them they are starting to sound like they are speaking under