A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: New selector

  1. #1
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323

    New selector

    See this text I have written? when you drag your mouse over it you get what I call a "selection rectangle" I want to find a tutorial to customize it in flash.

    also i would like to know what its proper name is too. thank you.

    So yeah basically I am trying to make it so I can change the colour and shape of this "selection rectangle."

    Somebody please help. thank you
    Julian

  2. #2
    Bearded (M|G)od MyFriendIsATaco's Avatar
    Join Date
    Dec 2002
    Location
    Awesomeville.
    Posts
    3,045
    You can implement some hacks to changing the selection color, the main one being: http://yourpalmark.com/2007/08/13/ch...ic-textfields/

    You need to download and implement the SelectionColor class, but I only know if it existing in AS3. So if you need AS2, I think you're out of luck.

    But what do you mean by adjusting the shape? You just mean what text is selected? If so, there is a method of the TextField object called setSelection.
    PHP Code:
    myTextField.setSelection(010
    That will select the first 10 characters.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center