본문 바로가기

액션스크립트

사진 오려보기... ㅋ.. 이미지를 로딩하게 했더니 보안에 걸려서 안 되는군요.. 링크로 겁니다 ~ 다들 하셨던 건데.. 전 첨하니 재밋네요.. VC++ 로 하면 얼마나 걸린런지.. GDI++ 로 하면 의외로 쉽게 끝날지도 모르겠네요 ^^ http://papilion.hosting.paran.com/ImageFrame.html 더보기
아웃룩 리스트 완료!! 만들고 보니 뿌듯하다 ㅋ, 다음 프로젝트로 고고고 더보기
일정 시간 후에 함수를 호출하기.. VC++ 이라면.. 슬립을 주거나.. 타이머를 돌리겠지만.. 여기선 이렇게도 처리할 수 있다.. function openWebsite(url:String) { getURL(url,'_blank') } website='http://www.flashguru.co.uk' setTimeout(openWebsite,1000,website) 또는 (And of course you can use the following syntax aswell:) function openWebsite(url:String) { getURL(url,'_blank') } website='http://www.flashguru.co.uk' setTimeout(this,'openWebsite',1000,website) 더보기
TileListData 의 활용법.. 먼저 생성자는 TileListData () Constructor public function TileListData(label:String, icon:Object, source:Object, owner:UIComponent, index:uint, row:uint, col:uint = 0) Language Version : ActionScript 3.0 Player Version : Flash Player 9.0.28.0 Creates a new instance of the TileListData class as specified by its parameters. The TileListData class inherits the properties of the ListData class, and adds a.. 더보기
Shape 와 Sprite 차이 상속성의 차이 Shape DisplayObject EventDispatcher Object Sprite DisplayObjectContainer InteractiveObject DisplayObject EventDispatcher Object Shape 클래스는 ActionScript 드로잉 API를 사용하여 가벼운 모양을 만드는 데 사용됩니다. Shape 클래스에는 Graphics 클래스의 메서드에 액세스할 수 있게 해 주는 graphics 속성이 포함됩니다. 또한 Sprite 클래스는 graphics 속성뿐만 아니라 Shape 클래스에서 사용할 수 없는 다른 기능을 포함합니다. 예를 들어, Sprite 객체는 표시 객체 컨테이너이고 Shape 객체는 표시 객체 컨테이너가 아닙니다(자식 표시 객체를 포.. 더보기
스테이지(Stage) 크기 조절 제어 스테이지 크기 조절 제어 Flash Player 화면 크기를 조절하면 스테이지 내용이 이에 맞게 자동으로 조절됩니다. Stage 클래스의 scaleMode 속성은 스테이지 내용 조절 방식을 결정합니다. 이 속성은 flash.display.StageScaleMode 클래스의 상수로 정의되는 서로 다른 네 가지 값으로 설정할 수 있습니다. 세 가지 scaleMode 값(StageScaleMode.EXACT_FIT, StageScaleMode.SHOW_ALL 및 StageScaleMode.NO_BORDER)의 경우 Flash Player는 해당 경계에 맞춰 스테이지 내용의 크기 를 조절합니다. 이 세 가지 옵션에 따라 다음과 같이 크기 조절 수행 방식이 달라집니다. ■ StageScaleMode.EXACT_F.. 더보기
Gradiented Circle 그리기 private function drawGradient(col:Number):void { var fillType:String = GradientType.RADIAL; // or GradientType.LINER var colors:Array = [col, 0x0000FF]; var alphas:Array = [1, 1]; var ratios:Array = [0x00, 0xFF]; var matr:Matrix = new Matrix(); //matr.createGradientBox(80, 80, 0, -20, -20); 아래 것과 차이 뭔지 알지? ^^ matr.createGradientBox(80, 80, 0, -40, -40); var spreadMethod:String = SpreadMethod.PAD.. 더보기
완성! Transition Manager ~ 간단한 실수 하나로... easing 이 작동하지 않고 있었는데.. 아침에 잠깐 보고 모두 고쳤다. ㅋㅋ 그리고 간단한 메시지 박스도 부착 !! 더보기