[Use-revolution] Digest use-revolution.v001.n146

use-revolution-errors at www.runrev.com use-revolution-errors at www.runrev.com
Wed Nov 28 12:44:09 EST 2001


-------------- BEGIN use-revolution.v001.n146 --------------

    001 - "Ken Ray" <kray at sonsothun - Re: [Use-revolution] Re: Constraining Movement
    002 - Scott Rossi <scott at tactil - Re: Constraining Movement
    003 - Scott Rossi <scott at tactil - Re: Networking
    004 - Scott Rossi <scott at tactil - Additonal Feature Request (was Masking graphics)
    005 - "Ken Ray" <kray at sonsothun - Re: Additonal Feature Request (was Masking graphics)
    006 - Dave Cragg <dcragg at lacsce - Re: Constraining Movement
    007 - Matt Denton <matt.denton@ - Re: Player Standalone auto-updates from Web
    008 - "Mark MacKenzie (Shaw)" < - NetworkingDigest use-revolution.v001.n144
    009 - "Chipp Walters" <chipp at ch - RE: Constraining Movement
    010 - Ben Rubinstein <benr_mc at c - [a bit OT] instant messaging protocol
    011 - Ben Rubinstein <benr_mc at c - adding objects to groups
    012 - "Chipp Walters" <chipp at ch - RE: Player Standalone auto-updates from Web
    013 - Ben Rubinstein <benr_mc at c - Re: adding objects to groups
    014 - andu <undo at cloud9.net>    - Re: adding objects to groups
    015 - Patrick Giagnocavo <patri - Re: [a bit OT] instant messaging protocol

This is the Use Revolution mailing list.  Use it to
discuss and solve "how-to" questions relating to using Revolution.
Please do not send bug reports or feature requests to this list.
To unsubscribe, place the word unsubscribe in the body of an
email and send it to use-revolution-request at lists.runrev.com.


--------------- MESSAGE use-revolution.v001.n146.1 ---------------

From: "Ken Ray" <kray at sonsothunder.com>
Subject: Re: [Use-revolution] Re: Constraining Movement
Date: Tue, 27 Nov 2001 14:38:27 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
References: <B8291978.DED8%scott at tactilemedia.com> <200111271904.OAA03561 at www.runrev.com>

Thanks, Geoff! So now we have:

on mouseDown
  set the uAllowDrag of me to true
  set the dX of me to (the mouseH - item 1 of loc of me)
  set the dY of me to (the mouseV - item 2 of loc of me)
end mouseDown

on mouseMove pMouseX,pMouseY
  if not the uAllowDrag of me then exit mouseMove
  put pMouseX - (the dX of me) into offsetMouseH
  put pMouseY - (the dY of me) into offsetMouseV
  set the loc of me to \
      min(max(offsetMouseH,left of img 1 + (width of me/2)),\
      right of img 1 - (width of me/2)),\
      min(max(offsetMouseV,top of img 1 + (height of me/2)),\
      bottom of img 1 - (height of me/2))
end mouseMove

on mouseUp
  set the uAllowDrag of me to false
end mouseUp

on mouseRelease
  mouseUp
end mouseRelease

(for those of you still paying attention... ;-)

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/


----- Original Message -----
From: "Geoff Canyon" <gcanyon at inspiredlogic.com>
To: <use-revolution at www.runrev.com>
Sent: Tuesday, November 27, 2001 1:03 PM
Subject: [Use-revolution] Re: Constraining Movement


> At 10:20 AM -0800 11/27/01, Scott Rossi wrote:
> >on mouseMove
> >  if not the uAllowDrag of me then exit mouseMove
> >  set the loc of me to \
> >      min(max(the mouseH,left of img myImg + (width of me/2)),\
> >      right of img myImg - (width of me/2)),\
> >      min(max(the mouseV,top of img myImg + (height of me/2)),\
> >      bottom of img myImg - (height of me/2))
> >end mouseMove
>
> Somehow the docs on mouseMove keep fooling people (they fooled me until
Kevin pointed this out). mouseMove provides you with two arguments, which
are the coordinates of the mouse. Using those is obviously more efficient
than using the functions to get them again. So the above could become:
>
> on mouseMove pMouseX,pMouseY
>   if not the uAllowDrag of me then exit mouseMove
>   set the loc of me to \
>       min(max(pMouseX,left of img myImg + (width of me/2)),\
>       right of img myImg - (width of me/2)),\
>       min(max(pMouseY,top of img myImg + (height of me/2)),\
>       bottom of img myImg - (height of me/2))
> end mouseMove
>
> Of course, if speed were much of an issue you could also precalculate and
store the values used for comparison.
>
> regards,
>
> Geoff
>
>



