One Movie calls another with blue background

Posted on 2005-04-15
Last Modified: 2010-04-03
Hi i have one movie ....thats 500 by 300 that calls another one.

1-15 frames displays some pictures then
in frame 16 calls new    movie.swf

1.............How do i put in some code that it loads movie.swf then after it has finished it continues...........
               I don;t have the fla for the movie.swf someone else done this.............else i could put in gotoandplay("label")

2............ The movie.swf is a little bit smaller so the background appears bright blue.
               Its like when you put an image on the page in html if you don't set border to 1 it becomes blue.
                The background is grey


Question by:TRACEYMARY
    LVL 18

    Expert Comment

    I don't think this is possible without knowing when the end of the swf is reached.
    You can resize the sencond swf with
    _level1._xscale=50;//or whatever _xscale works - this is trial and error

    LVL 18

    Expert Comment

    or if you are using loadMovie and not loadMovieNum, and loading to a container clip,

    and so on.

    LVL 5

    Assisted Solution

    For part 1, you should be able to get the necessary information with mc._totalframes and mc._currentframe.

    For part 2, same concept, the movieclip that you created, to hold the loaded movie, what I'm calling "mc", change the scale to match correctly.

    Hope that helps,

    LVL 18

    Accepted Solution

    that would be from loadMovieNum

    LVL 7

    Author Comment

    I think im getting it............
    So if i am loading an external swf then use loadMovieNum (then i don;t need to put this in to an empty movie clip).
    and the swf will be streaming.........and i don;t have to wait until it loaded.

    loadMovieNum("shelter_g.swf", 2);

    I can then hide stage with
     _level0._visible = false;

    and use the container i.e mc_empty   (for loading movie clips in the library to the stage).
    rather than trying to load an external swf into the empty container

    Is my theory working..............also reading the books with on the information given.

    Thank you.
    LVL 18

    Expert Comment

    ...and reposition the stage with _level2._x=100;
    as another example...
    It allows you to separate out each loaded mc from another loaded mc, without having to create a separate container clip for each.
    It is an alternative, not necessarily the best for every occassion - but definitely for a lot.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now