dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Textfield movie clip problem

  1. #1
    Member
    Join Date
    Jun 2001
    Posts
    78

    Textfield movie clip problem

    I am trying to create an effect for an input textfield, where by when the user roll's over the textfield, the outline is highlighted. When the user set's the focus of the textfield, i.e. they click in the box, the bg colour changes.

    The way I have approached this problem, is to create a movie clip that acts as a button. Therefore we get the ability to use something like:

    movieclip.onRollover = function () {
    this.bg.play()
    }

    However, I am trying to target the input textfield within the movie clip, so that I can use:

    target.textfield.onSetFocus() command.

    The movieclip, due to acting like a button, does not allow me to select the text area.....

    Any thoughts on how I can get around this ?

    Regards,

    motorpilot

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    use the hitTest() method instead of button actions.
    gparis

  3. #3
    Member
    Join Date
    Jun 2001
    Posts
    78
    Thanks gparis...

    Couldn't see the wood for the tree's. So determined to use a movieclip with button functionality, that I lost site of what I was trying to achieve.

    Regards,

    motorpilot

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