Page 1 of 1

Navigate in different cards

Posted: Mon Jan 06, 2014 3:16 pm
by mauro1388
Hi everybody

i have to build a simple livecode app.
i have to put in a card some images, videos and text and i have to navigate in different card (like a book, pass with button to next and previous card).

can someone help me with a specific guide??
thank you

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 3:22 pm
by Klaus
Hi mauro,

1. welcome to the forum! :D

2. the basic command to GO to another card:
go cd "name of card here"
OR
go cd X ## where X = the number of the card. 1 = first card etc...

Check "go" in the dictionary!
cd = abrreviation for card, less typing :D

3. I highly recommend to work throgh these stacks to get the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 3:28 pm
by mauro1388
thank you to help me so fast :D

i need just an application like the" LiveCode/Revolution Scripting Conferences" !!!!

I need to navigate with 2 menus (firts menu and second menus) and show in other windows text, imagen and videos.

What do you advise me?? Take an " LiveCode/Revolution Scripting Conferences", change the text and the image or make a new app?
it is for a little academic work :wink: :wink:

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 5:10 pm
by Klaus
Hiu Mauro,

I would advice to make you familiar with teh concepts of Livecode!

Start small:
Create a new stack, create new cards, add some images and some buttons for navigation.
Example

Code: Select all

on mouseup

  ## Self explaining :
  go next cd

  ## or the opposite:
  ## go prev cd
end mouseup
Not sure what you mean by "I need to navigate with 2 menus (first menu and second menus)"?
See above, I would recommend some buttons for navigation!


Best

Klaus

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 7:15 pm
by mauro1388
ok i did it.
i create 3 cards and i navigate on them with button (next and prev). it's run :D :D

i explain you better:

i need a menu (calls menu1), for example with a,b,c,d.
if i choose b, I enter in another menu (calls menu2), with 1,2,3,4,5,6
and then, if I choose 3, it appear a card (with image, text and a video) and I navigate with button next and pre (there are 5 or 6 card for each element of the menu2).

How can i do this??
thank you so much

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 7:48 pm
by Klaus
Hi Mauro,
mauro1388 wrote:ok i did it.
i create 3 cards and i navigate on them with button (next and prev). it's run :D :D
great! :D
mauro1388 wrote:i need a menu (calls menu1), for example with a,b,c,d.
if i choose b, I enter in another menu (calls menu2), with 1,2,3,4,5,6
and then, if I choose 3, it appear a card (with image, text and a video) and I navigate with button next and pre (there are 5 or 6 card for each element of the menu2).
Sorry, don't have the slightest idea what you are trying to do!?


Best

Klaus

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 8:13 pm
by mauro1388
ajajajaj im sorry for my bad english!!
no problem, it's something very similar to the LiveCode/Revolution Scripting Conferences

thanx for your help :wink: :wink:

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 8:23 pm
by dunbarx
Mauro.

When you choose "b" from the first menu, and then "3" from the second, how does that information ("b,3") tell you where to navigate? This should be simple to help you with, but it is not clear what you are doing with your menu choices. For example, does the "b" tell you which image to display, or which card to go to? And the "3"? Same question...

Craig Newman

Re: Navigate in different cards

Posted: Mon Jan 06, 2014 8:28 pm
by jacque
Do you mean you want submenus? Like this?

Code: Select all

Item One
   Sub one
   Sub Two
Item Two
   Sub Three
   Sub Four
Item Three
   Sub Five
   Sub Six