Solved

Problems with loadMovie

Posted on 2002-06-08
6
223 Views
Last Modified: 2010-04-03
I am using an empty movie clip to load an external .swf so I can place the clip where I want.

I give the clip an instance name and drop it onto the stage, put a loadMovie action on that frame, using target and the name of the instance.

Nothing happens.

It works if you have nothing past it in your main movie, but once you start adding the external file doesn't load.

Any ideas? Do I have to add more frames after the empty clip.
0
Comment
Question by:bankle
  • 4
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
rootdir earned 50 total points
ID: 7066003
Too easy

you are doing mistake in your second step. Do following steps

1. Create empty movie name it as 'movie1'
2. get on stage keep that empty movie selected now inside property sheet give instance name 'myMovie'(This is instance name for movie1)  Here you are making mistake.
3. There are 2 ways, you can call external swf inside this blank movie
 
   a. loadmovie("Your_External_movie_name.swf","myMovie"); or
   b. myMovie.loadmovie("Your_External_movie_name.swf");

That's it. I have created example for you if you needed post your email address.

Cheers
RootDir



0
 

Author Comment

by:bankle
ID: 7081187
Ok, I make an empty movie clip, put it on the stage, give it an instance name, then make a layer called "actions".

Say my movie name is harry.swf, and my instance name is harry, the code is ...

loadmovie("harry.swf","harry");

This doesn't work if I have 1 keyframe; looks like you have to insert more frames to accommodate the size of the external swf? Then it works. I want to load movie1, then movie2, then movie3, etc, All external swf's. The file size gets rather large. Why do I have to add more frames?

And this technique won't work in my main movie still-is it because I don't have enough frames in the timeline to accommodate the external swf???

Can anyone explain what I am doing wrong . . . please !~!
0
 
LVL 6

Expert Comment

by:rootdir
ID: 7082876
You are right, why to add more frames? only one keyframe is sufficient. And you can load 'n' movies inside blank movie.

Definatly this technique will work, because it is made for that purpose. Clearly yo are doing some thing wrong. I have created example for you post your email or send me email on 'rotdir@hotmail.com'. I will send you that example.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:bankle
ID: 7082951
My email is electrovox@hotmail.com

I found it slows everything down on my main timeline badly.

Thanks
0
 

Author Comment

by:bankle
ID: 7114014
I have found you have to add the same number of frames that the loaded movie is, otherwise it doesn't work.

If you have a movie that is 20 frames and in your main movie you don't have 20 frames on the timeline for it, it doesn't work.
0
 

Author Comment

by:bankle
ID: 7165999
Thanks rootdir - answer accepted
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

765 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