flex:makeswf

Full name:

org.servebox.flex:flex-plugin:2.3.2:makeswf

Description:

Build MXML and AS files to a SWF application artifact.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Invokes the execution of the lifecycle phase package prior to executing itself.
  • Executes in its own lifecycle: swflifecycle.

Optional Parameters

Name Type Since Description
actionScriptEncoding String - The encoding of source files.
Default value is: utf-8.
actionScriptMetadata String[] - The metadata to keep into the target artifact (allow runtime instrospection using the ActionScript reflection API). By default : "Bindable", "Managed", "ChangeEvent", "NonCommittingChangeEvent", "Transient"
actionScriptStrictChecking boolean - Indicate whether the compiler should perform strict error checking.
Default value is: true.
advancedAntiAliasing boolean - Indicate whether the compiler should allow advanced font anti-aliasing features (font sharpness for better visibility, etc).
Default value is: true.
allowActionScriptMigrationWarnings boolean - Enable the migration warnings. We decided to default this property to false, as we assume most of the developers are using ActionScript 3.0. This property has the precedence over individual warn properties.
Default value is: false.
archiveFiles ArrayList - Files to be archived into the swc.
artifactMetadataContributor String - Artifact Metadata : contibutor's name. Defaults to the user name.
artifactMetadataCreator String - Artifact Metadata : creator's name. Defaults to the user name.
artifactMetadataDate Date - Artifact Metadata : the creation date to store. Default to current date.
artifactMetadataLanguage String - Artifact Metadata : the language to store.
artifactMetadataLocalizedDescription Map - Artifact Metadata : a map of RDF/XMP localized description.
artifactMetadataLocalizedTitle Map - Artifact Metadata : a map RDF/XMP localized title.
artifactMetadataPublisher String - Artifact Metadata : the publisher's name.
artifactMetadataTitle String - Artifact Metadata : the default title to store.
classifier String - Artifact classifier.
componentManifests ArrayList - The manifest to use for compilation.
contextRoot String - The context to use for service channels endpoints.
debug boolean - Indicate whether the target SWF should embed informations needed for debugging. We assume that most developers use their IDE as the debugging environment, so we set this property to false.
Default value is: false.
debugPassword String - The password to use for debugging.
defaultApplicationHeight int - The default height of the Flex application.
Default value is: 500.
defaultApplicationWidth int - The default width of the Flex application.
Default value is: 375.
defaultBackgroundColor int - The background color to apply to the application, if it is not explicitly defined.
Default value is: 8821927.
defaultCSSFile File - The default CSS file.
defineDirectives ArrayList - A list of "define" directives, allowing conditional compilation.
enableAccessibility boolean - Indicates whether the application should generate accessible contents.
Default value is: false.
externs ArrayList - A list of files, allowing the compiler to not embed them into the artifact.
flexConfigurationFile File - The location of the flex configuration file.
fontLanguageRanges ArrayList - A list of font language ranges, allowing to define which character ranges should be used while embedding fonts.
frameRate int - The application frame rate.
Default value is: 24.
includes ArrayList - A list of symbols, forcing the compiler to embed them into the artifact.
keepAllCSSTypeSelectors boolean - Indicate whether the unused CSS type selectors should be embedded into the artifact.
Default value is: false.
keepCompilerGeneratedActionScript boolean - Indicate whether the compiler should save temporary generated ActionScript files while compiling MXML components.
Default value is: false.
keepConfigurationReport boolean - Indicate whether a report containing configuration-related data should be saved by the compiler.
Default value is: false.
keepLinkReport boolean - Indicate whether a report containing class linking-related data should be saved by the compiler.
Default value is: false.
licenses ArrayList - The list of serial numbers to set (Flex Builder, Datavizualisation, etc). The Flex SDK does not require any license information.
locale String - Deprecated. Use locales parameter instead.
Default value is: en_US.
locales ArrayList - The locales to use
localesDirectory File - The directory in which locale resides such as en_US, fr_FR etc...
Default value is: ${project.basedir}/src/locales/flex.
maxExecutionTimeScriptLimit int - The maximum execution time to allow to ActionScript processes.
Default value is: 60.
maxRecursionScriptLimit int - The maximum ActionScript recursion depth before throwing a stack overflow error.
Default value is: 1000.
modules ArrayList - The modules to compile before building the main artifact.
mxmlFile File - The main MXML application file. Default to src/main/flex/main.mxml.
optimize boolean - Indicate whether the artifact bytecode should be optimized after linking. If set to true, the compilation time is greater.
Default value is: true.
outputDirectory File - The directory in which the compiled artifact should be placed.
Default value is: ${project.build.directory}.
resourcesDirectory File - The directory in which resources reside such as CSS stylesheets, images, etc.
Default value is: ${project.basedir}/src/main/resources.
rsls ArrayList - A list containing the URL to use for runtime-shared libraries.
servicesConfiguration File - The services configuration file.
showActionScriptWarnings boolean - Indicate whether the ActionScript warnings should be traced at compilation.
Default value is: true.
showBindingWarnings boolean - Indicate whether the MXML binding warnings should be traced at compilation.
Default value is: true.
showDeprecationWarnings boolean - Indicate whether the deprecation warnings should be traced at compilation.
Default value is: true.
showShadowedDeviceFontWarnings boolean - Indicate whether warnings should be traced at compilation when embedded font names are shadowing device fonts.
Default value is: true.
showUnusedTypeSelectorWarnings boolean - Indicate whether the unused CSS selector warnings should be traced at compilation.
Default value is: true.
sourceDirectory File - The directory in which MXML and AS sources resides.
Default value is: ${project.basedir}/src/main/flex.
styleSheets ArrayList - StyleSheet to be archived into the swc.
targetFlashPlayer String - The Flash Player the compiler should target. The version number should contain 3 digits, the lower acceptable version number is 9.0.0.
Default value is: 9.0.0.
themes ArrayList - A list of CSS files or SWC libraries to apply as a graphical theme.
tokens ArrayList - A list of compilation token to pass to compiler to perform replacements at compile-time.
useNetwork boolean - Flag the artifact so it can access network resources.
Default value is: true.
useResourceBundleMetadata boolean - Indicates whether the resource bundles should be included into the artifact.
Default value is: true.
verboseStacktraces boolean - Include the line numbers into the artifact for debugging (allow the runtime to display them when an error occurs).
Default value is: true.
verifyDigests boolean - Indicates whether the application should check RSLs digest when accessing runtime shared libraries.
Default value is: true.
warnArrayToStringChanges boolean - Enable the Array.toString() check warning. This is a AS2.0 -> AS 3.0 migration warning. In AS 3.0, both null and undefined elements convert to an empty string.
Default value is: true.
warnAssignmentWithinConditional boolean - Enable the conditional / assignment warning. Triggered whenever the compiler suspects you use = instead of ==.
Default value is: true.
warnBadArrayCast boolean - Enable the bad array cast warning. Array( myObject ) has the same behavior as new Array( myObject), so you will obtain an Array instance containing your object. To cast a value to Array, you should use myObject as Array.
Default value is: true.
warnBadBooleanAssignment boolean - Enable the bad boolean assignment warning. Triggered whenever you try to assign a non-boolean value to a boolean instance.
Default value is: true.
warnBadDateCast boolean - Enable the bad date cast warning. Date( myObject ) has the same behavior as new Date().toString(). To cast a value to Date, you should use myObject as Date.
Default value is: true.
warnBadEs3TypeMethod boolean - Enable the non-existing property warning on dynamic classes.
Default value is: false.
warnBadEs3TypeProp boolean - Enable the non-existing method warning on dynamic classes.
Default value is: false.
warnBadNanComparison boolean - Enable the bad NaN comparison warning. This warning is triggered whenever you try to compare NaN to instances. This comparison will always result to false. You should use isNaN().
Default value is: true.
warnBadNullAssignment boolean - Enable the bad null assignment warning. null cannot be assigned to Number, int, uint and Boolean.
Default value is: true.
warnBadNullComparison boolean - Enable the bad null comparison warning. Number, int, uint and Boolean instances cannot be null.
Default value is: true.
warnBadUndefinedComparison boolean - Enable the bad undefined comparison warning. Only variables declared with type * can be set to undefined.
Default value is: true.
warnBooleanConstructorWithNoArgs boolean - Enable the boolean constructor with no arguments warning. This is a AS2.0 -> AS 3.0 code migration warning. In AS3.0, new Boolean() is equal to false.
Default value is: true.
warnChangesInResolve boolean - Enable the resolve warning. This is a AS2.0 -> AS 3.0 code migration warning. In AS3.0, __resolve() is no more supported. You should use the Proxy class instead.
Default value is: true.
warnClassIsSealed boolean - Enable the class is sealed warning. Triggered whenever to try to add properties dynamically to a class that is "sealed", where members cannot be added this way.
Default value is: true.
warnConstNotInitialized boolean - Enable the constant not initialized warning.
Default value is: true.
warnConstructorReturnsValue boolean - Enable the constructor returns value warning. Triggered whenever you declare a constructor that returns a value.
Default value is: true.
warnDeprecatedEventHandlerError boolean - Enable the event handler deprecation error. This is a AS2.0 -> AS 3.0 code migration warning, indicating that you try to access an event handler that is deprecated in ActionScript 3.0.
Default value is: true.
warnDeprecatedFunctionError boolean - Enable the function deprecation error. This is a AS2.0 -> AS 3.0 code migration warning, indicating that you try to access a method/function that is deprecated in ActionScript 3.0.
Default value is: true.
warnDeprecatedPropertyError boolean - Enable the property deprecation error. This is a AS2.0 -> AS 3.0 code migration warning, indicating that you try to access a property that is deprecated in ActionScript 3.0.
Default value is: true.
warnDuplicateArgumentNames boolean - Enable the duplicate argument names warning. Triggered whenever in a function/method declaration, more than one argument have the same name.
Default value is: true.
warnDuplicateVariableDef boolean - Enable the duplicate definition variable warning. As ActionScript does not support block-level declaration, all the variables you declare in a function will share the same scope.
Default value is: true.
warnForVarInChanges boolean - Enable the for in changes warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, the order in which the properties of an instance are processed is random.
Default value is: true.
warnImportHidesClass boolean - Enable the import hides class warning. Triggered whenever you import a package using the same name as the current class. In such a case, the package import directive will hide the class identifier.
Default value is: true.
warnInstanceofChanges boolean - Enable the instanceof deprecation warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, you should use the is operator.
Default value is: true.
warnInternalError boolean - Enable the internal error warning. Trigger when a source file is corrupted or some bug in the compiler leads to a system error.
Default value is: true.
warnLevelNotSupported boolean - Enable the _level not supported warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, the property level does not exist anymore.
Default value is: true.
warnMissingNamespaceDecl boolean - Enable the missing namespace declaration. Triggered whenever you omit to explicitly declare namespace/access classifier for classes and class members. If false, the default classifier is internal.
Default value is: false.
warnNegativeUintLiteral boolean - Enable the negative unsigned integer warning. Triggered whenever you try to assign a negative value where a non-negative one is expected.
Default value is: true.
warnNoConstructor boolean - Enable this warning if you want to declare explicitly constructors for all your classes.
Default value is: false.
warnNoExplicitSuperCallInConstructor boolean - Enable the no explicit super call warning. The super() statement is implicitly executed prior to entering a constructor. Enable this statement if you want to decide explicitly when the super() call will be executed.
Default value is: false.
warnNoTypeDecl boolean - Enable the not type declaration warning. Triggered whenever a class member or variable has no type declaration.
Default value is: true.
warnNumberFromStringChanges boolean - Enable the Number from String warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, the Number() method called with a String argument removes all white space. If no digits are found, the method return 0.
Default value is: true.
warnScopingChangeInThis boolean - Enable the this scoping warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, functions and methods (especially callback functions) are run in the context where they were defined.
Default value is: true.
warnSlowTextfieldAddition boolean - Enable the TextField += warning. Appending text to a TextField using += is many times slower than using the TextField.appendText() method.
Default value is: true.
warnUnlikelyFunctionValue boolean - Enable the unlikely function value warning. Triggered whenever the compiler suspects you assign a function itself as a value instead of the function result. var myResult : * = myFunction; var myResult2 : * = myFunction();
Default value is: true.
warnXmlClassHasChanged boolean - Enable the XML class warning. This is a AS2.0 -> AS 3.0 code migration warning. In AS3.0, the XML class has been renamed to XMLDocument.
Default value is: true.

