Is it possible to random images?

William de Smet wdesmet at wanadoo.nl
Wed Nov 30 07:27:10 EST 2005


Hi there,

Eric's advice did the trick but now all the images on the card are  
chosen (like the background image).
How do I set like 4 images to be chosen at random?
Been busy the whole morning but I can't figure it out.

William de Smet

Op 29-nov-2005, om 22:40 heeft Eric Chatonet het volgende geschreven:

> Hi William,
>
> There are many ways.
> Random applies to integers and your images have many specific  
> *numbers* which are integers: IDs, number, altID, etc.
> For instance (just the idea):
>
> put random(the number of images of this cd) into TChosenImage
> put image TChosenImage into image "DisplayRandomImage"
>
> Le 29 nov. 05 à 22:34, William de Smet a écrit :
>
>
>> Hi there,
>>
>> Thanks for all the help before!
>> Now I've got a little question about the Random function:
>>
>> The following code shows a random number into a field:
>> on mouseUp
>> put random (20) into field "random"
>> end mouseUp
>>
>> But is it possible to random images?
>>
>
>
> Best Regards from Paris,
>
> Eric Chatonet.
> ----------------------------------------------------------------
> So Smart Software
>
> For institutions, companies and associations
> Built-to-order applications: management, multimedia, internet, etc.
> Windows, Mac OS and Linux... With the French touch
>
> Free plugins and tutorials on my website
> ----------------------------------------------------------------
> Web site        http://www.sosmartsoftware.com/
> Email        eric.chatonet at sosmartsoftware.com/
> Phone        33 (0)1 43 31 77 62
> Mobile        33 (0)6 20 74 50 86
> ----------------------------------------------------------------
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>




More information about the Use-livecode mailing list