need AS2 help, to link my xml loaded image to url

  • lukedesigns
  • Born
  • Born
  • lukedesigns
  • Posts: 1

Post 3+ Months Ago

I need some help with the actionscript 2, needed to link my xml loaded image to url.

This is what I have in my xml file, for the image I need to link to a url:

<image imageUrl="_sustainable_small_1.jpg" />

I am not sure how to add the link tag, in the xml, correctly.
Also, I do not know the AS needed, for the .fla file.
Any help, would be greatly appreciated.
Thanks!
  • FlexNFlash
  • Born
  • Born
  • FlexNFlash
  • Posts: 1

Post 3+ Months Ago

You can add an url attrib to the xml node like:
<image imageUrl="_sustainable_small_1.jpg" url="sample.html"/>

In you actionscript you can use getURL like:
getURL(url, "_blank");

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 6 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.