Parameter Details

actionScriptEncoding :

The encoding of source files.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.actionScriptEncoding}
  • Default: utf-8

actionScriptMetadata :

The metadata to keep into the target artifact (allow runtime instrospection using the ActionScript reflection API). By default : "Bindable", "Managed", "ChangeEvent", "NonCommittingChangeEvent", "Transient"
  • Type: java.lang.String[]
  • Required: No
  • Expression: ${flex.compiler.actionScriptMetadata}

actionScriptStrictChecking :

Indicate whether the compiler should perform strict error checking.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.actionScriptStrictChecking}
  • Default: true

advancedAntiAliasing :

Indicate whether the compiler should allow advanced font anti-aliasing features (font sharpness for better visibility, etc).
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.advancedAntiAliasing}
  • Default: true

allowActionScriptMigrationWarnings :

Enable the migration warnings. We decided to default this property to false, as we assume most of the developers are using ActionScript 3.0. This property has the precedence over individual warn properties.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.allowActionScriptMigrationWarnings}
  • Default: false

archiveFiles :

Files to be archived into the swc.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.archiveFiles}

artifactMetadataContributor :

Artifact Metadata : contibutor's name. Defaults to the user name.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataContributor}

artifactMetadataCreator :

Artifact Metadata : creator's name. Defaults to the user name.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataCreator}

