# AS3 help

**URL:** <https://forum.kirupa.com/t/as3-help/289613>\
**Category:** flash\
**Created:** [June 2, 2009, 2:46pm UTC](https://forum.kirupa.com/t/as3-help/289613 "2009-06-02T14:46:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k4rlos](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@k4rlos](https://forum.kirupa.com/u/k4rlos)\
**Post date:** [June 2, 2009, 2:46pm UTC](https://forum.kirupa.com/t/as3-help/289613/1 "2009-06-02T14:46:43Z")

</div>

I am getting an error with the following code:

[COLOR=Red]this.footerUp = false;[/COLOR]

//User has clicked on footer to move up  
function footerUp(p\_event : Event) {  
if(this.footerUp == false){  
Tweener.addTween(this.footerContainer.footerTopBar, {time:0.5, y:this.footerContainer.footerTopBar.y-40});  
Tweener.addTween(this.footerContainer.pullUp, {time:0.5, y:this.footerContainer.pullUp.y-40});  
Tweener.addTween(this.footerContainer.footerText, {time:0.5, y:this.footerContainer.footerText.y-40});  
[COLOR=Red] this.footerUp = true;[/COLOR]  
} else {  
Tweener.addTween(this.footerContainer.footerTopBar, {time:0.5, y:this.footerContainer.footerTopBar.y+40});  
Tweener.addTween(this.footerContainer.pullUp, {time:0.5, y:this.footerContainer.pullUp.y+40});  
Tweener.addTween(this.footerContainer.footerText, {time:0.5, y:this.footerContainer.footerText.y+40});  
[COLOR=Red] this.footerUp = false;[/COLOR]  
}  
}

the error is:

1168: Illegal assignment to function footerUp.

It is refering to the lines in red

Any ideas why?
