Problem with dynamic text inside button instance

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default Problem with dynamic text inside button instance

    Hi people

    I want to have dynamic text inside the button because when my program
    initiates, it loads the data (from XML file) to put inside the text of the
    button
    However, when I use dynamic text inside a button, and put my mouse over that
    button, I am able to select the text, but not click the button

    I have properly defined the hit area and everything as well, but the button
    area is still not clickable
    Does anybody have a solution that will help me achieve my goal

    Thanks. =
    Sorry if multiple postings show up, it always does this but I don't know why

    gaGeet Guest

  2. Similar Questions and Discussions

    1. dynamic text inside mask
      i am trying to place a piece of dynamic text inside a mask, but it is not visible. its fine with normal text and the variable is definitely being...
    2. Make dynamic text work in a movie clip inside...
      What do I need to do to make dynamic text work inside a movie clip inside a button? I figured out it has something to do wih the path. But I...
    3. Embed button instance inside movie clip
      Hi people Currently, I have created an empty movie clip, and loaded it with a jpeg picture. Something like this.. ...
    4. dynamic text - instance name or var name
      hello all I've worked through some tutorials on loading text intoo a dynamic text box from an array and it works just fine. As soon as I make the...
    5. How do I link from inside a dynamic text box?
      I have a dynamic web site set up using Flash MX 2004 Pro. I am trying to load some dunamic html into a textfiled that will be able to call...
  3. #2

    Default Re: Problem with dynamic text inside button instance

    I was having the same problem and finally gave up! I worked it out by loading
    the buttons as movie clips and then use the onRelease property for the movie
    clip.

    myClip_mc.text = "what ever"
    myClip_ onRelease = function()
    code I wanted executed


    I used the onRollover to enlarge button and onRollout to return to normal
    state. This gave the user a visual to which button the were on

    I hope this help

    chrism59 Guest

  4. #3

    Default Re: Problem with dynamic text inside button instance

    Thanks for the suggestion. =

    How do I load a button as a movieClip

    instanceName.loadMovie(buttonName); ?
    Not sure how to do this..

    Also, can I still load in contents from the XML file into the text of the
    button? Or should I say movie

    gaGeet Guest

  5. #4

    Default Re: Problem with dynamic text inside button instance

    You need to make the dynamic text NON-SELECTABLE first. Contents from your xml can be loaded into anything, included your button's dynamic text.
    Unregistered Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139