0
flash cc: SPECIFY ANIMATION DURATION DIRECT WITH ACTIONSCRIPT3
New Here
,
/t5/animate-discussions/flash-cc-specify-animation-duration-direct-with-actionscript3/td-p/7504219
Aug 13, 2015
Aug 13, 2015
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 .
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/flash-cc-specify-animation-duration-direct-with-actionscript3/m-p/7504220#M153898
Aug 13, 2015
Aug 13, 2015
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});
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

