New User's First Questions!

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tolerant2
Posts: 5
Joined: Sat Sep 26, 2009 1:30 am
Contact:

New User's First Questions!

Post by tolerant2 » Sat Sep 26, 2009 1:48 am

Hello everyone!

I am brand new to Revolution and just started experimenting with it a few days ago. It is my intention to use Revolution to write a sort of study game for my teaching course.

I am writing here with a few simple questions, hoping that someone may be able to provide answers.

While I realize that most (if not all) of the questions I am about to ask could be answered independent of this forum given a thorough reading of the user guide, I thought it might be worth a shot to put them out there just in case... (I don’t think it can hurt after all).

So here they are:

1) How do you set an image as a background, even if the image is not included in the card? (And can I set a different image for the background of each different card?)

2) Is it possible for the stack to automatically adapt to different screen resolutions?

3) How do you set continually looped background music, with different music on different cards?

4) How do you script multiple actions for button selections? (Namely the playing of music and text upon clicking)

5) How do you write static text onto a card (ie not labels), but just instructional text?

6) How do you set a startup splash/loading screen (ie like MS Word)?

7) Is it possible to automatically animate a transition between two cards (like the push/pull transitions in PowerPoint)?

Thank you in advance for advice in any amount great or small!

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Sat Sep 26, 2009 3:21 am

That covers a lot of ground, so rather than attempt to go into detail I'll just list some tokens to look up in the Rev Dictionary to get you started; post back here with any specifics that aren't clear:

1. backgroundPattern

2. rect property of stack, screenRect, working screenRect, windowBoundingRect

3. Player controls

4. mouseUp

5. field with lockText property turned on, traversalOn property turned off

6. Make a stack, have your startup handler toplevel it

7. See the visual command (lots of nice built-in transition effects, and if you're using QuickTime you can use the "answer effect" command to get even more)

HTH -
Last edited by FourthWorld on Sat Sep 26, 2009 11:32 pm, edited 1 time in total.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

tolerant2
Posts: 5
Joined: Sat Sep 26, 2009 1:30 am
Contact:

Thanks, another question

Post by tolerant2 » Sat Sep 26, 2009 10:29 pm

Thanks for the help!

I have another question to any one out there who might possibly know the answer.

How do I get an image to remain the same size after I have re-sized it? Every time I close Revolution and start it back up again, the image changes size.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Sep 26, 2009 10:48 pm

Dear tolerant2,

Set the lockLoc of the image to true. You can do this by script or in the position and sizes pane of the property inspector for any particular image.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply