I'm using this code to load a swf with an flv video file. The Flash movie also has a jpg placeholder that loads before the user clicks the video start button on the control panel. When the user clicks the start button, the placeholder overlay is tweened out of the picture and the video plays. This is what the code is upposed to do but it isn't loading the video. Can anyone tell me why this isn't working or what I can do to make it work? This is meant to have an image rather than a black box before the user starts a video on a web page. Thanks. Here's the code:
import fl.video.*;
import com.greensock.*;
import com.greensock.easing.*;
movie1.autoPlay=false;
movie1.source="sandywoods_resident_export.flv";
movie1.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, isPlaying);
function isPlaying(e:VideoEvent): void
{ TweenLite.to(poster, 4,{alpha:0} ); }
import fl.video.*;
import com.greensock.*;
import com.greensock.easing.*;
movie1.autoPlay=false;
movie1.source="sandywoods_resident_export.flv";
movie1.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, isPlaying);
function isPlaying(e:VideoEvent): void
{ TweenLite.to(poster, 4,{alpha:0} onComplete:hidePoster); }
function hidePoster(){
poster.visible=false;
}
or use the normal class Tween, Tween Lite is efficient and compact, but sometimes does strange things
North America
Europe, Middle East and Africa
Asia Pacific