|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() 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:
Hope this helps. ![]() |
|
|
|
|
|
#3 |
|
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 |
|
|
|
|
|
#4 |
|
SitePoint Enthusiast
![]() Join Date: Sep 2008
Location: Malta
Posts: 48
|
Any help please?
|
|
|
|
|
|
#5 |
|
SitePoint Enthusiast
![]() Join Date: Sep 2008
Location: Malta
Posts: 48
|
Someone can tell me how to do the JavaScript please!!!
|
|
|
|
|
|
#6 |
|
SitePoint Enthusiast
![]() Join Date: Sep 2008
Location: Malta
Posts: 48
|
Example below
Link: click here |
|
|
|
|
|
#7 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() 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.
|
|
|
|
|
|
#8 |
|
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 |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 15:12.










Linear Mode
