xml file - need url to open in new window when image clicked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enjoio
    New Member
    • Dec 2008
    • 1

    xml file - need url to open in new window when image clicked

    Basically I just need the the link to open in a new browser window when the image is clicked.


    This is the content of the xml file:
    <!-- pages -->
    <section name="pages">

    <page name="home">
    <image imageUrl="_pic4 a.jpg" link="http://www.companyname .com"/>

    This is the actionscript for that image and associated link in the Flash file:
    onClipEvent (load) {
    imageNumber=0;

    imageProperties =_root.getCurre ntImageName(ima geNumber);
    loadMovie(_root .url+imagePrope rties['name'], this.cont.cont1 );
    url=imageProper ties['linkToOpen'];
    }
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Redirected to flash forum; hopefully someone has an answer there.

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Add an Event Handler for the image (movie clip or button), and then use getURL() to open the link.

      Comment

      Working...