Craig Grummitt – Before I forget

Discoveries in Swift and iOS development.

Writing

The public notebook: Swift, iOS, Flutter, and a long trail of “I will definitely remember this.”

  • 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…

    Keep reading

  • 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…

    Keep reading

  • 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…

    Keep reading

  • 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…

    Keep reading

  • 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…

    Keep reading

  • ,

    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…

    Keep reading