--------------- MESSAGE use-revolution.v001.n146.2 ---------------

From: Scott Rossi <scott at tactilemedia.com>
Subject: Re: Constraining Movement
Date: Tue, 27 Nov 2001 12:48:55 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111271929.OAA04342 at www.runrev.com>

Recently, Chipp Walters wrote:

> why do you need the mouseRelease handler? Just wondering.

Because a mouseUp message is only sent when the mouse is directly over the
clicked control.  If the user drags their mouse outside the stack for
example, there is no way to pass mouseUp to the clicked control and
therefore no way to stop the dragging action.  MouseRelease is key in this
situation.

Regards,

Scott

_____________________________________________________________________
Scott Rossi                       Tactile Media - Multimedia & Design
Creative Director                 Email: scott at tactilemedia.com
                                  Web: www.tactilemedia.com



--------------- MESSAGE use-revolution.v001.n146.3 ---------------

From: Scott Rossi <scott at tactilemedia.com>
Subject: Re: Networking
Date: Tue, 27 Nov 2001 12:53:26 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111271920.OAA04209 at www.runrev.com>

Recently, Troy Rollins wrote:

>> How are you sharing between Windows and Macs?  There are two main ways:
>> 
>> 1) treat your network as a PC network and install Dave on the Mac
>> 
>> 2) treat your network as a Mac network and install PC MacLAN on the
>> PCs (this is what I've done)
> 
> 3) Connectix (www.connectix.com) has a product called DoubleTalk, which
> allows a Mac to disguise itself as a windows machine - join networks, peer
> level file sharing, shared postscript printers, etc. Works as well or better
> than options 1 or 2 (I've used 'm all), and is currently on sale for about
> $50 USD.

Thanks for this info.  Problem for me is, my Windows network rarely works
correctly, much less is it as easy to setup/manage as a Mac network. :-)

Regards,

Scott

_____________________________________________________________________
Scott Rossi                       Tactile Media - Multimedia & Design
Creative Director                 Email: scott at tactilemedia.com
                                  Web: www.tactilemedia.com



--------------- MESSAGE use-revolution.v001.n146.4 ---------------

From: Scott Rossi <scott at tactilemedia.com>
Subject: Additonal Feature Request (was Masking graphics)
Date: Tue, 27 Nov 2001 12:59:18 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111271950.OAA04665 at www.runrev.com>

Recently, Ken Ray wrote:

> Perhaps a future version of MC could allow for the repeat feature of the
> backPattern to be turned off? That would provide a lot more flexibility in
> doing these kinds of things and it might even be an easy addition to the
> language.

It seems what MC Corp *really* needs to do is provide support for irregular
groups (polygon, oval, etc). :-)

On a somewhat (but not very) related note...

For years we've had a textAlign property.  It would be quite useful to have
an iconAlign property, to align a button's icon left, center, and right,
instead of always centered.  Would be even nicer to support topLeft,
topRight, etc.

Regards,

Scott

_____________________________________________________________________
Scott Rossi                       Tactile Media - Multimedia & Design
Creative Director                 Email: scott at tactilemedia.com
                                  Web: www.tactilemedia.com



--------------- MESSAGE use-revolution.v001.n146.5 ---------------

From: "Ken Ray" <kray at sonsothunder.com>
Subject: Re: Additonal Feature Request (was Masking graphics)
Date: Tue, 27 Nov 2001 16:30:39 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
References: <200111272100.QAA06364 at www.runrev.com>

Scott,

Actually, if you set the textAlign of a button, the icon moves accordingly
(although maybe not always what you want). For example, if you add an icon
to a button and then set the textAlign of the button to "right", the icon
moves left; and vice-versa.

It's a workaround, but I agree it would be great to independently move the
icon separate from its text.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Scott Rossi" <scott at tactilemedia.com>
To: <use-revolution at www.runrev.com>
Sent: Tuesday, November 27, 2001 2:59 PM
Subject: Additonal Feature Request (was Masking graphics)