artifactMetadataDate :

Artifact Metadata : the creation date to store. Default to current date.
  • Type: java.util.Date
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataDate}

artifactMetadataLanguage :

Artifact Metadata : the language to store.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataLanguage}

artifactMetadataLocalizedDescription :

Artifact Metadata : a map of RDF/XMP localized description.
  • Type: java.util.Map
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataLocalizedDescription}

artifactMetadataLocalizedTitle :

Artifact Metadata : a map RDF/XMP localized title.
  • Type: java.util.Map
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataLocalizedTitle}

artifactMetadataPublisher :

Artifact Metadata : the publisher's name.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataPublisher}

artifactMetadataTitle :

Artifact Metadata : the default title to store.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.artifactMetadataTitle}

classifier :

Artifact classifier.
  • Type: java.lang.String
  • Required: No

componentManifests :

The manifest to use for compilation.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.componentManifests}

contextRoot :

The context to use for service channels endpoints.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.contextRoot}

debug :

Indicate whether the target SWF should embed informations needed for debugging. We assume that most developers use their IDE as the debugging environment, so we set this property to false.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.contextRoot}
  • Default: false

debugPassword :

The password to use for debugging.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.debugPassword}

defaultApplicationHeight :

The default height of the Flex application.
  • Type: int
  • Required: No
  • Expression: ${flex.compiler.defaultApplicationHeight}
  • Default: 500

