Solved

Using a movieclip within a movieclip as a button?

Posted on 2006-11-19
3
208 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
[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
  • 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 250 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 250 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

Independent Software Vendors: 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!

Question has a verified solution.

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

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…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

739 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