Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problems with loadMovie

Posted on 2002-06-08
6
Medium Priority
?
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
rootdir earned 200 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
Technology Partners: 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!

 

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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

715 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