Adobe® Flash® Platform용 ActionScript® 3.0 참조 설명서
 |  패키지 및 클래스 목록 숨기기 |  패키지  |  클래스  |  새로운 내용  |  색인  |  부록  |  영어로 표시되는 이유
필터: AIR 30.0 이하, Flash Player 30.0 이하, Flash Lite 4
Flex 4.6 이하, Flash Pro CS6 이하
필터 숨기기
flashx.textLayout.conversion 

TextConverter  - AS3

패키지x

최상위 레벨
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

언어 요소

전역 상수
전역 함수
연산자
명령문, 키워드 및 지시문
특수 유형 연산자

부록

새로운 내용
컴파일러 오류
컴파일러 경고
런타임 오류
ActionScript 3으로 마이그레이션
지원되는 문자 세트
MXML 전용 태그
모션 XML 요소
Timed Text 태그
사용되지 않는 요소의 목록
액세스 가능성 구현 상수
ActionScript 예제 사용 방법
법적 고지 사항
패키지flashx.textLayout.conversion
클래스public class TextConverter
상속TextConverter Inheritance Object

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

가져오기 및 내보내기를 처리하기 위한 게이트웨이 클래스입니다. Text Layout Framework의 변환 기능에 대한 단일 액세스 포인트 역할을 합니다. 미리 정의되었거나 사용자가 정의한 입력 및/또는 출력 변환기의 레지스트리 및 변환 메서드 세트가 들어 있습니다.

변환된 데이터의 형식은 미리 정의되지 않습니다. 사용자가 작성한 변환기는 어떤 형식을 선택하든 자유롭게 사용하고 반환할 수 있습니다. 자주 사용되는 형식은 문자열, XML 및 ByteArray 인스턴스입니다. 변환기 작성자는 어떤 형식이 지원되는지 문서화해야 합니다.

예제 보기

기타 예제



공용 속성
 속성정의 주체
 Inheritedconstructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.
Object
  numFormats : int
[정적] [읽기 전용] 형식 수입니다.
TextConverter
공용 메서드
 메서드정의 주체
  
addFormat(format:String, importerClass:Class, exporterClass:Class, clipboardFormat:String):void
[정적] 새 가져오기/내보내기 형식을 등록합니다.
TextConverter
  
addFormatAt(index:int, format:String, importerClass:Class, exporterClass:Class = null, clipboardFormat:String = null):void
[정적] 지정된 위치에 새 가져오기/내보내기 형식을 등록합니다.
TextConverter
  
[정적] TextFlow를 지정된 형식으로 내보냅니다.
TextConverter
  
[정적] 나중에 TextFlow에서 소스 문자열 또는 XML 객체로 내보낼 때 사용할 수 있는 내보내기 변환기를 생성하여 반환합니다.
TextConverter
  
[정적] 인덱스 형식의 이름을 반환합니다.
TextConverter
  
[정적] 인덱스 형식의 FormatDescriptor를 반환합니다.
TextConverter
  
[정적] 소스 문자열, XML 객체 또는 사용자 정의 데이터 형식에서 TextFlow로 가져올 때 사용할 수 있는 가져오기 변환기를 생성하여 변환합니다.
TextConverter
 Inherited
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.
Object
  
[정적] 소스 내용에서 지정된 형식으로 TextFlow를 만듭니다.
TextConverter
 Inherited
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.
Object
 Inherited
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.
Object
  
[정적] 형식을 제거합니다.
TextConverter
  
[정적] 인덱스 위치에서 형식을 제거합니다.
TextConverter
 Inherited
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.
Object
 Inherited
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.
Object
 Inherited
지정된 객체의 문자열 표현을 반환합니다.
Object
 Inherited
지정된 객체의 프리미티브 값을 반환합니다.
Object
공용 상수
 상수정의 주체
  PLAIN_TEXT_FORMAT : String = "plainTextFormat"
[정적] 일반 텍스트 형식입니다.
TextConverter
  TEXT_FIELD_HTML_FORMAT : String = "textFieldHTMLFormat"
[정적] HTML 형식입니다.
TextConverter
  TEXT_LAYOUT_FORMAT : String = "textLayoutFormat"
[정적] TextLayout 형식입니다.
TextConverter
속성 세부 정보

numFormats

