Results 1 to 5 of 5

Thread: how to combine the flash movie with the lightbox

  1. #1
    Join Date
    Apr 2010
    Posts
    33
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default how to combine the flash movie with the lightbox

    Hello,

    I would like to know how to combine the flash movie with the lightbox.

    lightbox:
    http://www.dynamicdrive.com/dynamici...box2/index.htm

    flash movie :
    <HTML>
    <HEAD>
    <TITLE>My_project_Test</TITLE>
    </HEAD>

    <BODY>
    <OBJECT>
    <EMBED src="flash_movie.swf" quality="high">
    </OBJECT>
    </BODY>
    </HTML>

    Is there any possibility to open lightbox when click on the flash movie?????
    I have tried this several times. But I couldn't. Now I'm fed-up with this.

    This is urgent. It would be great if someone could help me.

    Thanks,
    Sanduwa.
    Last edited by sanduwa; 04-16-2010 at 10:14 AM.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I don't understand. I see two possible ideas:
    1. You want to insert flash INTO the lightbox. Instead of a picture, you see a flash object.
    2. You want to use a flash object to OPEN the lightbox (inside the lightbox is still a picture, etc.).


    For (1)
    This means rewriting lightbox some. You might do better with a script that is designed to work with videos/flash/etc. I remember that there is a script that does this, I believe submitted by the user jscheuer1. I don't remember exactly where it is though.
    It would be possible to make lightbox do this, but it would require changing the content of the box that opens and probably using something other than 'rel' to open it.

    For (2)
    You can use ActionScript to interact with Javascript to open the lightbox (program it into the flash object). It is not possible in HTML/Javascript to control what a flash object does, so this must be part of the Flash object. You could try to place an invisible layer on top of the flash object so you are clicking THAT and NOT the flash, but that is messy and I don't recommend it. It also would mean you can't control (click) on the flash object for other reasons.
    The easier way might be just to create the same effect using Flash. Why use Javascript for an effect when Flash is already being used? In almost all cases, Flash creates better, more complex graphics than Javascript. (The only problem I can think of here is making it full screen-- I'm not sure about permissions, etc.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2010
    Posts
    33
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default

    Hello,
    Thank you for your response.... I looking-for, your 2nd option.... it's clear now...
    If you familiar javascript please help me
    http://www.dynamicdrive.com/forums/s...ad.php?t=54023



    thnx,
    sanduwa.

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Well, checked this out, and it is possible, but as djr33 said, why would you want the light box when you are already using Flash?

    Then I looked at your second post and you ask the same thing except without the Flash.

    So the question now before we freely give our time to help...

    Do you want to open Light Box from a button inside Flash, or according to your other post, are you just using the Light Box and want to incorporate other uses into it, and NOT use Flash?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Apr 2010
    Posts
    33
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default

    BLiZZaRD, you are 100% correct. that's my requirement.
    would you mind telling me, to where the above your code should be added.
    I'm very beginner to codes, not like you...
    would you help me with some detail coding.
    and how should I use it to open lightbox when click on the flash movie?

    thank you very much for giving your time and kindly help.

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
  •