# updateAfterEvent..not working?

**URL:** <https://forum.kirupa.com/t/updateafterevent-not-working/114408>\
**Category:** Uncategorized\
**Created:** [June 28, 2004, 11:03am UTC](https://forum.kirupa.com/t/updateafterevent-not-working/114408 "2004-06-28T11:03:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)\
**Post date:** [June 28, 2004, 11:03am UTC](https://forum.kirupa.com/t/updateafterevent-not-working/114408/1 "2004-06-28T11:03:54Z")

</div>

Hi,

Im not sure I have got the hang of updateAfterEvent but after reading Flashguru’s explanation I thought i had the basic concept :(. From what I understand it essentially refreshes the screen independent of the frame rate. With this is mind I made a simple function which changes the colour and alpha of clips on a menu using color.setTransform(), BUT unfortunately when i make a change and try to update the screen using updateAfter event nothing happens?? Shouldnt the mc’s be updated?

See below…

```auto

function updateMenu(loggedIn, oldVal, newVal, protected){
	trace("updateMenu");
	if (newVal == true){
		for(var item=0; item<disabledItems.length;item++){
			new Color(disabledItems[item]).setTransform({aa: '100'});
			disabledItems[item].enabled=true;
		}
	}else{
		for(var item=0; item<disabledItems.length;item++){
			new Color(disabledItems[item]).setTransform({aa: '25'});
			disabledItems[item].enabled=false;
		}
		
		//notify user they have just logged out
		//MovieActions.uploadMovie("login.swf,,logout");
	}
	updateAfterEvent();//should refresh screen!???
};

```

Thanks in advance! :sen:
