Solved

buttons within a movie clip

Posted on 2008-10-09
8
182 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

743 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

9 Experts available now in Live!

Get 1:1 Help Now