TITLE:Flash SWF format - EditText
- テキストツールで張り付けたオブジェクトのデータを表現するタグ
#contents
* (37) DefineEditText [#tag37]
- http://www.m2osw.com/swf_tag_defineedittext
+----------------------------------------------
| tag & length | edit_id | flag1 | flag2 |...
| 37 | | | |
+----------------------------------------------
< 2 or 6 bytes ><-2 bytes><-1 byte-><-1 byte->
<------------------ length ---(最後まで)
--- flag 詳細
flag1
+--------------------------------------------------------------------------------+
|has_text|word_wrap|multiline|password|readonly|has_color|has_max_length|has_font|
+--------------------------------------------------------------------------------+
<- 1bit ><- 1 bit -> ....
flag2 ↓ver>=6
+-----------------------------------------------------------------------+
| - |auto_size|has_layout|no_select| border | - | html |use_outlines|
+-----------------------------------------------------------------------+
<-1bit-><- 1 bit -> ....
- flag による (has_font = 1 の時だけ存在する)
----------------------------------
...| font_id_ref | font_height |
----------------------------------
<- 2 bytes -> <- 2 bytes ->
- flag による (各々 has_~ = 1 の時だけ存在する)
---------------------------
...| color | max_length |
---------------------------
<- 4 bytes -> <- 2 bytes ->
(= RGBA)
- flag による (has_layout = 1 の時だけ存在する)
--------------------------------------------------------------
...| align | legt_margin | right_margin | indent | leading |
--------------------------------------------------------------
<-1byte-><- 2 bytes -><- 2 bytes -><2 bytes><-2 bytes->
- 共通 (常に存在する)
----------------------
...| variable_name |
----------------------
<-- string -->
- flag による (has_text = 1 の時だけ存在する)
---------------------
...| initial_text |
---------------------
<-- string -->
- string のデータ構造はこちら参照 > [[Flash/SWF/format/String]]