Re: Calling external program?

2004-05-17 Thread Dar Scott
On Monday, May 17, 2004, at 05:58 PM, robert wrote:
Does anyone know how to call an external program with Revolution? I 
have numerous math routines written in a DOS Forth program, and also 
in a Windows Forth program. How do I pass parameters to and from these 
programs?
If your programs take command-line args, then the shell() function 
might work for you.  You can pass values by args and by files.

If that does not work out, there might be other options what will apply.
Dar Scott
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drawing a "Centered" Circle

2004-05-17 Thread Richard Gaskin
Rob asked:
Has anyone given any thought or scripting time to exploring what it
would take to draw a circle that is centered over the loc of the
original mouseDown?
The centered property may do what you need.
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 Rev tools and more:  http://www.fourthworld.com/rev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: put awareness

2004-05-17 Thread Sarah Reichelt
Well, I'm using "libURLSetLogField" to handle the messages.  I did 
manage to
setup a idle handler that works pretty well, but I really do hate 
using idle
messages.

Use send in time instead of idle e.g.
on checkField
  -- see if your field has changed
  -- do stuff if it has
  send "checkField" to me in 5 ticks  -- or whatever interval suits
end checkField
This is much better than idle as it doesn't hog the processor.
Cheers,
Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Calling external program?

2004-05-17 Thread robert1111
Hello,
I have just begun to learn the Revolution language on a Windows 2000 
platform.

Does anyone know how to call an external program with Revolution? I have 
numerous math routines written in a DOS Forth program, and also in a 
Windows Forth program. How do I pass parameters to and from these programs?

Thank you.
Sincerely,
Robert
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev no worky...

2004-05-17 Thread J. Landman Gay
On 5/17/04 3:49 PM, Judy Perry wrote:
Aarrgghh!!! I get to a point in my stack and everything just stops --
can't use the browse tool, can't use the edit-mode arrow tool... can't
QUIT rev...
Any suggestions?  This is SOO not what I need at this point.  Should I
re-download Rev?  Could it have gotten corrupted somehow?
I have to exit by issuing a kill command from the terminal/console..
Sounds like Rev got into some kind of infinite loop. I've been hitting 
these periodically myself lately. If Cmd-period doesn't stop it (and it 
doesn't always) you can usually quit by option-clicking on the Rev icon 
in the dock. Hold down the mouse on the Rev icon, and when the menu 
appears, hold down the option key. That changes the "quit" menu item to 
"force quit". Usually you have to choose "force quit" twice; the first 
one isn't enough to kill it.

You still lose all your work, but at least you don't have to launch 
terminal. Not much consolation, I know.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev no worky...

2004-05-17 Thread Dan Shafer
Judy.
Very often when this happens, what you'll find is that the script debug 
window is open, buried under a bunch of other windows, and waiting for 
you to dismiss it. I've had this happen so often that it's become 
second nature to me to make sure the debug window isn't open before I 
hit the panic button. Almost always, that's the problem.

RR needs to do a better job of this. The script error dialog is 
blocking but not modal.

Dan
On May 17, 2004, at 2:05 PM, Judy Perry wrote:
Hi Chipp,
Thanks.  If it happens again, I'll try that.  It seems to be working 
again
now... it's the "let's kill your thesis project" goblins at work, no 
doubt
;-)

Judy
On Mon, 17 May 2004, Chipp Walters wrote:
Hi Judy,
Did you try Command-. Sometimes that works. Also, try turning messages
off and then back on.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arrary item parsing within a function message pass

2004-05-17 Thread Dar Scott
On Monday, May 17, 2004, at 03:08 PM, Zac Elston wrote:
value(Myfunction) returns the correct item but the script dies on that 
item.
Maybe you need this:
   value(myFunction&"()")
If there is a chance the function might not exist, then you might need 
to wrap it in a 'try' structure.

Maybe, like this:
function applyNamedFun0 funName
   try
 get value(funName&"()")
   catch e
 get empty
   end try
   return it
end applyNamedFun0
I may have missed the point; I don't see what this has to do with 
arrays.

Dar Scott
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drawing a "Centered" Circle

