Get Adobe Flash player

  • Price: $5.00
  • [Purchase]
  • Language Version: ActionScript 3.0
  • Runtime Version: AIR 1+, Flash Player 9+
  • Description: Creates a ToolTip component that can be attached to any DisplayObject
  • Version: 1.2.1
  • Author: Cameron Tullos
  • properties | methods | installation & usage

Public Properties

ToolTip inherits the Sprite Properties

autoSize | caption | captionPosition | content | contentType | delay
| display | dropShadow | linkage | margin | pointer | pointerPosition | position | skin | target | textField | textMargin | url | wordWrap

  • autoSize:String gets or sets the autoSize property. Controls automatic sizing and alignment of text fields.
  • default = TextFieldAutoSize.NONE
  • caption:String gets or sets the text of the component.
  • default = null
  • captionPosition:String gets or sets the position of the caption relative to the content
  • default = ‘BOTTOM’

    LEFT
    TOP
    RIGHT
    BOTTOM

  • content:DisplayObject gets the content DisplayObject. A reference to the loaded DisplayObject.
  • default = null
    see contentType, linkage, url
  • contentType:String gets or sets the content type of the components content.
  • default = text
    see content, linkage, url
  • delay:Number gets or sets the delay property. Sets the time in seconds before the component displays when the target is moused over
  • default = 0.5
  • display:Number gets or sets the display property. Length of time in seconds the component displays
  • default = 5
  • dropShadow:Object gets or sets the dropShadow property
  • default = Object({color:0×000000, alpha:0.5, blurX:5, blurY:5, angel:45, distance:2});
    see DropShadowFilter
  • linkage:DisplayObject gets or sets the the linkage property. Identifies the location of the the class name of a movie clip in the library, a reference to a display object, or a instance name of a movie clip on the same level as the component when the contentType is movieclip.
  • see contentType
  • margin:Number gets or sets the margin property. Sets the distance from the edge of the compent to place the pointer.
  • default = 10
  • pointer:DisplayObject gets the pointer DisplayObject. A reference to the component’s pointer.
  • see pointerPosition
  • pointerPosition:String gets or sets the position of the pointer.
  • default = ‘BL’

    TL: Top Left
    TR: Tor Right
    BL: Bottom Left
    BR: Bottom Right
    LT: Left Top
    LB: Left Bottom
    RT: Right Top
    RB: Right Bottom

  • postion:String gets or sets the position of the component.
  • default = ‘auto’

    auto: follows the mouse pointer
    absolute: locks to the components x,y position

  • skin:DisplayObject A reference to the component’s skin DisplayObject.
  • target:DisplayObject gets or sets the DisplayObject to attach the component to
  • default = null
  • textField:TextField A reference to the component’s internal text field.
  • textMargin:Object gets or sets the text margins. A reference to the distance around the component’s content.
  • default = Object({left: 10, top: 10, right: 10, bottom: 10})
  • url:String gets or sets the content path. An absolute or relative URL that identifies the location of the SWF or image file to load when the contentType is image
  • wordWrap:Boolean gets or sets the wordWrap property. A Boolean value that indicates whether the text field has word wrap
  • default = false

    Public Methods

    ToolTip inherits the Sprite Methods

    hide | setSize | setStyle | show

  • hide()
  • Tweens the component’s alpha property to 0 and sets its visibility to false
  • setSize(width:Number, height:Number)
  • Sets the width and height of the component when autoSize equals String(‘none’)
  • setStyle(direction:String)
  • Sets a style property on this component instance.

  • dropShadow:String
  • sets the dropShadow
  • embedFonts:Boolean
  • embeds the caption font
  • textFormat:TextFormat
  • sets text formatting on the caption
  • show(index:uint)
  • Sets the component’s visibility to true and tweens its alpha 1

    Installation

    1. Download the component and run the ToolTip.mxp
    2. The Adobe Extension Manager will open and install the component to Flash
    3. Open flash and navigate to the components window. There should now be a new section titled “Illumifi” where you’ll see a component titled: ToolTip
      Note: if flash is open when you install the mxp, close it and reopen
    4. You can now drag the component to the stage and customize it’s options in the component inspector window


    You must be logged in to post a comment.