1 자습서 플래시Flash 강좌,[플래시][액션스크립트] ActionScript Reference Tue May 24, 2011 5:45 am
Admin
Admin
플래시 MX 730여개가 넘는 액션의 사용법을 보시려면 액션 스크립트 레퍼런스 [Window]-[Reference] Shift-F1 를 참고하세요.
<li type="square">[표] 액션 카테고리에 포함되어 있지 않은 연산자
</li><li type="square">플래시 액션 카테고리는 알파벳순이지만 여기서는 분류별 중요도순으로 정리하였다
</li><li type="square">[보기] 객체. , 메서드() , 이벤트핸들러메서드()= , 리스너()= , 상수는 대문자로 표기되어 있다
[You must be registered and logged in to see this image.]
http://www.mbc-academy.co.kr </li>]
<li type="square">[표] 액션 카테고리에 포함되어 있지 않은 연산자
// (주석문 연산자) | // 주석문이 한 줄 /* 주석문이 여러 줄 */ |
. (도트 연산자) | _root.myMovieClip.childMovieClip // 객체 경로 |
/ (슬래시 구문) | /myMovieClip/childMovieClip // Flash 3 및 4에서 무비 클립이나 변수의 대상 패스를 나타내는데 사용 |
: (콜론 연산자) | switch(표현식) = { case 상수식 : 명령문; ... } // switch 조건문에서 형태로 사용 객체명 = { 속성 : 값 , 속성 : 값 , ... } // 객체 초기화에서 사용 변수 = (조건식) ? 참일 때 결과 : 거짓일 때 결과; // ?조건부 연산자)에서 사용 myMovieClip/childMovieClip:myVariable // 슬래시 구문에서 변수를 나타낼 때 사용 |
; (세미콜론) | 명령문; // 명령문 마무리 |
[ ] (배열 액세스 연산자) | myArray =[]; // 배열 생성 myArray = [[1,2,3],[4,5,6],[7,8,9]]; // 배열 초기화 myArray[1][2]; // 배열 액세스 myMovieClip["mc"+i]; // 객체 액세스 |
{ } (객체 이니셜라이저) | { 명령문; 명령문; ... } // 그룹화 object = {}; // 객체 생성 person = { name: "Gina Vechio", children: [ "Ruby", "Chickie", "Puppa"] }; // 객체 배열 초기화 |
new 연산자 | instanceName = new constructor; // 오브젝트(구조체) 인스턴스를 생성한다 |
' ' (작은따옴표) | myString = '문자열' // " " (큰따옴표)처럼 문자열을 만든다 |
</li><li type="square">[보기] 객체. , 메서드() , 이벤트핸들러메서드()= , 리스너()= , 상수는 대문자로 표기되어 있다
1 | 2 |
액션 Actions | <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>무비제어 </td> <td>gotoAndPlay gotoAndStop nextFrame prevFrame nextScene prevScene play stop stopAllSounds() </td></tr> <tr> <td>브라우저/네트워크 </td> <td>fscommand( command, parameters ) getURL loadMovie loadMovieNum unloadMovie unloadMovieNum loadVariables( url, target, method ) loadVariablesNum( url, level, method ) </td></tr> <tr> <td>무비클립제어 </td> <td>duplicateMovieClip removeMOvie startDrag stopDrag updateAfterEvent() </td></tr> <tr> <td>변수 </td> <td>delete set var with</td></tr> <tr> <td>조건/루프 </td> <td>if..else if..else switch..case..default for..in while do..while break continue </td></tr> <tr> <td>인쇄 </td> <td>print printNum printAsBitmap printAsBitmapNum</td></tr> <tr> <td>사용자 정의 함수 </td> <td>call function return</td></tr> <tr> <td>기타 액션</td> <td>#include #initclip #endinitclip setInterval clearInterval comment trace</td></tr></table> |
연산자 Operators | <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>일반 연산자 </td> <td>"" () </td></tr> <tr> <td>기타 연산자 </td> <td>-- ?: ++ instanceof typeof() void() </td></tr> <tr> <td>논리 연산자 </td> <td>! && || </td></tr> <tr> <td>대입 연산자 </td> <td>-= %= &= *= |= /= ^= += <<= = >>= >>>= </td></tr> <tr> <td>비교 연산자 </td> <td>!= !== < <= == === > >= </td></tr> <tr> <td>비트 연산자 </td> <td>& ~ | ^ << >> >>> </td></tr> <tr> <td>산술 연산자 </td> <td>- % * / + </td></tr></table> |
(내장)함수 Functions | <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>변환 함수 </td> <td>Array() Boolean() Number() Object() String() </td></tr> <tr> <td>수학 함수 </td> <td>isFinite() isNaN() parseFloat() parseInt() </td></tr> <tr> <td>기타 함수 </td> <td>escape() eval!() getProperty() getTimer() getVersion() targetPath() unescape() </td></tr></table> |
상수 Constants | false newline null true undefined |
속성 Propertys | <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>읽기 쓰기</td> <td>_x _y _width _height _alpha _visible _rotation _xscale _yscale _name _focusrect </td></tr> <tr> <td>읽기 전용</td> <td>_url _target _xmouse _ymouse _droptarget _currentframe _totalframes _framesloaded → 4개는 무비클립 인스턴스만 한정적 사용 </td></tr> <tr> <td>전역 속성</td> <td>_soundbuftime _quality → 읽기 쓰기 가능 </td></tr></table> |
객체 Objects | <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>기본</td> <td><table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>core</td> <td>_global super this </td></tr> <tr> <td>arguments</td> <td>callee caller length </td></tr> <tr> <td>Array</td> <td>new Array() concat() join() pop() push() reverse() shift() slice() sort() sortOn() splice() toString() unshift() length </td></tr> <tr> <td>Boolean</td> <td>new Boolean() toString() valueOf() </td></tr> <tr> <td>Date</td> <td>new Date() getDate() getDay() getFullYear() getHours() getMilliseconds() getMinutes() getMonth() getSeconds() getTime() getTimezoneOffset() getUTCDate() getUTCDay() getUTCFullYear() getUTCHours() getUTCMilliseconds() getUTCMinutes() getUTCMonth() getUTCSeconds() getYear() setDate() setFullYear() setHours() setMilliseconds() setMinutes() setMonth() setSeconds() setTime() setUTCDate() setUTCFullYear() setUTCHours() setUTCMilliseconds() setUTCMinutes() setUTCMonth() setUTCSeconds() setYear() toString() UTC() </td></tr> <tr> <td>Function</td> <td>apply() call() prototype </td></tr> <tr> <td>Math</td> <td>abs() acos() asin() atan() atan2() ceil() cos() exp() floor() log() max() min() pow() random() round() sin() sqrt() tan() E LN2 LOG2E LN10 LOG10E PI SQRT1_2 SQRT2 </td></tr> <tr> <td>Number</td> <td>new Number() toString() valueOf() MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY </td></tr> <tr> <td>Object</td> <td>new Object() addProperty() registerClass() toString() unwatch() valueOf() watch() __proto__ </td></tr> <tr> <td>String</td> <td>new String() charAt() charCodeAt() concat() fromCharCode() indexOf() lastIndexOf() slice() split() substr() substring() toLowerCase() toUpperCase() length </td></tr></table></td></tr> <tr> <td>무비</td> <td>_level _parent _root <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>Accessibility</td> <td>isActive() </td></tr> <tr> <td>Button</td> <td>getDepth() enabled tabEnabled tabIndex trackAsMenu useHandCursor onPress()= onRelease()= onReleaseOutside()= onRollOver()= onRollOut()= [안내]태그제한으로등록되지않습니다-[안내]태그제한으로등록되지않습니다-onDragOver()= [안내]태그제한으로등록되지않습니다-onDragOut()= onSetFocus()= onKillFocus()= </td></tr> <tr> <td>Capabilities</td> <td>hasAudioEncoder hasAccessibility hasAudio hasMP3 language manufacturer os pixelAspectRatio screenColor screenDPI screenResolution.x screenResolution.y version hasVideoEncoder </td></tr> <tr> <td>Color</td> <td>new Color() getRGB() getTransform() setRGB() setTransform() </td></tr> <tr> <td>Key</td> <td>addListener() getAscii() getCode() isDown() isToggled() removeListener() BACKSPACE CAPSLOCK CONTROL DELETEKEY DOWN END ENTER ESCAPE HOME INSERT LEFT PGDN PGUP RIGHT SHIFT SHIFT TAB UP [안내]태그제한으로등록되지않습니다-xxonKeyDown()= [안내]태그제한으로등록되지않습니다-xxonKeyUp()= </td></tr> <tr> <td>Mouse</td> <td>addListener() hide() removeListener() show() [안내]태그제한으로등록되지않습니다-xxonMouseDown()= [안내]태그제한으로등록되지않습니다-xxonMouseMove()= [안내]태그제한으로등록되지않습니다-xxonMouseUp()= </td></tr> <tr> <td>MovieClip</td> <td><table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>메서드</td> <td>gotoAndPlay() gotoAndStop() play() stop() nextFrame() prevFrame() startDrag() stopDrag() hitTest() setMask() getBytesLoaded() getBytesTotal() getBounds() globalToLocal() localToGlobal() createEmptyMovieClip() createTextField() attachMovie() duplicateMovieClip() removeMovieClip() swapDepths() getDepth() getURL() loadVariables() loadMovie() unloadMovie() </td></tr> <tr> <td>드로잉 메서드</td> <td>lineStyle() moveTo!() lineTo() curveTo() beginFill() beginGradientFill() endFill() clear() </td></tr> <tr> <td>속성</td> <td>enabled focusEnabled hitArea tabChildren tabEnabled tabIndex trackAsMenu useHandCursor </td></tr> <tr> <td>이벤트</td> <td>onPress()= onRelease()= onReleaseOutside()= onRollOver()= onRollOut()= [안내]태그제한으로등록되지않습니다-[안내]태그제한으로등록되지않습니다-onDragOver()= [안내]태그제한으로등록되지않습니다-onDragOut()= onSetFocus()= onKillFocus()= [안내]태그제한으로등록되지않습니다-xxonLoad()= xxonUnload()= onEnterFrame()= [안내]태그제한으로등록되지않습니다-xxonMouseDown()= [안내]태그제한으로등록되지않습니다-xxonMouseUp()= [안내]태그제한으로등록되지않습니다-xxonMouseMove()= [안내]태그제한으로등록되지않습니다-xxonKeyDown()= [안내]태그제한으로등록되지않습니다-xxonKeyUp()= onData()= </td></tr></table></td></tr> <tr> <td>Selection</td> <td>addListener() getBeginIndex() getCaretIndex() getEndIndex() getFocus() removeListener() setFocus() setSelection() onSetFocus()= </td></tr> <tr> <td>Sound</td> <td>new Sound() attachSound() getBytesLoaded() getBytesTotal() getPan() getTransform() getVolume() loadSound() setPan() setTransform() setVolume() start() stop() duration position [안내]태그제한으로등록되지않습니다-xxonLoad()= onSoundComplete()= </td></tr> <tr> <td>Stage</td> <td>addListener() removeListener() align height width scaleMode [안내]태그제한으로등록되지않습니다-xxonResize()= </td></tr> <tr> <td>System</td> <td>System.capabilities. </td></tr> <tr> <td>TextField</td> <td><table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>메서드</td> <td>addListener() getDepth() getNewTextFormat() removeListener() removeTextField() setNewTextFormat() replaceSel() setTextFormat() </td></tr> <tr> <td>속성</td> <td>autoSize background backgroundColor border borderColor bottomScroll embedFonts hscroll html htmlText length maxChars maxhscroll maxscroll multiline password restrict scroll selectable tabEnabled tabIndex text textColor textHeight textWidth type variable wordWrap </td></tr> <tr> <td>이벤트</td> <td>[안내]태그제한으로등록되지않습니다-xxonChanged()= onKillFocus()= [안내]태그제한으로등록되지않습니다-onScroller()= onSetFocus()= </td></tr> <tr> <td>수신기</td> <td>[안내]태그제한으로등록되지않습니다-xxonChanged()= [안내]태그제한으로등록되지않습니다-onScroller()= </td></tr></table></td></tr> <tr> <td>TextFormat</td> <td>new TextFormat() getTextExtent() align blockIndent bold bullet color font indent italic leading leftMargin rightMargin tabStops target size underline url </td></tr></table></td></tr> <tr> <td>클라이언트/서버</td> <td><table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>LoadVars</td> <td>new LoadVars() load() getBytesTotal() getBytesTotal() send() sendAndLoad() toString() contentType load [안내]태그제한으로등록되지않습니다-xxonLoad()= </td></tr> <tr> <td>XML</td> <td>new XML() appendChild() cloneNode() createElement() createTextNode() getBytesLoaded() getBytesTotal() hasChildNodes() insertBefore() load() parseXML() removeNode() send() sendAndLoad() toString() contentType docTypeDecl firstChild ignoreWhite lastChild load nextSibling nodeName nodeType nodeVal!ue parentNode previousSibling status xmlDecl attributes childNodes → 2개 컬렉션 onData()= [안내]태그제한으로등록되지않습니다-xxonLoad()= </td></tr> <tr> <td>XMLSocket</td> <td>new XMLSocket() close() connect() send() onClose()= onConnect()= onData()= onXML()= </td></tr></table></td></tr> <tr> <td>제작</td> <td><table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>실시간 미리보기</td> <td>function onUpdate(){} </td></tr> <tr> <td>CustomActions</td> <td>CustomActions.get() CustomActions.install() CustomActions.list() CustomActions.uninstall() </td></tr></table></td></tr></table> |
사용되지 않음 Depreccated | <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>속성</td> <td>_highquality maxscroll scroll </td></tr> <tr> <td>액션</td> <td>ifFrameLoaded(){} tellTarget(){} toggleHighQuality() </td></tr> <tr> <td>연산자</td> <td><> add and eq ge gt le lt ne not or </td></tr> <tr> <td>함수</td> <td>chr() int() length() mbchr() mblength() mbord() mbsubstring() ord() random() substring() </td></tr></table> |
Flash UI 구성요소 Components | <table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr> <td>FCheckBox</td> <td>getEnabled() getLabel() getValue() registerSkinElement() setChangeHandler() setEnabled() setLabel() setLabelPlacement() setSize() setStyleProperty() setValue() </td></tr> <tr> <td>FComboBox</td> <td>addItem() addItemAt() getEnabled() getItemAt() getLength() getRowCount() getScrollPosition() getSelectedIndex() getSelectedItem() getValue() registerSkinElement() removeAll() removeItemAt() replaceItemAt() setChangeHandler() setDataProvider() setEditable() setEnabled() setItemSymbol() setRowCount() setSelectedIndex() setSize() setStyleProperty() setValue() sortItemsBy() </td></tr> <tr> <td>FListBox</td> <td>addItem() addItemAt() getEnabled() getItemAt() getLength() getRowCount() getScrollPosition() getSelectedIndex() getSelectedIndices() getSelectedItem() getSelectedItems() getSelectMultiple() getValue() registerSkinElement() removeAll() removeItemAt() replaceItemAt() setAutoHideScrollBar() setChangeHandler() setDataProvider() setEnabled() setItemSymbol() setRowCount() setScrollPosition() setSelectedIndex() setSelectedIndices() setSelectMultiple() setSize() setStyleProperty() setWidth() sortItemsBy() </td></tr> <tr> <td>FPushButton</td> <td>getEnabled() getLabel() registerSkinElement() setClickHandler() setEnabled() setLabel() setSize() setStyleProperty() </td></tr> <tr> <td>FRadioButton</td> <td><table bordercolordark="#ffffff" bordercolorlight="#cccccc" border="1" cellpadding="2" cellspacing="0"> <tr> <td>메서드</td> <td>getData() getEnabled() getGroupName() getLabel() getState() registerSkinElement() setChangeHandler() setData() setEnabled() setGroupName() setLabel() setLabelPlacement() setSize() setState() setStyleProperty() </td></tr> <tr> <td>그룹 메서드</td> <td>getEnabled() getGroupName() getValue() registerSkinElement() setChangeHandler() setEnabled() setGroupName() setLabelPlacement() setSize() setStyleProperty() setValue() </td></tr></table></td></tr> <tr> <td>FScrollBar</td> <td>getEnabled() getScrollPosition() registerSkinElement() setChangeHandler() setEnabled() setHorizontal() setLargeScroll() setScrollContent() setScrollPosition() setScrollProperties() setScrollTarget() setSize() setSmallScroll() setStyleProperty() </td></tr> <tr> <td>FScrollPane</td> <td>getPaneHeight() getPaneWidth() getScrollContent() getScrollPosition() loadScrollContent() refreshPane() registerSkinElement() setDragContent() setHScroll() setScrollContent() setScrollPosition() setSize() setStyleProperty() setVScroll() </td></tr> <tr> <td>FStyleFormat</td> <td>globalStyleFormat. new FStyleFormat() addListener() applyChanges() removeListener() arrow background backgroundDisabled check darkshadow face foregroundDisabled highlight highlight3D radioDot scrollTrack selection selectionDisabled selectionUnfocused shadow textAlign textBold textColor textDisabled textFont textIndent textItalic textLeftMargin textRightMargin textSelected textSize textUnderline </td></tr></table> |
Index | 8개 액션 카테고리 내용을 알파벳순으로 나열한 것입니다 |
[You must be registered and logged in to see this image.]
http://www.mbc-academy.co.kr </li>]