2004-05-17 Thread Jim Lyons
Rob asked:
Has anyone given any thought or scripting time to exploring what it
would take to draw a circle that is centered over the loc of the
original mouseDown?
Make an oval graphic and call it "circ", then put this into the card 
script:

local centerPoint
on mouseDown
  put the mouseLoc into centerPoint
  hide grc "circ"
end mouseDown
on mouseMove x,y
  if centerPoint is empty then exit mouseMove
  put sqrt((x-item 1 of centerPoint)^2 + (y-item 2 of centerPoint)^2) 
into radius
  set the width of grc "circ" to 2*radius
  set the height of grc "circ" to 2*radius
  show grc "circ" at centerPoint
end mouseMove

on mouseUp
  put empty into centerPoint
end mouseUp
You can modify as needed to show or hide the graphic when you want. HTH.
Jim Lyons
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


open source and standalones

2004-05-17 Thread Charles Silverman
Can  a Revolution standalone be put out as open source given that the 
playback engine is not open source?

 The I've just (about) finished a Captioning and Descriptive Video 
editor for quicktime content and as part of our commitment we want to 
make this free to use and modify if desired.

 What kind of licensing works best if you want to user to have a Rev 
standalone?

thanks,
Charles Silverman
Centre for Learning Technologies
Ryerson University
Toronto, Ontario
Canada
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Embedded Quotes Revisted

2004-05-17 Thread Dar Scott
On Monday, May 17, 2004, at 01:27 PM, Judy Perry wrote:

answer "She said, " & q("I do.")
function q what
  return quote & what & quote
end q
===
Is there anyone who can translate this from geekSpeak to 
normalHumanSpeak?
(sorry; I'm no programmer)
Since I am a geek this is hard for me to do and I might fail, but my 
comments might help a little.

It is possible to build a custom function as well as a custom command.  
Unlike a custom command a custom function can be used in an expression. 
 This is because it generates or returns a value.

Consider this in a button script:
on mouseUp
   put next(5)
end mouseUp
function next x  -- returns the number after x
  return x+1
end next
This will put 6 into the message box.
Just as the definition of the custom command "mouseUp" starts with 
'on', the definition of the custom function "next" starts with 
'function'.

Just as the custom command "mouseUp" has a name, the function has a 
name.  The function name is "next".

It takes one parameter; it is named x.
It returns a value.  The return command takes an expression.  In this 
case it is x+1.

When next() is called it is passed the value 5, which becomes the value 
for x.  This is added to 1 and returned.  Thus the command in the 
mouseUp handler gets the value 6.

This can be applied to the quoting function.
In the example, q() is called with the value "I do." which becomes the 
value of the parameter named 'what'.

The value of 'what':
I do.
The constant 'quote' is equivalent to a string containing a single 
double quote character.

The value of the expression in the return command is this:
"I do."
Thus the answer command is equivalent to this:
answer "She said, " & quote & "I do." & quote
The line in the answer dialog box is this:
She said, "I do."
Since I am a geek, I am probably leaving out some crucial component for 
understanding this.  I may have paid the cost to learn that component 
long ago and have forgotten what it takes to understand that.

Dar Scott
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


arrary item parsing within a function message pass

2004-05-17 Thread Zac Elston
so I have a list of things I want to scan for

put "MYHostname,IPofHOST,Pinged" into mycheckitems

I also have functions named MYHostname,IPofHOST & Pinged

Now I want to do is

repeat with MYX = 1 to the number of items in mycheckitems
put item MYX of mycheckitems into myfunction
writeResult var1,MYX,myfunction(var1)
end repeat

value(Myfunction) returns the correct item but the script dies on that item.


how do I get that to work?

thanks
-zac

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev no worky...

2004-05-17 Thread Judy Perry
Hi Chipp,

Thanks.  If it happens again, I'll try that.  It seems to be working again
now... it's the "let's kill your thesis project" goblins at work, no doubt
;-)

Judy

On Mon, 17 May 2004, Chipp Walters wrote:

> Hi Judy,
>
> Did you try Command-. Sometimes that works. Also, try turning messages
> off and then back on.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Rev no worky...

