Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

merging

  • Loading branch information...
commit 06dce17435244df54a48d64893e53c573d996448 2 parents 9a28ac6 + 5bcaece
@dartavion authored
Showing with 897 additions and 62 deletions.
  1. +2 −0  .gitignore
  2. +77 −0 build.properties
  3. +182 −0 build.xml
  4. +462 −0 flex-config.xml
  5. BIN  libs/FlexUnitTestRunner_rb.swc
  6. BIN  libs/as3commons-logging-2.7.swc
  7. BIN  libs/flexunit-4.1.0-8-flex_4.1.0.16076.swc
  8. BIN  libs/flexunit-4.1.0-x-flex_y.y.y.y.swc
  9. BIN  libs/flexunit-aircilistener-4.1.0-x-y.y.y.y.swc
  10. BIN  libs/flexunit-cilistener-4.1.0-x-y.y.y.y.swc
  11. BIN  libs/flexunit-flexcoverlistener-4.1.0-x-y.y.y.y.swc
  12. BIN  libs/flexunit-uilistener-4.1.0-x-y.y.y.y.swc
  13. BIN  libs/flexunitextended.swc
  14. BIN  libs/hamcrest-as3-flex-1.1.3.swc
  15. BIN  libs/melomel-0.6.13.swc
  16. BIN  libs/melomel-stub-0.6.13.swc
  17. BIN  libs/mockolate-0.12.4-as3.swc
  18. BIN  libs/mockolate-0.12.4-flex.swc
  19. +3 −6 src/Robotlegs2Example.mxml
  20. +108 −0 src/Robotlegs_2_Simple_Project_with_Popup.html
  21. +19 −0 src/Robotlegs_2_Simple_Project_with_Popup.mxml
  22. +24 −0 src/org/robotlegs/example/LoggerConfig.as
  23. +0 −7 src/org/robotlegs/example/base/BaseActor.as
  24. +10 −11 src/org/robotlegs/example/model/ExampleModel.as
  25. +0 −7 src/org/robotlegs/example/model/vo/AnswerVO.as
  26. +8 −10 src/org/robotlegs/example/service/ExampleService.as
  27. +0 −7 src/org/robotlegs/example/service/IExampleService.as
  28. +1 −0  src/org/robotlegs/example/view/MainView.mxml
  29. +1 −0  src/org/robotlegs/example/view/NewWindow.mxml
  30. +0 −7 src/org/robotlegs/example/view/api/IMainView.as
  31. +0 −7 src/org/robotlegs/example/view/api/INewWindow.as
View
2  .gitignore
@@ -0,0 +1,2 @@
+Thumbs.db
+.DS_Store
View
77 build.properties
@@ -0,0 +1,77 @@
+## Important Paths
+
+## Where is the flex SDK?
+FLEX_HOME=/Users/OSX_ACCOUNT_NAME/Development/SDKs/flex_sdk_4.6.0.23201B/
+## Ant Tasks
+FlexTasks.file=${FLEX_HOME}/ant/flexTasks.jar
+## Flex compiler
+mxmlc.jar=${FLEX_HOME}/lib/mxmlc.jar
+## HTML Templates
+wrapper.dir=${FLEX_HOME}/resources/html-templates/express-installation-with-history
+## Server you want to use -- on osx /Users/username/Sites/Site/
+deploy_to_web_server=/Users/OSX_ACCOUNT_NAME/Sites/ReportBuilder/
+## Flex Unit 4
+FlexUnitTasks.file=/Users/OSX_ACCOUNT_NAME/Development/ANT/flexUnitTasks-4.1.0_RC2-4.jar
+## Config file
+flex.config.xml=flex-config.xml
+
+
+## Application properties (mxml, air or airmobile)
+app_name=RobotLegs2Example
+app_type=mxml
+locale=en_US
+encoding=UTF-8
+debug_mode=true
+
+## HTML Wrapper
+title=Reflex Report Builder
+file=index.html
+height=100%
+width=100%
+application=${app_name}
+swf=${app_name}
+history=false
+output.html=${output.swf.name}.html
+output.debug.html=${debug.build.dir}/${output.html.name}
+output.release.html=${release.build.dir}/${output.html.name}
+swf.width=100%
+swf.height=100%
+swf.debug.title=Report Builder Debug
+swf.release.title=Report Builder
+swf.version.major=11
+swf.version.minor=0
+swf.version.revision=0
+swf.application=${output.swf.name}
+swf.swf=${output.swf.name}
+swf.bgcolor=#FFFFFF
+
+## FLEX Unit Testing
+#report output file
+FlexUnitReport.dir=${basedir}/flexUnitReport
+#test dir
+Test.dir=${FlexUnitReport.dir}/test
+TestRunner.dir=${project_root}
+TestRunnerSrc.dir=${TestRunner.dir}/test
+TestRunnerLib.dir=${TestRunner.dir}/libs/SWC
+#Test Runner Dir
+TestRunner.name=QueryBuilderTest
+
+## Directories
+project_root=${basedir}
+class_path=${project_root}/src
+lib_path=${project_root}/libs/SWC
+assets_dir_name=assets
+assets_path=${project_root}/src/assets
+js_dir=js
+js_path=${project_root}/js
+
+## SWF
+main_class=${class_path}/${app_name}.${app_type}
+swf_file=${app_name}.swf
+
+## Build and deploy
+
+build_dir=${basedir}/build
+debug_dir=${basedir}/build/debug
+publish_dir=${basedir}/build/deploy
+output_loc=${publish_dir}/${swf_file}
View
182 build.xml
@@ -0,0 +1,182 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project default="4. Build and Deploy to Local Server" name="Reflex Systems Query Builder">
+ <!-- references: http://www.unitedmindset.com/jonbcampos/2010/02/02/run-flex-unit-tests-from-ant/ -->
+ <!-- http://www.funky-monkey.nl/blog/2011/10/14/i-proudly-present-automating-your-actionscript-projects-with-eclipse-and-ant/ -->
+
+ <!-- Build Properties -->
+ <property file="build.properties" />
+ <!-- Flex Tasks -->
+ <property name="FLEX_TASKS" resource="flexTasks.tasks" value="${FLEX_HOME}${file.separator}${FlexTasks.file}"/>
+
+ <!-- Use the Flex ANT tasks for easier compilation -->
+ <taskdef name="mxmlc" classname="flex.ant.MxmlcTask" classpath="${FLEX_TASKS}"/>
+ <!-- Reference of the Flex Unit Tasks -->
+ <taskdef resource="flexUnitTasks.tasks" classpath="${FlexUnitTasks.file}"/>
+ <!-- Build the html page for the swf -->
+ <taskdef name="html-wrapper" classname="flex.ant.HtmlWrapperTask" classpath="${FLEX_TASKS}"/>
+ <!-- Growl messaging. Comment out this and the references to growl -->
+ <!--<taskdef name="growl" classname="net.slimeslurp.growl.GrowlEcho" />-->
+
+ <!-- An example for using the Growl messaging system -->
+ <target name="Creates a timestamp">
+ <tstamp>
+ <format property="current.date.time" pattern="dd_MM_yyyy_HH_mm" />
+ </tstamp>
+ <growl message="Custom Timestamp: ${current.date.time}" />
+ <growl message="Base Directory: ${basedir}" />
+ </target>
+
+ <!-- Clean existing directories and wrapper -->
+ <target name="1. Cleanup Directories" description="clean up">
+ <delete dir="${debug_dir}"/>
+ <delete dir="${publish_dir}"/>
+ <delete dir="${build_dir}"/>
+ </target>
+
+ <!-- Create required directories -->
+ <target name="2. Build New Directories" depends="1. Cleanup Directories">
+ <mkdir dir="${build_dir}"/>
+ <mkdir dir="${debug_dir}"/>
+ <mkdir dir="${publish_dir}${file.separator}${assets_dir_name}"/>
+ <mkdir dir="${publish_dir}${file.separator}${js_dir}"/>
+ <copy includeemptydirs="true" todir="${publish_dir}${file.separator}${assets_dir_name}">
+ <fileset dir="${assets_path}" />
+ </copy>
+ <copy includeemptydirs="true" todir="${publish_dir}${file.separator}${js_dir}">
+ <fileset dir="${js_path}" />
+ </copy>
+ <copy todir="${publish_dir}">
+ <fileset file="${class_path}${file.separator}inventory.html" />
+ </copy>
+ <copy todir="${publish_dir}">
+ <fileset file="${class_path}${file.separator}inventory1.html" />
+ </copy>
+ <copy todir="${publish_dir}">
+ <fileset file="${class_path}${file.separator}named.html" />
+ </copy>
+ <copy todir="${publish_dir}">
+ <fileset file="${class_path}${file.separator}property.html" />
+ </copy>
+ <copy todir="${publish_dir}">
+ <fileset file="${class_path}${file.separator}indexTest.html" />
+ </copy>
+ <copy todir="${publish_dir}">
+ <fileset file="index-js.html" />
+ </copy>
+ </target>
+
+ <!-- Compile SWF to build-directory for packaging -->
+ <!-- configname is the trick 'airmobile', 'flex', 'air'-->
+ <target name="3. Build Directories and Wrapper" depends="2. Build New Directories">
+ <mxmlc
+ file="${main_class}"
+ output="${output_loc}"
+ locale="${locale}"
+ static-rsls="false"
+ accessible="false"
+ configname="flex"
+ debug="${debug_mode}"
+ failonerror="true"
+ optimize="true"
+ fork="true"
+ maxmemory="512m">
+ <arg value="-load-config=flex-config.xml"/>
+
+ </mxmlc>
+ <html-wrapper
+ title="${title}"
+ file="${file}"
+ height="${height}"
+ width="${width}"
+ application="${application}"
+ swf="${swf}"
+ history="${history}"
+ output="${publish_dir}"/>
+ </target>
+
+ <target name="4. Build and Deploy to Local Server" depends="3. Build Directories and Wrapper, Creates a timestamp">
+ <delete dir="${deploy_to_web_server}"/>
+ <copy todir="${deploy_to_web_server}">
+ <fileset dir="${publish_dir}" />
+ </copy>
+ </target>
+
+ <target name="5. Run unit tests" depends="4. Build and Deploy to Local Server, 2. Build New Directories, cleanFlexUnitReport,cleanTest,compileTestRunner,executeTestRunner">
+ <echo>Compiling Test Runner SWF To Test</echo>
+ <mxmlc file="${TestRunnerSrc.dir}${file.separator}${TestRunner.name}.mxml"
+ output="${Test.dir}/${TestRunner.name}.swf">
+ <load-config filename="${FLEX_HOME}${file.separator}frameworks${file.separator}flex-config.xml"/>
+ <compiler.source-path path-element="${class_path}" />
+ <compiler.library-path dir="${basedir}${file.separator}" append="true">
+ <include name="${debug_dir}"/>
+ </compiler.library-path>
+ <compiler.library-path dir="${TestRunnerLib.dir}" append="true">
+ <include name="*.swc"/>
+ </compiler.library-path>
+ <compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
+ <compiler.headless-server>true</compiler.headless-server>
+ </mxmlc>
+ <echo>Compiled Test Runner SWF To Test</echo>
+ </target>
+ <!-- helpers -->
+ <target name="cleanFlexUnitReport" description="Cleans the Report file">
+ <echo>Deleting FlexUnit Report Directory...</echo>
+ <delete dir="${FlexUnitReport.dir}" failOnError="false"
+ includeEmptyDirs="true" />
+ <echo>Deleted FlexUnit Report Directory</echo>
+ <echo>Creating FlexUnit Report Directory...</echo>
+ <mkdir dir="${FlexUnitReport.dir}" />
+ <echo>Created FlexUnit Report Directory</echo>
+ </target>
+
+ <target name="cleanTest" description="Cleans the Test file">
+ <echo>Deleting Test Directory...</echo>
+ <delete dir="${Test.dir}" failOnError="false"
+ includeEmptyDirs="true" />
+ <echo>Deleted Test Directory</echo>
+ <echo>Creating Test Directory...</echo>
+ <mkdir dir="${Test.dir}" />
+ <echo>Created Test Directory</echo>
+ </target>
+
+ <target name="compileTestRunner">
+ <echo>Compiling Test Runner SWF To Test</echo>
+ <mxmlc file="${TestRunnerSrc.dir}/${TestRunner.name}.mxml"
+ output="${Test.dir}/${TestRunner.name}.swf">
+ <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
+ <compiler.source-path path-element="${class_path}" />
+ <compiler.library-path dir="${basedir}/" append="true">
+ <include name="${DeploySWC.dir}"/>
+ </compiler.library-path>
+ <compiler.library-path dir="${TestRunnerLib.dir}" append="true">
+ <include name="*.swc"/>
+ </compiler.library-path>
+ <compiler.verbose-stacktraces>true</compiler.verbose-stacktraces>
+ <compiler.headless-server>true</compiler.headless-server>
+ </mxmlc>
+ <echo>Compiled Test Runner SWF To Test</echo>
+ </target>
+
+ <target name="executeTestRunner" description="executes the test runner app">
+ <echo>Running Test Runner SWF</echo>
+ <flexunit swf="${Test.dir}${file.separator}${TestRunner.name}.swf"
+ toDir="${FlexUnitReport.dir}"
+ haltonfailure="false"
+ verbose="true"
+ localTrusted="true" />
+ <echo>Ran Test Runner SWF</echo>
+
+ <echo>Generate Readable Tests</echo>
+ <junitreport todir="${FlexUnitReport.dir}">
+ <fileset dir="${FlexUnitReport.dir}">
+ <include name="TEST-*.xml"/>
+ </fileset>
+ <report format="frames" todir="${FlexUnitReport.dir}/html"/>
+ </junitreport>
+ <echo>Generated Readable Tests</echo>
+ </target>
+
+
+
+
+</project>
View
462 flex-config.xml
@@ -0,0 +1,462 @@
+<?xml version="1.0"?>
+
+<!--
+
+ ADOBE SYSTEMS INCORPORATED
+ Copyright 2005-2007 Adobe Systems Incorporated
+ All Rights Reserved.
+
+ NOTICE: Adobe permits you to use, modify, and distribute this file
+ in accordance with the terms of the license agreement accompanying it.
+
+-->
+
+<flex-config>
+ <!-- Specifies the minimum player version that will run the compiled SWF. -->
+ <target-player>11.1</target-player>
+
+ <!-- Specifies the version of the compiled SWF -->
+ <swf-version>14</swf-version>
+
+ <compiler>
+
+ <!-- Turn on generation of accessible SWFs. -->
+ <accessible>true</accessible>
+
+ <!-- Specifies the locales for internationalization. -->
+ <locale>
+ <locale-element>en_US</locale-element>
+ </locale>
+
+ <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
+ <!-- not set -->
+ <!--
+ <source-path>
+ <path-element>string</path-element>
+ </source-path>
+ -->
+
+ <!-- Allow the source-path to have path-elements which contain other path-elements -->
+ <allow-source-path-overlap>false</allow-source-path-overlap>
+
+ <!-- Run the AS3 compiler in a mode that detects legal but potentially incorrect -->
+ <!-- code. -->
+ <show-actionscript-warnings>true</show-actionscript-warnings>
+
+ <!-- Turn on generation of debuggable SWFs. False by default for mxmlc, -->
+ <!-- but true by default for compc. -->
+ <!--
+ <debug>true</debug>
+ -->
+
+ <!-- List of SWC files or directories to compile against but to omit from -->
+ <!-- linking. -->
+ <external-library-path>
+ <path-element>${flexlib}/libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
+ </external-library-path>
+
+ <!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
+ <!-- the compiler during mxml translation and are helpful with understanding and -->
+ <!-- debugging Flex applications. -->
+ <keep-generated-actionscript>false</keep-generated-actionscript>
+
+ <!-- not set -->
+ <!--
+ <include-libraries>
+ <library>string</library>
+ </include-libraries>
+ -->
+
+ <!-- List of SWC files or directories that contain SWC files. -->
+ <library-path>
+ <path-element>${flexlib}/libs</path-element>
+ <path-element>${flexlib}/libs/mx</path-element>
+ <path-element>${flexlib}/locale/{locale}</path-element>
+ <!-- The following entry is because LCDS copies playerfds.swc in the player folder -->
+ <path-element>${flexlib}/libs/player</path-element>
+
+ <path-element>libs/SWC</path-element>
+ </library-path>
+
+ <namespaces>
+ <!-- Specify a URI to associate with a manifest of components for use as MXML -->
+ <!-- elements. -->
+ <namespace>
+ <uri>http://ns.adobe.com/mxml/2009</uri>
+ <manifest>${flexlib}/mxml-2009-manifest.xml</manifest>
+ </namespace>
+ <namespace>
+ <uri>library://ns.adobe.com/flex/spark</uri>
+ <manifest>${flexlib}/spark-manifest.xml</manifest>
+ </namespace>
+ <namespace>
+ <uri>library://ns.adobe.com/flex/mx</uri>
+ <manifest>${flexlib}/mx-manifest.xml</manifest>
+ </namespace>
+ <namespace>
+ <uri>http://www.adobe.com/2006/mxml</uri>
+ <manifest>${flexlib}/mxml-manifest.xml</manifest>
+ </namespace>
+ </namespaces>
+
+ <!-- Enable post-link SWF optimization. -->
+ <optimize>true</optimize>
+
+ <!-- Enable trace statement omission. -->
+ <omit-trace-statements>true</omit-trace-statements>
+
+ <!-- Keep the following AS3 metadata in the bytecodes. -->
+ <!-- Warning: For the data binding feature in the Flex framework to work properly, -->
+ <!-- the following metadata must be kept: -->
+ <!-- 1. Bindable -->
+ <!-- 2. Managed -->
+ <!-- 3. ChangeEvent -->
+ <!-- 4. NonCommittingChangeEvent -->
+ <!-- 5. Transient -->
+ <!--
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+ -->
+
+ <!-- Turn on reporting of data binding warnings. For example: Warning: Data binding -->
+ <!-- will not be able to detect assignments to "foo". -->
+ <show-binding-warnings>true</show-binding-warnings>
+
+ <!-- toggle whether warnings generated from unused type selectors are displayed -->
+ <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
+
+ <!-- Run the AS3 compiler in strict error checking mode. -->
+ <strict>true</strict>
+
+ <!-- Use the ActionScript 3 class based object model for greater performance and better error reporting. -->
+ <!-- In the class based object model most built-in functions are implemented as fixed methods of classes -->
+ <!-- (-strict is recommended, but not required, for earlier errors) -->
+ <as3>true</as3>
+
+ <!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
+ <!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
+ <!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
+ <!-- references to dynamic properties) -->
+ <es>false</es>
+
+ <!-- List of CSS or SWC files to apply as a theme. -->
+ <theme>
+ <!-- The Flex 4 default theme is Spark. -->
+ <filename>${flexlib}/themes/Spark/spark.css</filename>
+ </theme>
+
+ <!-- Turns on the display of stack traces for uncaught runtime errors. -->
+ <verbose-stacktraces>false</verbose-stacktraces>
+
+ <!-- Defines the AS3 file encoding. -->
+ <!-- not set -->
+ <!--
+ <actionscript-file-encoding></actionscript-file-encoding>
+ -->
+
+ <fonts>
+
+ <!-- Enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small -->
+ <!-- fonts. This setting can be overriden in CSS for specific fonts. -->
+ <!-- NOTE: flash-type has been deprecated. Please use advanced-anti-aliasing <flash-type>true</flash-type> -->
+ <advanced-anti-aliasing>true</advanced-anti-aliasing>
+
+ <!-- The number of embedded font faces that are cached. -->
+ <max-cached-fonts>20</max-cached-fonts>
+
+ <!-- The number of character glyph outlines to cache for each font face. -->
+ <max-glyphs-per-face>1000</max-glyphs-per-face>
+
+ <!-- Defines ranges that can be used across multiple font-face declarations. -->
+ <!-- See flash-unicode-table.xml for more examples. -->
+ <!-- not set -->
+ <!--
+ <languages>
+ <language-range>
+ <lang>englishRange</lang>
+ <range>U+0020-007E</range>
+ </language-range>
+ </languages>
+ -->
+
+ <!-- Compiler font manager classes, in policy resolution order-->
+ <managers>
+ <manager-class>flash.fonts.JREFontManager</manager-class>
+ <manager-class>flash.fonts.BatikFontManager</manager-class>
+ <manager-class>flash.fonts.AFEFontManager</manager-class>
+ <manager-class>flash.fonts.CFFFontManager</manager-class>
+ </managers>
+
+ <!-- File containing cached system font licensing information produced via
+ java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath)
+ Will default to winFonts.ser on Windows XP and
+ macFonts.ser on Mac OS X, so is commented out by default.
+
+ <local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>
+ -->
+
+ </fonts>
+
+ <!-- Array.toString() format has changed. -->
+ <warn-array-tostring-changes>false</warn-array-tostring-changes>
+
+ <!-- Assignment within conditional. -->
+ <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
+
+ <!-- Possibly invalid Array cast operation. -->
+ <warn-bad-array-cast>true</warn-bad-array-cast>
+
+ <!-- Non-Boolean value used where a Boolean value was expected. -->
+ <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
+
+ <!-- Invalid Date cast operation. -->
+ <warn-bad-date-cast>true</warn-bad-date-cast>
+
+ <!-- Unknown method. -->
+ <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
+
+ <!-- Unknown property. -->
+ <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
+
+ <!-- Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. -->
+ <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
+
+ <!-- Impossible assignment to null. -->
+ <warn-bad-null-assignment>true</warn-bad-null-assignment>
+
+ <!-- Illogical comparison with null. -->
+ <warn-bad-null-comparison>true</warn-bad-null-comparison>
+
+ <!-- Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. -->
+ <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
+
+ <!-- Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. -->
+ <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
+
+ <!-- __resolve is no longer supported. -->
+ <warn-changes-in-resolve>false</warn-changes-in-resolve>
+
+ <!-- Class is sealed. It cannot have members added to it dynamically. -->
+ <warn-class-is-sealed>true</warn-class-is-sealed>
+
+ <!-- Constant not initialized. -->
+ <warn-const-not-initialized>true</warn-const-not-initialized>
+
+ <!-- Function used in new expression returns a value. Result will be what the -->
+ <!-- function returns, rather than a new instance of that function. -->
+ <warn-constructor-returns-value>false</warn-constructor-returns-value>
+
+ <!-- EventHandler was not added as a listener. -->
+ <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
+
+ <!-- Unsupported ActionScript 2.0 function. -->
+ <warn-deprecated-function-error>true</warn-deprecated-function-error>
+
+ <!-- Unsupported ActionScript 2.0 property. -->
+ <warn-deprecated-property-error>true</warn-deprecated-property-error>
+
+ <!-- More than one argument by the same name. -->
+ <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
+
+ <!-- Duplicate variable definition -->
+ <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
+
+ <!-- ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. -->
+ <warn-for-var-in-changes>false</warn-for-var-in-changes>
+
+ <!-- Importing a package by the same name as the current class will hide that class identifier in this scope. -->
+ <warn-import-hides-class>true</warn-import-hides-class>
+
+ <!-- Use of the instanceof operator. -->
+ <warn-instance-of-changes>true</warn-instance-of-changes>
+
+ <!-- Internal error in compiler. -->
+ <warn-internal-error>true</warn-internal-error>
+
+ <!-- _level is no longer supported. For more information, see the flash.display package. -->
+ <warn-level-not-supported>true</warn-level-not-supported>
+
+ <!-- Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). -->
+ <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
+
+ <!-- Negative value will become a large positive value when assigned to a uint data type. -->
+ <warn-negative-uint-literal>true</warn-negative-uint-literal>
+
+ <!-- Missing constructor. -->
+ <warn-no-constructor>false</warn-no-constructor>
+
+ <!-- The super() statement was not called within the constructor. -->
+ <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
+
+ <!-- Missing type declaration. -->
+ <warn-no-type-decl>true</warn-no-type-decl>
+
+ <!-- In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns -->
+ <!-- NaN in ActionScript 2.0 when the parameter is '' or contains white space. -->
+ <warn-number-from-string-changes>false</warn-number-from-string-changes>
+
+ <!-- Change in scoping for the this keyword. Class methods extracted from an -->
+ <!-- instance of a class will always resolve this back to that instance. In -->
+ <!-- ActionScript 2.0 this is looked up dynamically based on where the method -->
+ <!-- is invoked from. -->
+ <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
+
+ <!-- Inefficient use of += on a TextField.-->
+ <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
+
+ <!-- Possible missing parentheses. -->
+ <warn-unlikely-function-value>true</warn-unlikely-function-value>
+
+ <!-- Possible usage of the ActionScript 2.0 XML class. -->
+ <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
+
+ </compiler>
+
+ <!-- compute-digest: writes a digest to the catalog.xml of a library. Use this when the library will be used as a
+ cross-domain rsl.-->
+ <!-- compute-digest usage:
+ <compute-digest>boolean</compute-digest>
+ -->
+
+ <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
+ <remove-unused-rsls>true</remove-unused-rsls>
+
+ <!-- A list of runtime shared library URLs to be loaded before applications start. -->
+ <!-- not set -->
+ <!--
+ <runtime-shared-libraries>
+ <url>string</url>
+ <url>string</url>
+ </runtime-shared-libraries>
+ -->
+
+ <!-- runtime-shared-library-path: specifies a SWC or directory to link against and an RSL URL to load with optional failover URLs -->
+ <!-- Framework SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/framework.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/framework_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>framework_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- TextLayout SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/textLayout.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.232/textLayout_2.0.0.232.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>textLayout_2.0.0.232.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- Spark SWC-->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/spark.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/spark_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>spark_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- Sparkskins SWC-->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/sparkskins.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/sparkskins_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>sparkskins_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- RPC SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/rpc.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/rpc_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>rpc_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- Charts SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/charts.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/charts_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>charts_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- Spark_dmv SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/spark_dmv.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/spark_dmv_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>spark_dmv_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- OSMF SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/osmf.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/osmf_1.0.0.16316.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>osmf_1.0.0.16316.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- MX SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/mx/mx.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/mx_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>mx_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- Advancedgrids SWC -->
+ <runtime-shared-library-path>
+ <path-element>${flexlib}/libs/advancedgrids.swc</path-element>
+ <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.6.0.23201/advancedgrids_4.6.0.23201.swz</rsl-url>
+ <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
+ <rsl-url>advancedgrids_4.6.0.23201.swz</rsl-url>
+ <policy-file-url></policy-file-url>
+ </runtime-shared-library-path>
+
+ <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
+ <static-link-runtime-shared-libraries>false</static-link-runtime-shared-libraries>
+
+ <!-- target-player: specifies the version of the player the application is targeting.
+Features requiring a later version will not be compiled into the application.
+The minimum value supported is "9.0.0".-->
+ <!-- target-player usage:
+ <target-player>version</target-player>
+ -->
+
+ <!-- Enables SWFs to access the network. -->
+ <use-network>true</use-network>
+
+ <!-- Metadata added to SWFs via the SWF Metadata tag. -->
+ <metadata>
+ <title>Reflex Systems</title>
+ <description>http://www.reflexsystems.com</description>
+ <publisher>Reflex Systems</publisher>
+ <creator>Reflex Systems</creator>
+ <language>EN</language>
+ </metadata>
+
+ <!-- licenses: specifies a list of product and serial number pairs. -->
+ <!-- not set -->
+ <!--
+ <licenses>
+ <license>
+ <product>string</product>
+ <serial-number>number</serial-number>
+ </license>
+ </licenses>
+ -->
+
+</flex-config>
View
BIN  libs/FlexUnitTestRunner_rb.swc
Binary file not shown
View
BIN  libs/as3commons-logging-2.7.swc
Binary file not shown
View
BIN  libs/flexunit-4.1.0-8-flex_4.1.0.16076.swc
Binary file not shown
View
BIN  libs/flexunit-4.1.0-x-flex_y.y.y.y.swc
Binary file not shown
View
BIN  libs/flexunit-aircilistener-4.1.0-x-y.y.y.y.swc
Binary file not shown
View
BIN  libs/flexunit-cilistener-4.1.0-x-y.y.y.y.swc
Binary file not shown
View
BIN  libs/flexunit-flexcoverlistener-4.1.0-x-y.y.y.y.swc
Binary file not shown
View
BIN  libs/flexunit-uilistener-4.1.0-x-y.y.y.y.swc
Binary file not shown
View
BIN  libs/flexunitextended.swc
Binary file not shown
View
BIN  libs/hamcrest-as3-flex-1.1.3.swc
Binary file not shown
View
BIN  libs/melomel-0.6.13.swc
Binary file not shown
View
BIN  libs/melomel-stub-0.6.13.swc
Binary file not shown
View
BIN  libs/mockolate-0.12.4-as3.swc
Binary file not shown
View
BIN  libs/mockolate-0.12.4-flex.swc
Binary file not shown
View
9 src/Robotlegs2Example.mxml
@@ -6,17 +6,14 @@
xmlns:example="org.robotlegs.example.*"
xmlns:views="org.robotlegs.example.view.*">
- <fx:Script>
- <![CDATA[
-
- ]]>
- </fx:Script>
<fx:Declarations>
<rl2:ContextBuilderTag>
+ <example:LoggerConfig/>
<mvcs:MVCSBundle/>
<example:AppConfig />
</rl2:ContextBuilderTag>
</fx:Declarations>
- <views:MainView />
+ <views:MainView width="100%" height="100%" />
+
</s:Application>
View
108 src/Robotlegs_2_Simple_Project_with_Popup.html
@@ -0,0 +1,108 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!-- saved from url=(0014)about:internet -->
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+ <!--
+ Smart developers always View Source.
+
+ This application was built using Adobe Flex, an open source framework
+ for building rich Internet applications that get delivered via the
+ Flash Player or to desktops via Adobe AIR.
+
+ Learn more about Flex at http://flex.org
+ // -->
+ <head>
+ <title>Robotlegs_2_Simple_Project_with_Popup</title>
+ <meta name="google" value="notranslate" />
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and
+ the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as
+ the percentage of the height of its parent container, which has to be set explicitly. Fix for
+ Firefox 3.6 focus border issues. Initially, don't display flashContent div so it won't show
+ if JavaScript disabled.
+ -->
+ <style type="text/css" media="screen">
+ html, body { height:100%; }
+ body { margin:0; padding:0; overflow:auto; text-align:center;
+ background-color: #FFFFFF; }
+ object:focus { outline:none; }
+ #flashContent { display:none; }
+ </style>
+
+ <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
+ <!-- BEGIN Browser History required section ${useBrowserHistory}>
+ <link rel="stylesheet" type="text/css" href="history/history.css" />
+ <script type="text/javascript" src="history/history.js"></script>
+ <!${useBrowserHistory} END Browser History required section -->
+
+ <script type="text/javascript" src="swfobject.js"></script>
+ <script type="text/javascript">
+ // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
+ var swfVersionStr = "11.1.0";
+ // To use express install, set to playerProductInstall.swf, otherwise the empty string.
+ var xiSwfUrlStr = "${expressInstallSwf}";
+ var flashvars = {};
+ var params = {};
+ params.quality = "high";
+ params.bgcolor = "#FFFFFF";
+ params.allowscriptaccess = "sameDomain";
+ params.allowfullscreen = "true";
+ var attributes = {};
+ attributes.id = "Robotlegs_2_Simple_Project_with_Popup";
+ attributes.name = "Robotlegs_2_Simple_Project_with_Popup";
+ attributes.align = "middle";
+ swfobject.embedSWF(
+ "Robotlegs_2_Simple_Project_with_Popup.swf", "flashContent",
+ "100%", "100%",
+ swfVersionStr, xiSwfUrlStr,
+ flashvars, params, attributes);
+ // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
+ swfobject.createCSS("#flashContent", "display:block;text-align:left;");
+ </script>
+ </head>
+ <body>
+ <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
+ JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
+ when JavaScript is disabled.
+ -->
+ <div id="flashContent">
+ <p>
+ To view this page ensure that Adobe Flash Player version
+ 11.1.0 or greater is installed.
+ </p>
+ <script type="text/javascript">
+ var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
+ document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
+ + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
+ </script>
+ </div>
+
+ <noscript>
+ <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="Robotlegs_2_Simple_Project_with_Popup">
+ <param name="movie" value="Robotlegs_2_Simple_Project_with_Popup.swf" />
+ <param name="quality" value="high" />
+ <param name="bgcolor" value="#FFFFFF" />
+ <param name="allowScriptAccess" value="sameDomain" />
+ <param name="allowFullScreen" value="true" />
+ <!--[if !IE]>-->
+ <object type="application/x-shockwave-flash" data="Robotlegs_2_Simple_Project_with_Popup.swf" width="100%" height="100%">
+ <param name="quality" value="high" />
+ <param name="bgcolor" value="#FFFFFF" />
+ <param name="allowScriptAccess" value="sameDomain" />
+ <param name="allowFullScreen" value="true" />
+ <!--<![endif]-->
+ <!--[if gte IE 6]>-->
+ <p>
+ Either scripts and active content are not permitted to run or Adobe Flash Player version
+ 11.1.0 or greater is not installed.
+ </p>
+ <!--<![endif]-->
+ <a href="http://www.adobe.com/go/getflashplayer">
+ <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
+ </a>
+ <!--[if !IE]>-->
+ </object>
+ <!--<![endif]-->
+ </object>
+ </noscript>
+ </body>
+</html>
View
19 src/Robotlegs_2_Simple_Project_with_Popup.mxml
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:rl2="robotlegs.bender.mxml.*"
+ xmlns:mvcs="robotlegs.bender.bundles.mvcs.*"
+ xmlns:example="org.robotlegs.example.*"
+ xmlns:views="org.robotlegs.example.view.*">
+
+ <fx:Declarations>
+ <rl2:ContextBuilderTag>
+ <example:LoggerConfig/>
+ <mvcs:MVCSBundle/>
+ <example:AppConfig />
+ </rl2:ContextBuilderTag>
+ </fx:Declarations>
+
+ <views:MainView width="100%" height="100%" />
+
+</s:Application>
View
24 src/org/robotlegs/example/LoggerConfig.as
@@ -0,0 +1,24 @@
+//------------------------------------------------------------------------------
+// Copyright (c) 2011 the original author or authors. All Rights Reserved.
+//
+// NOTICE: You are permitted to use, modify, and distribute this file
+// in accordance with the terms of the license agreement accompanying it.
+//------------------------------------------------------------------------------
+
+package org.robotlegs.example
+{
+ import robotlegs.bender.extensions.logging.LoggingExtension;
+ import robotlegs.bender.framework.context.api.IContext;
+ import robotlegs.bender.framework.context.api.IContextExtension;
+ import robotlegs.bender.framework.logging.api.LogLevel;
+
+ public class LoggerConfig implements IContextExtension
+ {
+
+ public function extend(context:IContext):void
+ {
+ context.extend(LoggingExtension);
+ context.logLevel = LogLevel.DEBUG;
+ }
+ }
+}
View
7 src/org/robotlegs/example/base/BaseActor.as
@@ -1,10 +1,3 @@
-/**
- * Created by IntelliJ IDEA.
- * User:
- * Date: 2/21/12
- * Time: 2:04 PM
- * To change this template use File | Settings | File Templates.
- */
package org.robotlegs.example.base {
import flash.events.Event;
import flash.events.IEventDispatcher;
View
21 src/org/robotlegs/example/model/ExampleModel.as
@@ -1,25 +1,24 @@
-/**
- * Created by IntelliJ IDEA.
- * User:
- * Date: 2/21/12
- * Time: 2:02 PM
- * To change this template use File | Settings | File Templates.
- */
package org.robotlegs.example.model {
import org.robotlegs.example.base.BaseActor;
import org.robotlegs.example.model.event.ExampleModelUpdate;
import org.robotlegs.example.model.vo.AnswerVO;
- public class ExampleModel extends BaseActor{
+ import robotlegs.bender.framework.logging.api.ILogger;
+
+ public class ExampleModel extends BaseActor{
+
+ [Inject]
+ public var logger:ILogger;
+
public function ExampleModel() {
}
public function createMessage(jsonObject:Object):void {
- trace("5. We're now in the model prepping the data::::::::");
- trace("6. We are going to pass the answer object to the Example Model Update Event::::: " + jsonObject.data.answer);
+ logger.debug("5. We're now in the model prepping the data::::::::");
+ logger.debug("6. We are going to pass the answer object to the Example Model Update Event::::: " + jsonObject.data.answer);
var valueObject:AnswerVO = new AnswerVO();
valueObject.answer = jsonObject.data.answer;
- trace("7. Dispatch event to let the ui know we've changed:::::::::::")
+ logger.debug("7. Dispatch event to let the ui know we've changed:::::::::::")
dispatch(new ExampleModelUpdate(ExampleModelUpdate.MODEL_UPDATED, valueObject));
}
}
View
7 src/org/robotlegs/example/model/vo/AnswerVO.as
@@ -1,10 +1,3 @@
-/**
- * Created by IntelliJ IDEA.
- * User:
- * Date: 2/21/12
- * Time: 3:10 PM
- * To change this template use File | Settings | File Templates.
- */
package org.robotlegs.example.model.vo {
public class AnswerVO {
public function AnswerVO() {
View
18 src/org/robotlegs/example/service/ExampleService.as
@@ -1,10 +1,3 @@
-/**
- * Created by IntelliJ IDEA.
- * User:
- * Date: 2/21/12
- * Time: 1:54 PM
- * To change this template use File | Settings | File Templates.
- */
package org.robotlegs.example.service {
import com.adobe.serialization.json.JSON;
@@ -16,12 +9,17 @@ package org.robotlegs.example.service {
import flash.net.URLLoader;
import flash.net.URLRequest;
- public class ExampleService extends BaseActor implements IExampleService{
+ import robotlegs.bender.framework.logging.api.ILogger;
+
+ public class ExampleService extends BaseActor implements IExampleService{
private var urlLoader:URLLoader;
[Inject]
public var exampleModel:ExampleModel;
+ [Inject]
+ public var logger:ILogger;
+
public function ExampleService() {
super();
}
@@ -37,7 +35,7 @@ package org.robotlegs.example.service {
private function onLoadTreeComplete(event:Event):void {
if (urlLoader.data) {
- trace("4. We're now in the service onComplete::::::::");
+ logger.debug("4. We're now in the service onComplete::::::::");
// this import collides with the Flex SDK's implementation of JSON support for AIR apps
// we're using as3corelib to support json
var jsonObject:Object = com.adobe.serialization.json.JSON.decode(urlLoader.data);
@@ -46,7 +44,7 @@ package org.robotlegs.example.service {
}
private function onLoadTreeIOError(event:IOErrorEvent):void {
- trace("ERROR")
+ logger.error("ERROR")
}
}
View
7 src/org/robotlegs/example/service/IExampleService.as
@@ -1,10 +1,3 @@
-/**
- * Created by IntelliJ IDEA.
- * User:
- * Date: 2/21/12
- * Time: 1:53 PM
- * To change this template use File | Settings | File Templates.
- */
package org.robotlegs.example.service {
public interface IExampleService {
function load():void;
View
1  src/org/robotlegs/example/view/MainView.mxml
@@ -21,6 +21,7 @@
private var _returnText:String;
+ // note: can not inject here - RL does not inject into views by default
[Inject]
public var viewManager:IViewManager;
View
1  src/org/robotlegs/example/view/NewWindow.mxml
@@ -21,6 +21,7 @@
PopUpManager.removePopUp(this);
}
+ [Bindable]
public function get helloMessage():String {
return _helloMessage;
}
View
7 src/org/robotlegs/example/view/api/IMainView.as
@@ -1,10 +1,3 @@
-/**
- * Created by IntelliJ IDEA.
- * User:
- * Date: 2/21/12
- * Time: 2:20 PM
- * To change this template use File | Settings | File Templates.
- */
package org.robotlegs.example.view.api {
public interface IMainView {
function set returnText(returnText:String):void;
View
7 src/org/robotlegs/example/view/api/INewWindow.as
@@ -1,10 +1,3 @@
-/**
- * Created by IntelliJ IDEA.
- * User: rranke
- * Date: 3/28/12
- * Time: 1:35 PM
- * To change this template use File | Settings | File Templates.
- */
package org.robotlegs.example.view.api {
public interface INewWindow {
function set helloMessage(hello:String):void;
Please sign in to comment.
Something went wrong with that request. Please try again.