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

  1. Avg. Rating 5.0

    Close a pop-up windows by clicking on the modal

    We'll use the "mouseDownOutside" FlexEvent, which is dispatched when the user is click outside the target. As the modal blocks the whole UI, if the user has clicked outside, he has clicked on the modal

  2. Avg. Rating 5.0

    Optimize a Flex application using deferred instantiations

    We'll use the "deferred instantiation" which mean creating and adding our component's children when we need to (typically when they have to be displayed).

  3. Avg. Rating 5.0

    Generate a PDF file containing a local picture in a Adobe AI ...

    I'm going to use AlivePDF (http://alivepdf.bytearray.org), Gumbo, Spark and a little bit of Halo to create a simple UI, and File, FileStream to save the file.

  4. Avg. Rating 4.5

    Using the progressBar component in both directions

    We'll simulate a exchange between two clients with a timer called 100 times to set the progression of the progressBar. The progressBar Flex component natively integrate a "direction" property, we'll use it to have the requested behavior.

  5. Avg. Rating 4.5

    Using the new states syntax in Gumbo

    The syntax is much more logical than it used to be. You no longer have to write 4 or 5 lines to add or remove a child or to change a property's value.

  6. Avg. Rating 4.5

    Communication between an AIR and an embedded HTML form

    I'll use the HTML component to display the website. When the page is fully loaded, I use javascript to force values in the authentification fields (login and password), then trigger the click on the submit button.

  7. Avg. Rating 4.2

    How to use the new CSS syntax in Flex 4

    We'll show a few ways to select and apply styles to a component: global selection by namespace, selection by ID, Descendant selection and States selection.

  8. Avg. Rating 4.0
  9. Avg. Rating 4.0

    Display dynamically instantiated Spark primitives

    We're gonna use the getReferenceByName() method and the ClassFactory Flex Object. It allow us to dynamically instanciate object and set properties.

  10. Avg. Rating 4.0

    Dealing with forcing-download scripts in HTML component in A ...

    Each time the HTML component renders HTML, I will fetch every links included in the page and bind the "click" event to an Actionscript Method. In this method, I'll open a save window using the File class and download the file targeted by the link.