# Function syntax

**URL:** <https://forum.kirupa.com/t/function-syntax/269337>\
**Category:** flash\
**Created:** [August 26, 2008, 11:20am UTC](https://forum.kirupa.com/t/function-syntax/269337 "2008-08-26T11:20:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theSchtickler](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@theSchtickler](https://forum.kirupa.com/u/theSchtickler)\
**Post date:** [August 26, 2008, 11:20am UTC](https://forum.kirupa.com/t/function-syntax/269337/1 "2008-08-26T11:20:25Z")

</div>

Could anyone please tell me if there is any difference btwn these two…

[AS]function hello(){  
trace(‘hello’);  
}

hello = function(){  
trace(‘hello again’);  
}[/AS]

Should I be using one instead of the other? Are they exactly the same?

Any help appreciated! Thanks
