Search found 7 matches

by RalphORama
Fri Feb 27, 2015 5:05 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Repeat while mouseDown / touchStart?
Replies: 7
Views: 2268

Re: Repeat while mouseDown / touchStart?

Sorry for the double post, I've run into another issue with the same handler. I used the "until mouse is up" trick above, and added a wait to it (nothing else needs to be happening while this is going on, so it was the easiest way to achieve what I wanted). However, I've run into a strange issue. on...
by RalphORama
Fri Feb 27, 2015 3:26 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Repeat while mouseDown / touchStart?
Replies: 7
Views: 2268

Re: Repeat while mouseDown / touchStart?

dunbarx wrote:

Code: Select all

on mouseDown
   repeat until the mouse is up
      add 1 to fld 1
      wait 5
   end repeat
     answer "Your are DONE"
end mouseDown
This worked like a charm! Thank you very much for your help and other advice!
by RalphORama
Thu Feb 26, 2015 5:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Repeat while mouseDown / touchStart?
Replies: 7
Views: 2268

Repeat while mouseDown / touchStart?

I've run into an issue when working on a personal project. I'd like to repeat a loop while the mouse is down on a button, and terminate it when the mouseUp message is passed. I can't figure out how. My code: on mouseDown touchStart end mouseDown on mouseUp touchEnd end mouseUp on touchStart repeat u...
by RalphORama
Thu Nov 13, 2014 4:02 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Use a function outside a handler to manipulate a graphic
Replies: 3
Views: 1061

Re: Use a function outside a handler to manipulate a graphic

Wow, I did not know about the command feature! Thank you for the help!
by RalphORama
Thu Nov 13, 2014 12:55 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Use a function outside a handler to manipulate a graphic
Replies: 3
Views: 1061

Use a function outside a handler to manipulate a graphic

Hello! I'm trying to write a function that will manipulate a graphic, but I'm having some trouble getting it to do so. Here's my code: function changePoly fPoly,fStyle,fSides,fAngle,fBGColor set the style of graphic fPoly to fStyle set the polySides of graphic fPoly to fSides set the angle of graphi...
by RalphORama
Tue Nov 11, 2014 5:54 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Use repeat to clear ever field in a group
Replies: 6
Views: 1470

Use repeat to clear ever field in a group

Hello! I'm trying to write a repeat to clear every field in a group, but I can't seem to make it work. Here's my current code: repeat for each field tClearField in group "displayGrp" -- put the name of the field into tClearField put "" into field tFieldClear -- clear the field end repeat With this c...
by RalphORama
Wed Oct 22, 2014 5:30 pm
Forum: LiveCode University
Topic: Can't save LCU stacks to the disk
Replies: 0
Views: 1165

Can't save LCU stacks to the disk

This is an issue that's been plaguing me for a while, I can't save any stacks from LCU to my disk, and they don't open in Livecode. I've tried many solutions and been in contact with RunRev, but nothing seems to fix my issue. I've: Used Help > Check for Content Updates (Never got an error here) Cont...

Go to advanced search