Calculator

half_btn.onRelease = function() {
	output1 = input1/2;
};

i have that applied to a button… but instead of dividing the input data in half… it subtracts 2… any ideas why?

works for me… you didn’t try 4 as your test number did you?

4 - 2 = 2
4 / 2 = 2

;):crazy:

nope… i tried all kinds of crazy numbers… im really confused… hmm… any ideas at all?
is it just that im testing it in flash?
or should i publish it first?

wooohooo… now its adding 2
this is so wierd

has to be something else somewhere in the file. Cuz that code works perfect…

hears the fla

oops… ok the half button works… i was lookin at it wrong
its actually the square button…

So it works? I don’t have to look at the file?

square_btn.onRelease = function() {
	output1 = input1^2;
};

sorry jubba, your not off the hook… thats the button to square it… why doesnt taht one want to work?

try

output = input*input

ohhh. whitty… hang on a sec

haha that works

i wish i could have thought of that:-\

thanks for the help with my stupid questions

no problem. :slight_smile: Glad I could help.:hat: :hat:

I’m glad you could too…

now im going to attempt to learn the boolean stuff… im sure ill have lots more questions soon

I was lookin at the online thingy to see who was doin what and i saw marz viewin this thread
hey marz

that was beyond pointless

lol 8] :hat: :rambo: :asian: <:} :cowboy:

lol… that was also pointless jubster(cool name eh?)

oh crap… this is turning into a random thread… im running away to random where its warm and safe and edukashinless