hello all,
working now on my first flash project- a portfolio of my work.
im wondering if there is a way with actions to make on release of the mouse
first play the next 10 frames or so, and then automaticlly go to another
specific frame.
for example: being on frame 10. on release of the mouse, playing untill frame
20, and automatically moving to frame 50 and continuing from there...
hope im clear enough.
thanks in advance,
joel
clbeech - 06 Jul 2008 20:36 GMT
yes. if you haven't done so already, create a new layer at the top of the list
and call it 'actions' place all codes within this layer. on frame one open the
actions panel and write the code for your button as:
myBtn.onPress = function() {
play();
}
(with an instance name of 'myBtn' placed on the instance, or change the above
to reflect your button's instance name)
next click on frame 10 of the actions layer, insert a new keyframe there, open
the actions panel and type:
gotoAndPlay(50);
there you go ;)