Author: admin
-
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…
-
Frustrating Flex problems solved #2 – addChild
this.addChild(new Sprite()) looks simple enough doesn’t it? especially if you’ve been working solely in Flash AS3. But if you try this line within a Flex component, you’ll receive the error: ‘Type Coercion…
-
ENTER_FRAME problem
i’ve got an interesting conundrum for you all. According to Flash help, ENTER_FRAME “…does not go through a ‘capture phase’ and is dispatched directly to the target, whether the target is on…
-
labels that are numbers
today i was given a movieClip of a candle slowly burning down. it had 15 states represented by numbered frame labels, and i wanted to go to the appropriate label based on…
-
double click problems
Let’s say we want to set up a standard doubleClick interaction on a movie-clip(draw a square inside this clip) with instance name square: square.doubleClickEnabled=true; square.addEventListener(MouseEvent.DOUBLE_CLICK,double); function double(event:MouseEvent):void { trace(“doubleclick”); } Compile, it…
-
Weird sizing problem
After a lot of pulling my hair out trying to work out why my custom scrollbars weren’t resizing correctly, thinking there must be a problem with my code, i’ve discovered that it’s…
-
Frustrating Flex problems solved #1 – dropEnabled
I set up a drag-drop interaction between two components – from a custom ‘dragMe’ component i set up(extending Canvas) to a Tree component, but couldn’t work out why my Tree wouldn’t allow…
-
line width
i was creating a dashed line function which basically drew a short line, then moved on a few pixels. i was trying to display this line with one pixel width. what i…
