Coder Social home page Coder Social logo

constantiner / planet-list-flex-4 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 712 KB

A legacy Adobe Flex 4 project I've created in May, 2010 to preserve

License: MIT License

CSS 0.28% JavaScript 38.77% HTML 4.84% ActionScript 56.11%
actionscript actionscript3 adobe-flex flex legacy-code legacy-repo

planet-list-flex-4's Introduction

planet-list-flex-4

A legacy Adobe Flex 4 project was created in May 2010 (to preserve code on GitHub).

Flex 4 introduces separating containers and their layouts. This flexible feature is excellent for creating customized versions of standard data controls (for example, List). So we can control it with a different look and feel and represent our application as an ordinal list (from the developer's perspective). We can even switch between List representations using the new Flex 4 states syntax with rich and impressive GUI and the same application logic.

This project illustrates these conceptions using the Solar System's planets. It offers natural planet representation with all the List capabilities.

Another great advantage of the new Flex layout architecture is the possibility to use unit testing for layouts without creating visual components. New architecture increases testability, which is illustrated in the source code.

Wayback Machine archived the original article from my blog.

How to build

Flash Builder 4

See pom.xml for required versions. This project can built successfully using Flex SDK 4.0.0.14159. The main source folder should be src/main/flex. Also, you should add src/main/resources and src/test/flex (if you plan to run unit tests).

The additional compiler options are the following:

-locale en_US -allow-source-path-overlap=true -source-path=locale/{locale}

If you want to run tests you should add ASMock 1.0RC (you can download it here). The required bundle is ASMock with FlexUnit 4 integration, containing two required swc files.

Maven with Flex Mojos

Run:

mvn package

Do not forget to comment out maven-default-http-blocker mirror setting in Maven's settings.xml.

Add the following repository to Maven's settings.xml or the Nexus as a proxy repository (see more details here).

Because of problems with running tests with custom runner ([RunWith] metatag) unit tests can't be run with Flex Mojos. So, tests are skipped, and all the required dependencies are commented on. Will try to resolve this issue in the future.

Thanks

Special thanks to Evtim Georgiev for some ideas on implementation and Chet Haase and his Flex 4 Fun book for additional information about animations.

Solar and planet icons are provided by Iconka.com and GUIFx.

planet-list-flex-4's People

Contributors

constantiner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.