Solved

buttons within a movie clip

Posted on 2008-10-09
8
183 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
converting a pms to a cymk 13 30
I want to find a font for a Boxing logo 6 1,061
Looking for a VERY simple (hopefully free) graphics tool 4 76
Prototype / Wireframe App 3 123
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
The goal of the tutorial is to teach the user how to how to record live broadcast.
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now