Re: Revlet behaving badly in Safari

2009-07-26 Thread Kevin Stallibrass
Andre Garzia wrote:

> Folks,

> 

> RRE.app is Runtime Revolution Environment, aka, the web plugin. RRE

> probably mean you have an Alpha version of the plugin, the ones that

> were seeded to conference going pioneers. If this is so, then, trying

> to load a revLet will render the browser unresponsive. The file format

> changed I think, the .revlet files are different from that the alpha

> plugin loaded.

> 

> The dialog appearing behind the browser is a bug that RunRev is aware

> of and trying to fix.

> 

> cheers

> andre

 

 

Thanks Andre for pointing out the answer on this one - it has saved me a lot
of investigative time but my question has prompted the disappointed comments
from Richmond who tried to help out. My experience so far with revWeb has
been so positive that I'm already an advocate, actively spreading the word
to previous non Rev users. To read Richmond's comments is slightly worrying
and a reminder to me that we're still on alpha and that maybe I should calm
down a little. All I can say to Richmond is persevere - it's worth waiting
for

 

Regards

Kevin Stallibrass

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


Re: Revlet behaving badly in Safari

2009-07-26 Thread Richmond Mathewson

Kevin Stallibrass wrote:

Andre Garzia wrote:

  

Folks,



  

  

RRE.app is Runtime Revolution Environment, aka, the web plugin. RRE



  

probably mean you have an Alpha version of the plugin, the ones that



  

were seeded to conference going pioneers. If this is so, then, trying



  

to load a revLet will render the browser unresponsive. The file format



  

changed I think, the .revlet files are different from that the alpha



  

plugin loaded.



  

  

The dialog appearing behind the browser is a bug that RunRev is aware



  

of and trying to fix.

cheers

andre



Thanks Andre for pointing out the answer on this one - it has saved me a lot
of investigative time but my question has prompted the disappointed comments
from Richmond who tried to help out. My experience so far with revWeb has
been so positive that I'm already an advocate, actively spreading the word
to previous non Rev users. To read Richmond's comments is slightly worrying
and a reminder to me that we're still on alpha and that maybe I should calm
down a little. All I can say to Richmond is persevere - it's worth waiting
for

 
  
Good Lord; if you think those Alpha glitches are enough to put me off 
then you obviously

haven't been reading my postings here over the last 8 years!

As far as I am concerned Runtime Revolution is 98% fantastic; which is 
probably all that

anyone can hope for in our imperfect world!

Regards

Kevin Stallibrass

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

  


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


revMedia (Demo) ???

2009-07-26 Thread Richmond Mathewson

Why is the revMedia 4 Alpha described as a Demo on the Apple downloads page?

This is misleading and needs to be sorted out fairly quickly.

The RAD is an Alpha, but is certainly not a Demo.

After all, stacks can be built and saved just exactly as
earlier recensions of revMedia.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Naive question number 999

2009-07-26 Thread Richmond Mathewson

My kids are making word-processors with revMedia 4 right now,
and exporting to text

Humpf:  write to file  works with Linux but doesn't seem to work
on Mac, so having to  put fld "XXX" into URL "file: MyCrap.txt"

However the kids are, understandably, rather disappointed
having produced PINK, ITALIC, GIANT, RIGHT ALIGNED text, to
find that all that gets exported is bog-standard text and all
the formatting is gone for a Burton.

Please can someone point me in the right direction to export
styled text?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Naive question number 999

2009-07-26 Thread Mark Schonewille

Richmond,

Export the rtfText property to an RTF file. Even though it is buggy,  
it preserves most of the olours and styles.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com and  
get found!


If you sent me an e-mail before 8th July and haven't got a reply yet,  
please send me a reminder.



On 26 jul 2009, at 11:33, Richmond Mathewson wrote:


My kids are making word-processors with revMedia 4 right now,
and exporting to text

Humpf:  write to file  works with Linux but doesn't seem to work
on Mac, so having to  put fld "XXX" into URL "file: MyCrap.txt"

However the kids are, understandably, rather disappointed
having produced PINK, ITALIC, GIANT, RIGHT ALIGNED text, to
find that all that gets exported is bog-standard text and all
the formatting is gone for a Burton.

Please can someone point me in the right direction to export
styled text?

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


Revlet alternatives for launch, shell, externals, applescript, etc.

2009-07-26 Thread Richard Miller
I need to run Trevor's enhanced quicktime external in a revlet. At this 
time, however, externals can't be run in a revlet. Not sure when that 
will change... by the official release in September perhaps?


As an alternative, it would work fine if I could have the revlet launch 
a separate Rev application that uses the external. But the "launch, 
shell and applescript" commands are disabled in the alpha version as 
well. I know there is an Internet Explorer "loophole" to start up an 
application through javascript, but this won't work in Safari or Firefox.


Does anyone know when revweb will be able to take advantage of an external?

Anyone have any creative ideas how I might (at this time) launch a Rev 
app from a revlet or an html page across IE, Firefox and Safari (or more 
precisely, incorporate an external into a revlet)?


I suppose I could just ask the user to start up a separate application 
when my revlet starts running, but this is not a very elegant solution.


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


Re: Naive question number 999

2009-07-26 Thread Richmond Mathewson

Humpf; I will try to fool everybody that my slowness there was
the result of coping with kids in a classroom setting: but, of
course that is not true - entirely my own fault.

Thanks for your pointer:

just checked RTF in the Documentation and found this:

"put the RTFText of field "Destination" into URL myURL"

which looks rather exciting . . .

Set up a stack with a field containing suitably garish text
(orange, right aligned, size 48, disgusting font)
and popped this in a button:

on mouseUp
  put the RTFtext of fld "FFF" into URL "file: FancyText.rtf"
end mouseUp

NBG!

Tried this:

on mouseUp
  put the htmlText of fld "FFF" into URL "file: FancyText.html"
end mouseUp

because of this near the bottom of the Documentation bit about RTF:

"To export and re-import field information without losing any style 
information, use the htmlText property instead."


NBG!

This all on the trusty G4 war-horse.  :)

Decided not to contribute a slightly offensive note to the 
User-contributed notes in the Documentation
until I can manage to export the flipping text the way it should be 
exported.




Mark Schonewille wrote:

Richmond,

Export the rtfText property to an RTF file. Even though it is buggy, 
it preserves most of the olours and styles.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com

Submit your software products to http://www.quickestpublisher.com and 
get found!


If you sent me an e-mail before 8th July and haven't got a reply yet, 
please send me a reminder.



On 26 jul 2009, at 11:33, Richmond Mathewson wrote:


My kids are making word-processors with revMedia 4 right now,
and exporting to text

Humpf:  write to file  works with Linux but doesn't seem to work
on Mac, so having to  put fld "XXX" into URL "file: MyCrap.txt"

However the kids are, understandably, rather disappointed
having produced PINK, ITALIC, GIANT, RIGHT ALIGNED text, to
find that all that gets exported is bog-standard text and all
the formatting is gone for a Burton.

Please can someone point me in the right direction to export
styled text?


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


Re: Naive question number 999

2009-07-26 Thread Richmond Mathewson

Interestingly enough while

on mouseUp
  put the RTFtext of fld "FFF" into URL "file: FancyText.rtf"
end mouseUp

is completely useless;

on mouseUp
  set the RTFtext of fld "FFF" to URL "file: FancyText.rtf"
end mouseUp

i.e. importing styled text

works perfectly

This:

on mouseUp
  set the htmlText of fld "FFF" to URL "file: FancyText.html"
end mouseUp

is useless.

All with revMedia 4a on the G4.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


[revlets] drag & drop files onto revlet does not seem to work!?

2009-07-26 Thread Robert M.

I wanted to test shell access cause I need to use lameEncoding, and tried to
turn the "lameEncode.rev" (who is the author by the way?) into a revlet. The
app requires to drop the files to be coded onto an area and same for the
output folder.  Of course all works fine in the IDE

But on revlet :
-- the output folder is just not recognized as a drag & drop
-- the input file is accepted, I beleive by the browser that seem to
"overtake" opérations even over the revlet area. So the audio file
recognized by the browser replaces the revlet!! 

Any similar experiences, hints, solutions?

(p.s. as for using lameEncoder, It seems that shell & scripting commands are
off see :
http://www.nabble.com/Audio-Problem-with-revlet-ts24663671.html)

-- 
View this message in context: 
http://www.nabble.com/-revlets--drag---drop-files-onto-revlet-does-not-seem-to-work%21--tp24666481p24666481.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Re: [runrev DOC] how does "parent scripting" or "behaviours" work?

2009-07-26 Thread Robert M.

Errare humanum est - I found out that behaVIOR is documented in the main
dictionnary :drunk:

There are 6 references to "behavior" (and not behavIOURS as I as a french
lad looked for...) 
and it would have been clearer to my view to keep the name as "parentScript"
because behaviors mostly refer to background behavior. But so it is.


-- 
View this message in context: 
http://www.nabble.com/-runrev-DOC--how-does-%22parent-scripting%22-or-%22behaviours%22-work--tp24663557p2401.html
Sent from the Revolution - User mailing list archive at Nabble.com.

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


Load Screen

2009-07-26 Thread Edward D Lavieri Jr
Does anyone know if, after 4.0 is released, we will be able to  
customize the plug-in's splash/install screen? My assumption is that  
this will not be permitted, but it would be nice to confirm.


Thanks,
Ed


Ed Lavieri
ID Leaders


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


Re: Naive question number 999

2009-07-26 Thread Colin Holgate


On Jul 26, 2009, at 6:45 AM, Richmond Mathewson wrote:



on mouseUp
 set the htmlText of fld "FFF" to URL "file: FancyText.html"
end mouseUp

is useless.



I figured it out, and maybe it's a problem, maybe it's not, Im not  
sure what the path conventions are for Rev.


In the above example script, FancyText.html would be looked for next  
to where the stack is. In this case:


on mouseUp
 put the htmlText of fld "FFF" into URL "file: FancyText.html"
end mouseUp

the file is created in the Revolution Media 4.0.0 folder. If you use  
your stack from the Revolution Media 4.0.0 folder, both scripts work  
fine.


I suspect that in a real world case, you should use a full path to the  
file you are talking to.



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


Re: Naive question number 999

2009-07-26 Thread Richmond Mathewson

Colin Holgate wrote:


On Jul 26, 2009, at 6:45 AM, Richmond Mathewson wrote:



on mouseUp
 set the htmlText of fld "FFF" to URL "file: FancyText.html"
end mouseUp

is useless.



I figured it out, and maybe it's a problem, maybe it's not, Im not 
sure what the path conventions are for Rev.


In the above example script, FancyText.html would be looked for next 
to where the stack is. In this case:


on mouseUp
 put the htmlText of fld "FFF" into URL "file: FancyText.html"
end mouseUp

the file is created in the Revolution Media 4.0.0 folder. If you use 
your stack from the Revolution Media 4.0.0 folder, both scripts work 
fine.


I suspect that in a real world case, you should use a full path to the 
file you are talking to.


I had absolutely no problem finding the file as am well aware the 
default folder is where RR
is. However the text styling was not maintained - that is what I meant 
by 'useless'.

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


Re: Naive question number 999

2009-07-26 Thread Colin Holgate


On Jul 26, 2009, at 12:51 PM, Richmond Mathewson wrote:



I had absolutely no problem finding the file as am well aware the  
default folder is where RR
is. However the text styling was not maintained - that is what I  
meant by 'useless'.



And what I said is that it works fine for me, including font, size,  
and color being retained, at least it does on my Mac. Did you  
understand what I was saying about how although the default folder for  
writing is the Rev folder, the default folder for reading isn't, it's  
next to the stack itself?




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


Revlet save a txt file

2009-07-26 Thread Yves COPPE

Hello list,

I've tried a revlet which creates a text file
this text file is a tab-return file


I have two questions :

1) how can I save the txt file on my personal web site  (it is not a  
rev-server)
2) how can I easily transform the tab-return file in html format to  
incorporate the table in a html page



