Solved

actionscript for buttons

Posted on 2007-03-26
4
196 Views
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?
0
Comment
Question by:DallySP
  • 2
4 Comments
 
LVL 11

Accepted Solution

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

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

Assisted Solution

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

Z
0
 
LVL 23

Expert Comment

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

Z
0
 

Author Comment

by:DallySP
ID: 18795799
thats brilliant - thanks so much.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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): …
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.

820 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