• IPhone, QueueTip

    Posted on March 21st, 2009

    Written by admin

    Tags

    ,

    QueueTip #006 - Persisting State w/ NSUserDefaults

    Did you know…
    You can persist application data using NSUserDefaults in your iPhone application? What are we referring to when we mention “persistence”? Basically, we mean that we’re going to allow your app to save data locally onto your iPhone and then later recall that saved data when your application requests that data.
    Here’s the pertinent [...]

  • Flex, QueueTip

    Posted on January 17th, 2009

    Written by admin

    Tags

    , ,

    QueueTip #005 - Color Channel Extraction : 24bit and 32bit Colors

    Did you know…
    You can extract the alpha, red, blue, and green channels of a hexadecimal color with simple bit shift and logical AND operations? Below are the operations to extract these channels from RGB and ARGB color formats.
    RGB Channel Extraction - 24 bits
    // 24 bit color
    var color : uint = 0xff0000;

    var R : Number = [...]

  • Flex, QueueTip

    Posted on December 28th, 2008

    Written by admin

    Tags

    , ,

    QueueTip #004 - Ranged Random Number Generation

    Did you know…
    In one line of code in conjunction with the Math.random() method, you can generate a ranged random number as illustrated below:
    Math.random() * ( max - min ) + min;

    This will generate a random float between the values “min” and “max”

  • Flex, QueueTip

    Posted on December 26th, 2008

    Written by admin

    Tags

    , , , ,

    QueueTip #003 - Programmatic Bindings

    Did you know…
    You can achieve binding programmatically with the “ChangeWatcher”? The following example illustrates various methods for achieving binding.
    The first method simply binds the labels text property to the text property of the text input. This is probably the most straightforward method for achieving binding.
    The second method binds via the ChangeWatcher. Using the [...]

  • Flex, QueueTip

    Posted on December 26th, 2008

    Written by admin

    Tags

    , , ,

    QueueTip #002 - Weak References and Cleanup Strategies

    Did you know…
    Event listeners and Dictionary’s support weak referencing facilities in Actionscript 3.0? Why the need for weak referencing?

    potential performance gains
    promote best practices in application cleanup strategies ( i.e. prevent memory leaks )

    Utilizing weak references does not necessarily mean that your application will be free from memory leaks. You, as the developer, are still [...]

  • Flex, QueueTip

    Posted on December 25th, 2008

    Written by admin

    Tags

    , ,

    QueueTip #001 - Dynamically Changing Style Attributes

    Did you know…
    You can dynamically change a display elements style and attributes by utilizing custom style tags in conjunction with the setStyle/GetStyle methods of the component to which the style is applied to? Let’s walk through a simple example to illustrate.
    A simple gradient border skin as illustrated below.
    package com.thekeunster.skins
    {
    import flash.display.Graphics;
    [...]

  • Flex, QueueTip

    Posted on December 25th, 2008

    Written by admin

    Tags

    ,

    The QueueTip

    What’s a QueueTip? Are we referring to those small devices described by a paper stick and a cotton swab on each end? Nope. Perhaps the lightest barbell you’ve ever lifted? Nope. On this site, we’ll be referring to the QueueTip as a “Quick Tip”. Generally, these quick tips will be just that, quick. Nothing in [...]