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

  • lukedesigns
  • Born
  • Born
  • No Avatar
  • Joined: Mar 22, 2010
  • Posts: 1
  • Status: Offline

Post March 22nd, 2010, 10:53 am

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!
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 22nd, 2010, 10:53 am

  • FlexNFlash
  • Born
  • Born
  • No Avatar
  • Joined: Mar 25, 2010
  • Posts: 1
  • Status: Offline

Post March 25th, 2010, 3:13 am

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 51 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.