Solved

Loading another movie inside one

Posted on 2003-11-11
5
280 Views
Last Modified: 2010-04-03
hi all...

i'm using flash mx and i'm trying to load a movie inside another movie. at the end of the movie i create a frame with square wich is a movie clip called "mc2" and then in the actions of that frame i put the following code:

stop();
mc2.loadMovie("apresenta1.swf");
mc2._x=0;
mc2._y=0;

but when it end nothing happens... i'm confused, i used this code befora and worked... am i missing somenthing?

thx in advanced
0
Comment
Question by:justaphase
  • 3
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Saqib Khan earned 125 total points
ID: 9723627
> mc2.loadMovie("apresenta1.swf");
if mc2 is on the same level then you good, if not then try this

_root.mc2.loadMovie("apresenta1.swf");

And apresenta1.swf is published and saved under the same directory?
0
 
LVL 1

Author Comment

by:justaphase
ID: 9723847
yes u right...

but i had to give up the "mc2" movie clip...

i just put this way and worked just fine:

_root.loadMovie("apresenta1.swf");
_root._x=0;
_root._y=0;

thx a lot for the help :)

Regards
0
 
LVL 1

Author Comment

by:justaphase
ID: 9723898
god i dont believe it....

works outside the web page... but doesn't work inside the WebPage...

i don't get it... i allready accepted the answer but i'm still with problems  :P
0
 
LVL 1

Author Comment

by:justaphase
ID: 9723955
ok!!

got it... i must put the path:

_root.loadMovie("files/flash/apresenta1.swf");
_root._x=0;
_root._y=0;

sorry...
0
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 9724076
:)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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. …
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

815 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

8 Experts available now in Live!

Get 1:1 Help Now