Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-29-2012, 06:53 PM   #1
Robert O'Malley
Registered User
 
Join Date: May 2012
Posts: 1
Default Problem getting placeholder for Flash video to work

I've created a movie clip placeholder for a Flash video. I want the video with control panel to load without playing and with the placeholder in place. Then I want the user to click the start button on the control panel to play the movie and tween away the placeholder. But I can't get the tween to work (on click the movie plays behind the placeholder.) Here's the code. Would appreciate help with adding/subtracting code to make this work. Here's what I have now Thanks.

import fl.video.*;
import com.greensock.*;
import com.greensock.easing.*;


movie1.autoPlay=false;

movie1.source="sandywoods_resident_export.flv";

movie1.addEventListener(Event.COMPLETE,isPlaying);

function isPlaying(e:Event): void

{TweenLite.to(poster, 4,{alpha:0});}

function hidePoster(){


}
Robert O'Malley is offline   Reply With Quote
Old 05-29-2012, 07:41 PM   #2
thelemur
Registered User
 
Join Date: May 2012
Posts: 14
Default

Quote:
Originally Posted by Robert O'Malley View Post
I've created a movie clip placeholder for a Flash video. I want the video with control panel to load without playing and with the placeholder in place. Then I want the user to click the start button on the control panel to play the movie and tween away the placeholder. But I can't get the tween to work (on click the movie plays behind the placeholder.) Here's the code. Would appreciate help with adding/subtracting code to make this work. Here's what I have now Thanks.

import fl.video.*;
import com.greensock.*;
import com.greensock.easing.*;


movie1.autoPlay=false;

movie1.source="sandywoods_resident_export.flv";

movie1.addEventListener(Event.COMPLETE,isPlaying);

function isPlaying(e:Event): void

{TweenLite.to(poster, 4,{alpha:0});}

function hidePoster(){


}

The TweenLite.to statement is not invoked until the video is complete. Move the TweenLite statement to the function that is invoked on mouse click.
thelemur is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.