Blog Archives

Stage dimension limitation – 214×137

I was trying to work out why the Flash Player Settings window was not appearing when i attached a webcam to a Video object, when i discovered that my stage was too small. Although i can’t find documentation for this

Tagged with:
Posted in Flash

stage.mouseLeave and wmode=transparent

noted a strange incompatibility today – the stage.mouseLeave event doesn’t get triggered when you hold a mouse button down, and drag off stage on a flash object which has wmode set to transparent. in fact doing so takes the focus

Tagged with: , ,
Posted in Flash

dynamic text fields part II

just got back from a six week holiday, so was wondering if i’d lost my mind while i was away… steps to recreate weird problem: 1. set up two dynamic text boxes on the stage – one bold and one

Tagged with: ,
Posted in Flash

dynamic text field part I – letter spacing

Just discovered that flash resets the author-time letter spacing of a dynamic textfield when the textfield’s text is set in ActionScript. To maintain the authortime letter spacing settings of the textfield, you need to record the textfield’s textformat, set the

Tagged with: , ,
Posted in Flash

Styling Text In Instances Of Components Using TextFormat

this is an extension of a previous entry here. Text in components or TextFields can be formatted in several ways – applying styles manually in the case of TextFields, applying a style using a TextFormat object, StyleSheets for styling html

Tagged with: , , , ,
Posted in Flash

Embedding external assets

Strange, strange. If you’ve embedded a Flash object inside a html page, and the Flash object loads external assets(images, SWFs, audio), the flash object locates the assets relative to the location of the html file and NOT relative to the

Tagged with:
Posted in Flash

positioning the cursor in a text field

positioning the cursor in flash can be a little tricky and sometimes temperamental, but we should be able to control where the cursor is with setSelection, with both beginIndex and endIndex set to the same position, for example the end

Tagged with: ,
Posted in Flash

printAsBitmap – object must be on stage

just for future reference, I’ve discovered today something that appears to be undocumented – when setting a PrintJob to printAsBitmap=true OR you are printing from a mac,(using the PrintJobOptions class) it is suddenly important that the object is on the

Tagged with: ,
Posted in Flash

preloader absorbing application FlashVars

As has happened frequently, after completing a Flash application, I find that the size of the application demands a preloader swf to load the application swf (complete with progress bar). the problem i have found with this preloader swf is

Tagged with: , ,
Posted in Flash

adding a symbol dynamically from the library

how to add a symbol from the library? in AS2, this.attachMovie(“square”, “square”, 1); and in AS3, var square1:square=new square(); but how do you add a symbol dynamically from the library? say if you have a shape stored in a variable:

Tagged with: ,
Posted in Flash