본문 바로가기

컴터/Flash & Flex

(47)
메뉴 : FlexNativeMenu Creating a FlexNativeMenu control You define a FlexNativeMenu control in MXML by using the tag. Specify an id value if you intend to refer to a component elsewhere in your MXML application, either in another tag or in an ActionScript block. You specify the data for the FlexNativeMenu control by using the dataProvider property. The FlexNativeMenu control uses the same types of data providers as d..
Alert.show : YES,NO,CANCEL,OK 로 나눠서 이벤트 처리하기 라이브독.. --------------------------------------------------------------------------- private function closeWindowAlert():void{ Alert.show("업로드나 다운로드 중에 창을 닫으면 데이터가 삭제됩니다.\n프로그램을 종료하시겠습니까?","경고",Alert.YES|Alert.CANCEL,null,closeWindow); } private function closeWindow(event:CloseEvent):void { if(event.detail == Alert.YES){ this.exit(); // windows를 닫고 application을 종료 } return; }
이미지의 exif 중 타이틀과 캡션뺴오기.. private function rf():Array{ var result:ByteArray = new ByteArray(); var r : ByteArray = new ByteArray(); var f:String = "C:/"; var fs:FileStream = new FileStream(); var ff:File = File.desktopDirectory.resolvePath(f + txt.text); fs.open(ff, FileMode.READ); fs.readBytes(result, 0, ff.size); fs.close(); var s:String = String(result); var p:RegExp = /\.*\/ig; var s_rst:Array = s.match(p); return s_..
이미지 exif 정보 읽어오기 http://cafe.naver.com/ArticleRead.nhn?clubid=10833316&page=1&menuid=131&boardtype=L&articleid=11811 포토샵이나 ACDSee 에서 적은 IPTC 규약의 정보를 flex 는 읽어 올수 있나 하는 질문입니다. php에서는 읽을 수 있는데 flex 나 air 에서 직접읽을수 있으면 더 좋은 상황이라 질문을 적습니다. 이걸 읽어야 사용자의 작업이 편해 지는 상황인지라..^^ api 는 찾아도 없는건지 제가 못 찾은 건지... 혹여 알고 계시는분 힌트 좀 주세요.답변 검쉰 관련 레퍼런스는 없지만 byte 수준에서 읽어와야될겁니다. 검쉰 http://code.shichiseki.jp/as3/ExifInfo/ 여기 보시면 exif 정보를 읽..
Flex 퍼가기 태그 private function copyTag():void{ var tag:String = ''">http://www.macromedia.com/go/getflashplayer">'; System.setClipboard(tag); Alert.show("Ctrl + V 로 html이 허용된 곳에 붙여넣기를 하면 됩니다.","퍼가기"); }
url 얻어오기 http://livedocs.adobe.com/flex/3/html/help.html?content=deep_linking_5.html
itemRenderer 안에서 함수 호출 대신에 href 함수는 private 가 아닌 다른 곳에서 쓰일수 있게 선언해야 한다. 또는 outerDocument.href();
이벤트리스너에 인자값 넣기 http://cafe.naver.com/ArticleRead.nhn?clubid=10833316&page=1&searchtype=1&query=addEventListener 인자&searchdate=all&articlemedia=0&sortby=date&articleid=9730 btn.addEventListener(MouseEvent.CLICK, fnc); ---------------> btn.addEventListener(MouseEvent.CLICK, function():void{fnc(1,'ab');}); exitCommand.addEventListener(Event.SELECT, function(event:Event):void { NativeApplication.nativeApplication...