Thanks or your ideas ...


Greetings.

Yves COPPE
yvesco...@skynet.be

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


Re: Revlet save a txt file

2009-07-26 Thread Richard Gaskin

Yves COPPE wrote:

1) how can I save the txt file on my personal web site  (it is not a  
rev-server)


Two ways to send data to a server are FTP and POST via HTTP.  From 
anything running on a public client FTP would expose your password 
unnecessarily, so using POST to send the data to a CGI would probably be 
the better option.


2) how can I easily transform the tab-return file in html format to  
incorporate the table in a html page


You could walk through the data and put the necessary HTML tags around 
the data with a function like this:


function TabToHtmlTable pData
  set the itemdel to tab
  put ""&cr into tHtml
  repeat for each line tLine in pData
put "" after tHtml
repeat for each item tItem in tLine
  put ""& tItem &"" after tHtml
end repeat
put ""&cr after tHtml
  end repeat
  put "" after tHtml
  return tHtml
end TabToHtmlTable


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread James Hurley


Message: 5
Date: Sat, 25 Jul 2009 18:05:53 -0700
From: Richard Gaskin 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID: <4a6babf1.2030...@fourthworld.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

James Hurley wrote:
Before I begin to dream about the potential of Revlet, I would like  
to

have some idea about the potential, particularly the speed in running
graphics.


I haven't tested graphics operations, and would be interested to  
hear of

any differences from those.  But FWIW, I ran RevBench in both the
browser and the IDE and could discern no significant differences in
performance.

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com


--

Message: 6
Date: Sun, 26 Jul 2009 11:21:06 +1000
From: Sarah Reichelt 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1


(Snip)






I built your image moving stack and uploaded it to
.
It seems to work at full speed, so it isn't the mouseMove itself, but
the amount of processing that has to happen on every mouseMove.
I tried several options: locking the screen, only drawing the lines if
the torch has moved more than a certain number of pixels, limiting the
number of redraws per second, flushing events. I even tried replacing
the torch image with a button in case redrawing the image was too
much.
I think I made it a bit better, but it's still not great, but you can
try it again at the same address.

As regards the odd URL, in the standalone settings, I recommend
entering a name for the revlet with no spaces or other odd characters.
When you build the revlet, you get 2 files: the revlet file and a
test.html file. Rename the test.html file if you want and then upload
them both into the same folder of your on-rev site. Then the web
address will be: http://yourname.on-rev.com/foldername/test.html
(filling in the blanks as appropriate).

Cheers,
Sarah


Sarah and Richard,

I have uploaded an old stack of mine which is both calculational and  
graphic-display intensive, my old Nine Ball simulation:


go url "http://jamesphurley.com/NineBallWithSpin.rev";

As I suspected from both Richard's and Sarah's findings that the  
calculational parts (calculating the positions and velocities of all  
the balls and determining the new positions and velocities after
collisions) run very well in Safari. But the motion of the balls is  
very stuttered. It runs at full speed, that is it takes the same time  
to execute one "shot" but the motion of the balls is herky-jerky.



I am puzzled, Sarah, when you say that the mouseMove stack works at  
full speed and then you say that it is not great. (And you speak of  
the torch. Did you mean the winter scene of my barn?) Maybe you mean  
it runs at full speed but is bumpy? Did you find the torch image  
breaking up into two pieces as you dragged it?


I also tried "grab me" but with the  same bumpy results.

This is something that I hope can be remedied. After all, this is just  
alpha. We have the whole greek alphabet to go.


Sarah, thanks for the info on getting an app on the web. I'll work on  
it.


Jim



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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Richard Gaskin

James Hurley wrote:

I have uploaded an old stack of mine which is both calculational and  
graphic-display intensive, my old Nine Ball simulation:


go url "http://jamesphurley.com/NineBallWithSpin.rev";

As I suspected from both Richard's and Sarah's findings that the  
calculational parts (calculating the positions and velocities of all  
the balls and determining the new positions and velocities after
collisions) run very well in Safari. But the motion of the balls is  
very stuttered. It runs at full speed, that is it takes the same time  
to execute one "shot" but the motion of the balls is herky-jerky.


My guess is this is related to the browser's event loop.

When running in a standalone, there's only the Rev engine's event loop 
and those of whatever other apps and OS components are running.


But when running in the browser you have all of that plus the browser's 
own fairly extensive event loop.


I suspect with all of the events browsers need to trap, dispatch, and 
handle, what you're seeing is just a natural by-product of running 
inside the browser.


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet save a txt file

2009-07-26 Thread Yves COPPE