속성
numFormats:int  [읽기 전용]

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

형식 수입니다.



구현
    public static function get numFormats():int
메서드 세부 정보

addFormat

()메서드
public static function addFormat(format:String, importerClass:Class, exporterClass:Class, clipboardFormat:String):void

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

새 가져오기/내보내기 형식을 등록합니다. 새 형식이 마지막에 가장 낮은 우선 순위로 추가됩니다. 외부 클립보드에서 가져오는 경우와 같이, 사용 형식에 대해 여러 옵션이 있는 클라이언트에는 위치가 중요할 수 있습니다. 새 형식이 가져오기 및/또는 내보내기를 지원할 수 있습니다. 이미 형식이 추가되었으면 여러 위치에 저장됩니다. 제일 먼저 발견되는 것을 사용합니다.

매개 변수

format:String — 등록할 가져오기 변환기 클래스 또는 null입니다.
 
importerClass:Class — 등록할 내보내기 변환기 클래스 또는 null입니다.
 
exporterClass:Class — 변환기 클래스에 태그를 지정하는 형식 문자열입니다. 형식은 어떤 이름이든 될 수 있지만 고유해야 합니다.
 
clipboardFormat:String — 클립보드에서 또는 클립보드로 변환할 때 클립보드 형식으로 사용되는 문자열입니다. 형식이 클립보드 액세스를 지원하지 않으면 null로 설정합니다.

addFormatAt

()메서드 
public static function addFormatAt(index:int, format:String, importerClass:Class, exporterClass:Class = null, clipboardFormat:String = null):void

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

지정된 위치에 새 가져오기/내보내기 형식을 등록합니다. 외부 클립보드에서 가져오는 경우와 같이, 사용 형식에 대해 여러 옵션이 있는 클라이언트에는 위치가 중요할 수 있습니다. 숫자가 낮을수록 우선 순위가 높습니다. 숫자가 낮은 변환기를 먼저 시도합니다. 새 형식이 가져오기 및/또는 내보내기를 지원할 수 있습니다. 이미 형식이 추가되었으면 여러 위치에 저장됩니다. 제일 먼저 발견되는 것을 사용합니다.

매개 변수

index:int — 등록할 가져오기 변환기 클래스 또는 null입니다.
 
format:String — 등록할 내보내기 변환기 클래스 또는 null입니다.
 
importerClass:Class — 변환기 클래스에 태그를 지정하는 형식 문자열입니다.
 
exporterClass:Class (default = null) — 클립보드에서 또는 클립보드로 변환할 때 클립보드 형식으로 사용되는 문자열입니다. 형식이 클립보드 액세스를 지원하지 않으면 null로 설정합니다.
 
clipboardFormat:String (default = null)

export

()메서드 
public static function export(source:flashx.textLayout.elements:TextFlow, format:String, conversionType:String):Object

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

TextFlow를 지정된 형식으로 내보냅니다.

사용자 정의 내보내기 도구가 format 매개 변수를 지정할 때 이 클래스로 제공되는 정적 상수 중 하나, MIME 유형 또는 사용자 정의 형식을 사용합니다.

  • TextConverter.TEXT_FIELD_HTML_FORMAT
  • TextConverter.PLAIN_TEXT_FORMAT
  • TextConverter.TEXT_LAYOUT_FORMAT

ConversionType 클래스를 통해 제공되는 정적 상수 중 하나 또는 사용자 정의 내보내기 도구의 사용자 정의 데이터 유형을 사용하여 내보내는 데이터 형식을 conversionType 매개 변수에 지정합니다.

  • ConversionType.STRING_TYPE
  • ConversionType.XML_TYPE

TextFlow의 지정된 형식 표현을 반환하거나 오류 발생 시 null을 반환합니다.

매개 변수

source:flashx.textLayout.elements:TextFlow — 소스 내용입니다.
 
format:String — 출력 형식입니다.
 
conversionType:String — 내보낸 데이터의 유형입니다.

반환값
Object — TextFlow에서 가져온 객체입니다.또는 오류 발생 시 null입니다.

관련 API 요소

getExporter

()메서드 
public static function getExporter(format:String):flashx.textLayout.conversion:ITextExporter

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

