Not finding what you are looking for? Request a recipe!
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
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).
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.
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.
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.
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.
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.
Use the MXML Binding Tag or do it directly in your attributes.
We're gonna use the getReferenceByName() method and the ClassFactory Flex Object. It allow us to dynamically instanciate object and set properties.
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.