SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    Malta
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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. #2
    SitePoint Evangelist ferrari_chris's Avatar
    Join Date
    Mar 2008
    Location
    NP, New Zealand
    Posts
    576
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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:
    Code CSS:
    display: none;
    visibility: hidden;

    Hope this helps.

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    Malta
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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. #4
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    Malta
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any help please?

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    Malta
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Someone can tell me how to do the JavaScript please!!!

  6. #6
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    Malta
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Example below
    Link: click here

  7. #7
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.

  8. #8
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    Malta
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •