Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


loadMovie works when loaded in level but not in clip

Posted on 2003-03-18
Medium Priority
Last Modified: 2010-04-03
I am loadind a moving using the loadMovie method in Flash MX. When I use a clip to load it, the movie appears but doesn't play. However, if I load it into a level it does play but I can't positionn it.
Any idea?
Question by:Isabelle4u
  • 4
  • 2
LVL 10

Expert Comment

ID: 8159298
Think of each level as a layer.  when you load it into level_25, then it is sitting on layer 25 all by itself.  When it is loaded, it is positioned with the top left corner, in the top left corner of teh Main Stage.

A easy way to find  the position of the loaded movie, it to make ITS stage size the same as the Main movies size. that way you can see where you want it to be.

Hope this litte visual trick helps.
LVL 22

Expert Comment

ID: 8159388
post your code that you are using to load the movie to the .swf

I would recommend using loadMovie("movie1.swf", "_root.movieclip"); so you can then just referrence the movieclip in your actionscript to position it...

make sure you gave the movieclip an instance name... that is a common error that people overlook...


Author Comment

ID: 8161376
Thanks for your reply.
Due to its nature, it isn't convenient to change the size of the imported movie.
With using a clip, the problem isn't the position of the movie but rather the fact that it doesn't play. The movie appears, the button functions but the movie won't play.
But it works fine outside my main movie.
The code I use to import it:
I've also tried to use:
Neither works. Please help me...

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

LVL 22

Expert Comment

ID: 8161860
I think you need to put the _root.anagramClip in quotes because it is the target...  

but that may not be the entire problem...

you should post a link to the .fla so we can take a look at what the problem is...

LVL 22

Accepted Solution

rascalpants earned 100 total points
ID: 8314514

you need to close this question out...

please come back and comment or award the points...

LVL 22

Expert Comment

ID: 8326982
thanks for closing out this question...


Author Comment

ID: 8341770
I finally managed to make the loaded movie work within an invisible clip in the main movie.
The problem was the fact that I was using absolute addressing. So, I modified the movie I wanted to load so it's now using exclusively relative addressing...such as _parent.anything instead of _root.anything
And it works fine!

Thanks for your answers.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 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.
Suggested Courses

580 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