Repeat Unexpectedly Aborted

2006-07-29 Thread Bridger Maxwell

Hey,
 For some reason every time I open the script editor using the keyboard
shortcut (CTRL + Shift + C (or S)) it will quit a repeat loop that is
running, but if I open the script editor from the menubar on the RevMenuBar
stack it is fine.  This doesn't make any sense, no errors are popping up,
and try/catch setups are catching any errors.
Here is the script I was having trouble with.  The image "Pinger" is just an
animated GIF that is of a wave of white that spreads outward in a circle and
fades away during the last 30 frames.  It is in the card script, if that
makes any difference.

on ping
 lock screen
 set the repeatCount of img "Pinger" of me to 0
 set the currentFrame of img "Pinger" of me to 1
 set the blendLevel of img "Pinger" of me to 0
 unlock screen
   repeat with x = 1 to (the frameCount of img "Pinger" of me - 10)
 set the currentFrame of img "Pinger" of me to x
 wait 2 tick with messages
 if  the abs of (x - the frameCount of img "Pinger" of me) < 30 then
   put 30 - (the frameCount of img "Pinger" of me - x) into y
   set the blendLevel of img "Pinger" of me to (y * 5)
 end if
   end repeat
end ping


 Thank You,
   Bridger
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] NSProgress Widget 1.0.0

2006-07-29 Thread Sean Shao

Reusable object that displays the Mac OS X Progress "Flower".
Code was originally posted to the uselist by Wouter (aka kWeed) and 
permission was granted to release as a widget.

Download at: www.shaosean.tk  or shaosean.wehostmacs.com

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] Search Widget 1.0.0

2006-07-29 Thread Sean Shao

Reusable control that will filter a field.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[UPD] Time Widget 1.1.5

2006-07-29 Thread Sean Shao

- now only accepts number entry *whoops*
- modified demo stack
- modified 12/24 hour toggle button

Also have a data input mask script in development that's available on the 
site.


-Sean
shaosean.tk  -  shaosean.wehostmacs.com

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: The definition of a word

2006-07-29 Thread Jim Ault

On 7/29/06 12:41 PM, "Mark Wieder" <[EMAIL PROTECTED]> wrote:

> Peter-
> 
> Friday, July 28, 2006, 3:33:07 PM, you wrote:
> 
>> I need now reading the documentation that items enclosed in quotes are one
>> word.  That seems almost undesirable.  What are your all thoughts?  Is
>> there a case where you use this?
> 
> As Mark S points out, this has indeed been the way xTalk has always
> been. And yes, I do rely on this for syntax parsing.

> Peter-
You could roll your own to honor any kind of formatting you wish.
This might be a better set of functions to own if you want to be sure of the
constructs you capture.

Jim Ault
Las Vegas


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Need quick check on Intel Mac

2006-07-29 Thread Mark Wieder
Dar-

Friday, July 28, 2006, 10:59:59 PM, you wrote:

> The bit operators should move to 48 or 64 bits as soon as they can,

Agreed, but in the meantime have you checked out libBitwise?

http://www.shaosean.tk

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: The definition of a word

2006-07-29 Thread Mark Wieder
Peter-

Friday, July 28, 2006, 3:33:07 PM, you wrote:

> I need now reading the documentation that items enclosed in quotes are one
> word.  That seems almost undesirable.  What are your all thoughts?  Is
> there a case where you use this?

As Mark S points out, this has indeed been the way xTalk has always
been. And yes, I do rely on this for syntax parsing.

-- 
-Mark Wieder
 [EMAIL PROTECTED]

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: A CGI which use socket / datagrams?

2006-07-29 Thread David Bovill

Yes the script is running as a simple CGI under Apache on an OSX
machine on the LAN. I firsted tested the script in Rev using a simple
button. The script is the same as below but with "on startUp" replaces
with "on mouseUP". There is another script in a local revolution stack
which listens for the datagram. This worked fine but not as a CGI. I
tried various combinations changeing port numbers and closing or not
closing sockets.