2004-05-17 Thread Chipp Walters
Hi Judy,
Did you try Command-. Sometimes that works. Also, try turning messages 
off and then back on.

best,
Chipp
Judy Perry wrote:
Aarrgghh!!! I get to a point in my stack and everything just stops --
can't use the browse tool, can't use the edit-mode arrow tool... can't
QUIT rev...
Any suggestions?  This is SOO not what I need at this point.  Should I
re-download Rev?  Could it have gotten corrupted somehow?
I have to exit by issuing a kill command from the terminal/console..
:(
Judy
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Ignore , this is a test

2004-05-17 Thread hershrev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Rev no worky...

2004-05-17 Thread Judy Perry
Aarrgghh!!! I get to a point in my stack and everything just stops --
can't use the browse tool, can't use the edit-mode arrow tool... can't
QUIT rev...

Any suggestions?  This is SOO not what I need at this point.  Should I
re-download Rev?  Could it have gotten corrupted somehow?

I have to exit by issuing a kill command from the terminal/console..

:(

Judy


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Ignore , this is a test

2004-05-17 Thread hershrev

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[no subject]

2004-05-17 Thread hershrev

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Embedded Quotes Revisted

2004-05-17 Thread Ken Ray
> I searched the archives and found one answer that involved 
> CLIPS (?) and using a slash; the other was something 
> involving using a function from Ken Ray which I don't really 
> understand:
> 
> 
> answer "She said, " & q("I do.")
> 
> function q what
>   return quote & what & quote
> end q
> ===
> 
> Is there anyone who can translate this from geekSpeak to 
> normalHumanSpeak? (sorry; I'm no programmer)

Judy,

Since I'm the one that wrote the q() function I thought it would be
appropriate for me to respond. As you've discovered, sometimes Rev is very
flexible about the use of quotation marks when referring to different
things, and sometimes it's not.

For example, if you had a field named "Data", you could script:

  put 10 into fld Data

and you'd get the number 10 in the field. This is Rev's method of
interpretation... if something *looks like a variable*, it is first
evaluated to see if it *is* a variable. If not, it looks to see if there's
an object by that name. So whereas this:

  put 10 into fld Data

should work, this won't:

  put 50 into Data
  put 10 into fld Data

Because by the time it gets to the phrase "fld Data", Data is now a variable
containing the value of "50", so Rev interprets this as:

  put 10 into fld 50

And if you don't have 50 fields on your card, you'll get an error. However,
when you *use* quotes, all the ambiguity disappears... Rev knows to look for
an object named appropriately, so:

  put 10 into fld "Data" 

will always attempt to find the field named "Data" so that 10 can be put
into it.

My q() function is a shorthand way of adding surrounding quotations marks to
a string to help aid in resolving these kind of ambiguities, and to be used
in circumstances where you can't have multiple quotes in a string. The
example I provided:

  answer "She said, " & q("I do.")

would bring up an answer dialog with the string:

  She said, "I do."

In order to get the quotes around "I do.", you can't just do this:

  answer "She said, "I do.""

because Rev will display an error as it doesn't understand the "internal"
quotes. No you *could* do:

  answer "She said, 'I do.'"

but you wouldn't get double quotes around the phrase "I do.", you'd get
single quotes. So in order to provide those quotes around the phrase, you
need to either provide the constants for them, as in:

  answer "She said, " & quote & "I do." & quote

or use a function like q() which takes a non-quoted string and returns it
with quotes around it, as in:

  answer "She said, " & q("I do.")
  
  function q what
return quote & what & quote
  end q

or you can use the format() function in Rev which does the same thing but
requires that you *escape* the quote by preceding it with a backslash (\),
as in:

  answer format("She said, \"I do.\"")

Escaping the quote makes sure that Rev doesn't choke on the "extra"
quotation marks, but properly understands how to implement them.

So when you're building your scripts, suppose the user selects "mouseUp"
from Button #1, and then (since I don't really know what's in Button #2, I'm
making it up) selects "answer" from Button #2 and is asked via an ask dialog
what they want to answer. Let's suppose they type:

  Hello there

into the ask dialog and click OK, and you want to make sure the assembled
script ends up looking like this:

  on mouseUp
answer "Hello there"
  end mouseUp

So if we assume that the script is assmbled as they go, and after they've
chosen and responded to the "answer" selection that the "end mouseUp" is
automatically added, the scripts are like this:

-- Script of dropdown #1
on menuPick pChoice
  -- pChoice is something like "mouseUp"
  put "on" && pChoice into fld "Script"

  -- Then store that choice so we can automatically end the handler
  -- after selecting from dropdown #2
  set the uSelectedChoice of this card to pChoice
end menuPick

-- Script of dropdown #2
on menuPick pChoice
  if pChoice = "answer" then
ask "What do you want to answer:"
if it is not empty then
  put "answer" && quote & it & quote into line 2 of fld "Script"
  put "end" && (the uSelectedChoice of this card) into line 3 of fld
"Script"
end if
  else
-- handle other choices here
  end if
end menuPick


HTH,

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





___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Hide task bar tabs?

2004-05-17 Thread RGould8
I've got a Revolution application for Windows that I'd like to run 
"invisibly".   So far, I've been semi successful by setting it's properties to 
"hidden", 
and setting the stack's visibility to "false".

What I'd like to do, however, is make it so that when Revolution does need to 
"pop up" a window, that the Windows task-bar at the bottom of the screen 
doesn't display a the tab for my revolution app.   What's really interesting is 
that my Revolution app has a main stack, and a substack, and when they both 
display, I get 2 tabs listed in the task-bar. (the substack displays an asterick 
next to it's name).   Is there a way to suppress this Windows task-bar display 
update, so that when my Rev app does a "visible of this stack = true", that 
the taskbar at the bottom doesn't change?



___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drawing a "Centered" Circle

2004-05-17 Thread Jim Hurley
Message: 9
Date: Mon, 17 May 2004 08:05:35 -0700
From: Rob Cozens <[EMAIL PROTECTED]>
Subject: Drawing a "Centered" Circle
To: How to use Revolution <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Hi All,
Has anyone given any thought or scripting time to exploring what it
would take to draw a circle that is centered over the loc of the
original mouseDown?
In the course of public presentation I would like to project a map
and allow people in the audience to identify an area on the map by
drawing a circle around it with a mouse.
Using Transcript's oval tool the loc & shape of a circle change as
the mouseLoc changes.  I want the effect of a perfect circle growing
or shrinking around a fixed point as the mouse recedes from or
approaches that point.
At the moment, the approach I'm contemplating involves:
1.  Drawing a minimal circle on mouseDown
2.  Changing the oval tool's ink (or visible property?) to make a new
invisible oval.
3.  On mouseMove change the width & height of the original circle to
the distance between the mouseDown loc and the current mouse loc
4.  On mouseUp delete the invisible oval.
Anyone have any comments or a better solution to offer?
TIA.
--
Rob Cozens
CCW, Serendipity Software Company

Rob,
This works for me. It's probably what you had in mind.
Jim
Card Script
local myName,x1,y1 -- Or use custom properties.
on mouseDown
  if there is not graphic "circle" then
set the style of the templateGraphic to Oval
create graphic "circle"
  end if
  put the name of me into myname
  put the mouseH into x1
  put the mouseV into y1
end mouseDown
on mouseUP
  put "" into myName
end mouseUP
on mouseMove x,y
  if myName is "" then exit mouseMove
  put distance(x,y) into r
  set the rect of grc "circle" to x1-r,y1-r,x1+r,y1+r
end mouseMove
function distance x,y
  return trunc(sqrt((x1-x)^2 + (y1-y)^2))
end distance
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Embedded Quotes Revisted

2004-05-17 Thread Judy Perry
Hi again,

Same project, new dilemma (but the other ones were solved, Thanks!).

Again, what I'm doing is making a slightly interactive
presentation/introduction to Rev for school teachers.  It's trying to
explain what what Rev is, what it can do, and how to make it do things
(hence my pseudo-Message Watcher etc.).

The current dilemma involves embedded quotes.  I have a card that tries to
walk people through writing a simple mouse event handler.  Button#1 is a
drop-down with the four mouse messages previously presented.  Button #2
has four sample commands (things like opening up a URL in a browser,
showing a text field, disabling a button and playing an embedded sound
file).

Both buttons are to send text to a pseudo script editor window (text field
within the graphic of a script editor window, actually) to assemble the
handler.  Button#3 is the button that the user has just "assembled" with
its script coming from the text field within the phony script editor
window graphic (thanks, Brian or whoever helped me out with that one!).

Problem: things that don't require embedded double-quotes (like
enabling/disabling the target button) work great.  The others don't for
obvious reasons.

I searched the archives and found one answer that involved CLIPS (?) and
using a slash; the other was something involving using a function from Ken
Ray which I don't really understand:


answer "She said, " & q("I do.")

function q what
  return quote & what & quote
end q
===

Is there anyone who can translate this from geekSpeak to normalHumanSpeak?
(sorry; I'm no programmer)

I suppose I could use a global variable and manually script the 16
possible combinations but am hoping for a more humane solution.

Thanks,

Judy


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


New pricing for Dan's Revolution book

2004-05-17 Thread Kevin Miller
Hi,

Dan's excellent guide to working with Revolution, Software at the Speed of
Thought, is now available at a new reduced price.  The printed book is now
just $37, a $10 reduction.  To order, visit our online store:

http://secure.runrev.com/Merchant2/merchant.mvc?Screen=PROD&Product_Code=SST
P&Category_Code=RM&Store_Code=RROS

Also, a quick update for the community:

As part of our drive to focus clearly on our core business - of building,
maintaining and publishing the best possible Revolution product, we've
suggested to Dan, and he has agreed, that it would be best to put the
production of Dan's next books on hold while we look for a mutually
agreeable publishing company to take those forward.

The only implication that you might want to be aware of is that we will be
slowing down the publication of the new e-book chapters somewhat while this
search is going on.  We'll probably release one every month or so for the
moment.  To make up for this slow down, we'll be making the new chapters
free to members of Dan's e-community, and making the printed books free to
those members when they come out too.  If you have any comments or questions
about this, please [EMAIL PROTECTED] or Dan directly.

Kind regards,

Kevin

Kevin Miller ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drawing a "Centered" Circle

2004-05-17 Thread Scott Rossi
Recently, I wrote:

>> Has anyone given any thought or scripting time to exploring what it
>> would take to draw a circle that is centered over the loc of the
>> original mouseDown?
> 
> Is this what you have in mind? (message box):

Forgot to mention, click anywhere on the card and drag...

Regards,

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

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drawing a "Centered" Circle

2004-05-17 Thread Scott Rossi
Recently, "Rob Cozens" wrote:

> Has anyone given any thought or scripting time to exploring what it
> would take to draw a circle that is centered over the loc of the
> original mouseDown?

Is this what you have in mind? (message box):

  go url "http://www.tactilemedia.com/download/epicenterizer.rev";

Regards,

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

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: problem in preview mode

2004-05-17 Thread SB
Thank you all!
Sandy
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Another Scripting Question

2004-05-17 Thread Judy Perry
Yup!  This does it!

Thanks, Brian  :-D

Judy

On Mon, 17 May 2004, Brian Yennie wrote:

> Judy,
>
> You may want to drop the "last line" reference altogether, and just say:
>
> put "xxx"&return after fld "MessageWatcher"

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Product Announcements

2004-05-17 Thread Rod McCall
Hello everyone,
There has been quite a few product announcements lately. If you are 
intending to announce a product then please get in touch as we can help 
with promoting it to the outside world. It doesn't matter if your 
product is commercial, shareware, freeware or postcardware we would 
like to hear from you!

Just send me an email ([EMAIL PROTECTED]) if you would like more 
information.

Regards,
Rod
Dr Rod McCall ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Another Scripting Question

2004-05-17 Thread Judy Perry
Thanks, Brian!

Judy

On Mon, 17 May 2004, Brian Yennie wrote:

> Judy,
>
> You may want to drop the "last line" reference altogether, and just say:
>
> put "xxx"&return after fld "MessageWatcher"
>
> IIRC, "the last line" may try to be smart and find the non-empty line
> before your return, rather than the technically empty data after it.
>
> HTH,
> Brian

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drawing a "Centered" Circle

2004-05-17 Thread xbury . cs
Hi Rob,

on mousedown
   set the drawcentered to true
   set the circle's center 
   showcircle
  repeat while the mouse is down
 grab mouseloc
 from center of circle get X or Y max (or min) distance
   end repeat
   hide circle
end mousedown

something like that?
-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 4656 43 6465
Fax: +352 4656 493 6465






































Rob Cozens <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
17.05.2004 17:05
Please respond to How to use Revolution

 
To: How to use Revolution <[EMAIL PROTECTED]>

cc: 

Subject:Drawing a "Centered" Circle

.








Hi All,

Has anyone given any thought or scripting time to exploring what it
would take to draw a circle that is centered over the loc of the
original mouseDown?

In the course of public presentation I would like to project a map
and allow people in the audience to identify an area on the map by
drawing a circle around it with a mouse.

Using Transcript's oval tool the loc & shape of a circle change as
the mouseLoc changes.  I want the effect of a perfect circle growing
or shrinking around a fixed point as the mouse recedes from or
approaches that point.

At the moment, the approach I'm contemplating involves:

1.  Drawing a minimal circle on mouseDown
2.  Changing the oval tool's ink (or visible property?) to make a new
invisible oval.
3.  On mouseMove change the width & height of the original circle to
the distance between the mouseDown loc and the current mouse loc
4.  On mouseUp delete the invisible oval.

Anyone have any comments or a better solution to offer?

TIA.
--

Rob Cozens
CCW, Serendipity Software Company

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution






Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.

END OF DISCLAIMER
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Drawing a "Centered" Circle

2004-05-17 Thread Rob Cozens
Hi All,
Has anyone given any thought or scripting time to exploring what it 
would take to draw a circle that is centered over the loc of the 
original mouseDown?

In the course of public presentation I would like to project a map 
and allow people in the audience to identify an area on the map by 
drawing a circle around it with a mouse.

Using Transcript's oval tool the loc & shape of a circle change as 
the mouseLoc changes.  I want the effect of a perfect circle growing 
or shrinking around a fixed point as the mouse recedes from or 
approaches that point.

At the moment, the approach I'm contemplating involves:
1.  Drawing a minimal circle on mouseDown
2.  Changing the oval tool's ink (or visible property?) to make a new 
invisible oval.
3.  On mouseMove change the width & height of the original circle to 
the distance between the mouseDown loc and the current mouse loc
4.  On mouseUp delete the invisible oval.

Anyone have any comments or a better solution to offer?
TIA.
--
Rob Cozens
CCW, Serendipity Software Company
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: [ANN] Analize Binary Files

2004-05-17 Thread Ken Ray
This look interesting, Alejandro, but how do you use it? The top half looks
somewhat straightforward (although the radio buttons didn't seem to do
anything(?)), but I'm not sure about the bottom half...

Thanks,

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


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alejandro Tejada
> Sent: Monday, May 17, 2004 3:23 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [ANN] Analize Binary Files
> 
> 
> Hi Developers,
> 
> Download the utility stack that help me to work
> easily with binary files:
>   
> 
> 
> Read the scripts, to understand how it works,
> and change or add code as you need.
> 
> Enjoy!
> 
> al 
> 
> =
> Visit my site:
> http://www.geocities.com/capellan2000/
> Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi
> 
> 
>   
>   
> __
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price. 
> http://promo.yahoo.com/sbc/ 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED] 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Reading the width and height of a SWF movie

2004-05-17 Thread Ken Ray
Works here in OS X... good job, Alejandro!

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


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Alejandro Tejada
> Sent: Monday, May 17, 2004 2:42 AM
> To: [EMAIL PROTECTED]
> Subject: Reading the width and height of a SWF movie
> 
> 
> Hi Developers,
> 
> I've made this a simple handler for reading the width 
> and height of a SWF movie, i'll like to know if
> it works ok in Linux and MacOSX:
> 
> on mouseUp
>   answer file "Select a SWF movie:"
>   if it is not empty then
> put "binfile:"&it into cvb
> put it into vfile
>
> if char 1 to 3 of url cvb is in "CWS,FWS"
> then
>   put char 9 to 20 of url cvb into mki
>   
>   repeat for each char n in mki
> put chartonum(n) into nbv
> set the numberformat to 
> put (baseconvert(nbv,10,2) + 0) after cdf
>   end repeat
>   
>   put char 1 to 5 of cdf into xsd
>   delete char 1 to 5 of cdf
>   set the numberformat to 00
>   put baseconvert(xsd,2,10) into xsz
>   
>   repeat 4
> put (baseconvert(char 1 to xsz of /
> cdf,2,10)/1920 * 96) & comma after vft
> delete char 1 to xsz of cdf
>   end repeat
>   
>   put vfile & return & "Width: " & item 2 of vft &
> " pixels" & space & "Height: " & item 4 of vft & "
> pixels"
> else
>   answer "I do not recognize this file as a SWF / 
> movie!"
> end if
>   end if
> end mouseUp
> 
> Thanks in advance.
> 
> al
> 
> 
> =
> Visit my site:
> http://www.geocities.com/capellan2000/
> Search the mail list: http://mindlube.com/cgi-bin/search-use-rev.cgi
> 
> 
>   
>   
> __
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price. 
> http://promo.yahoo.com/sbc/ 
> ___
> use-revolution mailing list
> [EMAIL PROTECTED] 
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Import as Substack: The EASY WAY

2004-05-17 Thread Mathewson
Have a bash with my MAINSTACKER stack: download it from

http://www.runrev.com/resources/usercontributions.shtml

it works a treat!  No mess, no stress!

Love, Richmond
__
See Mathewson's software at:

http://members.maclaunch.com/richmond/default.htmland
http://www.runrev.com/Revolution1/developercentral/usercontributions.html
___
---
Great Macintosh Products 
 The MacLaunch Store! http://www.maclaunch.com/cgi-launch/store/agora.cgi
---
Make the most out of Apple's innovative technologies
http://developer.apple.com/wwdc/applelinks.html
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] Analize Binary Files

2004-05-17 Thread Alejandro Tejada
Hi Developers,

Download the utility stack that help me to work
easily with binary files:
  


Read the scripts, to understand how it works,
and change or add code as you need.

Enjoy!

al 

=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi




__
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Reading the width and height of a SWF movie

2004-05-17 Thread Alejandro Tejada
Hi Developers,

I've made this a simple handler for reading the width 
and height of a SWF movie, i'll like to know if
it works ok in Linux and MacOSX:

on mouseUp
  answer file "Select a SWF movie:"
  if it is not empty then
put "binfile:"&it into cvb
put it into vfile
   
if char 1 to 3 of url cvb is in "CWS,FWS"
then
  put char 9 to 20 of url cvb into mki
  
  repeat for each char n in mki
put chartonum(n) into nbv
set the numberformat to 
put (baseconvert(nbv,10,2) + 0) after cdf
  end repeat
  
  put char 1 to 5 of cdf into xsd
  delete char 1 to 5 of cdf
  set the numberformat to 00
  put baseconvert(xsd,2,10) into xsz
  
  repeat 4
put (baseconvert(char 1 to xsz of /
cdf,2,10)/1920 * 96) & comma after vft
delete char 1 to xsz of cdf
  end repeat
  
  put vfile & return & "Width: " & item 2 of vft &
" pixels" & space & "Height: " & item 4 of vft & "
pixels"
else
  answer "I do not recognize this file as a SWF / 
movie!"
end if
  end if
end mouseUp

Thanks in advance.

al


=
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi




__
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


[ANN] RunRev LogShark

2004-05-17 Thread MisterX
Hi everyone,

Here's a nice little free stack to keep track of your RunRev session logs to
ease the pain of tracking problems...

http://www.monsieurx.com/modules.php?name=News&file=article&sid=147

The stack could use a few more features and graphics but it serves the
purpose...

Comments, bugs and ideas are welcome.

Cheers
Xavier

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution