Changeset 14969 for lang/actionscript

Show
Ignore:
Timestamp:
07/01/08 03:33:59 (5 months ago)
Author:
suztomo
Message:

lang/actionscript/FPazzle : Added Pagetitle and simple information.

Location:
lang/actionscript/FPazzle/trunk/src
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/actionscript/FPazzle/trunk/src/FPazzle.css

    r14965 r14969  
    33Application  
    44{ 
    5         color: #666666; 
     5        color: #222222; 
    66        theme-color: haloOrange; 
    77        background-color: #FFFFFF; 
     
    1515.keyword 
    1616{ 
    17         paddingTop: 20; 
    18         paddingLeft: 20; 
     17        paddingTop: 10; 
    1918        fontSize: 20; 
    2019        focusAlpha: 0.2; 
     
    2322.note 
    2423{ 
    25         paddingLeft: 20; 
    2624} 
    2725 
     
    3432.imageUrl 
    3533{ 
    36         paddingTop: 10; 
    37         paddingLeft: 50; 
    38         fontSize: 12; 
     34        paddingLeft: 0; 
    3935}        
    4036 
    4137.giveup 
    4238{ 
    43         right: 20px; 
     39        paddingLeft: 0; 
     40        color: #0063DC; 
     41        button: true; 
    4442} 
  • lang/actionscript/FPazzle/trunk/src/FPazzle.mxml

    r14965 r14969  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<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> 
    48                <mx:HBox styleName="keyword" width="90%"> 
    59                        <mx:HBox enabled="true" id="searchbox" width="100%"> 
     
    812                        </mx:HBox> 
    913                        <mx:Label id="permalink" selectable="true" /> 
    10                         <mx:Button id="giveUp" label="Give Up..." click="onGiveUp();" styleName="giveup" visible="false" /> 
    1114                </mx:HBox> 
    1215                <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> 
    1420        </mx:VBox> 
    1521 
     
    6066                         
    6167                        bgImages = new Array(); 
    62                          
     68                        title.htmlText='FPazzl<font color="#FF0084">e<font>'; 
    6369                } 
    6470                 
     
    97103                        bgImage.scaleX = 0.6; 
    98104                        bgImage.scaleY = 0.6; 
    99                         bgImage.x = 50; 
    100                         bgImage.y = 130; 
     105                        bgImage.x = 20; 
     106                        bgImage.y = 205; 
    101107                        if (i != null) { 
    102108                                i.addCustomEventListener("moved", onMiniImageMoved); 
     
    107113 
    108114                        CursorManager.removeBusyCursor(); 
     115                        giveUp.text = "Give Up...?"; 
    109116                } 
    110117 
     
    139146                { 
    140147                        searchbox.enabled = true; 
     148                        giveUp.text = ""; 
    141149                        board.showPhotoInfo(); 
    142150                        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>'; 
    144152                } 
    145153                 
    146154                private function onNotFound(event:Event):void 
    147155                { 
    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"); 
    149157                        searchbox.enabled = true; 
    150158                        CursorManager.removeBusyCursor(); 
     
    175183                private function onGiveUp():void 
    176184                { 
    177                         giveUp.visible = false; 
     185                        giveUp.text = ""; 
    178186                        if (board) board.showAnswer(); 
    179187                } 
  • lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FBoard.as

    r14965 r14969  
    178178                        var g:FPieceGroup = groups[0]; 
    179179                        g.x = p_width*x_num * 0.4 + 300; 
    180                         g.y = 120; 
     180                        g.y = 150; 
    181181                         
    182182                        for (var j:uint=0; j<groups.length;j++) { 
  • lang/actionscript/FPazzle/trunk/src/net/suztomo/FPazzle/FlickrConnector.as

    r14965 r14969  
    5858 
    5959                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                        } 
    6065            var ps:Array = event.data.photos.photos; 
    6166            var p:Photo;