In fact I got a response sent to the socket listner... the problem is
that I then want to send a reply to the calling cgi so that it does
not just hang there waiting for a response - it seems that the
sendData line prevents the cgi returning anything?

#!/usr/local/bin/revolution

--> all handlers

on startUp
   -- put "OK" && cgi_ListGlobals() into someText
   put url "file:test_kml.txt" into kmlTemplate
   sendData kmlTemplate
   cgi_ReturnText "Sent data"
end startUp

on sendData someData
   put "cube.local:6|datagram" into sendSocket
   open datagram socket to sendSocket
   write someData to socket sendSocket
   -- close socket sendSocket
end sendData

function cgi_ListGlobals
   # loop over all of the global variables, getting name and value
   repeat for each item i in the globals
   put i && "=" && value(i) & return after buffer
   end repeat
   -- put return & the defaultFolder after buffer
   return buffer
end cgi_ListGlobals

on cgi_ReturnText someText
   # write minimal set of HTTP headers to stdout

   put "Content-Type: text/plain" & cr
   put "Content-Length:" && the length of someText & cr & cr
   put someText
end cgi_ReturnText
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Games and so on.

2006-07-29 Thread Richmond Mathewson
Just uploaded new version of the "GAME.zip" file:

http://mail.maclaunch.com/richmond/GAME.zip

this rotates the Map via the arrow buttons
between the numeric keypad and the keyboard.

However, as you can see, (it uses ANGLE) it
places havoc with the scale of the Map which
is not entirely satisfactory.

I thought I could iron that problem out by 
magnifying the image at each 10 degree increment,
but then found that the image shrinks through
0 - 45 degrees, and then expands through 45 - 90
degrees; so, altogether, a bit of a pain.
sincerely, Richmond Mathewson
 


"Philosophical problems are confusions arising owing to the fluidity of 
meanings users attach to words and phrases."
   Mathewson, 2006


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Games, Malte Brill and Richmond's Ego

2006-07-29 Thread Richmond Mathewson
Oh Dear, Oh Dear, Oh Dear,

I was really annoyed that Malte Brill should suddenly 
produce an incredibly brilliant Parallax Scroller like that. 
It affected my sense of self-value like nothing has done 
before. :) :) :)

So, to rebuild my sense of self-respect I sat up all last night 
and produced this:

http://mail.maclaunch.com/richmond/GAME.zip

and it is NOT up to the standard of Malte's super piece of work 
- mainly because I am only a "Saturday - Sunday" sort of
programmer.

My 2 kids like to play with WESNOTH - an Open Source game
patterned on Age of Empires and so on

http://www.wesnoth.org/

so I shamelessly pinched a screen-shot of a Wesnoth Map I ran up
in the scenario editor that comes with it and set to work.

This is not a game, but it might be the embryo of one.

It allows navigation in 8 directions and zoom-in/out via the
keypad on the right of the keyboard (or, at least it does,
on my Macintosh). Personally I think that the arrow images at
the centre of the card are fairly awful and would be better
replaced with a series of animated GIFs. 

It should be fairly easy to 'populate' the Map with animated
images that would move with the navigation (and zoom-in and out)
and could be drag-dropped off map as per my example at

http://groups.yahoo.com/group/RRRStudents

(SLIDER.rev)

Damn nearly all of the code is in the Card Script and I feel
that it is horribly clunky and could do, somehow, with quite
a bit of pruning.

I have bundled in the "GAME.zip" file a silly little stack I ran up
to return rawKeyDown numbers as it is jolly useful for this type of
thing.

Would be grateful for feedback.

sincerely, Richmond Mathewson

PS. I hope that between Malte Brill and myself a huge ferment of
interest in game-production can be stirred up amongst the RR
developer community.
 


"Philosophical problems are confusions arising owing to the fluidity of 
meanings users attach to words and phrases."
   Mathewson, 2006


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution