feedback
Oct 26 2007

Is another site/URL using my Flash SWF?

by John Dyer

There is not a clear way in Flash access what site is using your SWF. On DTS's media page, we allow users to embed our media player in their blogs (like all other video sites these days), but it is difficult to know the URL of the file who is pulling the file. stage.loaderInfo.url is just the URL of the SWF, but not the HTML page which embeds the SWF. The only way I found to do this is to call ExternalInterface and ask JavaScript what the URL of the page is. So here's what I came up with:

var urlReferrer:String = ExternalInterface.call("document.location.href.toString"); 

The reason for the "toString() is that ExternalInterface.call wants you to use a function rather than just calling a static property.

Update (01/08/08): Looks like someone else has caught on to this.

Oct 12 2007

Real World Object Size Comparison in Papervision3D

by John Dyer

While doing development in Papervision 3D again for a campus map, I thought it would be fun to mock up a dynamic size comparison tool like the one at sizeasy. The demo has the obligatory iPhone along with a BlackBerry 8700 and a deck of cards. The measurements are in millimeters, but you could change it to whatever you want, as long as all of the objects matched up. You can also add a URL to whatever image you want to use for each object:

Sizer in PV3D

TV, coffee maker, mountain dew 6-pack

XBOX, PS3, Wii

Oct 2 2007

FreeTextBox 4.0 Beta 1 Release

by John Dyer

You can now download FreeTextBox 4.0 Beta 1.

 Please add comments here or use the contact page on FreeTextBox.com