Solved

buttons within a movie clip

Posted on 2008-10-09
8
186 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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 63 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 62 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
Learn how to create interesting presentations by including videos to keep your audience engaged using Prezi. Select "Insert" from the top menu in your Prezi editor: Select "YouTube Video": Paste the video URL into the prompt: "Select "Insert":…
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.

742 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