Re: Loading Application into Memory
On 8/27/06, Steven Axtell <[EMAIL PROTECTED]> wrote: I am writing a textbook-like application that consists of text and JPEG figures. The total size of the application is about 500 KB. When I launch the application, the first card comes up fast. When I select a button to bring up a second card, there is a fair amount of delay (about 2 seconds on a Windows Pentium III, 1 GHz, 512 MB machine) before the second card comes up. It's as though the application is loading into memory at that time. After that, all of the cards come up fast. What can I do to get the application to load into memory at launch? Also, what would I need to do to show a card briefly while the application is loading into memory? The mail application file will load into memory before showing the first card. If you have a very big app, the way around this is to have separate stack files for you sub-stacks, so that they load as needed and not all at once. Your problem sounds like something is happening when you go to the second card. Does the first card have a "closeCard" handler? Does the second card have a "preOpenCard" or "openCard" handler? To test, try locking messages and then going to the second card. If that is fast, then you have something happening - perhaps loading an image file. You may be able to delay it until after the second card is displayed. 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
revolution player vs. stackrunner & launching documents
Hi, dear Revolution cognoscenti, I need your help with some development I'm doing. I'm an instructor, and have been using Revolution Studio (2.7.2) on a Mac with the latest OS to develop some language learning materials that I will distribute to students. The students will be using both windows and macs. In the past, I've been very successful in using StackRunner to distribute things, and it's worked better than the Revolution Player in the past -- meaning that more people were able to run my stacks with StackRunner than the Rev Player, perhaps because SR is "cleaner," as it says on the Sons of Thunder webpage. Some people seem to have _ancient_ Windows computers that choke on nearly everything. But now I've run into a small problem -- StackRunner doesn't seem to be able to implement the "launch document" command (I assume some library isn't available), and I want to use that to provide students with access to millions of pdfs. I notice that the Player _does_ allow use of "launch document." So here's my question: 1. What's the status of the Rev Player -- is it robust, and is it likely the bulk of your typical student community of Windows users will be able to use it to play my stacks (the only real demand is that they use lots of sound, but I've no problem with sounds testing with StackRunner on Windows? 2. Is there some other way to launch documents that _is_ likely implemented in StackRunner? Thanks so much for any comments. rand valentine ___ 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: finding repeating patterns
All, Does anyone have (or know of) an algorithm to find repeating patterns of characters in a string ? This started out as a mental exercise for moi, and the mouseUp logic is untested: on mouseUp put field 1 into sourceString put empty into patternList put 6 into minPatternLength -- or whatever put length(sourceString) div 2 into maxPatternLength -- pattern can't be longer than half the length if maxPatternLength < minPatternLength then exit mouseUp repeat with patternLength = maxPatternLength down to minPatternLength put ((length(sourceString) mod patternLength)-1)*patternLength into maxStartPosition -- pattern can't start within patterenLength-1 chars from end put patternLength - 1 into endAdjustment repeat with startingPoint = 1 to maxStartPosition set cursor to busy put startingPoint+endAdjustment into patternEnd put char startingPoint to patternEnd of sourceString into targetPattern if targetPattern is among the words of patternList then next repeat -- may need stronger checking? get the number of lines of offsets(targetPattern,char (patternEnd+1) to -1 of sourceString) if it > 0 then put targetPattern&&it&return after patternList end repeat end repeat put patternList end mouseUp OTOH, working on it led me to the following offsets function, which has been tested. function offsets targetString, sourceString put empty into offsetsList put 0 into offsetAdjustment put length(targetString)-1 into targetLengthAdjustment repeat get offset(targetString,sourceString) if it = 0 then return offsetsList put (it+offsetAdjustment) &return after offsetsList put it+targetLengthAdjustment into deleteCutoff delete char 1 to deleteCutoff of sourceString add deleteCutoff to offsetAdjustment end repeat end offsets Example: offsets("at","The cat in the hat smelled a rat where he sat.") returns 6 17 31 44 Note that the same logic can be applied to create lineOffsets, itemOffsets, and wordOffsets functions. Enjoy! -- Rob Cozens CCW, Serendipity Software Company "And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee." from "The Triple Foole" by John Donne (1572-1631) ___ use-revolution mailing list 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: finding repeating patterns
Here's my version: function getRepeatingPatterns tString,minLength,maxLength set the caseSensitive to true repeat with n = minLength to maxLength put empty into testString put 0 into charCount repeat for each char c in tString put c after testString get length(testString) if it < n then next repeat if it > n then delete char 1 of testString if space is in testString then next repeat -- optional if cr is in testString then next repeat -- optional add 1 to countArray[testString] end repeat end repeat repeat for each line L in the keys of countArray if countArray[L] > 1 then put L && countArray[L] & cr after countList end repeat delete char -1 of countList sort lines of countList return countList end getRepeatingPatterns On 26 Aug 2006, at 23:23, jbv wrote: for those interested, here's something much faster : on mouseUp set cursor to watch lock screen put fld 1 into myST put number of chars of myST into n put "" into myL set the casesensitive to true put 1 into k repeat while k<=1000 repeat with i=100 down to 6 put k+i-1 into b get char k to b of myST put myST into a replace it with "" in a put ((n - number of chars of a) / b) into c if c>=2 then put it & tab & c & cr after myL add b-1 to k exit repeat end if end repeat add 1 to k end repeat put myL end mouseUp ___ 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: revolution player vs. stackrunner & launching documents
On 8/27/06 11:46 AM, "rand valentine" <[EMAIL PROTECTED]> wrote: > But now I've run into a small problem -- > StackRunner doesn't seem to be able to implement the "launch document" > command (I assume some library isn't available) The problem, Rand, is that the "2.7" version of StackRunner was built with the 2.7.0 engine, and the "launch document" feature didn't arrive until 2.7.1. I'll rebuild a new version with 2.7.3 and upload it to the STS web site. Thanks for the prod in the back... ;-) Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: revolution player vs. stackrunner & launching documents
On 8/27/06 2:47 PM, "Ken Ray" <[EMAIL PROTECTED]> wrote: > The problem, Rand, is that the "2.7" version of StackRunner was built with > the 2.7.0 engine, and the "launch document" feature didn't arrive until > 2.7.1. I'll rebuild a new version with 2.7.3 and upload it to the STS web > site. Uh... It may be a day or so... Rev's no cooperating and the 2.7.3 version of SR doesn't run properly; I'll update you when it's ready... Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: OT: The passing of Pluto
The only "adds" I see at the bottom of your message are the ones that the Rev mailing list tacks on. Now mine, on the other hand... On Aug 25, 2006, at 2:27 PM, barryb@@libero..it wrote: While we all seem to be Ot abut place names , heres my bit. Yes London has practically always been called that. It was Londinos when the Romans arrived, they changed it to Lundinium and so on through the ages. But my favourite is a townlet near here in Northen Italy which the Romans knew by the lovely name of Argentia which makes you think of something silver. In the 16th century it was changed to Gorgonzola! As Shakespeare once wrote (I think) "A 'cheese' by any other name would smell as sweet" Oh! the adds at the bottom of my posts are not mine, that comes from using a free email provider and I didn't know until I saw it here. Barry ___ 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 ___ $0 Web Hosting with up to 200MB web space, 1000 MB Transfer 10 Personalized POP and Web E-mail Accounts, and much more. Signup at www.doteasy.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
[FR] [EN] Answer folder
Bonjour, J'utilise Revolution Studio 2.7.3 sur un MacBook et avec MacOS 10.4.7 en français. J'utilise dans le script d'un bouton la fonction "Answer folder". Dans l'environnement de développement, les boutons de la fenêtre de dialogue sont en français ("Nouveau dossier", "Annuler","Choisir"). Dans l'application, les boutons sont en anglais. Comment faire pour qu'ils soient en français ? S'agit-il d'un bug ? Merci pour votre aide. --- Hello, I use Revolution Studio 2.7.3 on a MacBook and with MacOS 10.4.7 in French. I use in the script of a button the function "Answer folder". In the environment of development, the buttons of the window are in French. In the standalone application, buttons are in English. How to make them in French? Is it a bug? Thank you for your help. ___ 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: u3: where to store data?
Hi Malte, I, too, want to WRITE to a specific folder on U3 drive (not a default documents directory). Let us know if you learn anything. -Chipp ___ 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: [EN] Answer folder
Hello Jérôme, In the application package of your Revolution application, following the path /Revolution/Contents/Resources you will find folders named French.lproj and German.lproj etc. Copy these folders over to the same location in your standalone application package and it should all work fine. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Convert HyperCard stacks with DIFfersifier. Download it at http:// differsifier.economy-x-talk.com Op 27-aug-2006, om 23:48 heeft Jérôme Rosat het volgende geschreven: Hello, I use Revolution Studio 2.7.3 on a MacBook and with MacOS 10.4.7 in French. I use in the script of a button the function "Answer folder". In the environment of development, the buttons of the window are in French. In the standalone application, buttons are in English. How to make them in French? Is it a bug? Thank you for your help. ___ 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: answer files with filter
On 8/25/06, Sarah Reichelt <[EMAIL PROTECTED]> wrote: Hi all, The "answer file" command usually gets me thoroughly confused, but this time, I'm not sure it is able to do what I want. I want to allow the user to select a text file, but it has to be a text file with a name like "Slot45.txt". The number will vary, but it has to start with "Slot" and have the ".txt". Is this possible? I can get it to limit to text files, but is it possible to limit the available files to only text files which start with "Slot"? Thanks for the replies, Sean & Rob. I need to keep the files as text files so they can be imported into a spreadsheet later, so a custom file type is not an option. I guess I'll build my own file selector. In the meantime I've gone the lazy way and allowed selection of any text file, with a file name check after selection to catch any non-matching files. Since it's only for in-house use (& mainly by me), this will be OK for now. Thanks, 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: Sending ArrowKey("down")
yep, that's exactly what I ended up doing... much more solid approach, slightly more verbose, But sometimes verbose is good: you can see what's happening setting the hilitedline of a fld makes more sense than than trying to emulate a system keyboard input event. got this now in that same fld. on tabkey if the shiftkey is down then saveCaption set the hilitedline of fld "fileList" to (gLastLine-1) send postimage to fld "fileList" else saveCaption set the hilitedline of fld "fileList" to (gLastLine+1) send postimage to fld "fileList" end if end tabkey Ken Ray wrote: Try: send "arrowKey" && quote & "down" & quote to fld "fileList" But personally if there is a better way, like to activate the same handler that is activated when "arrowkey down" is triggered, that would be best, IMHO... Ken Ray ___ 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: Play One Movie On Top of Another?
I sent you copy off list. Howard Bornstein wrote: Sorry, I couldn't get this to download from RevOnline. :-( ___ 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
ANN: StackRunner 1.5 Now Available
Just a quick note to let you all know that StackRunner has been updated to version 1.5 using the Rev 2.7.2 engine (Rev 2.7.3 could not be used because there is a significant bug in AppleEvents that prevents SR from operating). There are now Universal Binary, PowerPC and Intel Only builds in addition to the Windows build. Those needing OS 9 or Linux builds can still download StackRunner 1.3. You can download it here: http://www.sonsothunder.com/devres/revolution/downloads/StackRunner.htm A final reminder: StackRunner is to be used with Revolution Studio or Enterprise in order to simplify deployment of stacks. If you are using Revolution Media or Dreamcard, you need to use the Revolution Player (in fact, StackRunner cannot open stacks created in Revolution Media at all). Thanks! Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
[ANN] STS XML Library Version 2.0.3 Now Available
Version 2.0.3 of the STS XML Library is now available, and fixes a few bugs that were found in the previous version. For more information on what was fixed, please visit: http://www.sonsothunder.com/products/xmllib/xmllib_versionhistory.htm And if you don't know about the STS XML Library, you can take a look at what it does and how it compares with Revolution's XML DLL here: http://www.sonsothunder.com/products/xmllib/xmllib.htm Regards, Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution