Re: Script Analysis

2002-11-15 Thread Jan Schenkel
--- Richard Gaskin <[EMAIL PROTECTED]> wrote:
> Jan Schenkel wrote:
> 
> > [snip]
> >
> > What would be kind of nice in that department is a
> > system that keeps track of which pieces of code
> have
> > not run yet.
> 
> That would need to be handled deeper in the engine,
> but it should be doable
> and would be very desirable.
> 

And while we're at it: a 'threshold' value we can set
in the variable watcher to kick in the debugger when
that variable reaches a certain value.
Again, a 'deep in the engine' change, but I'd be
gloating as I can just run a program and see where
that bladted thing changes to 0 unexpectedly, without
having to trace like mad or inserting debugging code.

Ah, the joys of debugging...

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Script Analysis

2002-11-15 Thread Richard Gaskin
Jan Schenkel wrote:

> It's nice to see my name used in these listson a
> regular basis, but it was Monte Goulding who came up
> with the original question :-)
> 4W_UmbrellaMan can indeed prove very useful in
> tracking down the flow of a script, but as I said, it
> shows the flow in _one_ instance.
> 
> How would you do a 'cold' check of the following
> script-snippet and tell what is going to happen?
> 
> on myObfuscatedHandler pParam1, pParam2, pParam3
> global gSomeGLobal,gOtherGlobal
> switch pParam1
> case "some"
> put field gSomeGlobal into tTarget
> put "someMessage" into tMessage
> put "call" into tMethod
> break
> case "other"
> put field (gOtherGlobal&pParam3) into \
> tTarget
> put "otherMessage" && pParam3 into tMessage
> put "send" into tMethod
> break
> default
> return "error: pFirstParam must be some or other"
> break
> end switch
> do tMethod && tMessage && "to" && tTarget && \
> "in" && pParam3 && "seconds"
> end myObfuscatedHandler
> 
> Have fun writing an analyser for that ; only debugging
> this step by step can assure you of its correctness,
> and even then only in your test-cases.
> What would be kind of nice in that department is a
> system that keeps track of which pieces of code have
> not run yet.

That would need to be handled deeper in the engine, but it should be doable
and would be very desirable.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Re: Script Analysis

2002-11-15 Thread Jan Schenkel
--- Richard Gaskin <[EMAIL PROTECTED]> wrote:
> Jan Schenkel wrote:
> 
> > I'm looking for a script analysis tool. I'm mainly
> > interested in being able
> > to choose an object and a message and view all
> > script that is executed in
> > response to that message.
> > 
> > I guess this would involve firstly parsing the
> code
> > to find custom functions
> > and handlers then parsing the scripts down the
> > object heirarchy to find the
> > script they refer to. Then repeating the process
> > with those scripts until
> > there are no more scripts to parse. It would need
> to
> > handle frontscripts,
> > backscripts, libraries, setprops, getprops and
> sent
> > messages also.
> > 
> > Anyone interested in working on it with me or have
> > anything to help me get
> > started?
> 
> Here's a small part of it:
> 
>
 n.rev.zip>
> 
> 
> -- 
>  Richard Gaskin 

Hi RIchard,

It's nice to see my name used in these listson a
regular basis, but it was Monte Goulding who came up
with the original question :-)
4W_UmbrellaMan can indeed prove very useful in
tracking down the flow of a script, but as I said, it
shows the flow in _one_ instance.

How would you do a 'cold' check of the following
script-snippet and tell what is going to happen?

on myObfuscatedHandler pParam1, pParam2, pParam3
  global gSomeGLobal,gOtherGlobal
  switch pParam1
  case "some"
put field gSomeGlobal into tTarget
put "someMessage" into tMessage
put "call" into tMethod
break
  case "other"
put field (gOtherGlobal&pParam3) into \
  tTarget
put "otherMessage" && pParam3 into tMessage
put "send" into tMethod
break
  default
return "error: pFirstParam must be some or other"
break
  end switch
  do tMethod && tMessage && "to" && tTarget && \
"in" && pParam3 && "seconds"
end myObfuscatedHandler

Have fun writing an analyser for that ; only debugging
this step by step can assure you of its correctness,
and even then only in your test-cases.
What would be kind of nice in that department is a
system that keeps track of which pieces of code have
not run yet.

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Script Analysis

2002-11-15 Thread Richard Gaskin
Jan Schenkel wrote:

> I'm looking for a script analysis tool. I'm mainly
> interested in being able
> to choose an object and a message and view all
> script that is executed in
> response to that message.
> 
> I guess this would involve firstly parsing the code
> to find custom functions
> and handlers then parsing the scripts down the
> object heirarchy to find the
> script they refer to. Then repeating the process
> with those scripts until
> there are no more scripts to parse. It would need to
> handle frontscripts,
> backscripts, libraries, setprops, getprops and sent
> messages also.
> 
> Anyone interested in working on it with me or have
> anything to help me get
> started?

