Search found 3875 matches

by bn
Tue Oct 14, 2008 9:07 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Help me! My script is going a never ending loop!!!
Replies: 2
Views: 2273

Hi Ale870, start revolution without the problematic stack. make a new stack with a button. the script of the button is: on mouseUp pMouseBtnNo answer file "the recursion file" if it is empty then exit mouseUp lock messages go stack it end mouseUp this opens your recursive stack without the openstack...
by bn
Thu Oct 09, 2008 7:24 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Drawing help
Replies: 11
Views: 9942

Hi Klaus,
Or simply (a little less semantically challenging)
...
put empty into img "your_image"
...
how easy, thank you,
somehow the "semantic challenges" seem to attract me :) isn't the "semantic challenge" what makes a 'real' programming language? :wink:
cheers
bernd
by bn
Thu Oct 09, 2008 1:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Drawing help
Replies: 11
Views: 9942

Hi Matt,

as an aside: a button with

Code: Select all

on mouseUp 
    set the text of image "myImage" to ""
end mouseUp
erases the image. It took me a while to pick that up, so it might be handy
regards
bernd
by bn
Thu Oct 09, 2008 1:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Drawing help
Replies: 11
Views: 9942

Hi Matt, depending on what you want you probably have a image object to which you paint. You could set the script of the image object to on mouseLeave choose browse tool end mouseLeave That way you choose the pencil tool (or whatever) with your button, paint in the image, as soon as you move out of ...
by bn
Wed Sep 24, 2008 7:11 pm
Forum: Mac OS
Topic: Best location for 'shared' files on Mac
Replies: 11
Views: 9668

Andy, if it is a one time job it is easy. You have to have administrator rights to change permissions. If you have physical access to the machine, go to the files in the finder, get Info and change the permissions to what you want. It will ask for an administrator password. And that should be it. Re...
by bn
Wed Sep 24, 2008 5:22 pm
Forum: Mac OS
Topic: Best location for 'shared' files on Mac
Replies: 11
Views: 9668

andy, look at the permissions of the db file using either the info (activate the file then command-i) or use the terminal. Maybe Rev sets the permissions to the main user and lets others read. Try to change the permissions so everyone can read and write, check the permissions for the shared folder a...
by bn
Wed Sep 24, 2008 2:58 pm
Forum: Mac OS
Topic: Best location for 'shared' files on Mac
Replies: 11
Views: 9668

Hi Klaus, allet paletti :D Well, regarding backup I meant that I often just backup the users folder, since that is what changes most, and the rest just occasionally, which, I know, I know, it is bad practice, just something to take into consideration when one is not in control of the machine/environ...
by bn
Wed Sep 24, 2008 12:35 pm
Forum: Mac OS
Topic: Best location for 'shared' files on Mac
Replies: 11
Views: 9668

Hi, you might also consider the shared user folder put specialfolderpath("sdat") it is accessible for all users. No access problems here but also accessible to every user via the finder. I use it for multi user access. /Library/Application Support" sounds interesting, is it accessible for every user...
by bn
Tue Sep 23, 2008 12:22 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Add and Subtract
Replies: 31
Views: 20265

you didn't "put myCounter into" the variable holders like with the mathematical approach
embarrassing for me, but reassuring that math is a tad faster then the if-then. Sorry for the omission.

cheers
bernd
by bn
Tue Sep 23, 2008 11:33 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Add and Subtract
Replies: 31
Views: 20265

sparkout, I benchmarked the math version and the if-then version with this script on mouseUp pMouseBtnNo put 10000 into tRounds -- adjust the rounds here put the millisec into tStartMath repeat for tRounds put 3 into theButton put 5 into myCounter add (2 - theButton) to myCounter put max (0, myCount...
by bn
Tue Sep 23, 2008 10:11 am
Forum: Announcements
Topic: Callback Tutorials?
Replies: 3
Views: 4243

for the player object try
http://www.runrev.com/developers/tutori ... callbacks/

regards
bernd
by bn
Tue Sep 23, 2008 10:07 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Add and Subtract
Replies: 31
Views: 20265

Hi SparkOut,

thats brilliant, I especially like

Code: Select all

add (2 - theButton) to myCounter 
-- and 
set the label of me to max (0, myCounter) 
no IF THEN and stuff, fast and smart

thanks
Bernd
by bn
Mon Sep 22, 2008 11:25 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Stack VideoClips, importing & listing them programmatica
Replies: 10
Views: 5734

I'll leave that to Bernd for now ;-) too much honour for my humble knowledge... I did do my main applications with video and the player, but all that locally, no fancy streamingstuff, encryption, not even standalone, just the old Hypercard way with stacks. Though I did some wrestling with the playe...
by bn
Mon Sep 22, 2008 4:45 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Stack VideoClips, importing & listing them programmatica
Replies: 10
Views: 5734

kotikoti, I posted a stack on revonline, see under user berndniggemann, maybe it gives you some ideas. Could you describe a little more in detail how the videoclips/player should work in your application then it is easier to answer. The player in certain situation can be a bit demanding, in others i...
by bn
Mon Sep 22, 2008 4:01 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Add and Subtract
Replies: 31
Views: 20265

bjb,

please try the combination of mouseUp and mouseDoubleUp as has been suggested, including code, by SparkOut and me in this thread and see if it makes a difference.

regards
bernd

Go to advanced search