Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using a movieclip within a movieclip as a button?

Posted on 2006-11-19
3
Medium Priority
?
221 Views
Last Modified: 2010-04-03
I am trying to use a movie clip within a movieclip as a button to control the main timeline. I am using the following code at present which is giving me errors...

stop();
09Trust.onRelease = function() {
    this.gotoAndStop(70);
};

Any advice welcome..
0
Comment
Question by:surfjoe
  • 2
3 Comments
 
LVL 13

Expert Comment

by:FLAASHER
ID: 17974465
put this code on the movieclip u use as a button :

on (release) {
      _root.play();
}


FLAASHER
0
 
LVL 11

Assisted Solution

by:ch2
ch2 earned 1000 total points
ID: 17974470
Actionscript dosen't like numbers at the begining.

Rename your button from 09Trust to Trust09

stop();
Trust09.onRelease = function() {
    this.gotoAndStop(70);
};

0
 
LVL 13

Accepted Solution

by:
FLAASHER earned 1000 total points
ID: 17974472
the prevuos ocd e will make it just play ....
if u want to go frame 70 odify ur code to be :




stop();
09Trust.onRelease = function(){
      _root.gotoAndStop(70);
}

just use _root   NOT this


FLAASHER
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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 how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

916 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