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.
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.
I would like to see an example that shows how to use Flex validators in Flash Catalyst project. For instance a contact layout made in Flash Catalyst and adding validators, like an EmailValidator, on the text input fields in Flash Builder.
Solution
Validators only display an outline frame in WireFrame mode, you need to change the Flex Theme to Spark for validators to display correctly.
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.
Sometimes we need to be noticed when something such as a click on a button or when a new contact is added to our electronic schedule, for example. In these cases, Events are very useful and creating our custom ones we can listen to specific operations.
Solution
Building custom events we can verify specific operations that are happening in our app and make our code reusable for others.
If you are deploying an application that uses the network connection on a mobile device, you may want to take into account that you only want to do this when the device is using a WiFi connection and not a data connection to save costs. But how do you know which connection the device is using?
Solution
In Flex 4.5 you can request a list of all available interfaces on the device. All you have to do is find the proper interface and check to see whether or not it is active.