Ask a Question related to Macromedia Director Lingo, Design and Development.
-
rozza1 webforumsuser@macromedia.com #1
random images lingo
i'm not sure if anyone can help. i have just started using director and wondered if it's possible to have a folder/cast of around 30 images and for these to be randomly viewed on the stage. Do i need to create a field on the stage where they wold appear?? If anyone has a suggestion or lingo which would enable me to do this that would be great. any help is gratefully received.
many thanks.
rozza1 webforumsuser@macromedia.com Guest
-
Extension: Dynamic Images/Advance Random Images
Hi there, I have downloaded 2 extensions: Dynamic Images or/and Advanced Random Images (kaosweaver.com); it seems both are the same and I have... -
Random Images
I'm struggling with adding random images to a Dreamweaver site. I'm fairly new to Dreamweaver and had a lot of problems adding a menu that I... -
Advanced Random Images
:confused; I too encountered the same problem as design girl after installing the extension Advanced random images. However the solution... -
Random Images on Mac?
I am using the Kaosweaver Advanced Random Images and have for sometime. However, I have recently uploaded files that work while viewing on a PC but... -
Help - Random images
Hi, I have a web page which is a simple html table whish contains a picture in one of the cells. I want this to be one of 13 random pictures... -
TomaHawK #2
Re: random images lingo
Yes it is very possible :)
all you have to do is to name those cast members with the same name
followed by a number. This number will identify the member to show on
stage E.g. image1, image2, ..., image 30
then you have to calculate a random number between 1 and 30 (in my
example).
and do this to show that image on stage
sprite(thisSpriteNumber).member =
member("image"&randomCalculatedNumber)
-- updateStage (this might be needed or not, depending on when/where
the script is run)
And that should do it
Hope this will help you
On Wed, 13 Aug 2003 14:42:17 +0000 (UTC), "rozza1"
[email]webforumsuser@macromedia.com[/email] wrote:
>i'm not sure if anyone can help. i have just started using director and wondered if it's possible to have a folder/cast of around 30 images and for these to be randomly viewed on the stage. Do i need to create a field on the stage where they wold appear?? If anyone has a suggestion or lingo which would enable me to do this that would be great. any help is gratefully received.
>
>many thanks.
>TomaHawK Guest
-
Desmond22 webforumsuser@macromedia.com #3
Re: random images lingo
Hi,
This is pretty straight forward:
You store your images in the cast and change the cast member property of a sprite on stage to a random number between 1 and 30.
For example if your sprite was in channel 1 and your pictures where between 1 and 30 in the cast:
sprite(1).membernum=random(30)
Of course you?ll have to decide when this is going to happen ? on mousedown, on keydown, on exitframe etc etc.
The basics forum s probably a good place to start if you re not sure of this kind of thing - and of course the help file.
I ve attached a little file which might get you started.
Good luck
Des
[url]http://webforums.macromedia.com/attachments/RandomMember.zip[/url]
Desmond22 webforumsuser@macromedia.com Guest
-
rozza1 webforumsuser@macromedia.com #4
Re: random images lingo
thanks a lot for your help. will give it a go...
rozza1 webforumsuser@macromedia.com Guest



Reply With Quote

