A common hurdle a developer may face is dealing with exceptions in BlazeDS. When an exception is thrown in Java, how do we handle this in flex? Here is a simple and flexible approach inspired by Scott Morgan.
1. Create a Java Class that extends RuntimeException.
package com.flexpasta.exception;
public class FlexException extends RuntimeException
{
public FlexException(String message)
{
super(message);
}
}
Continue reading ‘Exception Handling with Flex’
Flex Photo gallery in Flex using the TileList control, Image control, and the PopUpManager class.
Full code after the jump.
View MXML
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="vertical"verticalAlign="middle"
backgroundColor="white">
<mx:Style>
Continue reading 'Creating a simple image gallery with the Flex TileList control'
The following example shows how you can set a prompt on a Flex ComboBox control by setting the prompt property.
Full code after the jump.
You can reset a ComboBox control so that its prompt message is visible again by setting the selectedIndex property to -1. Continue reading ‘Setting a prompt on a ComboBox control in Flex’