├── library └── AIRServer │ ├── bin │ └── AIRServer.swc │ ├── libs │ ├── CocoonP2P-0.8.swc │ └── blooddy_crypto.swc │ ├── .settings │ ├── com.adobe.flexbuilder.project.prefs │ └── org.eclipse.core.resources.prefs │ ├── src │ └── be │ │ └── aboutme │ │ └── airserver │ │ ├── util │ │ └── IDGenerator.as │ │ ├── endpoints │ │ ├── IEndPoint.as │ │ ├── IClientHandler.as │ │ └── socket │ │ │ └── handlers │ │ │ ├── SocketClientHandlerFactory.as │ │ │ ├── amf │ │ │ ├── AMFSocketClientHandlerFactory.as │ │ │ └── AMFSocketClientHandler.as │ │ │ ├── websocket │ │ │ └── WebSocketClientHandlerFactory.as │ │ │ └── plain │ │ │ ├── PlainTextSocketClientHandlerFactory.as │ │ │ └── PlainTextSocketClientHandler.as │ │ ├── messages │ │ ├── serialization │ │ │ ├── IMessageSerializer.as │ │ │ ├── PlainTextSerializer.as │ │ │ ├── NativeObjectSerializer.as │ │ │ └── JSONSerializer.as │ │ └── Message.as │ │ ├── events │ │ ├── MessagesAvailableEvent.as │ │ ├── AIRServerEvent.as │ │ ├── MessageReceivedEvent.as │ │ └── EndPointEvent.as │ │ └── Client.as │ ├── .project │ ├── .flexLibProperties │ └── .actionScriptProperties ├── demos ├── spacegame │ ├── SpaceGameClient │ │ ├── libs │ │ │ ├── embeds.swc │ │ │ ├── UDPSocket.ane │ │ │ ├── greensock.swc │ │ │ └── library.swc │ │ ├── src │ │ │ ├── assets │ │ │ │ ├── Default.png │ │ │ │ ├── Icon_114.png │ │ │ │ ├── Icon_29.png │ │ │ │ ├── Icon_512.png │ │ │ │ ├── Icon_57.png │ │ │ │ └── Icon_72.png │ │ │ ├── be │ │ │ │ └── devine │ │ │ │ │ └── spacegame │ │ │ │ │ └── mobilecontroller │ │ │ │ │ └── view │ │ │ │ │ └── SpaceGameButton.as │ │ │ └── Library.as │ │ └── .project │ ├── SpaceGameServer │ │ ├── libs │ │ │ ├── embeds.swc │ │ │ ├── greensock.swc │ │ │ └── animatiesGameShooter.swc │ │ ├── src │ │ │ ├── assets │ │ │ │ ├── Icon_114.png │ │ │ │ ├── Icon_128.png │ │ │ │ ├── Icon_16.png │ │ │ │ ├── Icon_32.png │ │ │ │ ├── Icon_36.png │ │ │ │ ├── Icon_48.png │ │ │ │ └── Icon_72.png │ │ │ ├── be │ │ │ │ ├── devine │ │ │ │ │ └── spacegame │ │ │ │ │ │ ├── background │ │ │ │ │ │ ├── Auto.as │ │ │ │ │ │ ├── Bird.as │ │ │ │ │ │ ├── Ballon.as │ │ │ │ │ │ ├── MeteorKoe.as │ │ │ │ │ │ ├── MeteorHuis.as │ │ │ │ │ │ └── BackgroundItem.as │ │ │ │ │ │ ├── Bullet.as │ │ │ │ │ │ ├── controller │ │ │ │ │ │ ├── SpaceShipController.as │ │ │ │ │ │ └── SpaceShipKeyboardController.as │ │ │ │ │ │ └── inputSources │ │ │ │ │ │ └── keyboard │ │ │ │ │ │ └── KeyboardInputSource.as │ │ │ │ └── happybanana │ │ │ │ │ └── libraries │ │ │ │ │ └── project │ │ │ │ │ └── as3web │ │ │ │ │ └── view │ │ │ │ │ └── BasicSprite.as │ │ │ ├── Library.as │ │ │ └── Main.as │ │ └── .project │ └── SpaceGameClientHTML5 │ │ ├── fonts │ │ ├── silom-webfont.eot │ │ ├── silom-webfont.ttf │ │ └── silom-webfont.woff │ │ ├── images │ │ └── highres │ │ │ ├── red.png │ │ │ ├── green.png │ │ │ ├── background.png │ │ │ ├── finished_lose.png │ │ │ ├── finished_win.png │ │ │ ├── calibrate_schijf.png │ │ │ ├── knop_background.png │ │ │ ├── calibrate_lines_red.png │ │ │ ├── playing_background.png │ │ │ ├── calibrate_background.png │ │ │ ├── calibrate_horizon_red.png │ │ │ ├── calibrate_lines_green.png │ │ │ └── calibrate_horizon_green.png │ │ └── index.html └── basic │ ├── clients │ ├── MessagesDemoClientCocoonP2P │ │ ├── libs │ │ │ └── CocoonP2P-0.8.3.swc │ │ ├── html-template │ │ │ ├── playerProductInstall.swf │ │ │ └── history │ │ │ │ ├── history.css │ │ │ │ └── historyFrame.html │ │ ├── .flexProperties │ │ ├── .project │ │ ├── .actionScriptProperties │ │ └── src │ │ │ └── MessagesDemoClientCocoonP2P.mxml │ ├── MessagesDemoClientSocket │ │ ├── html-template │ │ │ ├── playerProductInstall.swf │ │ │ └── history │ │ │ │ ├── history.css │ │ │ │ └── historyFrame.html │ │ ├── .flexProperties │ │ ├── .project │ │ └── .actionScriptProperties │ ├── ImagesDemoClient │ │ ├── .flexProperties │ │ ├── .project │ │ ├── src │ │ │ └── com │ │ │ │ └── adobe │ │ │ │ ├── fileformats │ │ │ │ └── vcard │ │ │ │ │ ├── Email.as │ │ │ │ │ ├── Phone.as │ │ │ │ │ ├── Address.as │ │ │ │ │ └── VCard.as │ │ │ │ ├── images │ │ │ │ └── BitString.as │ │ │ │ ├── webapis │ │ │ │ ├── ServiceBase.as │ │ │ │ └── flickr │ │ │ │ │ ├── ContentType.as │ │ │ │ │ ├── SafetyLevel.as │ │ │ │ │ ├── Permission.as │ │ │ │ │ ├── flickrservice_internal.as │ │ │ │ │ ├── authorization │ │ │ │ │ ├── FlickrAuthorizationSettings.as │ │ │ │ │ └── events │ │ │ │ │ │ └── AuthorizationEvent.as │ │ │ │ │ └── AuthPerm.as │ │ │ │ ├── protocols │ │ │ │ └── dict │ │ │ │ │ ├── events │ │ │ │ │ ├── NoMatchEvent.as │ │ │ │ │ ├── ConnectedEvent.as │ │ │ │ │ ├── DisconnectedEvent.as │ │ │ │ │ ├── MatchEvent.as │ │ │ │ │ └── DatabaseEvent.as │ │ │ │ │ ├── DictionaryServer.as │ │ │ │ │ ├── Database.as │ │ │ │ │ ├── MatchStrategy.as │ │ │ │ │ ├── Response.as │ │ │ │ │ └── Definition.as │ │ │ │ ├── net │ │ │ │ └── DynamicURLLoader.as │ │ │ │ ├── air │ │ │ │ ├── filesystem │ │ │ │ │ ├── FileUtil.as │ │ │ │ │ └── events │ │ │ │ │ │ └── FileMonitorEvent.as │ │ │ │ └── net │ │ │ │ │ └── events │ │ │ │ │ └── ResourceCacheEvent.as │ │ │ │ ├── errors │ │ │ │ └── IllegalStateError.as │ │ │ │ └── serialization │ │ │ │ └── json │ │ │ │ └── JSONTokenType.as │ │ └── .actionScriptProperties │ ├── ImagesDemoClientMobile │ │ ├── .flexProperties │ │ ├── .project │ │ └── src │ │ │ └── com │ │ │ └── adobe │ │ │ ├── fileformats │ │ │ └── vcard │ │ │ │ ├── Email.as │ │ │ │ ├── Phone.as │ │ │ │ ├── Address.as │ │ │ │ └── VCard.as │ │ │ ├── images │ │ │ └── BitString.as │ │ │ ├── webapis │ │ │ ├── ServiceBase.as │ │ │ └── flickr │ │ │ │ ├── ContentType.as │ │ │ │ ├── SafetyLevel.as │ │ │ │ ├── Permission.as │ │ │ │ ├── flickrservice_internal.as │ │ │ │ ├── authorization │ │ │ │ ├── FlickrAuthorizationSettings.as │ │ │ │ └── events │ │ │ │ │ └── AuthorizationEvent.as │ │ │ │ └── AuthPerm.as │ │ │ ├── protocols │ │ │ └── dict │ │ │ │ ├── events │ │ │ │ ├── NoMatchEvent.as │ │ │ │ ├── ConnectedEvent.as │ │ │ │ ├── DisconnectedEvent.as │ │ │ │ └── MatchEvent.as │ │ │ │ ├── DictionaryServer.as │ │ │ │ ├── Database.as │ │ │ │ ├── MatchStrategy.as │ │ │ │ ├── Response.as │ │ │ │ └── Definition.as │ │ │ ├── net │ │ │ └── DynamicURLLoader.as │ │ │ ├── air │ │ │ ├── filesystem │ │ │ │ ├── FileUtil.as │ │ │ │ └── events │ │ │ │ │ └── FileMonitorEvent.as │ │ │ └── net │ │ │ │ └── events │ │ │ │ └── ResourceCacheEvent.as │ │ │ ├── errors │ │ │ └── IllegalStateError.as │ │ │ └── serialization │ │ │ └── json │ │ │ └── JSONTokenType.as │ └── MessagesDemoClientUDP │ │ ├── .flexProperties │ │ ├── .project │ │ └── .actionScriptProperties │ └── server │ ├── MessagesDemoServer │ ├── .flexProperties │ ├── .project │ └── .actionScriptProperties │ └── ImagesDemoServer │ ├── .project │ └── src │ └── ImagesDemoServer.as ├── .gitignore └── readme.md /library/AIRServer/bin/AIRServer.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/library/AIRServer/bin/AIRServer.swc -------------------------------------------------------------------------------- /library/AIRServer/libs/CocoonP2P-0.8.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/library/AIRServer/libs/CocoonP2P-0.8.swc -------------------------------------------------------------------------------- /library/AIRServer/libs/blooddy_crypto.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/library/AIRServer/libs/blooddy_crypto.swc -------------------------------------------------------------------------------- /library/AIRServer/.settings/com.adobe.flexbuilder.project.prefs: -------------------------------------------------------------------------------- 1 | #Thu Nov 24 14:00:18 CET 2011 2 | eclipse.preferences.version=1 3 | upgradeSDK/fb4= 4 | -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/libs/embeds.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/libs/embeds.swc -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/libs/embeds.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/libs/embeds.swc -------------------------------------------------------------------------------- /library/AIRServer/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | #Fri May 27 15:22:32 CEST 2011 2 | eclipse.preferences.version=1 3 | encoding/=utf-8 4 | -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/libs/UDPSocket.ane: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/libs/UDPSocket.ane -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/libs/greensock.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/libs/greensock.swc -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/libs/library.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/libs/library.swc -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/libs/greensock.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/libs/greensock.swc -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/assets/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/src/assets/Default.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/assets/Icon_114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/src/assets/Icon_114.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/assets/Icon_29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/src/assets/Icon_29.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/assets/Icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/src/assets/Icon_512.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/assets/Icon_57.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/src/assets/Icon_57.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/assets/Icon_72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClient/src/assets/Icon_72.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/assets/Icon_114.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/src/assets/Icon_114.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/assets/Icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/src/assets/Icon_128.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/assets/Icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/src/assets/Icon_16.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/assets/Icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/src/assets/Icon_32.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/assets/Icon_36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/src/assets/Icon_36.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/assets/Icon_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/src/assets/Icon_48.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/assets/Icon_72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/src/assets/Icon_72.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/fonts/silom-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/fonts/silom-webfont.eot -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/fonts/silom-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/fonts/silom-webfont.ttf -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/red.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/fonts/silom-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/fonts/silom-webfont.woff -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/green.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/libs/animatiesGameShooter.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameServer/libs/animatiesGameShooter.swc -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/background.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/finished_lose.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/finished_lose.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/finished_win.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/finished_win.png -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/libs/CocoonP2P-0.8.3.swc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/basic/clients/MessagesDemoClientCocoonP2P/libs/CocoonP2P-0.8.3.swc -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_schijf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_schijf.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/knop_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/knop_background.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_lines_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_lines_red.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/playing_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/playing_background.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_background.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_horizon_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_horizon_red.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_lines_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_lines_green.png -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_horizon_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/spacegame/SpaceGameClientHTML5/images/highres/calibrate_horizon_green.png -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientSocket/html-template/playerProductInstall.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/basic/clients/MessagesDemoClientSocket/html-template/playerProductInstall.swf -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/html-template/playerProductInstall.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wouterverweirder/AIR-Server/HEAD/demos/basic/clients/MessagesDemoClientCocoonP2P/html-template/playerProductInstall.swf -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demos/basic/server/MessagesDemoServer/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientSocket/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientUDP/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/.flexProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/util/IDGenerator.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.util 2 | { 3 | public class IDGenerator 4 | { 5 | private static var counter:uint; 6 | 7 | public static function getUniqueId():uint 8 | { 9 | return counter++; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/IEndPoint.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints 2 | { 3 | import flash.events.IEventDispatcher; 4 | 5 | public interface IEndPoint extends IEventDispatcher 6 | { 7 | function open():void; 8 | function close():void; 9 | } 10 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/messages/serialization/IMessageSerializer.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.messages.serialization 2 | { 3 | import be.aboutme.airserver.messages.Message; 4 | 5 | public interface IMessageSerializer 6 | { 7 | function serialize(message:Message):*; 8 | function deserialize(serialized:*):Vector.; 9 | } 10 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | 3 | # Build and Release Folders 4 | bin/ 5 | bin-debug/ 6 | bin-release/ 7 | 8 | # Other files and folders 9 | .settings/ 10 | 11 | # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` 12 | # should NOT be excluded as they contain compiler settings and other important 13 | # information for Eclipse / Flash Builder. -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/background/Auto.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.background 2 | { 3 | import be.happybanana.libraries.project.as3web.view.BasicSprite; 4 | 5 | public class Auto extends BasicSprite 6 | { 7 | private var anim:BasicAuto; 8 | 9 | public function Auto() 10 | { 11 | anim = new BasicAuto(); 12 | addChild(anim); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/messages/Message.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.messages 2 | { 3 | 4 | public class Message 5 | { 6 | 7 | public var senderId:uint; 8 | public var command:String = ""; 9 | public var data:* = ""; 10 | 11 | public function Message() 12 | { 13 | } 14 | 15 | public function toString():String 16 | { 17 | return "[Message " + data + "]"; 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientSocket/html-template/history/history.css: -------------------------------------------------------------------------------- 1 | /* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */ 2 | 3 | #ie_historyFrame { width: 0px; height: 0px; display:none } 4 | #firefox_anchorDiv { width: 0px; height: 0px; display:none } 5 | #safari_formDiv { width: 0px; height: 0px; display:none } 6 | #safari_rememberDiv { width: 0px; height: 0px; display:none } 7 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/html-template/history/history.css: -------------------------------------------------------------------------------- 1 | /* This CSS stylesheet defines styles used by required elements in a flex application page that supports browser history */ 2 | 3 | #ie_historyFrame { width: 0px; height: 0px; display:none } 4 | #firefox_anchorDiv { width: 0px; height: 0px; display:none } 5 | #safari_formDiv { width: 0px; height: 0px; display:none } 6 | #safari_rememberDiv { width: 0px; height: 0px; display:none } 7 | -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/background/Bird.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.background 2 | { 3 | import be.happybanana.libraries.project.as3web.view.BasicSprite; 4 | 5 | import flash.display.Bitmap; 6 | 7 | public class Bird extends BasicSprite 8 | { 9 | private var bmp:Bitmap; 10 | 11 | public function Bird() 12 | { 13 | bmp = new Library.Bird(); 14 | bmp.smoothing = true; 15 | addChild(bmp); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/IClientHandler.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints 2 | { 3 | import be.aboutme.airserver.messages.Message; 4 | 5 | import flash.events.IEventDispatcher; 6 | 7 | public interface IClientHandler extends IEventDispatcher 8 | { 9 | function close():void; 10 | function get messagesAvailable():Boolean; 11 | function readMessage():Message; 12 | function writeMessage(messageToWrite:Message):void; 13 | } 14 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/background/Ballon.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.background 2 | { 3 | import be.happybanana.libraries.project.as3web.view.BasicSprite; 4 | 5 | import flash.display.Bitmap; 6 | 7 | public class Ballon extends BasicSprite 8 | { 9 | 10 | private var bmp:Bitmap; 11 | 12 | public function Ballon() 13 | { 14 | bmp = new Library.Ballon(); 15 | bmp.smoothing = true; 16 | addChild(bmp); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/events/MessagesAvailableEvent.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.events 2 | { 3 | import flash.events.Event; 4 | 5 | public class MessagesAvailableEvent extends Event 6 | { 7 | 8 | public static const MESSAGES_AVAILABLE:String = "messagesAvailable"; 9 | 10 | public function MessagesAvailableEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 11 | { 12 | super(type, bubbles, cancelable); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/background/MeteorKoe.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.background 2 | { 3 | import be.happybanana.libraries.project.as3web.view.BasicSprite; 4 | 5 | import flash.display.Bitmap; 6 | 7 | public class MeteorKoe extends BasicSprite 8 | { 9 | 10 | private var bmp:Bitmap; 11 | 12 | public function MeteorKoe() 13 | { 14 | bmp = new Library.Meteor2(); 15 | bmp.smoothing = true; 16 | addChild(bmp); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/background/MeteorHuis.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.background 2 | { 3 | import be.happybanana.libraries.project.as3web.view.BasicSprite; 4 | 5 | import flash.display.Bitmap; 6 | 7 | public class MeteorHuis extends BasicSprite 8 | { 9 | 10 | private var bmp:Bitmap; 11 | 12 | public function MeteorHuis() 13 | { 14 | bmp = new Library.Meteor1(); 15 | bmp.smoothing = true; 16 | addChild(bmp); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /library/AIRServer/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | AIRServer 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexlibnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientSocket/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | MessagesDemoClientSocket 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | MessagesDemoClientCocoonP2P 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | 15 | com.adobe.flexbuilder.project.flexnature 16 | com.adobe.flexbuilder.project.actionscriptnature 17 | 18 | 19 | -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/events/AIRServerEvent.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.events 2 | { 3 | import be.aboutme.airserver.Client; 4 | 5 | import flash.events.Event; 6 | 7 | public class AIRServerEvent extends Event 8 | { 9 | 10 | public static const CLIENT_ADDED:String = "clientAdded"; 11 | public static const CLIENT_REMOVED:String = "clientRemoved"; 12 | 13 | public var client:Client; 14 | 15 | public function AIRServerEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 16 | { 17 | super(type, bubbles, cancelable); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | SpaceGameServer 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | com.adobe.flexbuilder.project.apollobuilder 15 | 16 | 17 | 18 | 19 | 20 | com.adobe.flexbuilder.project.apollonature 21 | com.adobe.flexbuilder.project.actionscriptnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /demos/basic/server/ImagesDemoServer/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ImagesDemoServer 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | com.adobe.flexbuilder.project.apollobuilder 15 | 16 | 17 | 18 | 19 | 20 | com.adobe.flexbuilder.project.apollonature 21 | com.adobe.flexbuilder.project.actionscriptnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClientHTML5/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SpaceShooter 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/events/MessageReceivedEvent.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.events 2 | { 3 | import be.aboutme.airserver.messages.Message; 4 | 5 | import flash.events.Event; 6 | 7 | public class MessageReceivedEvent extends Event 8 | { 9 | 10 | public static const MESSAGE_RECEIVED:String = "messageReceived"; 11 | 12 | public var message:Message; 13 | 14 | public function MessageReceivedEvent(type:String, message:Message, bubbles:Boolean=false, cancelable:Boolean=false) 15 | { 16 | super(type, bubbles, cancelable); 17 | this.message = message; 18 | } 19 | 20 | override public function clone():Event 21 | { 22 | return new MessageReceivedEvent(type, message, bubbles, cancelable); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/events/EndPointEvent.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.events 2 | { 3 | import be.aboutme.airserver.endpoints.IClientHandler; 4 | 5 | import flash.events.Event; 6 | 7 | public class EndPointEvent extends Event 8 | { 9 | 10 | public static const CLIENT_HANDLER_ADDED:String = "clientHandlerAdded"; 11 | 12 | public var clientHandler:IClientHandler; 13 | 14 | public function EndPointEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 15 | { 16 | super(type, bubbles, cancelable); 17 | } 18 | 19 | override public function clone():Event 20 | { 21 | var e:EndPointEvent = new EndPointEvent(type, bubbles, cancelable); 22 | e.clientHandler = clientHandler; 23 | return e; 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ImagesDemoClient 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | com.adobe.flexbuilder.project.apollobuilder 15 | 16 | 17 | 18 | 19 | 20 | com.adobe.flexbuilder.project.apollonature 21 | com.adobe.flexbuilder.project.flexnature 22 | com.adobe.flexbuilder.project.actionscriptnature 23 | 24 | 25 | -------------------------------------------------------------------------------- /demos/basic/server/MessagesDemoServer/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | MessagesDemoServer 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | com.adobe.flexbuilder.project.apollobuilder 15 | 16 | 17 | 18 | 19 | 20 | com.adobe.flexbuilder.project.apollonature 21 | com.adobe.flexbuilder.project.flexnature 22 | com.adobe.flexbuilder.project.actionscriptnature 23 | 24 | 25 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientUDP/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | MessagesDemoClientUDP 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | com.adobe.flexbuilder.project.apollobuilder 15 | 16 | 17 | 18 | 19 | 20 | com.adobe.flexbuilder.project.apollonature 21 | com.adobe.flexbuilder.project.flexnature 22 | com.adobe.flexbuilder.project.actionscriptnature 23 | 24 | 25 | -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/socket/handlers/SocketClientHandlerFactory.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints.socket.handlers 2 | { 3 | import be.aboutme.airserver.messages.serialization.IMessageSerializer; 4 | 5 | import flash.net.Socket; 6 | 7 | public class SocketClientHandlerFactory 8 | { 9 | 10 | protected var messageSerializer:IMessageSerializer; 11 | protected var crossDomainPolicyXML:XML; 12 | 13 | public function SocketClientHandlerFactory(messageSerializer:IMessageSerializer, crossDomainPolicyXML:XML = null) 14 | { 15 | this.messageSerializer = messageSerializer; 16 | this.crossDomainPolicyXML = crossDomainPolicyXML; 17 | } 18 | 19 | public function createHandler(socket:Socket):SocketClientHandler 20 | { 21 | return new SocketClientHandler(socket, messageSerializer, crossDomainPolicyXML); 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | ImagesDemoClientMobile 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | com.adobe.flexbuilder.project.apollobuilder 15 | 16 | 17 | 18 | 19 | 20 | com.adobe.flexide.project.multiplatform.multiplatformnature 21 | com.adobe.flexbuilder.project.apollonature 22 | com.adobe.flexbuilder.project.flexnature 23 | com.adobe.flexbuilder.project.actionscriptnature 24 | 25 | 26 | -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | SpaceGameClient 4 | 5 | 6 | 7 | 8 | 9 | com.adobe.flexbuilder.project.flexbuilder 10 | 11 | 12 | 13 | 14 | com.adobe.flexbuilder.project.apollobuilder 15 | 16 | 17 | 18 | 19 | 20 | com.adobe.flexide.project.multiplatform.multiplatformasnature 21 | com.adobe.flexide.project.multiplatform.multiplatformnature 22 | com.adobe.flexbuilder.project.apollonature 23 | com.adobe.flexbuilder.project.actionscriptnature 24 | 25 | 26 | -------------------------------------------------------------------------------- /library/AIRServer/.flexLibProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientSocket/html-template/history/historyFrame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 27 | Hidden frame for Browser History support. 28 | 29 | 30 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/html-template/history/historyFrame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 27 | Hidden frame for Browser History support. 28 | 29 | 30 | -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/messages/serialization/PlainTextSerializer.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.messages.serialization 2 | { 3 | import be.aboutme.airserver.messages.Message; 4 | 5 | public class PlainTextSerializer implements IMessageSerializer 6 | { 7 | protected var messageDelimiter:String; 8 | 9 | public function PlainTextSerializer(messageDelimiter:String = "\n") 10 | { 11 | this.messageDelimiter = messageDelimiter; 12 | } 13 | 14 | public function serialize(message:Message):* 15 | { 16 | return message.data + messageDelimiter; 17 | } 18 | 19 | public function deserialize(serialized:*):Vector. 20 | { 21 | var split:Array = serialized.split(messageDelimiter); 22 | var messages:Vector. = new Vector.(); 23 | for each(var input:String in split) 24 | { 25 | if(input.length > 0) 26 | { 27 | var message:Message = new Message(); 28 | message.data = input; 29 | messages.push(message); 30 | } 31 | } 32 | return messages; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/messages/serialization/NativeObjectSerializer.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.messages.serialization 2 | { 3 | import be.aboutme.airserver.messages.Message; 4 | 5 | public class NativeObjectSerializer implements IMessageSerializer 6 | { 7 | public function NativeObjectSerializer() 8 | { 9 | } 10 | 11 | public function serialize(message:Message):* 12 | { 13 | return message; 14 | } 15 | 16 | public function deserialize(serialized:*):Vector. 17 | { 18 | var messages:Vector. = new Vector.(1, true); 19 | if(serialized is Message) 20 | { 21 | messages[0] = serialized; 22 | } 23 | else 24 | { 25 | var message:Message = new Message(); 26 | if(serialized.hasOwnProperty("senderId")) message.senderId = serialized.senderId; 27 | if(serialized.hasOwnProperty("command")) message.command = serialized.command; 28 | if(serialized.hasOwnProperty("data")) message.data = serialized.data; 29 | else message.data = serialized; 30 | messages[0] = message; 31 | } 32 | 33 | return messages; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/socket/handlers/amf/AMFSocketClientHandlerFactory.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints.socket.handlers.amf 2 | { 3 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandler; 4 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandlerFactory; 5 | import be.aboutme.airserver.messages.serialization.IMessageSerializer; 6 | import be.aboutme.airserver.messages.serialization.NativeObjectSerializer; 7 | 8 | import flash.net.Socket; 9 | 10 | public class AMFSocketClientHandlerFactory extends SocketClientHandlerFactory 11 | { 12 | public function AMFSocketClientHandlerFactory(messageSerializer:IMessageSerializer = null, crossDomainPolicyXML:XML = null) 13 | { 14 | if(messageSerializer == null) 15 | { 16 | messageSerializer = new NativeObjectSerializer(); 17 | } 18 | super(messageSerializer, crossDomainPolicyXML); 19 | } 20 | 21 | override public function createHandler(socket:Socket):SocketClientHandler 22 | { 23 | return new AMFSocketClientHandler(socket, messageSerializer, crossDomainPolicyXML); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/socket/handlers/websocket/WebSocketClientHandlerFactory.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints.socket.handlers.websocket 2 | { 3 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandler; 4 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandlerFactory; 5 | import be.aboutme.airserver.messages.serialization.IMessageSerializer; 6 | import be.aboutme.airserver.messages.serialization.JSONSerializer; 7 | 8 | import flash.net.Socket; 9 | 10 | public class WebSocketClientHandlerFactory extends SocketClientHandlerFactory 11 | { 12 | 13 | public function WebSocketClientHandlerFactory(messageSerializer:IMessageSerializer = null, crossDomainPolicyXML:XML = null) 14 | { 15 | if(messageSerializer == null) 16 | { 17 | messageSerializer = new JSONSerializer(); 18 | } 19 | super(messageSerializer, crossDomainPolicyXML); 20 | } 21 | 22 | override public function createHandler(socket:Socket):SocketClientHandler 23 | { 24 | return new WebSocketClientHandler(socket, messageSerializer, crossDomainPolicyXML); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/Bullet.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame 2 | { 3 | import flash.display.Bitmap; 4 | import flash.display.Sprite; 5 | 6 | public class Bullet extends Sprite 7 | { 8 | 9 | public static const RAD:Number = Math.PI / 180; 10 | public static const HALF_PI:Number = Math.PI / 2; 11 | 12 | public var spaceShip:SpaceShip; 13 | 14 | public var speed:Number = 0; 15 | 16 | private var ontstopper:Bitmap; 17 | 18 | public function Bullet(spaceShip:SpaceShip) 19 | { 20 | this.spaceShip = spaceShip; 21 | 22 | if(spaceShip.color == "green") 23 | { 24 | ontstopper = new Library.OntstopperGreen(); 25 | } 26 | else 27 | { 28 | ontstopper = new Library.OntstopperRed(); 29 | } 30 | 31 | ontstopper.smoothing = true; 32 | ontstopper.x = spaceShip.ontstopper.x; 33 | ontstopper.y = spaceShip.ontstopper.y; 34 | addChild(ontstopper); 35 | } 36 | 37 | public function update():void 38 | { 39 | this.x += Math.sin((this.rotation - 4) * RAD + HALF_PI) * speed; 40 | this.y += Math.cos((this.rotation - 4) * RAD + HALF_PI) * speed * -1; 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/socket/handlers/plain/PlainTextSocketClientHandlerFactory.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints.socket.handlers.plain 2 | { 3 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandler; 4 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandlerFactory; 5 | import be.aboutme.airserver.messages.serialization.IMessageSerializer; 6 | import be.aboutme.airserver.messages.serialization.PlainTextSerializer; 7 | 8 | import flash.net.Socket; 9 | 10 | public class PlainTextSocketClientHandlerFactory extends SocketClientHandlerFactory 11 | { 12 | 13 | public function PlainTextSocketClientHandlerFactory(messageSerializer:IMessageSerializer = null, crossDomainPolicyXML:XML = null) 14 | { 15 | if(messageSerializer == null) 16 | { 17 | messageSerializer = new PlainTextSerializer(); 18 | } 19 | super(messageSerializer, crossDomainPolicyXML); 20 | } 21 | 22 | override public function createHandler(socket:Socket):SocketClientHandler 23 | { 24 | return new PlainTextSocketClientHandler(socket, messageSerializer, crossDomainPolicyXML); 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/be/devine/spacegame/mobilecontroller/view/SpaceGameButton.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.mobilecontroller.view 2 | { 3 | import flash.display.Bitmap; 4 | import flash.display.Sprite; 5 | import flash.text.TextField; 6 | import flash.text.TextFormat; 7 | 8 | public class SpaceGameButton extends Sprite 9 | { 10 | 11 | private var _label:String; 12 | 13 | public function get label():String 14 | { 15 | return _label; 16 | } 17 | 18 | public function set label(value:String):void 19 | { 20 | _label = value; 21 | labelField.text = value; 22 | } 23 | 24 | 25 | private var background:Bitmap; 26 | private var labelField:TextField; 27 | 28 | public function SpaceGameButton() 29 | { 30 | mouseChildren = false; 31 | buttonMode = true; 32 | 33 | background = new Library.KnopBackground(); 34 | addChild(background); 35 | 36 | labelField = new TextField(); 37 | labelField.embedFonts = true; 38 | labelField.selectable = false; 39 | labelField.multiline = false; 40 | labelField.defaultTextFormat = new TextFormat("Silom", 41, 0xFFFFFF, null, null, null, null, null, "center"); 41 | labelField.width = background.width; 42 | labelField.y = 21; 43 | addChild(labelField); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # AIR Server 2 | 3 | AIR Server is a library to create socket servers in Adobe AIR for desktop applications. Some of the features are: 4 | 5 | * Multiple clients 6 | * Listen on multiple ports 7 | * Regular text-sockets 8 | * Websockets 9 | * UDP traffic 10 | * P2P traffic 11 | * AMF Encoding over sockets 12 | * Multi-part image data 13 | 14 | ##example code 15 | 16 | var server:AIRServer = new AIRServer(); 17 | 18 | server.addEndPoint( 19 | new SocketEndPoint( 20 | 1234, 21 | new AMFSocketClientHandlerFactory() 22 | ) 23 | ); 24 | 25 | server.addEventListener(AIRServerEvent.CLIENT_ADDED, 26 | clientAddedHandler); 27 | server.addEventListener(AIRServerEvent.CLIENT_REMOVED, 28 | clientRemovedHandler); 29 | server.addEventListener(MessageReceivedEvent.MESSAGE_RECEIVED, 30 | messageReceivedHandler); 31 | 32 | function clientAddedHandler(event:AIRServerEvent):void 33 | { 34 | trace("Client added: " + event.client.id + "\n"); 35 | } 36 | 37 | function clientRemovedHandler(event:AIRServerEvent):void 38 | { 39 | trace("Client removed: " + event.client.id + "\n"); 40 | } 41 | 42 | function messageReceivedHandler(event:MessageReceivedEvent):void 43 | { 44 | trace(" " + 45 | event.message.data + "\n"); 46 | } -------------------------------------------------------------------------------- /library/AIRServer/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/socket/handlers/plain/PlainTextSocketClientHandler.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints.socket.handlers.plain 2 | { 3 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandler; 4 | import be.aboutme.airserver.messages.Message; 5 | import be.aboutme.airserver.messages.serialization.IMessageSerializer; 6 | 7 | import flash.net.Socket; 8 | import flash.utils.ByteArray; 9 | 10 | public class PlainTextSocketClientHandler extends SocketClientHandler 11 | { 12 | 13 | public function PlainTextSocketClientHandler(socket:Socket, messageSerializer:IMessageSerializer, crossDomainPolicyXML:XML = null) 14 | { 15 | super(socket, messageSerializer, crossDomainPolicyXML); 16 | } 17 | 18 | override protected function queueMessagesFromSocketBytes():Boolean 19 | { 20 | if(socketBytes.bytesAvailable > 0) 21 | { 22 | //add decoded messages to read queue 23 | var deserialized:Vector. = messageSerializer.deserialize(socketBytes.readUTFBytes(socketBytes.bytesAvailable)); 24 | for each(var message:Message in deserialized) 25 | { 26 | readQueue.push(message); 27 | } 28 | } 29 | return true; 30 | } 31 | 32 | override public function writeMessage(messageToWrite:Message):void 33 | { 34 | var bytes:ByteArray = new ByteArray(); 35 | bytes.writeUTFBytes(messageSerializer.serialize(messageToWrite)); 36 | writeSocketBytes(bytes); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /demos/basic/server/ImagesDemoServer/src/ImagesDemoServer.as: -------------------------------------------------------------------------------- 1 | package 2 | { 3 | import be.aboutme.airserver.AIRServer; 4 | import be.aboutme.airserver.endpoints.socket.SocketEndPoint; 5 | import be.aboutme.airserver.endpoints.socket.handlers.amf.AMFSocketClientHandlerFactory; 6 | import be.aboutme.airserver.events.MessageReceivedEvent; 7 | 8 | import flash.display.Loader; 9 | import flash.display.Sprite; 10 | import flash.display.StageAlign; 11 | import flash.display.StageScaleMode; 12 | import flash.utils.ByteArray; 13 | 14 | public class ImagesDemoServer extends Sprite 15 | { 16 | 17 | private var server:AIRServer; 18 | private var ldr:Loader; 19 | 20 | public function ImagesDemoServer() 21 | { 22 | stage.align = StageAlign.TOP_LEFT; 23 | stage.scaleMode = StageScaleMode.NO_SCALE; 24 | stage.nativeWindow.visible = true; 25 | 26 | ldr = new Loader(); 27 | addChild(ldr); 28 | 29 | server = new AIRServer(); 30 | server.addEndPoint(new SocketEndPoint(1234, new AMFSocketClientHandlerFactory())); 31 | server.addEventListener(MessageReceivedEvent.MESSAGE_RECEIVED, messageReceivedHandler, false, 0, true); 32 | server.start(); 33 | } 34 | 35 | protected function messageReceivedHandler(event:MessageReceivedEvent):void 36 | { 37 | switch(event.message.command) 38 | { 39 | case "IMAGE": 40 | var jpgBytes:ByteArray = event.message.data; 41 | ldr.loadBytes(jpgBytes); 42 | break; 43 | } 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientSocket/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/Library.as: -------------------------------------------------------------------------------- 1 | package 2 | { 3 | import fonts.*; 4 | 5 | import pngs.*; 6 | 7 | public class Library 8 | { 9 | 10 | public static const Silom:Class = fonts.FontSilom; 11 | public static const GillSans:Class = fonts.FontGillSansStd; 12 | 13 | public static const ScoreCountdown:Class = pngs.Extscorecountdown; 14 | public static const Background:Class = pngs.Extgameinterfacebackground; 15 | public static const Auto:Class = pngs.Extgameinterfaceauto; 16 | public static const OntstopperGreen:Class = pngs.Extgameinterfaceontstoppergreen; 17 | public static const VliegtuigGreen:Class = pngs.Extgameinterfacevliegtuiggreen; 18 | public static const MotorGreen:Class = pngs.Extgameinterfacemotorgreen; 19 | public static const OntstopperRed:Class = pngs.Extgameinterfaceontstopperred; 20 | public static const VliegtuigRed:Class = pngs.Extgameinterfacevliegtuigred; 21 | public static const MotorRed:Class = pngs.Extgameinterfacemotorred; 22 | public static const Meteor1:Class = pngs.ExtgameinterfacemeteorOne; 23 | public static const Meteor2:Class = pngs.ExtgameinterfacemeteorTwo; 24 | public static const Bird:Class = pngs.Extgameinterfacebird; 25 | public static const Ballon:Class = pngs.Extgameinterfaceballon; 26 | public static const Highlight:Class = pngs.Extgameinterfacehighlight; 27 | public static const ScoreLinksBackground:Class = pngs.Extgameinterfacescorelinksbackground; 28 | public static const ScoreRechtsBackground:Class = pngs.Extgameinterfacescorerechtsbackground; 29 | public static const ScoreBoard:Class = pngs.ExtgameinterfaceScoreBoard; 30 | } 31 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/controller/SpaceShipController.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.controller 2 | { 3 | import be.devine.spacegame.SpaceShip; 4 | 5 | import flash.events.EventDispatcher; 6 | 7 | public class SpaceShipController extends EventDispatcher 8 | { 9 | 10 | public static const STATE_WAITING_FOR_CONNECTIONS:String = "waitingForConnections"; 11 | public static const STATE_CALIBRATE:String = "calibrate"; 12 | public static const STATE_COUNTING_DOWN:String = "countingDown"; 13 | public static const STATE_PLAYING:String = "playing"; 14 | public static const STATE_WIN:String = "win"; 15 | public static const STATE_LOSE:String = "lose"; 16 | 17 | public static const CALIBRATED:String = "calibrated"; 18 | public static const DISCONNECTED:String = "disconnected"; 19 | 20 | public var spaceShip:SpaceShip; 21 | public var playerName:String; 22 | 23 | public var calibrated:Boolean; 24 | public var isWinner:Boolean; 25 | 26 | protected var _state:String; 27 | 28 | public function get state():String 29 | { 30 | return _state; 31 | } 32 | 33 | public function set state(value:String):void 34 | { 35 | if(value != _state) 36 | { 37 | _state = value; 38 | stateChanged(); 39 | } 40 | } 41 | 42 | public var shootingEnabled:Boolean = true; 43 | public var steeringEnabled:Boolean = true; 44 | public var engineEnabled:Boolean = true; 45 | 46 | public function SpaceShipController() 47 | { 48 | } 49 | 50 | public function destroy():void 51 | { 52 | } 53 | 54 | protected function stateChanged():void 55 | { 56 | } 57 | 58 | } 59 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameClient/src/Library.as: -------------------------------------------------------------------------------- 1 | package 2 | { 3 | import fonts.FontSilom; 4 | 5 | import pngs.Extbackground; 6 | import pngs.Extcalibratebackground; 7 | import pngs.Extcalibratehorizongreen; 8 | import pngs.Extcalibratehorizonred; 9 | import pngs.Extcalibratelinesgreen; 10 | import pngs.Extcalibratelinesred; 11 | import pngs.Extcalibrateschijf; 12 | import pngs.Extfinishedlose; 13 | import pngs.Extfinishedwin; 14 | import pngs.Extgreen; 15 | import pngs.Extknopbackground; 16 | import pngs.Extplayingbackground; 17 | import pngs.Extred; 18 | 19 | public class Library 20 | { 21 | //FONTS 22 | public static const Silom:Class = fonts.FontSilom; 23 | 24 | //PNGS 25 | public static const Background:Class = pngs.Extbackground; 26 | 27 | public static const CalibrateBackground:Class = pngs.Extcalibratebackground; 28 | public static const CalibrateHorizonGreen:Class = pngs.Extcalibratehorizongreen; 29 | public static const CalibrateHorizonRed:Class = pngs.Extcalibratehorizonred; 30 | public static const CalibrateLinesGreen:Class = pngs.Extcalibratelinesgreen; 31 | public static const CalibrateLinesRed:Class = pngs.Extcalibratelinesred; 32 | public static const CalibrateSchijf:Class = pngs.Extcalibrateschijf; 33 | public static const FinishedLose:Class = pngs.Extfinishedlose; 34 | public static const FinishedWin:Class = pngs.Extfinishedwin; 35 | public static const KnopBackground:Class = pngs.Extknopbackground; 36 | public static const PlayingBackground:Class = pngs.Extplayingbackground; 37 | public static const Red:Class = pngs.Extred; 38 | public static const Green:Class = pngs.Extgreen; 39 | 40 | 41 | } 42 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/happybanana/libraries/project/as3web/view/BasicSprite.as: -------------------------------------------------------------------------------- 1 | package be.happybanana.libraries.project.as3web.view 2 | { 3 | import flash.display.Sprite; 4 | 5 | 6 | public class BasicSprite extends Sprite 7 | { 8 | 9 | protected var objectWidthChanged:Boolean = true; 10 | protected var _objectWidth:Number = 0; 11 | 12 | public function get objectWidth():Number 13 | { 14 | return _objectWidth; 15 | } 16 | 17 | public function set objectWidth(value:Number):void 18 | { 19 | setSize(value, _objectHeight); 20 | } 21 | 22 | protected var objectHeightChanged:Boolean = true; 23 | protected var _objectHeight:Number = 0; 24 | 25 | public function get objectHeight():Number 26 | { 27 | return _objectHeight; 28 | } 29 | 30 | public function set objectHeight(value:Number):void 31 | { 32 | setSize(_objectWidth, value); 33 | } 34 | 35 | public function BasicSprite() 36 | { 37 | } 38 | 39 | /** 40 | * This function updates the dimensions of the Sprite, 41 | * and calls the layout function when the dimensions are updated 42 | */ 43 | public final function setSize(width:Number, height:Number):void 44 | { 45 | if(_objectWidth != width) 46 | { 47 | _objectWidth = width; 48 | objectWidthChanged = true; 49 | } 50 | if(_objectHeight != height) 51 | { 52 | _objectHeight = height; 53 | objectHeightChanged = true; 54 | } 55 | if(objectWidthChanged || objectHeightChanged) 56 | { 57 | layout(); 58 | objectWidthChanged = objectHeightChanged = false; 59 | } 60 | } 61 | 62 | public function layout():void 63 | { 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/endpoints/socket/handlers/amf/AMFSocketClientHandler.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.endpoints.socket.handlers.amf 2 | { 3 | import be.aboutme.airserver.endpoints.socket.handlers.SocketClientHandler; 4 | import be.aboutme.airserver.messages.Message; 5 | import be.aboutme.airserver.messages.serialization.IMessageSerializer; 6 | 7 | import flash.net.Socket; 8 | import flash.utils.ByteArray; 9 | 10 | public class AMFSocketClientHandler extends SocketClientHandler 11 | { 12 | 13 | public function AMFSocketClientHandler(socket:Socket, messageSerializer:IMessageSerializer, crossDomainPolicyXML:XML = null) 14 | { 15 | super(socket, messageSerializer, crossDomainPolicyXML); 16 | } 17 | 18 | override protected function queueMessagesFromSocketBytes():Boolean 19 | { 20 | var readSuccess:Boolean = true; 21 | var input:Object; 22 | while(readSuccess && socketBytes.bytesAvailable > 0) 23 | { 24 | try 25 | { 26 | input = socketBytes.readObject(); 27 | //add decoded messages to read queue 28 | var deserialized:Vector. = messageSerializer.deserialize(input); 29 | for each(var message:Message in deserialized) 30 | { 31 | readQueue.push(message); 32 | } 33 | } 34 | catch(error:Error) 35 | { 36 | readSuccess = false; 37 | socketBytes.position = socketBytes.length; 38 | } 39 | } 40 | return readSuccess; 41 | } 42 | 43 | override public function writeMessage(messageToWrite:Message):void 44 | { 45 | var bytes:ByteArray = new ByteArray(); 46 | bytes.writeObject(messageSerializer.serialize(messageToWrite)); 47 | writeSocketBytes(bytes); 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/controller/SpaceShipKeyboardController.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.controller 2 | { 3 | import be.devine.spacegame.inputSources.keyboard.KeyboardInputSource; 4 | 5 | import flash.events.Event; 6 | import flash.events.KeyboardEvent; 7 | import flash.ui.Keyboard; 8 | 9 | public class SpaceShipKeyboardController extends SpaceShipController 10 | { 11 | 12 | private var keyboardInputSource:KeyboardInputSource; 13 | 14 | public function SpaceShipKeyboardController() 15 | { 16 | keyboardInputSource = KeyboardInputSource.getInstance(); 17 | 18 | keyboardInputSource.addEventListener(KeyboardEvent.KEY_DOWN, handleKeys, false, 0, true); 19 | keyboardInputSource.addEventListener(KeyboardEvent.KEY_UP, handleKeys, false, 0, true); 20 | } 21 | 22 | private function handleKeys(event:Event):void 23 | { 24 | if(keyboardInputSource.isDown(Keyboard.SHIFT)) 25 | { 26 | calibrated = true; 27 | dispatchEvent(new Event(CALIBRATED)); 28 | } 29 | if(spaceShip != null) 30 | { 31 | if(steeringEnabled) 32 | { 33 | if(keyboardInputSource.isDown(Keyboard.LEFT)) spaceShip.steering += -5; 34 | else if(keyboardInputSource.isDown(Keyboard.RIGHT)) spaceShip.steering += 5; 35 | //else spaceShip.steering = 0; 36 | } 37 | else 38 | { 39 | //spaceShip.steering = 0; 40 | } 41 | if(engineEnabled) 42 | { 43 | if(keyboardInputSource.isDown(Keyboard.UP)) spaceShip.engine = 1; 44 | else if(keyboardInputSource.isDown(Keyboard.DOWN)) spaceShip.engine = -1; 45 | else spaceShip.engine = 0; 46 | } 47 | else 48 | { 49 | spaceShip.engine = 0; 50 | } 51 | if(shootingEnabled) 52 | { 53 | if(keyboardInputSource.isDown(Keyboard.SPACE)) spaceShip.shoot(); 54 | } 55 | } 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/inputSources/keyboard/KeyboardInputSource.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.inputSources.keyboard 2 | { 3 | import flash.display.Stage; 4 | import flash.events.EventDispatcher; 5 | import flash.events.KeyboardEvent; 6 | 7 | public class KeyboardInputSource extends EventDispatcher 8 | { 9 | 10 | private static var instance:KeyboardInputSource; 11 | 12 | public static function getInstance():KeyboardInputSource 13 | { 14 | if(instance == null) 15 | { 16 | instance = new KeyboardInputSource(new Enforcer()); 17 | } 18 | return instance; 19 | } 20 | 21 | private var initialized:Boolean; 22 | 23 | private var keysDown:Array; 24 | 25 | public function KeyboardInputSource(enforcer:Enforcer) 26 | { 27 | if(enforcer == null) 28 | { 29 | throw new Error("KeyboardInputSource is a Singleton and cannot be instantiated"); 30 | } 31 | keysDown = []; 32 | } 33 | 34 | public function init(stage:Stage):void 35 | { 36 | if(!initialized) 37 | { 38 | initialized = true; 39 | stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler); 40 | stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler); 41 | } 42 | } 43 | 44 | private function keyDownHandler(event:KeyboardEvent):void 45 | { 46 | if(keysDown.indexOf(event.keyCode) == -1) 47 | { 48 | keysDown.push(event.keyCode); 49 | } 50 | dispatchEvent(event); 51 | } 52 | 53 | private function keyUpHandler(event:KeyboardEvent):void 54 | { 55 | var index:int = keysDown.indexOf(event.keyCode); 56 | if(index > -1) 57 | { 58 | keysDown.splice(index, 1); 59 | } 60 | dispatchEvent(event); 61 | } 62 | 63 | public function isDown(keyCode:uint):Boolean 64 | { 65 | return (keysDown.indexOf(keyCode) > -1); 66 | } 67 | } 68 | } 69 | internal class Enforcer{}; -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/fileformats/vcard/Email.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | public class Email 35 | { 36 | public var type:String; 37 | public var address:String; 38 | } 39 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/fileformats/vcard/Phone.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | public class Phone 35 | { 36 | public var type:String; 37 | public var number:String; 38 | } 39 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/fileformats/vcard/Email.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | public class Email 35 | { 36 | public var type:String; 37 | public var address:String; 38 | } 39 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/fileformats/vcard/Phone.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | public class Phone 35 | { 36 | public var type:String; 37 | public var number:String; 38 | } 39 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/images/BitString.as: -------------------------------------------------------------------------------- 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 | package com.adobe.images 33 | { 34 | public class BitString 35 | { 36 | public var len:int = 0; 37 | public var val:int = 0; 38 | } 39 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/images/BitString.as: -------------------------------------------------------------------------------- 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 | package com.adobe.images 33 | { 34 | public class BitString 35 | { 36 | public var len:int = 0; 37 | public var val:int = 0; 38 | } 39 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /demos/basic/server/MessagesDemoServer/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientUDP/.actionScriptProperties: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/messages/serialization/JSONSerializer.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver.messages.serialization 2 | { 3 | import be.aboutme.airserver.messages.Message; 4 | 5 | import by.blooddy.crypto.serialization.JSON; 6 | 7 | import flash.system.ApplicationDomain; 8 | import flash.utils.getDefinitionByName; 9 | 10 | public class JSONSerializer implements IMessageSerializer 11 | { 12 | 13 | private var encodeMethod:Function; 14 | private var decodeMethod:Function; 15 | 16 | protected var messageDelimiter:String; 17 | 18 | public function JSONSerializer(messageDelimiter:String = "\n") 19 | { 20 | this.messageDelimiter = messageDelimiter; 21 | //check if native JSON is supported 22 | if(ApplicationDomain.currentDomain.hasDefinition("JSON")) 23 | { 24 | encodeMethod = getDefinitionByName("JSON").stringify; 25 | decodeMethod = getDefinitionByName("JSON").parse; 26 | } 27 | else 28 | { 29 | encodeMethod = by.blooddy.crypto.serialization.JSON.encode; 30 | decodeMethod = by.blooddy.crypto.serialization.JSON.decode; 31 | } 32 | } 33 | 34 | public function serialize(message:Message):* 35 | { 36 | return encodeMethod(message); 37 | } 38 | 39 | public function deserialize(serialized:*):Vector. 40 | { 41 | var split:Array = serialized.split(messageDelimiter); 42 | var messages:Vector. = new Vector.(); 43 | for each(var input:String in split) 44 | { 45 | if(input.length > 0) 46 | { 47 | var decoded:Object = decodeMethod(input); 48 | var message:Message = new Message(); 49 | if(decoded.hasOwnProperty("senderId")) message.senderId = decoded.senderId; 50 | if(decoded.hasOwnProperty("command")) message.command = decoded.command; 51 | if(decoded.hasOwnProperty("data")) message.data = decoded.data; 52 | else message.data = decoded; 53 | messages.push(message); 54 | } 55 | } 56 | return messages; 57 | } 58 | } 59 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/Main.as: -------------------------------------------------------------------------------- 1 | package 2 | { 3 | import be.devine.spacegame.SpaceGame; 4 | import be.devine.spacegame.inputSources.keyboard.KeyboardInputSource; 5 | import be.happybanana.libraries.project.as3web.view.BasicSprite; 6 | 7 | import flash.display.NativeWindow; 8 | import flash.display.Sprite; 9 | import flash.display.Stage; 10 | import flash.display.StageAlign; 11 | import flash.display.StageScaleMode; 12 | import flash.events.Event; 13 | import flash.text.Font; 14 | 15 | [SWF(backgroundColor="#000000")] 16 | public class Main extends Sprite 17 | { 18 | 19 | private var app:BasicSprite; 20 | 21 | public function Main() 22 | { 23 | init(); 24 | } 25 | 26 | private function init(event:Event = null):void 27 | { 28 | removeEventListener(Event.ADDED_TO_STAGE, init); 29 | if(stage != null) 30 | { 31 | if(this.parent is Stage) 32 | { 33 | stage.align = StageAlign.TOP_LEFT; 34 | stage.scaleMode = StageScaleMode.NO_SCALE; 35 | 36 | KeyboardInputSource.getInstance().init(stage); 37 | 38 | if(NativeWindow.isSupported) 39 | { 40 | stage.nativeWindow.visible = true; 41 | stage.nativeWindow.width = 1024; 42 | stage.nativeWindow.height = 768; 43 | stage.nativeWindow.x = 0; 44 | stage.nativeWindow.y = 0; 45 | } 46 | 47 | startApplication(); 48 | 49 | stage.addEventListener(Event.RESIZE, resizeHandler, false, 0, true); 50 | layout(); 51 | } 52 | } 53 | else 54 | { 55 | addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); 56 | } 57 | } 58 | 59 | private function startApplication():void 60 | { 61 | app = new SpaceGame(); 62 | addChild(app); 63 | } 64 | 65 | private function resizeHandler(event:Event):void 66 | { 67 | layout(); 68 | } 69 | 70 | private function layout():void 71 | { 72 | app.setSize(1024, 768); 73 | app.x = Math.round((stage.stageWidth - app.width) * .5); 74 | } 75 | } 76 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/ServiceBase.as: -------------------------------------------------------------------------------- 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 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/ServiceBase.as: -------------------------------------------------------------------------------- 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 | } -------------------------------------------------------------------------------- /demos/basic/clients/MessagesDemoClientCocoonP2P/src/MessagesDemoClientCocoonP2P.mxml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | " + event.message.data.data + "\n"); 43 | } 44 | 45 | ]]> 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/flickr/ContentType.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Constants for the type of a photo for uploading. 34 | */ 35 | public class ContentType { 36 | 37 | public static const DEFAULT:int = 0; 38 | 39 | public static const PHOTO:int = 1; 40 | 41 | public static const SCREENSHOT:int = 2; 42 | 43 | public static const OTHER:int = 3; 44 | 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/flickr/ContentType.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Constants for the type of a photo for uploading. 34 | */ 35 | public class ContentType { 36 | 37 | public static const DEFAULT:int = 0; 38 | 39 | public static const PHOTO:int = 1; 40 | 41 | public static const SCREENSHOT:int = 2; 42 | 43 | public static const OTHER:int = 3; 44 | 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/fileformats/vcard/Address.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | public class Address 35 | { 36 | public var type:String; 37 | public var street:String; 38 | public var city:String; 39 | public var state:String; 40 | public var postalCode:String; 41 | 42 | public function toString():String 43 | { 44 | return (street + " " + city + ", " + state + " " + postalCode); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/flickr/SafetyLevel.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Constants for the safety level of a photo for uploading. 34 | */ 35 | public class SafetyLevel { 36 | 37 | public static const DEFAULT:int = 0; 38 | 39 | public static const SAFE:int = 1; 40 | 41 | public static const MODERATE:int = 2; 42 | 43 | public static const RESTRICTED:int = 3; 44 | 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/flickr/SafetyLevel.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Constants for the safety level of a photo for uploading. 34 | */ 35 | public class SafetyLevel { 36 | 37 | public static const DEFAULT:int = 0; 38 | 39 | public static const SAFE:int = 1; 40 | 41 | public static const MODERATE:int = 2; 42 | 43 | public static const RESTRICTED:int = 3; 44 | 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/fileformats/vcard/Address.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | public class Address 35 | { 36 | public var type:String; 37 | public var street:String; 38 | public var city:String; 39 | public var state:String; 40 | public var postalCode:String; 41 | 42 | public function toString():String 43 | { 44 | return (street + " " + city + ", " + state + " " + postalCode); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/flickr/Permission.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Constants for setting permission of a photo - who can comment 34 | * and add meta data to the photo and it's notes. 35 | */ 36 | public class Permission { 37 | 38 | public static const ONLY_OWNER:int = 0; 39 | 40 | public static const FRIENDS_AND_FAMILY:int = 1; 41 | 42 | public static const CONTACTS:int = 2; 43 | 44 | public static const EVERYBODY:int = 3; 45 | 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/flickr/Permission.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Constants for setting permission of a photo - who can comment 34 | * and add meta data to the photo and it's notes. 35 | */ 36 | public class Permission { 37 | 38 | public static const ONLY_OWNER:int = 0; 39 | 40 | public static const FRIENDS_AND_FAMILY:int = 1; 41 | 42 | public static const CONTACTS:int = 2; 43 | 44 | public static const EVERYBODY:int = 3; 45 | 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/fileformats/vcard/VCard.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | import flash.utils.ByteArray; 35 | 36 | public class VCard 37 | { 38 | public var fullName:String; 39 | public var orgs:Array; 40 | public var title:String; 41 | public var image:ByteArray; 42 | public var phones:Array; 43 | public var emails:Array; 44 | public var addresses:Array; 45 | 46 | public function VCard() 47 | { 48 | orgs = new Array(); 49 | phones = new Array(); 50 | emails = new Array(); 51 | addresses = new Array(); 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/fileformats/vcard/VCard.as: -------------------------------------------------------------------------------- 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 | package com.adobe.fileformats.vcard 33 | { 34 | import flash.utils.ByteArray; 35 | 36 | public class VCard 37 | { 38 | public var fullName:String; 39 | public var orgs:Array; 40 | public var title:String; 41 | public var image:ByteArray; 42 | public var phones:Array; 43 | public var emails:Array; 44 | public var addresses:Array; 45 | 46 | public function VCard() 47 | { 48 | orgs = new Array(); 49 | phones = new Array(); 50 | emails = new Array(); 51 | addresses = new Array(); 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /demos/spacegame/SpaceGameServer/src/be/devine/spacegame/background/BackgroundItem.as: -------------------------------------------------------------------------------- 1 | package be.devine.spacegame.background 2 | { 3 | import be.happybanana.libraries.project.as3web.view.BasicSprite; 4 | 5 | import com.greensock.TweenLite; 6 | import com.greensock.easing.Linear; 7 | 8 | import flash.display.Bitmap; 9 | import flash.display.DisplayObject; 10 | 11 | public class BackgroundItem extends BasicSprite 12 | { 13 | 14 | private var counter:uint; 15 | private var itemList:Vector.; 16 | private var asset:DisplayObject; 17 | 18 | public function BackgroundItem(itemList:Vector.) 19 | { 20 | this.itemList = itemList; 21 | } 22 | 23 | public function reset():void 24 | { 25 | if(asset != null) 26 | { 27 | asset.parent.removeChild(asset); 28 | asset = null; 29 | } 30 | TweenLite.killTweensOf(this); 31 | TweenLite.delayedCall(0, delayedStart); 32 | } 33 | 34 | public function delayedStart():void 35 | { 36 | //create the asset 37 | asset = new itemList[counter % itemList.length](); 38 | if(asset is Bitmap) (asset as Bitmap).smoothing = true; 39 | addChild(asset); 40 | 41 | var directionX:int = (Math.random() > 0.5) ? 1 : -1; 42 | var directionY:int = (Math.random() > 0.5) ? 1 : -1; 43 | 44 | if(asset is Auto) 45 | { 46 | directionX = 1; 47 | } 48 | else if(asset is Ballon) 49 | { 50 | directionX = 1; 51 | directionY = -1; 52 | } 53 | 54 | var startX:Number = _objectWidth * .5 * -directionX; 55 | var startY:Number = _objectHeight * .5 * -directionY * Math.random(); 56 | 57 | if(asset is Ballon) 58 | { 59 | startX += _objectWidth * Math.random(); 60 | startY = _objectHeight * .5; 61 | } 62 | 63 | var targetX:Number = _objectWidth * .5 * directionX; 64 | var targetY:Number = _objectHeight * .5 * directionY * Math.random(); 65 | 66 | if(asset is Auto) targetY = startY; 67 | else if(asset is Ballon) 68 | { 69 | targetX = startX; 70 | targetY = _objectHeight * -.5; 71 | } 72 | 73 | asset.x = startX; 74 | asset.y = startY; 75 | //var duration:Number = 20 + Math.random() * 10; 76 | var duration:Number = 20; 77 | TweenLite.to(asset, duration, {x: targetX, y: targetY, ease: Linear.easeNone, onComplete: reset}); 78 | counter++; 79 | } 80 | } 81 | } -------------------------------------------------------------------------------- /library/AIRServer/src/be/aboutme/airserver/Client.as: -------------------------------------------------------------------------------- 1 | package be.aboutme.airserver 2 | { 3 | import be.aboutme.airserver.endpoints.IClientHandler; 4 | import be.aboutme.airserver.events.MessageReceivedEvent; 5 | import be.aboutme.airserver.events.MessagesAvailableEvent; 6 | import be.aboutme.airserver.messages.Message; 7 | 8 | import flash.events.Event; 9 | import flash.events.EventDispatcher; 10 | 11 | [Event(name="messageReceived", type="be.aboutme.airserver.events.MessageReceivedEvent")] 12 | [Event(name="close", type="flash.events.Event")] 13 | public class Client extends EventDispatcher 14 | { 15 | 16 | private var _id:uint; 17 | 18 | public function get id():uint 19 | { 20 | return _id; 21 | } 22 | 23 | private var closed:Boolean; 24 | private var clientHandler:IClientHandler; 25 | 26 | public function Client(id:uint, clientHandler:IClientHandler) 27 | { 28 | this._id = id; 29 | this.clientHandler = clientHandler; 30 | 31 | clientHandler.addEventListener(Event.CLOSE, closeHandler, false, 0, true); 32 | clientHandler.addEventListener(MessagesAvailableEvent.MESSAGES_AVAILABLE, messagesAvailableHandler, false, 0, true); 33 | } 34 | 35 | private function messagesAvailableHandler(event:MessagesAvailableEvent):void 36 | { 37 | while(clientHandler.messagesAvailable) 38 | { 39 | var message:Message = clientHandler.readMessage(); 40 | if(message != null) 41 | { 42 | message.senderId = this.id; 43 | dispatchEvent(new MessageReceivedEvent(MessageReceivedEvent.MESSAGE_RECEIVED, message)); 44 | } 45 | } 46 | } 47 | 48 | public function sendMessage(message:Message):void 49 | { 50 | clientHandler.writeMessage(message); 51 | } 52 | 53 | public function close():void 54 | { 55 | if(!closed) 56 | { 57 | closed = true; 58 | 59 | clientHandler.removeEventListener(Event.CLOSE, closeHandler); 60 | clientHandler.removeEventListener(MessagesAvailableEvent.MESSAGES_AVAILABLE, messagesAvailableHandler); 61 | clientHandler.close(); 62 | 63 | dispatchEvent(new Event(Event.CLOSE)); 64 | } 65 | } 66 | 67 | private function closeHandler(event:Event):void 68 | { 69 | close(); 70 | } 71 | 72 | override public function toString():String 73 | { 74 | return "[Client, " + clientHandler + "]"; 75 | } 76 | } 77 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/events/NoMatchEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class NoMatchEvent extends Event 38 | { 39 | public static const NO_MATCH:String = "noMatch"; 40 | 41 | public function NoMatchEvent(type:String, bubbles:Boolean = false, 42 | cancelable:Boolean = false) 43 | { 44 | super(type, bubbles, cancelable); 45 | } 46 | 47 | public override function clone():Event 48 | { 49 | var out:NoMatchEvent = new NoMatchEvent(type, bubbles, cancelable); 50 | 51 | return out; 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/flickr/flickrservice_internal.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Because of the directory structure (having a methodgroups package 34 | * where the classes in there are really "Friends" of the FlickrService 35 | * class), we can't use the "internal" modifier to hide methods from 36 | * the public API. Thus, in order to provide the helper classes in the 37 | * methodGroup package access to this class, we create a special 38 | * namespace to use as a method modifier. 39 | */ 40 | public namespace flickrservice_internal = "http://www.macromedia.com/webapis/flickr/internal"; 41 | 42 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/events/ConnectedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class ConnectedEvent extends Event 38 | { 39 | public static const CONNECTED:String = "connected"; 40 | 41 | public function ConnectedEvent(type:String, bubbles:Boolean = false, 42 | cancelable:Boolean = false) 43 | { 44 | super(type, bubbles, cancelable); 45 | } 46 | 47 | public override function clone():Event 48 | { 49 | var out:ConnectedEvent = new ConnectedEvent(type, bubbles, cancelable); 50 | return out; 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/events/NoMatchEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class NoMatchEvent extends Event 38 | { 39 | public static const NO_MATCH:String = "noMatch"; 40 | 41 | public function NoMatchEvent(type:String, bubbles:Boolean = false, 42 | cancelable:Boolean = false) 43 | { 44 | super(type, bubbles, cancelable); 45 | } 46 | 47 | public override function clone():Event 48 | { 49 | var out:NoMatchEvent = new NoMatchEvent(type, bubbles, cancelable); 50 | 51 | return out; 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/flickr/flickrservice_internal.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * Because of the directory structure (having a methodgroups package 34 | * where the classes in there are really "Friends" of the FlickrService 35 | * class), we can't use the "internal" modifier to hide methods from 36 | * the public API. Thus, in order to provide the helper classes in the 37 | * methodGroup package access to this class, we create a special 38 | * namespace to use as a method modifier. 39 | */ 40 | public namespace flickrservice_internal = "http://www.macromedia.com/webapis/flickr/internal"; 41 | 42 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/events/ConnectedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class ConnectedEvent extends Event 38 | { 39 | public static const CONNECTED:String = "connected"; 40 | 41 | public function ConnectedEvent(type:String, bubbles:Boolean = false, 42 | cancelable:Boolean = false) 43 | { 44 | super(type, bubbles, cancelable); 45 | } 46 | 47 | public override function clone():Event 48 | { 49 | var out:ConnectedEvent = new ConnectedEvent(type, bubbles, cancelable); 50 | return out; 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/flickr/authorization/FlickrAuthorizationSettings.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr.authorization 31 | { 32 | public class FlickrAuthorizationSettings 33 | { 34 | //Flickr API Key for application 35 | public var flickrAPIKey:String = ""; 36 | 37 | //Flickr API Secret for application 38 | public var flickrAPISecret:String = ""; 39 | 40 | //Flickr Authorization token to all the application to access users 41 | //account 42 | public var authToken:String; 43 | 44 | //The Flickr account name that the application has permission to access 45 | public var accountName:String; 46 | 47 | public function FlickrAuthorizationSettings() 48 | { 49 | } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/flickr/authorization/FlickrAuthorizationSettings.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr.authorization 31 | { 32 | public class FlickrAuthorizationSettings 33 | { 34 | //Flickr API Key for application 35 | public var flickrAPIKey:String = ""; 36 | 37 | //Flickr API Secret for application 38 | public var flickrAPISecret:String = ""; 39 | 40 | //Flickr Authorization token to all the application to access users 41 | //account 42 | public var authToken:String; 43 | 44 | //The Flickr account name that the application has permission to access 45 | public var accountName:String; 46 | 47 | public function FlickrAuthorizationSettings() 48 | { 49 | } 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/DictionaryServer.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class DictionaryServer 36 | { 37 | private var _server:String; 38 | private var _description:String; 39 | 40 | public function set server(server:String):void 41 | { 42 | this._server = server; 43 | } 44 | 45 | public function get server():String 46 | { 47 | return this._server; 48 | } 49 | 50 | public function set description(description:String):void 51 | { 52 | this._description = description; 53 | } 54 | 55 | public function get description():String 56 | { 57 | return this._description; 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/events/DisconnectedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class DisconnectedEvent extends Event 38 | { 39 | public static const DISCONNECTED:String = "disconnected"; 40 | 41 | public function DisconnectedEvent(type:String, bubbles:Boolean = false, 42 | cancelable:Boolean = false) 43 | { 44 | super(type, bubbles, cancelable); 45 | } 46 | 47 | public override function clone():Event 48 | { 49 | var out:DisconnectedEvent = new DisconnectedEvent(type, bubbles, cancelable); 50 | 51 | return out; 52 | } 53 | 54 | } 55 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/DictionaryServer.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class DictionaryServer 36 | { 37 | private var _server:String; 38 | private var _description:String; 39 | 40 | public function set server(server:String):void 41 | { 42 | this._server = server; 43 | } 44 | 45 | public function get server():String 46 | { 47 | return this._server; 48 | } 49 | 50 | public function set description(description:String):void 51 | { 52 | this._description = description; 53 | } 54 | 55 | public function get description():String 56 | { 57 | return this._description; 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/events/DisconnectedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class DisconnectedEvent extends Event 38 | { 39 | public static const DISCONNECTED:String = "disconnected"; 40 | 41 | public function DisconnectedEvent(type:String, bubbles:Boolean = false, 42 | cancelable:Boolean = false) 43 | { 44 | super(type, bubbles, cancelable); 45 | } 46 | 47 | public override function clone():Event 48 | { 49 | var out:DisconnectedEvent = new DisconnectedEvent(type, bubbles, cancelable); 50 | 51 | return out; 52 | } 53 | 54 | } 55 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/net/DynamicURLLoader.as: -------------------------------------------------------------------------------- 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.net 34 | { 35 | import flash.net.URLLoader; 36 | 37 | /** 38 | * Class that provides a dynamic implimentation of the URLLoader class. 39 | * 40 | * This class provides no API implimentations. However, since the class is 41 | * declared as dynamic, it can be used in place of URLLoader, and allow 42 | * you to dynamically attach properties to it (which URLLoader does not allow). 43 | * 44 | * @langversion ActionScript 3.0 45 | * @playerversion Flash 9.0 46 | * @tiptext 47 | */ 48 | public dynamic class DynamicURLLoader extends URLLoader 49 | { 50 | public function DynamicURLLoader() 51 | { 52 | super(); 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/flickr/authorization/events/AuthorizationEvent.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | 31 | package com.adobe.webapis.flickr.authorization.events 32 | { 33 | import com.adobe.webapis.flickr.User; 34 | 35 | import flash.events.Event; 36 | 37 | //Event class for Authorization related events. 38 | public class AuthorizationEvent extends Event 39 | { 40 | //Broadcast when the Authorization Panel requests that the Settings 41 | //pabel be displayed. 42 | public static const AUTHORIZATION_COMPLETE:String = "onAuthorizationComplete"; 43 | 44 | public var authToken:String; 45 | public var user:User; 46 | 47 | public function AuthorizationEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 48 | { 49 | super(type, bubbles, cancelable); 50 | } 51 | 52 | } 53 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/net/DynamicURLLoader.as: -------------------------------------------------------------------------------- 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.net 34 | { 35 | import flash.net.URLLoader; 36 | 37 | /** 38 | * Class that provides a dynamic implimentation of the URLLoader class. 39 | * 40 | * This class provides no API implimentations. However, since the class is 41 | * declared as dynamic, it can be used in place of URLLoader, and allow 42 | * you to dynamically attach properties to it (which URLLoader does not allow). 43 | * 44 | * @langversion ActionScript 3.0 45 | * @playerversion Flash 9.0 46 | * @tiptext 47 | */ 48 | public dynamic class DynamicURLLoader extends URLLoader 49 | { 50 | public function DynamicURLLoader() 51 | { 52 | super(); 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/air/filesystem/FileUtil.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.air.filesystem 34 | { 35 | import flash.system.Capabilities; 36 | import flash.filesystem.File; 37 | 38 | 39 | public class FileUtil 40 | { 41 | /** 42 | * @return An Array of Files representing the root directories of the 43 | * operating system. 44 | */ 45 | public static function getRootDirectories():Array 46 | { 47 | var v:Array = File.getRootDirectories(); 48 | var os:String = Capabilities.os; 49 | 50 | if(os.indexOf("Mac") > -1) 51 | { 52 | v = File(v[0]).resolvePath("Volumes").getDirectoryListing(); 53 | } 54 | else if(os.indexOf("Linux") > -1) 55 | { 56 | //todo: need to impliment Linux 57 | } 58 | 59 | return v; 60 | } 61 | 62 | } 63 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/air/filesystem/FileUtil.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.air.filesystem 34 | { 35 | import flash.system.Capabilities; 36 | import flash.filesystem.File; 37 | 38 | 39 | public class FileUtil 40 | { 41 | /** 42 | * @return An Array of Files representing the root directories of the 43 | * operating system. 44 | */ 45 | public static function getRootDirectories():Array 46 | { 47 | var v:Array = File.getRootDirectories(); 48 | var os:String = Capabilities.os; 49 | 50 | if(os.indexOf("Mac") > -1) 51 | { 52 | v = File(v[0]).resolvePath("Volumes").getDirectoryListing(); 53 | } 54 | else if(os.indexOf("Linux") > -1) 55 | { 56 | //todo: need to impliment Linux 57 | } 58 | 59 | return v; 60 | } 61 | 62 | } 63 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/flickr/authorization/events/AuthorizationEvent.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | 31 | package com.adobe.webapis.flickr.authorization.events 32 | { 33 | import com.adobe.webapis.flickr.User; 34 | 35 | import flash.events.Event; 36 | 37 | //Event class for Authorization related events. 38 | public class AuthorizationEvent extends Event 39 | { 40 | //Broadcast when the Authorization Panel requests that the Settings 41 | //pabel be displayed. 42 | public static const AUTHORIZATION_COMPLETE:String = "onAuthorizationComplete"; 43 | 44 | public var authToken:String; 45 | public var user:User; 46 | 47 | public function AuthorizationEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 48 | { 49 | super(type, bubbles, cancelable); 50 | } 51 | 52 | } 53 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/Database.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class Database 36 | { 37 | private var _name:String; 38 | private var _description:String; 39 | 40 | public function Database(name:String, description:String) 41 | { 42 | this._name = name; 43 | this._description = description; 44 | } 45 | 46 | public function set name(name:String):void 47 | { 48 | this._name = name; 49 | } 50 | 51 | public function get name():String 52 | { 53 | return this._name; 54 | } 55 | 56 | public function set description(description:String):void 57 | { 58 | this._description = description; 59 | } 60 | 61 | public function get description():String 62 | { 63 | return this._description; 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/Database.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class Database 36 | { 37 | private var _name:String; 38 | private var _description:String; 39 | 40 | public function Database(name:String, description:String) 41 | { 42 | this._name = name; 43 | this._description = description; 44 | } 45 | 46 | public function set name(name:String):void 47 | { 48 | this._name = name; 49 | } 50 | 51 | public function get name():String 52 | { 53 | return this._name; 54 | } 55 | 56 | public function set description(description:String):void 57 | { 58 | this._description = description; 59 | } 60 | 61 | public function get description():String 62 | { 63 | return this._description; 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/MatchStrategy.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class MatchStrategy 36 | { 37 | private var _name:String; 38 | private var _description:String; 39 | 40 | public function MatchStrategy(name:String, description:String) 41 | { 42 | this._name = name; 43 | this._description = description; 44 | } 45 | 46 | public function set name(name:String):void 47 | { 48 | this._name = name; 49 | } 50 | 51 | public function get name():String 52 | { 53 | return this._name; 54 | } 55 | 56 | public function set description(description:String):void 57 | { 58 | this._description = description; 59 | } 60 | 61 | public function get description():String 62 | { 63 | return this._description; 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/MatchStrategy.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class MatchStrategy 36 | { 37 | private var _name:String; 38 | private var _description:String; 39 | 40 | public function MatchStrategy(name:String, description:String) 41 | { 42 | this._name = name; 43 | this._description = description; 44 | } 45 | 46 | public function set name(name:String):void 47 | { 48 | this._name = name; 49 | } 50 | 51 | public function get name():String 52 | { 53 | return this._name; 54 | } 55 | 56 | public function set description(description:String):void 57 | { 58 | this._description = description; 59 | } 60 | 61 | public function get description():String 62 | { 63 | return this._description; 64 | } 65 | } 66 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/Response.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class Response 36 | { 37 | private var _code:uint; 38 | private var _headerText:String; 39 | private var _body:String; 40 | 41 | public function set code(code:uint):void 42 | { 43 | this._code = code; 44 | } 45 | 46 | public function set headerText(headerText:String):void 47 | { 48 | this._headerText = headerText; 49 | } 50 | 51 | public function set body(body:String):void 52 | { 53 | this._body = body; 54 | } 55 | 56 | public function get code():uint 57 | { 58 | return this._code; 59 | } 60 | 61 | public function get headerText():String 62 | { 63 | return this._headerText; 64 | } 65 | 66 | public function get body():String 67 | { 68 | return this._body; 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/webapis/flickr/AuthPerm.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * A class containing static members to be used for authentication 34 | * permission when authenticating against flickr.com, describing 35 | * the permission the application has on the logged in user's account. 36 | */ 37 | public class AuthPerm { 38 | 39 | /** Permission to read private information */ 40 | public static const READ:String = "read"; 41 | 42 | /** Permission to add, edit and delete photo metadata (includes READ) */ 43 | public static const WRITE:String = "write"; 44 | 45 | /** Permission to delete photos (includes WRITE and READ) */ 46 | public static const DELETE:String = "delete"; 47 | 48 | /** No permission to do anything ( not authenticated ) */ 49 | public static const NONE:String = "none"; 50 | 51 | } 52 | 53 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/Response.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class Response 36 | { 37 | private var _code:uint; 38 | private var _headerText:String; 39 | private var _body:String; 40 | 41 | public function set code(code:uint):void 42 | { 43 | this._code = code; 44 | } 45 | 46 | public function set headerText(headerText:String):void 47 | { 48 | this._headerText = headerText; 49 | } 50 | 51 | public function set body(body:String):void 52 | { 53 | this._body = body; 54 | } 55 | 56 | public function get code():uint 57 | { 58 | return this._code; 59 | } 60 | 61 | public function get headerText():String 62 | { 63 | return this._headerText; 64 | } 65 | 66 | public function get body():String 67 | { 68 | return this._body; 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/webapis/flickr/AuthPerm.as: -------------------------------------------------------------------------------- 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 met: 7 | 8 | * Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the 12 | documentation and/or other materials provided with the distribution. 13 | * Neither the name of Adobe Systems Incorporated nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 21 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 | POSSIBILITY OF SUCH DAMAGE. 28 | */ 29 | 30 | package com.adobe.webapis.flickr { 31 | 32 | /** 33 | * A class containing static members to be used for authentication 34 | * permission when authenticating against flickr.com, describing 35 | * the permission the application has on the logged in user's account. 36 | */ 37 | public class AuthPerm { 38 | 39 | /** Permission to read private information */ 40 | public static const READ:String = "read"; 41 | 42 | /** Permission to add, edit and delete photo metadata (includes READ) */ 43 | public static const WRITE:String = "write"; 44 | 45 | /** Permission to delete photos (includes WRITE and READ) */ 46 | public static const DELETE:String = "delete"; 47 | 48 | /** No permission to do anything ( not authenticated ) */ 49 | public static const NONE:String = "none"; 50 | 51 | } 52 | 53 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/errors/IllegalStateError.as: -------------------------------------------------------------------------------- 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.errors 34 | { 35 | /** 36 | * This class represents an Error that is thrown when a method is called when 37 | * the receiving instance is in an invalid state. 38 | * 39 | * For example, this may occur if a method has been called, and other properties 40 | * in the instance have not been initialized properly. 41 | * 42 | * @langversion ActionScript 3.0 43 | * @playerversion Flash 9.0 44 | * @tiptext 45 | * 46 | */ 47 | public class IllegalStateError extends Error 48 | { 49 | /** 50 | * Constructor 51 | * 52 | * @param message A message describing the error in detail. 53 | * 54 | * @langversion ActionScript 3.0 55 | * @playerversion Flash 9.0 56 | * @tiptext 57 | */ 58 | public function IllegalStateError(message:String) 59 | { 60 | super(message); 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/errors/IllegalStateError.as: -------------------------------------------------------------------------------- 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.errors 34 | { 35 | /** 36 | * This class represents an Error that is thrown when a method is called when 37 | * the receiving instance is in an invalid state. 38 | * 39 | * For example, this may occur if a method has been called, and other properties 40 | * in the instance have not been initialized properly. 41 | * 42 | * @langversion ActionScript 3.0 43 | * @playerversion Flash 9.0 44 | * @tiptext 45 | * 46 | */ 47 | public class IllegalStateError extends Error 48 | { 49 | /** 50 | * Constructor 51 | * 52 | * @param message A message describing the error in detail. 53 | * 54 | * @langversion ActionScript 3.0 55 | * @playerversion Flash 9.0 56 | * @tiptext 57 | */ 58 | public function IllegalStateError(message:String) 59 | { 60 | super(message); 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/Definition.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class Definition 36 | { 37 | private var _definition:String; 38 | private var _database:String; 39 | private var _term:String; 40 | 41 | public function set definition(definition:String):void 42 | { 43 | this._definition = definition; 44 | } 45 | 46 | public function get definition():String 47 | { 48 | return this._definition; 49 | } 50 | 51 | public function set database(database:String):void 52 | { 53 | this._database = database; 54 | } 55 | 56 | public function get database():String 57 | { 58 | return this._database; 59 | } 60 | 61 | public function set term(term:String):void 62 | { 63 | this._term = term; 64 | } 65 | 66 | public function get term():String 67 | { 68 | return this._term; 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/events/MatchEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class MatchEvent extends Event 38 | { 39 | private var _matches:Array; 40 | 41 | public static const MATCH:String = "match"; 42 | 43 | public function MatchEvent(type:String, bubbles:Boolean = false, 44 | cancelable:Boolean = false) 45 | { 46 | super(type, bubbles, cancelable); 47 | } 48 | 49 | public function set matches(matches:Array):void 50 | { 51 | this._matches = matches; 52 | } 53 | 54 | public function get matches():Array 55 | { 56 | return this._matches; 57 | } 58 | 59 | public override function clone():Event 60 | { 61 | var out:MatchEvent = new MatchEvent(type, bubbles, cancelable); 62 | out.matches = _matches; 63 | 64 | return out; 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/Definition.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict 34 | { 35 | public class Definition 36 | { 37 | private var _definition:String; 38 | private var _database:String; 39 | private var _term:String; 40 | 41 | public function set definition(definition:String):void 42 | { 43 | this._definition = definition; 44 | } 45 | 46 | public function get definition():String 47 | { 48 | return this._definition; 49 | } 50 | 51 | public function set database(database:String):void 52 | { 53 | this._database = database; 54 | } 55 | 56 | public function get database():String 57 | { 58 | return this._database; 59 | } 60 | 61 | public function set term(term:String):void 62 | { 63 | this._term = term; 64 | } 65 | 66 | public function get term():String 67 | { 68 | return this._term; 69 | } 70 | } 71 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/air/filesystem/events/FileMonitorEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.air.filesystem.events 34 | { 35 | import flash.events.Event; 36 | import flash.filesystem.File; 37 | 38 | public class FileMonitorEvent extends Event 39 | { 40 | public static const CHANGE:String = "onFileChange"; 41 | public static const MOVE:String = "onFileMove"; 42 | public static const CREATE:String = "onFileCreate"; 43 | public static const ADD_VOLUME:String = "onVolumeAdd"; 44 | public static const REMOVE_VOLUME:String = "onVolumeRemove"; 45 | 46 | public var file:File; 47 | public function FileMonitorEvent(type:String, bubbles:Boolean=false, 48 | cancelable:Boolean=false) 49 | { 50 | super(type, bubbles, cancelable); 51 | } 52 | 53 | public override function clone():Event 54 | { 55 | var out:FileMonitorEvent = new FileMonitorEvent(type, bubbles, cancelable); 56 | out.file = file; 57 | 58 | return out; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/serialization/json/JSONTokenType.as: -------------------------------------------------------------------------------- 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.serialization.json 34 | { 35 | 36 | /** 37 | * Class containing constant values for the different types 38 | * of tokens in a JSON encoded string. 39 | */ 40 | public final class JSONTokenType 41 | { 42 | public static const UNKNOWN:int = -1; 43 | 44 | public static const COMMA:int = 0; 45 | 46 | public static const LEFT_BRACE:int = 1; 47 | 48 | public static const RIGHT_BRACE:int = 2; 49 | 50 | public static const LEFT_BRACKET:int = 3; 51 | 52 | public static const RIGHT_BRACKET:int = 4; 53 | 54 | public static const COLON:int = 6; 55 | 56 | public static const TRUE:int = 7; 57 | 58 | public static const FALSE:int = 8; 59 | 60 | public static const NULL:int = 9; 61 | 62 | public static const STRING:int = 10; 63 | 64 | public static const NUMBER:int = 11; 65 | 66 | public static const NAN:int = 12; 67 | 68 | } 69 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/protocols/dict/events/MatchEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class MatchEvent extends Event 38 | { 39 | private var _matches:Array; 40 | 41 | public static const MATCH:String = "match"; 42 | 43 | public function MatchEvent(type:String, bubbles:Boolean = false, 44 | cancelable:Boolean = false) 45 | { 46 | super(type, bubbles, cancelable); 47 | } 48 | 49 | public function set matches(matches:Array):void 50 | { 51 | this._matches = matches; 52 | } 53 | 54 | public function get matches():Array 55 | { 56 | return this._matches; 57 | } 58 | 59 | public override function clone():Event 60 | { 61 | var out:MatchEvent = new MatchEvent(type, bubbles, cancelable); 62 | out.matches = _matches; 63 | 64 | return out; 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/serialization/json/JSONTokenType.as: -------------------------------------------------------------------------------- 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.serialization.json 34 | { 35 | 36 | /** 37 | * Class containing constant values for the different types 38 | * of tokens in a JSON encoded string. 39 | */ 40 | public final class JSONTokenType 41 | { 42 | public static const UNKNOWN:int = -1; 43 | 44 | public static const COMMA:int = 0; 45 | 46 | public static const LEFT_BRACE:int = 1; 47 | 48 | public static const RIGHT_BRACE:int = 2; 49 | 50 | public static const LEFT_BRACKET:int = 3; 51 | 52 | public static const RIGHT_BRACKET:int = 4; 53 | 54 | public static const COLON:int = 6; 55 | 56 | public static const TRUE:int = 7; 57 | 58 | public static const FALSE:int = 8; 59 | 60 | public static const NULL:int = 9; 61 | 62 | public static const STRING:int = 10; 63 | 64 | public static const NUMBER:int = 11; 65 | 66 | public static const NAN:int = 12; 67 | 68 | } 69 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/air/filesystem/events/FileMonitorEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.air.filesystem.events 34 | { 35 | import flash.events.Event; 36 | import flash.filesystem.File; 37 | 38 | public class FileMonitorEvent extends Event 39 | { 40 | public static const CHANGE:String = "onFileChange"; 41 | public static const MOVE:String = "onFileMove"; 42 | public static const CREATE:String = "onFileCreate"; 43 | public static const ADD_VOLUME:String = "onVolumeAdd"; 44 | public static const REMOVE_VOLUME:String = "onVolumeRemove"; 45 | 46 | public var file:File; 47 | public function FileMonitorEvent(type:String, bubbles:Boolean=false, 48 | cancelable:Boolean=false) 49 | { 50 | super(type, bubbles, cancelable); 51 | } 52 | 53 | public override function clone():Event 54 | { 55 | var out:FileMonitorEvent = new FileMonitorEvent(type, bubbles, cancelable); 56 | out.file = file; 57 | 58 | return out; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/air/net/events/ResourceCacheEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.air.net.events 34 | { 35 | import flash.events.Event; 36 | import flash.filesystem.File; 37 | 38 | public class ResourceCacheEvent extends Event 39 | { 40 | 41 | public static const ITEM_READY:String = "onPathReady"; 42 | public static const ITEM_CACHED:String = "onItemCached"; 43 | 44 | [Bindable] 45 | public var key:String; 46 | 47 | [Bindable] 48 | public var file:File; 49 | 50 | public function ResourceCacheEvent(type:String, 51 | bubbles:Boolean=false, 52 | cancelable:Boolean=false) 53 | { 54 | super(type, bubbles, cancelable); 55 | } 56 | 57 | public override function clone():Event 58 | { 59 | var out:ResourceCacheEvent = new ResourceCacheEvent(type, 60 | bubbles, 61 | cancelable); 62 | 63 | out.key = key; 64 | out.file = file; 65 | 66 | return out; 67 | } 68 | 69 | } 70 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClient/src/com/adobe/protocols/dict/events/DatabaseEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.protocols.dict.events 34 | { 35 | import flash.events.Event; 36 | 37 | public class DatabaseEvent extends Event 38 | { 39 | private var _databases:Array; 40 | 41 | public static const DATABASES:String = "databases"; 42 | 43 | public function DatabaseEvent(type:String, bubbles:Boolean = false, 44 | cancelable:Boolean = false) 45 | { 46 | super(type, bubbles, cancelable); 47 | } 48 | 49 | public function set databases(databases:Array):void 50 | { 51 | this._databases = databases; 52 | } 53 | 54 | public function get databases():Array 55 | { 56 | return this._databases; 57 | } 58 | 59 | public override function clone():Event 60 | { 61 | var out:DatabaseEvent = new DatabaseEvent(type, bubbles, cancelable); 62 | out.databases = _databases; 63 | 64 | return out; 65 | } 66 | } 67 | } -------------------------------------------------------------------------------- /demos/basic/clients/ImagesDemoClientMobile/src/com/adobe/air/net/events/ResourceCacheEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2009, 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.air.net.events 34 | { 35 | import flash.events.Event; 36 | import flash.filesystem.File; 37 | 38 | public class ResourceCacheEvent extends Event 39 | { 40 | 41 | public static const ITEM_READY:String = "onPathReady"; 42 | public static const ITEM_CACHED:String = "onItemCached"; 43 | 44 | [Bindable] 45 | public var key:String; 46 | 47 | [Bindable] 48 | public var file:File; 49 | 50 | public function ResourceCacheEvent(type:String, 51 | bubbles:Boolean=false, 52 | cancelable:Boolean=false) 53 | { 54 | super(type, bubbles, cancelable); 55 | } 56 | 57 | public override function clone():Event 58 | { 59 | var out:ResourceCacheEvent = new ResourceCacheEvent(type, 60 | bubbles, 61 | cancelable); 62 | 63 | out.key = key; 64 | out.file = file; 65 | 66 | return out; 67 | } 68 | 69 | } 70 | } --------------------------------------------------------------------------------