Skip to main content
Participant
August 13, 2015
Question

flash cc: SPECIFY ANIMATION DURATION DIRECT WITH ACTIONSCRIPT3

  • August 13, 2015
  • 1 reply
  • 206 views

flash cc2014 : Is there a way to deal with actionscript3 instead of frames on the timeline the duration eg an animation enter directly . I want to make a slide show where the photos are played in sequence and the display time of each photo I WANT TO SPECIFY DIRECT WITH  ActionScript .

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 13, 2015

you can use the actionscript tween class, but it's easier to use a 3rd party tween class like greensock's tweenlite.  eg, if you use left-side reg points and slide1 is on-stage:

import com.greensocks.TweenLite;

TweenLite.to(slide1,.5,{x:-slide1.width,delay:5});

//create slide 2 and assign its x to stage.stageWidth

TweenLite.to(slide2,.5,{x:stage.stageWidth2-slide2.width/2,delay:5});