Superscript and Subscript Within Dynamic Text Fields in Flash

So today I ran into the issue of getting superscripted ® and TM characters within dynamic text fields.  The <sup></sup> doesn’t work for this within flash, neither will any CSS trickery.  So I turned to font embeds after reading through some other blog posts.

I found 2 fonts in a blog post at GG Superscript and GG Subscript.

After embedding the superscript font in another dynamic text field you’re able to reference the font face and assign it to the characters that need the superscripting.

Like so:

var myString:String = “This is superscript® in a dynamic text field!”;
myString = myString.replace(“®”, ‘<font face=”GG Superscript”>®</font>’);
myText.htmlText = myString;

Clearing the Display of a Video Object in Flash Issues

So today a co-worker of mine and I were trying to figure out why he couldn’t clear the display of an image in the video object on his stage.  The Adobe documentation states that if you use the clear method of the Video class that it should do the following:

“Clears the image currently displayed in the Video object. This is useful when you want to display standby information without having to hide the Video object.”

Well… when having smoothing enabled, this does not work.  It’s a known bug, and I believe it has to do with smoothing caching the video as a bitmap.  I’m not fully sure how smoothing works, but it makes sense that this would likely be the problem.

So to clear the video object that has smoothing enabled, you need to disable smoothing then clear the object.  After it’s been cleared you can turn smoothing back on.

Previewing FLVs on a Mac using Quicktime and Mac OS X 10.5’s Quick Look Feature

If you’re looking to get FLVs to playback in Quicktime I believe your best route is Perian.  It installs a preference pane in your System Preferences.  It’s simple to install and update.  Another great thing about installing Perian is you can convert FLVs to other formats using Quicktime Pro.

Also if you want to quickly preview FLVs from within Finder using the Quick Look feature try using this Quick Look plugin.  Place the flv.qlgenerator file in your Library/QuickLook folder.  This can go in your root library folder or your user library folder.

Hope this is helpful, I use it everyday.

Having Issues with UTF-8 Format in an External ActionScript Document?

From what I gather, any external ActionScript script you may have that you are linking to through an #include statement, you may need to use this code to allow certain characters to be read in the document as UTF-8.  I ran into this issue about a month ago, and a co-worker of mine knew the solution.  It’s something I find is rarely used and easily forgotten:

//!– UTF8

Taken from

To create a document that contains multiple languages, use the #include action.

Use an application that supports UTF‑8 encoding, such as Dreamweaver, to save the text file in UTF‑8 format.

To identify the file as Unicode to the Flash authoring tool, include the following header as the first line of the file:

//!– UTF8
Note: Include a space after the second dash (-).

I hope that helps some of you who may have struggled with this ;-).

PlayStation 3 Now Supports Flash Player 9 Within it’s Web Browser.

I just discovered today that PlayStation 3 is now supporting Flash Player 9.  It’d be awesome to see other systems adopt this standard like the Wii.  It also be awesome if the XBOX had a web browser.  Who knows what will happen.  Either way, I’m finding to be content in the realm of video games, I need all of the systems.  I’m still working on getting a PS3.  I know I should be learning more or maybe writing blog entries, but as of late, I’ve been enthralled in the fantasy worlds the different games bring me.  The iPhone has been rumored for quite some time to be adopting flash player.  It has yet to happen.  I think a big issue on all these devices may be processing power??  Any thoughts?