defaultApplicationWidth :

The default width of the Flex application.
  • Type: int
  • Required: No
  • Expression: ${flex.compiler.defaultApplicationWidth}
  • Default: 375

defaultBackgroundColor :

The background color to apply to the application, if it is not explicitly defined.
  • Type: int
  • Required: No
  • Expression: ${flex.compiler.defaultBackgroundColor}
  • Default: 8821927

defaultCSSFile :

The default CSS file.
  • Type: java.io.File
  • Required: No
  • Expression: ${flex.compiler.defaultCSSFile}

defineDirectives :

A list of "define" directives, allowing conditional compilation.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.defineDirectives}

enableAccessibility :

Indicates whether the application should generate accessible contents.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.enableAccessibility}
  • Default: false

externs :

A list of files, allowing the compiler to not embed them into the artifact.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.externs}

flexConfigurationFile :

The location of the flex configuration file.
  • Type: java.io.File
  • Required: No
  • Expression: ${flex.compiler.configurationFile}

fontLanguageRanges :

A list of font language ranges, allowing to define which character ranges should be used while embedding fonts.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.fontLanguageRanges}

frameRate :

The application frame rate.
  • Type: int
  • Required: No
  • Expression: ${flex.compiler.frameRate}
  • Default: 24

includes :

A list of symbols, forcing the compiler to embed them into the artifact.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.includes}

