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.