Update #2: Another bug seems to appear in Firefox 2 for the Mac: goto Flashbox directory, click on rel=”flashbox[test]” (you should see a mecha-robot with sword). If you scroll to the top of the page, FlashBox disappears and when you scroll down, you will see it again…
Update #1: There are some problems with the plugin in Firefox 2 for the Mac and Flock: FlashBox is loaded, the images are loaded into it, but FlashBox is not visible.
I am looking into it, sorry Mac users!
There is also a difference between Firefox for the PC and IE for the PC: it works perfectly, but in Firefox FlashBox will be restarted and in IE FlashBox starts where it left of (if it’s started before). These is not a bug this is a feature!
Update #2: A feature I forgot to tell about: you don’t have to change the rel="lightbox" tags, it will also work with FlashBox. If you’re planning to use both, you have to use rel="flashbox"– tag. But if you want to use FlashBox instead of Lightbox, you have te deactivate lightbox!
FlashBox is my attempt to create a simple, unobtrusive script used to overlay images on the current page.
First task was of course the security-box from Flash (which seems to fail ???)
Get the basic stuff in there (loader, navigation, image, caption)
And get it to center after loading
I’ve got everything working in Flash at this moment but to “copy” Lightbox I need to use animations.
Because the animations create with the default animations classes from Adobe (mx.transitions.Tween) are quite heavy, I was looking for an alternative.
Which I found in TweenLite an excellent piece op work by Jack Doyle.
TweenLite provides a lightweight (about 2k), easy way to tween almost any property over time including a MovieClip’s volume. You can easily tween multiple properties at the same time too.
And because size does matter in this project, this will be a life saver.
You need to upgrade your Flash Player
You need to download the Adobe Flash Player.
If you're sure you have the Flash plugin just ad ?detectflash=false to the current url, to bypass the Flash-plugin detection.
The first obstacle is the security box / crossdomain in Flash.
If you want to know more about the security box and crossdomain.xml, visit Martijn de Visser blog, he has an excellent explanation (with images!!!).
But in short, if you want to load images/ xml/ etc from a different server then your own, you need permission (crossdomain.xml) from that server.
This information is given to us by Macromedia Adobe: loadClip (MovieClipLoader.loadClip method) which explains about crossdomain, security box and the MovieClipLoader (this is the method I use to load the images).
And here I seem to run into a bug: it should not be possible to load from another server without a crossdomain.xml, but I can.
When I follow my HTTP traffic between my machine and the Internet (using Charles) I don’t come across a crossdomain.xml when I load images but when I load xml form that same server I don’t get permission to do so (it can’t find a crossdomain.xml and so it’s not allowed to load xml from that server).
Xml loading from another server is not allowed without crossdomain.xml, but images doesn’t seem to be a problem.
Update: I am not keeping files for historical purposes, so the Flashbox directory will be update. (This means: when you view the progress, explained in this post, there is a possibility that the files are already evolved some… and the description here won’t fit what you see ) Check for more recent post about FlashBox.
I used the wp-thickbox plugin (20,8 kB) and don’t forget wp-jQuery (19.5kB). So to get thickbox working on WordPress it will add up to 40.3kB total (less then half of lightbox).
And here comes the trouble:
A couple of days ago there was an update of WordPress: WordPress 2.1 Ella and this version of WordPress uses prototype.
And prototype and jQuery can live together but can cause problem.
Which it did in my case: Thickbox didn’t work any more, and a theme I was working on (using jQuery) stop working too.
Update: Not functioning of Thickbox had nothing to do with WordPress 2.1 or with the wp-plugin. I was to hasty with my conclusion. Read the comments
So I changed this blog (not update to wp2.1 yet) back to Lightbox again, because of the prototype/jQuery issues and future updates of my blog. Continue reading
Very recently I wrote about a Firefox extension: the FlashTracer written by Alessandro Crugnola. This extension will only make the hearts of Flash developers go faster, which it did in my case: I love this plugin! And although this is a relative new Firefox extension, it already helped me debug a application that I build.
Flash Switcher – This extension comes with all the currently published flash player plugins (from the version 2 to the most recent 9,0,16) and allows you to easily switch from one plugin to another, or also to remove the currently installed plugin (maybe for testing the express install).
I used to use KewBee Plugin Switcher. Which is now for free, but if I remember correctly will be a commercial program. The big plus of that program is that it also works for IE, but who cares…. (and windows doesn’t like that you install / uninstall something without their knowledge, so it creates lot of ERRORS).