Solved

Problems with loadMovie

Posted on 2002-06-08
6
221 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

911 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