Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Developer
Offthahorse
Posts: 30
Registered: 02-06-2012
My Carrier: AT&T
Accepted Solution

actionscript help

instead of a gotoand stop or gotoand play command for buttons, is there an action you can assign to a button that will make the playhead continue on to a keyframe THEN go to another part of the timeline?

Please use plain text.
BlackBerry Development Advisor
twindsor
Posts: 288
Registered: 07-15-2008
My Carrier: Bell

Re: actionscript help

[ Edited ]

Hi,

The play(); command will work. You should be creating an event listener to handle any code that you would like your button to do when pressed. So after you press a button you should use the play(); command. Here is a quick sample:

 

import flash.events.MouseEvent;
import flash.events.Event;
 
myButton_mc.buttonMode = true;
myButton_mc.addEventListener(MouseEvent.MOUSE_DOWN, makePlay);
 
function makePlay(e:Event){
                play();
}

 

 

Will you please clarify what you are trying to do when you state “THEN go to another part of the timeline”

 

Tim Windsor
Application Development Consultant
Please use plain text.