Here's a small part of it:




-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Re: Script Analysis

2002-11-15 Thread Jan Schenkel
--- Monte Goulding <[EMAIL PROTECTED]>
wrote:
> 
> Hi All
> 
> I'm looking for a script analysis tool. I'm mainly
> interested in being able
> to choose an object and a message and view all
> script that is executed in
> response to that message.
> 
> I guess this would involve firstly parsing the code
> to find custom functions
> and handlers then parsing the scripts down the
> object heirarchy to find the
> script they refer to. Then repeating the process
> with those scripts until
> there are no more scripts to parse. It would need to
> handle frontscripts,
> backscripts, libraries, setprops, getprops and sent
> messages also.
> 
> Anyone interested in working on it with me or have
> anything to help me get
> started?
> 
> Monte Goulding
> 

Hi Monte,

Though I've seen such stacks in the past (for
HyperCard, mind you), which would list globals and
where they were changed, and for handlers where they
were called from ; they could never receive 100%
accuracy due to the nature of the language.

The real problems in this area are the 'do','send' and
'call' commands, which allow you to compose calls to
handlers from variables.
The same thing goes for 'frontScripts', 'backScripts'
and 'libraries': these are fluctuating and depending
entirely on their state at a point in time.

I suppose one _could_ build a combination of a
frontScript and a backScript to keep track of what the
'do','send' and 'call' handlers do at runtime, and in
analogous form track the status and/or evolution of
the 'frontScripts', 'backScripts' and 'libraries'.
But that would at best be a black box, giving you a
limited view, based on one instance.

Sorry to disappoint you there.

Jan Schenkel.

=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: DDE - Dynamic Data Exchange

2002-11-15 Thread Alex Rice

On Friday, November 15, 2002, at 11:49  AM, Scott Rossi wrote:

RR can do DDE using the old Externals Collection available on the 
RunRev
site, but my understanding is that DDE is to be phased out as of 
WindowsXP.
Maybe someone more knowledgeable about MS/Windows can elaborate.

In my project I need to write reports out in MS Word and MS Excel 
formats. Realbasic has a "MS Office Automation" plugin, but it was slow 
and buggy as $%^&. It was of the reasons I switched to Rev.

So I am currently putting VBA code to  write the reports in an Excel 
template file, and the VBA code runs when I copy the Excel file into 
place and launch it. It's a tedious way to do it and VBA code is really 
hard to get right when you have to deal with lots of different MS 
Office versions.

So, what is DDE and why is it being deprecated, and what is replacing 
it?

Does anyone have examples of how I can execute VBA code via DDE from 
Revolution?

Where is this "old" Externals Collection for Windows? I don't see it on 
runrev.com. OK is this it? http://www.xworlds.com/metacard/external.htm 
? I found it in the list archives. Maybe it should be added to the 
runrev.com site?

Many thanks in advance,

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]

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


Re: repeat string: how?

2002-11-15 Thread Ken Ray
> In Perl one can do this in a string context to get a 20 strings 
> concatenated into a string.
> 
> "fu" x 20 => fufufufufufufufufufufufufufufufufufufufu
> 
> Does Transcript have any syntax similar to this, or do I have to write 
> a loop to build up a string this way?

You have to write a loop.

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



Re: swf files? (OT)

2002-11-15 Thread Terry Vogelaar
Do you really see such an importance for shockwave like for flash?
Imho the filesize is to big. Flash is a killer because of its small 
size...
Sometimes I think MM will let it die slowly together with Director and 
blow Flash then up with a Pro version up to a new Director...

Not really. Directory is mainly useful for multimedia CDs using pixel 
pictures. Because of the popularity of the internet, the glory days of 
the multimedia CD are over. But there is still use for Directory, 
especially when you think about DVD menus. (I don't know if Directory 
can do that, but it could be(come) a handy tool for it).  Shockwave is 
a way to bring these multimedia projects to the internet. However, 
because file sizes are much more important on the internet than on CD, 
Shockwave is never really efficient.

There Flash comes in. This beauty is solely intended for internet 
animation and interactivity. It is very, very efficient when it comes 
to file sizes and learning to use it mainly means learning to keep the 
file sizes down (while making animations).

Saying MM should let Director die and let Flash become a new Director 
sound a bit like saying Adobe should let PhotoShop die and turn 
Illustrator into it's successor. They both produce pictures ant they 
both can handle pixels and vectors, and PS files are usually larger, 
but still there is room for both programs.

Terry


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


Re: DDE - Dynamic Data Exchange

2002-11-15 Thread Ken Ray
> RR can do DDE using the old Externals Collection available on the RunRev
> site, but my understanding is that DDE is to be phased out as of
WindowsXP.
> Maybe someone more knowledgeable about MS/Windows can elaborate.

Well, Scott, I'm currently running XP on a laptop, and the DDE external
works just fine. I don't think DDE is phased out of XP, just deprecated.
Eventually they'll phase it out, but for right now, it seems to still work.

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



