Search found 6 matches

by cogollo
Sat Feb 07, 2009 5:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Images
Replies: 3
Views: 4692

Hello. I need help to do the same, load an image into a image object. I have readed the tutorial, but the example doesn't work to me; somebody could help me? I need a to load images from the HD and show them into an image object. Is this sentence correct? set the imageSource of image "OriginalImage"...
by cogollo
Sat Nov 22, 2008 3:34 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Some questions about arrays.
Replies: 9
Views: 9037

Thank you gyroscope, the fade effect is beautiful. I have been trying things for a long time and now I understand the arrays: any variable can act like an array. My program is working now, thanks to all who helped me, and sorry about my English writting.

See ya!
by cogollo
Thu Nov 20, 2008 5:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Some questions about arrays.
Replies: 9
Views: 9037

Thank you very much Jan, but it doesn't work, I'm doing something wrong... How do I watch the array's content?

And I have another question. I have imported an image as a control, and now I need to change the image transparency when I click on it. How do I do that?
by cogollo
Thu Nov 20, 2008 2:16 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Some questions about arrays.
Replies: 9
Views: 9037

Sorry for the double posting. I have this script in the main card: local state, elem, arrayA, arrayB on preOpenCard startProgram end preOpenCard on startProgram put 0 into state repeat with x = 1 to 20 put the value of x into arrayA[x] end repeat repeat with x = 1 to 5 put arrayA[any line of the key...
by cogollo
Thu Nov 20, 2008 12:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Some questions about arrays.
Replies: 9
Views: 9037

Thank you BvG and SparkOut, I'll try your solutions. For the array "length" are you talking about the number of keys (or indices)? Yes, that's it, the total number of keys (os values). RunRev script language is a bit different from the classic languages, and it's hard at the beginning. Thank you aga...
by cogollo
Wed Nov 19, 2008 9:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Some questions about arrays.
Replies: 9
Views: 9037

Some questions about arrays.

Hello, I'm new using RunRev, and I have some questions. 1) How do I create an array from 1 to 20 using a loop instruction, not manually? I need an array like this: [1,2,3,4,...,19,20] 2) How do I select a random value from the array? 3) How do I delete an element from the array? 4) Is there any vari...