Unlike the previous MX version, the spark VideoDisplay component has no attachCamera function. The only other examples of Camera usage I have found have all revolved around attaching to a Video object. The problem is that this means you have to handle all the sizing etc... manually.
Solution
You can create a simple custom MediaElement class and add it to a MediaContainer in a custom UIComponent which will handle all of the sizing issues. This can be included via mxml in the same way VideoDisplay is.
I need a simple digital clock, but did not find any such standard component. Then using Timer and Date class I tried to create a Digital Clock in ActionScript.
Solution
I used Timer and Date class to implement this clock. The clock also has the functionality to dispatch events for (every second, every minute, every hour). This clock can be extended to add other functionality as well.
You need to add C/C++ functionality to one of the Creative Suite applications and you need your custom code to work together with an Actionscript-based CS Extension. Where do you start?
Solution
You will need to create two separate projects:
1) You will need to create a native plugin using Visual Studio and/or XCode using the SDK provided for the point product you are developing for.
2) You will need to create a CS Extension using the CS SDK / Extension Builder.
These two entities can then work together as described below.
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.
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.
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...
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 are using the google maps component and want to raise a custom information window when a marker is click, and you want the info window to contain more than just text.
Solution
Listen for marker click events and build a custom component to be shown inside the google maps info window.
This site is produced in partnership with O'Reilly.