It is difficult to conceptualize how to get data from ItemRenderers in a Flex List. This example will go over how to get the "selected" value from Checkbox ItemRenderers in a List.
Solution
The solution is to put the "selected" value into the dataprovider and not rely solely on looking up ItemRenderers and interrogating the Checkbox directly.
To create a form on the run, dynamically from a XML. It also does validation dynamically on the fly.
Will be helpful to solve many cases where formitems are usually changed on a regular basis. This solution helps in making minor changes to an external XML file rather than making code changes in Flex and hence resulting in a new Bin-release.
Solution
To create a form on the run, dynamically from a XML. It also does validation dynamically on the fly.
This example helps in creating a dynamic form, from a XML using actionscript. Dynamic validation has also been done for Textinput and Dropdownlist in this example.
Will be helpful to solve many cases where formitems are usually changed on a regular basis. This solution helps in making minor changes to an external XML file rather than making code changes in Flex and hence resulting in a new Bin-release.
How can I make my PDF Portfolio open automatically in a two-panel that displays my a TOC/Agenda PDF on left that links to the other PDFs in my Portfolio in the panel that appears on the right.
To make a Google map component in Flex. Also provide a marker capability, such that on every double click the marker is added on Google map.
This can be used to develop mesh-up application using googlemap with some other API (like yahoo search)
Solution
On each double click on the map, marker is added to Google map thus creating a overlay of markers on top of the Google map.
Please include the SWC file provided here with as an attachment.
We know how to do it with functions how to set a default value when nothing comes through but what about variables such as in scenarios of flash vars where we just don't know until run time if we are going to get the variables or not.
Solution
Like anything cool in the world of programing there are a few options. The first is a traditional if statement asking our variable if its empty or not but then that wouldn't be such a cool trick if that was the full solution. come join in this is really cool...
Working with events in AS3 isn't as easy as it used to be in the past. While you need to monitor every event in your application there is no real easy way to do it without manually remembering all of your events and remembering to remove them on a one by one bases(ohi so much work...).
With all the new features and powers of AS3 came a lot of leg work. So many classes out there tried to tackle this issue from many interesting and different directions. But most of them demand a large learning curve and a big shift in the way you would interact with your code, some through a framework that locks you into a development style, some changed the way flash handles events.
Solution
Essentially Event Controller is an easier way to keep track of events in actionscript 3. Event Controller is a simple extension to your normal workflow that allows you to easily tag, group and remove any and all events, pause events and restore them when you want them back and more.
We know that there are many great solutions out there from very talented people. But we wanted to bring out another option the most simple one we could think about and we are with our ears to the community(so far in our 3rd revision) to making it even easier. The goal is to create the most simple yet feature rich event hub. Let unknown leaks be a thing of the past by taking our library out for a spin.
You need to communicate with device (in my case a biometric scanner) via RS232. This involves interpreting the serial output from the device and sending the device commands as required.
Solution
Use the freeware application 'Serproxy' to redirect serial communication with the device via a network socket connection to my Air application.
You need the ability to call JavaScript functions from the Creative Suite SDK (CS SDK) and vice versa.
Solution
In the following code, I'll explain how to use HostObject to communicate between JavaScript and the CS SDK. This will involve embedding your JavaScript in your swf and defining interfaces for communication between the two different contexts. Note, this recipe will not cover using CSXSInterface.evalScript but that is another viable method for communicating from the CS SDK to JavaScript.
This site is produced in partnership with O'Reilly.