Founded in 1999, Jonwiz Media specializes in website development for small businesses, independant musicians and artists. Our clients include: mural painters, reggae musicians, makeup artists, fashion designers and more.

 

WizTextTyper Documentation

Author: Jonwiz Media
Last Modified: 03/13/08 18:08:45


Summary

WizTextTyper class:

WizTextTyper Properties:


WizTextTyper Methods:



WizTextTyper class

version: 3.0.3

description:

The famous WizTextTyper by Jonwiz Media, the leading Flash Typer Component on the web!
Now released as an Object Oriented AS2 Component! Sweet!

usage:

To install the WizTextTyper and begin using it, simply follow these steps below:

Import the component using the SWC file.

To use a SWC file in the Flash authoring environment:
  1. Close the Flash authoring environment.
  2. Copy the SWC file into the flash_root/en/Configuration/Components directory.
  3. Reload the Components panel.
  4. The component's icon should appear in the Components panel.

Using WizTextTyper in Flash

  1. Drag the WizTextTyper Component from the Components Panel to the Flash stage.
  2. Assign it an instance name.
  3. Set the various parameters in the parameters panel. font,fontsize,fontcolor,etc..
  4. Start typing the sentence using the setSentence method.

WizTextTyper Properties:

myFont

(String) The Font Name to be used.

myColor

(Color) The Font Color

myColorOver

(Color) The Font Color on RollOver.

mySize

(Number) The Font Size.

myWidth

(Number) The Width of the TextField.

myHeight

(Number) The Height of the TextField.

myLeading

(Number) The leading (line-height spacing) of the TextField.

myTypingSpeed

(Number) The speed in milliseconds of the typing interval.

has_border

(Boolean) Sets TextField border to true or false.

borderColor

(Color) Sets the TextField border color.

has_background

(Boolean) Sets TextField background to true or false.

myTextBgColor

(Color) Sets the TextField background color.

embed_fonts

(Boolean) Sets whether or not the TextField is using an Embedded Font

pauseCharacter

(String) Sets the character used to pause typing.

myText

(TextField) The instance name of the WizTextTyper TextField.


WizTextTyper Methods:

setTypingSpeed

description: Sets the speed interval in milliseconds. It must be called before WizTextTyper.setSentence(myString,go) is called.

usage: WizTextTyper.setTypingSpeed(100)

parameters:

  • speed (Number) The speed in milliseconds.

returns: Void.

getTypingSpeed

description: Gets the speed interval in milliseconds.

usage: WizTextTyper.getTypingSpeed()

returns: myTypingSpeed (Number) The speed interval in milliseconds.

setSentence

description: Sets the text to type, if the second parameter "go" is true, it will begin typing immediately.

usage: WizTextTyper.setSentence(myString,go)

parameters:

  • myString (String) The sentence to type.
  • go (Boolean) Start typing now or not. true or false

returns: Void.

beginTyping

description: Begins the typing, usually called after a WizTextTyper.setSentence("set text but dont start typing",false);
This is how you manually begin the typing if you passed false as the go (Boolean) argument to setSentence(myString,go).

usage: WizTextTyper.beginTyping()

returns: Void.

pauseTyping

description: Pauses the typing, this will stop the typing until WizTextTyper.resumeTyping() is called.

usage: WizTextTyper.pauseTyping()

returns: Void.

resumeTyping

description: Resumes the typing after WizTextTyper.pauseTyping() was called.

usage: WizTextTyper.resumeTyping()

returns: Void.

typeAgain

description: This restarts the typing

usage: WizTextTyper.typeAgain()

returns: Void.

setLeading

description: Sets the leading (line-height) of the text.

usage: WizTextTyper.setLeading(leading)

returns: Void.




generated with AS2docGenerator beta 0.5.3