Packagecom.adobe.photoshop.messages
Classpublic class TextMessage
InheritanceTextMessage Inheritance Message Inheritance Object
Implements IMessage

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

A TextMessage is a Message whose payload contains text data. These can be sent to or from Photoshop, and contain instructions or responses regarding commands or events.



Public Properties
 PropertyDefined By
 InheritedapiVersion : int
Message
  message : String
The text data that this TextMessage holds, though it can be blank.
TextMessage
 InheritedmessageLength : int
The message length of the Photoshop message.
Message
 InheritedmessageType : int
The type of message that IMessage represents.
Message
 InheritedtransactionID : int
The transaction ID of the Photoshop message.
Message
Public Methods
 MethodDefined By
  
Constructor
TextMessage
  
toStream():ByteArray
[override] Converts the TextMessage to a serialized format, which can be sent to Photoshop.
TextMessage
Property Detail
messageproperty
public var message:String

The text data that this TextMessage holds, though it can be blank.

Constructor Detail
TextMessage()Constructor
public function TextMessage()

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

Constructor

Method Detail
toStream()method
override public function toStream():ByteArray

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10

Converts the TextMessage to a serialized format, which can be sent to Photoshop.

Returns
ByteArray — A ByteArray that contains the raw, serialized format of this TextMessage.