keepAllCSSTypeSelectors :

Indicate whether the unused CSS type selectors should be embedded into the artifact.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.keepAllCSSTypeSelectors}
  • Default: false

keepCompilerGeneratedActionScript :

Indicate whether the compiler should save temporary generated ActionScript files while compiling MXML components.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.keepCompilerGeneratedActionScript}
  • Default: false

keepConfigurationReport :

Indicate whether a report containing configuration-related data should be saved by the compiler.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.keepConfigurationReport}
  • Default: false

keepLinkReport :

Indicate whether a report containing class linking-related data should be saved by the compiler.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.keepLinkReport}
  • Default: false

licenses :

The list of serial numbers to set (Flex Builder, Datavizualisation, etc). The Flex SDK does not require any license information.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.licenses}

locale :

Deprecated. Use locales parameter instead.
The locale to use.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.licenses}
  • Default: en_US

locales :

The locales to use
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.locales}

localesDirectory :

The directory in which locale resides such as en_US, fr_FR etc...
  • Type: java.io.File
  • Required: No
  • Default: ${project.basedir}/src/locales/flex

maxExecutionTimeScriptLimit :

The maximum execution time to allow to ActionScript processes.
  • Type: int
  • Required: No
  • Expression: ${flex.compiler.maxExecutionTimeScriptLimit}
  • Default: 60

maxRecursionScriptLimit :

The maximum ActionScript recursion depth before throwing a stack overflow error.
  • Type: int
  • Required: No
  • Expression: ${flex.compiler.maxRecursionScriptLimit}
  • Default: 1000

modules :

The modules to compile before building the main artifact.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.modules}

mxmlFile :

The main MXML application file. Default to src/main/flex/main.mxml.
  • Type: java.io.File
  • Required: No
  • Expression: ${flex.compiler.mxmlFile}

optimize :

Indicate whether the artifact bytecode should be optimized after linking. If set to true, the compilation time is greater.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.optimize}
  • Default: true

outputDirectory :

The directory in which the compiled artifact should be placed.
  • Type: java.io.File
  • Required: No
  • Expression: ${flex.compiler.outputDirectory}
  • Default: ${project.build.directory}

resourcesDirectory :

The directory in which resources reside such as CSS stylesheets, images, etc.
  • Type: java.io.File
  • Required: No
  • Expression: ${flex.compiler.resources}
  • Default: ${project.basedir}/src/main/resources

rsls :

A list containing the URL to use for runtime-shared libraries.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.rsls}

servicesConfiguration :

The services configuration file.
  • Type: java.io.File
  • Required: No
  • Expression: ${flex.compiler.servicesConfiguration}

showActionScriptWarnings :

Indicate whether the ActionScript warnings should be traced at compilation.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.optimize}
  • Default: true

showBindingWarnings :

Indicate whether the MXML binding warnings should be traced at compilation.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.showBindingWarnings}
  • Default: true

showDeprecationWarnings :

Indicate whether the deprecation warnings should be traced at compilation.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.showDeprecationWarnings}
  • Default: true

showShadowedDeviceFontWarnings :

Indicate whether warnings should be traced at compilation when embedded font names are shadowing device fonts.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.showUnusedTypeSelectorWarnings}
  • Default: true

showUnusedTypeSelectorWarnings :

Indicate whether the unused CSS selector warnings should be traced at compilation.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.showUnusedTypeSelectorWarnings}
  • Default: true

sourceDirectory :

The directory in which MXML and AS sources resides.
  • Type: java.io.File
  • Required: No
  • Expression: ${flex.compiler.source}
  • Default: ${project.basedir}/src/main/flex

styleSheets :

StyleSheet to be archived into the swc.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.styleSheets}

targetFlashPlayer :

