matching event.target to XML node value

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

  1. #1

    Default matching event.target to XML node value

    I want Montana data to appear when I click the state of Montana (and so on
    throughout the 50 states). Montana is the instance name of my simple button on
    the state of Montana.

    Something's not quite right about this line of code:

    if (pEvent.target == myXML.statename[i]) { ...then do something ...}

    The code works fine if I say
    if (pEvent.target == Montana)

    Do I have to convert the myXML node value to text or something?

    Laura MS Guest

  2. Similar Questions and Discussions

    1. Unexpected event target when clicking on a Panel
      Below is a program that I wrote to improve my understanding of the event flow. It simply creates a Button within a Panel within an Application and...
    2. Compile error forDragManager.acceptDragDrop(event.target)
      Hi. The problem is that DragManager.acceptDragDrop expects a UIComponent but Event.target is typed as Object. You need to cast the target as a...
    3. Getting Error: Event Type 'flash.event:event' is unavailable ?????
      Hi, I am not using Cairngorm or anything, but trying to get an app built first without it then look into it. I am getting this error however...
    4. when is the target table is created in an table event monitor
      Hi Folks, Here is the question, In V8 an event monitor is created with the WRITE TO TABLE option. When are the target tables created? The event...
    5. Assign Javascript event handler function dynamically to a Flash object event?
      I have a Flash player object embedded in one of my web pages. I want to assign code to the OnReadyStateChange event for the object. Every...
  3. #2

    Default Re: matching event.target to XML node value

    Solution:
    if (pEvent.target.name == myXML.statename[i])
    Laura MS 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