Navigate in different cards

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
mauro1388
Posts: 5
Joined: Mon Jan 06, 2014 3:12 pm

Navigate in different cards

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Navigate in different cards

Post 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
mauro1388
Posts: 5
Joined: Mon Jan 06, 2014 3:12 pm

Re: Navigate in different cards

Post 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:
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Navigate in different cards

Post 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
mauro1388
Posts: 5
Joined: Mon Jan 06, 2014 3:12 pm

Re: Navigate in different cards

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Navigate in different cards

Post 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
mauro1388
Posts: 5
Joined: Mon Jan 06, 2014 3:12 pm

Re: Navigate in different cards

Post 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:
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Navigate in different cards

Post 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
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Navigate in different cards

Post 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
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply