?
Solved

buttons within a movie clip

Posted on 2008-10-09
8
Medium Priority
?
188 Views
Last Modified: 2012-05-05
I am trying to use multiple buttons within one movie cilp.  I am using the following script and it works for the first button.  When I click on the second button it goes to the end of the timeline.  

Thanks for any suggestions....
on (release) {
_root.gotoAndStop("frame_label");
}

Open in new window

0
Comment
Question by:mbarnaby
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 22684402
are all of the buttons supposed to do the same thing, i.e. gotoAnd stop frame_label.
where have you attached that on(release) code? on each of the buttons, or on the movieclip?
why have you got multiple buttons inside a movieclip?
0
 

Author Comment

by:mbarnaby
ID: 22708227
I have multiple button inside the movie clip to display different images on rollover.  The on release is on a button that takes you to the frame with the movie clip.   Each movie clip has multiple images to view.


It is the on release that does not go where I want it to using the gotoAnd stop frame_label.

Thanks for your time...
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 22708708
can you upload your file?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:chimtrum
ID: 22829051
try this

on (release) {
    gotoAndStop("frame_label");
}

0
 
LVL 39

Expert Comment

by:blue-genie
ID: 22829820
you should avoid having movieclips in your button  - personal opinion.
rather have movieclips only.
0
 

Accepted Solution

by:
chimtrum earned 252 total points
ID: 22831225
I think he's having buttons in a movieclip and not vice versa. so it should be

on (release) {
    gotoAndStop("frame_label");
}

instead of

on (release) {
    _root.gotoAndStop("frame_label");
}

0
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 248 total points
ID: 22839703
Sorry i'm being dyslexic.
either there's no logical reason to have a movieclip in a button or a button in a movieclip.
but that's just me.
if the frame labels are in the movieclip, _root shouldnt' work.
you could try
_root.clipname.gotoAndStop("");

i'd suggest confirming your frame label names.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question