4 Replies Latest reply on Apr 18, 2008 3:01 AM by Newsgroup_User

    Can't get Selection of text member text to 'take'

    Bob220867 Level 1
      Here's a niggly little thing.

      So I have an editable text sprite that users put their name in but the I-beam is at the end and I'd like to hilite the text "Name" so that when they type it immediately clears it. I've used the code line

      sprite("myUserInput").member.selection = [0, 4]

      and it works...for a very short time. The selection doesn't stick. If I use on prepareFrame it is always selected but I can't put any more text in (except one character). If I use beginSprite it doesn't take. I've tried putting it in a frame script, in a sprite script, in a cast member. I'm know this is simple but I'm going round in circles

      Thanks