actionscript for buttons

Posted on 2007-03-26
Last Modified: 2010-04-03
I'm creating a web site in flash and I have a layer called buttons that has a 'buttons' movie clip on it. Inside the 'buttons' movie clip I have 6 buttons each on a separate layer. I want the action on the buttons to effect the instance of another movie clip on my main timeline called 'tail'. So the action script I have used is:
on(rollOver) {
   with (tail) {
   gotoAndStop ("right");
('right' being a frame label in my tail movie clip)
I originally had all my buttons on the maintime line, but in trying to tidy it up I've broken it! How would I direct the actionscript to effect 'tail' on the main timeline?
Question by:DallySP
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
LVL 11

Accepted Solution

Tom Ray earned 63 total points
ID: 18795111
assuming 'tail' is on the main timeline, give this a try:

on(rollOver) {
   with (_root.tail) {
   gotoAndStop ("right");
LVL 23

Assisted Solution

Zeffer earned 62 total points
ID: 18795132
on(rollOver) {
   with (_parent.tail) {
   gotoAndStop ("right");

LVL 23

Expert Comment

ID: 18795144
didn't see your post sibqiq.. both will work DallySP


Author Comment

ID: 18795799
thats brilliant - thanks so much.

Featured Post

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
Flash being Disabled - help! 20 345
free flash maker 5 223
How  to reduce the .AVI file size of 90GB 4 384
Adobe Flash Install via GPO - Remove Prior Versions From GPO? 1 178
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 how to how to load their YouTube profile onto Flash Media Live Encoder.

752 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