Re: Sound not playing sometimes. Why? FOUND IT!

2002-11-15 Thread Barry Levine
Eureka! I found the problem -and- the solution. Firstly, thanks to the 
listas who provided suggestions. Though none of them provided the 
ultimate answer, they caused me to examine other paths which led me to 
the happy ending.

Speaking of paths (as was one lista): I had a "resources" folder at the 
same level of my stack so the pathnames I used (both hardcoded and 
programmatically set) were of the form "resources/mySound.aif". When I 
compile the app, I copy the resources folder into the same folder as 
the app and everything works just fine.

The problem? It's a mathematical or timing error in Rev (or QT?) - 
maybe something to do with rounding but here is what I found: I needed 
to have a sound play completely before proceeding with another sound 
and, during the handler, some images are being displayed and hidden. So 
I use the following line of code to cause the handler to wait until the 
sound in complete.

  wait (the duration of player "player1") / (the timeScale of player 
"player1") seconds

What sometimes happens (I eventually discovered by looking at the 
player object's properties) is that something causes the audio file to 
stop playing prematurely, maybe as little a 5% or less from the end of 
the file. The next time the handler tells the player to start playing, 
only the last few % of the file plays. It sounds like the audio 
vanishes and then starts back up at the end but it's really just the 
end of the file that plays. The "wait..." code makes it seem as if 
everything is timed properly (because currentTime is ignored). The next 
time you run through the handler, everything plays fine because the 
sound file is back at the beginning (well, really the end but playing 
it from the beginning is really the only course open at this point).

I've also found that the "wait..." line of code, above, does not always 
result in the correct amount of time passing before the handler 
proceeds. The result is sometimes less so the sound stops prematurely 
when some other line of code executes in the handler.

The "fix" I put into place is as follows:

 wait (the duration of player "player1") / (the timeScale of player 
"player1") + .2 seconds
--note the "+.2" I added. Sometimes I can use .1, it appears. This 
guarantees that any small error in timing won't cause the handler to 
continue prematurely.

then I add:
set the currentTime of player "player1" to 0 -- that's a zero
-- this forces a "rewind" of the player in case something causes a 
premature halt to the sound.
-- now the next time I play the sound, it's ready to play from start to 
end.

I went through multiple levels of Cat Skinning to nail this SOB but it 
works and, hopefully, Rev2 (or maybe OSX 10.2.3 or QT6.1) will resolve 
it.

Barry

On Friday, November 15, 2002, at 07:00 PM, 
[EMAIL PROTECTED] wrote:

Message: 1
Date: Fri, 15 Nov 2002 10:04:50 -0700
Subject: Sound not playing sometimes. Why?
From: Barry Levine <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

I have a stack with a player object. No matter how I assign the
fileName property or play the sound (via transcript or the message
box), I have at least one audio file that will not play some of the
time. My audio files are all AIF 22KHz, 16bit, mono.

It was suggested that I first set the fileName to empty and then re-set
the property to the correct name. I've tried this. Also tried playing
the "empty" player before re-setting the fileName property. No luck.

I've tried "pre-playing" the sound (playing it with the playLoudness
set to 0) and then playing it at the proper volume. No luck.

I've found some consistency:

Play the sound the first time and it will fail (even if played twice in
one handler).
Play the same sound the second time (without changing the fileName to
something else and back again) and it plays fine.
Change the fileName property to some other audio file and it plays
(with the other sound).
Change it back to the original fileName and it will fail to play. Play
it again (another event triggering the same handler) and it plays fine.

I've even tried playing the sound TWICE in one handler (with no "wait"
delay between) and the same consistency applies.

What can I do to work around this? Another audio format? Will Rev 2.0
resolve it?

Thanks,
Barry



Barry Jay Levine
"The Mac Guy"

Macintosh Troubleshooting, System Engineering, Training,
AppleShare/OSX Server Setup, System Upgrades and Enhancements,

On-Site service for K20, Business, Consumer

Phone/VoiceMail: 915-581-1105
Fax: 915-581-8167
  eMail: [EMAIL PROTECTED]

MacOS X: It does. You can. It will.
WindowsXP: Insert wallet into Drive A: Press any key to empty


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



RE: Showing/Hiding Images on mouseLeave...

2002-11-15 Thread Chipp Walters
Hey Igor,

check out

put img 1 into img 2

this way you don't have to 'unpack' them

If you're using tranparent images, you may have to:

set the width of img 1 to the width of img 2
set the imagedata of img 1 to the imagedata of image 2
set the alphadata of img 1 to the alphadata of image 2

I spent a lot of time working with images recently (butongadget)

I also recently wrote a 'skinnable' application and had to work around many
of the same issues.

