Re: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Sivakatirswami
OK I throw in the towel... I'll rename the files for now on the users  
hard drive while retaining the long file name for all other processes  
other than simply to play the player... this solves the immediate  
problem and by changing a few other scripts that refer to the field  
that contains the path to refer instead to  the custom prop that  
contains a  <32 filename... I'm good to go and I'll offer some  
mangoes to the Gods of the temple of Run Rev that they will fix this  
before I get back to building the other apps related to this project,  
in those contexts I definitely do not want to be changing these files  
names...


oh...viz-a-viz the bug categorizatioin:  i guess, since I *can* carry  
on, this is indeed not a true "blocker"...


:-)  I see what you mean... a true blocker should mean I can't do  
*anything* to continue.


global theTape
on mouseUp
  answer "Are you finished with the last one? If so, shall I clear  
the header info?" with "No" or "Yes"

  if it is "No" then exit to top
  answer file "Locate the sound file you want to transcribe."  with   
(fld "localPath" of stack "atra-prefs" &"/")

  if it is empty then exit mouseUp
  put it into theTape
   put empty into fld "theTotalTime"
  put theTape into fld "soundfile"
  set the uActualFileName of fld "soundFile" to theTape
  set the itemdel to "/"
  if len(item -1 of theTape)>32 then
  put theTape into tTruncatedFileName
put char 1 to 13 of (item -1 of theTape) & ".mp3"  into item -1  
of tTruncatedFileName

rename file theTape to tTruncatedFileName
put tTruncatedFileName into theTape
  set the uActualFileName of fld "soundFile" to theTape
end if
  set the filename of player "theTape" to theTape
  clearHeader
end mouseUp

On Jun 24, 2005, at 7:41 PM, Dar Scott wrote:



On Jun 24, 2005, at 11:17 PM, Sivakatirswami wrote:


Setting a player to the alias resolves the alias and applies the  
original path to the player's filename prop. So this alias option  
doesn't get us anything. try it... make alias of long file name..  
truncate alias a back to <32 chars... "set the fileName of player  
i to aliasPath"then check player's props filename will be the  
original long one.




It was worth a try.

Dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
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



___
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


Scripting conference direct link

2005-06-24 Thread J. Landman Gay
If the Runtime server is down before or during our scripting conference 
on Saturday, those who rely on the web page link to get to the 
conference may not be able to find the chat room. Here is a link that 
will take you directly to the chat room:




We'll look for you there, same time as always.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Dar Scott


On Jun 24, 2005, at 11:17 PM, Sivakatirswami wrote:

Setting a player to the alias resolves the alias and applies the 
original path to the player's filename prop. So this alias option 
doesn't get us anything. try it... make alias of long file name.. 
truncate alias a back to <32 chars... "set the fileName of player i to 
aliasPath"then check player's props filename will be the original 
long one.


It was worth a try.

Dar
--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
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: Choosing printer from within a script

2005-06-24 Thread Ken Ray
> Well, actually, I would also need to select the current printer. Do you
> think that might set off antivirus software?

Perhaps, I'm not sure.
 
> I am pretty sure I could get a list of printers just by getting the
> files in the printer folder - but choosing a current printer, so that
> the subsequent print command prints on that printer, is a different
> matter.

True.
 
> I really wish that was an inherent part of transcript.

So do I!

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/



___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Sivakatirswami
Setting a player to the alias resolves the alias and applies the  
original path to the player's filename prop. So this alias option  
doesn't get us anything. try it... make alias of long file name..  
truncate alias a back to <32 chars... "set the fileName of player i  
to aliasPath"then check player's props filename will be the  
original long one.


On Jun 24, 2005, at 4:26 PM, Brian Yennie wrote:


Sivakatirswami,

See "create alias" - pretty easy to use.

I can't promise that Rev won't resolve the alias and still have  
long file name problems, but it may be worth a shot. You could  
probably write a handler, if this works, that loops through all of  
your player objects and does something like:


repeat with i=1 to number of players
   put the fileName of player i into playerPath
   set the itemDelimiter to "/"
   put specialFolderPath("temporary")&"/"&(item -1 of playerPath)  
into aliasPath

   create alias aliasPath to file playerPath
   if (the result is empty) then
  set the fileName of player i to aliasPath
   else
  answer error "Error Creating Alias to Media"
   end if
end repeat

Untested, but hopefully helpful. I've tested that setting the  
fileName to an alias DOES work, I just haven't experienced the long  
file path bug myself, so can't say whether it cures that!


HTH -

Brian


I'm all ears... in this app, the sound file is downloaded over the  
net... and later thrown away... the source file is on our server  
and will continue to carry the long file name... so, temporarily  
changing the name of the file is not "dangerous" in this context  
and since we "own" the files, it's not like I'm messing with my  
clients file archive... but still I like the alias possibility.


I would need that to work on both Mac and Windows... do you have a  
cross platform script to code an alias?


thanks
Sivakatirswami

On Jun 24, 2005, at 2:58 PM, Brian Yennie wrote:


I know this is a pretty dirty sounding workaround, but what  
happens if you place an alias to the file in the user's temporary  
files (instead of copying it there)? More work but less disk  
space if it works...




If you want to deliver a media player now, the only way around  
this is to
have your app duplicate the user's media somewhere on their  
drive, rename
it, and then make sure to delete the duplicate when you're  
done.  For a few
files, one by one, this might be OK, but I question whether  
this is a valid

workaround for potentially dozens of multi-megabyte files.




___
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




___
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





___
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



___
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: bug fixes

2005-06-24 Thread Thomas McGrath III
Yeah, I also noticed how quick the response was and how many bugs are 
now either reopened or resolved.


Way to go.

TOm


On Jun 24, 2005, at 8:56 PM, Richard Gaskin wrote:



Given that Kevin and Mark left California less than 48 hours ago, by 
my calculations they've been back in the office less than a day.


Just the same, since then I've seen cc's on more than a dozen bug 
reports being resolved or at least confirmed by Mark Waddingham.


It seems the drive to fix bugs they expressed at RevCon West is well 
in motion


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
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




Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541

___
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: Contextual menus and polygons

2005-06-24 Thread Thomas McGrath III

Jim,

When you installed 2.6 the settings were set back for contextual menus. 
Go to the preferences menu and reselect the allow contextual menus 
item. That should do it.



HTH

Tom

On Jun 24, 2005, at 1:16 PM, Jim Hurley wrote:


I'm losing my mind.

I have always used "command-option-shift-click" to get the contextual 
menu. Works for when either the  browser tool or the pointer tool is 
selected. As soon as I open Run Rev the fingers on my left hand assume 
the command-option-shift configuration.


But in 2.5 and 2.6 it works for every control *except* a polygon.

In 2.2 it worked for polygons.

Anybody else experience this?

Mac OS 10.2.8

Jim
___
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




Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541

___
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: Resources to learn C programming

2005-06-24 Thread Kurt Kaufman

Also:
http://www.shopperturnpike.com/usefulsoftware/Guide to C.pdf

___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Brian Yennie

Sivakatirswami,

See "create alias" - pretty easy to use.

I can't promise that Rev won't resolve the alias and still have long 
file name problems, but it may be worth a shot. You could probably 
write a handler, if this works, that loops through all of your player 
objects and does something like:


repeat with i=1 to number of players
   put the fileName of player i into playerPath
   set the itemDelimiter to "/"
   put specialFolderPath("temporary")&"/"&(item -1 of playerPath) into 
aliasPath

   create alias aliasPath to file playerPath
   if (the result is empty) then
  set the fileName of player i to aliasPath
   else
  answer error "Error Creating Alias to Media"
   end if
end repeat

Untested, but hopefully helpful. I've tested that setting the fileName 
to an alias DOES work, I just haven't experienced the long file path 
bug myself, so can't say whether it cures that!


HTH -

Brian

I'm all ears... in this app, the sound file is downloaded over the 
net... and later thrown away... the source file is on our server and 
will continue to carry the long file name... so, temporarily changing 
the name of the file is not "dangerous" in this context and since we 
"own" the files, it's not like I'm messing with my clients file 
archive... but still I like the alias possibility.


I would need that to work on both Mac and Windows... do you have a 
cross platform script to code an alias?


thanks
Sivakatirswami

On Jun 24, 2005, at 2:58 PM, Brian Yennie wrote:

I know this is a pretty dirty sounding workaround, but what happens 
if you place an alias to the file in the user's temporary files 
(instead of copying it there)? More work but less disk space if it 
works...



If you want to deliver a media player now, the only way around this 
is to
have your app duplicate the user's media somewhere on their drive, 
rename
it, and then make sure to delete the duplicate when you're done.  
For a few
files, one by one, this might be OK, but I question whether this is 
a valid

workaround for potentially dozens of multi-megabyte files.



___
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



___
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




___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Sivakatirswami
I'm all ears... in this app, the sound file is downloaded over the  
net... and later thrown away... the source file is on our server and  
will continue to carry the long file name... so, temporarily changing  
the name of the file is not "dangerous" in this context and since we  
"own" the files, it's not like I'm messing with my clients file  
archive... but still I like the alias possibility.


I would need that to work on both Mac and Windows... do you have a  
cross platform script to code an alias?


thanks
Sivakatirswami

On Jun 24, 2005, at 2:58 PM, Brian Yennie wrote:

I know this is a pretty dirty sounding workaround, but what happens  
if you place an alias to the file in the user's temporary files  
(instead of copying it there)? More work but less disk space if it  
works...



If you want to deliver a media player now, the only way around  
this is to
have your app duplicate the user's media somewhere on their  
drive, rename
it, and then make sure to delete the duplicate when you're done.   
For a few
files, one by one, this might be OK, but I question whether this  
is a valid

workaround for potentially dozens of multi-megabyte files.



___
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



___
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


Stack size (not the previous thread)

2005-06-24 Thread Jim Bufalini
Hi All,

Let me rephrase this question. I have a stack that has one card in it. The
card just has some text custom properties in it. The stack itself has no
scripts, no imported graphics, nothing. Yet, the size of the stack file on
disk is 3,604,480 bytes (3.43 MB).

I deleted the one card from the stack and rev immediately added a blank
card. I saved the stack and the size of the file on disk is still 3, 604,480
bytes (yes, I refreshed my directory listing). Anyone have a clue as to
what's causing the large disk file size of this stack?

Should the file size of a stack automatically change based on it's contents,
or do you have to do something to make it resize downward?

Jim



___
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: bug fixes

2005-06-24 Thread Dennis Brown
I too have seen many bug activity emails hitting me today from Mark's  
work on the bug list.  What a refreshing turn of events.  I am really  
excited about this!

Dennis

On Jun 24, 2005, at 8:56 PM, Richard Gaskin wrote:



Given that Kevin and Mark left California less than 48 hours ago,  
by my calculations they've been back in the office less than a day.


Just the same, since then I've seen cc's on more than a dozen bug  
reports being resolved or at least confirmed by Mark Waddingham.


It seems the drive to fix bugs they expressed at RevCon West is  
well in motion


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
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



___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Brian Yennie
I know this is a pretty dirty sounding workaround, but what happens if 
you place an alias to the file in the user's temporary files (instead 
of copying it there)? More work but less disk space if it works...


If you want to deliver a media player now, the only way around this 
is to
have your app duplicate the user's media somewhere on their drive, 
rename
it, and then make sure to delete the duplicate when you're done.  For 
a few
files, one by one, this might be OK, but I question whether this is a 
valid

workaround for potentially dozens of multi-megabyte files.


___
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


bug fixes

2005-06-24 Thread Richard Gaskin


Given that Kevin and Mark left California less than 48 hours ago, by my 
calculations they've been back in the office less than a day.


Just the same, since then I've seen cc's on more than a dozen bug 
reports being resolved or at least confirmed by Mark Waddingham.


It seems the drive to fix bugs they expressed at RevCon West is well in 
motion


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
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: compileIt for revolution?

2005-06-24 Thread Geoff Canyon


On Jun 24, 2005, at 4:26 AM, Jon wrote:

With all due respect, Jim, if you are trying to do even simple math  
on a large array of numbers (like computing a histogram of image  
data), Rev is simply too slow to use.  It has nothing to do with  
data structures: it has to do with slow pCode trying to run tight  
loops.




As stated previously, I cannot accept this statement/conclusion  
without seeing the code in question. There are simply too many ways  
to write slow code to assume that Rev can't do a task based solely on  
a very general description -- unless the description involves real  
time first-person gaming ;-)

___
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: compileIt for revolution?

2005-06-24 Thread Geoff Canyon


On Jun 23, 2005, at 10:09 PM, Dan Shafer wrote:

Verbosity is a virtue in my mind. Not only does it make code more  
readable and therefore maintainable, but I can't tell you how many  
times I've just sort of guessed at what command or property change  
might have some desired effect only to have it behave exactly as  
predicted. Only with xTalk and Python have I had that kind of  
experience. And I love it!




I don't think the two properties you're talking about, clarity and  
intuit-ability, have anything to do with verbosity. All three are  
effects related to the english-like nature of Transcript. Anyone who  
understands English and the concept of variables understands what  
"put 3 into x" means.


I think the verbosity claim is generally a red herring. Not that  
you're making that claim, Dan, you just helped me up onto the soap  
box ;-) The go-to (no pun intended) comparison is "put 3 into x" vs.  
"x:=3" That comparison is dramatic but misleading. "repeat 20" is no  
more verbose than the equivalent in most other languages. "if" is  
still "if" There are even counter-examples, such as various languages  
that surround conditional groups with braces or other syntactic  
sugar. Further, the built-in command set, including things like chunk  
expressions and url-based filesystem access, lead to there being less  
overall code in Transcript compared to other options. I have yet to  
see a systematic comparison of the length of Transcript vs. that of  
other languages.


The clarity of Transcript comes simply from good naming conventions  
for commands and functions. The intuit-ability is much the same. If  
good naming happens to lead to slightly longer names, that's not a  
problem for me.


regards,

Geoff


___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Alejandro Tejada
Hi Developers,

i remember that Kenneth Simmons
has posted a C++ version of
the external dll in this page:



