Jump to content
Search Community

redconservatory

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by redconservatory

  1. I rewrote my method and it works now:

     

    private function updateVideoTime (e:Event):void
    	{
    		// moves the scrubber
    		if (! seeking)
    		{
    
    			if (scrubber.slider.x <= finalPoint) {
    			scrubber.slider.x = (video.videoTime /video.duration)*scrubber.width;
    			} else {
    			video.videoTime= 0;
    			scrubber.slider.x = (video.videoTime /video.duration)*scrubber.width;
    			video.pauseVideo();
    			playPause.gotoAndStop("play");
    			}
    		}
    		else
    		{
    			seekToPoint ();
    			trace("seek to point" + scrubber.slider.x);
    		}
    
    
    	}

  2. I have the following code to tween some black text to white:

     

    TweenMax.to(item.buttonLabel, .2, {x: 300});
    TweenMax.to(item.buttonLabel, .2, {delay: .1, colorTransform:{tint:0xFFFFFF, tintAmount:1}});

     

    The first part of the code:

     

    TweenMax.to(item.buttonLabel, .2, {x: 300});

     

    Works (moves the text over)...however, the next line:

    TweenMax.to(item.buttonLabel, .2, {delay: .1, colorTransform:{tint:0xFFFFFF, tintAmount:1}});

     

    Doesn't change the text to white.

     

    Here are my imports:

     

    import com.greensock.TweenMax;

    import com.greensock.easing.*;

    import com.greensock.plugins.*;

×
×
  • Create New...