PostIT

while scratching my head…

MovieClip.createTextField December 30, 2008

Filed under: Actionscript, Flash — Remo @ 10:56 pm
Tags: , , , ,

MovieClip.createTextField

Availability
Flash Player 6.

Usage
myMovieClip .createTextField ( instanceName , depth , x , y , width , height )

Parameters
instanceName A string that identifies the instance name of the new text field.

depth A positive integer that specifies the depth of the new text field.

x An integer that specifies the x coordinate of the new text field.

y An integer that specifies the y coordinate of the new text field.

width A positive integer that specifies the width of the new text field.

height A positive integer that specifies the height of the new text field.

Returns
Nothing.

Description
Method; creates a new, empty text field as a child of the movie clip specified by the MovieClip parameter. You can use the createTextField method to create text fields while a movie plays. The text field is positioned at ( x , y ) with dimensions width by height . The x and y parameters are relative to the container movie clip; these parameters correspond to the _x and _y properties of the text field. The width and height parameters correspond to the _width and _height properties of the text field.

The default properties of a text field are as follows:

type = "dynamic"
border = false
background = false
password = false
multiline = false
html = false
embedFonts = false
variable = null
maxChars = null

A text field created with createTextField receives the following default TextFormat object:

font = "Times New Roman"
size = 12
textColor = 0x000000
bold = false
italic = false
underline = false
url = ""
target = ""
align = "left"
leftMargin = 0
rightMargin = 0
indent = 0
leading = 0
bullet = false
tabStops = [] (empty array)

Example
The following example creates a text field with a width of 300, a height of 100, an x coordinate of 100, a y coordinate of 100, no border, red, and underlined text.

_root.createTextField("mytext",1,100,100,300,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = false;

myformat = new TextFormat();
myformat.color = 0xff0000;
myformat.bullet = false;
myformat.underline = true;

mytext.text = "this is my first test field object text";
mytext.setTextFormat(myformat);

See also
TextFormat (object)

Source:

http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary513.html

 

Windows 2003 Server does not stream FLV videos August 22, 2008

Filed under: Flash, IIS — Remo @ 8:46 am
Tags: , , , ,

Solution

Please be aware that these steps do not resolve any issue with Flash, but are a configuration step for Microsoft Windows 2003 and Microsoft IIS Server 6.0. Any difficulties in executing these instructions or any errors that may arise from modifying your system settings should be addressed to Microsoft. For more details, please refer to your IIS documentation.

  1. On the Windows 2003 server, open the Internet Information Services Manager.
  2. Expand the Local Computer Server.
  3. Right-click the local computer server and select Properties.
  4. Select the MIME Types tab.
  5. Click New and enter the following information:
    • Associated Extension box: .FLV
    • MIME Type box: application/octet-stream (some friend told me to use flv-application/octet-stream)
  6. Click OK.
  7. Restart the World Wide Web Publishing service.

source:

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19439