Following the instructions for
compiling this C++ dll in Dev-C++
produced the following errors.
Notice these are a lot less than 
in previous trials with the sdk. :-)

-
Compiler: Default compiler
Building Makefile:
"C:\Windows\Desktop\mcExternalCPP\Makefile.win"
Executing  make...
make.exe -f
"C:\Windows\Desktop\mcExternalCPP\Makefile.win" all
g++.exe -c external.cpp -o ../mcExternalCPP/external.o
-I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" 
-I"C:/Dev-Cpp/include/c++/3.4.2/backward" 
-I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" 
-I"C:/Dev-Cpp/include/c++/3.4.2" 
-I"C:/Dev-Cpp/include" 
-I"C:/Windows/Desktop/mcExternalCPP"  -DBUILDING_DLL=1
  -ansi -traditional-cpp

external.cpp: In function `void
XCcallbacktests(char**, int, char**, int*, int*)':
external.cpp:152: error: `time' undeclared (first use
this function)
external.cpp:152: error: (Each undeclared identifier
is reported only once for each function it appears
in.)

make.exe: *** [../mcExternalCPP/external.o] Error 1

Execution terminated


Visit my site:
http://www.geocities.com/capellan2000/

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
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: is within ... polygon shape?

2005-06-24 Thread Alex Tweedly

Jim Hurley wrote:



Take a look at:

go stack url "http://home.infostations.net/jhurley/CollidingPolygons.rev";

Sorry, Jim, but that doesn't work for all polygons. For example (excuse 
the ascii drawing )



   1
   1   1
   1   1
  222
  2 2
  222
   1   1
   1

Even for 2  rectangles, it doesn't always work.  If I remember 
correctly, the most effective algorithm for overlap depends on edge 
intersections (with a special case test for one polygon entirely within 
the other). Any two polygons that overlap will have at least one case 
where their edges intersect - though you need to deal with the special 
cases where the edges touch; you can then test the mid-point of the 
edges adjacent to the point of touch to determine if they are within or 
outwith the other polygon (or alternatively, test the points 1 delta 
away from the point of touch - but then you need to be very careful 
about precision and rounding errors).


And even then, you have some weird corner cases involved in 
self-reflexive polygons - far less Rev's "invisible edge" polygons which 
can produce disjoint areas.


(Is self-reflexive the right term ?  polygons that overlap themselves, like

1
1   1
 111
 1 1
   1
 1  1   1  1
 1  1   1  1
 1  1  1
 1 1
 111


You need to determine whether the points in the self-overlap area are 
within the polygon or not ...  and I can't remember which is the "right" 
decision, i.e. the one that makes the problem easier.


--
Alex Tweedly   http://www.tweedly.net



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.0/27 - Release Date: 23/06/2005

___
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


Convolve External Fixed (Was Re: Sucess compiling Alex Tweedly DLL!)

2005-06-24 Thread Derek Bump
I to have had great success compiling the example DLL provided by Alex 
Tweedly.  Alex's walk through should be included within the SDK.


So now that I know how to compile with Bloodshed C++, I was able to fix 
the Convolve example code that comes within the SDK.  It will now 
successfully handle the new image format that is used within engine's 
version 2.4.2 and higher.


You can download the updated Convolve External, Source Code and Example 
stack from...


 http://www.dreamscapesoftware.com/products/convolve3.zip


I am still working on it though to try to figure out how to remove the 
black borders that sometimes appear on the edges of convolved images, 
but at least now the image is being rendered properly.


If someone could compile the code on the Macintosh and Linux side then 
we would have an all around Convolve external that is much faster than 
the scripted version.  We'll see though!



Derek Bump
Dreamscape Software
___
Compress Photos for the Web with JPEGCompress
http://www.dreamscapesoftware.com/
___
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: mysql oddities

2005-06-24 Thread Harvey Toyama
Be sure to eliminate password/version issues. There was a change from
16-characters to 40-characters. Your new service provider may have a
different version installed. You can check the on-line MySQL manual
under "old passwords".

-- Harvey
-- 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Howard
Freeman
Sent: Friday, June 24, 2005 12:55 AM
To: use-revolution@lists.runrev.com
Subject: mysql oddities

I've been using rev to link up to MySQL for a while but I've just 
changed my web space supplier and I can't connect to MySQL. I thought 
that this was their problem but it's stranger than that.

If I use the database query builder then the connection is made and I 
can see the tables and fields and can query the database. When I try 
to do the same thing in my own stack - and those of other people who 
use MySQL - I get connection errors. What I'd really like to do is 
get inside the database query builder to find out what commands it is 
using to connect to my database.

Alternatively, can someone provide some tips about the port variable 
in the revopendatabase function? I'm just putting the port number as 
a colon and number immediately after the host url and I'm sure this 
is right, eg :3337. Is there any other way to write it?

Also, I don't want to use the database query manager all the time 
because I intend to distribute this as a standalone to users of the 
MySQL database.

Thanks

Howard
___
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

___
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: Additive Images

2005-06-24 Thread Rick Harrison

Chipp & Alejandro,

Thanks so much for the quick help.  I'm not sure I explained
well enough what it is that I'm looking to do.

I'm not talking about one opaque image on top of another so
that parts of the third image overlays the second, and the second
one overlays part of the first.

I'm also don't think I'm talking about blending the three images so  
much either.


Let's say for example that the pixel at 20,19 on the first image is  
red with a brightness
of 26, and the second image contains the same shade of red at a  
brightness of 24 at
pixel 20,19, and the third image contains blue at pixel 20,19 at a  
brightness of 34.


Adding the data of the first two red pixels should give me a  
brightness of 50 red and
then adding in the blue pixel should make the resulting pixel  
somewhat purple red
with a brightness of 84.  At least that's how I'm thinking it would  
work.  Additive images.


I still have to look into the stacks more in depth you've provided  
for me.


Thanks again!

Rick

___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Mark Wieder
Alejandro-

Friday, June 24, 2005, 1:11:41 PM, you wrote:

AT> make.exe -f
AT> "C:\WINDOWS\Desktop\ExternalSDK\Makefile.win" all
AT> dllwrap.exe --output-def libexternal.def --implib
AT> libexternal.a external.o XCmdGlue.o 
AT> -L"C:/DEV-CPP/lib" -L"C:/WINDOWS/Desktop/ExternalSDK"
AT> --no-export-all-symbols --add-stdcall-alias --def
AT> external.def   -o external.dll

AT> external.o(.text+0x137e):external.c: undefined
AT> reference to [EMAIL PROTECTED]'

I would look into the makefile. It looks to me like the standard
Windows libraries are not getting linked. Are you including them
and/or does Bloodshed need you to do this explicitly? Some compilers
do this automatically, some need you to specify them yourself. There
is probably a linker option for this.

...
AT> C:\DEV-CPP\BIN\DLLWRAP.EXE: C:\DEV-CPP\BIN\gcc exited
AT> with status 1

Ah... I hadn't realized that Bloodshed C used gcc.

-- 
-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: is within ... polygon shape?

2005-06-24 Thread Cubist
   It occurs to me that even tho the "intersect" function works with the 
bounding rectangle of an object, and not the actual object itself, "intersect" 
could nonetheless be useful as a sort of initial screen. If "intersect" doesn't 
think the two objects intersect, well, they *can't* intersect, right? Thus, use 
"intersect" to winnow out the wheat (stuff that *might* intersect) from the 
chaff (stuff that *can't* intersect), and then use your *real* 
intersection-finding function on the wheat. Like so:

function WhatIntersectz DaList, DerObject
  # DerObject is the thing you want to find out what intersects with it
  # DaList is a return-delimited list of all the objects that *might* 
intersect with DerObject

  put "" into NuList
  repeat for each line LL in DaList
if intersect (the rect of LL, the rect of DerObject) then
  put LL into line (1 + the number of lines in NuList) of NuList
end if
  end repeat
  put NuList into DaList

  # now we've got a list of all the objects which *might* intersect
  # which are the real deal?
  put "" into NuList
  repeat for each line LL in DaList
if ReallyIntersect (the rect of LL, the rect of DerObject) then
  put LL into line (1 + the number of lines in NuList) of NuList
end if
  end repeat
  return NuList
end WhatIntersectz

   "ReallyIntersect" is, of course, a separate handler which takes the actual 
points of a polygon into account when determining what does or doesn't 
intersect. What's the point of going thru all this rigamarole in the first 
place? It 
depends how fast the "ReallyIntersect" code is, as compared to the 
"intersect" function. I'm assuming that "ReallyIntersect" is going to be 
appreciably 
slower than "intersect", in which case it makes sense to use "ReallyIntersect" 
as 
little as possible.

   Hope this helps...
___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread chris bohnert

al,

I don't often build externals with "bloodshed", but if i remember 
correctly you needed to make sure you had the following


1.) -DBUILDING_DLL=1 as a compiler option

2.) --add-stdcall-alias as a linker option (which you have)

3.) Since you're building c code and not c++ you might mess with the 
--driver-name option to dllwrap
  something like --driver-name=c

4.) try exporting all the symbols (not good for production) with
 --export-all-symbols  instead of --no-export-all-symbols


--
cb

Alejandro Tejada wrote:


Hi Mark!,

Mark Wieder wrote:

AT> now, while using the same recipe to compile
AT> the external from the sdk, i get a lot of
AT> warnings and linker errors about a long list 
AT> of similar undeclared objects 
AT> like: "SelectObject at 8"


 

That's a pretty bizarre error message. 
Which example are you trying to compile?
   



notice Mark, the at symbol (the symbol over
the key with the number 2) is converted in
the "at" word in these mails!

i'm applying the instructions of
the readme.rtf to compile the
"external.dll" that is inside the
SDK externals and the instructions
provided by Alex to compile his external.

After this message is the compile log,
create by Dev-C++ while compiling
this external. Obviusly, i'm missing
many things... Could you spot the errors?

Better yet. Could you post a recipe to
compile this dll using Dev-C++ (Bloodshed)?

Thanks in advance. :-)

al

compile log while creating "external.dll"
within Dev-C++ (latest downloable version)
-
Compiler: Default compiler
Building Makefile:
"C:\WINDOWS\Desktop\ExternalSDK\Makefile.win"
Executing  make...
make.exe -f
"C:\WINDOWS\Desktop\ExternalSDK\Makefile.win" all
dllwrap.exe --output-def libexternal.def --implib
libexternal.a external.o XCmdGlue.o 
-L"C:/DEV-CPP/lib" -L"C:/WINDOWS/Desktop/ExternalSDK"

--no-export-all-symbols --add-stdcall-alias --def
external.def   -o external.dll

external.o(.text+0x137e):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x13f9):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1408):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x141c):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1437):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1446):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x145a):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x149a):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x14b3):external.c: undefined
reference to [EMAIL PROTECTED]'

external.o(.text+0x14cc):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x15aa):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x15cb):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1603):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1617):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1635):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1653):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1686):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x16a5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x16be):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1769):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1778):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x178c):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x17a5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x17e5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x17fe):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1817):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18ab):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18c5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18d5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18e5):external.c: undefined
reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status

C:\DEV-CPP\BIN\DLLWRAP.EXE: C:\DEV-CPP\BIN\gcc exited
with status 1

Execution terminated
--
end of compile log to create "external.dll"
with Dev-C++.



Visit my site:
http://www.geocities.com/capellan2000/



 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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

Winner nr. 1 of the CCC

2005-06-24 Thread Björnke von Gierke

Dear Revolution Community:

The Winner is Benedikt Seidl's stack!

You can look at it by entering this into your message box:
go stack url "http://contest.wecode.org/benedikt_seidl.rev";

Each Judge voted between 1 and 10 where 10 is the best.

Benedikt had the following votes:
Originality: 32
Style: 37
FunFactor: 28
Readability: 35
All added up: 132


Mark wrote this about Benedikt's stack:

Style

Benedikt used the entire stack window and 10 lines of script. By doing 
so, he utilised all available opportunities. It must be said, though, 
that the stack itself isn't too attractive, visually, and he used a 
very small number of objects: one field, one button, and one graphic. 
He may have come up with an even more impressive solution, if he had 
used additional objects, though not necessarily.



Originality

The fractal idea is not new. It is impressive, though, that Benedikt 
found a way to draw a fractal-like pattern at high speed in only 10 
lines of script. The way he uses Revolution's tools to do this is 
certainly original.



Fun

True, once you have seen what the stack does, the exercise will not 
astonish you again. Still, if you see it for the first time, you want 
to know what's going on and it is certainly is intriguing. We think 
that the fun is in figuring out how he did it.



Readability

How did he do it? It is not too easy to find out. Have a look at the 
scripts, which are very readable, if you are not scared off by some 
mathematics.



Final Remark

It is remarkable how well Benedikt sticks to the rules of the contest 
while really making the most of all available opportunities. We even 
suspect that he didn't really need that many script lines and added 
some colour animation just to fill the remaining lines. 
Congratulations, Benedikt!



The CCC Judges

--

http://contest.wecode.org
Now running: the first ChatRev coding contest!
sponsors:
Altuit
Andre Garzia
Fourth World
Karl Becker
Runtime Revolution
TidBITS in cooperation with eHUG
___
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: files, names and files

2005-06-24 Thread Devin Asay
I can't add much to Richard's excellent explanations, except to  
confirm that for me as an ex-HyperCarder the indirect relationship  
between the name of the stack in the file system and the name  
property of the stack was confusing for a long while. Once I trained  
myself to refer to the entity represented in the file system as a  
"stackfile" and understand it was something different that the  
entities it contains -- main stacks and substacks -- the whole rev  
world became a lot clearer to me. In HyperCard there was a one-to-one  
relationship between the name of the stack and its name in the  
Finder: you changed one, you changed both. It was simpler, but I've  
found that Rev's way of handling it gives me freedom HyperCard did not.


Regards,

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: compileIt for revolution?

2005-06-24 Thread Joel Guillod

From: Dan Shafer <[EMAIL PROTECTED]>
[...]
Then my second favorite language was Python. The GUI-building tools
for Python are pathetic to non-existent. But the language is powerful
and elegant and extends naturally. If the PythonCard project I was
engaged in before I discovered Revolution had been on a fast track or
complete, odds are I'd have never used Rev.


