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: September 30th, 2009 | Author: Liza | Filed under: As3, Flash, Uncategorized | Tags: addchild, addchildat, As3, depth | No Comments »
I had a bit of trouble trying to figure out how to move the depth of an object on the stage in AS3 today. Its actually called Z-order in AS3, not Depth. Instead of just using the AddChild function, which put the Movie Clip on the top of the display list, I used AddChildAt, which set the depth of the Movieclip while it was adding it.
So instead of adding the child this way:
global.base.bgSprite.addChild(whiteTriangle);
where the movieclip was just dumped on top of everything
I used this
global.base.bgSprite.addChildAt(whiteTriangle, 1);
The 1 moved the depth of the movieclip to the base.
p.s. this was an external ActionScript file.