Solved

Problems with loadMovie

Posted on 2002-06-08
6
220 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

708 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

11 Experts available now in Live!

Get 1:1 Help Now