all groups > flash (macromedia) > january 2006 >
You're in the

flash (macromedia)

group:

Movie Clip in Movie Clip control


Movie Clip in Movie Clip control rupert c
1/24/2006 9:06:14 PM
flash (macromedia): Ok, here's the problem...
I have an intro 447 keyframes long on my main timeline (videos, all kinds of
menu stuff going on). This main timeline has buttons to go to certain frames
of that timeline, which have movie clips and a stop action on one frame. Once
one of these clips is playing, there's more menu options, which (hopefully)
send you again to another sub-movie clip with a stop action in one frame. My
question is this... I have a button inside of a movie clip on the main
timeline, that, when clicked, goes to a specific frame of another movie clip,
located on the first movie clip. So, I have three levels, main timeline
containing MC1, and MC1 contains MC2 and the button to go to MC2. I've tried
and tried but can't seem to get the actionscript on the button right. Here's
an example of one try, which is the simplest but I would think would be on the
right track...

on(release){
_root.MC1.MC2.gotoAndPlay("framelabel")

Does anyone have advice? Thanks,

-rupert
Re: Movie Clip in Movie Clip control Ryan Bellerose
1/24/2006 9:50:21 PM
This is depending on what "level" movie your in. If you had a movie loaded into
your root movies and you wanted to have a button in that movie that directs the
user to a fram on the root timeling then you would only have to write the
folowing:

on (release){
_root.gotoAndPlay("FramLabel");
}


Or if you just wanted to go to the timeling on the "level above that movie,
you would write:

on (release){
_parent.gotoAndPlay("FramLabel")
}


Let me know if that works.

-Ryan


Re: Movie Clip in Movie Clip control rupert c
1/24/2006 10:40:55 PM
[quoted text, click to view]

I actually need to go a level down I guess. I need to go from a movie clip to
a frame in a seperate movie clip that is located in the first movie clip. If I
have MC1 and MC2, MC2 is located in MC1. I need to go to a frame in MC2 from
MC1. Does that make sense?

-r
Re: Movie Clip in Movie Clip control Ryan Bellerose
1/24/2006 11:55:27 PM
Yeah, although for what you seem to be doing, it is odd, but here:

on (release){
MC2.gotoAndPlay("FrameLabel");
Re: Movie Clip in Movie Clip control rupert c
1/25/2006 3:21:23 PM
Nope... that doesn't seem to be working. What happened is this... I am
creating a GARGANTUAN interactive cd with about 25 video clips, a bunch of
audio, menus and samples of print work, and a lot of flash animation. I was
first setting this whole thing up dividing it into scenes because to me that
was just the easiest way to keep track of everything, not being an actionscript
wizard, but knowing the basics. The problem with that was, I had a soundtrack
leading in the intro, but I needed it to fade in some parts on user action, so
a video clip could play, and then fade up again when the user exited the video
clips. This was a huge problem across scenes, so I basically just took all of
my scenes and converted them into movie clips, organizing the heirarchy and
placing them in a single keyframe, some on the main timeline and sub-clips
inside those. I just cannot seem to get a button in the first movie clip to
start playing at a frame in the sub-clip. If the script is left the same as
what it was when it was divided into scenes, the button just pushes the clip
forward to the next keyframe. If I try to change the actionscript on one of
the buttons to get to the sub moviclip, it does nothing, like it's not even
being clicked. Any ideas? Anywhere?

-r
AddThis Social Bookmark Button