View Full Version : loading different movies into one movie clip
lordenfermo
03-15-2007, 08:17 PM
hey there! I'm making a site where you have 6 video thumbnails.
When you click on them, the video should load and play into one screen, like shown in the image I attached.
how can I script this?
thanks in advance
WhidbeyTomas
03-17-2007, 12:13 AM
Well, since no one has responded, I will start off this discussion. Perhaps we can spur something.
This seems like a simple challenge. You have an MC and six buttons. Each of the buttons can be coded to load an MC. Now usually, I'd use an external SWF and luse buttons to load to a higher layer (did I just admit that?). This strategy will work, but it is clunky. You might not want to begin with my bad habits. A better strategy might use a create emptyMovieClip and load the external swf to that.
I know this is an incomplete thought, but when the farsighted don't show, you'll just have to make do with a myopic guide.
I have to go mow the lawn (or suffer a slow death by nagging). Think this over and see if it doesn't suggest a strategy, and if someone smarter doesn't come along with a better plan, post a zip of your try and we can play around. (ok?)
notaflasher
03-17-2007, 09:34 PM
First of all, Thomas, "clunky" is MY word!!
But I digress.
I think I would just create a button for each movie clip thumbnail and an empty movie clip for the content holder.
Align your thumbnail buttons to your liking on one layer, set the empty movie clip on another layer, and give it an instance name of mc_holder or something like that.
Create your six movie clips as separate .swf's, give them easily identifiable names like "clip1.swf", "clip2.swf", etc., and make sure to publish them (or drop them afterwords) into the same folder with your main .swf.
Then simply code each button with
on (release) {
mc_holder.loadMovie("clip1.swf");
}
"mc_holder" is going to be whatever you chose for your empty movie clip instance name and "clip1.swf" is going to be whatever you named your .swf movie(s).
That should do it, unless I forgot something simple. Hope this helps.
WhidbeyTomas
03-17-2007, 10:00 PM
Yeah. Like he said.
PS Sorry. I will use kluncky from now on :P
notaflasher
03-18-2007, 10:04 PM
Yeah. Like he said.
PS Sorry. I will use kluncky from now on :P
That's okay, you can use it. And just to point out that my instructions were basically what Thomas was suggesting, but with a little more description.
lordenfermo
04-05-2007, 05:30 PM
thanks a lot everyone.
you've been really helpful!!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.