External Movie Loading

I have the main movie with a button on it with the following
command:
on (release) {
loadMovie("loadCentralCommandSGUnload.swf",
"_root.loadCentralCommand");
That works great - it loads the movie into the
loadCentralCommand clip
The problem if I load a different movie to a different
location on the main movie the same command applied to a button on
this loaded movie will not work as the button above does to load
the - loadCentralCommandSGUnload.swf. This is possible to do isn't
it? If so, what am I doing wrong - the thought the _root was the
root and can be applied from the main movie or loaded movies?

not exactly sure what you are after, but why create a clip on
the timeline for each movie you want to contain a loaded movie....
I'd simply create one (unless you need multiple up at once) and
just load my movies into that one container clip like this....
on(release) {
container_mc.loadMovie("loadCentralCommandSGUnload.swf", 1);
Copy and paste the code above on all the buttons you need to
load a movie. All you have to keep changing is the name of the swf
file you want to load.

Similar Messages

  • Need buttons on base movie to become inactive when external movie loaded

    Hi,
    I am working on a portfolio website and I have all my navigation with buttons linking to other pages, on the base level. All the buttons are  scattered around the stage and when one of these buttons is clicked an external movie is loaded in the centre of the page.
    The movie is a big white box with a slideshow of images from my portfolio in the centre of the stage.
    My problem is that the buttons on the base level are easily clicked by accident, even though you cant see them with the white box.
    Is there anyway I can stop the base movie clip working, once a button is clicked? When the user has finished looking at my slideshow images then they press a close button.
    Code used for button on main timeline:
    swfBtn.onRelease = function()
        loadMovieNum("graphicLayouts.swf", 1);
    Code used for Close button on external swf:
    on (release) {
         unloadMovieNum(1);

    In your case I'd recommend writing the said above two function on main timeline. It should go something like this:
    function enableBtns():Void
         BTN_1.enabled = true;
         BTN_2.enabled = true;
         // ... and so on
    function disableBtns():Void
         BTN_1.enabled = false;
         BTN_2.enabled = false;
         // ... and so on
    Now, in the function where you call the loadMovie method (it's on the main timeline, right) just write:
    disableBtns();
    And in the external swf file, where you unload your swf write:
    _level0.enableBtns();
    It should work if I didn't bug anything.

  • External movie loading at highest level

    Hi.
    I have two buttons loading two separate external .swf files
    into a movie container. When they come in, they play over the
    navigation. Do you know why this is happening? The navigation
    buttons reside on layer 2 and layer 3 on the timeline on top of the
    container. My "container" resides on layer 1 on 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).
    Right now you are adding the IMGLoader to the document
    classes display list (which would be the root mc in AS 2 terms,
    since it is the last thing added, currently it will be on top of
    the content you added via the authoring tool on layers 2 and 3.

  • Movie inside of a loaded external movie

    Hi
    how to control a mc inside a loaded external movie?
    so I have a main.swf, loaded a ex.swf into it by using loadMovie, and inside ex.swf there is a mc called 'mc'
    how do I control 'mc' from main.swf? I tried something like newLoader.mc._x +=1;  ( newLoader is ex.swf), it doesn't work?
    Thanks for reply.

    Hi Ned
    after I read your reply, i went on make a new sample file just to try it out, and it work, then I went back to my file and found out on these code
    var currentObject = new Object;
    currentObject = newLoader.newLoader2.newLoader3;
    var currentObjectColor = new Object;
    currentObjectColor = currentObject;  
    and then I have
    var my_color:Color = new Color(currentObjectColor.mc);
        trace (allowColor);
        my_color.setRGB(this.colorCC);
    for some reason, after I replace currentObjectColor to just currentObject, it work just fine, I don't know if the problem is from putting one object equal another one, but as far as I need this would work for me.
    thanks a lot.

  • Passing variables to loaded external movie

    Ok, this problem has beaten me for the last 2 days. It seems
    to be extremely simple, I am on main movie and I am using
    MovieClipLoader class to load external movie callMe.swf into movie
    holder called holder_MC, then from main using onLoadInit or
    onLoadProgress listeners I can target dynamic text inside
    callMe.swf as holder_MC.myTXT.text = "blablabla" or I can change
    frames in callMe.swf by holder_MC.gotoAndStop(5). But HOW TO PASS
    VARIABLE myVar to callMe.swf so it executes something there? Using
    holder_MC.myVar DOESN'T WORK!!!!!!!!!!!!!!
    Thanks for any help,
    Zbynek

    UPDATE... I copied the link to another page with my variables in the image attributes as I posted above. And it works using the values that are cached for those items. Is there any way to do this on the same page as my original link without my users having to change to a different page?

  • Loading external movies differently

    I am making a web site with several pages that the content
    will load as an external movie. Right now I have all loading with
    the nav buttons "on release". The first page loads through one
    blank clip and the rest in another. What I would like to do is have
    the first external page/clip content load with the main page and
    also reload with the nav button if someone wishes to return and
    leave the other buttons to remain loading each pages external
    content like they are now. So is there a way to get the first pages
    content to load both ways? This is what the code for the first
    button looks like now :
    on (release) {
    //load Movie Behavior
    if(this.aboutext == Number(this.aboutext)){
    loadMovieNum("aboutus.swf",this.aboutext);
    } else {
    this.aboutext.loadMovie("aboutus.swf");
    //End Behavior
    //unload Movie Behavior
    if(this.blk == Number(this.blk)){
    unloadMovieNum(this.blk);
    } else {
    this.blk.unloadMovie();
    //End Behavior
    Right now everything works I just don't have any content
    until a button is clicked.

    Hi,
    Take a look at this simple tutorial and you will find what
    you are looking for.
    Here
    Hope this helps
    Cheers
    Alan

  • Loading external movies

    I've created (with help) a series of buttons that scroll a
    movieClip's x-position according to an arrayIndex. With variables,
    these buttons also cycle through their up and down state as the
    user clicks from one to the next. I'd like for them to also load an
    external flash movie into a "loader" movie clip. More precisely, a
    different external swf for each button.
    I don't know how to include the loadMovie script into the
    (beyond my skills) action script that controls my x-postion
    buttons. I've tried to write the bellow code for each button, but
    it stops my x-position scroll.
    I tried to use this code... but it stops my movieClip from
    scrolling.
    controller_mc.but1.onRelease = function() {
    loadMovie("chapterTest.swf", "_root.loader");
    Here is my complete code. I'd be happy to answer any question
    and I'll also attach my file for review. Thank you.
    click here for
    my files

    Hi,
    Ok, you mentioned that you had an issue when clicking on a
    button to load an external movie it would stop your x-position
    scroller. I downloaded your files and you have a button in the
    library that's found in the timeline called btnLink_01. You have an
    button event called:
    //thumb links
    timeline1.link01.onRelease = function() {
    When I opened your file and ran the movie, I click on the
    btnLink_01 at it did not load the external movie called test.swf,
    which I created, and didn't seem to affect your x-scroll
    functionality. I did some troubleshooting and set the color
    properties from Alpha to None on movieclip "loader" movie and it
    loaded the external movie just fine. Seemed like you had the alpha
    set to 0, so when the movieclip was loaded, it didn't show up. Not
    sure if this is the issue you had. Let me know if that helps or if
    I wasn't resolving your issue correctly.
    Thanks,
    Jaime

  • Loading in external movie

    hi all
    I have a problem loading in movies from a movie with a
    scrolling menu. the problem is the movie(load.swf, the movie trying
    to load into)is also loaded into main movie, so because of this
    needs the code;
    _global.loadNewMovie():
    at the end of the maintimeline to load in and out of the main
    movie.
    thus my problem, I have the movie load.swf loading in and out
    of my main.swf but know I can't get the little external movies to
    load into load.swf......does this make any sense...sorry bit of a
    newbie : (
    so movie trying to load into is
    load.fla
    small external movies to load
    movie1_02.fla
    movie1_03.fla
    I've put a link to a zipped folder with the fla's in would
    anyone beable to help me get the movies movie1_02.fla and
    movie1_03.fla loading into load.fla whilst still keeping the
    _global.loadNewMovie():
    on the main timeline??
    heres the ln link
    http://www.pmrltd.co.uk/help.html
    cheers for your help

    if you want the movies to simply load into your load.swf like
    this and when one finishes the next loads in, you'd be better off
    creating a container movie clip at (0,0) that you load your
    load.swf movie into. tell this movie to play through its timeline.
    at the end of that timeline, have it do a
    this.loadMovie("movie1_02.swf") and then add a line of AS on the
    end of movie1_02.swf that would
    this.loadMovie("movie1_03.swf"). not the best approach but it
    should work.

  • 'Load external movie clip' behavior

    I am currently working on a flash movie that loads with an
    animation and stops to show four buttons that are then supposed to
    load external .swf files when clicked (released). While the
    behaviors and actions I have set all work fine when I test the
    movie in Flash, when all the files are uploaded to my server, the
    external movie clip does not load, and the message in the bottom
    left corner of the browser hangs at waiting for
    www.panoramalotforsale.com...
    Anybody any idea what I'm doing wrong?

    When everything works fine locally, but fails to load live on
    your webserver, there is of course a pathing problem.
    So, in your flash, when you call loadMovie, try using a full
    path to the external file your trying to load.
    So for example, instead of "/movies'/myexample.swf", do "
    http://www.yoursite.com/movies/myexample.swf".
    Make sure you keep the
    http:// though.

  • Load \ unload external movie

    Hi!
    While a parent movie plays, I want to replace a movie with
    others.
    The movie to be replaced was attached with the following
    instruction (attachMovie):
    _root.attachMovie("ButtonsTest", "buttonsTest_mc", 6,
    {_x:400, _y:300});
    I am looking for a way to unload the above movie and load at
    the same coordinates the new external movie.
    Please help
    TIA
    Nanu

    use loadMovie into another MC ....
    u have a MC with 2 frames ... control
    1st frame - an empty mc, clip1
    stop();
    clip1.loadMovie("the_clip1.swf")
    2nd frame - same empty, clip2
    stop();
    clip2.loadMovie("the_clip2.swf")
    the button
    on(release) {
    control.gotoAndStop(2);
    }

  • Loading external movies in specific frames

    Here's what I'd like to have my project do: By clicking on a
    button in frame 5 I'd like to load a movie into an empty movie clip
    in frame 20. I'v ewritten the script to create the empty movie clip
    and also load the movie, but the movie loads into all frames of my
    project. I'd ideally like to have the movie clip waiting for my
    only in frame 20. Anyone know how to make this happen?
    Thanks
    Eric

    you could not load it into an empty movie clip located on
    frame 20 from frame 5, flash wouldn't know where to load it since
    the movie clip hasn't shown up... you could load it in on frame 5
    and give the movie clip a _visible = false; or set it's _x and _y
    properties to be off the stage, then on frame 20 set it to _visible
    = true; or move its _x and _y properties to be on the
    stage..

  • Can you resize external movies??

    Here is exaclt what Im doing;
    I have a movie clip that acts as a button on the stage. When
    you rollover the movieclip, it displays a video. That is the video
    was created as a seperate file.
    So, I have to use the loadMovie command to display the video.
    I originally created the video at 172 x 52 resolution, so it can
    fit "behind" the movie clip that acts as a button.
    So basically when you rollover it the video starts playing.
    The problem is this;
    I rollver and the external movie is loaded and starts playing
    except for the fact that the width of the external movie is
    stretched out..I dont get it. Is there a way I can load the .swf
    file in and then resize it? I am calling the movie in by using a
    empty movie clip. So the empty movie clip sits on the stage and on
    rollover the .swf is loaded in to display on rollover of the
    mc_button I have. If anyone wants an example of what is going on,
    please let me know I will post something here as example.
    Thanks alot in advance, I am stumped at the moment!

    "Is there a way I can load the .swf file in and then resize
    it?"
    Use
    MovieClipLoader.onLoadInit
    and do the resizing in the onLoadInit method. You can consider
    using _xscale and _yscale or using the drawing API to draw a
    rectangle with or without a 0 alpha value to resize the outer
    dimensions.

  • Loading two movies & loading entire current movie

    well, having a bit of problems with figuring out my preloader
    :/. Iv been able to figure out how to load a single external movie
    with a dynamic preloader graphic that tracks percent and stuff, but
    i have not been able to figure out how to load multiple external
    files but useing the same graphic to track the percentage of the
    loading for the two as if they where 1. Also have not been able to
    figure out how to make a preloader for the current movie. LIke have
    the preloader at the beginning of the movie and have it stop, and
    run the preloader for the load of the rest of the movie file, then
    continues to play the intro of the same file after loading has been
    compleated. my code for what i'm able to do is below, any help
    woudl be helpfull :). Thank you guys and girls^^

    Here's the code for the controls:
    /* to pause */
    on (press) {
        stop();
        pauseinv._visible = false;
        playinv._visible = true;
        pause_btn._visible = false;
        play_btn._visible = true;
    /* to play */
    on (press) {
        play();
        playinv._visible = false;
        pauseinv._visible = true;
        pause_btn._visible = true;
        play_btn._visible = false;
    The controls are placed in the main movie itself and have them till the lastframe so that it remains there for the rest of the movie.
    I'm only loading the second movie at level 1 at the last frame of the main movie like this:
    loadMovieNum("video_contd.swf", 1);
    Thanks,
    Prakash

  • Print only the external movie with its current applied settings?

    Hi,
    I'm making a flash application for a paint company to test various paints on different objects. But I got a little problem.
    Which is here...
    Here is my code....
    /* Print Button Function Here.....*/
    print_btn.addEventListener(MouseEvent.CLICK,printPage);
    function printPage(evt:MouseEvent) {
        var printJob:PrintJob = new PrintJob();
        if (printJob.start()) {
            if (uiLoader.source.width>printJob.pageWidth) {
                uiLoader.source.width=printJob.pageWidth;
                uiLoader.source.scaleY=uiLoader.source.scaleX;
            printJob.addPage(Sprite(uiLoader.source));  
            printJob.send();
    Actually I have a movie clip which contains a Print Button and a uiloader.
    uiloader loads differnt external movies.
    I applied a code to Print button to print those movies.
    This code is working good but problem is, it print the both (main_movie & external_movie) with its actual colors not with the current applied colors.
    I want to print only External movie with its current color settings (applied by user) not actual default colors.
    So can any one tell me how can i do this?
    Thank for help....

    use:
    print_btn.addEventListener(MouseEvent.CLICK,printPage);
    function printPage(evt:MouseEvent) {
        var printJob:PrintJob = new PrintJob();
        if (printJob.start()) {
            if (uiLoader.width>printJob.pageWidth) {
                uiLoader.width=printJob.pageWidth;
                uiLoader.scaleY=uiLoader.scaleX;
            printJob.addPage(uiLoader);  
            printJob.send();

  • External Movie File Script Question

    I have finally figured out how to load an external .swf into
    my flash file. The only problem is that I want to resize the
    external movie to fit in a smaller movie container. The movie now
    plays in the correct place but wrong size.
    Here is my code, I need to know the parameters to force a
    resize:
    "on (release) {
    //load Movie Behavior
    if(this.demo == Number(this.demo)){
    loadMovieNum("demo.swf",this.demo, w);
    this.demo
    } else {
    this.demo.loadMovie("demo.swf");
    //End Behavior
    Thanks

    Add this:
    //scales to 85%
    this.demo._xscale = .85;
    this.demo._yscale = .85;
    Dan Mode
    --> Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    <--check this
    *Must Read*
    http://www.smithmediafusion.com/blog
    "Tazty" <[email protected]> wrote in message
    news:et9qlm$ke2$[email protected]..
    >I have finally figured out how to load an external .swf
    into my flash file.
    > The only problem is that I want to resize the external
    movie to fit in a
    > smaller movie container. The movie now plays in the
    correct place but
    > wrong
    > size.
    >
    > Here is my code, I need to know the parameters to force
    a resize:
    >
    >
    > "on (release) {
    >
    > //load Movie Behavior
    > if(this.demo == Number(this.demo)){
    > loadMovieNum("demo.swf",this.demo, w);
    > this.demo
    > } else {
    > this.demo.loadMovie("demo.swf");
    >
    > }
    > //End Behavior
    >
    > }"
    >
    > Thanks
    >

Maybe you are looking for