Copy link to clipboard
Copied
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 .
Copy link to clipboard
Copied
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});
Find more inspiration, events, and resources on the new Adobe Community
Explore Now