The Flash Player the compiler should target. The version number should contain 3 digits, the lower acceptable version number is 9.0.0.
  • Type: java.lang.String
  • Required: No
  • Expression: ${flex.compiler.targetFlashPlayer}
  • Default: 9.0.0

themes :

A list of CSS files or SWC libraries to apply as a graphical theme.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.themes}

tokens :

A list of compilation token to pass to compiler to perform replacements at compile-time.
  • Type: java.util.ArrayList
  • Required: No
  • Expression: ${flex.compiler.tokens}

useNetwork :

Flag the artifact so it can access network resources.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.useNetwork}
  • Default: true

useResourceBundleMetadata :

Indicates whether the resource bundles should be included into the artifact.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.useResourceBundleMetadata}
  • Default: true

verboseStacktraces :

Include the line numbers into the artifact for debugging (allow the runtime to display them when an error occurs).
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.useResourceBundleMetadata}
  • Default: true

verifyDigests :

Indicates whether the application should check RSLs digest when accessing runtime shared libraries.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.verifyDigests}
  • Default: true

warnArrayToStringChanges :

Enable the Array.toString() check warning. This is a AS2.0 -> AS 3.0 migration warning. In AS 3.0, both null and undefined elements convert to an empty string.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnArrayToStringChanges}
  • Default: true

warnAssignmentWithinConditional :

Enable the conditional / assignment warning. Triggered whenever the compiler suspects you use = instead of ==.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnAssignmentWithinConditional}
  • Default: true

warnBadArrayCast :

Enable the bad array cast warning. Array( myObject ) has the same behavior as new Array( myObject), so you will obtain an Array instance containing your object. To cast a value to Array, you should use myObject as Array.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadArrayCast}
  • Default: true

warnBadBooleanAssignment :

Enable the bad boolean assignment warning. Triggered whenever you try to assign a non-boolean value to a boolean instance.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadBooleanAssignment}
  • Default: true

warnBadDateCast :

Enable the bad date cast warning. Date( myObject ) has the same behavior as new Date().toString(). To cast a value to Date, you should use myObject as Date.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadDateCast}
  • Default: true

warnBadEs3TypeMethod :

Enable the non-existing property warning on dynamic classes.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadEs3TypeMethod}
  • Default: false

warnBadEs3TypeProp :

Enable the non-existing method warning on dynamic classes.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadEs3TypeProp}
  • Default: false

warnBadNanComparison :

Enable the bad NaN comparison warning. This warning is triggered whenever you try to compare NaN to instances. This comparison will always result to false. You should use isNaN().
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadNanComparison}
  • Default: true

warnBadNullAssignment :

Enable the bad null assignment warning. null cannot be assigned to Number, int, uint and Boolean.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadNullAssignment}
  • Default: true

warnBadNullComparison :

Enable the bad null comparison warning. Number, int, uint and Boolean instances cannot be null.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadNullComparison}
  • Default: true

warnBadUndefinedComparison :

Enable the bad undefined comparison warning. Only variables declared with type * can be set to undefined.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBadUndefinedComparison}
  • Default: true

warnBooleanConstructorWithNoArgs :

Enable the boolean constructor with no arguments warning. This is a AS2.0 -> AS 3.0 code migration warning. In AS3.0, new Boolean() is equal to false.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnBooleanConstructorWithNoArgs}
  • Default: true

warnChangesInResolve :

Enable the resolve warning. This is a AS2.0 -> AS 3.0 code migration warning. In AS3.0, __resolve() is no more supported. You should use the Proxy class instead.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnChangesInResolve}
  • Default: true

warnClassIsSealed :

Enable the class is sealed warning. Triggered whenever to try to add properties dynamically to a class that is "sealed", where members cannot be added this way.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnClassIsSealed}
  • Default: true

warnConstNotInitialized :

Enable the constant not initialized warning.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnConstNotInitialized}
  • Default: true

warnConstructorReturnsValue :

Enable the constructor returns value warning. Triggered whenever you declare a constructor that returns a value.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnConstructorReturnsValue}
  • Default: true

warnDeprecatedEventHandlerError :

