# Modifying the News Ticker AS

**URL:** <https://forum.kirupa.com/t/modifying-the-news-ticker-as/213191>\
**Category:** flash\
**Created:** [January 17, 2007, 4:28pm UTC](https://forum.kirupa.com/t/modifying-the-news-ticker-as/213191 "2007-01-17T16:28:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Germaris](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@Germaris](https://forum.kirupa.com/u/Germaris)\
**Post date:** [January 17, 2007, 4:28pm UTC](https://forum.kirupa.com/t/modifying-the-news-ticker-as/213191/1 "2007-01-17T16:28:41Z")

</div>

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](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:

```auto
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!
