Modifying the News Ticker AS

Hi there !

I just finished to built the News Ticker (by kirupa) and it works perfectly.
It’s a very simple and very smart piece of code. Congratulations!

I want to slightly adjust it to meet my needs.

In the function display(pos) (see the code at http://www.kirupa.com/developer/mx2004/newsticker3.htm), I want to introduce some if/else statements to deactivate the onRelease action when no URL has been loaded from the XML file for the caption displayed.

I tried, inside this function, to write something like:

newsMC.onRelease = function() {
		if (url != 0) {
			getURL(url[pos], "_blank");
		}
	};

But it doesn’t work…

I think it’s because of the conditional statement (url != 0) which seems to be wrong…

May somebody can show me the right syntax?
Many thanks in advance for your help!