# Events on images

**URL:** https://forum.kirupa.com/t/events-on-images/37232
**Category:** flash
**Created:** [December 7, 2003, 5:36pm UTC](https://forum.kirupa.com/t/events-on-images/37232 "2003-12-07T17:36:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mairoLT](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@mairoLT](https://forum.kirupa.com/u/mairoLT)
#### Post date: [December 7, 2003, 5:36pm UTC](https://forum.kirupa.com/t/events-on-images/37232/1 "2003-12-07T17:36:47Z")

</div>

Hello everyone,

May You help me? I’m new in flash, but i need fast to understand some things.  
I have written action script which is loading and scrolling external images. ([http://rafes.ktu.lt/~mairo/flash/](http://rafes.ktu.lt/~mairo/flash/) )  
But I don’t know how to do if I rollover on image, it should change color (maybe become black/white or \_alpha parameter is changed (it’s not very important).  
On image release, should change text.  
now my script is:

```
_root.createTextField("textas",10,3,0,100,50);
_global.textas.text="";
_global.pav_sk = 8; // how many images
_global.parastes = 10; //space between images
_global.plotis = 150; //image width
_global.aukstis = 120; //image hight
_global.prad_x = 0; //x coordinate of image
_global.prad_y =0; //y coordinate of image

```

\_root.onLoad = \_global.funkcija = function() {

```
textas.text="kint:"+prad_x;

 _root.createEmptyMovieClip("main", 0);
main._x = prad_x;
main._y = prad_y;
for (cont=1; cont&lt;=pav_sk; cont++) {
	_root.main.createEmptyMovieClip("immagine"+cont, cont);
	with (_root.main["immagine"+cont]) {
		loadMovie("img"+cont+".jpg");
		_x = (plotis+parastes)*(cont-1);
		_y = aukstis/3;

```

///\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
//_ **THIS IS NOT WORKING**  
onRelease =function() {  
textas.text=“paspausta:”+count;  
}  
//_\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

```
	}
	
}

```

};

i hope you understood whats the problem…  
if it’s not clear, i have uploaded fla. [http://rafes.ktu.lt/~mairo/flash/test3.fla](http://rafes.ktu.lt/~mairo/flash/test3.fla)

Thanks in advance for Your help.
