Solved

Using a movieclip within a movieclip as a button?

Posted on 2006-11-19
3
173 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

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

Suggested Solutions

Title # Comments Views Activity
How do I convert a CS4 FLA file to CS6? 1 846
FLV versus SWF 11 263
Text Transformation using ActionScript 3 5 78
Actionscript in Flash 3 23
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…
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…
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…
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.

744 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