Didn't you know about wxDesigner to generate the Python code for GUI? 
There is also a very new Boa Constructor upgrade...
Yes, Python is lacking for an IDE, i.e. "Integrated" tools for coding 
and designing GUI!

I expect an integrated Python external but as the SDK is so obscure...

___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Dar Scott


On Jun 24, 2005, at 1:31 PM, Mark Wieder wrote:

AT> warnings and linker errors about a long list
AT> of similar undeclared objects
AT> like: "[EMAIL PROTECTED]"

That's a pretty bizarre error message. Which example are you trying to
compile?


I'm coming in in the middle of this.

This looks similar to a decorated name for the STCCALL calling 
convention for a function named SelectObject that is called with 8 
bytes on the stack, perhaps 2 parameters.


The library may have been using some method that overrode the default 
decoration of the names.


Since I jumped in at the middle, I may not have hit upon anything 
useful.


Dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
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: files, names and files

2005-06-24 Thread Richard Gaskin

Timothy Miller wrote:

Are there other good resources I'm overlooking?


First stop:


Second:


Third:



Would someone be so kind as to explain the technical and practical 
distinctions between


--The Name of a stack

The name property lets you identify any object with a text string.



--The Title of a stack
This governs what's displayed in the stack window's title bar; if empty 
it displays the name.




--The name of the stack as it appears on the hard disk
This is simply the name of the stackfile that contains your mainstack 
and any substacks.  It is normally independent of the name of any stack 
it contains, but if you want to display the file name in the title bar 
you can use this:


  on preOpenStack
set the itemdelimiter to "/"
get last item of the effective filename of this stack
set the title of this stack to it
pass preOpenStack
  end preOpenStacl



--The name of a stack specified in the stackfiles


Rev stacks can be referenced by their short name, providing Rev knows 
where they are.  Any stacks contained in the stack file your scripts are 
in can be found easily, but what about stack in other files?  That's 
where the stackFiles property comes in:


The stackFiles property identifies which files specific stacks can be 
found.  The property is a return-delimited list in which each line 
contains two elements separated by commas:


  ,

e.g.:

  MyAbout,/components/myAppResources.rev
  MySaveDialog,/components/myAppResources.rev

This tells Rev that anytime your scripts refer to "MyAbout" or 
"MySaveDialog" it can find those in the stackfile named 
"myAppResourcs.rev" in a folder named "components".  Note that the 
filename is relative to the filename of the stack whose stackFiles 
property you're setting, so it works much like HTML in allowing relative 
paths.  You can use a full path, but of course if you move your files to 
another machine the full path may not be the same.


Once you have a stack with the stackfiles set as shown, you can open 
those other stacks easily:


  modeless "MyAbout"
  modal "MySaveDialog"


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
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


Winner nr. 2 of the CCC

2005-06-24 Thread Björnke von Gierke

Dear Revolution Community!

In case you haven't joined us at ChatRev and also for later review, 
we'd like to announce the second place in the ChatRev Coding Contest:  
It goes to  for Malte Brill. We discuss each of the categories as 
defined in the rules for the simple challenge.


If you would like to have a look at the stack that won the second 
prize, please type the following line in your message box:

go stack url "http://contest.wecode.org/malte_brill.rev";

Each Judge voted between 1 and 10 where 10 is the best.

Malte had the following votes:
Originality: 30
Style: 33
FunFactor: 29
Readability: 37
All added up: 129

Ro Nagey had this to say about Malte's stack:

Style:
Malte did a great job in the presentation of his stack: the formatted  
text in the top field makes reading the code much easier than a plain  
text version would have been. The graphics are pleasing.  Negatives:  
the plain 'OK' button, the fact that the stack is resizable but the  
fields don't adapt and the lack of a 'design' to the stack in terms  of 
color and theme.


Originality:
This is a great stack that not only meets the rules but also gives an 
immediate lesson in a great programming idea!


Fun:
OK, this is not an arcade game, so fun is a relative concept. One  
aspect that made me smile was guessing that he probably developed  this 
for other work, realized that it was less than 10 lines, and is sharing 
it with us! And, I liked the fact that he points out the  comments are 
there to pad it out to 10 lines.


Readability:
Excellent, again, the formatted text is a factor as is the horizontal 
scrolling bar. The only thing I would have added is a comment about  
the second line of his script. Perhaps he will explain that tonight.


Final thoughts:
This is the kind of entry that not only wins on its own merits, it  has 
given me all sorts of ideas of how to improve my own work in the  
future - the best of both worlds.



Best regards,

The ChatRev Coding Contest Judges


--

http://contest.wecode.org
Now running: the first ChatRev coding contest!
sponsors:
Altuit
Andre Garzia
Fourth World
Karl Becker
Runtime Revolution
TidBITS in cooperation with eHUG

___
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: is within ... polygon shape?

2005-06-24 Thread Judy Perry
Jim,

Thanks!  I'll have another look/try.

To put this into context, My original need grew out of an attempt to demo
(unsuccessfully, as it turned out) using Rev to create a game of moving
objects on a map/background.

The map would need to scroll as the moving character image hit the edges
of the window.  Check.  Got that.  Got the critter moving.  Check. Got
that.

But where I had problems (there were two) was in

(1) doing collision detection.  This was because the students wanted to
use an orthoscopic map.  Imagine using X,Y coords but they're skewed by 45
degrees.  This meant having to use irregularly-shaped targets.  Hence my
first problem.

(2) It wasn't enough to do collision detection; I needed a coorection
factor for where the critter had to _go around_ an obstacle (that is:
detect collision and reset position to just before collision to alert the
player that the critter need to go around the obstacle).

It was especially the second that prompted somebody to tell me to go read
an algorithm book.  Like I said, I just gave up there.

Maybe I'll pester you if I run into obstacles myself ;-)

Thanks,

Judy

On Fri, 24 Jun 2005, Jim Hurley wrote:

> >
> >Message: 12
> >Date: Fri, 24 Jun 2005 10:49:17 -0700 (PDT)
> >From: Judy Perry <[EMAIL PROTECTED]>
> >Subject: Re: is within ... polygon shape?
> >To: How to use Revolution 
> >Message-ID:
> > <[EMAIL PROTECTED]>
> >Content-Type: TEXT/PLAIN; charset=US-ASCII
> >
> >bummer...
> >
> >I was hoping that you'd found a solution to my need for the sort of
> >irregularly-shaped buttons that an old HC external provided.
> >
> >Drats!
> >
> >Judy
>
>
>
> Judy,
>
> Take a look at:
>
> go stack url "http://home.infostations.net/jhurley/CollidingPolygons.rev";
>
> Hope you all make it home all right. I stayed over another day so
> that I could take in the aquarium.
>
> Jim
> ___
> 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
>

___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Richard Gaskin
Once the nuances of correcting for the current funky externals package 
are identified, would it be worth the effort to make a Rev tool to serve 
as a simple specialized IDE for making externals?


C is just text, as are the make files, and GCC can be run with the shell 
function, yes?


My hunch is we could make quite a tidy package that would greatly 
simplify the mechanics of making Rev externals, and never have to leave 
Rev to do it.


Am I dreaming?

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
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


files, names and files

2005-06-24 Thread Timothy Miller

Good afternoon,

I feel kind of bad about asking so many semi-newbie questions, but 
I'm not quite sure how else to find stuff out. The onboard 
documentation is sometimes helpful. Often it's sparse and/or cryptic, 
it seems to me. I hope that improves. I have Dan Shafer's book. 
Sometimes it helps, of course, but not always. I wonder if a separate 
list for novices has been considered. Much of the discussion here is 
way over my head.


Are there other good resources I'm overlooking?

But that's not why I called.

Would someone be so kind as to explain the technical and practical 
distinctions between


--The Name of a stack

--The Title of a stack

--The name of the stack as it appears on the hard disk

--The name of a stack specified in the stackfiles

--The filename of a stack specified in the stackfiles

(I have the general idea about filenames as in "get the filename of 
stack "abc" So that explanation might not be needed.)


It's probably not all that hard, *after* you understand it. *Before* 
one understands it, it's rather perplexing. (I don't think we're in 
hyperCard anymore, Toto.)


(BTW, as far as I can tell, the stackFiles are a multi-line property, 
which the user can set or get by script or with the multi-line 
message box. Correct?)


This came up because I wanted to open a stack, and an archived 
version of the same stack (in another folder) at the same time, just 
to look -- not for the sake of scripting interaction between the two.


Silly me. I thought it would suffice just to alter the name of the 
archived stack as it appears on the hard disk. That clearly doesn't 
work.


Presumably, if I understand the things I asked about above, I'll 
figure out how to do that when I need to. If there's a quick trick to 
this, I'd like to know it. (Both stacks have the same stackfiles. I'd 
guess I'll have to modify the stackfiles in the archived stack to 
open it at the same time as the other.)


Thanks in advance, again,


Tim Miller

___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Alejandro Tejada
Hi Mark!,

Mark Wieder wrote:

AT> now, while using the same recipe to compile
AT> the external from the sdk, i get a lot of
AT> warnings and linker errors about a long list 
AT> of similar undeclared objects 
AT> like: "SelectObject at 8"

>That's a pretty bizarre error message. 
> Which example are you trying to compile?

notice Mark, the at symbol (the symbol over
the key with the number 2) is converted in
the "at" word in these mails!

i'm applying the instructions of
the readme.rtf to compile the
"external.dll" that is inside the
SDK externals and the instructions
provided by Alex to compile his external.

After this message is the compile log,
create by Dev-C++ while compiling
this external. Obviusly, i'm missing
many things... Could you spot the errors?

Better yet. Could you post a recipe to
compile this dll using Dev-C++ (Bloodshed)?

Thanks in advance. :-)

al

compile log while creating "external.dll"
within Dev-C++ (latest downloable version)
-
Compiler: Default compiler
Building Makefile:
"C:\WINDOWS\Desktop\ExternalSDK\Makefile.win"
Executing  make...
make.exe -f
"C:\WINDOWS\Desktop\ExternalSDK\Makefile.win" all
dllwrap.exe --output-def libexternal.def --implib
libexternal.a external.o XCmdGlue.o 
-L"C:/DEV-CPP/lib" -L"C:/WINDOWS/Desktop/ExternalSDK"
--no-export-all-symbols --add-stdcall-alias --def
external.def   -o external.dll

external.o(.text+0x137e):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x13f9):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1408):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x141c):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1437):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1446):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x145a):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x149a):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x14b3):external.c: undefined
reference to [EMAIL PROTECTED]'

external.o(.text+0x14cc):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x15aa):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x15cb):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1603):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1617):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1635):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1653):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1686):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x16a5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x16be):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1769):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1778):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x178c):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x17a5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x17e5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x17fe):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x1817):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18ab):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18c5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18d5):external.c: undefined
reference to [EMAIL PROTECTED]'
external.o(.text+0x18e5):external.c: undefined
reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status

C:\DEV-CPP\BIN\DLLWRAP.EXE: C:\DEV-CPP\BIN\gcc exited
with status 1

Execution terminated
--
end of compile log to create "external.dll"
with Dev-C++.



Visit my site:
http://www.geocities.com/capellan2000/



 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com
___
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


Winner nr. 3 of the CCC

2005-06-24 Thread Björnke von Gierke

This is the first mail of 3, one for each winner.


Each Judge voted between 1 and 10 where 10 is the best.

Alex had the following votes:
Originality: 26
Style: 33
FunFactor: 30
Readability: 33
All added up: 122

His stack can be opened by copying this into the message box:
go stack url "http://contest.wecode.org/alex_tweedly.rev";

Short descritpion of Alex Tweedly's stack by Wouter:

All stacks should have been judged  equal overall, but as there were no 
"the same prizes" a differentiation had to be made.


Style

Though none of the contestants really applied for "looks", this one is 
visually the most pleasing of them all.


Originality

In this case the originality lies exactly in the minimum lines of code 
to make the clock tick, for wich Alex used 7, which is quite an 
achievement.


Fun

The code is enticing for even less lines, making the fingers itch...
Burried inside there is a 12 hourly one hour special event... a delight 
for time hunter or watch watcher.


Readability

Clear as water for the mathematical mind.

Final Remark

This stack is an excellent example of how one can achieve the most with 
a minimal of controls and code. Well done.


--

http://contest.wecode.org
Now running: the first ChatRev coding contest!
sponsors:
Altuit
Andre Garzia
Fourth World
Karl Becker
Runtime Revolution
TidBITS in cooperation with eHUG

___
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 := operator (affectation

2005-06-24 Thread John Ridge
on 24/6/05 7:00 pm,  Jim MacConnell wrote :

What a difference a few quotes make. I can hear your "voice" now and
understand where you were headed. Fine example of dangers of
interpreting email too literally which I am prone to do when
tired. What appeared to be sarcastic and cynical and rude was in fact
clever example...


This is really great. I was getting worried about you guys... Thanks, Jim!
-- 


___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Alejandro Tejada
on Fri, 24 Jun 2005 
Klaus Major wrote:

> ehm, sorry, but looks like i missed the part with
> the explanation of what the wonderful external 
> actually does?
> Sorry for my ignorance...

It's a functional starting point for
developing external using the free compiler
named "Dev-C++" (Bloodshed). The first, i think.

When you get sucess compiling one
external with Dev C++, then you could try to 
compile the source code of other externals
provided by developers in this list.

After that, if you have sucess, it's all up to you
and your time for experiments... ;-)

al







Visit my site:
http://www.geocities.com/capellan2000/



 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com
___
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: is within ... polygon shape?

2005-06-24 Thread Jim Hurley


Message: 12
Date: Fri, 24 Jun 2005 10:49:17 -0700 (PDT)
From: Judy Perry <[EMAIL PROTECTED]>
Subject: Re: is within ... polygon shape?
To: How to use Revolution 
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: TEXT/PLAIN; charset=US-ASCII

bummer...

I was hoping that you'd found a solution to my need for the sort of
irregularly-shaped buttons that an old HC external provided.

Drats!

Judy




Judy,

