Solved

Using a movieclip within a movieclip as a button?

Posted on 2006-11-19
3
192 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 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Action Script commands 3 219
Action Script coding 1 176
Trying to contour a nose in a face portrait in After Effects 5 101
Web browser crash when play videos 24 285
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…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

773 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