Go Back   SitePoint Forums > Forum Index > Design Your Site > Flash and Actionscript
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Oct 22, 2009, 09:16   #1
ziffa27
SitePoint Enthusiast
 
Join Date: Sep 2008
Location: Malta
Posts: 48
Load / Play / Unload

Hi everyone,
I have an FLV and I would like to:
Load the file in a DIV on a webpage / leave it to play / and unload the move when ready
Any help please
Thanks in advance,

Ziffa27
ziffa27 is offline   Reply With Quote
Old Oct 22, 2009, 13:31   #2
ferrari_chris
SitePoint Evangelist
 
ferrari_chris's Avatar
 
Join Date: Mar 2008
Location: NP, New Zealand
Posts: 415
Putting the SWF into the DIV is no hassle. You can just do that normally.

You can remove it when the movie is finished, by having the SWF call a JavaScript function on the web page when the movie is complete.

The JavaScript function can then manipulate the DOM to remove the DIV from the page.

To help you with calling the JavaScript from ActionScript, I have recently written a tutorial on this subject on my site. Perhaps you should check it out:

http://fcOnTheWeb.com/articles/javas...h_actionscript

Inside the JavaScript function you can change the style of the DIV to:
CSS Code:
display: none;
visibility: hidden;

Hope this helps.
ferrari_chris is offline   Reply With Quote
Old Oct 23, 2009, 01:47   #3
ziffa27
SitePoint Enthusiast
 
Join Date: Sep 2008
Location: Malta
Posts: 48
Hi ferrari_chris,
This is not exactly what I want because I want to call an FLV leave it to play and then fade it out but I will give it a look
Thanks
ziffa27 is offline   Reply With Quote
Old Oct 25, 2009, 23:38   #4
ziffa27
SitePoint Enthusiast
 
Join Date: Sep 2008
Location: Malta
Posts: 48
Any help please?
ziffa27 is offline   Reply With Quote
Old Nov 7, 2009, 11:10   #5
ziffa27
SitePoint Enthusiast
 
Join Date: Sep 2008
Location: Malta
Posts: 48
Someone can tell me how to do the JavaScript please!!!
ziffa27 is offline   Reply With Quote
Old Nov 9, 2009, 12:56   #6
ziffa27
SitePoint Enthusiast
 
Join Date: Sep 2008
Location: Malta
Posts: 48
Example below
Link: click here
ziffa27 is offline   Reply With Quote
Old Nov 12, 2009, 09:44   #7
jim_morrison3
SitePoint Wizard
 
jim_morrison3's Avatar
 
Join Date: Apr 2004
Location: UK
Posts: 2,266
That can be done by placing your DIV containing the FLV and giving that DIV a higher z: index, the movie can be made transparent by manipulating its alpha channel (i am not sure about the exact term), this will make your movie appear on top of the html content on the page.
jim_morrison3 is offline   Reply With Quote
Old Nov 16, 2009, 13:09   #8
ziffa27
SitePoint Enthusiast
 
Join Date: Sep 2008
Location: Malta
Posts: 48
Hi jim_morrison3,
Yes that what i did!!!
But now i want that when the move (FLV) is finish to be remove
How can i do that?
Thanks,

Ziffa27
ziffa27 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
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
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 15:12.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved