PDA

View Full Version : calculator



nobody
March 2nd, 2003, 08:36 PM
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?

Jubba
March 2nd, 2003, 08:39 PM
works for me... you didn't try 4 as your test number did you?

4 - 2 = 2
4 / 2 = 2

;):crazy:

nobody
March 2nd, 2003, 08:42 PM
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?

nobody
March 2nd, 2003, 08:44 PM
wooohooo.. now its adding 2
this is so wierd

Jubba
March 2nd, 2003, 08:45 PM
has to be something else somewhere in the file. Cuz that code works perfect...

nobody
March 2nd, 2003, 08:47 PM
hears the fla

nobody
March 2nd, 2003, 08:49 PM
oops.. ok the half button works.. i was lookin at it wrong
its actually the square button..

Jubba
March 2nd, 2003, 08:49 PM
So it works? I don't have to look at the file?

nobody
March 2nd, 2003, 08:51 PM
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?

Jubba
March 2nd, 2003, 08:51 PM
try

output = input*input

nobody
March 2nd, 2003, 08:52 PM
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

Jubba
March 2nd, 2003, 08:53 PM
no problem. :) Glad I could help.:hat: :hat:

nobody
March 2nd, 2003, 08:57 PM
I'm glad you could too...

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

nobody
March 2nd, 2003, 09:47 PM
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

Jubba
March 2nd, 2003, 09:51 PM
lol 8] :hat: :rambo: :asian: <:} :cowboy:

nobody
March 2nd, 2003, 09:52 PM
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

Kole
March 27th, 2004, 04:13 PM
What is pointless about viewing the thread?

I don't understand, maybe he was looking to see if you required help he could give, maybe it was out of his reach, maybe he wanted a laff, maybe he just had an interest.

What WAS pointless was the comment about him viewing it.

I looked at this thread, because I have just started some work on a calculator myself, and just wanted to see where people were having difficulty.

I was interested in viewing the source you posted, but alas I can not find it.

Nevermind eh?