# Strangeness

**URL:** <https://forum.kirupa.com/t/strangeness/171575>\
**Category:** Uncategorized\
**Created:** [December 6, 2005, 5:42pm UTC](https://forum.kirupa.com/t/strangeness/171575 "2005-12-06T17:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joene](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joene](https://forum.kirupa.com/u/joene)\
**Post date:** [December 6, 2005, 5:42pm UTC](https://forum.kirupa.com/t/strangeness/171575/1 "2005-12-06T17:42:13Z")

</div>

Hi, I couldn’t really figure this one out, although it will probably be very simple:

I have two versions of the same code:

[color=Gray] // the first one[/color]  
login\_mc.login\_btn.[color=RoyalBlue]onRelease[/color] = login(login\_mc.login\_txt.[color=RoyalBlue]text[/color], login\_mc.pass\_txt.[color=RoyalBlue]text[/color]);

[color=Gray] // the second one[/color]  
login\_mc.login\_btn.[color=RoyalBlue]onRelease[/color] = [color=RoyalBlue]function/color {  
login(login\_mc.login\_txt.[color=RoyalBlue]text[/color], login\_mc.pass\_txt.[color=RoyalBlue]text[/color]);  
}

Now, I thought these 2 versions would do exactly the same. But when I test my movie, the first one is automaticly being executed without touching anything, although I clearly said “blabla.onRelease”.  
The second one does the trick obviously, but what I don’t get is that the first one is being executed when it doesn’t have to be.

Anyone? Help is - as usal - greatly appreciated.
