Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

flash cc: SPECIFY ANIMATION DURATION DIRECT WITH ACTIONSCRIPT3

New Here ,
Aug 13, 2015 Aug 13, 2015

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
184
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 13, 2015 Aug 13, 2015
LATEST

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});

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines