Not finding what you are looking for? Request a recipe!

  1. Avg. Rating 5.0

    Custom namespace for using library classes as MXML component ...

    Compile SWC project with proper manifest and URI for group of classes/components and use it in project via custom namespace setting.

  2. Avg. Rating 5.0

    Trick with HTTPService: using rootURL property to identify i ...

    If You use not relative but absolute service URL in HTTPService property url property rootURL not used – so, we can use it to set some unique id to identify HTTPService instance. This trick may be useful in multiply thread loading and so on – just create several HTTPService instances with same funct ...

  3. Avg. Rating 5.0
  4. Avg. Rating 5.0

    How do I really access the front-facing camera on a mobile d ...

    Similar problem already solved by Phillip Chertok in his recipe http://cookbooks.adobe.com/post_How_do_I_access_the_front_facing_camera_on_a_mobil-19312.html . But this doesn't work "from the box" because there no AIR 3.0 for mobile devices yet. We have to pack runtime with our app.

  5. Avg. Rating 4.5

    Simple ComboBox extension old-new selected index pair holds

    First we will create custom Event class extension with Object instance. Than we will override selectedIndex setter in our custom ComboBox nesting class with old value stores and custom event fires on selectedIndex changed.

  6. Avg. Rating 4.5

    Adding text to flash.display.Graphics instance

    Add needed text to UITextField() instance, take a BitmapData snapshot from it and use this data as specified region fill.

  7. Avg. Rating 4.4

    Simple embed fonts/images library

    Create static class, push embed resources in it's Array variable and use this Array items as corresponding classes throughout the project.

  8. Avg. Rating 4.3

    Simple DateField extension with masked input

    Create DateField extension with text input override with com.adobe.flex.extras.controls.MaskedTextInput.

  9. Avg. Rating 4.3

    How to upload image (screen and transfer image to serverside ...

    Every interface element implementing flash.display.IBitmapDrawable programmic interface can be screened using ImageSnapshot.captureBitmapData(). Next step is to cover obtained BitmapData to jpg-containing ByteArray using JPGEncoder(), code it to string with Base64Encoder() and transfer to server in ...

  10. Avg. Rating 4.0

    How to obtain current system locale string.

    Compile swf with all available in sdk locales and use ResourceManager.getInstance().localeChain[0] to access current prefered system locale.