-Chipp

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Igor de
> Oliveira Couto
> Sent: Thursday, November 14, 2002 3:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Showing/Hiding Images on mouseLeave...
>
>
> Dear Jan,
>
> On Friday, November 15, 2002, at 08:27  AM, Jan Schenkel wrote:
>
> > A 'devious' workaround for this limitation would be
> > the following:
> > - store the entire collection of pictures in custom
> > properties (one per file with 'set the
> > uPictures[tFileName] of this stack to URL
> > "binfile:"&tFilePath')
> > - on openStack you 'unpack' the images, placing them
> > in a temporary directory
> > - then you point the fileName property of the image to
> > the 'unpacked' file in that temporary directory
> >
> > This way you still have only a single file.
> >
>
> OOOH! I like the sound of that! You genius!
> Sounds like a lot of work, but I will try that for sure!
>
> Many, many thanks, and
>
> Kind Regards,
>
> --
> Igor de Oliveira Couto
> --
> [EMAIL PROTECTED]
> --
>
> ___
> 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: why the heck does this not work??????

2002-11-15 Thread Chipp Walters
Hey Oliver.
I see you are (often) frustrated. Profanity isn't necessary in order to get
a quick answer in this forum. Here's a suggestion which might help (it
helped me early on learning about RR). I spent some time reading the
archives for RR and MC. It's amazing what you can find there. Takes a few
hours, but there are some very informative posts!

-Chipp

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Oliver Hardt
> Sent: Friday, November 15, 2002 7:32 AM
> To: [EMAIL PROTECTED]
> Subject: why the hell does this not work??
>
>
> gals and guys:  i am pretty much pissed off right now.  below is a
> snippet of code that is driving me nuts.  this code simply displays
> something on the screen and then *should* ask the user whether that
> should happen again or whether the program should go on and do
> something else.  this response is get using "answer question".
>   so far, so straightforward.  in the code, the "put
> flushEvents ..." and "set the cursor ..." lines or just in because i
> thought they might solve the problem,  but they didn't.
>
>   and this is the problem: the "answer question" dialogue ONLY
> pops up, when i run the stack from within RunRev UI (i.e., i start
> RR, and then use the File menu to open the stack).  it *doesn't* pop
> up, when i simply double click the stack icon on my desktop (RR is
> not loaded when i click).  all this happens under OS X 10.2.2.  WHAT
> THE F!&@*! IS GOING ON HERE
>
>   please help me!!!  thanks, olli.
>
>
> repeat
>  lH_clearDisplay
>  lH_Instructions
>
>  put flushEvents(all) into lDummy
>  set the cursor to hand
>  answer question "Again?" with "NO" or "YES"
>  put it into lAnswer
>  if it is "NO" then exit repeat
>end repeat
> ___
> 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



repeat string: how?

2002-11-15 Thread Alex Rice
In Perl one can do this in a string context to get a 20 strings 
concatenated into a string.

"fu" x 20 => fufufufufufufufufufufufufufufufufufufufu

Does Transcript have any syntax similar to this, or do I have to write 
a loop to build up a string this way?

Alex Rice, Software Developer
Architectural Research Consultants, Inc.
[EMAIL PROTECTED]
[EMAIL PROTECTED]

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


Re: Open Program with RR

2002-11-15 Thread erik hansen
--- Jan Schenkel <[EMAIL PROTECTED]> wrote:

> > splash screen stack with a menu of stacks...

> definitely the easiest and most flexible route.

> > what exactly IS "Home" in RR?

> "Home" still exists, but it's not the home
> stack we know from HyperCard. it looks like an
> engine backward-compatibility residu, but only
> the MC/RR boys can solve that mystery.

thanks for the information.

ok, so you can't go "Home" again.
put stacks() puts this into the msg:
revmessagebox.rev
revmenubar.rev
revapplicationoverview.rev

"splash" does not come up in the TD.
is there an invisible "splash screen" stack
hidden somewhere 
does this just mean you can create a stack that
does nothing except get things rolling, and
defines all other stacks as sub-stacks. declaring
all common handlers & functions(), setting
preferences & locations of objects/controls,
perhaps using buttons to go to different stacks?
you could even name it "Joe's Home"! 


=
[EMAIL PROTECTED]http://www.erikhansen.org

__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Script Analysis

2002-11-15 Thread Monte Goulding

Hi All

I'm looking for a script analysis tool. I'm mainly interested in being able
to choose an object and a message and view all script that is executed in
response to that message.

I guess this would involve firstly parsing the code to find custom functions
and handlers then parsing the scripts down the object heirarchy to find the
script they refer to. Then repeating the process with those scripts until
there are no more scripts to parse. It would need to handle frontscripts,
backscripts, libraries, setprops, getprops and sent messages also.

Anyone interested in working on it with me or have anything to help me get
started?

Monte Goulding
B.App.Sc. (Hons.)

Executive Director
Sweat Technologies

email: [EMAIL PROTECTED]
website: www.sweattechnologies.com
mobile (International): +61 421 138 274
   (Australia): 0421 138 274

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



Re: problem with socketID

2002-11-15 Thread Dar Scott

On Friday, November 15, 2002, at 02:54 PM, Zac Elston wrote:


on mouseup
  open socket to "host:25|mysocketname"
  read from socket mysocketname until linefeed
  answer it
  close socket mysocketname
end mouseup


This looks like the trouble area.

on mouseup
  local mySocket
  put "127.0.0.1:25|mysocketID" into mySocket
  open socket to mySocket
  read from socket mySocket until linefeed
  answer it
  close socket mySocket
end mouseup

Use the socketId if you might be creating two (or more) connections to 
port 25 on the same computer at the same time.  For example, you might 
have code in one place sending mail on an alarm and code in another 
place sending mail for regular reports; they might use a common queue 
for other code or independently connect--the latter needs the use of the 
socketID.

Dar Scott


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


Re: The RR programming model

2002-11-15 Thread Mat Korica
>Going back to the original question about the programming model, I tend 
>to think of Rev as an object oriented language with preset objects. To 
>talk in C++ speak for a moment, you can instantiate a button, give it 
>data (name, size, color, custom properties etc), and give it methods 
>(mouseUp, mouseDown, doMyStuff). Purists would probably say that it 

While it's easy to create an interface using Revolution's built-in objects,
the big weakness is that you can't make your own custom objects. I actually
was impressed enough with Revolution to implement this myself using
Transcript.

I decided that stacks/cards can represent classes/objects. Class methods are
functions stored in the script of a stack while stack and card custom
properties store the object and class attributes. I implemented inheritance
by giving classes a custom property that indicates their parent "stack". I
also provided object aggregation in a similar way.

The end result was that I could use the following syntax:

show age of Student of School "James Culnan"

...where "Student" and "School" are individual stacks, "James Culnan" is a
card in the "School" stack, "age" is a custom property on cards in the
"Student" stack, and "show" is a function in the stack "Class" that
"Student" inherits from. Also, the "School" stack acts as a container for
"Student". ("Student" really means "Students" in this context).

This actually works reasonably well, but the code I wrote is kind of
cumbersome. I also recently tried RealBASIC and realized that this type of
workaround is unnecessary there.

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



Re: Sound not playing sometimes. Why?

2002-11-15 Thread Marian Petrides
Full length of the sound's file name appears to be an issue.  If one exceeds
certain limit for full pathname/filename then the sound (or video) file
appears not to play.  I suspect that the files that play properly have file
names that are (a trifle) shorter than those which do not play properly

You can test this by putting everything (your stack, the audio files, etc.) 
in a folder at root level and then running the app.  If I'm right, then this
should solve your problem.

If I'm right about the cause, then one workaround would be to hard code the
pathnames of the audio files in your scripts rather than using relative
pathnames.  This has its disadvantages, especially if you plan on distributing
your app, but it does work--and isn't a problem for me, since my intention (at
the request of my publisher) is to have the app run off the distribution CD.

HTH.

Marian

On Fri, 15 Nov 2002 10:04:50 -0700 Barry Levine <[EMAIL PROTECTED]> wrote:

> I have a stack with a player object. No matter
> how I assign the 
> fileName property or play the sound (via
> transcript or the message 
> box), I have at least one audio file that will
> not play some of the 
> time. My audio files are all AIF 22KHz, 16bit,
> mono.
> 
> It was suggested that I first set the fileName
> to empty and then re-set 
> the property to the correct name. I've tried
> this. Also tried playing 
> the "empty" player before re-setting the
> fileName property. No luck.
> 
> I've tried "pre-playing" the sound (playing it
> with the playLoudness 
> set to 0) and then playing it at the proper
> volume. No luck.
> 
> I've found some consistency:
> 
> Play the sound the first time and it will fail
> (even if played twice in 
> one handler).
> Play the same sound the second time (without
> changing the fileName to 
> something else and back again) and it plays
> fine.
> Change the fileName property to some other
> audio file and it plays 
> (with the other sound).
> Change it back to the original fileName and it
> will fail to play. Play 
> it again (another event triggering the same
> handler) and it plays fine.
> 
> I've even tried playing the sound TWICE in one
> handler (with no "wait" 
> delay between) and the same consistency
> applies.
> 
> What can I do to work around this? Another
> audio format? Will Rev 2.0 
> resolve it?
> 
> Thanks,
> Barry
> 
> ___
> 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



SSL/HTTPS/etc

2002-11-15 Thread Iago
  Is there any currently existing way (free or commercial)
  to enable Revolution to download SSL-encrypted (https://)
  URLs?

  If there is, Revolution is pretty much what I'll recommend
  to my manager as the way to build some standalones for our
  purposes at work... Without it, it's pretty much a
  dealbreaker.

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



DDE - Dynamic Data Exchange

2002-11-15 Thread Roger Kingston (OmniBus - Stanford)
In a past life, I used to integrate Toolbook (Asymetrix) applications with Winword and 
EXCEL using DDE.  This allowed me to pass data to and from MS documents and then 
remotely run macros in MS to format, chart or mail-merge, etc.  This was extremely 
powerful and pretty reliable.  

Now I am an unrepentful RR convert (no going back!) can anyone suggest whether or not 
this, or something like it, can be achieved with RR? 

Regards

Roger Kingston
Omnibus Systems
 

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



Sound not playing sometimes. Why?

2002-11-15 Thread Barry Levine
I have a stack with a player object. No matter how I assign the 
fileName property or play the sound (via transcript or the message 
box), I have at least one audio file that will not play some of the 
time. My audio files are all AIF 22KHz, 16bit, mono.

It was suggested that I first set the fileName to empty and then re-set 
the property to the correct name. I've tried this. Also tried playing 
the "empty" player before re-setting the fileName property. No luck.

I've tried "pre-playing" the sound (playing it with the playLoudness 
set to 0) and then playing it at the proper volume. No luck.

I've found some consistency:

Play the sound the first time and it will fail (even if played twice in 
one handler).
Play the same sound the second time (without changing the fileName to 
something else and back again) and it plays fine.
Change the fileName property to some other audio file and it plays 
(with the other sound).
Change it back to the original fileName and it will fail to play. Play 
it again (another event triggering the same handler) and it plays fine.

I've even tried playing the sound TWICE in one handler (with no "wait" 
delay between) and the same consistency applies.

What can I do to work around this? Another audio format? Will Rev 2.0 
resolve it?

Thanks,
Barry

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


RE: Project Management Software (OffTopic?)

2002-11-15 Thread Gary Rathbone
>I still think a program written in Rev that did both GANTT and PERT
>charts could be killer.

Only if it could handle the four types of float calculations, milestone
slippage (preferably graphical) and resource levelling (with applicable
re-analysis of the critical path). Also a client server based model would be
ideal so task/resource allocation can be updated by the delegated
stakeholder etc...

