Showing posts with label MXML. Show all posts
Showing posts with label MXML. Show all posts

Friday, October 19, 2012

ASC 2.0 vs Falcon

ActionScriptActionScript (Photo credit: Wikipedia)
Falcon, the next-generation MXML and ActionScript compiler that is currently under development 

Following are the key differences between Falcon and ASC 2.0

- ASC 2.0 is essentially a fork of Falcon. 
- Falcon was branched off from ASC 2.0 in summer 2012 and the packages were renamed from com.adobe.flash to org.apache.flex.
-  Falcon supports Flex (MXML)
ASC 2.0 is mainly focused on gaming.


the new ActionScript Compiler (ASC 2.0) is part of the AIR 3.4/FP 11.4 SDK. The complete release notes are available here. It things like Concurrency (ActionScript Workers) support for debugging and more.

Friday, October 5, 2012

Flash XML Graphics (FXG)

Illustrator fxg experimentIllustrator fxg experiment (Photo credit: everyplace)

Flash XML Graphics (FXG), is  a graphics interchange file format based on XML that lets you define low-level vector graphics. FXG is an XML based declarative format.

Starting Flex 4.0, FXG graphics can be declared as part of an MXML file or in a separate text file with FXG extension.

Saturday, September 29, 2012

PowerFlasher FDT 5 - Yet Another IDE for Flash/Flex/Air


FDT 5 supports development with ActionScript and MXML The IDE meets the needs of Flash/Flex developers by increasing their coding comfort while at the same time working more efficiently and time-saving on highly creative projects.

Friday, February 26, 2010

Skining Flex Components

Flex component is made up of visual elements which are set of images, SWF files, or class files that contain drawing API methods.

Skinning: the process of changing the appearance of a component by modifying or replacing its visual elements.

You can define a skins for a component using the following methods:
1. Using the setStyle() method
2. Cascading Style Sheets (CSS).
  • External Styles - You can reference a CSS file in any MXML file using  the tag
  • Embedded Style - You can define embedded styles in an MXML file. Embedded styles can used only in the file in which it is defined.
  • Inline Styles - they are defined in MXML tag and can be used in that tag. 
Application skins can be defined in separate MXML file.


SparkSkin - class is used for skinning an flex application

 <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"   
   xmlns:s="library://ns.adobe.com/flex/spark">  

All skins requires a states property with at least one state called normal state.

   <s:states>  
     <s:State name="normal" />  
     <s:State name="disabled" />  
     ....  
   </s:states>  

Metadata block contians the HostComponent directive, declare to which components the skin will be applied.

    <fx:Metadata>   
     [HostComponent("spark.components.Application")]  
   </fx:Metadata>  

Skin also defines the background shape and colors

Skin defines the container display layout and properties for the Application container's content children.

Introduction Flex UI Framework

English: A vector version of Overview_of_a_thr...English: A vector version of Overview_of_a_three-tier_application.png (Photo credit: Wikipedia)

the open source Flex 4.5 Framework provides
  1. Rich & extended set of controls / component library 
  2. Complete set of layout mechanisms.
  3. Mobile-optimized components
  4. Containers
  5. MXML declarative language for layouting UI components & ActionScript an ECMA compliant scripting languages for writing business logic.
  6. Rich class library based on ActionScript 3.0
Layout Mechanism functions
- controls look and feel
- helps in management of display area during window resizing.

Containers hold other containers and components, container lays out its children

Saturday, September 5, 2009

How to create custom MXML components with Flex Builder 3.0

Slide: UI ComponentsImage by Geoff S. via Flickr

Watch the video below to learn How to creating an MXML custom component:

More DIY videos at 5min.com


How to add properties and methods to a MXML custom component.


More DIY videos at 5min.com


Reblog this post [with Zemanta]

Thursday, August 27, 2009

Building Simple Application with Flex

EBA AJAX Grid + Flex Charting ComponentEBA AJAX Grid + Flex Charting Component (Photo credit: Andre Charland)
Working with Containers

Lets now learn about the most important MXML tag in Flex.

Applicaiton
Description: root container for an Flex application

Properties:


layout, define lay out for its child components
, possible values for this property are:
  1. vertical - automatic top to bottom in order layout
  2. horizontal - automatic left to right in order layout
  3. absolute - no automatic layout, (x,y) location based layout
Note: The default layout, BasicLayout renderer doesn't respect the transformations that occur in the object's width/height/position during rotation. It still tries to layout the objects as if they were not rotated. However, if you use any other layout, like VerticalLayout or HorizontalLayout, the objects new dimensions after rotation is used.
style, defines formatting for the child components
  1. backgroundGradientColors
  2. verticalGap

How to Use Absolute Layout in Flex


More DIY videos at 5min.com


How to Use the appropriate Layout Type in your Flex Applicatoin


More DIY videos at 5min.com

Also visit blog to learn about adding inline ActionScript in MXML code



Which is better React Native or Native iOS and Android Development for building Mobile applications ?

  React Native vs Native (iOS, Android)   Properties/Feature React Native   Native (iOS) – Swift / Object...

Labels