> Recently, Ken Ray wrote:
>
> > Perhaps a future version of MC could allow for the repeat feature of the
> > backPattern to be turned off? That would provide a lot more flexibility
in
> > doing these kinds of things and it might even be an easy addition to the
> > language.
>
> It seems what MC Corp *really* needs to do is provide support for
irregular
> groups (polygon, oval, etc). :-)
>
> On a somewhat (but not very) related note...
>
> For years we've had a textAlign property.  It would be quite useful to
have
> an iconAlign property, to align a button's icon left, center, and right,
> instead of always centered.  Would be even nicer to support topLeft,
> topRight, etc.
>
> Regards,
>
> Scott
>
> _____________________________________________________________________
> Scott Rossi                       Tactile Media - Multimedia & Design
> Creative Director                 Email: scott at tactilemedia.com
>                                   Web: www.tactilemedia.com
>
>



--------------- MESSAGE use-revolution.v001.n146.6 ---------------

From: Dave Cragg <dcragg at lacscentre.co.uk>
Subject: Re: Constraining Movement
Date: Tue, 27 Nov 2001 22:36:51 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
References: <200111271821.NAA03124 at www.runrev.com>
 <200111271958.OAA05005 at www.runrev.com>
In-Reply-To: <200111271958.OAA05005 at www.runrev.com>

At 2:01 pm -0600 27/11/01, Ken Ray wrote:
>Scott,
>
>I like yours because you can "slide" around the edges of the bounding
>rectangle. However, the mouseDown-ed object's loc still snaps to the
>mouseLoc. Here's a revised version that doesn't do that:
>
>on mouseDown
>   set the uAllowDrag of me to true
>   set the dX of me to (the mouseH - item 1 of loc of me)
>   set the dY of me to (the mouseV - item 2 of loc of me)
>end mouseDown
>
>on mouseMove
>   if not the uAllowDrag of me then exit mouseMove
>   put the mouseH - (the dX of me) into offsetMouseH
>   put the mouseV - (the dY of me) into offsetMouseV
>   set the loc of me to \
>       min(max(offsetMouseH,left of img myImg + (width of me/2)),\
>       right of img myImg - (width of me/2)),\
>       min(max(offsetMouseV,top of img myImg + (height of me/2)),\
>       bottom of img myImg - (height of me/2))
>end mouseMove
>
>on mouseUp
>   set the uAllowDrag of me to false
>end mouseUp
>
>on mouseRelease
>   mouseUp
>end mouseRelease
>
>I love this collaboration! :-)

Me too.  :)

One small revision. I think it's faster to use the mouseMove 
parameters instead of mouseV, mouseH.

on mouseMove pX, pY
   if not the uAllowDrag of me then exit mouseMove
   put pX - (the dX of me) into offsetMouseH
   put pY - (the dY of me) into offsetMouseV
   set the loc of me to \
       min(max(offsetMouseH,left of img myImg + (width of me/2)),\
       right of img myImg - (width of me/2)),\
       min(max(offsetMouseV,top of img myImg + (height of me/2)),\
       bottom of img myImg - (height of me/2))
end mouseMove

Also, previous examples used globals for storing the offset values. 
Scott uses custom properties. I generaly use locals declared outside 
the handlers (script locals). I think globals are probably not a good 
idea here, but has anyone checked the performance difference of using 
custom properties versus script locals? When you're draggin' and 
checkin' stuff at the the same time, every millisecond helps.

cheers
Dave Cragg






--------------- MESSAGE use-revolution.v001.n146.7 ---------------

From: Matt Denton <matt.denton at limelight.com.au>
Subject: Re: Player Standalone auto-updates from Web
Date: Wed, 28 Nov 2001 10:12:50 +1100
MIME-Version: 1.0 (Apple Message framework v475)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111271300.IAA26947 at www.runrev.com>

Dear Chuck

http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm

Your earlier demo of updating Standalones is great!  Nice code, and very 
helpful in guiding me and others, I'm sure.  Many thanks.

There is a User Contribution area on the Revolution site, I know you 
have your own site (very nice) but others may find it useful if put on 
the Rev site. It's great to get working examples and code to help learn 
Transcript, found myself going 'ah haa' a few times.

Thanks Chuck!

M@
Matt Denton



--------------- MESSAGE use-revolution.v001.n146.8 ---------------