Take a look at:

go stack url "http://home.infostations.net/jhurley/CollidingPolygons.rev";

Hope you all make it home all right. I stayed over another day so 
that I could take in the aquarium.


Jim
___
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: compileIt for revolution?

2005-06-24 Thread Richard Gaskin

Jerry Daniels wrote:
I thought Tom Pittman did a very good job of maintaining the purity of 
HyperTalk when he did CompileIt! Any future efforts could stand on his 
shoulders in that regard.


Just get an interface more like Mark Hanrek's please. :)

So much faster, so much simpler

--
 Richard Gaskin
 Managing Editor, revJournal
 ___
 Rev tips, tutorials and more: http://www.revJournal.com
___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Mark Wieder
Alejandro-

Friday, June 24, 2005, 11:21:30 AM, you wrote:

AT> now, while using the same recipe to compile
AT> the external from the sdk, i get a lot of
AT> warnings and linker errors about a long list 
AT> of similar undeclared objects 
AT> like: "[EMAIL PROTECTED]"

That's a pretty bizarre error message. Which example are you trying to
compile?

-- 
-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


Contest Results now!

2005-06-24 Thread Björnke von Gierke

Hi all

To celebrate, we will announce the winners of the contest and discuss 
the entries, on a world-wide ChatRev session now!


The winners will be invited to talk about their stack and to explain 
the approach to their solution. The whole event will last one hour at 
most.


The three best stacks of this challenge will be made available on the 
ChatRev Coding Contest website, shortly after the event.


The "Advanced Challenge" continues until 11th July and the "Impossible 
Challenge" until 8th August. Make sure to submit your solutions to each 
of the challenges in time, to win one of the wonderful prizes.


To learn more about the Coding Contest, go to: 

If you need to get a copy of ChatRev, go to: 



Everyone join us on ChatRev!


Warmest regards,

The CCC judges,

Björnke
Wouter
Chipp
Mark
Ro

--

http://contest.wecode.org
Now running: the first ChatRev coding contest!
sponsors:
Altuit
Andre Garzia
Fourth World
Karl Becker
Runtime Revolution
TidBITS in cooperation with eHUG

___
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: compileIt for revolution?

2005-06-24 Thread Jerry Daniels

Dan,

I thought Tom Pittman did a very good job of maintaining the purity of 
HyperTalk when he did CompileIt! Any future efforts could stand on his 
shoulders in that regard.


-JD

On Jun 23, 2005, at 7:26 PM, Dan Shafer wrote:

If you can write externals in Transcript syntax and NOT over-extend 
the language to accommodate this demand, I don't have an issue. But 
that is not generally the case. When people talk about writing 
externals they generally (in my experience at least) mean they want to 
make the tool do something its built-in language does not inherently 
know how to do. There is in that desire a strong implication of adding 
features to the language that I believe will ultimately corrupt it to 
the point of not being accessible to mere mortals.


It's what I call the Javazation of Transcript. If you have a need for 
something in a program that Transcript simply can't do and if the 
right way to solve that problem is with an external, then it seems to 
me you should be willing to move outside the boundaries of the 
language to do that thing, whatever it is. (These multi-dimensional 
array manipulations, e.g., can apparently not be done satisfactorily 
in Transcript.)


I'm *always* going to come down on the side of keeping the language as 
simple as possible. In my opinion, it is already too burdened with 
baggage that is of use to a tiny fraction of its users in order to 
accommodate a few people with specific programming needs. As it 
becomes more complex -- even if those complexities are posited as 
"optional alternatives" -- it becomes more and more impenetrable to 
those who do not have a computer science background or formal computer 
training. Those folks already have enough languages to pick from. I 
strongly desire for this one to escape the clutches of the Programming 
Priesthood.


On Jun 23, 2005, at 6:35 AM, Rob Cozens wrote:

Why would any Transcript scriptor want to write externals in C or 
Pascal if she could use Transcript syntax instead?






~~
Dan Shafer, Revolution Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.shafermedia.com/revolutionbooks.html




___
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



___
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: compileIt for revolution?

2005-06-24 Thread Jerry Daniels

Paul,

My thoughts pretty much mirror your own, Paul.

First step is environment independent code for parsing, arrays, 
calculations.


No timeline or cost on this yet. Still seeing who's interested.

-JD

On Jun 23, 2005, at 5:42 PM, [EMAIL PROTECTED] wrote:


Jerry,
 Assuming there is sufficient interest what is the first step, and 
what

would THAT cost?
I'm thinking that the initial ScriptCompiler (or some better name) 
would just
turn Transcript into machine code. This would be of interest to me 
(hopefully
others) who want to put guarded code in places other than the 
standalone (for
example a proprietary calculation in an order processing stack - where 
all

the other code is accessible).
 The next step might be array processing or tool box calls or 
These

could be built later and sold separately; for example ScriptCompiler I,
ScriptCompiler II, etc.
Paul Looney
___
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



___
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 := operator (affectation

2005-06-24 Thread Dennis Brown
So in Transcript left assignment might be better stated using the  
familiar syntax:  set var to x

The get command becomes the shortcut equivelent of:  set it to

So you see Jim, now I get it!

Or,,, get is a shortcut for "put the propX into it"... the set -  
put difference still rears its head


If the get syntax is to be a shortcut for "put x into it", then "get  
x" is really "put x" with an implied "into it".  That would make  
"get" and "put" equivalent. which they are not.  Get implies  
receiving or taking, while put implies sending away.  That is why I  
can only think of the get command as a left assignment --I'm going to  
go over there and grab the value from the expression to my right.   
Makes it more like a function call, or a handler.  I guess some  
clever programming could create the get command if it did not already  
exist.


I have always been bothered by the left right reversal between  
setting parameters (just another type of container), and putting  
into variables.  I have mistyped setting the parameter many times  
using the form: put x into the parameter of y.  The syntax is not  
ambiguous as far as I can tell.  Perhaps both set and put syntaxes  
should be regularized to allow either, and relegate parameters to  
the ordinary family of containers.  At least allow the setting of  
variables even if putting into parameters is kept exclusive.


Comments?

When phrased this way, the left - right assignment  question  
becomes one, not of ":=", "=>", etc. but rather  Why can't  
I "set a variable to x?"  and why can't I "put something into a  
property?" .. that's simple enough for even me to get ;-{)


Off the top of my head there are significant differences between  
variables and properties: persistence (properties stay there when  
you shut down), scope (you can access any property from anywhere  
whereas variables must be explicitly defined as global and then are  
available only if the stack is running and has assigned them a  
value) and messaging (objects can respond to a change in their  
properties (setProp & getProp)). Is that enough to justify a syntax  
change for addressing them H?


Don't forget, you can also put things into fields.


It may be that last item that is key.
"Set" sends a message to an object the one with the property...  
and that object can react to that message appropriately with  
setProp/getProp
"Put" doesn't send a message anywhere... well.. execpt for the fact  
that the object responds to a "put the propX into var" anyway with  
a "call" to getProp
So why couldn't an object respond to a "put var into the propX"  
with the setProp structure...  it could..
So maybe it doesn't matter? Am I coming around to a different  
perspective?


Of course.. none of this has to anything to do with assignment  
operators...


That's right, Transcript does not have any assignment "operators".   
It only has assignment commands.  Introducing an assignment  
"operator" is inconsistent.  There I said it.  That leaves us with  
the only reasonable option of a left assignment command.  Set and put  
are already defined in a a way that the compiler could translate them  
to the appropriate low level codes.  Messages would be sent when  
accessing properties, and not for variables.  If set must be the  
purview of properties only, then we would need a different word, but  
I can' t think of a good one off hand --nor a good reason to have one.


Dennis
___
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: Fast/slow code example (was: Re: compileIt for revolution?)

2005-06-24 Thread Dar Scott


On Jun 24, 2005, at 12:42 PM, Jim Bufalini wrote:

However, the "repeat with i =" form being slower than the "repeat for 
each"

was news to me!


Upon reflection, you might have wondered about that.

The key is that the first uses 'line i of x' in the loop.  The length 
of time to get this value increases with i.


Normally, values are simply sequences of characters and values with 
multiple lines are simply values that contain some line-delimiter 
characters (coded the same as ASCII LF).  Though it is possible that 
some internal optimization breaks these up into structured data or a 
line-index table is cached, it is reasonable to suspect that this is 
not the case.  If there is no optimization to finding line n, then all 
characters form the start of the string to line n must be searched.


It is possible that some compiler optimization would look for line n in 
loops and convert, but our first assumption should be that it probably 
doesn't.


We might assume that 'for each' does not have this limitation.  We 
might assume that 'for each' keeps one or more hidden character indexes 
in managing the loop.


Given such suspicions we might try some timing or ask on the list.

This does not currently apply to characters; 'char n of s' executes in 
constant time.


Even so...

We all are sometimes surprised by things that should jump out.  I am.

It should be mentioned in the docs.  (And probably is and I don't know 
where.)


Dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Indeed you are correct - and I am a copy editor! How embarrassing.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jon
Sent: Friday, June 24, 2005 3:07 PM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Way off topic.  I think it is "piqued my interest".  Probably a French 
derivation.  C'est vrai?

Jon


Lynch, Jonathan wrote:

>Good stuff...
>
>I was not the original asker for this - I just chimed in because it
>peaked my interest.
>
>Cheers,
>
>J
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Scott
>Rossi
>Sent: Friday, June 24, 2005 1:23 PM
>To: How to use Revolution
>Subject: Re: is within ... polygon shape?
>
>Recently, Jim Hurley  wrote:
>
>  
>
>>I don't understand what you mean when you say it fails with large
>>
>>
>polygons.
>  
>
>>In the stack below, it doesn't seem to make any difference how large
>>the polygons are. I can't image why Rev would fail to recognize when
>>a point is within a polygon.
>>
>>go stack url
>>
>>
>"http://home.infostations.net/jhurley/CollidingPolygons.rev";
>
>Because on my end I tried:
>
>  if firstWithinSecond("mypoly1","mypoly2") *and* ...
>
>instead of:
>
>  if firstWithinSecond("mypoly1","mypoly2") *or*
>
>Replacing "and" with "or" makes your routine work as expected (I should
>have
>known something was up on my end being the math guru that you are).
>
>So Jonathan, there you are: two routines that allow you to test
>intersection
>with images or polygons.
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, Multimedia & Design
>-
>E: [EMAIL PROTECTED]
>W: http://www.tactilemedia.com
>
>___
>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
>
>
>___
>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
>
>
>  
>
___
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


___
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: is within ... polygon shape?

2005-06-24 Thread Jon
Way off topic.  I think it is "piqued my interest".  Probably a French 
derivation.  C'est vrai?


Jon


Lynch, Jonathan wrote:


Good stuff...

I was not the original asker for this - I just chimed in because it
peaked my interest.

Cheers,

J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Rossi
Sent: Friday, June 24, 2005 1:23 PM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Recently, Jim Hurley  wrote:

 


I don't understand what you mean when you say it fails with large
   


polygons.
 


In the stack below, it doesn't seem to make any difference how large
the polygons are. I can't image why Rev would fail to recognize when
a point is within a polygon.

go stack url
   


"http://home.infostations.net/jhurley/CollidingPolygons.rev";

Because on my end I tried:

 if firstWithinSecond("mypoly1","mypoly2") *and* ...

instead of:

 if firstWithinSecond("mypoly1","mypoly2") *or*

Replacing "and" with "or" makes your routine work as expected (I should
have
known something was up on my end being the math guru that you are).

So Jonathan, there you are: two routines that allow you to test
intersection
with images or polygons.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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


___
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


 


___
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


set defaultFolder to non-existent folder behavior

2005-06-24 Thread Emilio Gagliardi
Hi all, here is an interesting one I thought I'd pass along to see if  
anyone has encountered this before.


In the documentation for defaultFolder it says that if you set the  
defaultFolder to a folder that can't be opened it returns "can't open  
directory".  So i have some code that mounts a volume from a  
networked computer to move some files across the network.  I created  
a function to check if the network computer is, in fact, mounted.   
The function works correctly when the drive is mounted in that result 
() is empty.  Now, to test my code, I unmounted the volume through  
the Finder(eject) and disconnected the network cable from the  
computer.  But when I ran the code a second time, result() still came  
back empty.  That is, in the second attempt I set the defaultFolder  
to /Volumes/MountedDrive/Folder/ when it should not be possible,  
because there wasn't even a physical connection.


Whats interesting, is that i opened the console and listed the drives  
available in /Volumes/ and sure enough "MountedDrive" was listed  
despite the fact that it wasn't listed in the Finder.  I even  
rebooted with no network cable and "MountedDrive" still appeared in / 
Volumes/.
So I tried one last thing, if the defaultFolder was truly set to  
"MountedFolder" then my file moving code should work, right? Wrong.   
That code threw an error and failed as you would expect since there  
was no connection!


Does anyone know why this is?  Is there some period of time that old  
connections are retained in a lookup table b4 being removed?  I'd  
really like a solid mechanism to ensure that the drive is mounted,  
and the above does not seem to provide that.


Cheers,
Emilio
___
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: Fast/slow code example

2005-06-24 Thread J. Landman Gay

On 6/24/05 12:41 PM, Judy Perry wrote:


Well, _my_ understanding of the online scripting conferences is that they
are intended towards newbies; thus they are more about basic functionality
and how-to use Rev as opposed to code optimization.

Am I wrong Jacque?


No, you are right. The scripting conference stacks aim to provide the 
basic introductory information that isn't easily pieced together from 
the documentation. The docs are extremely good, and everything is there 
(though scattered in various places,) but newcomers were saying they 
wanted a general overview of what Revolution and scripting are all 
about. Our goal is to give them a mental picture of how it all fits 
together.


If enthusiasm remains high and attendance remains good, then I may 
decide to do an intermediate series next. This would include topics that 
are more advanced, and could very well include some "tips" topics such 
as script optimization.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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: Fast/slow code example (was: Re: compileIt for revolution?)

2005-06-24 Thread Jim Bufalini
Eric,

For someone moving from other languages (like I am) to Transcript, I believe
three of the four errors you point out in your example should be obvious and
the same in all languages. Those are: 1. Repeatedly accessing the same data
structure (field) instead of first putting it into a variable. 2. Repeatedly
updating the screen on a background process. 3. Repeatedly setting a
property that only needs to be set once.

However, the "repeat with i =" form being slower than the "repeat for each"
was news to me!

There is nothing in the documentation, that I can find, that addresses the
most efficient way, from the perspective of the engine, to write a control
structure. Apparently, this is particularly true of the repeat structure. Is
it also true for say the if..then structure? Is it more efficient to put
your conditions into variables and then use the variables as conditions of
the if...then?

These are the kinds of things a newbie (like myself) would greatly
appreciate being documented. This is to say, if there are two or more ways
to write the same statement (as with the repeat example), then if someone
knows one works faster than the rest, because of their knowledge of the
inner workings of the engine, then this would be valuable to document or
post.

This might cut down the 300 pages. :)

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Eric
Chatonet
Sent: Thursday, June 23, 2005 11:02 PM
To: How to use Revolution
Subject: Fast/slow code example (was: Re: compileIt for revolution?)


