... Kirk, At first glance, it should work. Keeping track of the sound files path is a good idea. But it's probably better to do this once, and in the project...
2349
Bruce Martin
illuminator@...
Apr 1, 2001 4:18 pm
hello all, I would like to limit the number of decimal places when I divide 2 numbers. In other words, the answer I get now is 0.3466667 what I would like it...
2350
Adam C. Bell
abell@...
Apr 1, 2001 4:26 pm
put (round(tNum * 100))/100 into tNum [perhaps in several steps]...
2351
Carl Manaster
manaster@...
Apr 1, 2001 4:46 pm
... Won't set the numberFormat to "0.00" do this? It's been a while, and maybe I misremember, but I think that's the trick... Cheers, --Carl...
2352
Danaher Dempsey
danaherd@...
Apr 1, 2001 4:54 pm
Hi Bruce, What Adam wrote on limiting decimal places works fine as long as you accept the rounding of numbers like "0.355" to a rounded version as "0.35" some...
2353
Bruce Martin
illuminator@...
Apr 1, 2001 4:56 pm
... That's what I missed. Thanks all. -- Bruce Martin Illuminator Software Phone: (570) 421-0670 bmartin@... www.illuminatorsoftware.com...
2354
Stephane Leys
leys.stephane@...
Apr 1, 2001 5:01 pm
... set the numberformat to "0.##" put 0.3466667 +0 S. -- _______________________________________________ Stéphane Leys http://leys.stephane.free.fr/ ...
2355
Daniel C. Kueng
studio@...
Apr 1, 2001 5:09 pm
... If it is not acceptable, use the round XFCN in one of the WWC collections (can't remember its name or which collection, but it's there), or use this ...
2356
Adam C. Bell
abell@...
Apr 1, 2001 6:20 pm
Before getting myself locked into a loop I don't know how to get out of I thought I'd better ask: I want to repeat a loop until a button is pressed. The button...
2357
John Johnston
jhj@...
Apr 1, 2001 6:32 pm
... Hi Adam, The button will not respond if you are in a loop. if theallowInterrupts is true (as it is by default command period will work. I guees you could...
2358
Adam C. Bell
abell@...
Apr 1, 2001 7:50 pm
Hmmm. That's a little ugly - the loop is running a simulation (graphics on the card), and it's not instantaneous, so the STOP button will be unresponsive...
2359
Carl Manaster
manaster@...
Apr 1, 2001 7:56 pm
... You probably want an idle handler, along the lines of on idle global nextAnimationStep -- which you initialized in the openCard handler if the hilite of...
2360
Bruce Martin
illuminator@...
Apr 1, 2001 8:01 pm
Adam, Try this: on myLoop repeat until (the mouseClick and withIn(cd btn "myButton",the mouseLoc)) -- do your stuff end repeat end myLoop ... -- Bruce Martin ...
2361
Daniel C. Kueng
studio@...
Apr 1, 2001 8:34 pm
... Remember that command-period will stop the script which means you lose control. This is OK for developing purposes. If you specifically need cmd-. to work...
2362
chilton@...
Apr 1, 2001 9:14 pm
Adam, see if this works... on testit global gTheState if gTheState is not empty then -- you can put commands here and -- have them drive loops as below else ...
2363
chilton@...
Apr 1, 2001 9:15 pm
... wherever) to start up the engine, so to speak. Point is, the mousedown message will work pretty much anywhere. on testit global gTheState if gTheState is...
2364
Doug Denby
ddenby@...
Apr 1, 2001 10:03 pm
I have an odd thing happening. I am developing a little project that requires copying graphics from another application and pasting into a graphic. I works...
2365
Daniel C. Kueng
studio@...
Apr 1, 2001 10:24 pm
... I'd check to see if it happens randomly with the very _same_ graphic. If happening with different graphics, try to determine _why_ it is happening, size,...
2366
Doug Denby
ddenby@...
Apr 2, 2001 1:45 am
Clipboard problem resolved. I forgot that I had opened Tangerine and it is a memory hog. Doug Denby...
2367
Daniel C. Kueng
studio@...
Apr 2, 2001 8:20 am
... I never use Tangerine nor the Proj Editor. One of the major advantage over HyperCard is that SuperEdit allows to edit poj whithout it actually running. One...
2368
keith
keith@...
Apr 2, 2001 8:44 am
... My first suspicion would be that maybe the contents of the Clipboard weren't in a form that SC can use. I've seen this sort of behaviour (and some...
2369
keith
keith@...
Apr 2, 2001 8:44 am
... I don't think that's really the case, although it has been left unupdated for some time. I'm pretty sure the boys with their hands in the code are firm...
2370
Daniel C. Kueng
studio@...
Apr 2, 2001 9:21 am
... Probably not at this time. It's 2 am there ;) Anyway, there are many SC features now missing in SE. I have often played with the thought of dumping SE and...
2371
tom.bailey@...
Apr 2, 2001 10:40 am
Scott what is the long term view on supercard / flamethrower and Mac OSX ? I'd guess this would mean a pretty comprehensive re-write and making flamethrower...
2372
catkeeper@...
Apr 2, 2001 1:51 pm
... Abandoned is such a hard word. SuperEdit is one of my all-time favorite programs, so you can be sure that if it were technically feasible I'd have brought...
2373
keith
keith@...
Apr 2, 2001 2:29 pm
... Actually, Flamethrower works just fine with WebTen, which is Tenon's commercial Webserver app based on Apache. All you have to do is set the two apps up so...
2374
Dave Higgins
dave@...
Apr 2, 2001 2:44 pm
... What did you have to do that was special? I got WebTEN and Flamethrower working together just fine right out of the box. ... I dunno, Keith. From what I...
2375
Adam C. Bell
abell@...
Apr 2, 2001 4:34 pm
I was curious about this too, so I posted a query to the TidBITS thread now running on OS X and asked if anyone knew whether OS X applications could...
2376
Adam C. Bell
abell@...
Apr 2, 2001 4:46 pm
In early days, I followed one of the examples and built a card that selects 6/49 lottery numbers. Then I added a bubble sort to it to put the numbers in...