Le 26-juil.-09 à 19:51, Richard Gaskin a écrit :


Yves COPPE wrote:

1) how can I save the txt file on my personal web site  (it is not  
a  rev-server)


Two ways to send data to a server are FTP and POST via HTTP.  From  
anything running on a public client FTP would expose your password  
unnecessarily, so using POST to send the data to a CGI would  
probably be the better option.


2) how can I easily transform the tab-return file in html format  
to  incorporate the table in a html page


You could walk through the data and put the necessary HTML tags  
around the data with a function like this:


function TabToHtmlTable pData
 set the itemdel to tab
 put ""&cr into tHtml
 repeat for each line tLine in pData
   put "" after tHtml
   repeat for each item tItem in tLine
 put ""& tItem &"" after tHtml
   end repeat
   put ""&cr after tHtml
 end repeat
 put "" after tHtml
 return tHtml
end TabToHtmlTable







Hi Richard,


Thank you, the function above does exactly what  I need

but for question 1)
I don't master the POST comand

I've hav read it in the dictionary
but I cannot send the file on my webserver

Can you please give me an example ?


Let's say my name is "yves" and my password is "1234"
The variable containing the data to save is in a script of a revlet
I first transform my data(in the variable) with the function above

How can I create a file on the server using the post command with the  
variable data transformed in HTML ?



Thanks.


Greetings.

Yves COPPE
yvesco...@skynet.be

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


Re: Revlet save a txt file

2009-07-26 Thread Richard Gaskin

Yves COPPE wrote:


Le 26-juil.-09 à 19:51, Richard Gaskin a écrit :


Yves COPPE wrote:

1) how can I save the txt file on my personal web site  (it is not  
a  rev-server)

...

but for question 1)
I don't master the POST comand

I've hav read it in the dictionary
but I cannot send the file on my webserver

Can you please give me an example ?


This function can be used in a CGI to read incoming data and put it into 
 an array you can use later to obtain elements by name:


on _cgiGetInput
  if "dev" is in the environment then
-- testing locally:
put gLocalTestInput into tBuffer
  else
put empty into tBuffer
if $REQUEST_METHOD is "POST" then
  -- POST:
  repeat until (len(tBuffer) >= $CONTENT_LENGTH)
read from stdin until empty
put it after tBuffer
  end repeat
  --
else
  -- GET:
  put $QUERY_STRING into tBuffer
end if
--
  end if
  put tBuffer into gCGIDataInA
  split gCGIDataInA by "&" and "="
end _cgiGetInput

I wrote it to use either the GET or POST method, and regardless which 
one it uses it puts the data into the global array gCGIDataInA.


On the web data is often sent via POST using forms.  So if you have a 
form element containing your data whose value was "MyData", in the CGI 
you can get that data like this:


global gCGIDataInA

on startup
  _cgiGetInput
  put gCGIDataInA["MyData"] into tData
  --- do whatever else you need with that...
end startup

Since you're sending the data from a stack rather than from a web form, 
all you need to do is package the data in the standard format, in which 
the data is set up in name-value pairs, where the name and value are 
separated by "=" and the pairs are separated with "&", e.g.:


  MyData=SomeData&MyOtherData=MoreData

Rev makes sending this to the CGI a convenient one-liner:

  post tData to url tCgiUrl

...where tData contains whatever data you want sent to the CGI, and 
tCgiUrl is the url to your CGI, e.g.:


  http://fourthworld.net/cgi-bin/revnet.cgi


For general info on getting started with Rev CGIs, check out Jacque's 
excellent tutorial:



It may take some experimentation to get things working well, but once 
you do you'll have a really wonderful time with all the possibilities it 
opens up.


RevNet contains examples of some of this stuff, such as the Feedback 
form, which is just a stack that uses some handlers like 
revnetSubmitForm stored in a backscript named RevNet_BS".  You can find 
RevNet in your Rev install in the menus at 
Development->Plugins->GoRevNet.  You're welcome to use any scripts there 
you find handy.


--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Revlet save a txt file

2009-07-26 Thread Yves COPPE


Le 26-juil.-09 à 21:07, Richard Gaskin a écrit :


Yves COPPE wrote:


Le 26-juil.-09 à 19:51, Richard Gaskin a écrit :

Yves COPPE wrote:

1) how can I save the txt file on my personal web site  (it is  
not  a  rev-server)

...

but for question 1)
I don't master the POST comand
I've hav read it in the dictionary
but I cannot send the file on my webserver
Can you please give me an example ?


This function can be used in a CGI to read incoming data and put it  
into  an array you can use later to obtain elements by name:


on _cgiGetInput
 if "dev" is in the environment then
   -- testing locally:
   put gLocalTestInput into tBuffer
 else
   put empty into tBuffer
   if $REQUEST_METHOD is "POST" then
 -- POST:
 repeat until (len(tBuffer) >= $CONTENT_LENGTH)
   read from stdin until empty
   put it after tBuffer
 end repeat
 --
   else
 -- GET:
 put $QUERY_STRING into tBuffer
   end if
   --
 end if
 put tBuffer into gCGIDataInA
 split gCGIDataInA by "&" and "="
end _cgiGetInput

I wrote it to use either the GET or POST method, and regardless  
which one it uses it puts the data into the global array gCGIDataInA.


On the web data is often sent via POST using forms.  So if you have  
a form element containing your data whose value was "MyData", in the  
CGI you can get that data like this:


global gCGIDataInA

on startup
 _cgiGetInput
 put gCGIDataInA["MyData"] into tData
 --- do whatever else you need with that...
