SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2002
    Location
    Newcastle, UK
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Telltarget when a text input is used

    Hey,

    OK - here's my problem. I have a text input box, which when the user clicks on (i.e. to enter text, so that the cursor appears), needs to telltarget another clip to play. how can i do this in Flash MX? i've tried invisible buttons, tell target with onclick using the text input, but absolutely nothing is working

    Please help!! grrr



    thanx
    entropy

  2. #2
    SitePoint Zealot flashswami's Avatar
    Join Date
    Jun 2002
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First, you've got to think about stopping using tellTarget as its deprecated it probably won't be supported in the nexy version of Flash.

    On to your problem-

    Create a new movieclip that is totally empty and drag an instance of it from the library somewhere onto the stage- Now attach this code to the movieclip instance (NB- not in it, on it).

    Code:
    onClipEvent(load){
    Selection= path_and_name_of_your_text_field_goes_here;
    }
    onClipEvent(enterFrame){
      if(Selection.getFocus()!= null){
      path_and_name_of_movie_clip_goes_here.gotoAndPlay("desired_frame_label_goes_here");
    }
    HTH
    Last edited by flashswami; Jul 3, 2002 at 04:50.
    FlashSwami //Flash & server side fun
    DotDragNet //General web help
    [>Now available for freelance web work<]


Bookmarks

Posting Permissions

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