Search found 8 matches

by pjfry
Tue Jun 20, 2017 2:31 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: JSON to Array with LiveCode 8
Replies: 1
Views: 3628

JSON to Array with LiveCode 8

Hi there, I try to access information via a web API. The API provides the data in JSON format. It likes like this: { "lastModified": 1497254226000, "name": "Sasinchen", "realm": "Zirkel des Cenarius", "battlegroup": "Embuscade / Hinterhalt", "class": 11, "race": 4, "gender": 1, "level": 110, "achiev...
by pjfry
Fri Jun 10, 2016 9:52 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Repeat into label Field
Replies: 2
Views: 2359

Re: Repeat into label Field

Hi Klaus,

first thank you very much for your great help. Your Code works fine :)

I will try so respect your tipps in future :) Thanks for this

Benny
by pjfry
Fri Jun 10, 2016 10:52 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Repeat into label Field
Replies: 2
Views: 2359

Repeat into label Field

Hi there this is my code snippet on mouseUp local diceRolls, diceEyes, diceResult if field fldDice is an integer and field fldDice < 11 and field fldDice > 0 and field fldEye is an integer then put field fldDice into diceRolls put field fldEye into diceEyes repeat diceRolls times put random(diceEyes...
by pjfry
Tue Jan 26, 2016 1:38 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Words among a field
Replies: 7
Views: 5679

Re: Words among a field

Hi there, thank you both for your fast help. One more Question :) Thierry your code look fine to me and works also. But it looks like "is among" is not right for my use case. Example: If mySolution is balls and the user write ball its wrong. So I thought I usw your code snippet with contains .. but ...
by pjfry
Tue Jan 26, 2016 11:28 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Words among a field
Replies: 7
Views: 5679

Words among a field

Hi there, I try to program a learning app. There are 60 questions with text answers. This could look like this: "What are the colors?" Answers is "Blue and red" So I have an label with the question and a text field for the answer. So the person answers the quest and I like the app to look at the tex...
by pjfry
Tue Jun 17, 2014 5:10 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with wait command
Replies: 6
Views: 3657

Re: Problem with wait command

Hi there, @SImon Thanks for this advice I now use the latest stable Version 6.6.2 :) @Klaus Thanks for this code example. But is still do not work. I tried to debug it but I do not find any mistake. If I set a Stop Point to debug at the on playerStopped I recognizes that the player stopped, i f I cl...
by pjfry
Mon Jun 16, 2014 4:26 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with wait command
Replies: 6
Views: 3657

Re: Problem with wait command

Hello Klaus, thanks for your fast answer and your useful hints :) 1) I did a mistake ... I thought this was for desktop use also ... but after a short look into the dictionary I saw that this is only for mobile platform So I have now no idea how to get my code working for desktop use. How can a do a...
by pjfry
Mon Jun 16, 2014 10:23 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Problem with wait command
Replies: 6
Views: 3657

Problem with wait command

Hi there, I try to build an player with looping, but the looping should wait a few seconds befor starting the song angain. So I added a player to my card and put the folloing code in thi splayer element: on playerFinished if the hilite of button chk_effects1 is true then wait for 3 seconds set the c...