Log in

View Full Version : how to combine the flash movie with the lightbox



sanduwa
04-16-2010, 10:09 AM
Hello,

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

lightbox:
http://www.dynamicdrive.com/dynamicindex4/lightbox2/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.

djr33
04-16-2010, 07:27 PM
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.)

sanduwa
04-17-2010, 01:58 PM
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/showthread.php?t=54023



thnx,
sanduwa.

BLiZZaRD
04-17-2010, 06:40 PM
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?

sanduwa
04-18-2010, 03:12 AM
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.