Re: Opening Word

2004-09-29 Thread Thomas W.J.C. McCrystal
>Anyone know if it is possible to open a Microsoft Word document to a >specific line, anchor, or page via LINGO? I'm concerned mostly with >doing this on the Windows platform. On the Mac side, you could do this with an ApplesScript. [To remove yourself from this list, or to change to digest mode,

Re: resourceid reserved word?

2004-09-28 Thread Thomas W.J.C. McCrystal
>Anyone else experience this? Seems like this would be a logical choice for >a reserved word... but can't find any evidence of it. I can find evidence against it. I just typed: put symbol("RESOURCEID") and got: -- #RESOURCEID >Never, EVER depend upon the capitalization of #symbols. Sage advic

Re: Buddy API

2004-09-18 Thread Thomas W.J.C. McCrystal
>I told my wife that when I get a G5 in the new year I was going to get >the 30" screen, but she vetoed the idea saying I could not have a >monitor larger than her TV :-) Wow. Time for a new wife... [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com

Re: LDM's and TELL is NOT obsolete whatever MM says

2004-09-13 Thread Thomas W.J.C. McCrystal
>thats just lazy/bad application development I've spent the last hour trying to decide how intemperate my language should be, considering the collegial nature of this list. Oh, well, here goes: Evil, you're full of shit on this one. I know a goodly number of the Director team, and can truthful

Re: Storing information between projector sessions: setPref, Buddy WriteINI or something else?

2004-09-08 Thread Thomas W.J.C. McCrystal
>However I was going to use getPref and setPref to do this, but I'm not 100% >sure on exactly where Director will save the text files generated by this >method, or if such a default location will be accessible on all machines >(both PC and Mac) it runs on. If you're doing a projector, the fileIO xt

RE: locH limits

2004-09-07 Thread Thomas W.J.C. McCrystal
>I've gotten around the problem pretty easily. I'm attaching a script to >each of my event sprites, and it calculates its theoretical locH. When >the time line window gets close to its location, it places itself. Winning ugly is still winning. Nice hack. [To remove yourself from this list, or to c

Re: Cast window icons

2004-08-31 Thread Thomas W.J.C. McCrystal
>When I view the cast in list mode the icons which used to be down the >left hand side are no longer there. I think this happened when I >upgraded to OS 10.3 from 10.2 but am not absolutely sure. I can live >without the icons but they were convenient things to have and I would >prefer to have t

RE: Getting Flash and Director to talk profusely

2004-08-23 Thread Thomas W.J.C. McCrystal
>IN the opposite direction, as you say, you can use getURL("lingo:lingo>") or my preference which is getURL("event:handlerName") which fires >handlerName() on behaviours attached to the Flash sprite. Or, you can just use: getURL(someParameter, andMoreParametersIfYouWant). This syntax calls a getU

RE: OOP: shortest handler name

2004-08-05 Thread Thomas W.J.C. McCrystal
>Its fine so long as you don't need the script reference for anything. >If it needs to get properties from the behavior/script or needs a >script reference then you need the "me" Actually, this is a good way to create pseudo-private functions within a parent script. If you omit the "me", you can c

RE: Sprite Toolbar vs PI

2004-07-27 Thread Thomas W.J.C. McCrystal
>We'll be disappointed. Again. What? Are the Red Sox going to be in the World Series in 2007? [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Li

RE: dual monitor projector?

2004-06-23 Thread Thomas W.J.C. McCrystal
>I can independently configure size, colour depth or positioning, and >synchronize them all too. So, I think was was meant by "overtaken" was: "finally caught up with"... [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages t

Re: autoTAB

2004-06-09 Thread Thomas W.J.C. McCrystal
>I found that whacking the sprite().editable OFF, updateStage & back >on just prior to switching to a given sprite helped I generally only leave one member editable, switching the property at the same time that I switch the keyboardFocusSprite. It eliminates all weirdness, and no updateStage is re

Re: [x-post] A Common Question - Director & XML/Web Services

2004-06-04 Thread Thomas W.J.C. McCrystal
>I work on too many legacy projects and don't see many clients >willing to pay for syntax changes any time soon. You know that scriptExecutionStyle is dynamically setable, right? If you're updating a pre-D10 project, you can set that to 9 in startMovie, then flip it to 10 and back when you want to

Re: Verbose vs Dotose

2004-06-03 Thread Thomas W.J.C. McCrystal
> >Thomas W.J.C. McCrystal: >> _movie.castLib[1].member[1].name > >I wonder how do I know when should I be using square brackets instead of >round ones? I've already checked up in the Lingo Dictionary of MX04 release >on page 101 that I can reference to the castLib by

Re: Verbose vs Dotose

2004-06-02 Thread Thomas W.J.C. McCrystal
>I get an error using this: > >put(castLib(1).member(1).name) Try: _movie.castLib[1].member[1].name [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]

Re: flash/director

2004-05-15 Thread Thomas W.J.C. McCrystal
>Ancient Director Lore tells us to never do anything important in frame one. This is true. The last time I did something important in frame one, I got shelled for 21 goals the next day. (That's actually a true story...) As an "early in the application" aside, startMovie is a bad place to instantia

Re: Dynamic Flash Sprite

2004-05-03 Thread Thomas W.J.C. McCrystal
>I'm creating a Flash sprite at runtime, but it's crashing with "handler >not found in object" when I issue a goToFrame command. It's a silly thing, but are you sure that you're passing strings to flash? I've seen this error when I passed a symbol or integer by accident. [To remove yourself from th

Re: charToNum() on very large string

2004-05-01 Thread Thomas W.J.C. McCrystal
>I added this to your routine: As usual, Colin is a stud. Adding Colin's elegant delete by word to my test code gives: -- "Walk: 14175" -- "Delete: 9222" -- "Delete Words: 1909" I'm still in the habit of following the "always operate at the head of a string" rule, because when processors were a

Re: charToNum() on very large string

2004-05-01 Thread Thomas W.J.C. McCrystal
>A minor improvement might be the following: > >cnt = reallyBigString.length >repeat with i = 1 to cnt >myCodeList.append(charToNum(reallyBigString.char[i]) >end repeat A major improvement is to do all your work on char 1, then delete it as you go: on test parentString = member("test string