나중에 TextFlow에서 소스 문자열 또는 XML 객체로 내보낼 때 사용할 수 있는 내보내기 변환기를 생성하여 반환합니다. 수행할 별개의 내보내기가 많은 경우 이 함수를 사용합니다. flashx.textLayout.conversion.TextConverter.export()를 호출하는 것과 같습니다.

이 클래스와 함께 제공된 정적 상수 중 하나를 사용하여 format 매개 변수를 지정합니다.

  • TextConverter.TEXT_FIELD_HTML_FORMAT
  • TextConverter.PLAIN_TEXT_FORMAT
  • TextConverter.TEXT_LAYOUT_FORMAT

형식이 여러 번 추가되면 처음 발견된 형식이 사용됩니다.

매개 변수

format:String — 내보낸 데이터의 대상 형식입니다.

반환값
flashx.textLayout.conversion:ITextExporter — 지정된 형식으로 내보낼 수 있는 ITextExporter 텍스트 변환기입니다.

관련 API 요소


예제  ( 예제 사용 방법 )

이 코드 단편은 getExporter 메서드를 사용하여 서식 있는 텍스트 내보내기를 반복적으로 수행하는 것을 보여 줍니다.

package flashx.textLayout.conversion.examples
{
    import flashx.textLayout.conversion.ConversionType;
    import flashx.textLayout.conversion.ITextExporter;
    import flashx.textLayout.conversion.TextConverter;
    import flashx.textLayout.elements.TextFlow;
    
    public class getExporter_example 
    {
        // Serialize the TextFlow into a String
        public function export(textFlow:TextFlow):String
        {
            var exporter:ITextExporter = TextConverter.getExporter(TextConverter.TEXT_LAYOUT_FORMAT);
            return exporter.export(textFlow, ConversionType.STRING_TYPE) as String;
        }
    }
}

getFormatAt

()메서드 
public static function getFormatAt(index:int):String

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

인덱스 형식의 이름을 반환합니다.

매개 변수

index:int

반환값
String

getFormatDescriptorAt

()메서드 
public static function getFormatDescriptorAt(index:int):FormatDescriptor

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

인덱스 형식의 FormatDescriptor를 반환합니다.

매개 변수

index:int

반환값
FormatDescriptor

getImporter

()메서드 
public static function getImporter(format:String, config:IConfiguration = null):flashx.textLayout.conversion:ITextImporter

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

소스 문자열, XML 객체 또는 사용자 정의 데이터 형식에서 TextFlow로 가져올 때 사용할 수 있는 가져오기 변환기를 생성하여 변환합니다. 별도의 가져오기를 많이 수행해야 하거나 가져오기 동안 오류를 처리하려면 이 메서드를 사용합니다. flashx.textLayout.conversion.TextConverter.importToFlow()를 호출하는 것과 같습니다.

이 클래스를 통해 제공되는 정적 상수 중 하나를 사용하여 format 매개 변수, MIME 유형 또는 사용자 정의 데이터 형식을 지정합니다.

  • TextConverter.TEXT_FIELD_HTML_FORMAT
  • TextConverter.PLAIN_TEXT_FORMAT
  • TextConverter.TEXT_LAYOUT_FORMAT

형식이 여러 번 추가되면 처음 발견된 형식이 사용됩니다.

매개 변수

format:String — 소스 내용의 형식입니다. flashx.textLayout.conversion.TextConverter.TEXT_LAYOUT_FORMAT, PLAIN_TEXT_FORMAT, TEXT_FIELD_HTML_FORMAT 등의 상수, MIME 유형 또는 사용자 정의 형식을 사용합니다.
 
config:IConfiguration (default = null) — 이 가져오기 동안 사용할 구성입니다. null은 현재 기본값을 사용함을 의미합니다. ITextImporter.configuration 속성을 사용하여 구성을 설정할 수도 있습니다.

반환값
flashx.textLayout.conversion:ITextImporter — 소스 데이터를 가져올 수 있는 ITextImporter 텍스트 가져오기 도구입니다.

관련 API 요소


예제  ( 예제 사용 방법 )

이 코드 단편은 getImporter 메서드를 사용하여 서식 있는 텍스트 가져오기를 반복적으로 수행하는 것을 보여 줍니다. 각각의 importToFlow 호출 시작 부분에서 오류가 제거되는 것에 유의합니다.

