Advertisement

02.14.2008 at 08:04AM PST, ID: 23163345
[x]
Attachment Details

FLASH AS3 - Can you help me set variables in button movie clips that I can use in the main timeline?

Asked by keybord in Macromedia Flash, Web Graphics Software, Miscellaneous Programming

Tags: Adobe / Macromedia, Flash CS3, CS3 / 9, Actionscript 3

I have some movie clip buttons that animate on mouse over, mouse down etc.  

I would like to set a 'target' variable after each button is pressed (e.g on the last frame of the button clip) that I can then call on the main timeline for navigation.

This is not quite as simple as a function that will move the playhead with an eventlistener because I need to play several frames of button animation animation before the playhead moves on the main timeline. (i.e. an event listener function for Mousedown that simply "gotoAndPlay's frame 'x'" will not play the remaining frames of my 'down' button animation.)

1) Can I set a variable in a button movieclip like this?  
2) How can I call the variable from the main timeline?
3) How can I get the main timeline playing again after my button is finished animating?

This question is an advance on a previous question (that may help you understand my goals) that remains unanswered here:  http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_23160397.html

Thanks in advance for any suggestions!
Darryl

Start Free Trial
[+][-]02.14.2008 at 09:00PM PST, ID: 20899512

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Macromedia Flash, Web Graphics Software, Miscellaneous Programming
Tags: Adobe / Macromedia, Flash CS3, CS3 / 9, Actionscript 3
Sign Up Now!
Solution Provided By: blue-genie
Participating Experts: 1
Solution Grade: B
 
 
[+][-]02.15.2008 at 01:37AM PST, ID: 20900368

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.17.2008 at 04:45AM PST, ID: 20913863

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.17.2008 at 02:17PM PST, ID: 20916037

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628