Flash lightbox...
- Started
- Last post
- 6 Responses
- wwfc
Hi All, apologies in advance for repetition, I am looking for a solid lightbox effect that works in flash.
I have googled til blue in the face and the best solution that I have found so far is this one:
http://www.after-hours.org/2006/…
which works great apart from one thing - the overlay doesn't stay central to the browser stage size after resize - if you have the window at say 800x600 click on the image - it sits bang on the centre - but if you resize the browser and click on an image again the overlay comes in at the same position it did when the browser was at 800x600!I have tried to alter the source code to work with a resize but have failed in all attempts!
Life is made a little trickier in the fact that the author of this is Spanish - and my spanglais just isn't up to the job :-(
Anyone suggest a solid flash lightbox effect please?
Cheers in advance
- Mishga0
nice find..i'll give it a try at home...
- wwfc0
...I know it is pretty tidy - if I could work out how to get the browser resize bit working it would be perfect!
- Mishga0
i am sure the good people of QBN will give it a try...there's a lot of good flash coders over here...
and they will help you...(Don't you?!?!?!)
=)
- wwfc0
***crosses finger***
hope so - I know there has been a few posts about the lightbox in it's many forms - so don't want to p*ss people off by posting again - but could really do with someone putting me right on the centre/resize thing - it is doing me fruit in!
- wwfc0
...been trying to suss this - and hate to sound like I'm banging on about it - does anything in this code http://pastebin.com/m355d74e2 scream out as being the code that I need to amend, add to, delete to make the overlay recognise browser/stage dimiension??
- wwfc0
...apparantley this fixes the centered issue - but I dunno where it goes??? anyone suggest the right place for it:
// on page load call TB_init
$(document).ready(TB_init);
// on resize page call TB_init
$(document).onresize(TB_init); // NEW CODE !!!