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.”

  • ObjectCollection

    i’d set up a repeater to display data returned from a ColdFusion call – which would either be a Y or N. I wanted to adjust how this appears to YES or…

    Keep reading

  • An Internal Build Error has occurred…

    public var interactionType:String=INTERACT_DRAG=INTERACT_FORM; This line of code just wasted 4 hours of my life. Flex didn’t notice that there was a problem, and it was only in building that a problem arose…

    Keep reading

  • deployment issues

    just finishing up an alpha version of a Flex project and discovering a couple of deployment issues that are worth getting down for future – i was getting a persistent ‘Where is…

    Keep reading

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

    Keep reading

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

    Keep reading

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

    Keep reading

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

    Keep reading

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

    Keep reading

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

    Keep reading

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

    Keep reading