all groups > flash actionscript > october 2005 >
You're in the

flash actionscript

group:

Timeline - movieClip Control


Timeline - movieClip Control debloom
10/16/2005 9:48:08 PM
flash actionscript:
I need a little help.
I've built my buttons as movieClips with (_up, _over and _down) labels, but
I've also added a "static" label.
I want to use as a "static" label (frame 25) - as you are here marking, keeps
the button on.

I want to be the move the main timeline playhead back and forth between
sections "label" and make the movieClips (buttons) go to the "static" frame in
their respective sections.

Basically I want move the playhead to a section and make a movieclip (already
there) go to a specific frame.

any help or pointing in the right direction would be much appreciated



Re: Timeline - movieClip Control GaryCCY
10/17/2005 12:00:00 AM
Hi

Sorry but don't understand very well.
If it is a movie clip, making it to jump to a specific frame is basic of
ActionScript,
whateverClip.gotoAndStop(frameLabel)

Assume if you want to jump to the "static" frame upon the mouse over event
whateverClip.onRollOver = function(){ whateverClip.gotoAndStop(staticFrame) }

If I can understand your question better, may be I can provide a solution.

Re: Timeline - movieClip Control debloom
10/17/2005 12:00:00 AM
Thanks GaryCCY

I will try to explain myself a bit better.
I'm using movieClip as buttons for my site navigation, and I want to go to a
section (ie CLIENTS) and have to clients "Button" stay red. (or on) to indicate
you are in the CLIENTS section.

I thought I could do this farely easy by making my buttons as movieclips and
when the play head goes to CLIENTS make the "CLIENTS_MC"got to the label
"static".

Thanks again for taking them time.



Re: Timeline - movieClip Control GaryCCY
10/17/2005 12:00:00 AM
Hi
Yes, and you already have the idea.

Say your visitor clicked the "Clients" section, then in the on click event of
the button, you make the client button stays in a specific frame

clientBtn_mc.onRollOver = function(){
//upState is a frame label where the button highlighted
this.gotoAndStop(upState);
}

clientBtn_mc.onRollOut = function(){
this.gotoAndStop(normal);
}

clientBtn_mc.onRelease = function(){
this.gotoAndStop(stayRed)
}

Of course, you have to add more checking so when your visitor is at the Client
section and jump to other sections, such as "Contact Us", then you must put the
Client Button back to normal by
clientBtn_mc.gotoAndStop(normal);

Also put a stop() at the end of each button state just to be sure it stops.

Re: Timeline - movieClip Control debloom
10/17/2005 11:54:17 PM
Thanks GC - I will try it this way. I originally built my buttons with _up,
_over,_down labels and not with seporate action. But I see what your getting
at. I will try this way.

Thanks again for the replys and patients.

D-
Re: Timeline - movieClip Control GaryCCY
10/18/2005 7:39:37 AM
You are welcome
AddThis Social Bookmark Button