as3corelib 0.1.0 → 0.85.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -4
- data/Gemfile.lock +7 -4
- data/README.textile +20 -10
- data/Rakefile +32 -2
- data/as3corelib.gemspec +13 -11
- data/lib/as3corelib.rb +10 -4
- data/lib/as3corelib/version.rb +4 -0
- metadata +31 -121
- data/build/build.properties +0 -48
- data/build/build.xml +0 -104
- data/examples/JSONExample/JSONExample.mxml +0 -73
- data/src/com/adobe/air/crypto/EncryptionKeyGenerator.as +0 -313
- data/src/com/adobe/air/filesystem/FileMonitor.as +0 -245
- data/src/com/adobe/air/filesystem/FileUtil.as +0 -63
- data/src/com/adobe/air/filesystem/VolumeMonitor.as +0 -184
- data/src/com/adobe/air/filesystem/events/FileMonitorEvent.as +0 -61
- data/src/com/adobe/air/logging/FileTarget.as +0 -95
- data/src/com/adobe/air/net/ResourceCache.as +0 -165
- data/src/com/adobe/air/net/events/ResourceCacheEvent.as +0 -70
- data/src/com/adobe/crypto/HMAC.as +0 -127
- data/src/com/adobe/crypto/MD5.as +0 -281
- data/src/com/adobe/crypto/MD5Stream.as +0 -402
- data/src/com/adobe/crypto/SHA1.as +0 -289
- data/src/com/adobe/crypto/SHA224.as +0 -257
- data/src/com/adobe/crypto/SHA256.as +0 -261
- data/src/com/adobe/crypto/WSSEUsernameToken.as +0 -114
- data/src/com/adobe/errors/IllegalStateError.as +0 -63
- data/src/com/adobe/fileformats/vcard/Address.as +0 -47
- data/src/com/adobe/fileformats/vcard/Email.as +0 -39
- data/src/com/adobe/fileformats/vcard/Phone.as +0 -39
- data/src/com/adobe/fileformats/vcard/VCard.as +0 -54
- data/src/com/adobe/fileformats/vcard/VCardParser.as +0 -246
- data/src/com/adobe/images/BitString.as +0 -39
- data/src/com/adobe/images/JPGEncoder.as +0 -648
- data/src/com/adobe/images/PNGEncoder.as +0 -141
- data/src/com/adobe/net/DynamicURLLoader.as +0 -55
- data/src/com/adobe/net/IURIResolver.as +0 -76
- data/src/com/adobe/net/MimeTypeMap.as +0 -200
- data/src/com/adobe/net/URI.as +0 -2466
- data/src/com/adobe/net/URIEncodingBitmap.as +0 -139
- data/src/com/adobe/net/proxies/RFC2817Socket.as +0 -198
- data/src/com/adobe/protocols/dict/Database.as +0 -66
- data/src/com/adobe/protocols/dict/Definition.as +0 -71
- data/src/com/adobe/protocols/dict/Dict.as +0 -360
- data/src/com/adobe/protocols/dict/DictionaryServer.as +0 -60
- data/src/com/adobe/protocols/dict/MatchStrategy.as +0 -66
- data/src/com/adobe/protocols/dict/Response.as +0 -71
- data/src/com/adobe/protocols/dict/events/ConnectedEvent.as +0 -53
- data/src/com/adobe/protocols/dict/events/DatabaseEvent.as +0 -67
- data/src/com/adobe/protocols/dict/events/DefinitionEvent.as +0 -70
- data/src/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as +0 -69
- data/src/com/adobe/protocols/dict/events/DictionaryServerEvent.as +0 -69
- data/src/com/adobe/protocols/dict/events/DisconnectedEvent.as +0 -55
- data/src/com/adobe/protocols/dict/events/ErrorEvent.as +0 -80
- data/src/com/adobe/protocols/dict/events/MatchEvent.as +0 -67
- data/src/com/adobe/protocols/dict/events/MatchStrategiesEvent.as +0 -70
- data/src/com/adobe/protocols/dict/events/NoMatchEvent.as +0 -54
- data/src/com/adobe/protocols/dict/util/CompleteResponseEvent.as +0 -68
- data/src/com/adobe/protocols/dict/util/SocketHelper.as +0 -81
- data/src/com/adobe/serialization/json/JSON.as +0 -86
- data/src/com/adobe/serialization/json/JSONDecoder.as +0 -327
- data/src/com/adobe/serialization/json/JSONEncoder.as +0 -312
- data/src/com/adobe/serialization/json/JSONParseError.as +0 -87
- data/src/com/adobe/serialization/json/JSONToken.as +0 -104
- data/src/com/adobe/serialization/json/JSONTokenType.as +0 -69
- data/src/com/adobe/serialization/json/JSONTokenizer.as +0 -702
- data/src/com/adobe/utils/ArrayUtil.as +0 -187
- data/src/com/adobe/utils/DateUtil.as +0 -701
- data/src/com/adobe/utils/DictionaryUtil.as +0 -87
- data/src/com/adobe/utils/IntUtil.as +0 -99
- data/src/com/adobe/utils/NumberFormatter.as +0 -74
- data/src/com/adobe/utils/StringUtil.as +0 -239
- data/src/com/adobe/utils/XMLUtil.as +0 -168
- data/src/com/adobe/webapis/ServiceBase.as +0 -48
- data/src/com/adobe/webapis/URLLoaderBase.as +0 -108
- data/src/com/adobe/webapis/events/ServiceEvent.as +0 -82
- data/tests/src/CoreLibTestRunner-app.xml +0 -135
- data/tests/src/CoreLibTestRunner.as +0 -138
- data/tests/src/CoreLibTestRunner.mxml +0 -46
- data/tests/src/com/adobe/air/crypto/EncryptionKeyGeneratorTest.as +0 -176
- data/tests/src/com/adobe/air/filesystem/FileMonitorTest.as +0 -63
- data/tests/src/com/adobe/air/filesystem/VolumeMonitorTest.as +0 -57
- data/tests/src/com/adobe/air/filesystem/events/FileMonitorEventTest.as +0 -59
- data/tests/src/com/adobe/air/net/events/ResourceCacheEventTest.as +0 -72
- data/tests/src/com/adobe/crypto/HMACMD5Test.as +0 -134
- data/tests/src/com/adobe/crypto/HMACSHA1Test.as +0 -138
- data/tests/src/com/adobe/crypto/MD5Test.as +0 -82
- data/tests/src/com/adobe/crypto/SHA1Test.as +0 -151
- data/tests/src/com/adobe/crypto/SHA224Test.as +0 -104
- data/tests/src/com/adobe/crypto/SHA256Test.as +0 -116
- data/tests/src/com/adobe/crypto/WSSEUsernameTokenTest.as +0 -87
- data/tests/src/com/adobe/images/JPGEncoderTest.as +0 -54
- data/tests/src/com/adobe/images/PNGEncoderTest.as +0 -54
- data/tests/src/com/adobe/net/URITest.as +0 -589
- data/tests/src/com/adobe/protocols/events/ConnectedEventTest.as +0 -59
- data/tests/src/com/adobe/protocols/events/DatabaseEventTest.as +0 -62
- data/tests/src/com/adobe/protocols/events/DefinitionEventTest.as +0 -61
- data/tests/src/com/adobe/protocols/events/DefinitionHeaderEventTest.as +0 -61
- data/tests/src/com/adobe/protocols/events/DictionaryServerEventTest.as +0 -61
- data/tests/src/com/adobe/protocols/events/DisconnectedEventTest.as +0 -59
- data/tests/src/com/adobe/protocols/events/ErrorEventTest.as +0 -63
- data/tests/src/com/adobe/protocols/events/MatchEventTest.as +0 -61
- data/tests/src/com/adobe/protocols/events/MatchStrategiesEventTest.as +0 -61
- data/tests/src/com/adobe/protocols/events/NoMatchEventTest.as +0 -58
- data/tests/src/com/adobe/protocols/util/CompletedResponseEventTest.as +0 -60
- data/tests/src/com/adobe/serialization/json/JSONTest.as +0 -522
- data/tests/src/com/adobe/serialization/json/SimpleClass.as +0 -85
- data/tests/src/com/adobe/utils/ArrayUtilTest.as +0 -173
- data/tests/src/com/adobe/utils/DateUtilTest.as +0 -436
- data/tests/src/com/adobe/utils/DictionaryUtilTest.as +0 -93
- data/tests/src/com/adobe/utils/IntUtilTest.as +0 -73
- data/tests/src/com/adobe/utils/NumberFormatterTest.as +0 -70
- data/tests/src/com/adobe/utils/StringUtilTest.as +0 -304
- data/tests/src/com/adobe/utils/XMLUtilTest.as +0 -101
- 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>
|