As you'll know Project Manangement is much more than MSProject or GANTT and
PERT charts. However these are vital planning and monitoring tools. Where
there is a HUGE gap in the market is modelling an effective computer based
communications structure around the PRINCE2
(http://www.prince2.com/whatisp2.html#intro) framework...

("Prince (PRojects IN Controlled Environments) is a structured method for
effective project management. It is a de facto standard used extensively by
the UK Government and is widely recognised and used in the private sector,
both in the UK and internationally...)

... whilst integrating those components which PRINCE2 deems to be outside
its scope such as GANTT, PERT, WBS, NPV etc...

A mamoth task, but what a product !

Gary Rathbone BSc MBCS
Chartered Information Systems Practitioner



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



Re: Project Management Software

2002-11-15 Thread Bill Vlahos
It actually was chartConstructor which prompted me to look into this. 
All I know is that it is a Cocoa app and I don't believe the author is 
interested in taking it cross platform. I have purchased it and like it 
a lot although it seems to be fairly basic in its current form.

I contacted the Micro Planner folks and they are not OS X native yet 
but are working on it. They say they will "have a release prior to 
support being dropped by Apple." They did not give a date but I'm 
assuming that could mean this January as they say that if purchased 
now, the OS X native version would be included as a free upgrade. 
They're product is very expensive so it isn't really a competitor to MS 
Project in the way chartConstructor might be if it was cross platform.

I still think a program written in Rev that did both GANTT and PERT 
charts could be killer.

Thanks for all the feedback. I didn't know about Micro Planner.

Bill Vlahos

On Thursday, November 14, 2002, at 04:33  PM, David Vaughan wrote:

I would like to find out if anyone is working on Project Management
software. It is not something I'm interested in writing but would be
interested in buying.

There is no cross platform software which does both GANT and PERT
charts that is current.


I don't know much about this one (I still keep MS Project 4.0 around) 
but it
looks promising:



Also, try www.headshack.com

Currently ChartConstructor is OS X only but is clean, simple and 
provides GANTT and PERT views. You could try the author to see in what 
they have written it and if they are interested in cross-platform.

regards
David

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



Re: Showing/Hiding Images on mouseLeave...

2002-11-15 Thread Rob Cozens
 > Are there any essential differences in the properties and/or behavior

 of graphics and images?


Besides those already mentioned, you should go through the docs and check
out the respective properties.  If you have any specific questions, feel
free to ask.


No specific questions, Scott; just wanted to know if there were any 
major categorical differences.  Comparing two lists of property names 
does not always get one focused on essential differences in behavior.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"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: why the hell does this not work??????

2002-11-15 Thread Rob Cozens
	and this is the problem: the "answer question" dialogue ONLY 
pops up, when i run the stack from within RunRev UI (i.e., i start 
RR, and then use the File menu to open the stack).  it *doesn't* pop 
up, when i simply double click the stack icon on my desktop (RR is 
not loaded when i click).  all this happens under OS X 10.2.2.  WHAT 
THE F!&@*! IS GOING ON HERE

Hi Oliver,

Basically, most (if not all) stacks will not perform or display 
correctly if double clicked on from the OS.  They need to run from 
the Dev UI or a standalone player or application, or to be built as 
standalones to work properly.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"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: 1.5 (now 2.0)

2002-11-15 Thread Rob Cozens
So I may still end up with 314 instead of 157 images, and I'm 
looking among the tools on my Mac to see if I have anything that 
creates animated gifs.

Try GifBuilder http://www.mac.org/graphics/gifbuilder/


Thanks, Sarah.

I just sent out an inquiry to someone who has done image manipulation 
for me in the past; but if I can find a way to do it myself that 
would be great.
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"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: why the heck does this not work??????

2002-11-15 Thread Troy Rollins
On 11/15/02 8:32 AM, "Oliver Hardt" <[EMAIL PROTECTED]> wrote:

> and this is the problem: the "answer question" dialogue ONLY
> pops up, when i run the stack from within RunRev UI (i.e., i start
> RR, and then use the File menu to open the stack).  it *doesn't* pop
> up, when i simply double click the stack icon on my desktop (RR is
> not loaded when i click).

The problem is not the code. It's how you are running it. The answer dialog
is available in the Rev environment, and in your stand-alones if you choose
to include it - but not in your native stack file. Do a build, and include
the dialogs, and it will work.


-- 
Troy
RPSystems, Ltd.
www.rpsystems.net

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



Re: swf files?

2002-11-15 Thread Troy Rollins
On 11/15/02 6:41 AM, "Wolfgang M. Bereuter" <[EMAIL PROTECTED]> wrote:

> All infos have been very helpful...
> But my question was not exact enough, should be: *without* QuickTime

Actually, I understood that, so it must have been my answer that was not
complete enough.

More directly to the point - I would NOT count on using SWFs in Rev without
QuickTime anytime soon.
-- 
Troy
RPSystems, Ltd.
www.rpsystems.net


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



Re: Hilite With Transparent Button

2002-11-15 Thread Rob Cozens
Hi Scott,


 > I requested this feature when Revolution was in beta testing. 
Kevin added it
 to the list, but I don't know where it stands at this point.


Hey, you want pixel inversion, just draw a white object (black on the
Mac, I think) with its ink set to srcXor on top of your object.  Once
you see what that looks like, though, you'll see why I think you don't
really want what you're asking for...


If this does not produce an effect as good as what I see when I type 
"flash" in the message box while viewing a kludgy AddColor HyperCard 
image, it's not what I (& Ted?) want.  If that effect cannot be 
produced by the MetaCard engine, that's too bad.

Inverting an image (remember we're talking simple icons here, not 
fine art) on arming or hiliting is a simple, easy way to make the 
interface more responsive to the user without having to create & 
manage addition icon images.

PS: and about that plan of using a GIF as an image library.  It's bad
idea because the frames are all decompressed ahead of time, chewing up
large amounts of RAM for no good reason unless you're actually going
to use it for animation where performance is more important than
memory requirements.


I understand the reasoning behind your general admonition, but I 
think the technique makes eminent sense in the circumstances under 
discussion:

* 314 images (I would only need 157 IF the MC engine could invert them)
* Average image size: 4K
* Images are scripted, grouped, & distributed as a set: if one is 
missing, the group can't function properly
* Images are always displayed singly
* All images are displayed at the same location
* It only uses one of the 100 icon ids you assigned me   :{`)
--

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"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


why the hell does this not work??????

2002-11-15 Thread Oliver Hardt
gals and guys:  i am pretty much pissed off right now.  below is a 
snippet of code that is driving me nuts.  this code simply displays 
something on the screen and then *should* ask the user whether that 
should happen again or whether the program should go on and do 
something else.  this response is get using "answer question".
	so far, so straightforward.  in the code, the "put 
flushEvents ..." and "set the cursor ..." lines or just in because i 
thought they might solve the problem,  but they didn't.

	and this is the problem: the "answer question" dialogue ONLY 
pops up, when i run the stack from within RunRev UI (i.e., i start 
RR, and then use the File menu to open the stack).  it *doesn't* pop 
up, when i simply double click the stack icon on my desktop (RR is 
not loaded when i click).  all this happens under OS X 10.2.2.  WHAT 
THE F!&@*! IS GOING ON HERE

	please help me!!!  thanks, olli.


repeat
lH_clearDisplay
lH_Instructions

put flushEvents(all) into lDummy
set the cursor to hand
answer question "Again?" with "NO" or "YES"
put it into lAnswer
if it is "NO" then exit repeat
  end repeat
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: swf files?

2002-11-15 Thread Klaus Major
Hi Wolfgang,



On Freitag, November 15, 2002, at 05:09  Uhr, Troy Rollins wrote:

Thanks to all...
All infos have been very helpful...
But my question was not exact enough, should be: *without* QuickTime


the answer is simple: You can't :-(

...unless someone is willing to write an external...
(I would buy it ! :-)
...or an external that will handle "shockwave", too...
Wow, what a hought...
(I would buy 2 :-)


sorry
regards
Wolfgang M. Bereuter


Have a nice weekend.

Regards


Klaus Major
[EMAIL PROTECTED]

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



Re: Save stack working?

2002-11-15 Thread Klaus Major
Hi Dave,


I've tried the following script to try to setup a preferences-like 
file for
windows.  I can't seem to get it to save the stack to the 
defaultFolder area
of my standalone.

Is save stack screwed up or am I?  :-)  It seems pretty simple.

on mouseUP
  put "prefs.dat" into prefsFile

  create invisible stack prefsFile
  -- set custom properties here

  save stack prefsFile
-- should save in the defaultFolder right?

  close stack prefsFile
end mouseUP


Thanks!

--
Dave Egbert

looks like the engine does not yet know into which file
the stack should be saved for the first time.

So just add these 2 words:


  save stack prefsFile as prefsfile ## !
  ## the missing piece :-)


Hope this helps.

Regards

Klaus Major
[EMAIL PROTECTED]

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



Re: swf files?

2002-11-15 Thread Wolfgang M. Bereuter

On Freitag, November 15, 2002, at 05:09  Uhr, Troy Rollins wrote:

Thanks to all...
All infos have been very helpful...
But my question was not exact enough, should be: *without* QuickTime
sorry


The good news is that through QuickTime, you can already do a lot with 
SWF
files, providing they are coded for Flash 5 and below, QT even supports
their interactivity. Via debugStr, you could even do certain types of
data-sharing and inter-application communications can be handled in 
several
ways.

All my way of saying - I doubt you'll see it get any more "native", 
but you
can already do quite a lot.


--
Troy
RPSystems, Ltd.
www.rpsystems.net

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


regards
Wolfgang M. Bereuter

Learn easy with trainingsmaps©

INTERNETTRAINER Wolfgang M. Bereuter
Edelhofg. 17/11, A-1180 Wien, Austria
...
http://www.internettrainer.com, [EMAIL PROTECTED]
...
Tel: ++43/1/ 961 0418, Fax: ++43/1/ 479 2539

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



Re: The RR programming model

2002-11-15 Thread Wolfgang M. Bereuter

On Freitag, November 15, 2002, at 04:33  Uhr, Judy Perry wrote:


I don't know if I told you this previously, but I have entered a second
master's degree program in instructional design and technology..  
Anyway,
they've approved as a final project for me to design a series of
tools/tutorials to help acclimate new users to Rev -- particularly
non-technical types such as new public school teachers.

My first project is a stack which aims to teach the concept of mouse
events; it is due early December.

Would you be interested in offering any feedback?  These things could
perhaps be of use in attracting the K-12 market...

W*ho*o*o*w!!!
Where can I See that???

regards
Wolfgang M. Bereuter

Learn easy with trainingsmaps©

INTERNETTRAINER Wolfgang M. Bereuter
Edelhofg. 17/11, A-1180 Wien, Austria
...
http://www.internettrainer.com, [EMAIL PROTECTED]
...
Tel: ++43/1/ 961 0418, Fax: ++43/1/ 479 2539

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



Can´t open driver

2002-11-15 Thread Chris Pastl
I´m interested in developing applications on Mac OS 9
which can connect to a USB driver.
So tried to open a driver called "USB Serial Driver"
using the following code:

open driver "USB Serial Driver" for binary update

But the program says that it "can´t open that file".

What´s wrong?

The Driver is successfully installed in the extensions folder.


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



Re: Save stack working?

2002-11-15 Thread Ken Ray
David,

Where is the stack being saved? If is being saved in the same directory as
Rev, it is because "the directory" needs to be set to the location of your
stack. When you make your stack a standalone, its location will be the
"default", but until it's a standalone, the Rev app's folder is the default.

To change it for Windows and Mac OS (not OS X) only, use something like
this:

function AppPath
   local tPath
   get matchText(the effective fileName of this stack,"(.*\/)",tPath)
   return tPath
end AppPath

If you want a more generic all-purpose, multi-platform version, you can use
the one on this tip at my site:

http://www.sonsothunder.com/devres/revolution/revolution.htm?_file008

Enjoy,

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


- Original Message -
From: "David Egbert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 15, 2002 1:36 AM
Subject: Save stack working?


> I've tried the following script to try to setup a preferences-like file
for
> windows.  I can't seem to get it to save the stack to the defaultFolder
area
> of my standalone.
>
> Is save stack screwed up or am I?  :-)  It seems pretty simple.
>
> on mouseUP
>   put "prefs.dat" into prefsFile
>
>   create invisible stack prefsFile
>   -- set custom properties here
>
>   save stack prefsFile
> -- should save in the defaultFolder right?
>
>   close stack prefsFile
> end mouseUP
>
>
> Thanks!
>
> --
> Dave Egbert
>
> ___
> 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