Hi Christian,

Le 24 juin 05 à 10:21, Langers Christian a écrit :

> Could you, please, give us (newbies/intermediate scriptesr) some
> examples of fast/slow script code ?

They would be too many :-)
In fact, the problem is often more an architecture issue than a
simple code issue.
But here is one tiny trivial example among thousands to give you some
clues:

on CheckList
   repeat with i = 1 to the number of lines of fld "List1"
 set the itemDel to tab
 put item 2 of line i of fld "List1" & cr after fld "List2"
   end repeat
end CheckList

Main errors in the above 4 lines are:
manipulate data directly from a field (a lot of work for the engine)
use the "repeat with i" form slower than the "repeat for each" form
(especially noticeable with long lists)
force a screen redraw at each repetition (that's the must for slowing
down)
set the itemDel unnecessarily at each repetition

The result with 1000 lines: more than 13 seconds...

Better code:

on CheckList
   local tList, tLine, tNewList
   -
   put fld "List1" into tList
   set the itemDel to tab
   repeat for each line tLine in tList
 put item 2 of tLine & cr after tNewList
   end repeat
   put tNewList into fld "List2"
end CheckList

manipulate data into a variable
use the "repeat for each" form
use one screen redraw only
set the itemDel only when needed

The result with 1000 lines: less than 20 milliseconds!
650 times faster...

Keep in mind that to answer correctly your request, this post should
be a 300 pages book :-)
May be Dan wrote it?

Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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



___
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: Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Klaus Major

Hi Alejandro,


Hi Developers,

i had success following the instructions
given by Alex Tweedly to compile his external
with Dev-C++ (Bloodshed).
I downloaded and installed the latest version
available of this compiler.

here are the files i used in the compilation:


now, while using the same recipe to compile
the external from the sdk, i get a lot of
warnings and linker errors about a long list
of similar undeclared objects
like: "[EMAIL PROTECTED]"

does anyone could give us a hint about
Where is the linker looking for these objects???

Thanks a lot Alex, for sharing your dll! :-)
and Thanks in advance to all of you
that will help the linker to find these
"missing" undeclared objects. ;-)


ehm, sorry, but looks like i missed the part with the explanation of
what the wonderful external actually does?

So, what does that wonderfull DLL actually do? :-)
Sorry for my ignorance...


al


Visit my site:
http://www.geocities.com/capellan2000/


Best

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
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


What's this?

2005-06-24 Thread Mark Schonewille

Hello,

Somewhere, I don't remember exactly where, I read about the 
tremendous AE. I am really curious about this, because it must 
be something very cool, but I don't know what it is. Is there 
anyone who can tell me more about it?


One more thing: don't forget about the ChatRev session, which is 
starting in about an hour (21.30 CET). You can download a Chat 
client at  and find more info about the 
Chatrev Coding Contest at . See you 
on-line!


Best regards,

Mark

--

eHUG coordinator
mailto:[EMAIL PROTECTED]
http://www.ehug.info
http://home.wanadoo.nl/mark.sch
http://www.economy-x-talk.com

Please inform me about vacancies in the field of
general economics at your institute. I am also looking
for new freelance programming projects.

___
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


Sucess compiling Alex Tweedly DLL!

2005-06-24 Thread Alejandro Tejada
Hi Developers,

i had success following the instructions
given by Alex Tweedly to compile his external
with Dev-C++ (Bloodshed).
I downloaded and installed the latest version 
available of this compiler.

here are the files i used in the compilation:


now, while using the same recipe to compile 
the external from the sdk, i get a lot of
warnings and linker errors about a long list 
of similar undeclared objects 
like: "[EMAIL PROTECTED]"

does anyone could give us a hint about 
Where is the linker looking for these objects???

Thanks a lot Alex, for sharing your dll! :-)
and Thanks in advance to all of you
that will help the linker to find these 
"missing" undeclared objects. ;-)

al



Visit my site:
http://www.geocities.com/capellan2000/



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 
___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Dar Scott


On Jun 24, 2005, at 11:20 AM, Mark Wieder wrote:


DS> I didn't make up the definition, so I might be way off.

I don't think you're way off, but off enough to be wrong.


I have a vague memory of being wrong before, so that is possible.


To my mind, a blocker is "I can't do xyz in rev" for one reason or
another and this prevents me from delivering my application to my
clients. Whether this is because of a development issue for which
there is no workaround or because of a runtime issue is merely
academic. If I can't get something accomplished in rev and have to
switch to another tool, that's a blocker.


I guess my point is that it is not a "to my mind" thing.  It is a 
matter of respecting the definition set up by Runrev.  Runrev might 
have limited Blocker to only bugs that had to do with the color green 
and I would be inclined to submit to that, though I might mock it.


Even so, I admit that I might be reading in something more stringent 
than what is there.


Dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
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 := operator (affectation

2005-06-24 Thread Jim MacConnell

Dennis,


My apologies, I was a bit over the top yesterday in my reply.

Thanks... and I was a wee tad over in my response...

I guess I was a bit too obscure.  The ;-) was the clue that the  
statements were an example of get, put, gets syntax and a  
lighthearted jab not meant to be taken too literally:


You just don't "get it", because "get it" is a no op.
I can't say I can "get it into" your head, because "get...into" is  
bad syntax mixing left and right assignment, showing the difference  
between get and put.
Perhaps Jim gets it now... new syntax of left assignment that is  
English like syntax.
What a difference a few quotes make. I can hear your "voice" now and  
understand where you were headed. Fine example of dangers of  
interpreting email too literally which I am prone to do when  
tired. What appeared to be sarcastic and cynical and rude was in fact  
clever example...


So in Transcript left assignment might be better stated using the  
familiar syntax:  set var to x

The get command becomes the shortcut equivelent of:  set it to

So you see Jim, now I get it!
Or,,, get is a shortcut for "put the propX into it"... the set - put  
difference still rears its head


I have always been bothered by the left right reversal between  
setting parameters (just another type of container), and putting  
into variables.  I have mistyped setting the parameter many times  
using the form: put x into the parameter of y.  The syntax is not  
ambiguous as far as I can tell.  Perhaps both set and put syntaxes  
should be regularized to allow either, and relegate parameters to  
the ordinary family of containers.  At least allow the setting of  
variables even if putting into parameters is kept exclusive.


Comments?
When phrased this way, the left - right assignment  question becomes  
one, not of ":=", "=>", etc. but rather  Why can't I "set a  
variable to x?"  and why can't I "put something into a property?" ..  
that's simple enough for even me to get ;-{)


Off the top of my head there are significant differences between  
variables and properties: persistence (properties stay there when you  
shut down), scope (you can access any property from anywhere whereas  
variables must be explicitly defined as global and then are available  
only if the stack is running and has assigned them a value) and  
messaging (objects can respond to a change in their properties  
(setProp & getProp)). Is that enough to justify a syntax change for  
addressing them H?


It may be that last item that is key.
"Set" sends a message to an object the one with the property...  
and that object can react to that message appropriately with setProp/ 
getProp
"Put" doesn't send a message anywhere... well.. execpt for the fact  
that the object responds to a "put the propX into var" anyway with a  
"call" to getProp
So why couldn't an object respond to a "put var into the propX" with  
the setProp structure...  it could..
So maybe it doesn't matter? Am I coming around to a different  
perspective?


Of course.. none of this has to anything to do with assignment  
operators...


Jim

___
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: LDAP query in shell

2005-06-24 Thread Devin Asay

On Jun 24, 2005, at 10:00 AM, MisterX wrote:


Devin

yes there is. vbs. Shell vbs commands, it's the best way
my colleagues and i have found.

cheers
Xavier


Xavier,
Thanks for the reply.

Is this something that can be called from Rev? And have the results  
returned to my rev app? Is vbs standard on all Win32 installations?  
Are there examples on the web I could look at.


Thanks.

Devin




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Devin Asay
Sent: Friday, June 24, 2005 17:32
To: How to use Revolution
Subject: LDAP query in shell

Don't have a windows box handy to test this (aside from being  
windows-

impaired.):

In *nix systems I can query an LDAP server using the
ldapsearch utility in a shell function. Is there a similar
utility that can be called in Windows 2000/XP? If so, can
someone point me to the proper syntax?

TIA

DNA

Devin Asay
Humanities Technology and Research Support Center Brigham
Young University

___
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




___
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



Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: is within ... polygon shape?

2005-06-24 Thread Judy Perry
Yup, that's what somebody told me when I asked about it privately some
months ago:  "You need to read a book on algorithms"...

Gave up.

Judy

On Fri, 24 Jun 2005, MisterX wrote:

> you need a real algotithm.


___
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: is within ... polygon shape?

2005-06-24 Thread Judy Perry
bummer...

I was hoping that you'd found a solution to my need for the sort of
irregularly-shaped buttons that an old HC external provided.

Drats!

Judy

On Fri, 24 Jun 2005, Steve Bonham wrote:

> h-
>
> Intersect doesn't work after all. It appears that one object will
> intersect with another irregular object's rect and NOT the objects
> true shape (polygon points).
> See illustration... at:
>   http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg

--Yup, that was my finding as well.  Sigh...

___
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: Fast/slow code example (was: Re: compileIt for revolution?)

2005-06-24 Thread Judy Perry
Well, _my_ understanding of the online scripting conferences is that they
are intended towards newbies; thus they are more about basic functionality
and how-to use Rev as opposed to code optimization.

Am I wrong Jacque?

Judy

On Fri, 24 Jun 2005, Langers Christian wrote:

> Perhaps, I will find more infos in the online scripting conferences  ?

___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Good stuff...

I was not the original asker for this - I just chimed in because it
peaked my interest.

Cheers,

J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Rossi
Sent: Friday, June 24, 2005 1:23 PM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Recently, Jim Hurley  wrote:

> I don't understand what you mean when you say it fails with large
polygons.
> 
> In the stack below, it doesn't seem to make any difference how large
> the polygons are. I can't image why Rev would fail to recognize when
> a point is within a polygon.
> 
> go stack url
"http://home.infostations.net/jhurley/CollidingPolygons.rev";

Because on my end I tried:

  if firstWithinSecond("mypoly1","mypoly2") *and* ...

instead of:

  if firstWithinSecond("mypoly1","mypoly2") *or*

Replacing "and" with "or" makes your routine work as expected (I should
have
known something was up on my end being the math guru that you are).

So Jonathan, there you are: two routines that allow you to test
intersection
with images or polygons.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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


___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Yes, makes perfect sense:)

There are some situations where you might need to be that precise. At
least, I guess there are - none for anything I do. I think I see another
way to do it, without having to test against every single point in the
moving image.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Rossi
Sent: Friday, June 24, 2005 1:16 PM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Recently, Lynch, Jonathan  wrote:

>>> Put the points of image "myImage1" into field "feedback"

>>> Causes an error - it says this object does not have this property. I
>>> am misunderstanding something aren't I?

>> Images don't have points.  You simply test the point against the
image
>> itself:

>> if within(img "myImage",myPoint) then answer "point is within the
>> image"

> Ah, but that only tests a single point. To be perfectly accurate, one
> would need to test every single non-transparent point in the image.

OK, let's use a golf analogy as an example.  Let's say you wanted to
find
out if the ball is on the green:

  if within(img "green",loc of img "ball") then answer "ready to putt"

In this case you are testing the loc point of the ball against the
opaque
region of the "green" image.  There is only one point to test.  You
could go
further and test all the rect points of the ball as well: topLeft,
topRight,
etc but this depends on how precise you want to be.

Does this make sense?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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


___
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: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Jim Hurley  wrote:

> I don't understand what you mean when you say it fails with large polygons.
> 
> In the stack below, it doesn't seem to make any difference how large
> the polygons are. I can't image why Rev would fail to recognize when
> a point is within a polygon.
> 
> go stack url "http://home.infostations.net/jhurley/CollidingPolygons.rev";

Because on my end I tried:

  if firstWithinSecond("mypoly1","mypoly2") *and* ...

instead of:

  if firstWithinSecond("mypoly1","mypoly2") *or*

Replacing "and" with "or" makes your routine work as expected (I should have
known something was up on my end being the math guru that you are).

So Jonathan, there you are: two routines that allow you to test intersection
with images or polygons.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Mark Wieder
Dar-

Friday, June 24, 2005, 9:25:50 AM, you wrote:

DS> I didn't make up the definition, so I might be way off.

I don't think you're way off, but off enough to be wrong.

To my mind, a blocker is "I can't do xyz in rev" for one reason or
another and this prevents me from delivering my application to my
clients. Whether this is because of a development issue for which
there is no workaround or because of a runtime issue is merely
academic. If I can't get something accomplished in rev and have to
switch to another tool, that's a blocker.

I do have some bugs for which this is true and I have left at "major"
instead of bumping the level because I don't have a pressing need for
them to be fixed. If I did then they would be blocking me from doing
what I need to do and I wouldn't have a problem escalating them.

-- 
-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


Contextual menus and polygons

2005-06-24 Thread Jim Hurley

I'm losing my mind.