end startup

Since you're sending the data from a stack rather than from a web  
form, all you need to do is package the data in the standard format,  
in which the data is set up in name-value pairs, where the name and  
value are separated by "=" and the pairs are separated with "&", e.g.:


 MyData=SomeData&MyOtherData=MoreData

Rev makes sending this to the CGI a convenient one-liner:

 post tData to url tCgiUrl

...where tData contains whatever data you want sent to the CGI, and  
tCgiUrl is the url to your CGI, e.g.:


 http://fourthworld.net/cgi-bin/revnet.cgi


For general info on getting started with Rev CGIs, check out  
Jacque's excellent tutorial:



It may take some experimentation to get things working well, but  
once you do you'll have a really wonderful time with all the  
possibilities it opens up.


RevNet contains examples of some of this stuff, such as the Feedback  
form, which is just a stack that uses some handlers like  
revnetSubmitForm stored in a backscript named RevNet_BS".  You can  
find RevNet in your Rev install in the menus at Development->Plugins- 
>GoRevNet.  You're welcome to use any scripts there you find handy.








Re,

thank you very much

I will try after reading the tuto of Jacque


Greetings.

Yves COPPE
yvesco...@skynet.be

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


revMedia revlet demo

2009-07-26 Thread Bruce Pokras
It is amazing to see a stack, even a simple one, working in a web  
page (or maybe I am too easily impressed). I had been working on a  
simple app to collect patent family information from a list of  
patents. It uses Simple Open Access Protocol (SOAP) to query a  
European Patent Office server which then returns a list of patents or  
applications that are related to a patent in some way (i.e., a patent  
"family"). I have been calling it Family-izer.


Since Family-izer is a simple stack (a field for the patent numbers,  
a field for the returned patent families, and a couple of buttons), I  
decided to see how it would work using the webRev plugin. I was not  
sure if there would be issues with this internet query and response  
system, but it works GREAT! To see it in action, go to http:// 
www.blazingdawn.com/demo/family-izer.html.


So far it works f ine in Safari and Firefox on the Mac (it does not  
work with Sea Monkey), and with Firefox on a Windows XP laptop. I  
apparently could not get the plugin to install properly for Internet  
Explorer on the Win XP laptop. Even though there were no error  
messages during the installation, Internet Explorer keeps showing the  
"you need to download the plugin" message. Rebooting after the  
installation did not help. If anyone has encountered this and found a  
way around it, please let me know. I do not have admin privileges on  
the Win XP laptop, so I am wondering if that is the problem. However,  
that did not prevent Firefox from working.


Regards,

Bruce Pokras
Blazing Dawn Software
mac-sta...@kagi.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Edward D Lavieri Jr

Richard,

This is a great explanation. Are Flash apps subject to the browers'  
"fairly extensive event loops" as well, or has Adobe overcome that  
somehow? It is interesting to see how the two products match up.


Ed

Edward Lavieri
ID Leaders



On Jul 26, 2009, at 1:44 PM, Richard Gaskin wrote:


James Hurley wrote:

I have uploaded an old stack of mine which is both calculational  
and  graphic-display intensive, my old Nine Ball simulation:

go url "http://jamesphurley.com/NineBallWithSpin.rev";
As I suspected from both Richard's and Sarah's findings that the   
calculational parts (calculating the positions and velocities of  
all  the balls and determining the new positions and velocities  
aftercollisions) run very well in Safari. But the motion of the  
balls is  very stuttered. It runs at full speed, that is it takes  
the same time  to execute one "shot" but the motion of the balls is  
herky-jerky.


My guess is this is related to the browser's event loop.

When running in a standalone, there's only the Rev engine's event  
loop and those of whatever other apps and OS components are running.


But when running in the browser you have all of that plus the  
browser's own fairly extensive event loop.


I suspect with all of the events browsers need to trap, dispatch,  
and handle, what you're seeing is just a natural by-product of  
running inside the browser.


--
Richard Gaskin
Fourth World
Revolution training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread James Hurley


Message: 6
Date: Sun, 26 Jul 2009 11:21:06 +1000
From: Sarah Reichelt 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

On Sun, Jul 26, 2009 at 1:48 AM, James Hurley> wrote:


(SNIP)




As regards the odd URL, in the standalone settings, I recommend
entering a name for the revlet with no spaces or other odd characters.
When you build the revlet, you get 2 files: the revlet file and a
test.html file. Rename the test.html file if you want and then upload
them both into the same folder of your on-rev site. Then the web
address will be: http://yourname.on-rev.com/foldername/test.html
(filling in the blanks as appropriate).

Cheers,
Sarah


Sarah,

Your recipe for putting a stack on the web worked like a charm. Thanks!

Unfortunately, if Richard is right about the bumpy behavior being   
"natural by-product of running inside the browser" , it does not look  
good for porting games to a revlet.

Take a look at Nine Ball on the web:

http://jamesphurley.on-rev.com/NineBall/test.html

Not good at all.

Jim Hurley





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


Filter by Item and What gives with my field?

2009-07-26 Thread Tom Cole

Dear Group,

I have two items that I hope someone can help on. One is very  
straightforward: I need to filter a field by the items.
That is, I have a field with zillions of records with four items  
(comma delimited)


itemone,itemtwo,itemthree,itemfour

I want itemfour to disappear after I put the field into a variable.  
The problem is that item four is never the same, so I can't filter by  
a specific string. I'm sure there must be a way to just have all of  
item four go poof.


Second, I have a field that is full of TAB delimited records like this:

Southern Arizona Trip TAB 5/27/1973 TAB This was the trip when we got  
two flat tires in the middle of nowhere.


