개요과정FDT 설치http://fdt.powerflasher.com (tip. 30일마다 재설치하면 된다.) Hello world in AS3! Flash Player 10 Debugging Version hello world를 만들어 보자. package { import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.events.Event; public class HelloWorld extends Sprite { private var hello_text : TextField; public function HelloWorld() { hello_text = new TextField(); hello_text.text = "Hello World!"; hello_text.autoSize = TextFieldAutoSize.LEFT; this.addChild(hello_text); hello_text.x = 150; hello_text.y = 150; this.addEventListener(Event.ENTER_FRAME, onEnterFrame); } private function onEnterFrame(event : Event) : void { hello_text.x += 1; } } } TweenMax를 써보자 http://blog.greensock.com/tweenmaxas3/ package { import flash.display.Sprite; import gs.TweenMax; public class TweenMaxExample extends Sprite { private var rectangle : Sprite; public function TweenMaxExample () { rectangle = new Sprite(); rectangle.graphics.beginFill(0x5A6679, 1); rectangle.graphics.drawRect(0, 0, 50, 50); rectangle.graphics.endFill(); this.addChild(rectangle); rectangle.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler); rectangle.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler); rectangle.addEventListener(MouseEvent.MOUSE_CLICK, clickHandler); } private function clickHandler (event : MouseEvent) : void { TwinMax.to(rectangle, 3, {x:124, y:15}, bezierThrough:{x:78, y:285}, {x: //...........이벤트 리스너 기억하시는 분이 채워주세요~ :) } private function mouseOverHandler (event : MouseEvent) : void { } private function mouseOutHandler (event : MouseEvent) : void { } } } 웹과 연동 Ruby on Rails와 연동하는 걸 준비했는데 시간이 없어서 알려드리지 못했다. 회고정승배- 새로웠다. 예전에 플래시를 다룰 때는 딱딱했다. 바로 어디에 쓸 수 있겠다라는 게 떠올랐다. - 준비한 걸 모두 듣지 못 해서 아쉽다. 계효영 - 플래시가 처음인데 실습하면서 하니까 머리에 잘 들어왔다. 손재현 - 시각적으로 드러니까 재밌었다. - 왜 나만 안 될까? 아샬 - 플래시가 어려운 게 아니구나! - 설치하는데 시간이 많이 소요돼서 아쉽다. 미리 세팅을 해왔더라면... 송정석 - 핵심 포인트만 짚어서 좋았다. - 시간이 너무 부족했다. 질문이나 토의 등을 못 해서 아쉽다. 윤영권 - 회사 가서 디자이너를 쫄 수 있겠구나! 재밌구나라는 느낌. 언어적 차원에서 디자인을 접근할 수 있어서 흥미로웠다. - 시간이 부족했다. 유지은 - 다 함께 모여서 해서 좋았다. - 설치 때문에 시간이 많이 소요됐다. 소원영 - 개발자를 대상으로 하는데 어떤 의미가 있을까 싶었는데 내 접근법을 잘 쓴 것 같다. 더 궁금한 건?b@bizarre07.comhttp://blog.bizarre07.com |
