Changeset 14980 for lang/actionscript

Show
Ignore:
Timestamp:
07/01/08 14:07:41 (5 months ago)
Author:
suztomo
Message:

lang/actionscript/FPazzle : Added Adobe ActionScript? Library.

Location:
lang/actionscript/FPazzle/trunk/src
Files:
90 added
2 modified

Legend:

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

    r14969 r14980  
    1818        fontSize: 20; 
    1919        focusAlpha: 0.2; 
     20} 
     21 
     22.inputOn{ 
     23        color: #222222; 
     24} 
     25 
     26.inputOff{ 
     27        color: #AAAAAA; 
    2028} 
    2129 
  • lang/actionscript/FPazzle/trunk/src/FPazzle.mxml

    r14979 r14980  
    88                <mx:HBox styleName="keyword" width="90%"> 
    99                        <mx:HBox enabled="true" id="searchbox" width="100%"> 
    10                                 <mx:TextInput id="keyword" styleName="input" focusIn="onSearchFocus();" focusOut="onSearchLeave();" /> 
     10                                <mx:TextInput id="keyword" styleName="inputOff" focusIn="onSearchFocus();" focusOut="onSearchLeave();" /> 
    1111                                <mx:Button id="keywordSubmit" label="Search" click="flickrStart();" /> 
    1212                        </mx:HBox> 
     
    6969                        title.htmlText='FPuzzl<font color="#FF0084">e<font>'; 
    7070                        var hoge:Sprite = new Sprite(); 
    71                         trace(width, height); 
    7271                        footer.htmlText = 'Created by <a target="_blank" href="http://d.hatena.ne.jp/suztomo/"><font color="#0063DC">Suzuki Tomohiro</font></a>, powered by <a target="_blank" href="http://www.flickr.com/services/api/"><font color="#0063DC">Flickr API</font></a>'; 
    7372                        footer.y = height - 30; 
    7473                        footer.x = width/2 - 200; 
    75                         trace(footer.y); 
    7674                } 
    7775                 
     
    179177                private function onSearchFocus():void 
    180178                { 
    181                         if (keyword.text == defaultInputText) keyword.text = ""; 
     179                        if (keyword.text == defaultInputText){ 
     180                                keyword.text = ""; 
     181                                keyword.styleName = "inputOn"; 
     182                        } 
    182183                } 
    183184 
    184185                private function onSearchLeave():void 
    185186                { 
    186                         if (keyword.text.length < 2) 
    187                         keyword.text=defaultInputText; 
     187                        if (keyword.text.length < 2) { 
     188                                keyword.text=defaultInputText; 
     189                                keyword.styleName = "inputOff"; 
     190                        } 
    188191                } 
    189192