as3corelib 0.1.0 → 0.85.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. data/Gemfile +1 -4
  2. data/Gemfile.lock +7 -4
  3. data/README.textile +20 -10
  4. data/Rakefile +32 -2
  5. data/as3corelib.gemspec +13 -11
  6. data/lib/as3corelib.rb +10 -4
  7. data/lib/as3corelib/version.rb +4 -0
  8. metadata +31 -121
  9. data/build/build.properties +0 -48
  10. data/build/build.xml +0 -104
  11. data/examples/JSONExample/JSONExample.mxml +0 -73
  12. data/src/com/adobe/air/crypto/EncryptionKeyGenerator.as +0 -313
  13. data/src/com/adobe/air/filesystem/FileMonitor.as +0 -245
  14. data/src/com/adobe/air/filesystem/FileUtil.as +0 -63
  15. data/src/com/adobe/air/filesystem/VolumeMonitor.as +0 -184
  16. data/src/com/adobe/air/filesystem/events/FileMonitorEvent.as +0 -61
  17. data/src/com/adobe/air/logging/FileTarget.as +0 -95
  18. data/src/com/adobe/air/net/ResourceCache.as +0 -165
  19. data/src/com/adobe/air/net/events/ResourceCacheEvent.as +0 -70
  20. data/src/com/adobe/crypto/HMAC.as +0 -127
  21. data/src/com/adobe/crypto/MD5.as +0 -281
  22. data/src/com/adobe/crypto/MD5Stream.as +0 -402
  23. data/src/com/adobe/crypto/SHA1.as +0 -289
  24. data/src/com/adobe/crypto/SHA224.as +0 -257
  25. data/src/com/adobe/crypto/SHA256.as +0 -261
  26. data/src/com/adobe/crypto/WSSEUsernameToken.as +0 -114
  27. data/src/com/adobe/errors/IllegalStateError.as +0 -63
  28. data/src/com/adobe/fileformats/vcard/Address.as +0 -47
  29. data/src/com/adobe/fileformats/vcard/Email.as +0 -39
  30. data/src/com/adobe/fileformats/vcard/Phone.as +0 -39
  31. data/src/com/adobe/fileformats/vcard/VCard.as +0 -54
  32. data/src/com/adobe/fileformats/vcard/VCardParser.as +0 -246
  33. data/src/com/adobe/images/BitString.as +0 -39
  34. data/src/com/adobe/images/JPGEncoder.as +0 -648
  35. data/src/com/adobe/images/PNGEncoder.as +0 -141
  36. data/src/com/adobe/net/DynamicURLLoader.as +0 -55
  37. data/src/com/adobe/net/IURIResolver.as +0 -76
  38. data/src/com/adobe/net/MimeTypeMap.as +0 -200
  39. data/src/com/adobe/net/URI.as +0 -2466
  40. data/src/com/adobe/net/URIEncodingBitmap.as +0 -139
  41. data/src/com/adobe/net/proxies/RFC2817Socket.as +0 -198
  42. data/src/com/adobe/protocols/dict/Database.as +0 -66
  43. data/src/com/adobe/protocols/dict/Definition.as +0 -71
  44. data/src/com/adobe/protocols/dict/Dict.as +0 -360
  45. data/src/com/adobe/protocols/dict/DictionaryServer.as +0 -60
  46. data/src/com/adobe/protocols/dict/MatchStrategy.as +0 -66
  47. data/src/com/adobe/protocols/dict/Response.as +0 -71
  48. data/src/com/adobe/protocols/dict/events/ConnectedEvent.as +0 -53
  49. data/src/com/adobe/protocols/dict/events/DatabaseEvent.as +0 -67
  50. data/src/com/adobe/protocols/dict/events/DefinitionEvent.as +0 -70
  51. data/src/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as +0 -69
  52. data/src/com/adobe/protocols/dict/events/DictionaryServerEvent.as +0 -69
  53. data/src/com/adobe/protocols/dict/events/DisconnectedEvent.as +0 -55
  54. data/src/com/adobe/protocols/dict/events/ErrorEvent.as +0 -80
  55. data/src/com/adobe/protocols/dict/events/MatchEvent.as +0 -67
  56. data/src/com/adobe/protocols/dict/events/MatchStrategiesEvent.as +0 -70
  57. data/src/com/adobe/protocols/dict/events/NoMatchEvent.as +0 -54
  58. data/src/com/adobe/protocols/dict/util/CompleteResponseEvent.as +0 -68
  59. data/src/com/adobe/protocols/dict/util/SocketHelper.as +0 -81
  60. data/src/com/adobe/serialization/json/JSON.as +0 -86
  61. data/src/com/adobe/serialization/json/JSONDecoder.as +0 -327
  62. data/src/com/adobe/serialization/json/JSONEncoder.as +0 -312
  63. data/src/com/adobe/serialization/json/JSONParseError.as +0 -87
  64. data/src/com/adobe/serialization/json/JSONToken.as +0 -104
  65. data/src/com/adobe/serialization/json/JSONTokenType.as +0 -69
  66. data/src/com/adobe/serialization/json/JSONTokenizer.as +0 -702
  67. data/src/com/adobe/utils/ArrayUtil.as +0 -187
  68. data/src/com/adobe/utils/DateUtil.as +0 -701
  69. data/src/com/adobe/utils/DictionaryUtil.as +0 -87
  70. data/src/com/adobe/utils/IntUtil.as +0 -99
  71. data/src/com/adobe/utils/NumberFormatter.as +0 -74
  72. data/src/com/adobe/utils/StringUtil.as +0 -239
  73. data/src/com/adobe/utils/XMLUtil.as +0 -168
  74. data/src/com/adobe/webapis/ServiceBase.as +0 -48
  75. data/src/com/adobe/webapis/URLLoaderBase.as +0 -108
  76. data/src/com/adobe/webapis/events/ServiceEvent.as +0 -82
  77. data/tests/src/CoreLibTestRunner-app.xml +0 -135
  78. data/tests/src/CoreLibTestRunner.as +0 -138
  79. data/tests/src/CoreLibTestRunner.mxml +0 -46
  80. data/tests/src/com/adobe/air/crypto/EncryptionKeyGeneratorTest.as +0 -176
  81. data/tests/src/com/adobe/air/filesystem/FileMonitorTest.as +0 -63
  82. data/tests/src/com/adobe/air/filesystem/VolumeMonitorTest.as +0 -57
  83. data/tests/src/com/adobe/air/filesystem/events/FileMonitorEventTest.as +0 -59
  84. data/tests/src/com/adobe/air/net/events/ResourceCacheEventTest.as +0 -72
  85. data/tests/src/com/adobe/crypto/HMACMD5Test.as +0 -134
  86. data/tests/src/com/adobe/crypto/HMACSHA1Test.as +0 -138
  87. data/tests/src/com/adobe/crypto/MD5Test.as +0 -82
  88. data/tests/src/com/adobe/crypto/SHA1Test.as +0 -151
  89. data/tests/src/com/adobe/crypto/SHA224Test.as +0 -104
  90. data/tests/src/com/adobe/crypto/SHA256Test.as +0 -116
  91. data/tests/src/com/adobe/crypto/WSSEUsernameTokenTest.as +0 -87
  92. data/tests/src/com/adobe/images/JPGEncoderTest.as +0 -54
  93. data/tests/src/com/adobe/images/PNGEncoderTest.as +0 -54
  94. data/tests/src/com/adobe/net/URITest.as +0 -589
  95. data/tests/src/com/adobe/protocols/events/ConnectedEventTest.as +0 -59
  96. data/tests/src/com/adobe/protocols/events/DatabaseEventTest.as +0 -62
  97. data/tests/src/com/adobe/protocols/events/DefinitionEventTest.as +0 -61
  98. data/tests/src/com/adobe/protocols/events/DefinitionHeaderEventTest.as +0 -61
  99. data/tests/src/com/adobe/protocols/events/DictionaryServerEventTest.as +0 -61
  100. data/tests/src/com/adobe/protocols/events/DisconnectedEventTest.as +0 -59
  101. data/tests/src/com/adobe/protocols/events/ErrorEventTest.as +0 -63
  102. data/tests/src/com/adobe/protocols/events/MatchEventTest.as +0 -61
  103. data/tests/src/com/adobe/protocols/events/MatchStrategiesEventTest.as +0 -61
  104. data/tests/src/com/adobe/protocols/events/NoMatchEventTest.as +0 -58
  105. data/tests/src/com/adobe/protocols/util/CompletedResponseEventTest.as +0 -60
  106. data/tests/src/com/adobe/serialization/json/JSONTest.as +0 -522
  107. data/tests/src/com/adobe/serialization/json/SimpleClass.as +0 -85
  108. data/tests/src/com/adobe/utils/ArrayUtilTest.as +0 -173
  109. data/tests/src/com/adobe/utils/DateUtilTest.as +0 -436
  110. data/tests/src/com/adobe/utils/DictionaryUtilTest.as +0 -93
  111. data/tests/src/com/adobe/utils/IntUtilTest.as +0 -73
  112. data/tests/src/com/adobe/utils/NumberFormatterTest.as +0 -70
  113. data/tests/src/com/adobe/utils/StringUtilTest.as +0 -304
  114. data/tests/src/com/adobe/utils/XMLUtilTest.as +0 -101
  115. data/tests/src/com/adobe/webapis/events/ServiceEventTest.as +0 -66
@@ -1,168 +0,0 @@
1
- /*
2
- Copyright (c) 2008, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
-
33
- package com.adobe.utils
34
- {
35
-
36
- public class XMLUtil
37
- {
38
- /**
39
- * Constant representing a text node type returned from XML.nodeKind.
40
- *
41
- * @see XML.nodeKind()
42
- *
43
- * @langversion ActionScript 3.0
44
- * @playerversion Flash 9.0
45
- */
46
- public static const TEXT:String = "text";
47
-
48
- /**
49
- * Constant representing a comment node type returned from XML.nodeKind.
50
- *
51
- * @see XML.nodeKind()
52
- *
53
- * @langversion ActionScript 3.0
54
- * @playerversion Flash 9.0
55
- */
56
- public static const COMMENT:String = "comment";
57
-
58
- /**
59
- * Constant representing a processing instruction type returned from XML.nodeKind.
60
- *
61
- * @see XML.nodeKind()
62
- *
63
- * @langversion ActionScript 3.0
64
- * @playerversion Flash 9.0
65
- */
66
- public static const PROCESSING_INSTRUCTION:String = "processing-instruction";
67
-
68
- /**
69
- * Constant representing an attribute type returned from XML.nodeKind.
70
- *
71
- * @see XML.nodeKind()
72
- *
73
- * @langversion ActionScript 3.0
74
- * @playerversion Flash 9.0
75
- */
76
- public static const ATTRIBUTE:String = "attribute";
77
-
78
- /**
79
- * Constant representing a element type returned from XML.nodeKind.
80
- *
81
- * @see XML.nodeKind()
82
- *
83
- * @langversion ActionScript 3.0
84
- * @playerversion Flash 9.0
85
- */
86
- public static const ELEMENT:String = "element";
87
-
88
- /**
89
- * Checks whether the specified string is valid and well formed XML.
90
- *
91
- * @param data The string that is being checked to see if it is valid XML.
92
- *
93
- * @return A Boolean value indicating whether the specified string is
94
- * valid XML.
95
- *
96
- * @langversion ActionScript 3.0
97
- * @playerversion Flash 9.0
98
- */
99
- public static function isValidXML(data:String):Boolean
100
- {
101
- var xml:XML;
102
-
103
- try
104
- {
105
- xml = new XML(data);
106
- }
107
- catch(e:Error)
108
- {
109
- return false;
110
- }
111
-
112
- if(xml.nodeKind() != XMLUtil.ELEMENT)
113
- {
114
- return false;
115
- }
116
-
117
- return true;
118
- }
119
-
120
- /**
121
- * Returns the next sibling of the specified node relative to the node's parent.
122
- *
123
- * @param x The node whose next sibling will be returned.
124
- *
125
- * @return The next sibling of the node. null if the node does not have
126
- * a sibling after it, or if the node has no parent.
127
- *
128
- * @langversion ActionScript 3.0
129
- * @playerversion Flash 9.0
130
- */
131
- public static function getNextSibling(x:XML):XML
132
- {
133
- return XMLUtil.getSiblingByIndex(x, 1);
134
- }
135
-
136
- /**
137
- * Returns the sibling before the specified node relative to the node's parent.
138
- *
139
- * @param x The node whose sibling before it will be returned.
140
- *
141
- * @return The sibling before the node. null if the node does not have
142
- * a sibling before it, or if the node has no parent.
143
- *
144
- * @langversion ActionScript 3.0
145
- * @playerversion Flash 9.0
146
- */
147
- public static function getPreviousSibling(x:XML):XML
148
- {
149
- return XMLUtil.getSiblingByIndex(x, -1);
150
- }
151
-
152
- protected static function getSiblingByIndex(x:XML, count:int):XML
153
- {
154
- var out:XML;
155
-
156
- try
157
- {
158
- out = x.parent().children()[x.childIndex() + count];
159
- }
160
- catch(e:Error)
161
- {
162
- return null;
163
- }
164
-
165
- return out;
166
- }
167
- }
168
- }
@@ -1,48 +0,0 @@
1
- /*
2
- Copyright (c) 2008, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
-
33
-
34
- package com.adobe.webapis
35
- {
36
- import flash.events.EventDispatcher;
37
-
38
- /**
39
- * Base class for remote service classes.
40
- */
41
- public class ServiceBase extends EventDispatcher
42
- {
43
- public function ServiceBase()
44
- {
45
- }
46
-
47
- }
48
- }
@@ -1,108 +0,0 @@
1
- /*
2
- Copyright (c) 2008, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
-
33
- package com.adobe.webapis
34
- {
35
- import flash.events.IOErrorEvent;
36
- import flash.events.SecurityErrorEvent;
37
- import flash.events.ProgressEvent;
38
-
39
- import com.adobe.net.DynamicURLLoader;
40
-
41
- /**
42
- * Dispatched when data is
43
- * received as the download operation progresses.
44
- *
45
- * @eventType flash.events.ProgressEvent.PROGRESS
46
- *
47
- * @langversion ActionScript 3.0
48
- * @playerversion Flash 9.0
49
- */
50
- [Event(name="progress", type="flash.events.ProgressEvent")]
51
-
52
- /**
53
- * Dispatched if a call to the server results in a fatal
54
- * error that terminates the download.
55
- *
56
- * @eventType flash.events.IOErrorEvent.IO_ERROR
57
- *
58
- * @langversion ActionScript 3.0
59
- * @playerversion Flash 9.0
60
- */
61
- [Event(name="ioError", type="flash.events.IOErrorEvent")]
62
-
63
- /**
64
- * A securityError event occurs if a call attempts to
65
- * load data from a server outside the security sandbox.
66
- *
67
- * @eventType flash.events.SecurityErrorEvent.SECURITY_ERROR
68
- *
69
- * @langversion ActionScript 3.0
70
- * @playerversion Flash 9.0
71
- */
72
- [Event(name="securityError", type="flash.events.SecurityErrorEvent")]
73
-
74
- /**
75
- * Base class for services that utilize URLLoader
76
- * to communicate with remote APIs / Services.
77
- *
78
- * @langversion ActionScript 3.0
79
- * @playerversion Flash 9.0
80
- */
81
- public class URLLoaderBase extends ServiceBase
82
- {
83
- protected function getURLLoader():DynamicURLLoader
84
- {
85
- var loader:DynamicURLLoader = new DynamicURLLoader();
86
- loader.addEventListener("progress", onProgress);
87
- loader.addEventListener("ioError", onIOError);
88
- loader.addEventListener("securityError", onSecurityError);
89
-
90
- return loader;
91
- }
92
-
93
- private function onIOError(event:IOErrorEvent):void
94
- {
95
- dispatchEvent(event);
96
- }
97
-
98
- private function onSecurityError(event:SecurityErrorEvent):void
99
- {
100
- dispatchEvent(event);
101
- }
102
-
103
- private function onProgress(event:ProgressEvent):void
104
- {
105
- dispatchEvent(event);
106
- }
107
- }
108
- }
@@ -1,82 +0,0 @@
1
- /*
2
- Copyright (c) 2008, Adobe Systems Incorporated
3
- All rights reserved.
4
-
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are
7
- met:
8
-
9
- * Redistributions of source code must retain the above copyright notice,
10
- this list of conditions and the following disclaimer.
11
-
12
- * Redistributions in binary form must reproduce the above copyright
13
- notice, this list of conditions and the following disclaimer in the
14
- documentation and/or other materials provided with the distribution.
15
-
16
- * Neither the name of Adobe Systems Incorporated nor the names of its
17
- contributors may be used to endorse or promote products derived from
18
- this software without specific prior written permission.
19
-
20
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
21
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- */
32
-
33
-
34
- package com.adobe.webapis.events
35
- {
36
-
37
- import flash.events.Event;
38
-
39
- /**
40
- * Event class that contains data loaded from remote services.
41
- *
42
- * @author Mike Chambers
43
- */
44
- public class ServiceEvent extends Event
45
- {
46
- private var _data:Object = new Object();;
47
-
48
- /**
49
- * Constructor for ServiceEvent class.
50
- *
51
- * @param type The type of event that the instance represents.
52
- */
53
- public function ServiceEvent(type:String, bubbles:Boolean = false,
54
- cancelable:Boolean=false)
55
- {
56
- super(type, bubbles, cancelable);
57
- }
58
-
59
- /**
60
- * This object contains data loaded in response
61
- * to remote service calls, and properties associated with that call.
62
- */
63
- public function get data():Object
64
- {
65
- return _data;
66
- }
67
-
68
- public function set data(d:Object):void
69
- {
70
- _data = d;
71
- }
72
-
73
- public override function clone():Event
74
- {
75
- var out:ServiceEvent = new ServiceEvent(type, bubbles, cancelable);
76
- out.data = data;
77
-
78
- return out;
79
- }
80
-
81
- }
82
- }
@@ -1,135 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <application xmlns="http://ns.adobe.com/air/application/1.5">
3
-
4
- <!-- Adobe AIR Application Descriptor File Template.
5
-
6
- Specifies parameters for identifying, installing, and launching AIR applications.
7
-
8
- xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.5
9
- The last segment of the namespace specifies the version
10
- of the AIR runtime required for this application to run.
11
-
12
- minimumPatchLevel - The minimum patch level of the AIR runtime required to run
13
- the application. Optional.
14
- -->
15
-
16
- <!-- The application identifier string, unique to this application. Required. -->
17
- <id>CoreLibTestRunner</id>
18
-
19
- <!-- Used as the filename for the application. Required. -->
20
- <filename>CoreLibTestRunner</filename>
21
-
22
- <!-- The name that is displayed in the AIR application installer.
23
- May have multiple values for each language. See samples or xsd schema file. Optional. -->
24
- <name>CoreLibTestRunner</name>
25
-
26
- <!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. -->
27
- <version>v1</version>
28
-
29
- <!-- Description, displayed in the AIR application installer.
30
- May have multiple values for each language. See samples or xsd schema file. Optional. -->
31
- <!-- <description></description> -->
32
-
33
- <!-- Copyright information. Optional -->
34
- <!-- <copyright></copyright> -->
35
-
36
- <!-- Settings for the application's initial window. Required. -->
37
- <initialWindow>
38
- <!-- The main SWF or HTML file of the application. Required. -->
39
- <!-- Note: In Flex Builder, the SWF reference is set automatically. -->
40
- <content>[This value will be overwritten by Flex Builder in the output app.xml]</content>
41
-
42
- <!-- The title of the main window. Optional. -->
43
- <!-- <title></title> -->
44
-
45
- <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
46
- <!-- <systemChrome></systemChrome> -->
47
-
48
- <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
49
- <!-- <transparent></transparent> -->
50
-
51
- <!-- Whether the window is initially visible. Optional. Default false. -->
52
- <visible>true</visible>
53
-
54
- <!-- Whether the user can minimize the window. Optional. Default true. -->
55
- <!-- <minimizable></minimizable> -->
56
-
57
- <!-- Whether the user can maximize the window. Optional. Default true. -->
58
- <!-- <maximizable></maximizable> -->
59
-
60
- <!-- Whether the user can resize the window. Optional. Default true. -->
61
- <!-- <resizable></resizable> -->
62
-
63
- <!-- The window's initial width. Optional. -->
64
- <width>1000</width>
65
-
66
- <!-- The window's initial height. Optional. -->
67
- <height>700</height>
68
-
69
- <!-- The window's initial x position. Optional. -->
70
- <!-- <x></x> -->
71
-
72
- <!-- The window's initial y position. Optional. -->
73
- <!-- <y></y> -->
74
-
75
- <!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. -->
76
- <!-- <minSize></minSize> -->
77
-
78
- <!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. -->
79
- <!-- <maxSize></maxSize> -->
80
- </initialWindow>
81
-
82
- <!-- The subpath of the standard default installation location to use. Optional. -->
83
- <!-- <installFolder></installFolder> -->
84
-
85
- <!-- The subpath of the Programs menu to use. (Ignored on operating systems without a Programs menu.) Optional. -->
86
- <!-- <programMenuFolder></programMenuFolder> -->
87
-
88
- <!-- The icon the system uses for the application. For at least one resolution,
89
- specify the path to a PNG file included in the AIR package. Optional. -->
90
- <!-- <icon>
91
- <image16x16></image16x16>
92
- <image32x32></image32x32>
93
- <image48x48></image48x48>
94
- <image128x128></image128x128>
95
- </icon> -->
96
-
97
- <!-- Whether the application handles the update when a user double-clicks an update version
98
- of the AIR file (true), or the default AIR application installer handles the update (false).
99
- Optional. Default false. -->
100
- <!-- <customUpdateUI></customUpdateUI> -->
101
-
102
- <!-- Whether the application can be launched when the user clicks a link in a web browser.
103
- Optional. Default false. -->
104
- <!-- <allowBrowserInvocation></allowBrowserInvocation> -->
105
-
106
- <!-- Listing of file types for which the application can register. Optional. -->
107
- <!-- <fileTypes> -->
108
-
109
- <!-- Defines one file type. Optional. -->
110
- <!-- <fileType> -->
111
-
112
- <!-- The name that the system displays for the registered file type. Required. -->
113
- <!-- <name></name> -->
114
-
115
- <!-- The extension to register. Required. -->
116
- <!-- <extension></extension> -->
117
-
118
- <!-- The description of the file type. Optional. -->
119
- <!-- <description></description> -->
120
-
121
- <!-- The MIME content type. -->
122
- <!-- <contentType></contentType> -->
123
-
124
- <!-- The icon to display for the file type. Optional. -->
125
- <!-- <icon>
126
- <image16x16></image16x16>
127
- <image32x32></image32x32>
128
- <image48x48></image48x48>
129
- <image128x128></image128x128>
130
- </icon> -->
131
-
132
- <!-- </fileType> -->
133
- <!-- </fileTypes> -->
134
-
135
- </application>