Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: New Flash Game
From: Darryl Carpenter
Date: Mon, 16 Nov 1998 11:56:57 +0000 (GMT)

Branden ,
Thats fantastic i used to play Mastermind as a kid .
Flashers should like it because its lateral thinking
Regards DAZ

Branden Hall wrote:

> Thanks for the input ya'll, I just got the @*#&$^ thing to work with all
> 4.0+ browsers.
> For ya'll who don't know the game I wrote worked fine in IE4, and N4.5,
> but would not work in N4.0-N4.07. Since it is an oddball javascript bug
> that other people may run into I'll explain:
> Apparently in N4.0-N4.07 the passed in argument of a FS command is
> rigidly set to being a string, and nothing that I have found will
> convert it to a number, not the Number function, not the usual x=x-0,
> not using a second variable (i.e. blah=arg), not even converting the
> second variable using either Number or the x=x-0 method, nothing. Now
> here is where my program was screwing up, it was trying to use that
> argument directly to index an array, (i.e. x=blah[arg];) thus since the
> argument was a string, and not the expected integer javascript was
> giving up without even the usual error barf. I solved the problem by
> using another variable and just using a few if statements. Setting the
> temp to be the numerical equivalent of the argument passed in. (i.e.
> if (arg=="1") { temp=1; } ) and then using the temp variable where I was
> directly using the argument fixed the problem immediately.
>
> For some reason IE4 and N4.5 does not set the argument to be a certain
> type and keeps it loosely typed as the javascript spec says variables
> are supposed to be. Oh well, after putzing with this thing for hours
> now I am *finally* going to go to sleep! Everyone please check out the
> game, even those of you who have already seen it because I have also
> updated the SWF! Here is the URL again for ya'll who may have missed it:
>
> http://www.wam.umd.edu/~bjhall/work.html
> Click on the Master Mind link at the bottom of the page.
> Thanks for being the best developer list I have ever been on ya'll!
>
> --
> -=Branden J. Hall=-
> Webmaster, Campus Recreation Services
> University of Maryland, College Park
> http://www.wam.umd.edu/~bjhall/
>
> ------------------------------------------------------------------------
> To UNSUBSCRIBE send: unsubscribe flasher in the body of an
> email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
> N.B. Email address must be the same as the one you used to subscribe.
> For info on digest mode send: info flasher to list-manageratshocker [dot] com

--
....http://www.flashcentral.com/
...Darryl Carpenter
......Managing Editor
.........NewsFlash
"http://www.ozemail.com.au/~victemsofdeath/the/light.htm"
........."victemsofdeathatozemail [dot] com [dot] au"
+--------------------+



------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com



Replies
  FLASH: New Flash Game, Branden Hall
  Re: FLASH: New Flash Game, John Croteau
  Re: FLASH: New Flash Game, Branden Hall

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]