Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

buttons within a movie clip

Posted on 2008-10-09
8
Medium Priority
?
191 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …
Suggested Courses

636 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