load external movie

I am completely new to flash, I have two swf and I want to load one in all, 1. SWF and 2.swf, in 1. SWF on the first image that I loaded the film using this code

loadMovieNum ("2.swf", 1);

and in 2. SWF on the last picture, I put this code

Stop();

but when I run the two are running

what I want is that in 1. SWF on start 2. SWF should load and when it finishes then 1. swf should start (during 2 swf must be more visible on the screen).

How can I achieve this?

Just to clarify, you should have 3 total of the SWF, I can't tell from your post if you did.  main.swf, 1. SWF and 2.swf.

The only thing in main.swf is the clip emply for a charger and the action of load 1.swf.  There is no need of another clip from the film emply anywhere else that the other two movies will be load in that one in main.swf.

Tags: Adobe Animate

Similar Questions

  • Loading external movies

    I created a series of buttons that scroll position of a movieClip x according to an arrayIndex (with help). With variables, these buttons also cycle through their top and to the bottom of the State as the user clicks on to each other. I would like to also load an external flash animation in a music video for 'loader '. Specifically, a different external swf for each button.

    I don't know how to include the loadMovie script in the (beyond my skills) action script that controls my buttons x-postion. I tried to write the code below for each button, but it stops my scroll position x.

    I tried to use this code... but it stops my movieClip scroll.
    controller_mc. But1.onRelease = function() {}
    loadMovie ("chapterTest.swf", "_root.loader");
    };

    Here's my complete code. I would be happy to answer any questions and I will also attach my control file. Thank you.
    Click here to see my files

    I use this code, and it seems to work very well.

  • Higher level loading external movie

    Hello.
    I have two buttons load two separate external .swf files into a container of film. When they arrive, they play on the navigation. Do you know why this is happening? The navigation buttons are on layer 2 and layer 3 on the timeline on the top of the container. My 'container' resides on layer 1 in the timeline. This is the AS code on layer 4 of the timeline:

    Maybe add the loader as a child of your container on layer1?

    myContainer.addChild (IMGLoader).

    For now, you add the IMGLoader for document classes list (which would be the root mc in AS 2 terms, since it is the last thing added, now it will be on top of the content that you have added through the tool of programming on layers 2 and 3.

  • A movie that loads other movies of loading

    Hi all

    I'm working on a kiosk. There are two distinct versions of the Terminal, in English and Spanish. Both versions are in a separate folder. I want to create an exe that will give the user the choice of language and then load this version. Unfortunately, the separate versions of the kiosks also loading external movies. Thus, for example, when I load the English version it seeks the external swf in the same directory of the movie that is loading.

    Is there a way to get around this? Essentially, I want to 'lock', the film loaded so that external swf calls refer to the directory of the film loaded structure and not the film he asks. I can't put the external files in the same directory as the main movie because both versions use files with the same name.

    Thanks for any help available!

    -= Chris

    It's works how Flash in an html page and a projector. All external references are relatively to the location of the original file.

    You can build all of your references with:

    myClip.loadMovie (path + "filename.swf");

    And then just provide the variable needs-appropriate or redraw your file structure. You can either hardcode the path at the beginning of the file swf, or you can get clever and using System.capabilities to understand what environment you are using and provide a dynamic path.

    Of course, with the third-party tools, the Paris are open and there may be a way to change the behavior.

  • Problem with loading external swf files

    Hello

    I am currently working on a project which is an interactive and dynamic elemtry school presentation to the Denmark. I finished my project and it works perfectly, but only locally on my computer.

    The final draft should be implemented on the site and public work. I tried to implement the project on the site and unfortunately, it does not work as expected.

    When all the files where transferred to the ftp server, only a single files are responding and appear correctly.

    Interactivity of the project is based on a structure of Action script, which is based on the smooth transition between swf files (load another swf file after the action is triggered by clicking on a button) do any work.

    After days of trying to figure out the solution, I'm totally lost. One thing is to publish the project so that all action script will work and answer between swf files, and the other thing is to make it user-friendly for the Android and apple products.

    The presentation is quite heavy because of its loading external swf content files, which are images and movies.

    I really hope you can help me with my problem. I will gladly share the files and codes if it would help solve the problem.

    Best regards

    Agata

    It could be a problem of location of file from loading.  When you place a swf file in an HTML base for targeting anything that the SWF load becomes the folder of the html page.  You may need to adjust the target so that the target of swf files, load it as if it were in the same folder as the html page.

  • Load external swf and stopping on the 1st frame.

    Hello everyone

    I use following code to display an external swf file on the iPad.

    var request: URLRequest = new URLRequest ("http://< server ip > / test.swf");

    loader = new Loader();

    Loader.Load (request);

    The file load passes through each image and closes the application.

    Y at - it will be a way to stop the 1st frame once the file is loaded and move between the ribs to the?

    Thank you

    If you listen to when the charger is finished, you can stop the swf file:

    var mc:MovieClip;

    loader.contentLoaderInfo.addEventListener (Event.COMPLETE, swfloaded);

    function swfloaded(e:Event) {}

    MC = e.target.content as MovieClip;

    MC. Stop();

    }

    Now you can do what you like in this clip. As:

    mc.gotoAndStop ('some ' label');

    or:

    mc.gotoAndStop (10);

  • Problem moving loaded external image

    I am new to AS3 and I'm having a problem moving an external image loaded into a class. I don't know how to move the loaded external image.  I thought about creating a Sprite and then passing an extra child Sprite, which I would then load the image.  But I get this error:

    1119: access of property may be undefined spHolder through a reference with static type flash.display:Sprite.

    I commented below where the error is triggered:

    ==========================================

    package {}


    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.display.Loader;
    import flash.net.URLRequest;

    SerializableAttribute public class extends MovieClip {} snapshot

    public var strLink:String;
    public var strImage:String;
    private var spPolaroid:Sprite = new Sprite();
    private var ldPhoto:Loader;

    function SnapShot(strImg:String,strURL:String):void {}

    strLink = strURL;
    strImage = strImg;

    trace ("new snapshot");

    spPolaroid.graphics.beginFill (0xCCCCCC);
    spPolaroid.graphics.drawRect (0,0,120,140);
    addChild (spPolaroid);

    var spHolder:Sprite = new Sprite();
    spHolder.x = 10;
    spHolder.y = 10;
    spPolaroid.addChild (spHolder);

    loadImage (strImage);

    };

    private void loadImage(strUrl:String):void {}

    ldPhoto = new Loader();
    ldPhoto.load (new URLRequest (strUrl));
    ldPhoto.contentLoaderInfo.addEventListener (Event.COMPLETE, imageLoaded);

    };

    private void imageLoaded(evt:Event):void {}

    spPolaroid.spHolder.addChild (ldPhoto); This is where the error is to hit

    };

    };

    };

    ==========================================

    I can honestly say that I don't know why the problem exists... and that's probably because I'm not well versed in the field of the class.  But since you have a handle on the spHolder object, you do not need to target through the parent...

    private void imageLoaded(evt:Event):void {}
      
    spHolder.addChild (ldPhoto);
               
    };

  • Puzzled. External movies does not

    I created a Flash site that loads currently only a single external movie. When I test the site at home, the film charge very well. But when I send to the server, everything works - but the external movie. I tried to download the entire file and subs, intact, in order to reproduce the configuration of my local, does not. The film is only 48 k.

    Wierdly, other sites I did recently do not experience the problem.

    Thank you. I tried many directions, but also other points. Nothing.

    No worries, if. To topic 3: AM, I got a wave of thought and screw - it has just said. I've re-created the html page entire index where the main flash was loading. I don't know why this works, but it does. My films are loading fine now. Go figure.

    Thank you for having responded quickly.

    r

  • Loading external video Clips

    Here's what I do. My main timeline includes 3 "pages/mc. One is called index, which is just the basic design. The other is called ssfp_mc. Ssfp_mc has a loader_mc that loads external SWF in the 'content' section.

    Here's the problem:

    In the external swf that is loaded into the loader_mc, there is an another content_mc which contains 3 things:
    1 us.
    2. dynamic text (scrolling)
    3 buttons to control the scrolling

    When the external swf file is loaded to the dynamic text does not appear. The border comes and buttons appear, but the text is empty.

    I have therefore two .fla files ssfp.fla and ssfphome.fla (external swf). When I saw the ssfphome.fla the movie plays correctly and my text is there. It is only when I saw the ssfp.fla and load ssfphome.swf as the text disappears.

    Can someone help me please?

    Thank you

    nofx1728

    I got it to work! Yippy. I forgot to include the police. Thanks for your efforts. I really appreciate it.

    Thank you

    nofx1728

  • Loading external swf slow film

    Hello
    I'm working on this site and I'm making a video. I'm loading external video by creating an empty movie clip. I then assign a video to a button to call the external swf video file. It works fine locally, but when I download production it is SUPER slow.

    My external loading, it was designed to load faster. The video is 3 minutes. The external swf file that I created for the video is 5.2 MB.

    I'd appreciate any help you can provide.

    Thank you

    Here are some references that might help:
    http://www.Adobe.com/devnet/flash/articles/video_guide_03.html
    http://livedocs.Adobe.com/Flash/MX2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext = Flash_MX_2004 & file = 00000338.html

    Using the video as a file SWF means that it is the responsibility of the entire film until he plays what it is. In FLV format, it starts to play because the file is still loading. I recommend trying to use the file-> import-> import video and watch a progressive download option. I don't remember offhand if it is easily available in MX2004, but this is how it works with the CS3 version. If this does not work, the second link has a code to try.

  • Even if youtube videos is loaded the movie I watch goes smoothly

    Even if youtube videos is loaded the movie I watch goes smoothly.

    I mean the movie stop somewhere and then quickly increase the speed of the film and then back to normal speed.

    Why Adobe Flash does not work in Internet Explorer?
    http://Windows.Microsoft.com/en-us/Internet-Explorer/help/Adobe-Flash-not-working

    Troubleshoot installation of Flash Player for Windows
    http://kb2.Adobe.com/CPS/191/tn_19166.html

    Troubleshooting player stability and performance
    http://blogs.Adobe.com/JD/2010/02/troubleshooting_player_stabili.html

    You will find support for Flash Player in this forum: http://forums.adobe.com/community/webplayers/flash_player

  • Load external text in Adobe animate CC

    Hello!

    I am interested to load external text in a HTML5 Canvas with Adobe animate.

    This text should be bold and italic tags too.

    Any help?

    Concerning

    [Ask in the correct forum allows... Left generic Cloud/Setup forum for forum specific program... MOD]

    Of course, you can load data in the form of XML or JS files. JS (via the injected script tag) has the advantage of working from the local file system, while XML (via XMLHttpRequest) works for a web server.

    However, you won't be able to display any bold/italic formatting by using the native Flash text objects online. To do this, you superimpose native text HTML elements on the stage.

    Here is a simple example of loading an XML file:

    // load XML file
    var req = new XMLHttpRequest();
    req.open("GET", "test.xml", true);
    req.addEventListener("load", transferComplete);
    req.send();
    
    function transferComplete(e) {
        var rawXML = e.target.response;
        console.log(rawXML);
    }
    
  • Load external images in symbol or rectangle

    Hello

    Is a way to load external images into a symbol or a rectangle?

    Just google this topic and all the results I found looks like no work aboard animate 2014.1.1

    something like $(this.lookupSelector("target")).attr("src","folder/myimg.jpg");

    Loading jquery im - 2.1.1.min.js

    Thank you.

    Ok. If you have a container div, then it's easy. png or jpg or svg extension

    SYM. $('containerDivName') .css ({'background-image': 'url ("images/imageName.png")', 'background-repeat': 'no-repeat'});

  • Loading external Images causes memory leak

    I worked on an Actionscript 2.0 project that essentially loads external images.
    Whenever I have load and unload a new image, memory increases to 1 or 2 MB
    If all the images are in the cache, then it grew 4 or 8 KBs
    In the unloading of the images, I took the charger and the container of the image.
    Any thoughts why it behaves like this?
    Please find the below sample code snippet.


    ////////////
    btn_load.onRelease = function()
    {
    loadImage();
    }
    btn_unLoad.onRelease = function()
    {
    unLoadImage();
    }
    var mcListener:Object = new Object();
    var container1:MovieClip;
    var mcLoader:MovieClipLoader;
    var loader_reference =;
    var n = 0;
    function loadImage() {}
    var image_arr = ["http://xyz.com/image1.png ',' http://xyz.com/image2.png ',' http://xyz.com/image3.png ',' http: /xyz.com/image4.png http://xyz.com/image5.png ',''"];
    image_url var = image_arr [n];
    {if(n==image_arr.) (Length-1)}
    n = 0;
    } else {}
    n ++ ;
    }

    container1 = loader_reference.createEmptyMovieClip ("Container1", loader_reference.getNextHighestDepth ());
    mcLoader = new MovieClipLoader();
    mcLoader.removeListener (mcListener);
    mcLoader.addListener (mcListener);
    mcListener.onLoadComplete = {function(target_mc:MovieClip,_httpStatus:Number):Void}
    }
    mcListener.onLoadInit = {function(target_mc:MovieClip):Void}
    target_mc._x = 300;
    target_mc._y = 200;
    target_mc._width = 300;
    target_mc._height = 250;
    }
    mcLoader.loadClip (image_url container1);
    }
    function unLoadImage() {}
    mcLoader.unloadClip (container1);
    mcLoader = null;
    container1 = null;
    removeMovieClip (loader_reference.container1);
    }
    ////////////

    Thanks in advance.

    This code should run only once.  fix this.

  • Load external text

    Hi all..

    I have a small problem here. I'be was studying AS3, but I have a small task to do in AS2 and I'm confused. I just need to load external tex, it's thre code I have:

    loadText = new LoadVars();

    loadText.load ("external.txt");
    loadText.onLoad = {function (success)}
    if(Success == true) {}
    text_txt. Text = loadText.VARIABLE;
    }
    };

    I don't know what I am suppoused to put in place of the variable?

    Thanks a bunch in advance!

    what you used in the text file.  for example, if you have used:

    MyVar = it is in external.txt

    You can use:

    loadText = new LoadVars();

    loadText.load ("external.txt");
    loadText.onLoad = {function (success)}
    if(Success == true) {}
    text_txt. Text = this.myvar;
    }
    };

    or if you have just the text in your text without assignment to a variable file, use:

    loadText = new LoadVars();

    loadText.load ("external.txt");
    loadText.onData = {function (src)}
     
    text_txt. Text = src;

    };

Maybe you are looking for

  • Setup cannot copy the c_20936.nl file during the installation of additional languages

    original title: Setup cannot copy the file c_20936.nl   I have windows xp sp3 and try to install additional languages, East Asian and I get this error on copy. "Setup cannot copy the file c_20936.nl. Make sure that the disk in the Windows XP Professi

  • How to upgrade a PickerProvider dynamically

    Hi all I have a selector with two columns, managed by a PickerProvider. I want that, when a new value is selected in the first column, the values in the second column are updated based on the first column selection. Is this possible? Thank you!

  • NTI

    NTI is necessary for win7?

  • isue of table

    How can I trace the letters inside a table:for example if I have a tablevar arr:Array = ["dogs", "cats", "oranges", "apples"]; i want to trace what is the third letter of second  word (cats)?response should be (t)

  • Creating cloud follow

    (1) Jeg vil gentegne like mit subscription - da jeg har fået penge igen og da jeg stadig er studerende vil jeg like back 150kr det koster maneligt pa.(3) Er det mugligt for pengene kan blive trukket could d. 1?