Changeset 14969 for lang/actionscript
- Timestamp:
- 07/01/08 03:33:59 (5 months ago)
- Location:
- lang/actionscript/FPazzle/trunk/src
- Files:
-
- 4 modified
-
FPazzle.css (modified) (4 diffs)
-
FPazzle.mxml (modified) (7 diffs)
-
net/suztomo/FPazzle/FBoard.as (modified) (1 diff)
-
net/suztomo/FPazzle/FlickrConnector.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/FPazzle/trunk/src/FPazzle.css
r14965 r14969 3 3 Application 4 4 { 5 color: # 666666;5 color: #222222; 6 6 theme-color: haloOrange; 7 7 background-color: #FFFFFF; … … 15 15 .keyword 16 16 { 17 paddingTop: 20; 18 paddingLeft: 20; 17 paddingTop: 10; 19 18 fontSize: 20; 20 19 focusAlpha: 0.2; … … 23 22 .note 24 23 { 25 paddingLeft: 20;26 24 } 27 25 … … 34 32 .imageUrl 35 33 { 36 paddingTop: 10; 37 paddingLeft: 50; 38 fontSize: 12; 34 paddingLeft: 0; 39 35 } 40 36 41 37 .giveup 42 38 { 43 right: 20px; 39 paddingLeft: 0; 40 color: #0063DC; 41 button: true; 44 42 } -
lang/actionscript/FPazzle/trunk/src/FPazzle.mxml
r14965 r14969 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();"> 3 <mx:VBox width="100%" > 3 <mx:VBox width="100%" paddingLeft="20" > 4 <mx:HBox> 5 <mx:Label id="title" color="0x0063DC" fontSize="50" fontWeight="bold" selectable="true" paddingTop="20" /> 6 <mx:Label id="titleNote" text="Enjoy infinite pazzles on Flickr photos!" paddingTop="53" selectable="true" /> 7 </mx:HBox> 4 8 <mx:HBox styleName="keyword" width="90%"> 5 9 <mx:HBox enabled="true" id="searchbox" width="100%"> … … 8 12 </mx:HBox> 9 13 <mx:Label id="permalink" selectable="true" /> 10 <mx:Button id="giveUp" label="Give Up..." click="onGiveUp();" styleName="giveup" visible="false" />11 14 </mx:HBox> 12 15 <mx:Label id="keywordNote" text='e.g. "flower", "sea", "haruhi" etc.' styleName="note" /> 13 <mx:Label id="imageUrl" selectable="true" styleName="imageUrl" text="hoghoge" /> 16 <mx:HBox> 17 <mx:Label id="imageUrl" selectable="true" styleName="imageUrl" text="" /> 18 <mx:Label id="giveUp" text="" click="onGiveUp();" styleName="giveup" /> 19 </mx:HBox> 14 20 </mx:VBox> 15 21 … … 60 66 61 67 bgImages = new Array(); 62 68 title.htmlText='FPazzl<font color="#FF0084">e<font>'; 63 69 } 64 70 … … 97 103 bgImage.scaleX = 0.6; 98 104 bgImage.scaleY = 0.6; 99 bgImage.x = 50;100 bgImage.y = 130;105 bgImage.x = 20; 106 bgImage.y = 205; 101 107 if (i != null) { 102 108 i.addCustomEventListener("moved", onMiniImageMoved); … … 107 113 108 114 CursorManager.removeBusyCursor(); 115 giveUp.text = "Give Up...?"; 109 116 } 110 117 … … 139 146 { 140 147 searchbox.enabled = true; 148 giveUp.text = ""; 141 149 board.showPhotoInfo(); 142 150 targetUrl = "http://flickr.com/photos/"+board.photo.ownerId+"/"+board.photo.id; 143 imageUrl.htmlText = '<font color="# 61D2FF"><a target="_blank" href="'+targetUrl+'" >'+ '>> View current photo on Flickr</a></font>';151 imageUrl.htmlText = '<font color="#0063DC"><a target="_blank" href="'+targetUrl+'" >'+ '>> View current photo on Flickr</a></font>'; 144 152 } 145 153 146 154 private function onNotFound(event:Event):void 147 155 { 148 Alert.show("No photo found by the keyword ", "Photo Not Found");156 Alert.show("No photo found by the keyword\n or something wrong on Flickr", "Photo Not Found"); 149 157 searchbox.enabled = true; 150 158 CursorManager.removeBusyCursor(); … … 175 183 private function onGiveUp():void 176 184 { 177 giveUp. visible = false;185 giveUp.text = ""; 178 186 if (board) board.showAnswer(); 179 187 } -
lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FBoard.as
r14965 r14969 178 178 var g:FPieceGroup = groups[0]; 179 179 g.x = p_width*x_num * 0.4 + 300; 180 g.y = 1 20;180 g.y = 150; 181 181 182 182 for (var j:uint=0; j<groups.length;j++) { -
lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FlickrConnector.as
r14965 r14969 58 58 59 59 private function onSearchComplete(event:FlickrResultEvent):void{ 60 if (event.data.photos == null) { 61 trace("arerere?"); 62 eventDispatcher.dispatchEvent(new Event(FlickrConnector.NOT_FOUND)); 63 return; 64 } 60 65 var ps:Array = event.data.photos.photos; 61 66 var p:Photo;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)