본문 바로가기

액션스크립트

fla 파일과 as 파일의 연동. 더보기
Sprite 클래스의 특징 Sprite object는 무비 클립과 닮아 있습니다만, 타임 라인을 가지지 않습니다. Sprite 는, 타임 라인을 필요로 하지 않는 object에 적절한 기본 클래스입니다. 예를 들어, Sprite 는, 통상은 타임 라인을 사용하지 않는 유저 인터페이스 (UI) 컴퍼넌트의 논리 기본 클래스가 됩니다. MovieClip 클래스 (Sprite 클래스의 서브 클래스)에서 buttonMode property를 사용하면, 버튼에 몇개의 기능을 추가할 수가 있습니다. _up, _over, 및 _down 의 label가 붙은 프레임을 짜넣으면, 자동 상태 변화가 됩니다 (이전의 버젼의 ActionScript 로 제공되고 있던, 버튼으로서 사용되는 무비 클립용의 기능과 닮은 기능). 이러한 자동 상태 변화는, 스프.. 더보기
프로퍼티를 클래스로... package com.example.programmingas3.playlist { /** * A pseudo-enum representing the different properties by which a Song instance * can be sorted. */ public final class SortProperty { // ------- Public Constants ------- // These constants represent the different properties // that the list of songs can be sorted by, // providing a mechanism to map a "friendly" name to the actual property name pub.. 더보기
AS3 에서 array 사용... VC++에서 typedef 를 이용한 것 처럼.. Array를 이용할 수 있다.. import testArrItem; // 사용자 지정 클래스.. public class testArr { public function testArr() { } public function test():void { var arr:Array = new Array(); var item:testArrItem = new testArrItem(); item.m_name = "1-name"; item.m_id = 24; arr.push(item); trace(arr[0].m_name, arr[0].m_id); } } 제대로 값이 출력된다. 더보기
AS-Flex 즐겨찾기 http://blog.jidolstar.com/106 http://cafe.naver.com/hddi.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=1404 http://blog.naver.com/woong9171/90023859301 더보기