I have always used "command-option-shift-click" to get the contextual 
menu. Works for when either the  browser tool or the pointer tool is 
selected. As soon as I open Run Rev the fingers on my left hand 
assume the command-option-shift configuration.


But in 2.5 and 2.6 it works for every control *except* a polygon.

In 2.2 it worked for polygons.

Anybody else experience this?

Mac OS 10.2.8

Jim
___
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: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Lynch, Jonathan  wrote:

>>> Put the points of image "myImage1" into field "feedback"

>>> Causes an error - it says this object does not have this property. I
>>> am misunderstanding something aren't I?

>> Images don't have points.  You simply test the point against the image
>> itself:

>> if within(img "myImage",myPoint) then answer "point is within the
>> image"

> Ah, but that only tests a single point. To be perfectly accurate, one
> would need to test every single non-transparent point in the image.

OK, let's use a golf analogy as an example.  Let's say you wanted to find
out if the ball is on the green:

  if within(img "green",loc of img "ball") then answer "ready to putt"

In this case you are testing the loc point of the ball against the opaque
region of the "green" image.  There is only one point to test.  You could go
further and test all the rect points of the ball as well: topLeft, topRight,
etc but this depends on how precise you want to be.

Does this make sense?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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: is within ... polygon shape?

2005-06-24 Thread Jim Hurley


Message: 7
Date: Fri, 24 Jun 2005 09:37:56 -0700
From: Scott Rossi <[EMAIL PROTECTED]>
Subject: Re: is within ... polygon shape?
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="US-ASCII"

Recently, Lynch, Jonathan  wrote:


 Using the within() function it is possible to accurately detect
 whether a point falls within the image since Rev will evaluate a
 point falling within the transparent region of the image as false.


 > But - would this work 100% for curved polygons or images?

It works reliably with images as long as the transparent regions of the
image are 100% transparent.  Try it.

Routines for polygons should work reliably as well.

(Although Jim's routine seems to work only for intersecting edges, and not
when a smaller polygon falls *completely* within a larger polygon -- any
tweak available Jim?)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design



Scott,

I don't understand what you mean when you say it fails with large polygons.

In the stack below, it doesn't seem to make any difference how large 
the polygons are. I can't image why Rev would fail to recognize when 
a point is within a polygon.


go stack url "http://home.infostations.net/jhurley/CollidingPolygons.rev";

Jim


___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Ah, but that only tests a single point. To be perfectly accurate, one
would need to test every single non-transparent point in the image.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Rossi
Sent: Friday, June 24, 2005 12:50 PM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Recently, Lynch, Jonathan  wrote:

> Put the points of image "myImage1" into field "feedback"
> 
> Causes an error - it says this object does not have this property. I
am
> misunderstanding something aren't I?

Images don't have points.  You simply test the point against the image
itself:

 if within(img "myImage",myPoint) then answer "point is within the
image"

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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


___
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: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Lynch, Jonathan  wrote:

> Put the points of image "myImage1" into field "feedback"
> 
> Causes an error - it says this object does not have this property. I am
> misunderstanding something aren't I?

Images don't have points.  You simply test the point against the image
itself:

 if within(img "myImage",myPoint) then answer "point is within the image"

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
This command:

Put the points of image "myImage1" into field "feedback"

Causes an error - it says this object does not have this property. I am
misunderstanding something aren't I?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Rossi
Sent: Friday, June 24, 2005 12:38 PM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Recently, Lynch, Jonathan  wrote:

>> Using the within() function it is possible to accurately detect
>> whether a point falls within the image since Rev will evaluate a
>> point falling within the transparent region of the image as false.

> But - would this work 100% for curved polygons or images?

It works reliably with images as long as the transparent regions of the
image are 100% transparent.  Try it.

Routines for polygons should work reliably as well.

(Although Jim's routine seems to work only for intersecting edges, and
not
when a smaller polygon falls *completely* within a larger polygon -- any
tweak available Jim?)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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


___
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: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Lynch, Jonathan  wrote:

>> Using the within() function it is possible to accurately detect
>> whether a point falls within the image since Rev will evaluate a
>> point falling within the transparent region of the image as false.

> But - would this work 100% for curved polygons or images?

It works reliably with images as long as the transparent regions of the
image are 100% transparent.  Try it.

Routines for polygons should work reliably as well.

(Although Jim's routine seems to work only for intersecting edges, and not
when a smaller polygon falls *completely* within a larger polygon -- any
tweak available Jim?)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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: Confirm Long File Name Bug in Player Object

2005-06-24 Thread Dar Scott


On Jun 23, 2005, at 6:39 PM, Scott Rossi wrote:


Even so, I think this loss of functionality qualifies as (at most)
"Major", in that it is a "major loss of function."  I understand
"Blocker" to mean "I can't develop."


How is this different from "I can't deliver?"


It blocks you up front in development, not at the end.

If a bug's fix's being crucial in delivery makes it a Blocker, then 
I'll have to change a dozen of my bug entries to Blocker.


I can't argue that this bug is not a blocker, only that (from my 
reading of the bugzilla definition) it is not a Blocker.


I don't mean to belittle the bug; I'm just being legalistic about the 
category Blocker.  Even though it is highest in some sense, it also is 
different in quality in that it narrows the kind of bug.  Examples 
might be "key doesn't work" or "can't open stack".


I didn't make up the definition, so I might be way off.

Dar

--
**
DSC (Dar Scott Consulting & Dar's Lab)
http://www.swcp.com/dsc/
Programming and software
**

___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
How about this technique...

This would work as long as the two objects are not the exact same color.


Step one:
Put object 1 on top of object 2
Take a snapshot of the rect that contains both objects
Put the imagedata for that snapshot into tImageData1

Step two:
Put object 2 on top of object 1
Take a snapshot of the rect that contains both objects
Put the imagedata for that snapshot into tImageData2

If tImageData1 <> tImageData2 then return true


Basically, the idea is that, as long as the visible portions do not
overlap, the image of the rect that contains both objects will be the
same, regardless of which is on top. If the image of that rect changes
when the Z order changes, then they must overlap.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lynch,
Jonathan
Sent: Friday, June 24, 2005 11:54 AM
To: How to use Revolution
Subject: RE: is within ... polygon shape?

This is pretty cool!

But - would this work 100% for curved polygons or images?

The docs do not mention points for images.

Either, this is a very cool way of testing.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hurley
Sent: Friday, June 24, 2005 11:44 AM
To: use-revolution@lists.runrev.com
Subject: Re: is within ... polygon shape?

>
>Message: 15
>Date: Fri, 24 Jun 2005 07:53:22 -0700
>From: Scott Rossi <[EMAIL PROTECTED]>
>Subject: Re: is within ... polygon shape?
>To: How to use Revolution 
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="US-ASCII"
>
>Recently, Steve Bonham  wrote:
>
>>  Intersect doesn't work after all. It appears that one object will
>>  intersect with another irregular object's rect and NOT the objects
>  > true shape (polygon points).
>>  See illustration... at:
>>  http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg
>>
>>  Is there a way to get Rev to:
>>  1. evaluate IF the loc of an object is within the shape (defined by
a
>>  series of coordinates) of an object?
>>
>>  OR
>>  2. evaluate IF the loc of an object intersects with the shape
>>  (defined by a series of coordinates) of an object?
>
>I believe some folks on the list have written collision detection
routines
>that can detect intersection in several situations.  I think Malte
Brill
>might know something about this.
>
>That being said, collision detection on irregular shapes can work by
using
>images that have a transparent background and point references.  Using
the
>within() function it is possible to accurately detect whether a point
falls
>within the image since Rev will evaluate a point falling within the
>transparent region of the image as false.
>
>  get within(img 1,myPoint)
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, Multimedia & Design

Steve,

Scott is right. The function you  want is "within()", which is 
different from "is within." It is very efficient.

If you want to detect whether two polygons Poly1 and Poly2 intersect, 
you would first run

function firstWithinSecond grc1,grc2
   put the points of grc grc1 into myPolyPoints1
   repeat for each line tPoint in myPolyPoints1
 if   within(grc grc2,tPoint)  then return "true"
   end repeat
   return false
end firstWithinSecond

where grc1 is Poly1 and grc2 is Poly2 and then run the same routine 
with Poly1 and Poly2 reversed.

It may be that a point (vertex) of Poly2 is within Poly1, but there 
is no vertex of Poly 1 which is within Poly2. You need to run both. 
Or write one handler to check both.

I didn't realize it worked for points within images as well. Thanks
Scott.

Jim




___
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


___
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


___
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: Any experience with Expect

2005-06-24 Thread Mark Wieder
Glen-

I still don't get it. Replacing expect with rev would be a bad idea -
expect processes its own scripts to deal with commandline tools. It's
much better at this as a single-purpose tool than rev would be. Using
rev as a wrapper around expect would do... what? Provide a text box
for entering expect scripts? Launch expect with a shell command?

If you really need that, can't you just
get shell("expect < somescript")

-- 
-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


Presenting Revolution at the eLearning Expo

2005-06-24 Thread Rick Blanc

Dear Revolution Users and Team Members,

I would like to invite any user and the Revolution team to present 
Revolution for the /*eLearning 2005*/ virtual expo utilizing movies with 
audio narratives . eiProject will sponsor the entire project.


The expo is comprised of movies with audio narratives demonstrating 
products for our attendees. You may request more information for a 
complete synopsis.


*Connection Type: *Fast Internet connection
*Target market*: Education - instructors and content providers.
*Target Registrants: *2300
*Exhibitors Selection Process: *All products are selected by our staff*
Scheduled for* October 28, 2005
*Cost: *100 % sponsored for Revolution - one year - renewable

Anyone interested or would like more information please contact me.

Best Regards,

Rick Blanc
___
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: AFAIK???

2005-06-24 Thread SimPLsol
S.,
As far as I know, it is an Eskimo word meaning "your code is mush".
As far as I know, it is the sound a chain saw makes when cutting porcelain.
As far as I know, it is the sound coming from the dashboard radio on the Mars 
Rover.
As far as I know, it is a pair of $600 loafers.
As far as I know, 
Paul Looney
___
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: AFAIK???

2005-06-24 Thread Steve Bonham

LOL & DISS! (Duh, I'm so stoopid!) ;-)

Thx Sims.
Sorry, I havn't seen that one (AFAIK) before.

S


AFAIK?
Is this pronounced like the duck says it in the insurance commercial?

Seriously, what is AFAIK?



As far as I know...as far as I know.

sims


___
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



--


--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
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: LDAP query in shell

2005-06-24 Thread MisterX
Devin

yes there is. vbs. Shell vbs commands, it's the best way
my colleagues and i have found. 

cheers
Xavier 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Devin Asay
> Sent: Friday, June 24, 2005 17:32
> To: How to use Revolution
> Subject: LDAP query in shell
> 
> Don't have a windows box handy to test this (aside from being windows-
> impaired.):
> 
> In *nix systems I can query an LDAP server using the 
> ldapsearch utility in a shell function. Is there a similar 
> utility that can be called in Windows 2000/XP? If so, can 
> someone point me to the proper syntax?
> 
> TIA
> 
> DNA
> 
> Devin Asay
> Humanities Technology and Research Support Center Brigham 
> Young University
> 
> ___
> 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
> 

___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
This is pretty cool!

But - would this work 100% for curved polygons or images?

The docs do not mention points for images.

Either, this is a very cool way of testing.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hurley
Sent: Friday, June 24, 2005 11:44 AM
To: use-revolution@lists.runrev.com
Subject: Re: is within ... polygon shape?

>
>Message: 15
>Date: Fri, 24 Jun 2005 07:53:22 -0700
>From: Scott Rossi <[EMAIL PROTECTED]>
>Subject: Re: is within ... polygon shape?
>To: How to use Revolution 
>Message-ID: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset="US-ASCII"
>
>Recently, Steve Bonham  wrote:
>
>>  Intersect doesn't work after all. It appears that one object will
>>  intersect with another irregular object's rect and NOT the objects
>  > true shape (polygon points).
>>  See illustration... at:
>>  http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg
>>
>>  Is there a way to get Rev to:
>>  1. evaluate IF the loc of an object is within the shape (defined by
a
>>  series of coordinates) of an object?
>>
>>  OR
>>  2. evaluate IF the loc of an object intersects with the shape
>>  (defined by a series of coordinates) of an object?
>
>I believe some folks on the list have written collision detection
routines
>that can detect intersection in several situations.  I think Malte
Brill
>might know something about this.
>
>That being said, collision detection on irregular shapes can work by
using
>images that have a transparent background and point references.  Using
the
>within() function it is possible to accurately detect whether a point
falls
>within the image since Rev will evaluate a point falling within the
>transparent region of the image as false.
>
>  get within(img 1,myPoint)
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, Multimedia & Design

Steve,

Scott is right. The function you  want is "within()", which is 
different from "is within." It is very efficient.

If you want to detect whether two polygons Poly1 and Poly2 intersect, 
you would first run

function firstWithinSecond grc1,grc2
   put the points of grc grc1 into myPolyPoints1
   repeat for each line tPoint in myPolyPoints1
 if   within(grc grc2,tPoint)  then return "true"
   end repeat
   return false
end firstWithinSecond

where grc1 is Poly1 and grc2 is Poly2 and then run the same routine 
with Poly1 and Poly2 reversed.

It may be that a point (vertex) of Poly2 is within Poly1, but there 
is no vertex of Poly 1 which is within Poly2. You need to run both. 
Or write one handler to check both.

I didn't realize it worked for points within images as well. Thanks
Scott.

Jim




___
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


___
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: AFAIK???

2005-06-24 Thread sims

AFAIK?
Is this pronounced like the duck says it in the insurance commercial?

Seriously, what is AFAIK?



As far as I know...as far as I know.

sims


___
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


AFAIK???

2005-06-24 Thread Steve Bonham

AFAIK?
Is this pronounced like the duck says it in the insurance commercial?

Seriously, what is AFAIK?
S



you need a real algotithm. The "within" function only works on
rects only AFAIK. But the graphic will only detect a mouseup if
you click on its graphic, not the rect - so somehow, it's "calculated"...

There's plenty of them algorithms on the net.
search "region intersection and/or polygon intersection"

fun stuff...
im sure there's a Gauss or old greek technique for this!

or... the xtalk way

you can simulate a click at any point and if the target is
the card or not the graphic, then you got your intersection
logic running.

i'll see what i can dig up tonite... interesting problem:

is point in *space(f) of f(i) where i is any graphic def.

oh and, new bugz 2934 found! Duh! Then people i dont check on my
bugs but hey, i dont charge as much ;)

