Skip to main content
May 9, 2008
Question

XML and Flash

  • May 9, 2008
  • 1 reply
  • 154 views
I recently got interested in flash and dove right into with a flash template. I have been editing it having some success, but now I am having problems. I'm trying to use a simple photo gallery and the template didn't come with a caption for the pictures so I added a dynamic text box and attempted to use AS. Basically I was trying to make it when you moused over the picture the caption appeared with the text from the XML files. All I can get to come up is undefined when I mouse over it. Here is my AS script, what I added is in red so the problem is probably around it.
This topic has been closed for replies.

1 reply

May 9, 2008
Off the bat I can see a syntax error:

_root.desc = photo_caption[this._parent.tn.no];

should be:

_root.desc = photo_caption[this._parent.tn_no];

with an underscore