# onRelease problem

**URL:** https://forum.kirupa.com/t/onrelease-problem/187843
**Category:** flash
**Created:** [May 2, 2006, 6:27pm UTC](https://forum.kirupa.com/t/onrelease-problem/187843 "2006-05-02T18:27:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![friggingmick](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@friggingmick](https://forum.kirupa.com/u/friggingmick)
#### Post date: [May 2, 2006, 6:27pm UTC](https://forum.kirupa.com/t/onrelease-problem/187843/1 "2006-05-02T18:27:31Z")

</div>

The script successfully loaded the image but couldn’t make the image to become an active link with onRelease function. So I’m dropping the script here hoping somebody give me a hand on this problem…

```auto
promoXML = new XML();
promoXML.ignoreWhite = true;
promoXML.onLoad = function(success) {
	if (success) {
		xmlNODE = this.firstChild.childNodes;			
		imageURL01 = xmlNODE[0].attributes.imageURL;
		thumbURL01 = xmlNODE[0].attributes.thumbURL;
		promoURL01 = xmlNODE[0].attributes.linkURL;
		imageURL02 = xmlNODE[1].attributes.imageURL;
		promo01.loadMovie(imageURL01);
		thumb01.loadMovie(thumbURL01);
		promo02.loadMovie(imageURL02);
		this.promo01.onRelease = function() {
			getURL(promoURL01);
		}
		}
}
promoXML.load("promo.xml");

```