cheers
Xavier


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Steve Bonham
 Sent: Friday, June 24, 2005 16:31
 To: How to use Revolution
 Subject: Re: is within ... polygon shape?

 h-

 Intersect doesn't work after all. It appears that one object
 will intersect with another irregular object's rect and NOT
 the objects true shape (polygon points).
 See illustration... at:
http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg

 Is there a way to get Rev to:
 1. evaluate IF the loc of an object is within the shape
 (defined by a series of coordinates) of an object?

 OR
 2. evaluate IF the loc of an object intersects with the shape
 (defined by a series of coordinates) of an object?

 Thx,
 S



 >Answered my own question- I found the "intersect" function
 and it works
 >(see below)
 >
 >if intersect(graphic "ball", graphic "sand1") then
 > put "in the bunker"  into YourLie
 >   end if
 >
 >HOWEVER...
 >
 >There are many, many objects that the ball object may
 intersect with...
 >Is it possible to use a "wildcard" character in Rev?
 >
 >For instance, there are 3 sand bunkers (sand1, sand2, sand3) and 60+
 >trees (tree1, tree2, etc)
 >
 >Can I use something along the lines of :
 >
 >if intersect(graphic "ball", graphic "tree" & *) then
 > put "in the bunker"  into YourLie
 >   end if
 >
 >I'm supposing this is not possible (but it sounds like a logical
 >need)-- but maybe there is another way to accomplish this?
 >
 >Thx
 >S

 --


 --
 
 Steve Bonham
 Director, Faculty Technology Development Laboratory Center
 for Excellence in Teaching - Georgia Southern University
 Statesboro, GA 30460-8143
 --
 
 ___
 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



___
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



--


--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
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: is within ... polygon shape?

2005-06-24 Thread Jim Hurley


Message: 15
Date: Fri, 24 Jun 2005 07:53:22 -0700
From: Scott Rossi <[EMAIL PROTECTED]>
Subject: Re: is within ... polygon shape?
To: How to use Revolution 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="US-ASCII"

Recently, Steve Bonham  wrote:


 Intersect doesn't work after all. It appears that one object will
 intersect with another irregular object's rect and NOT the objects

 > true shape (polygon points).

 See illustration... at:
 http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg

 Is there a way to get Rev to:
 1. evaluate IF the loc of an object is within the shape (defined by a
 series of coordinates) of an object?

 OR
 2. evaluate IF the loc of an object intersects with the shape
 (defined by a series of coordinates) of an object?


I believe some folks on the list have written collision detection routines
that can detect intersection in several situations.  I think Malte Brill
might know something about this.

That being said, collision detection on irregular shapes can work by using
images that have a transparent background and point references.  Using the
within() function it is possible to accurately detect whether a point falls
within the image since Rev will evaluate a point falling within the
transparent region of the image as false.

 get within(img 1,myPoint)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


Steve,

Scott is right. The function you  want is "within()", which is 
different from "is within." It is very efficient.


If you want to detect whether two polygons Poly1 and Poly2 intersect, 
you would first run


function firstWithinSecond grc1,grc2
  put the points of grc grc1 into myPolyPoints1
  repeat for each line tPoint in myPolyPoints1
if   within(grc grc2,tPoint)  then return "true"
  end repeat
  return false
end firstWithinSecond

where grc1 is Poly1 and grc2 is Poly2 and then run the same routine 
with Poly1 and Poly2 reversed.


It may be that a point (vertex) of Poly2 is within Poly1, but there 
is no vertex of Poly 1 which is within Poly2. You need to run both. 
Or write one handler to check both.


I didn't realize it worked for points within images as well. Thanks Scott.

Jim




___
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: Any experience with Expect

2005-06-24 Thread Glen Bojsza
As far as I can tell Expect in it's native form is simply a command
line. Tcl/Tk was used to create a GUI enviroment for it. So Rev 
(which is a far better GUI enviroment ) could be used to develop a
more custom interface for particular users.

So if you ignore the addition of Tcl/Tk you have a command line
package which could be accessed with Rev through the shell or possibly
make Expect a Rev external.

I guess what I am trying to get at is that Rev should be able to replace Tcl.



On 6/24/05, Mark Wieder <[EMAIL PROTECTED]> wrote:
> Glen-
> 
> Friday, June 24, 2005, 7:08:43 AM, you wrote:
> 
> GB> 1. I was wondering if Rev would not be a good alternative to this in
> GB> native form?
> 
> GB> 2. Or would it be feasible to make Expect a Rev external ?
> 
> Maybe I'm mising the point, but I don't see what would be gained by
> either of these. Expect uses Tcl/Tk to handle text scripts for
> controlling command-line programs. I don't see where a GUI wrapper
> would help in either creating scripts or running them. You'd still
> have to write the scripts and then hand them off to Tcl/Tk for
> execution. Possibly in archiving and retrieving regression tests, but
> rev seems a bit of overkill in that department.
> 
> --
> -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
>
___
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: advice

2005-06-24 Thread Eric Chatonet

Hi Chriss,

Le 24 juin 05 à 17:17, Chris Sheffield a écrit :

 I would think it would be faster to compress/decompress one file  
as opposed to many, but it would also mean that upon restoring the  
archive, I would need to decompress that archive and save it to a  
temporary stack file, then delete that temp file when the process  
is complete.


If you want to be flexible (for instance to display a file names  
list, choose one to decompress and so on without having to make any  
change to your archive - which is always better for security) you  
will compress the files first.
In addition, accessing to the needed data for archive management will  
be faster.
As for me I would try to avoid to manipulate files... if they don't  
need it.

Question of reliability :-)
My two cents.

Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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


LDAP query in shell

2005-06-24 Thread Devin Asay
Don't have a windows box handy to test this (aside from being windows- 
impaired.):


In *nix systems I can query an LDAP server using the ldapsearch  
utility in a shell function. Is there a similar utility that can be  
called in Windows 2000/XP? If so, can someone point me to the proper  
syntax?


TIA

DNA

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

___
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: Any experience with Expect

2005-06-24 Thread Mark Wieder
Glen-

Friday, June 24, 2005, 7:08:43 AM, you wrote:

GB> 1. I was wondering if Rev would not be a good alternative to this in
GB> native form?

GB> 2. Or would it be feasible to make Expect a Rev external ?

Maybe I'm mising the point, but I don't see what would be gained by
either of these. Expect uses Tcl/Tk to handle text scripts for
controlling command-line programs. I don't see where a GUI wrapper
would help in either creating scripts or running them. You'd still
have to write the scripts and then hand them off to Tcl/Tk for
execution. Possibly in archiving and retrieving regression tests, but
rev seems a bit of overkill in that department.

-- 
-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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Yes, but the mathematical testing for such a thing is not easy...

I mean, if it was a simple shape, with a simple formula to define the
shape, then it probably would not be so hard.  But, with an irregular
polygon, you have to do something like this:

Outer repeat loop (goes through every visible point in the bottom shape)
Put the point to be tested into tPoint1
  Inner repeat loop (goes through every visible point in the top shape)
Put the point to be tested into tPoint2
If tPoint2 = tPoint1 then
  Return true
  Exit this function
End if  
  End inner repeat loop
End outer repeat loop

Doing that in transcript would be kind of slow. I imagine there must be
faster algorithms, but they will all require tons of comparisons.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MisterX
Sent: Friday, June 24, 2005 11:08 AM
To: 'How to use Revolution'
Subject: RE: is within ... polygon shape?

if it's all white, then what? ;)

nothing beats mathematics ;)

cheers
1/X 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Steve Bonham
> Sent: Friday, June 24, 2005 16:55
> To: How to use Revolution
> Subject: Re: is within ... polygon shape?
> 
> Eric,
> 
> Wow!
> Now THAT is an ingenious approach!!! :-) and it might be just 
> the solution needed.
> 
> I'll give it a shot.
> 
> S
> 
> 
> 
> >Re Steve,
> >
> >Another funny approach:
> >
> >function WhichObject pLoc,pObj
> >   local tCurLoc, tColor
> >   -
> >   put the screenMouseLoc into tCurLoc
> >   lock screen
> >   hide pObj
> >   set the screenMouseloc to globalLoc(pLoc)
> >   put the mouseColor into tColor
> >   set the screenMouseloc to tCurLoc
> >   show pObj
> >   unlock screen
> >   return WhatKindOfObject(tColor)
> >end WhichObject
> >
> >WhatKindOfObject function would return the right object according to 
> >the passed  color  :-) Not tested... but should work.
> >Ah, there are so many ways to do a job with Rev!
> 
> -- 
> 
> 
> --
> 
> Steve Bonham
> Director, Faculty Technology Development Laboratory Center 
> for Excellence in Teaching - Georgia Southern University 
> Statesboro, GA 30460-8143
> --
> 
> ___
> 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
> 

___
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


___
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


advice

2005-06-24 Thread Chris Sheffield

I just need some advice and opinions on this one.

I'm working on creating a little backup / WinZip-like application  
(mostly just for my own use, but we'll see).  I would like to store  
backed up files into custom properties of a stack, so that everything  
is contained in one easy-to-use file, much like a WinZip or Stuffit  
archive.  Here's my question.  I'm debating on whether to compress  
the files first, and then place them in the custom props, or to put  
them in uncompressed, and then compress the entire stack file all at  
once.  Is there any benefit doing it one way over the other?  I would  
think it would be faster to compress/decompress one file as opposed  
to many, but it would also mean that upon restoring the archive, I  
would need to decompress that archive and save it to a temporary  
stack file, then delete that temp file when the process is complete.   
Or am I wrong about that?


Anyway, this is just kind of a design issue, and I'm wondering what  
the rest of you would do.  Which way would be the most efficient?


Thanks,
Chris



--
Chris Sheffield
Read Naturally
The Fluency Company
http://www.readnaturally.com
--


___
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: is within ... polygon shape?

2005-06-24 Thread Eric Chatonet

Let your computer and go a walk at a golf :-)

Le 24 juin 05 à 17:08, MisterX a écrit :


if it's all white, then what? ;)
nothing beats mathematics ;)


Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: is within ... polygon shape?

2005-06-24 Thread MisterX
if it's all white, then what? ;)

nothing beats mathematics ;)

cheers
1/X 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Steve Bonham
> Sent: Friday, June 24, 2005 16:55
> To: How to use Revolution
> Subject: Re: is within ... polygon shape?
> 
> Eric,
> 
> Wow!
> Now THAT is an ingenious approach!!! :-) and it might be just 
> the solution needed.
> 
> I'll give it a shot.
> 
> S
> 
> 
> 
> >Re Steve,
> >
> >Another funny approach:
> >
> >function WhichObject pLoc,pObj
> >   local tCurLoc, tColor
> >   -
> >   put the screenMouseLoc into tCurLoc
> >   lock screen
> >   hide pObj
> >   set the screenMouseloc to globalLoc(pLoc)
> >   put the mouseColor into tColor
> >   set the screenMouseloc to tCurLoc
> >   show pObj
> >   unlock screen
> >   return WhatKindOfObject(tColor)
> >end WhichObject
> >
> >WhatKindOfObject function would return the right object according to 
> >the passed  color  :-) Not tested... but should work.
> >Ah, there are so many ways to do a job with Rev!
> 
> -- 
> 
> 
> --
> 
> Steve Bonham
> Director, Faculty Technology Development Laboratory Center 
> for Excellence in Teaching - Georgia Southern University 
> Statesboro, GA 30460-8143
> --
> 
> ___
> 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
> 

___
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: is within ... polygon shape?

2005-06-24 Thread Lynch, Jonathan
Perhaps I am confused...

But if you are going to hide the top object, then put the mouse over the
polygon - then all you would need to do is use the mousecontrol
function. If the mouseControl is the polygon in question - then you've
got it.

However, this does not tell you if any point of the top object is over
the polygon. This would only tell you if the point at which you place
the mouse is over the polygon. If pLoc is in the middle of the top
object, but only the edge of the top object is over the polygon, then
this test would miss the overlap.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Bonham
Sent: Friday, June 24, 2005 10:55 AM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Eric,

Wow!
Now THAT is an ingenious approach!!! :-)
and it might be just the solution needed.

I'll give it a shot.

S



>Re Steve,
>
>Another funny approach:
>
>function WhichObject pLoc,pObj
>   local tCurLoc, tColor
>   -
>   put the screenMouseLoc into tCurLoc
>   lock screen
>   hide pObj
>   set the screenMouseloc to globalLoc(pLoc)
>   put the mouseColor into tColor
>   set the screenMouseloc to tCurLoc
>   show pObj
>   unlock screen
>   return WhatKindOfObject(tColor)
>end WhichObject
>
>WhatKindOfObject function would return the right object according to 
>the passed  color  :-)
>Not tested... but should work.
>Ah, there are so many ways to do a job with Rev!

-- 



--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143

--
___
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


___
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


Contest Results Tonight!

2005-06-24 Thread Ro Nagey
Well, depending on where you on in the world: tonight, this  
afternoon, this morning, or tomorrow morning! ;)


Seriously, though, a quick reminder that the first winners of the  
ChatRev coding contest are tonight!


To celebrate, we will announce the winners of the contest and discuss  
the entries, on a world-wide ChatRev session, next Friday, 24th June,  
at 21.30 CET (Note: See below for worldwide times).


The winners will be invited to talk about their stack and to explain  
the approach to their solution. The whole event will last one hour at  
most.


The three best stacks of this challenge will be made available on the  
ChatRev Coding Contest website, shortly after the event.


The "Advanced Challenge" continues until 11th July and the  
"Impossible Challenge" until 8th August. Make sure to submit your  
solutions to each of the challenges in time, to win one of the  
wonderful prizes.


