?
Solved

Insert Flash movie into another flash movie?

Posted on 2007-10-01
7
Medium Priority
?
902 Views
Last Modified: 2008-01-09
I created two movies: a main Flash movie (500x500) and a mini Flash movie (25x25) that I want to insert into the main Flash movie.  How can I insert this mini Flash movie into my main one as a symbol or object? Basically I want to insert the 25x25px movie into the main one so the same way I insert an image into  the stage. The small swf will just stay still there and play its contents.
I tried to import the swf into my main movie, but it just creates another layer with a bunch of keyframes, and inserts many other symbols to my library. I want to be able to insert it as an object.

Thanks.
0
Comment
Question by:MyersA
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 19996238
make the stage of your mini movie 500x500
place the content on the stage where you want it to appear in the main movie
then in the main movie on frame 1
loadMovieNum("miniMovie.swf", 5); //5 is the level..can be any level
If you want to make it do something..say be invisible ..refer to it as
_level5._visible = false;

Z
0
 
LVL 2

Author Comment

by:MyersA
ID: 19999580
Isn't there an easier way of doing this? Can't I just make the movie and insert it into another Flash movie like I do with images?

Thanks.
0
 
LVL 2

Author Comment

by:MyersA
ID: 19999718
If I make the mini movie the same size as the main movie, and work upon that, then there really isn't a reason to create another movie. In the mini movie (that I'll need to increase to 500x500) I'll have to work around the space I won't be using, and that's what I wanted to avoid.

Isn't there a simple way of just inserting the smaller movie into a big movie?
Would I need to do this same thing if I decide to insert four 25x25 Flash movies into a a 50x50 stage?

Thanks
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 23

Expert Comment

by:Zeffer
ID: 20001214
the way to 'insert' a movie into another is to build it in the main movie in the first place.. Insert/New Symbol.. make your mini-movie..go back to the main timeline..then drag an instance to the stage from the library.
Seeing you have already built the swf outside of the main movie then the way to 'insert' it is to import it at runtime as I have described..or by making a target movieclip and using loadMovie
Think of the mini-movie as being on a sheet of acetate that you lay over the top of the main movie
a stage size the same as the main movie is so the mini-movie can be positioned where you want it..if you import it at the size it is now it will be stuck in the top-left corner by default.
To make four movies to fit on a 50x50 stage you just create 4 movie symbols..
as described in the first sentance.

Z
0
 
LVL 2

Author Comment

by:MyersA
ID: 20002200
Thanks for your post (and your patience)...

I did what you suggested: I created a symbol ("movie clip") and I get a new timeline that I'll use to make my movie.  The problem here is that I don't see the space I'm working with.
Maybe I'm doing it the wrong way... this is what I want to do:
I have my main stage that's 400x100.  One half of the stage is for our logo (which will remain static), and the other half will show a bunch of different items (similar to a stock tracker that displays a quote and then slides off-screen).   I wanted to make a smaller "movie" because I'd know I'm only working on a 200px stage, so an item would slide into the 200px stage, stay there for about a sec, and then slide off the 200px stage.  I'd do this same thing with several different items and it'd be a continous loop.
Once this swf is done, I'd insert it into my main stage, and I'd know that the items being displayed would be confined to their 200px stage. So I have the item tracker on one half, and my logo in the other half.

Isn't there a better way of doing this?

Thanks again.
0
 
LVL 23

Accepted Solution

by:
Zeffer earned 500 total points
ID: 20003695
>>The problem here is that I don't see the space I'm working with.<<
once there is content in the clip and it's on the main stage..double click it and you will go into the movieclip and all other content will be visible in the background.. so you can work in relation to the other content.

The other way to do the same thing..is to draw a square with the drawing tool on the main stage....delete the centre leaving the outline..select the outline..go  Modify/Convert to Symbol..and you will be inside the clip with all content on the main stage visible. Delete the outline when you're done.

Z

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

612 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