SWF::Builder::Character::EditText 0.16
Sponsored Links
SWF::Builder::Character::EditText 0.16 Ranking & Summary
File size:
0.16 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
816
Date added:
2007-08-13
Publisher:
Yasuhiro Sasama
SWF::Builder::Character::EditText 0.16 description
SWF::Builder::Character::EditText is a SWF dynamic editable text object.
SYNOPSIS
my $text = $mc->new_dynamic_text( $font )
->size(10)
->color(000000)
->text(This is a text.);
my $text_i = $text->place;
my $field = $mc->new_input_field;
$field->place;
^This module creates dynamic editable text objects, which can be changed at playing time.
Basic dynamic editable text object
$etext = $mc->new_edit_text( [$font, $text] )
returns a new basic dynamic editable text object. It has interfaces to raw DefineEditText tag. $font is an SWF::Builder::Font object.
$etext->font( $font )
applies the font to the text. $font is an SWF::Builder::Font object. Unlike static text, the font is applied to the whole text. If the text will be changed in the playing time, you should add glyph data of all characters which will be used to the font by $font->add_glyph or turn off the embed flag of the font.
$etext->size( $size )
sets a font size to $size in pixel. Unlike static text, the font size of the whole text is changed.
$etext->color( $color )
sets color of the text. The color can take a six or eight-figure hexadecimal string, an array reference of R, G, B, and optional alpha value, an array reference of named parameters such as [Red => 255], and SWF::Element::RGB/RGBA object. Unlike static text, the color is applied to the whole text.
$etext->text( $string )
writes the $string.
$etext->leading( $leading )
sets the vertical distance between the lines in pixel.
$etext->box_size( $width, $height )
sets the bounding box of the text and stops auto-sizing the box. When either $width or $height is undef, it is unchanged. Fixing bounding box may cause unexpected text clipping. You should set DefineEditText flag Multiline and/or WordWrap. See SWF::Element.
$etext->draw_border
draws the border.
$etext->align( left / right / center / justify )
sets the text alignment.
$etext->methos for SWF::Element::Tag::DefineEditText
You can control details of the texts to call methods for DefineEditText tag. See SWF::Element.
Preset dynamic text object
The following objects are inheritants of the basic dynamic editable text. These are preset some proper flags of DefineEditText tag.
$dtext = $mc->new_dynamic_text( [$font, $text] )
returns a new dynamic text. It is read-only, multiline text enabled, and auto-sized its bounding box.
$htmltext = $mc->new_html_text( [$html] )
returns a new HTML text. It is read-only, multiline text enabled, and auto-sized its bounding box. The text is treated as a subset of HTML. Supported tags are < a >, < b >, < br >, < font >, < i >, < img >, < li >, < p >, < span >, < u >, and two special tags, < tab > and < textformat >. See Macromedia Flash File Format Specification and ActionScript Reference Guide for further information.
$htmltext->use_font( $font, ... )
tells $htmltext what fonts are used in the HTML. In general, upright, italic, bold, and bold italic font are in the different TrueType font files. You should prepare 2-4 fonts if you use < b > and < i > tags, like this:
my $fp = $ENV{SYSTEMROOT}./fonts; # for Windows.
my $font = $m->new_font("$fp/arial.ttf");
$font->add_glyph(a, z);
my $fonti = $m->new_font("$fp/ariali.ttf");
$fonti->add_glyph(a, z);
my $ht = $m->new_html_text;
$ht->text(test < i >string< /i >< /font >);
$ht->use_font($font, $fonti);
$mc->new_text_area( $width, $height )
returns a new editable text area. It takes area width and height in pixel.
$mc->new_input_field( [$length] )
returns a new one-line input field. $length is a max length of input string.
$mc->new_password_field( [$length] )
returns a new one-line password field. $length is a max length of input string.
SYNOPSIS
my $text = $mc->new_dynamic_text( $font )
->size(10)
->color(000000)
->text(This is a text.);
my $text_i = $text->place;
my $field = $mc->new_input_field;
$field->place;
^This module creates dynamic editable text objects, which can be changed at playing time.
Basic dynamic editable text object
$etext = $mc->new_edit_text( [$font, $text] )
returns a new basic dynamic editable text object. It has interfaces to raw DefineEditText tag. $font is an SWF::Builder::Font object.
$etext->font( $font )
applies the font to the text. $font is an SWF::Builder::Font object. Unlike static text, the font is applied to the whole text. If the text will be changed in the playing time, you should add glyph data of all characters which will be used to the font by $font->add_glyph or turn off the embed flag of the font.
$etext->size( $size )
sets a font size to $size in pixel. Unlike static text, the font size of the whole text is changed.
$etext->color( $color )
sets color of the text. The color can take a six or eight-figure hexadecimal string, an array reference of R, G, B, and optional alpha value, an array reference of named parameters such as [Red => 255], and SWF::Element::RGB/RGBA object. Unlike static text, the color is applied to the whole text.
$etext->text( $string )
writes the $string.
$etext->leading( $leading )
sets the vertical distance between the lines in pixel.
$etext->box_size( $width, $height )
sets the bounding box of the text and stops auto-sizing the box. When either $width or $height is undef, it is unchanged. Fixing bounding box may cause unexpected text clipping. You should set DefineEditText flag Multiline and/or WordWrap. See SWF::Element.
$etext->draw_border
draws the border.
$etext->align( left / right / center / justify )
sets the text alignment.
$etext->methos for SWF::Element::Tag::DefineEditText
You can control details of the texts to call methods for DefineEditText tag. See SWF::Element.
Preset dynamic text object
The following objects are inheritants of the basic dynamic editable text. These are preset some proper flags of DefineEditText tag.
$dtext = $mc->new_dynamic_text( [$font, $text] )
returns a new dynamic text. It is read-only, multiline text enabled, and auto-sized its bounding box.
$htmltext = $mc->new_html_text( [$html] )
returns a new HTML text. It is read-only, multiline text enabled, and auto-sized its bounding box. The text is treated as a subset of HTML. Supported tags are < a >, < b >, < br >, < font >, < i >, < img >, < li >, < p >, < span >, < u >, and two special tags, < tab > and < textformat >. See Macromedia Flash File Format Specification and ActionScript Reference Guide for further information.
$htmltext->use_font( $font, ... )
tells $htmltext what fonts are used in the HTML. In general, upright, italic, bold, and bold italic font are in the different TrueType font files. You should prepare 2-4 fonts if you use < b > and < i > tags, like this:
my $fp = $ENV{SYSTEMROOT}./fonts; # for Windows.
my $font = $m->new_font("$fp/arial.ttf");
$font->add_glyph(a, z);
my $fonti = $m->new_font("$fp/ariali.ttf");
$fonti->add_glyph(a, z);
my $ht = $m->new_html_text;
$ht->text(test < i >string< /i >< /font >);
$ht->use_font($font, $fonti);
$mc->new_text_area( $width, $height )
returns a new editable text area. It takes area width and height in pixel.
$mc->new_input_field( [$length] )
returns a new one-line input field. $length is a max length of input string.
$mc->new_password_field( [$length] )
returns a new one-line password field. $length is a max length of input string.
SWF::Builder::Character::EditText 0.16 Screenshot
Advertisements
SWF::Builder::Character::EditText 0.16 Keywords
SWF
EditText
DefineEditText
EditText 0.16
HTML
Editable text
text object
Bounding box
text
font
new
dynamic
object
editable
SWF::Builder::Character::EditText
SWFBuilderCharacterEditText
Bookmark SWF::Builder::Character::EditText 0.16
SWF::Builder::Character::EditText 0.16 Copyright
WareSeeker periodically updates pricing and software information of SWF::Builder::Character::EditText 0.16 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of SWF::Builder::Character::EditText 0.16 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
convert pdf to editable text
editable text area
scan editable text
text objects
editable text fields in pdf
pdf to editable text
text object model
editable text javascript
non editable text box
javascript text object
scanning editable text
editable text in flash
text object javascript
edible fruit
object lessons
dynamic cooking systems
editable text software
crystal report text object
Related Software
SWF::Builder::Character::Sound is a SWF Sound character. Free Download
SWF::Builder::ActionScript is a SWF ActionScript object. Free Download
CGI::Builder::Auth::UserAdmin is a Perl module for the management of HTTP server user databases. Free Download
SWF Optimizer reduces SWF files size in a few steps. Free Download
Skypz Factory Builder v2.3 is a complete store system Free Download
Asymptopia Crossword Builder project is a math and text crossword builder for education. Free Download
SWF::Element is a set of classes of SWF tags and elements. Free Download
GD::Text is a Perl module with text utilities for use with GD. Free Download
Latest Software
Popular Software
Favourite Software