HTML/CSS Service

Showcase

1 comment0 views
1 Star2 Stars

Exception Handling with Flex

Category: Flex Examples, flex tutorials    |    10,906 views    |    1 Comment

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);
}
}

Read more…

Share/Save/Bookmark

 

Creating a simple image gallery with the Flex TileList control

Category: Flex Examples    |    13,151 views    |    1 Comment

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>

Read more…

Share/Save/Bookmark

 

Flex UI Topics

Category: Learn Flex, flex tutorials    |    290 views    |    1 Comment

This chapter examines a variety of topics, including dynamic layout controls, states and transitions, embedded assets, local data storage using shared objects, communication with the browser, history management, and accessibility.

Repeaters and Containers

The Repeater control is a layout control that allows the interface to be drawn dynamically by looping through its dataProvider. Each object in the dataProvider can be accessed within the repeater by binding to “repeater id”.currentItem.

Share/Save/Bookmark