Re: File I/O, Arrays, and Databases in Revolution

2002-03-29 Thread Dar Scott


On Thursday, March 28, 2002, at 09:39 AM, Dennis F. Kahlbaum wrote:

  Every line of these files are
 of mixed type: character fields, integer number fields, real number
 fields, scientific notation fields, etc.

Take care of end-of-line representation, your FORTRAN output may 
not represent those the same way as Revolution.  See the note in 
the Transcript Dictionary under linefeed.

Dar Scott


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



Re: MOD function does not work! So be warned!

2002-03-29 Thread Dar Scott


On Friday, March 29, 2002, at 01:16 AM, David Vaughan wrote:

 A solution (use round when it must be integer, raise to the power 
 1 when it must be floating point and concatenate with empty for a 
 string) is straightforward enough and rarely needed.

I don't think I understand how to use this.

Case in point:
put (8  empty)  (33  empty) -- true
These numeral values compare as numbers.  I can't make them be 
strings.

I realize there is a lot of heritage behind this, but I would have 
been happier to discover I could not tell there was any 
representation other than strings.  ...to discover that arithmetic 
has a simple numeral-to-number-to-(limited)-numeral semantics.  I 
would have been please to learn something like, Numerals with less 
than 20 digits represent numbers.  An arithmetic function on 
numerals returns an exact representation of the result if it can be 
represented in 20 or less digits, otherwise ...

It is kind of strange to find that there are some x such that B  
x = B236 is true but x = 236 is false.

Dar Scott

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



Re: MOD function does not work! So be warned!

2002-03-29 Thread Dar Scott


On Friday, March 29, 2002, at 01:16 AM, David Vaughan wrote:

 concatenate with empty for a string

OK.  I found a good example that puts that to use.  Here a 
floating point that does not equal 236 (but evaluates to 236 
when needed as a string) is converted to a string and then 
(virtually, if not really) back to a number for comparison.

on mouseUp
   put 235.00 into var
   repeat for 100 times
 put var + 0.01 into var
   end repeat
   Put (empty  var) = 236.00 into field Report
end mouseUp

This reports true, but if (empty  var) was replaced with var, this 
would report false.

I still find it weird that there are x such that (empty  x) = x is 
false.

How am I going to explain this to a bunch of little kids?

Dar



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



Re: Hot Girls And Wild Horses! (Rev MX)

2002-03-29 Thread Wayne Townsend

Hi Troy,

Multi-player on-line gaming is a great test case for Rev, because 
gaming really pushes the systems.  Bingo especially.  Here you have a 
lot of people who need to be on the same page, and it's very time 
sensitive.  The Bing-Go-Go game at 
http://www.palmspringsbingo.com/sgn for example is a high-speed 
version that plays a new game *every minute*.  Under Flamethrower, 
we've often averaged a couple hundred people, with 4 cards each, 
playing with each other continuously.  This goes on around the clock.
For that game alone, there are 25 focused cgis, that work together 
and share memory. -They're also passing off data to another DB.  We 
have G4s serving  running the game, and an NT SQL db that the cgis 
hand the live game data feed off to.

I've been very happy with the results of Flamethrower, but to ramp 
the games up to very large scale, we need to operate with sockets, 
and cross-platform servers, which Rev does, and that is why I'm here.

Haven't built any websites with anything other than Flash for several 
years now.  I'm very jazzed about the new possibilities enabled by MX.

It's unfortunate that so many developers think of Flash as an 
animation tool first, and just use it for intros.  Artists!  Sheesh. 
That's *really* missing out on the available technology.  To me, 
Flash is a cross-platform browser scripting language first.  For 
those unaware, in MX, the language is very Javascript-like.  AS is 
based on the ECMA-262 Javascript standard.  Some differences are that 
AS does not support some browser specific objects such as document, 
window, or anchor, and does not completely support all of the 
predefined Javascript objects.  It also doesn't support some 
constructs like switch, continue, try, catch  throw.  It doesn't 
support Unicode; it supports ISO 8859-1 and Shift-JIS character sets.

At any rate, the above hasn't slowed us down at all in regard to 
building demanding web applications.  Also, I'm not far enough into 
MX yet to know if any of the above has changed.  It might have.

AS does support some syntax constructs that are not permitted in 
Javascript, however. Also, AS performs cross-platform very well, 
which you can't say about Javascript, or Java.  All IMHO, of course.

Now, on-line gaming development may not be your bag, but the work 
done in it, I believe, is paving the way for other serious on-line 
community applications to come, especially in Education.  That's a 
huge market for developers, and IMO has never been done really well 
in the past.

would also be interested in the challenges such a solution has 
solved for you in the past

To be honest, the most difficult ones in the past have been in the 
way the various browsers have handled TCP.  There are lots of 
undocumented gotchas out there.  The least of our problems have been 
with Flamethrower and Flash, although the earlier Flash required some 
real programming tricks to get AS to perform the way we needed it to.

As far as I'm concerned, the last ball  chain is Flash's purposely 
hobbled writing to local disks.  If I could build a local Rev cgi 
engine that (browser) MX could communicate with as it does now with 
server cgis, I'd be a happy camper.

The best new features of MX?  Loading jpegs on the fly just like load 
movies, and the internal video.  For us it means bye bye to Real, QT, 
and WMP.  Plus the video experience is totally scriptable and 
interactive to the Flash presentation when it's embedded this way. 
The sorenson codec they're using is sweet indeed.

For my company (so far) MX development and Rev development are 
independent of each other.

You might want to reconsider that approach.  There is a serious 
advantage to an author understanding both the Flash client side and 
Rev server side, and how they interact with each other.  How far each 
can push each other, etc.  This really speeds up development, and 
produces a much higher quality result.


Anyway, the problem really isn't the available technology, especially 
now.  It's in getting developers to think in terms of 
web/browser-based applications instead of desktop applications. 
There's a whole world of them out there waiting to be developed.


ATB,

/w



On Thursday, March 28, 2002, at 10:45 AM, Wayne Townsend wrote:

I think that this combination of Rev and FlashMX truly gives us the 
tools to build the next level of applications.  We have been 
working for years with Flash4  Flamethrower, with very good 
results, and have a lot of info to share if you're interested.

Wayne,
There is already starting a fair amount of discussion on this topic 
here. It seems several (many?) of us are looking toward a potential 
combination of Flash MX and Revolution. I'm sure anything you have 
to offer would be welcome. For my company (so far) MX development 
and Rev development are independent of each other. I would like to 
consider integrating them, but would also be interested in the 
challenges such a solution has solved for you in the 

Re: MOD function does not work! So be warned!

2002-03-29 Thread Dar Scott


On Friday, March 29, 2002, at 02:06 AM, David Vaughan wrote:

 Case in point:
 put (8  empty)  (33  empty) -- true
 These numeral values compare as numbers.  I can't make them be 
 strings.
 um... true. You actually have to append a space, not empty. 
 There's one for me.

LOL.  I tried spaces on either end.  They still compare as 
representing numbers.

But that other example I found.  That is a good place to 
concatenate empty.

I think the problem is that when an alternate representation of a 
number is converted to a string, the string is not always a numeral 
of the number represented.  A value in that case has sort of a 
split personality.

dar


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



Re: Insertion Point

2002-03-29 Thread Pierre Delain

Thanks to Sarah for having confirmed that my Insertion Point problem was not
a dream and sorry for my unvoluntary Natexis Banques Populaires message...

Pierre Delain

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



Re: MOD function does not work! So be warned!

2002-03-29 Thread Michael D Mays

[I sent this message the first time from the wrong account. If it comes
through twice, sorry--mdm]

The MOD function works. The ROUND function might not.

Decimal 0.1 when converted to binary is actually slightly greater than
decimal 0.1. Set the numberFormat to something very precise and you will see
that .1 is really
 0.1555111512312578

When you keep adding increment eventually you reach a point where the sum of
all those 5.5e-19ths (if I counted right) become significant to the MOD
function. 

I think David Vaughan has said all this already but it is a very important
point. 

But the round is NOT the way to go
on mouseUp
  put 1 +.1 into aa
  put aa into line 1 of fld 1
  set the numberFormat to \
  0.##
  put aa into line 2 of fld 1
  put round(aa,1) into line 3 of fld 1
end mouseUp

fld 1 is
1.1
1.1000888178419700125
1.0998667732370449812

I don't see it in MetaCard 2.2.3 (line 2 and 3 are the same in 2.2.3) but
the results are the same as above in MC2.4.1. I think this might be a BUG.

If you want to be testing as is in this example increments of tenths, I
something like set the numberFormat to 0.# and add the line
 put loop into loop
to your repeat clause.

michael
 

Ian Summerfield of [EMAIL PROTECTED] wrote the following on
3/28/02 9:53 PM

 The code I give here might look inefficient, the code comes from a large
 project, so there are reasons for doing it this way!
 
 It's just taken me several hours to figure out why my code wasn't working,
 and it turns out to be a bug in Revolution.
 
 Revolution 1.1.1b2 (OS X 10.1.3) seems to think 5 mod 5 = 5 whereas it is
 zero.
 
 
 Try this code:
 
 on mouseup
  put 235 into startPoint
  put 255 into endPoint
  put 0.1 into increment
  put empty into msg
  put startPoint into loop
  repeat while loop=endPoint
   put loop  loop mod 5  return after msg
   add increment to loop
  end repeat
 end mouseup
 
 It will output to the message box a list of numbers.  The loop counter is on
 each line followed by a space and the loop mod 5.
 
 Here's my output:
 
 235 0    correct
 235.1 0.1
 235.2 0.2
 235.3 0.3
 SNIP
 240 5    wrong and impossible
 240.1 0.1

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



pasting objects

2002-03-29 Thread Steve Messimer

Hi,

I am having problems writing a script that pastes an objects from a plug-in
to any other stack.

When I do this the target button does get pasted but then an error message
pops up that aborts the remainder of the script.

the problem code hilited by the debugger is ...

paste btn bGOName

here's the pertinent part of the script.

  -- creates new btn in destination stack
  copy btn bGOName -- bGOName is a var that holds the name of the bGO
  push card
  open stack targetStack -- this is the topStack
  go to card id targetCard  -- the id of the current card of the topStack
  paste btn bGOName  -- this is the code that always invokes the debugger
  -- I'm wondering if this problem is somehow related to the menu bar's
  -- status even tho the Paste Objects menu item is active in the plug-in it
  -- may not be in the tarrget stack.
  
script execution ceases here

  pop card
  -- make new TF grp
  copy grp bGOName
  push card
  open stack targetStack
  go to card id targetCard
  paste grp bGOName
  pop card

Anyone have any ideas?

Thanks

Steve

Stephen R. Messimer
Messimer Computing, Inc
2501 14th Ave South
Escanaba, MI 49829
www.messimercomputing.com


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



Re: Hot Girls And Wild Horses! (Rev MX)

2002-03-29 Thread Troy Rollins


On Friday, March 29, 2002, at 02:45 AM, Wayne Townsend wrote:

 Anyway, the problem really isn't the available technology, especially 
 now.  It's in getting developers to think in terms of web/browser-based 
 applications instead of desktop applications. There's a whole world of 
 them out there waiting to be developed.

Interesting 180 on my thoughts. I think getting clients to realize that 
the internet is not the browser would be a greater advancement, but I 
get your point. I believe the browser(s) is the greatest impediment to 
networked applications today - and even Flash MX cannot begin to make up 
for it.

--
Troy
RPSystems
www.rpsystems.net

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



A Message for Karl Petersen

2002-03-29 Thread Rob Cozens

My apologies to the List.  My reason for posting this here will be evident.

Karl,

I've tried twice to continue our conversation off list, and both 
times I've received a delivery notification failure: can't connect to 
host.
-- 

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



MetaCard User Guide

2002-03-29 Thread Rob Cozens

Hi All,

A couple of people tried to find reference to the MetaCard User Guide 
on the MC website without success, and asked me for more details.

My recollection is instructions for ordering the User Guide were 
included in the startup kit; but I bought the Guide in 1999  have no 
notes except a cc billing for US$51.00.

Version 2.2 of the Guide encompasses 418 8.5 x 11 pages.  There are 
17 chapters:

Objects; Scripting; Hypermedia; The Outside World; Dialog Boxes; 
Messages; Messages by Object; Control Structures; Commands; 
Functions; Properties by Name; Properties by Object; Operators; 
Constants; Synonyms; Limits; HC  SC Compatibility.

I hate to dump this in Scott's lap; but since I can't tell you how to 
order it and the info apparently isn't readily available on the 
website, I suggest anyone interested ask Scott Raney 
[EMAIL PROTECTED] how to place an order.

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



Spreadsheet Style Display

2002-03-29 Thread Dennis F. Kahlbaum

Does Revolution already have a quick or built-in means to display
information in a spreadsheet style?  This would include rows, columns,
headings, vertical and horizontal scroll bars, by-cell editing, etc.

(I must admit, I find the Transcript Dictionary search engine
misleading. For example, type database or array, and nothing appears,
yet there IS information about both. Does anyone have a tips regarding
Revolution Documentation?)

Thanks in advance for any information.

--Dennis F. Kahlbaum
--University of Michigan


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



Re: MetaCard User Guide

2002-03-29 Thread Klaus Major

HI Rob and all,

 Hi All,

 A couple of people tried to find reference to the MetaCard User Guide 
 on the MC website without success, and asked me for more details.

 My recollection is instructions for ordering the User Guide were 
 included in the startup kit; but I bought the Guide in 1999  have no 
 notes except a cc billing for US$51.00.

 Version 2.2 of the Guide encompasses 418 8.5 x 11 pages.  There are 17 
 chapters:

 Objects; Scripting; Hypermedia; The Outside World; Dialog Boxes; 
 Messages; Messages by Object; Control Structures; Commands; Functions; 
 Properties by Name; Properties by Object; Operators; Constants; 
 Synonyms; Limits; HC  SC Compatibility.

 I hate to dump this in Scott's lap; but since I can't tell you how to 
 order it and the info apparently isn't readily available on the 
 website, I suggest anyone interested ask Scott Raney 
 [EMAIL PROTECTED] how to place an order.

The info is not on the website, that's true.

But it is inside MC ;-)
(Everything is inside MC :-)

Check out - About Metacard - Licensing Information... - Pricing

There are the printed docs and more with a price-tag.

 Rob Cozens

Hope this helps...


Happy eastern


Klaus Major
[EMAIL PROTECTED]

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