Jump to content
Search Community

alphaville

Members
  • Posts

    5
  • Joined

  • Last visited

alphaville's Achievements

0

Reputation

  1. I searched the forum and found something related to what I am trying to achieve. I am very new to action scripting. I tried the below code and it worked for now. var timelineLoad:TimelineMax = new TimelineMax({repeat:0, repeatDelay:0, delay:0}); timelineLoad.append( new TweenMax(mc, 2, { _alpha:0, delay:0,yoyo:false}) ); timelineLoad.append( new TweenMax(mc, 2, { _alpha:99, delay:0,yoyo:false}) );
  2. I am trying to change alpha in two steps. First I want my mc's with alpha zero changes to 100 in 2 seconds then I want it go back to alpha zero again. I used two lines of code and delay property but it didn't worked. TweenLite.to(mc, 2, {alpha:100}); TweenLite.to(mc, 2, {delay:2, alpha:0}); How can i achieve that? I do work in AS2. Thank you.
  3. I have some very basic knowledge of AS2 but AS3 and greensock is pretty new for me. I thought I can build a video player like presentation with images, transitions after seeing your example of Timelinelite. This is the code i took from the video tutorials site that you suggested. How can I change the value of the slider component to "Timeline.currentTime" . In properties panel it shows that the value is number and it is zero. import com.greensock.*; var timeline:TimelineMax = new TimelineMax(); var boxes_arr:Array = new Array(box_mc, box2_mc, box3_mc, box4_mc); for(var key:String in boxes_arr){ var mc:MovieClip = MovieClip(boxes_arr[key]); timeline.append(TweenMax.to(mc, .5, {y:180})); timeline.append(TweenMax.to(mc, .5, {scaleX:2, scaleY:2})); timeline.append(TweenMax.to(mc, 1, {rotation:360, x:600, scaleX:1, scaleY:1})); timeline.append(TweenMax.to(mc, .5, {y:0, alpha:0})); } timeline.append(TweenMax.to(theEnd_mc, 1, {x:320})); import fl.controls.Slider; import fl.events.SliderEvent; ; mySlider.addEventListener(SliderEvent.THUMB_DRAG, thumbDragHandler); function thumbDragHandler(event:SliderEvent):void { timeline.pause(); timeline.currentProgress = event.value; } Thank you.
  4. Hi, In the demonstration, like a video player, slider is also moving on the timeline while playing the animation. How can we add that property to the slider? Thanks.
×
×
  • Create New...