Just three items each. Sometimes, however, item three is a whole ten- 
page essay with paragraph returns but no tabs of course.


When I pasted all of these records in a field, not everything appears  
there if you scroll through it. However, if you script: answer fld  
journal, you see the complete version. If you copy the journal field  
to the clipboard it is also complete. But you cannot SEARCH the field  
for the things in it because they're hidden. Is there some field  
property that is truncating the field in various places? I feel that I  
am back to hypercard with the 30,000 character limit. What gives?


I want to see all of the stuff I wrote without copying it and pasting  
it somewhere. It's so strange to see only a small part of what you  
wrote and then to copy the text and find that it is, indeed, there.


Thanks,
Tom


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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread stephen barncard
NINE BALL looks and works great here.  Mac G5 dual 2.5 ghzAwesome
ballistics and graphics.

-
Stephen Barncard
San Francisco
http://barncard.com


2009/7/26 James Hurley 

>
>>
> Unfortunately, if Richard is right about the bumpy behavior being  "natural
> by-product of running inside the browser" , it does not look good for
> porting games to a revlet.
> Take a look at Nine Ball on the web:
>
> http://jamesphurley.on-rev.com/NineBall/test.html
>
> Not good at all.
>
> Jim Hurley
>
>
>
>
>
>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Mark Smith
Also here, on 2.2Ghz intel PB/Safari...apart from the first shot when  
the plug-in is first loaded.


Best,

Mark

On 27 Jul 2009, at 00:28, stephen barncard wrote:


NINE BALL looks and works great here.  Mac G5 dual 2.5 ghzAwesome
ballistics and graphics.

-
Stephen Barncard
San Francisco
http://barncard.com


2009/7/26 James Hurley 





Unfortunately, if Richard is right about the bumpy behavior being   
"natural

by-product of running inside the browser" , it does not look good for
porting games to a revlet.
Take a look at Nine Ball on the web:

http://jamesphurley.on-rev.com/NineBall/test.html

Not good at all.

Jim Hurley






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


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

http://lists.runrev.com/mailman/listinfo/use-revolution


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


Re: [revlets] drag & drop files onto revlet does not seem to work!?

2009-07-26 Thread Sarah Reichelt
On Sun, Jul 26, 2009 at 10:13 PM, Robert M. wrote:
>
> I wanted to test shell access cause I need to use lameEncoding, and tried to
> turn the "lameEncode.rev" (who is the author by the way?) into a revlet. The
> app requires to drop the files to be coded onto an area and same for the
> output folder.  Of course all works fine in the IDE
>
> But on revlet :
> -- the output folder is just not recognized as a drag & drop
> -- the input file is accepted, I beleive by the browser that seem to
> "overtake" opérations even over the revlet area. So the audio file
> recognized by the browser replaces the revlet!!


Kevin has stated that drag & drop will not work yet in revlet, until
native mode (opening a revlet in it's own window) is implemented.

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Mark Wieder
Jim-

Here as well, Firefox on OSX Leopard intel and Firefox XP.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

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


Re: Load Screen

2009-07-26 Thread Sarah Reichelt
On Sun, Jul 26, 2009 at 11:02 PM, Edward D Lavieri Jr wrote:
> Does anyone know if, after 4.0 is released, we will be able to customize the
> plug-in's splash/install screen? My assumption is that this will not be
> permitted, but it would be nice to confirm.

I very much doubt that the installer would be customizable since that
will be provided by RunRev.

I think the splash screen will be customizable, but this may only be
for revEnterprise and not for revMedia.
In the standalone settings for building for web, there is an option
for custom load icon.
And I haven't tested this, but I am assuming it alters the revlet
loading screen.

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Terry Judd
On 27/07/09 9:39 AM, "Mark Smith"  wrote:

> Also here, on 2.2Ghz intel PB/Safari...apart from the first shot when
> the plug-in is first loaded.

This was my experience also - first shot was really jerky but the rest were
smooth and fast.

Terry...

> 
> Best,
> 
> Mark
> 
> On 27 Jul 2009, at 00:28, stephen barncard wrote:
> 
>> NINE BALL looks and works great here.  Mac G5 dual 2.5 ghzAwesome
>> ballistics and graphics.
>> 
>> -
>> Stephen Barncard
>> San Francisco
>> http://barncard.com
>> 
>> 
>> 2009/7/26 James Hurley 
>> 
>>> 
 
>>> Unfortunately, if Richard is right about the bumpy behavior being
>>> "natural
>>> by-product of running inside the browser" , it does not look good for
>>> porting games to a revlet.
>>> Take a look at Nine Ball on the web:
>>> 
>>> http://jamesphurley.on-rev.com/NineBall/test.html
>>> 
>>> Not good at all.
>>> 
>>> Jim Hurley
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>> 
>> ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Filter by Item and What gives with my field?

2009-07-26 Thread Sarah Reichelt
> I have two items that I hope someone can help on. One is very
> straightforward: I need to filter a field by the items.
> That is, I have a field with zillions of records with four items (comma
> delimited)
>
> itemone,itemtwo,itemthree,itemfour
>
> I want itemfour to disappear after I put the field into a variable. The
> problem is that item four is never the same, so I can't filter by a specific
> string. I'm sure there must be a way to just have all of item four go poof.

   set the columnDelimiter to comma
   split tData by column
   delete variable tData[4]
   combine tData by column


> Second, I have a field that is full of TAB delimited records like this:
>
> Southern Arizona Trip TAB 5/27/1973 TAB This was the trip when we got two
> flat tires in the middle of nowhere.
>
> Just three items each. Sometimes, however, item three is a whole ten-page
> essay with paragraph returns but no tabs of course.
>
> When I pasted all of these records in a field, not everything appears there
> if you scroll through it. However, if you script: answer fld journal, you
> see the complete version. If you copy the journal field to the clipboard it
> is also complete. But you cannot SEARCH the field for the things in it
> because they're hidden. Is there some field property that is truncating the
> field in various places? I feel that I am back to hypercard with the 30,000
> character limit. What gives?

A couple of things:

If you want to keep one record per line, you will need to replace the
returns in item 3 with something else.
Use a single weird character or *CR* or whatever you like. Then you
can replace it back again for viewing & editing.

Fields have a maximum number of characters per line - I think it is 65535.
After that, you will start seeing weird things happening to the
display, although as you say, the data is still there.
The best solution is to store the data in a custom property instead of
a field and have the data for a single record displayed in 3 different
fields when required. If the third item still ends up with lines
longer than 65535 it may not matter if the field wraps. If it still
does mess up the display, then you might have to add some extra
returns when displaying it.

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


Re: Load Screen

2009-07-26 Thread Terry Judd
Perhaps one way around this would be to pre-warn users that that will have
to deal with a security dialog. It adds another layer of complexity to the
page design but at least you have some control over what the user will see
and influence how they will react once the dialog actually appears.

Terry...


On 27/07/09 10:06 AM, "Sarah Reichelt"  wrote:

> On Sun, Jul 26, 2009 at 11:02 PM, Edward D Lavieri Jr wrote:
>> Does anyone know if, after 4.0 is released, we will be able to customize the
>> plug-in's splash/install screen? My assumption is that this will not be
>> permitted, but it would be nice to confirm.
> 
> I very much doubt that the installer would be customizable since that
> will be provided by RunRev.
> 
> I think the splash screen will be customizable, but this may only be
> for revEnterprise and not for revMedia.
> In the standalone settings for building for web, there is an option
> for custom load icon.
> And I haven't tested this, but I am assuming it alters the revlet
> loading screen.
> 
> Cheers,
> Sarah
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Sarah Reichelt
> I am puzzled, Sarah, when you say that the mouseMove stack works at full
> speed and then you say that it is not great. (And you speak of the torch.
> Did you mean the winter scene of my barn?) Maybe you mean it runs at full
> speed but is bumpy? Did you find the torch image breaking up into two pieces
> as you dragged it?

Sorry, that was me not making myself clear :-(

The stack where you drag an image around worked perfectly for me.

The rainbow stack still did not work, even after numerous attempts to
improve it's speed.
The torch I was referring to was the torch/flashlight in the rainbow
stack and yes, I did find it broke into pieces and the moving text
field that showed the angle also tended to leave artifacts behind. If
I moved the mouse very slowly this didn't happen.

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


Re: Filter by Item and What gives with my field?

2009-07-26 Thread Mark Wieder
Tom-

Sunday, July 26, 2009, 4:23:36 PM, you wrote:

> I want itemfour to disappear after I put the field into a variable.
> The problem is that item four is never the same, so I can't filter by
> a specific string. I'm sure there must be a way to just have all of
> item four go poof.

I'm a bit caffeine-deprived today, so I can't think of how to do this
in a single line of code. I'd go with the obvious:

put field "someField" into tTempVar -- for speed
repeat for each line tLine in tTempVar
  put item 1 to 3 of tLine & cr after tVar
end repeat

Hopefully someone else will come up with something more clever.

> Second, I have a field that is full of TAB delimited records like this:

Maybe check the dontWrap of the field?

-- 
-Mark Wieder
 mwie...@ahsoftware.net

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Sarah Reichelt
> Your recipe for putting a stack on the web worked like a charm. Thanks!

Cool :-)


> Unfortunately, if Richard is right about the bumpy behavior being  "natural
> by-product of running inside the browser" , it does not look good for
> porting games to a revlet.
> Take a look at Nine Ball on the web:
>
> http://jamesphurley.on-rev.com/NineBall/test.html

Works great here. No lag even on the first shot.
Mac 10.5.7, Safari 4.

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


Trapping for Return, Enter, Escape, and Delete

2009-07-26 Thread Bill Vlahos
This works on my MacBook Pro but I don't know how general a solution  
it is for other Macs, Windows, or Linux.


on rawKeyUp keyCode
   if keyCode = 65293 or keyCode = 65421 then send mouseUp to button  
"Select" -- Return or Enter

   if keyCode = 65307 then send mouseUp to button "Cancel" -- Escape
   if keycode = 65288 then send mouseUp to button "Clear" -- Delete
end rawKeyUp

I'm not trying to trap for keystrokes in a field as there is no field  
only several buttons.


Is this a good general approach or is there a better way?

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


Re: Filter by Item and What gives with my field?

2009-07-26 Thread Mark Wieder
Sarah-

Sunday, July 26, 2009, 5:22:50 PM, you wrote:

>delete variable tData[4]

! That was the part I couldn't come up with...

The only danger with this is that the first three items in each line
have to define a unique key - any duplicates will be dropped, but
that's the array-based approach I was aiming for.

-- 
-Mark Wieder
 mwie...@ahsoftware.net

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


Re: Trapping for Return, Enter, Escape, and Delete

2009-07-26 Thread Sarah Reichelt
On Mon, Jul 27, 2009 at 10:36 AM, Bill Vlahos wrote:
> This works on my MacBook Pro but I don't know how general a solution it is
> for other Macs, Windows, or Linux.
>
> on rawKeyUp keyCode
>   if keyCode = 65293 or keyCode = 65421 then send mouseUp to button "Select"
> -- Return or Enter
>   if keyCode = 65307 then send mouseUp to button "Cancel" -- Escape
>   if keycode = 65288 then send mouseUp to button "Clear" -- Delete
> end rawKeyUp
>
> I'm not trying to trap for keystrokes in a field as there is no field only
> several buttons.
>
> Is this a good general approach or is there a better way?


This looks fine although I am not 100% sure that the key codes are the
same in every platform.
However one crucial thing you must do is add a "pass rawKeyUp" line
for when you have not trapped the key. Otherwise none of the other
keys will ever work.
I guess if you have no fields this is not such an issue but no
keyboard shortcuts would work either I expect.

on rawKeyUp keyCode
  if keyCode = 65293 or keyCode = 65421 then
  send mouseUp to button "Select" -- Return or Enter
  else if keyCode = 65307 then
  send mouseUp to button "Cancel" -- Escape
  else if keycode = 65288 then
 send mouseUp to button "Clear" -- Delete
  else
 pass rawKeyUp
  end if
end rawKeyUp

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


Fields appearance

2009-07-26 Thread Bill Vlahos
Is there a way to modify the appearance of a field beyond what I can  
do in the properties?


For example, I'd like to round the corners of the field. The only way  
I know how to do it is to put a graphic over the field that has  
rounded corners but that seems pretty tedious and clunky.


The look of the fields seems a bit dated so I'd like to dress them up.

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread Andre Garzia
works great here, safari on mac os 10.5 intel core 2 duo


On Sun, Jul 26, 2009 at 9:31 PM, Sarah Reichelt wrote:
>> Your recipe for putting a stack on the web worked like a charm. Thanks!
>
> Cool :-)
>
>
>> Unfortunately, if Richard is right about the bumpy behavior being  "natural
>> by-product of running inside the browser" , it does not look good for
>> porting games to a revlet.
>> Take a look at Nine Ball on the web:
>>
>> http://jamesphurley.on-rev.com/NineBall/test.html
>
> Works great here. No lag even on the first shot.
> Mac 10.5.7, Safari 4.
>
> Sarah
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



