Tag Archive for 'flex-css'

03
Dec

Flex Using external style sheets

Flex supports external CSS style sheets. You can declare the location of a local style sheet or use the external style sheet to define the styles that all applications use. To apply a style sheet to the current document and its child documents, use the source property of the <mx:Style> tag.

NOTE You should try to limit the number of style sheets used in an application, and set the style sheet only at the top-level document in the application (the document that contains the <mx:Application> tag). If you set a style sheet in a child document, unexpected results can occur.

The following example points to the style.css file in the flex_app_root/assets directory:

<?xml version="1.0"?>
<!-- styles/ExternalCSSExample.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

<mx:Style source="../assets/style.css"/>

<mx:Button id="myButton" label="Click Here"/>
</mx:Application>
 Continue reading 'Flex Using external style sheets'
29
Nov

Getting URL Parameters in Flex Actionscript

Get the full url with the host name and port in actionscript?

There are several methods to help with this:

getHostName()
getPort()
getProtocol() -such as http or https
getContext() -The path after the hostname but before the url parameters

29
Nov

Exception Handling with Flex

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’

28
Nov

Creating a simple image gallery with the Flex TileList control

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'
24
Jun

learn Flex Application Frameworks

Understanding Frameworks

It is important to understand what a framework is before you start using one for the first time.

The word “framework” is often misunderstood in the software development field. There are two different types of frameworks, one being application frameworks and the other being architectural frameworks.

For a more in-depth explanation of frameworks, refer to part 1 of Steven Webster’s series of articles at http://www.adobe.com/devnet/flex/articles/cairngorm_pt1_02.html.

Application Frameworks Continue reading ‘learn Flex Application Frameworks’



Get Adobe Flash playerPlugin by wpburn.com wordpress themes