random opening image

This is a discussion on "random opening image" within the Flash & Multimedia Forum section. This forum, and the thread "random opening image are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 10th, 2006, 11:10
Up'n'Coming Member
Join Date: Oct 2006
Location: Zurich
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to berjoe Send a message via Yahoo to berjoe
random opening image

I'm thinking, is it possible to make a randomly opening image in flash..??
I mean I'm planning to make a portfolio website which contains of images, so I'm thinking to have a big photo image in the main scene together with the navigation, but instead of having one picture on it, I want to put several images in random. So everytime a user click on the page, it will show different main pictures. Is it possible to do that in flash..?

hugs,
berjoe

Last edited by berjoe; Oct 10th, 2006 at 16:31.
Reply With Quote

  #2 (permalink)  
Old Oct 10th, 2006, 21:55
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Smile Re: random opening image

Here is some actionscript to play with!!

Code: Select all

Number.getUniqueRandom=function(number) {
    var numberlist = new array();
    for (count = 1; count <= number; count++) {
        numberlist[count] = count;
    }
    var randomlist = new array();
    for (count = numberlist.length - 1; count > 0; count--) {
        picked = math.floor(math.Random()*count)+1;
        randomlist[count-1] = numberlist[picked];
        numberlist[picked] = numberlist[count];
    }
    return randomlist;
}
//mynumbers=Number.getUniqueRandom(10)
Reply With Quote
  #3 (permalink)  
Old Oct 10th, 2006, 22:09
Up'n'Coming Member
Join Date: Oct 2006
Location: Zurich
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to berjoe Send a message via Yahoo to berjoe
Re: random opening image

Whoaa...!!! thank you Jacob...! you're an angel...!!

hugs,
berjoe
Reply With Quote
  #4 (permalink)  
Old Oct 11th, 2006, 01:27
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: random opening image

No problem!!
Reply With Quote
Reply

Tags
image, flash, actionscript, picture, random

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
dual random image genetator...tricky drappendix JavaScript Forum 15 Sep 6th, 2007 01:51
Opening Applications online help. Phydeaux Web Page Design 0 Jul 27th, 2007 02:30
Asp not opening! aspcam Classic ASP 2 Jul 26th, 2007 22:38
problem with opening IE uddin Web Page Design 5 Mar 29th, 2007 15:26
Image opening in locked browser jonbenitos Web Page Design 3 Oct 30th, 2006 10:54


All times are GMT. The time now is 08:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43