Category: 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…
-
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…
-
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…
