Flash

Adobe Launches Flash Lite 3

More news from MAX.. Adobe has released Flash Lite 3 Here is the beginning (meat) of the press release. ADOBE MAX 2007, CHICAGO - October 1, 2007 — Adobe Systems Incorporated (Nasdaq: ADBE) today announced the availability of Adobe® Flash® Lite™ 3 software, which now supports Adobe...

Thermo at Max 07

While looking through the daily links I noticed that Sam Robbins of Pixel Consumption stumpled on a job posting from Adobe that makes mention of a new innovative tool Thermo. Not much information is available at this time, but soon after, Ted from OnFlex confirmed...

Back from PSWorld

Back from PhotoshopWorld West in Las Vegas. It was a pretty good show, Adobe unveiled the "Photoshop" brand, PhotoshopCafe debuted at least 4 new training titles among many other companies making announcements. Just as I get back into the swing of things I am off to...

Flash Player 9 Update

Just hours after Adobe released the Flash CS3 Air Compiler, they have released an update to the Flash Player. Here is what got updated/added: Support for H.264 video and HE-AAC audio codecs Multi-core support for vector rendering. Full screen mode with hardware scaling. Flash Player cache...

Flash CS3 Professional Update, AIR support

Adobe has released a CS3 Update which now offers the ability to build AIR applications in Flash CS3. Now is the time, start developing some sweet AIR applications! The Adobe® Integrated Runtime (AIR) update for Flash® CS3 beta 1 software will allow you to package and...

PHP to generate font code for Flex

I have been loading Fonts for a project for over 2 hours now and I am about 70{9eb845e9932a4c0558a0305a78bf1c2d5042d8a06323e6cdeacdb9c8597fbf65} done. Basically I needed an SWF library of fonts to be used in an application I am developing, problem is the font needs to be registered (loaded) in order for the “New Font” option to see it. Now on the Mac I found adding/deleting fonts is easy, but very time consuming.

This is all being done in AS2, of course my love of Flash comes in to AS3, where I was able to (just for testing) create this little PHP script that reads a directory of fonts and creates the embed tags for me.. figured I would share it, so here it is.

Again, this is ONLY for AS3 (in Flex).

<?php
$dir = opendir('./fonts/');
while (false !== ($file = readdir($dir)))
{
if ($file != "." && $file != "..")
{
print "@font-face {\n\tsrc:url(\"fonts/" . $file . "\");\n\tfontFamily: myFont;\n\tflashType: true;\n}\n";
}
}
closedir($dir);
?>

It repeatedly prints out import blocks, like this:
@font-face {
src:url("fonts/LT_13171.ttf");
fontFamily: myFont;
flashType: true;
}