Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

movie not loading into mc

Status
Not open for further replies.

lauralynn

Programmer
Dec 5, 2003
1
0
0
US
THE MOVIE:

I have a movie that will have two main parts in different swf movies:

1. main background (bg) movie with global navigation
2. content movies (loaded into an mc on the main timeline of the bg movie)

The bg movie has three navigation options, each which will play a dropdown mc when clicked.

In the dropdown mc is another mc with text buttons. When one of these buttons is clicked it tells the dropdown mc main timeline to set the variable "movie" to a filename and to gotoAndPlay "close" .

Upon the dropdown movie playing "close", the last frame tells the _root timeline to load the movie variable into the "content" mc on the main timeline of the bg movie.

Instead of loading it into the mc, it replaces the entire bg movie with the new one.


THE PROBLEM:

So this is what is supposed to happen:
BG MOVIE : CLICK ON NAV 1 : DROPDOWN MC PLAYS : CLICK ON LINK 1 IN DROPDOWN MC: LOADS MOVIE 1 INTO CONTENT MC IN BG MOVIE

Here is what actually happens:
BG MOVIE : CLICK ON NAV 1 : DROPDOWN MC PLAYS : CLICK ON LINK 1 IN DROPDOWN MC: REPLACES BG MOVIE WITH MOVIE 1.

Here is the code:

BG MOVIE NAV 1:
(tells movie to go to workflow frame which plays dropdown mc)

on (release) {
gotoAndPlay("workflow");
}


DROPDOWN MC:
(mc inside dropdown mc has text links which set variable & tells dropdown mc to go to frame "close".)

on (release) {
_parent.movie = "content/content_test.swf";
_parent.gotoAndPlay("CLOSE");
}

DROPDOWN MC:
(last frame of main timeline of dropdown mc tells main bg movie timeline to load the movie defined in the dropdown into the mc named "content" hat exists on the main timeline)

_root.loadMovie(movie, content);


The dropdown mc does gotoAndPlay close, and does load the movie, but instead of loading it into the mc, it replaces the current movie with that one.

THE CALL FOR HELP

What am I doing wrong?

Thanks!!!



 
What's content in this line?

_root.loadMovie(movie, content);

The instance name of your container clip in your BG movie?

Then it should either be...

_root.content.loadMovie(movie);

Or...

loadMovie(movie, _root.content);

Or...

loadMovie(movie, "_root.content");



 
thank you - i got the same response in another forum and that worked!
:D

thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top