Enable the event handler deprecation error. This is a AS2.0 -> AS 3.0 code migration warning, indicating that you try to access an event handler that is deprecated in ActionScript 3.0.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnDeprecatedEventHandlerError}
  • Default: true

warnDeprecatedFunctionError :

Enable the function deprecation error. This is a AS2.0 -> AS 3.0 code migration warning, indicating that you try to access a method/function that is deprecated in ActionScript 3.0.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnDeprecatedFunctionError}
  • Default: true

warnDeprecatedPropertyError :

Enable the property deprecation error. This is a AS2.0 -> AS 3.0 code migration warning, indicating that you try to access a property that is deprecated in ActionScript 3.0.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnDeprecatedPropertyError}
  • Default: true

warnDuplicateArgumentNames :

Enable the duplicate argument names warning. Triggered whenever in a function/method declaration, more than one argument have the same name.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnDuplicateArgumentNames}
  • Default: true

warnDuplicateVariableDef :

Enable the duplicate definition variable warning. As ActionScript does not support block-level declaration, all the variables you declare in a function will share the same scope.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnDuplicateVariableDef}
  • Default: true

warnForVarInChanges :

Enable the for in changes warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, the order in which the properties of an instance are processed is random.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnForVarInChanges}
  • Default: true

warnImportHidesClass :

Enable the import hides class warning. Triggered whenever you import a package using the same name as the current class. In such a case, the package import directive will hide the class identifier.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnImportHidesClass}
  • Default: true

warnInstanceofChanges :

Enable the instanceof deprecation warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, you should use the is operator.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnInstanceofChanges}
  • Default: true

warnInternalError :

Enable the internal error warning. Trigger when a source file is corrupted or some bug in the compiler leads to a system error.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnInternalError}
  • Default: true

warnLevelNotSupported :

Enable the _level not supported warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, the property level does not exist anymore.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnLevelNotSupported}
  • Default: true

warnMissingNamespaceDecl :

Enable the missing namespace declaration. Triggered whenever you omit to explicitly declare namespace/access classifier for classes and class members. If false, the default classifier is internal.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnMissingNamespaceDecl}
  • Default: false

warnNegativeUintLiteral :

Enable the negative unsigned integer warning. Triggered whenever you try to assign a negative value where a non-negative one is expected.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnNegativeUintLiteral}
  • Default: true

warnNoConstructor :

Enable this warning if you want to declare explicitly constructors for all your classes.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnNoConstructor}
  • Default: false

warnNoExplicitSuperCallInConstructor :

Enable the no explicit super call warning. The super() statement is implicitly executed prior to entering a constructor. Enable this statement if you want to decide explicitly when the super() call will be executed.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnNoExplicitSuperCallInConstructor}
  • Default: false

warnNoTypeDecl :

Enable the not type declaration warning. Triggered whenever a class member or variable has no type declaration.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnNoTypeDecl}
  • Default: true

warnNumberFromStringChanges :

Enable the Number from String warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, the Number() method called with a String argument removes all white space. If no digits are found, the method return 0.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnNumberFromStringChanges}
  • Default: true

warnScopingChangeInThis :

Enable the this scoping warning. This is a AS2.0 -> AS 3.0 code migration warning. In ActionScript 3.0, functions and methods (especially callback functions) are run in the context where they were defined.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnScopingChangeInThis}
  • Default: true

warnSlowTextfieldAddition :

Enable the TextField += warning. Appending text to a TextField using += is many times slower than using the TextField.appendText() method.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnSlowTextfieldAddition}
  • Default: true

warnUnlikelyFunctionValue :

Enable the unlikely function value warning. Triggered whenever the compiler suspects you assign a function itself as a value instead of the function result. var myResult : * = myFunction; var myResult2 : * = myFunction();
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnUnlikelyFunctionValue}
  • Default: true

warnXmlClassHasChanged :

Enable the XML class warning. This is a AS2.0 -> AS 3.0 code migration warning. In AS3.0, the XML class has been renamed to XMLDocument.
  • Type: boolean
  • Required: No
  • Expression: ${flex.compiler.warnings.warnXmlClassHasChanged}
  • Default: true