Archive for the ‘Nifty’ Category

Finding Page URL using ActionScript

Tuesday, January 27th, 2009

How can I find the url of the page my flash is embedded in? This may seem really simple but I cant count how often I find js functions which pass this value into the flash. ExternalInterface allows access to a wide variety of js and should not be over looked. The below line of code will call the javascript “window.location.href.toString” and return the url as a string.

Custom character sets in Flash

Monday, January 7th, 2008

One of the surprisingly time consuming tasks when making a localized (multi-language) site is deciding on which characters you want to embed. In the flash IDE there is a few default sets. If u find those sets to be insufficient but have your own that you would like to add to the IDE check out this article.

If u want be very exact and only use exactly characters you know will be on there you can get a custom set from a text file using this handy dandy page.