Posted: January 12th, 2010 | Author: Liza | Filed under: As3, Flash, XML, cs3 | Tags: arial unicode, As3, characters, Cyrillic, embedding, font, russian, XML | No Comments »
I had a problem with a Russian font not appearing in a text area, although the font would work when I traced it.
The font was originally Avenir, but there was nothing appearing when I embedded the Cyrillic characters.
I tried to change it to Arial and still no luck.
The solution was changing the font to Arial Unicode and embedding the Cyrillic characters.


Posted: June 14th, 2009 | Author: Liza | Filed under: As3, Flash, Uncategorized, cs3, cs4 | Tags: accessing stage, flash cs4, gaia framework, resizing stage | 1 Comment »
I have had alot of trouble trying to access the stage from Gaia Framework, but thanks to David, I’m finally getting the hang of it.
I needed to access the stage width (when resized) to create a a bar to sit behind the navigation on my site.
First I had to add this to the class constructor:
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
Then create the following 2 functions:
private function onAddedToStage(event:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
stage.addEventListener(Event.RESIZE, onResize);
onResize();
}
private function onResize(event:Event = null):void
{
navBackBar.width = stage.stageWidth;
navBackBar.x = 0 - ((stage.stageWidth - Gaia.api.getWidth()) / 2);
}
navBackBar is the name of the movieclip on the stage. You can see it behind the navigation on my site.
Posted: June 14th, 2009 | Author: Liza | Filed under: As3, Flash, cs3, cs4 | Tags: 5000, cs3, cs4, Error, flash.display.MovieClip, gaia framework | No Comments »
I have moved more than 1 Gaia Framework file from Flash CS3 to CS4 and got this error.
5000: The class ‘Work’ must subclass ‘flash.display.MovieClip’ since it is linked to a library symbol of that type.
The solution is to import the MovieClip class into the import area and to extend the main class as a MovieClip.
In my case from this:
public class Logger
{
to this:
public class Logger extends MovieClip
{