1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Superscript and Subscript - with Actionscript*

*And a little bit of custom-font magic…

johnny.jpg

Although I do like writing lovely elegant code I’m also a big fan of ‘the cheap hack’! Here’s one I used last week to get round the age old problem of dynamic text boxes in Flash not supporting superscript and subscript. You need to do the following:
Continue reading Superscript and Subscript - with Actionscript*…

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Custom character-set embedding in Flash

You know those lovely font embedding options?

Wouldn’t it be great if you could make your own character sets?

customfontembedding.jpg

As great as the default options are (All, Uppercase, Lowercase, Numerals) the latter 3 combined don’t contain all of the visible characters - and the ‘All’ option embeds thousands of other useless characters. So how about this?
Continue reading Custom character-set embedding in Flash…

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

09/04/08 Flash Player security update

Upcoming flash player update? Uh oh…

Well, I’m all for continually updating and improving products, but in the case of Flash it’s a real problem when it interferes with backwards-compatability and certain methods of working. I am of course, referrring to the issues that were encountered with sIFR Flash links, caused by the Flash Player version 9.0.115 (kudos to Mark Wubben for explaining this to me) and also in more general terms to the introduction of a rigid security model with Flash Player 8.

While we’re always doing our best to code in the most secure, efficent ways - like for example, using the ExternalInterface class as opposed to communicating with javascript via getURL(javascript:) [1] - there’s situations where these techniques weren’t available at the time they were written, and these are going to be broken by the update.

Adobe’s solution?

If your content is using “javascript:” within the prohibited networking APIs, you will need to rewrite your content. Developers are encouraged to use the ExternalInterface class for JavaScript-to-ActionScript communication.

Rewrite your code?! That like, must be breaking some unwritten rule of versioning, surely? Files published under a different version shouldn’t be mercy to the whims of newer players - otherwise, what’s the point?

Thanks to UnitZeroOne for their article which tipped me off.

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

sIFR links not working?

Here’s a funny story. Well, maybe not funny. Or particulary interesting - just informative. Maybe.

logo_sifr2.gifSo I’m using sIFR text on a clients’ website, which has always worked before - and the links stop working. There’s no real consistancy - the links work in Internet Explorer on my computer, but not in Firefox, like they used to. Both browsers use the same security settings, flash versions, javascript versions, but one works and the other doesn’t. Other people don’t have the links working at all, regardless of the browser - and this seems to only be a problem we noticed recently.

Well - a lot of investigating later - I find out that the revised sIFR version 3 works fine in all browsers. New code, or something like that. So we upgrade the code to version 3 (beta 2) and… well, it works - eventually.

sIFR 3 is shaping up to be the most comprehensive release yet - but for anyone thinking it’d be easy to upgrade, think again. You’re looking at quite a bit of work reconfiguring the javascript to fit the revised model, and the flash files also need republishing - all of which took several hours.

Anyway, it’s late - but I thought the sIFR 3 project deserved a quick mention.

Find the sIFR 3 Project here.

Read more about sIFR in general, here. 

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

What’s this?

There’s a surprising lack of useful implimentations of Papervision 3D out there, so how about this one;

cmol.gif

It’s a molecule. Did you know that just about every implimentation of science/education molecule renderers are produced in Java? Well, not anymore. On the horizon is our very own Papervision 3D powered molecule renderer. Huzzah!

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Red Bull Flugtag

redbull.jpg

Wow.  If you haven’t come across the ‘Flugtag’ site yet, I would highly recommend it - a highly interactive, user driven site, full flash, nice fun concept, exemplary interface, impressive Papervision 3D and all the other flash tricks that are out there.

After you’ve had a play, you might want to check out LESS RAIN, or the lessrain blog article about developing the Flugtag site.

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Google Analytics Class - AS3

Here’s a couple of scripts that were linked to in the FlexCoders mailing list, some Actionscript 3.0 classes for easily handling the Google Analytics API (via ExternalInterface). I haven’t had a chance to test them yet, but it might be useful to someone!

GA Tracker Class

Urchin Tracker Class