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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

overlapping movies 2

Status
Not open for further replies.

Thoe99

Programmer
May 11, 2001
119
US
Is it possible to load a movie into the current scene, but still have the background showing in the back of the first movie?
 
hi Hien

All loaded movies assume the background of the movie in _level0.

Thus if you set the movie on _level0 to 'transparent' in the HTML publish settings, the loaded movie's background shall be that of the HTML page.

If you created a red background layer in _level0, then your loaded movie shall have a red background.

If you create a background layer in your loaded movie, then all levels beneath shall be hidden behind this layer.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Regarding transparency of the html background...
I believe transparent mode only works with the <object> tag, thus will not work with Netsacape that uses the <embed> tag.

;-)
 
Ok, I set the loaded movie to transparent mode, but when I load it into the main movie (the one with the background), it still gets totally replaced by the loaded movie.

I slopped up a quick example for you to see at

the first movie just has a background with a button that calls the second movie
the second movie has transparency on
 
Also make sure you're loading your movie on a higher level than 0. Otherwise your loaded movie replaces your original one rather than loading on top of it. Transparency hasn't to be set in this case. If you don't add a solid background on your loaded movie, it will be transparent and you should see your main movie underneath.

;-)
 
nice, that worked excellent...it was the level part all along...

btw oldnewbie, im using loadmovie
 
Ok, now that worked, when I load the movie in, can I Tell Target the loaded movie to goto a specified frame?
 
you can do it the same way you target an mc, but just include the level before it. So if you're targetting an mc called &quot;thoe&quot; in level5 then your target would be: _level5/thoe.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Hmm...doens't seem to work for loading and targeting frames with whole swf's. Any other suggestions?
 
Of course... You would add:

gotoAndPlay (1);

... Or to whatever frame you want to play or stop!

;-)
 
I've got that taken care of already...hehe. That's not the problem
 
if your just targetting the main timeline of another level, say level5, your target is just _level5/. Then just tell it what to do. Remember this action won't work unless the movie has been told to load already, and into the correct level you specify. Also if you tell it to go to frame 50, then it won't go there if it isn't loaded to frame50 yet.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Dave, that worked, but to a certain point. For the main movie, I have a button that loads &quot;box.swf.&quot; That button has these commands:

on (release) {
loadMovieNum (&quot;box.swf&quot;, 1);
tellTarget (&quot;_level1&quot;) {
gotoAndStop (2);
}
}

It loads it up alright, and targets the frame, but for some reason, it will just loop right back to frame one. Check it out here:


I also have stops at both frames in box.swf (the loaded movie).
 
this is happening because every time you press the button the movie is loading again and stopping at frame 1. Because the movie has already loaded, it is in your cache, thus giving the illusion that it is looping. If you want the movie to be loaded when you press the button you will have to use a variable check, something like this:
Code:
on (release) {
    if (movieloaded != &quot;yes&quot;) {
        loadMovieNum (&quot;thoe2.swf&quot;, 1);
    }
    _level1.gotoAndStop( 2);
    movieloaded = &quot;yes&quot;;
}

I would also put the following actions in the first frame of the movie you are loading into _level1, if you don't want it to stick on the first frame.
Code:
if (_level0.:movieloaded == &quot;yes&quot;) {
    gotoAndStop (2);
}
stop ();

If you don't understand the actions just shout.
dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
I see what you're getting with this code, Dave. My goal is almost there--I'm trying to make my website 56k-user friendly...but one more problem.

It loads it perfect, but the first time you click the button, it will load up the first frame of the loaded swf, and then goto the specified frame after clicking on the button a 2nd time.

The loaded movie has 3 frames, a box on each one of different colors.

I didn't use the second part of your code, because I'm gonna use a lot of buttons used to load different parts of the loaded swf.

Try going here again:
 
there's no shortcuts Hein if you want this to work properly, you will have to define a different variable value (as a number) for each button when you press it and the loaded movie then checks for this variable and goes to the 'variable value' frame, hold on a minute and I'll rustle up an example....

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Once again, you've pulled thru for me, thanx Dave! Now my 56k friends won't be reluctant to visit my large site..hehe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top