
Archive for 2010
Chainsaw David & Friends

Inspired by Chainsaw Maid!
http://www.youtube.com/watch?v=6d-tNXxTRBA
AS3 Runtime Fonts not displaying — A CS5 Glitch
In the office today, we found a very frustrating bug with Flash CS5 (on Apple OSX, at least) involving runtime shared font libraries. There was an inconsistency between two of our computers, mine and my developer co-worker, in which publishing a library FLA would cause fonts to either work or not work. Theoretically, there should not have been any font-related differences between us because the fonts were being pulled from another file, but it was very clear that his publishes worked and mine did not.
We figured this was either corruption in the FLA, corruption in the fonts, or Flash was bugging out in some manner. What we found was that regardless of whether or not you’re actually embedding glyphs, Flash still takes takes your system fonts into account when publishing. So the difference between my co-worker’s computer and mine was that he had uninstalled the site’s fonts before running Flash and publishing while I had not.
So what’s the fix? You have to disable or uninstall whatever fonts you are loading in via runtime before publishing any file that references them.
Now whether this applies to all cases is unknown at this point, but it is a real problem in this project and possibly with the method of implementation we use.
For your reference, this is the basic framework we used for our runtime font loading.
AS3 BlendMode’s not working? This might be why.
If you’ve dynamically set an object’s blending mode and you’re not seeing it take effect, make sure that its container does not have cacheAsBitmap = true. For some reason, cacheAsBitmap disables blending modes for all display objects within it.
:’(
i am the raincloud
i am the darkness in the alley
i am the moisture on your pillow
i am sweet dav
AS3 – SoundTransform.volume increment limitations
Here’s a quick tip about SoundTransform.volume — if you are trying to increment the volume of a sound, be aware that there is a limit to how small you can go. Anything above 0.02 is OK, but 0.01 and below will only work some of the time. This can be a real pain if you aren’t careful! So make sure you either keep the values up or use something like the Greensock Tweening Platform to fade your sounds in and out.
O Captin My Captin
O Captin my Captin! our fearful trip is done,
The ship has weathered every rack, the prize we sought is won,
The port is near, the bells I hear, the people all exulting,
While follow eyes the steady keel, the vessel grim and daring;
But O heart! heart! heart!
O the bleeding drops of red,
Where on the deck my Captin lies,
Fallen cold and dead.
O Captin! my Captin! rise up and hear the bells;
Rise up–for you the flag is flung for you the bugle trills,
For you bouquets and ribboned wreaths for you the shores a-crowding,
For you they call, the swaying mass, their eager faces turning;
Here Captin! dear father!
This arm beneath your head!
It is some dream that on the deck,
You’ve fallen cold and dead.
My Captin does not answer, his lips are pale and still;
My father does not feel my arm, he has no pulse nor will;
The ship is anchored safe and sound, its voyage closed and done;
From fearful trip the victor ship comes in with object won;
Exult O shores, and ring O bells!
But I, with mournful tread,
Walk the deck my Captin lies,
Fallen cold and dead.
~ Walt Whitman