From: "Mark MacKenzie (Shaw)" <markmac at shaw.ca>
Subject: NetworkingDigest use-revolution.v001.n144
Date: Tue, 27 Nov 2001 18:57:50 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7BIT
References: <200111271300.IAA26947 at www.runrev.com>

Hi, I run 4 or 5 PC's with a mix of Os (98, ME) and 4 Macs on a LAN all
using the same cable modem BTW.  I use MacSOHO to do what you wish.  This is
fairly inexpensive and good for home office type stuff.  I have recently
been beta testing the newest version of Dave, also from Thursby Software.  I
highly recommend using Dave for what you are wanting to do.  I think the web
site is www.thursby.com

Regards Mark

----- Original Message -----
--------------- MESSAGE use-revolution.v001.n144.12 ---------------

From: "Monte Goulding" <monte.goulding at senet.com.au>
Subject: Networking
Date: Tue, 27 Nov 2001 20:50:18 +1030
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi

I'm sorry if this is a but out of the realm but as we are all cross platform
developers:

I'm setting up a LAN with a Win XP, Win 98 and Mac OS 8.6. I can't see the
shared hard drive on the Mac but I can on the others. All computers are
using the net connection fine.

I'm wondering if anyone knows how to do this with or without third party
software??????

Best regards

Monte






--------------- MESSAGE use-revolution.v001.n146.9 ---------------

From: "Chipp Walters" <chipp at chipp.com>
Subject: RE: Constraining Movement
Date: Tue, 27 Nov 2001 20:19:18 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111272049.PAA06261 at www.runrev.com>

Thanks for that bit of clarity. As I recall (years ago) we used a mouseLeave
in SC to do a similar thing...but not exactly the same.

chipp

-----Original Message-----
From: use-revolution-errors at www.runrev.com
[mailto:use-revolution-errors at www.runrev.com]On Behalf Of Scott Rossi
Sent: Tuesday, November 27, 2001 2:49 PM
To: use-revolution at www.runrev.com
Subject: Re: Constraining Movement


Recently, Chipp Walters wrote:

> why do you need the mouseRelease handler? Just wondering.

Because a mouseUp message is only sent when the mouse is directly over the
clicked control.  If the user drags their mouse outside the stack for
example, there is no way to pass mouseUp to the clicked control and
therefore no way to stop the dragging action.  MouseRelease is key in this
situation.

Regards,

Scott

_____________________________________________________________________
Scott Rossi                       Tactile Media - Multimedia & Design
Creative Director                 Email: scott at tactilemedia.com
                                  Web: www.tactilemedia.com



--------------- MESSAGE use-revolution.v001.n146.10 ---------------

From: Ben Rubinstein <benr_mc at cogapp.com>
Subject: [a bit OT] instant messaging protocol
Date: Wed, 28 Nov 2001 02:27:00 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

does anyone know if any of the relatively well established instant messaging
protocols are documented?  I want to implement a client in Rev (which can
take special action in response to some messages) but ideally it would use a
standard protocol so it could interact with standard clients.

TIA,

  Ben Rubinstein               |  Email: benr_mc at cogapp.com
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com        |  Fax  : +44 (0)1273-728866




--------------- MESSAGE use-revolution.v001.n146.11 ---------------

From: Ben Rubinstein <benr_mc at cogapp.com>
Subject: adding objects to groups
Date: Wed, 28 Nov 2001 02:27:00 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Is there a way to add an object to an existing group?

I've not found any way to do so - only to ungroup the existing set, and
regroup with the new ones; which obviously loses all the properties of the
group.

If there isn't, it would be a handy addition.

  Ben Rubinstein               |  Email: benr_mc at cogapp.com
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com        |  Fax  : +44 (0)1273-728866




--------------- MESSAGE use-revolution.v001.n146.12 ---------------

From: "Chipp Walters" <chipp at chipp.com>
Subject: RE: Player Standalone auto-updates from Web
Date: Tue, 27 Nov 2001 20:30:11 -0600
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111272314.SAA09181 at www.runrev.com>

Matt,

Thanks for your kind words. I just started using RR this week and am not
completely 'tuned in.' I used to do SuperCard stuff years ago but quit when
I moved from Mac to PC. It's amazing how quickly you pick it back up again.
I'd like to fine tune this project a bit before submitting it for posting on
the RunRev website.