-- 
http://www.andregarzia.com All We Do Is Code.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Fields appearance

2009-07-26 Thread Terry Judd
On 27/07/09 1:49 PM, "Bill Vlahos"  wrote:

> Is there a way to modify the appearance of a field beyond what I can
> do in the properties?
> 
> For example, I'd like to round the corners of the field. The only way
> I know how to do it is to put a graphic over the field that has
> rounded corners but that seems pretty tedious and clunky.

Its still a hack, but you could use a graphic object rather than an image.
If you're after rounded corners then the rounded rectangle objects look
pretty good as long as you have antialiasing on and you can easily resize
and customize them (line colour, thickness etc). I'm sure you use this
approach to create a generic 'rounded' field object using parent scripts.

Terry...

> 
> The look of the fields seems a bit dated so I'd like to dress them up.
> 
> Bill Vlahos
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution

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


Re: Any thoughts on speed limitations of Revlet?

2009-07-26 Thread James Hurley


Message: 6
Date: Sun, 26 Jul 2009 11:21:06 +1000
From: Sarah Reichelt 
Subject: Re: Any thoughts on speed limitations of Revlet?
To: How to use Revolution 
Message-ID:

Content-Type: text/plain; charset=ISO-8859-1

On Sun, Jul 26, 2009 at 1:48 AM, James Hurley> wrote:


(SNIP)




As regards the odd URL, in the standalone settings, I recommend
entering a name for the revlet with no spaces or other odd  
characters.

When you build the revlet, you get 2 files: the revlet file and a
test.html file. Rename the test.html file if you want and then upload
them both into the same folder of your on-rev site. Then the web
address will be: http://yourname.on-rev.com/foldername/test.html
(filling in the blanks as appropriate).

Cheers,
Sarah


Sarah,

Your recipe for putting a stack on the web worked like a charm.  
Thanks!


Unfortunately, if Richard is right about the bumpy behavior being   
"natural by-product of running inside the browser" , it does not  
look good for porting games to a revlet.

Take a look at Nine Ball on the web:

http://jamesphurley.on-rev.com/NineBall/test.html

Not good at all.

Jim Hurley


 I restarted my computer and Voila, it is a whole new ball game. It  
runs much more smoothly--surprisingly well in fact. Don't know what  
happened with the restart.


Only problem was I have to slow it down now. It ran much too fast.  
That was best done by adding another preference.


Set the Fast/Slow speed to about 45 and the Short/Long roll to .998

The new web url is

http://jamesphurley.on-rev.com/NineBall2/test.html


Note the 2.

This resolves the Nine Ball app, but not the Rainbow app. In that app,  
the torch graphic breaks up as I drag it.


Sarah: Should I report this and where to and in what form? The  
original RunRev desktop stack?


Jim Hurley







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


Windows font sizes

2009-07-26 Thread Bill Vlahos
Windows has a feature that lets the user make their fonts 3 different  
sizes to make the "normal" font bigger. This allows them to have high  
resolution displays but make the text large enough to see.


Some programs handles this well and others don't. When a program  
doesn't handle it the text is bigger but no longer fits in the field  
dimensions.


How do Rev folks handle this? It needs to work on Mac and Linux.

Issues I see are not only making the fields taller and wider to  
accommodate the bigger size but perhaps even moving around the  
arrangement. This seems difficult at best. Perhaps someone has come up  
with an easy way to handle it.


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