1 Reply Latest reply on Feb 17, 2012 11:20 AM by adninjastrator

    Flash/XML Link Tag Target Issue.

    lloydcodrington Level 1

      Hi All,

      I have created a small application which takes it's information from an xml file and displayes it in a news ticker which is a flash Flash AS2 application.  However can someone tell me the correct way to format the link tag in the xml if there is a standard when wanting to state a target for the link?  The xml file currently looks like:

       

      <newsTicker>
      <item>
      <header>Test Message 1</header>
      <date>19/05/2012</date>
      <body>This is a newsfeed TEST for A.C.E. Consultancy - Designed by Bluespot Network</body>
      <link>http://www.bluespotnetwork.com</link>
      </item>
      <item>
      <header>Test Message 2</header>
      <date>19/05/2012</date>
      <body>This is a newsfeed TEST for A.C.E. Consultancy - Designed by Bluespot Network</body>
      <link>http://www.bluespotnetwork.com</link>
      </item>
      <item>
      <header>Test Message 3</header>
      <date>19/05/2012</date>
      <body>This is a newsfeed TEST for A.C.E. Consultancy - Designed by Bluespot Network</body>
      <link>http://www.bluespotnetwork.com</link>
      </item>
      </newsTicker>
      
      

      So what I want to do is to be able to open the link in a taget=_blank window however adding that to the end of the url does not currently work.  I have added a comma and also tried using a space, space and encompassing in quotes but none are working.  Any ideas would be greatly apprecuated.

       

      Regards,

      Lloyd

        • 1. Re: Flash/XML Link Tag Target Issue.
          adninjastrator Level 4

          The xml file only holds the <link> data, it has nothing to do with the actual getURL or navigateToURL function.... you'll find that in your actionscript.

          Look for something like this that takes your <link> data and inserts it into the getURL:

          newsMC.onRelease = function() {

          getURL(url[pos], "_blank");

          };

          and notice that the _blank has double quotes... "_blank".

          If currently set to "_self", then just change to "_blank".

          Best wishes,

          Adninjastrator