In order to use the <b> tag within html text in flash and have Flash automatically detect the right font to use for bold, you must embed both character sets and specify the fontWeight of both.
Sounds more complicated than it is. Just use the following code when embedding fonts:
[Embed
(mimeType=
'application/x-font', source=
'fonts/myFont-Medium.ttf', fontName=
'myfont')]
private var font:
Class;
[Embed(mimeType='application/x-font', source='fonts/myFont-Bold.ttf', fontName='myfont', fontWeight='bold')]
private var fontBold:Class;
And it does it out of the box.
SWFAddress 2.1 is out and it supports Google Analytics with no extra effort. No code necessary except for the usual SCRIPT tags code provided by Google.
If you are like me and don't like to read all the fine print, keep in mind that you'll have to remove the following code
pageTracker._trackPageview();
from the HTML, because SWFAddress tracks the page view automatically for you. If you don't remove you'll end up with double page visits.
Pages are ready to be tracked. So now to track events:
public static function track(event:String):void
{
ExternalInterface.call("pageTracker._trackPageview('"+event+"')");
}
And you are all set.
Publicis & Hal Riney is probably the first site I've navigated leaning back on my seat without touching my mouse or keyboard, and for that they deserve fame, recognition, and free beer.
You'll need a webcam or you'll totally miss the point.
Innovative with the cam, slightly confusing with the keyboard.
Recent Comments