Flasher Archive

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


Subject: Re: FLASH: Trick or Treat
From: John Croteau
Date: Fri, 2 Oct 1998 11:52:09 +0100

Hi William and all,

Just a warning that the JavaScript Random function used here does not
provide a equal odds for each image.

The 1.JPGs will appear randomly about 55% of the time.
The 2.JPGs will appear randomly about 35% of the time.
The 3.JPGs will appear randomly about 10% of the time.

What will be interesting is how (vector or bitmap) and how well (file
size and quality) that you convert each image for use in Flash.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

var image_count = 3

function tot(){
var left = Math.round(Math.random()*image_count
var middle = Math.round(Math.random()*image_count)
var right = Math.round(Math.random()*image_count)
if (left < 1) left = 1;
if (middle < 1) middle = 1;
if (right < 1) right = 1;
eval("document.images['left'].src = 'left_"+left+".JPG'")
eval("document.images['middle'].src = 'middle_"+middle+".JPG'")
eval("document.images['right'].src = 'right_"+right+".JPG'")
}


----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
FlashTeK(Advanced Websites with Flash) http://www.CrownMall.com/Flash/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
Need a PC ? -- Computer King -- http://www.crownmall.com/computers/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
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
  Re: FLASH: Trick or Treat, William Rosetti

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