Solved

Problems with loadMovie

Posted on 2002-06-08
6
226 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 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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 been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

635 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