RR1.1 was most difficult starting up. The IDE doesn't seem to be debugged as
well as one might like. But I have to say, the plethora of commands,
handlers and functions now available is just astounding! Recently I saw a
friend of past years and he mentioned I should check this out. I'm hooked.

I explain the programming environment to others as a HyperCard / Java
hybrid. Syntax like HyperCard with performance better than compiled JAVA
(and compatibility too!) I programmed the CaptureJPG using the trial version
in a couple of hours as the first stack I tried. I did builds for Mac, PC,
and Linux and they all ran flawlessly! (can be downloaded at:
http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm )

Very Impressive. My buddy who programs JAVA, C, Python, TKL, C++ etc said he
couldn't do the same and tested on all platforms in under 3 weeks! Kudos for
this programming environment!

-Chipp
(not Chuck;-)

-----Original Message-----
From: use-revolution-errors at www.runrev.com
[mailto:use-revolution-errors at www.runrev.com]On Behalf Of Matt Denton
Sent: Tuesday, November 27, 2001 5:13 PM
To: use-revolution at www.runrev.com
Subject: Re: Player Standalone auto-updates from Web


Dear Chuck

http://www.altuit.com/webs/altuit2/RunRev/Downloads.htm

Your earlier demo of updating Standalones is great!  Nice code, and very
helpful in guiding me and others, I'm sure.  Many thanks.

There is a User Contribution area on the Revolution site, I know you
have your own site (very nice) but others may find it useful if put on
the Rev site. It's great to get working examples and code to help learn
Transcript, found myself going 'ah haa' a few times.

Thanks Chuck!

M@
Matt Denton



--------------- MESSAGE use-revolution.v001.n146.13 ---------------

From: Ben Rubinstein <benr_mc at cogapp.com>
Subject: Re: adding objects to groups
Date: Wed, 28 Nov 2001 03:23:24 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <200111280228.VAA13852 at www.runrev.com>

on 28/11/01 2:27 AM, Ben Rubinstein at benr_mc at cogapp.com wrote:

> I've not found any way to do so - only to ungroup the existing set, and
> regroup with the new ones; which obviously loses all the properties of the
> group.

Or does it?  It seems there is something going on such that if regrouping
sufficiently soon after ungrouping, properties of the previous group are
restored?  Some clarification would be good - the documention gives
information about moving objects out of a group, but none that I could
detect for moving additional objects in.
 
  Ben Rubinstein               |  Email: benr_mc at cogapp.com
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com        |  Fax  : +44 (0)1273-728866




--------------- MESSAGE use-revolution.v001.n146.14 ---------------

From: andu <undo at cloud9.net>
Subject: Re: adding objects to groups
Date: Tue, 27 Nov 2001 22:23:05 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <200111280228.VAA13852 at www.runrev.com>

Ben Rubinstein wrote:
> 
> Is there a way to add an object to an existing group?
> 
> I've not found any way to do so - only to ungroup the existing set, and
> regroup with the new ones; which obviously loses all the properties of the
> group.

First of all you don't lose the properties of a group if you ungroup add
an object and regroup, but you can use "create btn in group 1" if you
don't want to ungroup.

> 
> If there isn't, it would be a handy addition.
> 
>   Ben Rubinstein               |  Email: benr_mc at cogapp.com
>   Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
>   http://www.cogapp.com        |  Fax  : +44 (0)1273-728866

-- 
__________________________
 Regards, Andu


--------------- MESSAGE use-revolution.v001.n146.15 ---------------

From: Patrick Giagnocavo <patrick at zill.net>
Subject: Re: [a bit OT] instant messaging protocol
Date: Tue, 27 Nov 2001 22:40:22 -0500
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
References: <200111280228.VAA13847 at www.runrev.com>

Ben Rubinstein wrote:
> 
> does anyone know if any of the relatively well established instant messaging
> protocols are documented?  I want to implement a client in Rev (which can
> take special action in response to some messages) but ideally it would use a
> standard protocol so it could interact with standard clients.
> 
> TIA,
>

The AIM client is NOT published, however it has been reverse engineered.

Looking at the source for such a client would lead to a description of
the protocol.  Look at "TiK" which is written in the TCL programming
language - it is a relatively simple language to learn.

There is also Jabber, which is not as popular but which does have a
published protocol.

./patrick


--------------- END use-revolution.v001.n146 ---------------




More information about the use-livecode mailing list