package flashx.textLayout.conversion.examples
{
    import flashx.textLayout.conversion.ITextImporter;
    import flashx.textLayout.conversion.TextConverter;
    import flashx.textLayout.elements.TextFlow;
    
    public class getImporter_example 
    {
        public function importAndCheckErrors():TextFlow
        {
            var markup:String = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'><p><span>Hello, World</span></p></TextFlow>";
            var importer:ITextImporter = TextConverter.getImporter(TextConverter.TEXT_LAYOUT_FORMAT);
            importer.throwOnError = false;
            var textFlow:TextFlow = importer.importToFlow(markup);
            if (!textFlow)
            {
                var errors:Vector.<String> = importer.errors;
                //deal with import errors
            }
            return textFlow;
        }
    }
}

importToFlow

()메서드 
public static function importToFlow(source:Object, format:String, config:IConfiguration = null):flashx.textLayout.elements:TextFlow

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

소스 내용에서 지정된 형식으로 TextFlow를 만듭니다.

이 클래스를 통해 제공되는 정적 상수 중 하나 또는 MIME 유형을 사용하여 format 매개 변수를 지정하거나 사용자가 등록한 가져오기 도구의 경우 사용자 정의 값을 사용합니다.

  • TextConverter.TEXT_FIELD_HTML_FORMAT
  • TextConverter.PLAIN_TEXT_FORMAT
  • TextConverter.TEXT_LAYOUT_FORMAT

매개 변수

source:Object — 소스 내용입니다.
 
format:String — 소스 내용의 형식입니다.
 
config:IConfiguration (default = null) — 새 TextFlow를 만들 때 사용할 IConfiguration입니다.

반환값
flashx.textLayout.elements:TextFlow — 소스에서 생성된 TextFlow 또는 오류 발생 시 null입니다.

관련 API 요소

removeFormat

()메서드 
public static function removeFormat(format:String):void

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

형식을 제거합니다. 형식이 여러 번 추가되면 제일 처음 발견된 형식만 제거됩니다.

매개 변수

format:String — 제거할 변환기 형식 문자열입니다.

removeFormatAt

()메서드 
public static function removeFormatAt(index:int):void

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

인덱스 위치에서 형식을 제거합니다.

매개 변수

index:int — 제거할 형식입니다.

상수 세부 정보

PLAIN_TEXT_FORMAT

상수
public static const PLAIN_TEXT_FORMAT:String = "plainTextFormat"

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

일반 텍스트 형식입니다. 간단한 서식 없는 문자열에서 TextFlow를 만들거나 TextFlow에서 간단한 서식 없는 문자열을 만들 때 사용합니다.

TEXT_FIELD_HTML_FORMAT

상수 
public static const TEXT_FIELD_HTML_FORMAT:String = "textFieldHTMLFormat"

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

HTML 형식입니다. HTML 형식을 사용하여 TextFlow에서 가져오거나 TextFlow로 내보낼 때 사용합니다. Text Layout Framework HTML은 flash.text 패키지의 TextField 클래스에서 지원하는 태그 및 특성 중 일부를 지원합니다.

다음 표에는 가져오기 및 내보내기 프로세스에 대해 지원되는 HTML 태그와 특성이 나와 있습니다. TextField에서는 지원하지만 Text Layout Framework에서는 지원하지 않는 태그와 특성은 지원되지 않는 것으로 설명되어 있습니다.

태그 설명
앵커 태그 <a> 태그는 하이퍼링크를 만들며 다음 특성을 지원합니다.
  • target: 페이지를 로드할 대상 윈도우의 이름을 지정합니다. 사용 가능한 옵션에는 _self, _blank, _parent_top 등이 있습니다. _self 옵션은 현재 윈도우의 현재 프레임을 지정하고, _blank는 새로운 윈도우를 지정하고, _parent는 현재 프레임의 부모를 지정하고, _top은 현재 윈도우의 최상위 프레임을 지정합니다.
  • href: URL을 지정합니다. URL은 절대 주소이거나, 페이지를 로드하는 SWF 파일 위치를 기준으로 한 상대 주소일 수 있습니다. URL에 대한 절대 참조의 예제로는 http://www.adobe.com을, 상대 참조의 예제로/index.html을 들 수 있습니다. 절대 URL 앞에는 http:// 접두어가 있어야 합니다. 그렇지 않으면 해당 URL이 상대 URL로 간주됩니다. 참고: TextField 클래스와 달리, ActionScript link 이벤트는 지원되지 않습니다. a:link, a:hovera:active 스타일도 지원되지 않습니다.
