Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

badu/SparkOnly

Repository files navigation

What is it?
==================
Apache Flex 4.6 library which contains unified framework and Spark without MX components.
Includes AIR classes.

Purpose
==================
Tweak the framework and experiment for optimizing the SDK.

Intructions on how to use it
==================
1) Download the sources and import it in Flash Builder.
2) Create a new Flex project
3) On "Build Paths" wizard step, choose "Spark only" and click "Finished"
4) Go to Project menu and choose properties
5) Under "Flex Build Path" expand SDK that you are using (I recommend SDK 4.6)
6) Remove the following : "framework.swc", "spark.swc", "sparkskins.swc"
7) Add the imported library (SparkOnly)
8) Enjoy!

New things
==================
1) There is a Spark Tooltip which replaced old MX Tooltip
You can use tooltips as in MX
If you want to use tooltips with more functionality (like having a title, changing color and chromeColor):
A) You have to create a ResourceBundle file like in the example below
toolTip.aButton.title=<img source='assets/icons/refresh.png' width='24' height='24' /><span fontWeight='bold' fontSize='24'> Undo delete actions</span>
toolTip.aButton.color=0x505050
toolTip.aButton.chromeColor=0xe8e8e8
toolTip.aButton.text=Will restore last deleted item in the same position<br/>if no operations were done after delete, or at the end<br/>of current form if adding fields were done.
B) The rules for the above are : always start with particle "toolTip." followed by the component "id" (if you don't want to specify it in the referenced id in the toolTip of that component - e.g. <s:Button id="aButton" toolTip="^ToolTipBundle" />), followed by particles for title, color, chromeColor and text. Title and text can be TextFlow.
C) Add to the component that you want to have that tooltip, a tooltip declaration which starts with ^ char.  Example <s:Button toolTip="^ToolTipBundle.ahaButton" />
==================
2) ModuleLoader has isAutoDisposingContent which allows it to unload the module if the parent of a ModuleLoader instance has removed instance (with removeElement)
==================
3) Introduced package mx.enums. So far, only classes that were in mx.core were moved

About

Apache Flex without MX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published