There was an issue with compiling external font swf made up of a font family in flex builder. For example when trying to generate a set of AkzidenzGrotesk regular, light, bold and black the bold will now show up.
Here is a typical font embedding code in an actionscript project.
package {
import flash.display.Sprite;
public class AkzidenzGrotesqueBold extends Sprite
{
[Embed(source='assets/AkzidenzGrotesk-Bold.otf', fontName='AkzidenzGrotesqueBold')]
public static var AkzidenzGrotesqueBold:Class;
}
}
Every font will compile and generate a corresponding swf except bold.
To get around this issue make sure to define the font weight.
package {
import flash.display.Sprite;
public class AkzidenzGrotesqueBold extends Sprite
{
[Embed(source='assets/AkzidenzGrotesk-Bold.otf', fontWeight='bold' fontName='AkzidenzGrotesqueBold')]
public static var AkzidenzGrotesqueBold:Class;
}
}
Don’t bother defining the fontFamily=”AkizidenzGrotesk”, CSS in flash will ignore it. It only uses the fontName=”blah”.
Bold font should have fontWeight=”bold”, italic font should have fontStyle=”italic” and a bold italic should define both.
How do you tell if the user clicked or dragged in your flash app? Take a look:
private var time:uint;
function onMouseDown(event:Event):void {
time = getTimer();
startDrag();
}
function onMouseUp(event:Event):void {
var diff = getTimer() - time;
if (diff < 250) {
trace("clicked");
}
stopDrag();
}
Running 1 huge pc tower, two mac pros, 1 mac book pro, 1 dell laptop and 1 file server in the closet running constantly is making the home office about 10 degrees hotter then the rest of the house.
Some computers are actually failing due to over heating during this summer days as temperature reach 87 indoors.
Solution is this bad ass 12,000 BTU portable air conditioner :