굵게 태그 <b> 태그는 텍스트를 굵은 글꼴로 렌더링합니다. 이때 사용된 글꼴이 굵은 글꼴을 지원해야 합니다.
행 분리 태그 <br> 태그는 텍스트에서 줄을 바꿉니다.
글꼴 태그 <font> 태그는 텍스트를 표시할 글꼴 또는 글꼴 목록을 지정합니다. 지원되는 특성은 다음과 같습니다.
  • color: 16진수 색상(#FFFFFF) 값만 지원됩니다.
  • face: 사용할 글꼴의 이름을 지정합니다. 다음 예제와 같이 글꼴 이름 목록을 쉼표로 구분하여 지정할 수도 있습니다. 이 경우 Flash Player에서는 사용 가능한 첫 번째 글꼴이 선택됩니다. 지정된 글꼴이 로컬 컴퓨터 시스템에 설치되어 있지 않거나 SWF에 포함되어 있지 않으면 Flash Player에서 대체 글꼴이 선택됩니다.
  • size: 글꼴의 크기를 지정합니다. 16 또는 18과 같이 절대 픽셀 크기를 사용할 수도 있고, +2 또는 -4와 같이 상대 포인트 크기를 사용할 수도 있습니다.
  • letterspacing: 각 문자의 오른쪽에 적용할 자간(수동 커닝)을 픽셀 단위로 지정합니다.
  • kerning: 커닝이 활성화되는지 아니면 비활성화되는지를 지정합니다. 0이 아닌 값을 사용하면 커닝이 활성화되고, 0을 사용하면 비활성화됩니다.
이미지 태그 <img> 태그를 사용하면 외부 이미지 파일(JPEG, GIF, PNG), SWF 파일 및 동영상 클립을 텍스트 내에 포함할 수 있습니다.

<img> 태그는 다음 특성을 지원합니다.

  • src: 이미지나 SWF 파일에 대한 URL 또는 라이브러리의 동영상 클립 심볼에 대한 링크 식별자를 지정합니다. 이 특성은 필수이며, 그 외의 다른 특성은 선택 사항입니다. 외부 파일(JPEG, GIF, PNG 및 SWF 파일)은 완전히 다운로드될 때까지 표시되지 않습니다.
  • width: 삽입할 이미지, SWF 파일 또는 동영상 클립의 폭(픽셀 단위)입니다.
  • height: 삽입할 이미지, SWF 파일 또는 동영상 클립의 높이(픽셀 단위)입니다.

참고: TextField 클래스와 달리, align, hspace, vspace, idcheckPolicyFile 특성은 지원되지 않습니다.

기울임체 태그 <i> 태그는 대상 텍스트를 기울임체로 표시합니다. 이때 사용된 글꼴이 기울임체를 지원해야 합니다.
목록 항목 태그 참고: TextField 클래스와 달리, 목록 항목 태그는 지원되지 않습니다.
단락 태그 <p> 태그는 새로운 단락을 만듭니다. <p> 태그는 다음 특성을 지원합니다.
  • align: 단락 내에서 텍스트 정렬 방법을 지정합니다. left, right, justifycenter 값을 사용할 수 있습니다.
  • class: 스타일 지정에 사용할 수 있는 클래스 이름을 지정합니다.
span 태그 <span> 태그는 다음 특성을 지원합니다.
  • class: 스타일 지정에 사용할 수 있는 클래스 이름을 지정합니다. span 태그는 스타일 시트에 정의된 스타일을 설정하는 데 사용되는 경우가 많지만 TLFTextField 인스턴스는 스타일 시트를 지원하지 않습니다. span 태그를 TLFTextField 인스턴스에 사용하여 스타일 속성이 있는 클래스를 참조할 수 있습니다.
  • 또는 <span fontFamily="Arial">Hi there</span>와 같이 속성을 직접 span 태그에 넣을 수도 있습니다. 그러나 중첩된 span 태그는 지원되지 않습니다.
텍스트 서식 태그

<textformat> 태그를 사용하면 행간, 들여쓰기, 여백, 탭 위치 등 TextFormat 클래스의 단락 서식 속성 하위 집합을 텍스트 필드 내에서 사용할 수 있습니다. <textformat> 태그는 내장된 HTML 태그와 함께 사용할 수 있습니다.

<textformat> 태그에는 다음과 같은 특성이 있습니다.

  • indent: 왼쪽 여백에서 단락의 첫 글자 사이의 들여쓰기를 지정하며 TextFormat.indent에 해당합니다. 양수와 음수를 모두 사용할 수 있습니다.
  • blockindent: 단락의 모든 줄에 적용하는 들여쓰기를 지정합니다.
  • leftmargin: 단락의 왼쪽 여백을 포인트 단위로 지정하며 TextFormat.leftMargin에 해당합니다.
  • rightmargin: 단락의 오른쪽 여백을 포인트 단위로 지정하며 TextFormat.rightMargin에 해당합니다.
  • leading: 이전 줄의 디센트와 현재 줄의 어센트 간의 행간(줄 높이)을 픽셀 단위로 지정합니다.
  • tabstops: 단락의 탭 정지 위치 목록을 쉼표로 구분하여 지정합니다.
밑줄 태그 <u> 태그는 대상 텍스트에 밑줄을 긋습니다.

가져온 태그가 알 수 없는 태그인 경우 textFieldHTMLFormat 가져오기 도구는 단일 FlowElement의 typeName 속성을 해당 태그 이름으로 설정하거나 typeName 속성을 태그 이름으로 설정한 상태로 DivElement 또는 SubParagraphGroupElement를 만듭니다.

기본값과 다르면 textFieldHTMLFormat 내보내기 도구가 typeName을 XML 태그로 내보냅니다.

관련 API 요소

TEXT_LAYOUT_FORMAT

상수 
public static const TEXT_LAYOUT_FORMAT:String = "textLayoutFormat"

언어 버전: ActionScript 3.0
런타임 버전: Flash Player 10, AIR 1.5

TextLayout 형식입니다. TextLayout 마크업 형식을 사용하여 TextFlow에서 가져오거나 TextFlow로 내보낼 때 사용합니다. 텍스트 레이아웃 형식은 다음 오류를 감지합니다.

  • 예상치 못한 네임스페이스
  • 알 수 없는 요소
  • 알 수 없는 속성

TextConverter_example.as

다음 예제에서는 TextConverter 변환 클래스의 사용 방법을 보여 줍니다. 표준 마크업 형식의 텍스트를 TextFlow 객체로 가져온 후 표시합니다. 그런 다음 텍스트를 XML 형식으로 내보냅니다.

package flashx.textLayout.conversion.examples 
{
    import flash.display.Sprite;
    import flashx.textLayout.container.ContainerController;
    import flashx.textLayout.elements.TextFlow;
    import flashx.textLayout.conversion.TextConverter;
    import flashx.textLayout.conversion.ConversionType;

    public class TextConverter_example extends Sprite
    {
        public function TextConverter_example()
        {
            var markup:String = "<TextFlow xmlns='http://ns.adobe.com/textLayout/2008'><p><span>Hello, World</span></p></TextFlow>";
            var textFlow:TextFlow = TextConverter.importToFlow(markup, TextConverter.TEXT_LAYOUT_FORMAT);
            textFlow.flowComposer.addController(new ContainerController(this, 200, 50));
            textFlow.flowComposer.updateAllControllers();
            //export to XML
            var xmlOut:XML = TextConverter.export(textFlow,TextConverter.TEXT_LAYOUT_FORMAT, ConversionType.XML_TYPE) as XML;
        }
    }
}




[ X ]영어로 표시되는 이유
ActionScript 3.0 참조 설명서의 내용이 영어로 나타납니다.

ActionScript 3.0 참조 설명서 중 일부는 전체 언어로 번역되지 않았습니다. 언어 요소가 번역되지 않은 경우 영어로 나타납니다. 예를 들어 ga.controls.HelpBox 클래스는 어떤 언어로도 번역되지 않았습니다. 그러므로 한국어 버전의 참조 설명서에서 ga.controls.HelpBox 클래스는 영어로 나타납니다.