Professional Web Applications Themes

Problem with dynamic text inside button instance - Macromedia Flash Actionscript

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 ...

  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. #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

  3. #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

  4. #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

Similar Threads

  1. Question Adding Instance name to Dynamic Text Box
    By Frustrated in forum Brainstorming Area
    Replies: 0
    Last Post: February 26th, 06:33 PM
  2. Embed button instance inside movie clip
    By gaGeet in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 11th, 04:51 PM
  3. Trying to track an instance's position relative to the stage - instance is inside an MC
    By _posted.by\(Vern\); in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: January 20th, 04:52 AM
  4. dynamic text - instance name or var name
    By ursulaminor webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 3
    Last Post: January 18th, 03:25 PM
  5. How do I link from inside a dynamic text box?
    By abeconnally webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 5
    Last Post: December 10th, 06:56 PM

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
  •  

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