This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<application xmlns="http://ns.adobe.com/air/application/1.0"> | |
<id>com.myTest</id> | |
<filename>myTest</filename> | |
<name>NAME</name> | |
<description>DESCRIPTION</description> | |
<version>1.0</version> | |
<initialWindow> | |
<content>myTest.html</content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<application xmlns="http://ns.adobe.com/air/application/3.0"> | |
<id>example.HelloWorld</id> | |
<versionNumber>1.0.1</versionNumber> | |
<filename>Hello World</filename> | |
<name>Example Co. AIR Hello World</name> | |
<description> | |
<text xml:lang="en">This is an example.</text> | |
<text xml:lang="fr">C'est un exemple.</text> | |
<text xml:lang="es">Esto es un ejemplo.</text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- [your_project_name] | |
- assets | |
[your_project_name].fla | |
- lib | |
[your_project_name].swc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<application xmlns="http://ns.adobe.com/air/application/3.2"> | |
<id>myApp</id> | |
<versionNumber>1.0</versionNumber> | |
<filename>myApp</filename> | |
<description>...</description> | |
<!-- To localize the description, use the following format for the description element. | |
<description> | |
<text xml:lang="en">English App description goes here</text> | |
<text xml:lang="fr">French App description goes here</text> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- [your_project_name] | |
- assets | |
[your_project_name].fla | |
- lib | |
[your_project_name]-app.xml | |
[your_project_name].swc | |
- src | |
Main.as | |
[your_project_name].sublime-project | |
[your_project_name].sublime-workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<flex-config> | |
<target-player>11.2</target-player> | |
<output>bin/myApp_output.swf</output> | |
<benchmark>false</benchmark> | |
<static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries> | |
<compiler> | |
<debug>true</debug> | |
<omit-trace-statements>true</omit-trace-statements> | |
<verbose-stacktraces>false</verbose-stacktraces> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"folders": | |
[ | |
{ | |
"path": "/Users/caubry/Desktop/myApp" | |
} | |
], | |
"template": | |
{ | |
"mxmlc": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static var FPS:Number = 25; | |
private var movingMc:MovieClip | |
private var stillMc:MovieClip | |
private var orignalXPos:Number = 0; | |
// Set a default value if setter isn't being called | |
private var xSpeed:Number = 2; | |
// Constructor | |
public function CustomSpeed():void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myXML:XML = generalInformationService._xml; | |
for (var i:int = 0; i < myXML.length(); i++) | |
{ | |
var node:XML = myXML[i]; | |
var brandNode:String = myXML[i].@brand; | |
var newNodes:XML = new XML( <BRAND><NAME>{brandNode}</NAME></BRAND> ); | |
node.prependChild(newNodes); | |
delete node.@brand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected var fileStream:FileStream; | |
protected static const LOCATION_XML:String = "/d/.../myXML.xml"; // Location of your XML | |
public function loadXML():void | |
{ | |
var fileSettings:File = File.applicationStorageDirectory.resolvePath(LOCATION_XML); | |
if (fileSettings.exists) | |
{ | |
fileStream = new FileStream(); |