To learn more about the Coding Contest, go to: contest.wecode.org>
If you need to get a copy of ChatRev, go to: chatrev.bjoernke.com>


We look forward to everyone joining us on ChatRev tonight!

Warmest regards,

The CCC judges,

Björnke
Wouter
Chipp
Mark
Ro

Time Chart:
CET 21.30
BST 20:30
EST 15:30
PST 12:30

--

http://contest.wecode.org
Now running: the first ChatRev coding contest!
sponsors:
Altuit
Andre Garzia
Fourth World
Karl Becker
Runtime Revolution
TidBITS in cooperation with eHUG

Ro Nagey ~ Evangelist ~ [EMAIL PROTECTED]
Runtime Revolution - User-Centric Development Tools ~ http:// 
www.runrev.com/



___
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


revSetStackFileProfile

2005-06-24 Thread Peter T. Evensen
revSetStackFileProfile only seems to work on open substacks, is this 
correct?  I have a mainstack that calls revSetStackFileProfile and when I 
open my main substack, the profiles aren't set.


I have to do another revSetStackFileProfile in the openstack hander of the 
substack.


Peter T. Evensen
http://www.PetersRoadToHealth.com
24-hour recorded info hotline: 1-800-624-7671 


___
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: Interfacing to externals. [offshoot from CompileIt forRevolution]

2005-06-24 Thread MisterX

It's only in-elegant as you name your external handlers or functions... 

The setup is horrible but not impossible if not already documented
somewhere...
I know i managed at least a year ago!

cheers
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of jbv
> Sent: Friday, June 24, 2005 16:23
> To: How to use Revolution
> Subject: Re: Interfacing to externals. [offshoot from 
> CompileIt forRevolution]
> 
> 
> 
> Alex Tweedly a *crit :
> 
> >
> > I think the current mechanism used by Rev to do interface 
> to externals 
> > is missing an opportunity, and indeed is inelegant (or 
> unaesthetic), 
> > because it forces the interface - and hence the calling Transcript 
> > code
> > - to be different from what it would be if the 
> function/handler were 
> > internal (pure Transcript) rather than external.
> >
> 
> yep, and that's one of the main reason why I dropped the idea 
> of building a general purpose external to interface Rev with 
> openGL 2 years ago...
> 
> JB
> 
> ___
> 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
> 

___
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: is within ... polygon shape?

2005-06-24 Thread MisterX
you need a real algotithm. The "within" function only works on 
rects only AFAIK. But the graphic will only detect a mouseup if 
you click on its graphic, not the rect - so somehow, it's "calculated"...

There's plenty of them algorithms on the net.
search "region intersection and/or polygon intersection"

fun stuff...
im sure there's a Gauss or old greek technique for this!

or... the xtalk way

you can simulate a click at any point and if the target is 
the card or not the graphic, then you got your intersection 
logic running.

i'll see what i can dig up tonite... interesting problem:

is point in *space(f) of f(i) where i is any graphic def.

oh and, new bugz 2934 found! Duh! Then people i dont check on my
bugs but hey, i dont charge as much ;)

cheers
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Steve Bonham
> Sent: Friday, June 24, 2005 16:31
> To: How to use Revolution
> Subject: Re: is within ... polygon shape?
> 
> h-
> 
> Intersect doesn't work after all. It appears that one object 
> will intersect with another irregular object's rect and NOT 
> the objects true shape (polygon points).
> See illustration... at:
>   http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg
> 
> Is there a way to get Rev to:
> 1. evaluate IF the loc of an object is within the shape 
> (defined by a series of coordinates) of an object?
> 
> OR
> 2. evaluate IF the loc of an object intersects with the shape 
> (defined by a series of coordinates) of an object?
> 
> Thx,
> S
> 
> 
> 
> >Answered my own question- I found the "intersect" function 
> and it works 
> >(see below)
> >
> >if intersect(graphic "ball", graphic "sand1") then
> > put "in the bunker"  into YourLie
> >   end if
> >
> >HOWEVER...
> >
> >There are many, many objects that the ball object may 
> intersect with...
> >Is it possible to use a "wildcard" character in Rev?
> >
> >For instance, there are 3 sand bunkers (sand1, sand2, sand3) and 60+ 
> >trees (tree1, tree2, etc)
> >
> >Can I use something along the lines of :
> >
> >if intersect(graphic "ball", graphic "tree" & *) then
> > put "in the bunker"  into YourLie
> >   end if
> >
> >I'm supposing this is not possible (but it sounds like a logical
> >need)-- but maybe there is another way to accomplish this?
> >
> >Thx
> >S
> 
> -- 
> 
> 
> --
> 
> Steve Bonham
> Director, Faculty Technology Development Laboratory Center 
> for Excellence in Teaching - Georgia Southern University 
> Statesboro, GA 30460-8143
> --
> 
> ___
> 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
> 

___
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: is within ... polygon shape?

2005-06-24 Thread Steve Bonham

Eric,

Wow!
Now THAT is an ingenious approach!!! :-)
and it might be just the solution needed.

I'll give it a shot.

S




Re Steve,

Another funny approach:

function WhichObject pLoc,pObj
  local tCurLoc, tColor
  -
  put the screenMouseLoc into tCurLoc
  lock screen
  hide pObj
  set the screenMouseloc to globalLoc(pLoc)
  put the mouseColor into tColor
  set the screenMouseloc to tCurLoc
  show pObj
  unlock screen
  return WhatKindOfObject(tColor)
end WhichObject

WhatKindOfObject function would return the right object according to 
the passed  color  :-)

Not tested... but should work.
Ah, there are so many ways to do a job with Rev!


--


--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
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: is within ... polygon shape?

2005-06-24 Thread Scott Rossi
Recently, Steve Bonham  wrote:

> Intersect doesn't work after all. It appears that one object will
> intersect with another irregular object's rect and NOT the objects
> true shape (polygon points).
> See illustration... at:
> http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg
> 
> Is there a way to get Rev to:
> 1. evaluate IF the loc of an object is within the shape (defined by a
> series of coordinates) of an object?
> 
> OR
> 2. evaluate IF the loc of an object intersects with the shape
> (defined by a series of coordinates) of an object?

I believe some folks on the list have written collision detection routines
that can detect intersection in several situations.  I think Malte Brill
might know something about this.

That being said, collision detection on irregular shapes can work by using
images that have a transparent background and point references.  Using the
within() function it is possible to accurately detect whether a point falls
within the image since Rev will evaluate a point falling within the
transparent region of the image as false.

 get within(img 1,myPoint)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
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: is within ... polygon shape?

2005-06-24 Thread Eric Chatonet

Re Steve,

Another funny approach:

function WhichObject pLoc,pObj
  local tCurLoc, tColor
  -
  put the screenMouseLoc into tCurLoc
  lock screen
  hide pObj
  set the screenMouseloc to globalLoc(pLoc)
  put the mouseColor into tColor
  set the screenMouseloc to tCurLoc
  show pObj
  unlock screen
  return WhatKindOfObject(tColor)
end WhichObject

WhatKindOfObject function would return the right object according to  
the passed  color  :-)

Not tested... but should work.
Ah, there are so many ways to do a job with Rev!

Le 24 juin 05 à 16:30, Steve Bonham a écrit :

Intersect doesn't work after all. It appears that one object will  
intersect with another irregular object's rect and NOT the objects  
true shape (polygon points).

See illustration... at:
http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg

Is there a way to get Rev to:
1. evaluate IF the loc of an object is within the shape (defined by  
a series of coordinates) of an object?


OR
2. evaluate IF the loc of an object intersects with the shape  
(defined by a series of coordinates) of an object?



Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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: is within ... polygon shape?

2005-06-24 Thread Steve Bonham

h-

Intersect doesn't work after all. It appears that one object will 
intersect with another irregular object's rect and NOT the objects 
true shape (polygon points).

See illustration... at:
http://academics.georgiasouthern.edu/cet/SB/ball_fairway.jpg

Is there a way to get Rev to:
1. evaluate IF the loc of an object is within the shape (defined by a 
series of coordinates) of an object?


OR
2. evaluate IF the loc of an object intersects with the shape 
(defined by a series of coordinates) of an object?


Thx,
S



Answered my own question- I found the "intersect" function and it 
works (see below)


if intersect(graphic "ball", graphic "sand1") then
put "in the bunker"  into YourLie
  end if

HOWEVER...

There are many, many objects that the ball object may intersect with...
Is it possible to use a "wildcard" character in Rev?

For instance, there are 3 sand bunkers (sand1, sand2, sand3) and 60+ 
trees (tree1, tree2, etc)


Can I use something along the lines of :

if intersect(graphic "ball", graphic "tree" & *) then
put "in the bunker"  into YourLie
  end if

I'm supposing this is not possible (but it sounds like a logical 
need)-- but maybe there is another way to accomplish this?


Thx
S


--


--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
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 := operator (affectation

2005-06-24 Thread Dennis Brown

Jim,

On Jun 23, 2005, at 10:40 PM, Jim MacConnell wrote:


Dennis,

First.. thank you for your intelligent reply to my:


okay.. back into my hole...


Yes, Please stay there.

It is good to so easily learn so much of the people we correspond  
with. I'm not surprised that I touched a nerve but I am surprised  
at the scream ... sorry ;-{ )


My apologies, I was a bit over the top yesterday in my reply.  Yes, I  
want to make intelligent discussion not hyperbole.  We all have our  
bad days.  I felt like I was being ambushed, and that you were going  
to retreat out of the conversation.



Second..


var := x
var == x
var = x  --this is a bit tougher
var isAssignedToTheValueOf x
var gets x

are all the same thing!

Well.. they are close.  They all may have the same result at a  
machine code level... (although I believe var == x resolves to TRUE  
if var and x are the same (false otherwise).. and usually the same  
for (var = x) if it is parentheses? )


Oops, but at least you knew what I meant .  APL left arrow was  
supposed to go into that spot.


but the discussion is not about values of variables or what the  
machine does... or at least my contribution wasn't. It seemed to  
me, the discussion was about consistency in a language and the  
inclusion of semantically different operators in addition to those  
that are inherently  ones. Seems like you didn't understand rather  
than me.


I did understand you, and I can accept that a var gets x is not xTalk  
as long as var := x is also not xTalk.  That was my point.  The gets  
"term" was my suggestion as being more xTalk than := and could be  
related semantically to the get command which is also left assignment.



Third...

You say one is a good construct and another is an inconsistent  
construct!  That makes your argument inconsistent.


Maybe reread my post? I don't see in my message where I said any of  
those was a good construct for an xTalk. I said "put x into var"  
was a good construct for an xTalk language because it is consistent  
with the concept of telling the object what "It" should do as  
opposed to a variable being assigned something...  It may seem a  
trivial point but it is at the root of the discussion...


" I personally have nothing against ":=" and "=" for variable  
assignment" --I took to be your acceptance as good.


Or perhaps the point is that if all of the above are the same but  
are non-xTalk friendly conceptually, is it appropriate for us to  
worry about whether Transcript includes any of them Of course  
you left the "put x into var" out of the list even though I would  
assume that from your point of view it is also the same thing  
So why did you leave it off?  it appears to be the only one that is  
100% consistent with the xTalk construct. Could it be you agree  
with me at some level?


Put x into var is a right assignment command.  Not the same thing.   
The whole thread is about a left assignment operator and the desire  
to conceptually have a left assignment as an extension of the  
language.  And, yes, I do agree with you at some level, just not the  
way you argued for your point.  I tend to take an argument to the  
extreme opposite position in order to discover the core issue.  It  
makes everyone (including myself) think more clearly.  I also test my  
code with values of "-infinity", -1,0,1,"+infinity",empty.  I find  
the flaws faster with the edge conditions.



Finally...


You just don't get it ;-)
I can't say I can get it into your head, though I can put it into  
your head.

Perhaps Jim gets it now.
... telling someone their argument is inconsistent or that they  
don't get it when it appears you maybe didn't  actually listen to/ 
read what they were saying does little to build your credibility.  
Following the same with a condescending cute smiley does not help.  
This list is a great place for constructive discussion and it  
should stay that way. Keep your personal comments to yourself.. and  
I'll be lighter on the " ...some renegade variable is off filling  
itself with data..." comments.


I guess I was a bit too obscure.  The ;-) was the clue that the  
statements were an example of get, put, gets syntax and a  
lighthearted jab not meant to be taken too literally:


You just don't "get it", because "get it" is a no op.
I can't say I can "get it into" your head, because "get...into" is  
bad syntax mixing left and right assignment, showing the difference  
between get and put.
Perhaps Jim gets it now... new syntax of left assignment that is  
English like syntax.


However, from the various replies to my gets suggestion, I don't  
think gets is the best choice for a left assignment for Transcript  
because of the lack of imperative.  In BASIC the LET was the  
imperative  to LET var=x.  The LET was redundant from a parsing point  
of view, so eventually fell away.  So in Transcript left assignment  
might be better stated using the familiar syntax:  set var to x

The get co

Re: is within ... polygon shape?

2005-06-24 Thread Eric Chatonet

Hi Steve,

Should be fine indeed...
AFAIK yo have to run a loop.
I don't know how is your interface but you could have some invisible  
graphics to test a larger zone before a long  loop.

A kind of graphic's indexation... to speed up the process if needed :-)

Le 24 juin 05 à 15:53, Steve Bonham a écrit :

There are many, many objects that the ball object may intersect  
with...

Is it possible to use a "wildcard" character in Rev?

For instance, there are 3 sand bunkers (sand1, sand2, sand3) and 60 
+ trees (tree1, tree2, etc)


Can I use something along the lines of :

if intersect(graphic "ball", graphic "tree" & *) then
put "in the bunker"  into YourLie
  end if

I'm supposing this is not possible (but it sounds like a logical  
need)-- but maybe there is another way to accomplish this?



Best Regards from Paris,

Eric Chatonet.

So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website

Web sitehttp://www.sosmartsoftware.com/
Email[EMAIL PROTECTED]/
Phone33 (0)1 43 31 77 62
Mobile33 (0)6 20 74 50 86


___
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


  1   2   >