Jump to content
Search Community

lemonlemon

Members
  • Posts

    4
  • Joined

  • Last visited

lemonlemon's Achievements

0

Reputation

  1. Hi, could you please be more spesific on this one, can´t figure out how to make it work. Let´s say I have button X and when clicked it should make the video invisible/removes it...
  2. hi, I have loaderMax to load video and want to terminate/hide video when hitting something else in navigation. Here´s the code so far: stop(); import com.greensock.loading.*; import com.greensock.loading.display.*; import com.greensock.*; import com.greensock.events.LoaderEvent; //video loader //create a VideoLoader var video:VideoLoader = new VideoLoader("images/mat_sss.m4v", {name:"myVideo", container:this, x:500, y:250, width:320, height:240, scaleMode:"proportionalInside", bgColor:0x000000, autoPlay:false, volume:0, requireWithRoot:this.root, estimatedBytes:26000}); //start loading video.load(); //add a CLICK listener to a button that causes the video to toggle its paused state. play_btn.addEventListener(MouseEvent.CLICK, togglePause); function togglePause(event:MouseEvent):void { video.videoPaused = !video.videoPaused; }
  3. yes that might be the case here, I´m loading some swfs externally in main.as, they may conflict with Tweenlight and LoaderMax...
  4. hi, imageloader with tweenlite works ok when testing locally, but externally image loads without tweenlite effect. Here´s the code: stop(); import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.*; //create an ImageLoader: var loader:ImageLoader = new ImageLoader("images/pic1.jpg", {name:"photo1", container:this, x:300, y:200, width:600, height:470, scaleMode:"proportionalInside", centerRegistration:true, onComplete:onImageLoad}); //begin loading loader.load(); //when the image loads, fade it in from alpha:0 using TweenLite function onImageLoad(event:LoaderEvent):void { TweenLite.from(event.target.content, 1, {alpha:0}); }
×
×
  • Create New...