RE: lingo-l BUDDY API BUG -- NOOOOOOOOOOO!!
Ha! Yes, I realize that was a ridiculous typo on my part. My bad. Wicked bad. However, there's still an issue with baCopyXFileProgress not being able to get at items more than 5 levels deep. Sometimes when I post, I do so hastily. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l _movie.go(stopsTheRestOfTheScripts)
Hi list... Why does _movie.go(someFrame) stop the rest of the scripts from executing? I want to execute a parent script method after having gone to a different frame (sprite span intact throughout the score movement). In the behavior stack, the behavior that calls the parent method won't execute after a _movie.go(). Any workarounds? Thanks, - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l BUDDY API BUG -- NOOOOOOOOOOO!!
Hi list... I just discovered a bug in Buddy API (WinXP): baFolderExists(whichFolder) *FAILS* if you're looking for a folder five deep. For instance: result = baOpenFile(F:\WIAB\assets\content\presentations\x\y,Normal) put result -- 33 (no error, opened fine.) result = baFolderExists(F:\WIAB\assets\content\presentations\x\y) put result -- 1 (FALSE ...Really? I just opened it with baOpenFile!) Anyone ever seen this? - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l BUDDY API BUG -- NOOOOOOOOOOO!!
Umm, well, maybe I should explain myself a bit clearer -- I'm really using baCopyXFileProgress, and for the source folder, 5 deep, it doesn't recognize that folder as existing. So it's then that I tested baOpenFile against baFolderExists. - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l script cast member not found -- bug?
Hi list... Anyone ever experience a script cast member not found error, when it's really there? My movie has a linked cast named functionality, which contains all my scripts. It also has a movie script with a prepareMovie handler that instances a parent script called the tools. Suddenly, when it gets to this line in the prepareMovie handler... gTools = script(the tools, functionality).new() It gets one line into the new() handler of the parent, and then errors script cast member not found. How does this happen? Debugging steps into that script, meaning it was found, but then it can't find it? - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l script cast member not found -- bug? Part II
...and I should note that a fix is to move my script the tools out of the functionality cast, into the internal cast, then back into the functionality cast. This seems to be a fix, but why? - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l script cast member not found -- bug?
Thanks, Irv. That sounds like a good solution. I'm relieved to know it's nothing much more serious. - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l HR in GPDL?
Hi list... Is it possible to insert a horizontal rule in a getPropertyDescriptionList dialog? I have so many inputs in one particular GPDL that it would be easier on the eyes if it could have some separators. Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l HR in GPDL?
Thanks Roymeo. - MM I've punted and made the #comment: Is this a Foo? RETURN Foo only below-- [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l buddyAPI's baCopyFileProgress hogs the computer
Hi list... I'm using baCopyFileProgress, and hiding the (WinXP) Copying files dialog. Instead, I'm using a custom Flash animation, which progresses based on the baCopyProgressUpdate movie script handler. The issue is that *all* lingo stops while it's copying (in my case, a 100MB file which takes time). Within my Flash copying... sprite, I have a Cancel button, but it doesn't register as clicked while copying is going on. In the baCopyProgressUpdate handler, I have: if( _mouse.clickOn = sprite(flashCopyingSprite)) then trace(Clicked cancel) ...but _mouse.clickOn doesn't even change. Anyone know of any workarounds? Thanks as always, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Re: buddyAPI's baCopyFileProgress hogs the computer
Thanks, for the info Roymeo. And I appreciate that it's the thought that counts. And thanks, Cole, for responding, too. - MM (which isn't much help (as I can't give these to you), I know). [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Runmode with respect to scriptExecutionStyle
Hi list... I want to find the runmode, so what would be better to use when the scriptExecutionStyle = 10: X = the runmode Or... X = _system.environmentPropList.runMode Does it actually matter? Regards, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Runmode with respect to scriptExecutionStyle
Thanks for the reply Tom. No matter what any Evil Kosh type goon says, you excel when it comes to this aspect of MACR's customer service. - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Detecting Media Player Version with Lingo
Thanks Bertil. Actually, I was wondering if there were any software packages out there that return a letter (instead of a number) for the first character of that string. Thanks for this excellent technique. Two lines of code, but it's really good to know this. Regards, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l baOpenFile(PowerPoint)...but play it
Thanks for the good point, Ross. I'll keep that in mind, because it did cross my mind that it's still editable as a ppt, but in this particular case, it happens to be no big deal. Best regards, Michael M. Good to hear but I would still recommend using the PPS file instead as the casual user (and some power users) do not know that this file can still be edited. With a PPT file you run the risk of an end user editing your presentation file. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Request for Shockwave 10 Content Proposals [was: RE: Lingo-l digest, Vol 1 #1344 - 15 msgs]
OK, I don't want to sound like a backseat driver here, but whatever is done, I'd suggest utilizing ink effects, 3D and image lingo. Hardly anyone sees that kind of stuff on the web, and the wow factor of a visually exciting piece could go a long way in helping to promote the player. - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l baOpenFile(PowerPoint)...but play it
Hi list... Is there any way (maybe a shell command?) to open a PowerPoint file, but have it play instead of just opening it in edit mode? Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l baOpenFile(PowerPoint)...but play it
Hi all... The ppt open parameter /s worked perfectly. Thanks everyone for the feedback. Much appreciated, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Sprite alpha?
Just curious...is tabSprite = sprite(pSpriteManager.mAllocateChannel()) referencing back the exact spriteNum it should be referencing? And/or, did you try ink=36? - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l simple prop list question
Hi all... How big can a property list actually be? Somewhere, I thought I read 32,000 characters. Is this about right? - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l All those DLLs
Hi list... How's everyone today? Regarding Dirapi.dll, Iml32.dl, msvcrt.dll and Tbrsrc.dll, is it better to have them sitting next to the projector or within the xtras folder? And regarding my DLLs for my onStage xtra, Proj.dll and OnStage.dll, I believe those go next to the projector, right? thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l All those DLLs
Onstage.dll and tbrscr.dll are OnStage xtras and go next to the projector. The other four I just put in the xtras folder, and no playback difference. Thanks, all. How's everyone today? Good. You? Fine, thanks! - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l All those DLLs
Tom: Thanks for the great answer. Slava: I develop on Windows, and everything that goes in my xtras folder goes inside a subfolder called pc, so that means an extra level into the xtras folder for my dlls, and it worked fine. Regards all, - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Get a Director variable value from within a swf sprite
Yeah, that's pretty much how to do it. I was kind of trying to avoid having a handler outside of the swf catch it, i.e., I only wanted to do it from one place, but this seems like the way to go. Thanks Kerry, as always. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Get a Director variable value from within a swf sprite
Hi all... Hope everyone's having a nice day. Is there a way for a swf sprite to get a variable value in a Director behavior via actionScript? In other words, something like this: var directorPropValueBroughtIntoTheSWF = getURL(giveMeTheDirectorPropertyValue); It's easy enough for the Director behavior to set a variable inside a swf sprite, but I'm looking to just get the value the other way. Regards, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Get a Director variable value from within a swf sprite
Hola Agustín...como esta, señor? Thanks...but not quite what I'm looking for. I have a function in a swf sprite that's called by Director. Here's a snippet: var theValue; do{ theValue = getURL(lingo: getValue \gTools.pProgress\); //where gTools is a parent object. //also tried: //theValue = getURL(lingo: return gTools.pProgress); } while(theValue == undefined); DON'T TRY THIS!!! It crashes Director! I've found that the flash--director communication is asynchronous. I need (theValue) in order to continue on within my actionscript function, and (thheValue) is a local variable in a handler in a Director parent object. I figured I could keep checking what the value was until the as code got it, then move on in the function. I just can't figure out the right syntax to do that. - Michael M. getURL(lingo:gYourGlobal=\someString\); [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Get a Director variable value from within a swf sprite
Thanks, Kerry. rant It's amazing. The most difficult part of my project is getting my silly little navigation controls to work properly. :-/ /rant Well, how about a little different approach. You could have Director call setVariable, and then all you would need to do in Flash would be to watch the variable. I could try that. I believe actionscript now has a watch() method. Or, you could do a getURL:Lingo call to a Director handler that would return the value of the variable. This is what I wasn't able to figure out the correct syntax for. I tried: var theVariable = getURL(lingo: return gTools.pString); var theVariable = return getURL(lingo: gTools.pString); var theVariable = getURL(lingo: return value(gTools.pString)); They didn't work. Oh well. Trudge on... Regards, - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Seeking Shockwave math website
Thanks all. www.exploreelearning.com was indeed the one I was thinking of. And www.jmckell is a close second of course. Best regards, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Seeking Shockwave math website
Hi list... Some time ago, I came across a really cool website that had lots of math lessons done in Shockwave. Of course, I don't remember the URL. Sound familiar to anyone? Thanks, - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Return value for open command...WAS: Open a specific page within a pdf
Thanks, Bertil, for the excellent responses yesterday. Just one further question: When using the open command, is there a way to error check to see if it successfully opened? In other words: result = baOpenFile(...) put result -- 0 But... result = open xyz -- errors - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Return value for open command...WAS: Open a specific page within a pdf
Brilliant, Bertil. Very much appreciated! - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Return value for open command...WAS: Open a specific page within a pdf
Yes, I knew that. Fortunately, I work for a company where *the whole world* has Acrobat 6, XP, IE6...etc. Bliss. On previous versions, as long as it fails without crashing, that's good enough for my purposes. Regards, Michael M. By the way, these arguments (/A page=n) only work in Acrobat/Reader 6.x. I've tried them with Acro 4 5, and it opened the document, but ignored the page number. I think there was a benign error message too, in one of the older versions. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Open a specific page within a pdf
OK. I'm a bit surprised this doesn't seem to be able to be done via a shell command, even after perusing http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs /en-us/ntcmds.mspx. On that page, I can't figure out what would be appropriate. Thanks anyway, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Open a specific page within a pdf
Bertil... Thanks, that's a really good help. I thought I was going to have to shell out a few hundred bucks for the SDK. Get it -- Shell? - Michael M. More info: http://partners.adobe.com/asn/acrobat/sdk/public/docs/PDFOpenParams.pdf Describes PDF open parameters for Acrobat 6.0, that allow you to open a PDF file using a URL or command that specifies both the file to be opened plus actions to be performed once the file is opened. Bertil Flink Creative Media OK. I'm a bit surprised this doesn't seem to be able to be done via a shell command, even after perusing http://www.microsoft.com/resources/documentation/windows/xp/all/proddo cs /en-us/ntcmds.mspx. On that page, I can't figure out what would be appropriate. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Open a specific page within a pdf
Bertil, that's a great solution. I tried, and failed, to do it from the [Windows] run dialog: acrobat C:\Documents and Settings\mendelsohnm.CORP\Desktop\ADOBEuiquickref.pdf /A page=18 -- didn't work In your routine below, just curious, why did you add in the baShortFileName? When you said baFindApp returned the path to the full version of Acrobat on your system, wouldn't baFindApp just return whatever's associated with pdf on anyone's system and just launch from there? e = baFindApp(pdf) -- C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe theApp = baShortFileName(e) -- C:\PROGRA~1\Adobe\ACROBA~2.0\Reader\AcroRd32.exe theDoc = baShortFileName(C:\Documents and Settings\mendelsohnm.CORP\Desktop\PDFOpenParams.pdf) -- C:\DOCUME~1\MENDEL~1.COR\Desktop\PDFOPE~1.PDF theArgs = /A page=5 open theApp theArgs theDoc Looks like if you take your method and add all the params in that pdf, you could do quite a bit! Thanks very much! And I'm relieved to know your day wasn't wasted. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Shell Xtra
I second that...and in the meantime, could anyone recommend an article online that talks about how to use/the variety of Windows shell commands? Thanks, Michael M. Nice that you're developing this...potentially very handy. This is right in line w/a project I'm working on at the moment...so I can do some real world banging on it. I'll contact you w/any results offline. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Setting focus on a specific MUI widget
Hi Rob... Thanks for responding. Expecting a user to press the spacebar to hit your #defaultPushButton seems odd -- that's the Enter key's job, and Mui supports it. In Windows, along with the enter key, you can use the spacebar on buttons that have the focus in a dialog boxes. I'm not sure if this is also true for the Mac. You're using General Purpose coding style to produce a dialog you could get from Standard style I always go for the general purpose MUIs. There are other MUIs in my project anyway. Supertramp notwithstanding, I usually take the long way home. You mentioned tabbing to the right button to get the focus, yet below is a MUI from a handler called showAbout() that I wrote for a separate projector that does indeed put that focus dotted line on a #pushbutton. I can't really figure out why it works on my showAbout() handler but not my editAnswerWarningNext() handler. Also, I was under the impression that #dialogUnit is the most versatile. A while back, I did some MUI testing on a Windows 95 machine and it had some settings for displaying large or small fonts in the UI. I understood #dialogUnit to be relative measurements, which took care of having large fonts bleed off the sides of fixed dimension dialog boxes. - Michael M. P.S. Thanks for the link. http://www.director-online.com/buildArticle.php?id=888 on showAbout() beep gAbout = new(xtra MUI) winList = getWindowPropList(gAbout) winList.type = #normal winList.name = About Understanding the Hazard winList.callback = aboutChoice winList.width = 280 winList.height = 40 winList.mode = #dialogUnit theList = [] widget = getItemPropList(gAbout) widget.type = #pushButton widget.title = Confidentiality widget.locH = 10 widget.locV = 10 widget.height = 20 widget.width = 80 add theList, widget widget = getItemPropList(gAbout) widget.type = #pushButton widget.title = Some How-To's widget.locH = 100 widget.locV = 10 widget.height = 20 widget.width = 80 add theList, widget widget = getItemPropList(gAbout) widget.type = #pushButton widget.title = Credits widget.locH = 190 widget.locV = 10 widget.height = 20 widget.width = 80 add theList, widget initialize(gAbout, [#windowPropList: winList, #windowItemList: theList]) run(gAbout) end on editAnswerWarningNext() -- determine what the dialog box says... gMUI = [:] theInstance = xtra(mui).new() gMUI.addProp(#instance, theInstance) -- create the window properties first... theWindowProps = gMUI.instance.getWindowPropList() theWindowProps.name = Editing Your Answer(s) theWindowProps.callback = editAnswerWarningNextDecision theWindowProps.mode = #dialogUnit theWindowProps.xPosition = -1 theWindowProps.yPosition = -1 theWindowProps.height = 75 theWindowProps.width = 280 theWindowProps.toolTips = FALSE -- create all the widgets next... theWindowItems = [] -- window begin tempWidget = gMUI.instance.getItemPropList() tempWidget.type = #windowBegin theWindowItems.add(tempWidget) -- icon tempWidget = [#value:, #type:#bitmap, #attributes:[#bitmapIcon:#question], #title:, #tip:, #locH:10, #locV:10, #width:25, #height:25, #enabled:TRUE] theWindowItems.add(tempWidget) -- label theMsg = Your response to this Knowledge Check is incomplete. theMsg = theMsg RETURN RETURN Are you sure you want to skip it and move ahead to the next screen? tempWidget = [#value:theMsg, #type:#label, #attributes:[], #title:check item, #tip:tip, #locH:43, #locV:12, #width:300, #height:40, #enabled:TRUE] theWindowItems.add(tempWidget) -- Yes button tempWidget = [#value:1, #type:#pushButton, #attributes:[#textSize:#large, #textAlign: #left, #textStyle:[#bold]], #title:Yes, #tip:, #locH:43, #locV:50, #width:60, #height:13, #enabled:TRUE] theWindowItems.add(tempWidget) -- No button tempWidget = [#value:2, #type:#defaultpushButton, #attributes:[#textSize:#large, #textStyle:[#bold]], #title:No, #tip:, #locH:113, #locV:50, #width:60, #height:13, #enabled:TRUE] theWindowItems.add(tempWidget) -- Don't show again -- theValue = gTools.pProgress.pBackButtonAnswerReminder -- tempWidget = [#value:FALSE, #type:#checkBox, #attributes:[#textSize:#large, #textStyle:[#bold]], #title:Do not show me again., #tip:, #locH:43, #locV:77, #width:180, #height:13, #enabled:TRUE] -- theWindowItems.add(tempWidget) -- window end tempWidget = gMUI.instance.getItemPropList() tempWidget.type = #windowEnd theWindowItems.add(tempWidget) gMUI.instance.initialize([#windowPropList: theWindowProps, #windowItemList: theWindowItems]) gMUI.instance.run() theDialog = gMui gMui = [:] -- void the global, better for memory return theDialog end [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
RE: lingo-l Setting focus on a specific MUI widget
Hi Rob... Lose the icon, or add it after the buttons (which you can do in #pixel mode), and the button will get focus. Perfect! That worked! I greatly appreciate your responding. Brings back memories. Now I'll be humming Supertramp songs. ...and when writing lingo, stick with The Logical Song. Regards, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Setting focus on a specific MUI widget
Hi all... In Windows, how do you put the focus on a certain MUI widget, namely a #defaultPushButton? My #defaultPushButton has its thicker black border, but that Windows dotted line isn't on it, and therefore it doesn't depress with the spacebar keyed down. Am I missing some attribute somewhere? Thanks! Michael M. on editAnswerWarningNext() gMUI = [:] theInstance = xtra(mui).new() gMUI.addProp(#instance, theInstance) -- create the window properties first... theWindowProps = gMUI.instance.getWindowPropList() theWindowProps.name = Editing Your Answer(s) theWindowProps.callback = editAnswerWarningNextDecision theWindowProps.mode = #dialogUnit theWindowProps.xPosition = -1 theWindowProps.yPosition = -1 theWindowProps.height = 75 theWindowProps.width = 280 theWindowProps.toolTips = FALSE -- create all the widgets next... theWindowItems = [] -- window begin tempWidget = gMUI.instance.getItemPropList() tempWidget.type = #windowBegin theWindowItems.add(tempWidget) -- icon tempWidget = [#value:, #type:#bitmap, #attributes:[#bitmapIcon:#question], #title:, #tip:, #locH:10, #locV:10, #width:25, #height:25, #enabled:TRUE] theWindowItems.add(tempWidget) -- label theMsg = Your response to this Knowledge Check is incomplete. theMsg = theMsg RETURN RETURN Are you sure you want to skip it and move ahead to the next screen? tempWidget = [#value:theMsg, #type:#label, #attributes:[], #title:check item, #tip:tip, #locH:43, #locV:12, #width:300, #height:40, #enabled:TRUE] theWindowItems.add(tempWidget) -- Yes button tempWidget = [#value:1, #type:#pushButton, #attributes:[#textSize:#large, #textAlign: #left, #textStyle:[#bold]], #title:Yes, #tip:, #locH:43, #locV:50, #width:60, #height:13, #enabled:TRUE] theWindowItems.add(tempWidget) -- No button tempWidget = [#value:2, #type:#defaultpushButton, #attributes:[#textSize:#large, #textStyle:[#bold]], #title:No, #tip:, #locH:113, #locV:50, #width:60, #height:13, #enabled:TRUE] theWindowItems.add(tempWidget) -- Don't show again -- theValue = gTools.pProgress.pBackButtonAnswerReminder -- tempWidget = [#value:FALSE, #type:#checkBox, #attributes:[#textSize:#large, #textStyle:[#bold]], #title:Do not show me again., #tip:, #locH:43, #locV:77, #width:180, #height:13, #enabled:TRUE] -- theWindowItems.add(tempWidget) -- window end tempWidget = gMUI.instance.getItemPropList() tempWidget.type = #windowEnd theWindowItems.add(tempWidget) gMUI.instance.initialize([#windowPropList: theWindowProps, #windowItemList: theWindowItems]) gMUI.instance.run() theDialog = gMui gMui = [:] -- void the global, better for memory return theDialog end [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l fileIO changes T to t ?!?!?
#thanksEveryOneForAnsweringMySymbolQuestion #THANKSEVERYONEFORANSWERINGMYSYMBOLQUESTION - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l fileIO changes T to t ?!?!?
Hi list... Here's a weird one. The lingo below generates a preferences file if it doesn't previously exist. The default prefs file (a prop list) is theHeaderString. All well and good until it is read back in by FileIO where property pT morphs from pT in the first list to pt in the second list. [#pEnabled:all, #pEmail:, #pMgrEmail:, #pLastAt:[#pC:, #pM:, #pS:, #pT:], #pBeenTo:[:]] [#pEnabled: all, #pEmail: , #pMgrEmail: , #pLastAt: [#pC: , #pM: , #pS: , #pt: ], #pBeenTo: [:]] Why did property pT become pt? Below is my lingo at that point. Thanks, Michael M. theHeaderString = [#pEnabled: QUOTE all QUOTE , #pEmail: QUOTE QUOTE , #pMgrEmail: QUOTE QUOTE , #pLastAt:[#pC: QUOTE QUOTE , #pM: QUOTE QUOTE , #pS: QUOTE QUOTE , #pT: QUOTE QUOTE ], #pBeenTo:[:]] gFileIO.writeString(theHeaderString) theError = gFileIO.status() if theError 0 then alert(X) else gFileIO.openFile(pSavedFiles.pProgressPath, 0) gFileIO.setPosition(0) pProgress = value(gFileIO.readFile()) -- morphs to pt from pT end if [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l fileIO changes T to t ?!?!?
Well, thanks for the feedback everyone! Regarding the case following the case of the first occurrence, I went through all of my code and nowhere do I have pt (my Lingo only has pT). So why might this still happen when my first occurrence of this symbol is in fact pT? Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l fileIO changes T to t ?!?!?
Just as an addendum to what I previously posted: Clearglobals Showglobals -- Global Variables -- version = 10.0 put symbol(PT) -- #pt put symbol(PK) -- #PK put symbol(Po) -- #Po put symbol(mm) -- #mm put symbol(MM) -- #mm It seems the combination of letters pt/PT/pT/Pt always renders #pt. Hmm...it's as if Director has #pt reserved for something already. Anyone (umm...Tom Higgins?) got any thoughts on this anomaly? - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l fileIO changes T to t ?!?!?
If that's the case, how can I edit the symbol table? Actually, the symbol table follows the .dir (and cst's?) around. They are more persistent than global variables. Closing Director will not make it go away, unless you're only talking playing in Director and not actual director files. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l SOLVED!! Quotes within quotes in a do statement -- but now single quote?
Yes...I just found out they're called mnemonic codes (as opposed to entity/ASCII codes) and a chart of them is at: http://www.informatik.hu-berlin.de/Themen/www/ISOlat1.html - MM Check any decent HTML reference for all of those. (trade;, copy; etc.) [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l SOLVED!! Quotes within quotes in a do statement -- but now single quote?
Hi all... Just thought I'd post how I solved the escaping quotes in a do statement: In my XML node, I have a handler doing what's in the command attribute value. I needed quotes in there within the quotes of the XML, and this worked: topic command=baMsgBox(quot;Complete this tutorial first.quot;,quot;Wait!quot;,quot;OKquot;,quot;Infoquot;,1)/ Rich Shupe's parsing routine is really cool, but I think this is simpler to do for my situation. I think there's a term for having to be denoted as quot; in HTML and I'm wondering if anyone knows what the equivalent is for a single quote. Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Quotes within quotes in a do statement
Hi Rich... Despite being tired, you came up with a creative solution. I like it. Thanks! Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Quotes within quotes in a do statement
Hi Buzz... Thanks for the response. In other situations, what you mention is what I would have done. But as the string is going to appear in an attribute value of an XML node, I'm limited to one line, as in breed=schnauzer. So I can't really concatenate string(a b c), etc with more than one line of code. The only alternative I can think of is to hard code (yuck!) a case statement in my core script that gets passed an integer and does whatever that case says to. I appreciate the response anyway, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Quotes within quotes in a do statement
Well, in other situations, yes, I've done that. Thanks! - MM couldn't you create a function that returned the single line you want? [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Quotes within quotes in a do statement
Hi list... I have a handler that trudges through XML at a particular node and looks for a parameter called command=someLingoStuff. If that param is there in the node, the handler takes what's in the quotes and puts it in a do statement: do(someLingoStuff) It's no problem for something like command=gTools.mRenderReport(). However, I'd like to pass in something like this: command=baMsgBox(\Complete this Tutorial before starting the next Tutorial.\, \Advisory\, \OK\, \Info\, 1) Well, escaping the quotes chokes the XML. Single quotes don't work...that's javascript, and QUOTE would still need the quotes on the pieces to concatenate. Anyone have an idea of how to pass quotes that are within quotes? Thanks, Michael M. Below is the whole kit and caboodle: on mLookForCommand() -- look for a command XML attribute, if there, do it... if gXML.child[1].child[pCurrent.pModule].child.count 0 then if gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].child.cou nt 0 then if not voidP(gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].chi ld[pCurrent.pTopic].attributeValue[command]) then theCommand = gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].child[pCu rrent.pTopic].attributeValue[command] do(theCommand) end if else if not voidP(gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].att ributeValue[command]) then theCommand = gXML.child[1].child[pCurrent.pModule].child[pCurrent.pSection].attribute Value[command] do(theCommand) end if end if else if not voidP(gXML.child[1].child[pCurrent.pModule].attributeValue[command]) then theCommand = gXML.child[1].child[pCurrent.pModule].attributeValue[command] do(theCommand) end if end if end [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l no subject
Buzz: even in DirMX2004? I thought that was a fix. - Michael M. yes, but you must use verbose lingo to do it [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Outlook error generated by Director
Hi all... How could a Director projector possibly cause a Microsoft Outlook error: The command line argument is not valid. Verify the switch you are using. perplexed and becoming nervous, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Outlook error generated by Director
Thanks for responding Cole. Hmm... *for now* the problem seemingly has disappeared, which is in itself another mystery. I have absolutely no idea what caused it, but I suspect it has something to do with the fact that I have an alerthook script that uses baOpenURL with some mailto: information. If it happens again, I'll post. I appreciate your response. - Michael M. Anyway, how are you firing up outlook? Buddy, gotonetpage? [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Outlook error generated by Director
Want to supply any more information Michael? Certainly, Troy. Upon thinking a bit more, I think the _root of my problem stems from my Flash asset. Basically, I have an email window that pops up when an error occurs via the alerthook script. There's the tie to Outlook. But before that email window is popped up, the error has occurred. I am suspecting that it was caused in a Flash sprite I have on the stage. A movie clip in it has the following lines onRelease: var theMessage = event: mZoomImage, \ + gObj.pTrack[gObj.pTracker] + \; getURL(theMessage); ...where my variable gObj.pTrack[gObj.pTracker] is a certain value in an array. I thought I read somewhere that ActionScript can't evaluate statements in the same versatile way that Lingo can, so I think somewhere along the line of concatenating that message to the getURL statement is causing the problem, although it puts just fine. regards, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Tell end tell
Hi list... Quick question: what's the syntax for tell gWindow -- statements end tell In DMX2004 with scriptExecutionStyle = 9? Thanks! Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Opening one projector from another projector
Hi all... Are there any caveats to opening one Director projector from another Director projector? Could anything like global or local variables or xtras get accidentally cross referenced? And is there a way to have one executable send another executable a sendSprite or other command? I know about buddyAPI's baSendKeys but the parameters seem to be just integers, where I'd ideally like to send another projector a string. Is this possible? Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l img.floodfill(img.rect, rgb(20,20,20), [#ink:33]) -- possible?
As I expected. Thanks for replying, Buzz. - MM Don't think it can take a proplist - it's format is more like img.draw() or img.fill() here's all the data that I've been leaked: image.floodFill (x, y, color) image.floodFill (pt, color) [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Javascript onSubmit() - notify Lingo?
I think I'm looking for a strategy on how to notify Lingo from a form tag's 'onSubmit()' event. IOW, how can the Javascript function I assign to onSubmit notify Lingo? Well Rob, here's my guess: Set up a js function in the header of the page. In the header of the html page, this javascript function: function sendDataBackToShockwave(params){ /* I'm not sure of any of the syntax, and the DOM between the browsers differs But essentially here you need to reach back into the shockwave object on the page and send a method to it. Something like: */ document.theForm.shockwaveObject.someMethodToCallIntoLingo(params); Return false; // possibly optional } Then on the form button: onSubmit=sendDataBackToShockwave(params); I recommend that your shockwave object should be within the page's form tag. The DOM is going to be different between the different browsers so you may have to use an if or switch to figure out which browser they're in and then access the shockwave from there based on that browser's way of accessing it. Try looking up on EvalScript as a means to getting the js function back into the browser. Not a very thorough answer, but hopefully it was helpful. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l img.floodfill(img.rect, rgb(20,20,20), [#ink:33]) -- possible?
Hi list... Regarding the undocumented imaging lingo method imgObj.floodfill(), does anyone know if you can put a parameter list in there similar to the prop list you can add at the end of copyPixels, i.e. [#ink:33, #blend:50]? Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l that wonderful WatcherHelper xtra
A-ha! Thanks. Try UIhelper instead of WatcherHelper [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l that wonderful WatcherHelper xtra
For the record, when I put the xtralist, [#name: WatcherHelper.x32, #version: 9.0] is included in the list, but put interface(xtra WatcherHelper) errors as xtra not found. On the contrary (and thanks to Daniel Nelson), put interface(xtra Uihelper) works. Win XP, DirMX. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Setting properties via a method's parameters
Hi list... What would be pros and cons of streamlining version #1 into version #2? Currently, version #1 appears in my parent script, where pCurrent is a property of that parent, and is itself a proplist, and the handler is only called once. Just seeking opinions. Thanks, Michael M. -- version #1: --- on mHandler(me, whichModule, whichSection, whichTopic) pCurrent.pModule = whichModule pCurrent.pSection = whichSection pCurrent.pTopic = whichTopic -- rest of the code end -- version #2: --- on mHandler(me, pCurrent.pModule, pCurrent.pSection, pCurrent.pTopic) -- rest of the code end For example: gObj.mHandler(3,6,8) [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Setting properties via a method's parameters
Good answer. Thanks, Kerry. - Michael M. In version 2, you are restricting yourself to using the method within the object. In fact, I don't see any reason to have the pCurrent parameters. They're accessible within your object, if I understand yourself. You could just refer to them without having them as parameters, or needing to pass them as arguments. In version 1, you could call the method from any object, passing in any arguments you want. This may not always be what you want, but it's probably what you're looking for here. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Setting properties via a method's parameters
Hope that made sense ... and I hope it is right :) Makes a lot of sense, Irv. It's a great explanation and it certainly sounds right. Thanks very much for your insight. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Cursor command not working
Hi list... What would cause a cursor command not to work in a mouseWithin handler? Below, it gets to the cursor line, but doesn't do anything. Thanks, Michael M. on mouseWithin(me) if pContentType = text then if pSp.member.type = #text then theChar = pSp.pointToChar(the mouseLoc) if not voidP(pLinksAndData) then repeat with i = 1 to pLinksAndData.count --theBeginRange = pLinksAndData[i][1][1] --theEndRange = pLinksAndData[i][1][2] if (theChar = pLinksAndData[i][1][1]) and (theChar = pLinksAndData[i][1][2]) then cursor [member(linkCursor, sharedAssets),member(linkCursorMask, sharedAssets)] if the mouseDown then pSp.member.char[(pLinksAndData[i][1][1])..(pLinksAndData[i][1][2])].colo r = rgb(0,0,0) -- clicking on the link else pSp.member.char[(pLinksAndData[i][1][1])..(pLinksAndData[i][1][2])].colo r = rgb(0,147,234) -- hover over the link end if exit else pSp.member.char[(pLinksAndData[i][1][1])..(pLinksAndData[i][1][2])].colo r = rgb(0,112,178) -- not on the link cursor (-1) exit end if end repeat end if end if end if end [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Cursor command not working
Hi Colin and WthmO...thanks for answering. Colin: yes, the cursor and its mask are both 1-bit members. When I type the following into the message window, the cursor changes. cursor [member(linkCursor, sharedAssets),member(linkCursorMask, sharedAssets)] Then, I move the mouse (with said changed cursor) over the text member that has the mouseWithin handler, and it automatically goes to cursor -1. That's fine, but it doesn't doesn't change when it's supposed to. I've got put statements before the cursor command in the handler, so I know it gets there, but it just doesn't change. Any other suggestions as to what I could test? You have about six skillion conditionals to be tested first, with deep bracket access. The poor Lingo interpreter doesn't have time to get to the cursor command. WthmO: Would you have any suggestions to optimize this? Do you think it would work better if a timeout checked instead of mouseWithin (which I was reluctant to use anyway)? P.S. How many numbers are in skillion? I thought it was 1 google-google. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Cursor command not working: SOLVED...but wait, there's more!
Thanks everyone for the additional responses! It's all much appreciated. Tab: Also, cursors behave differently in MIAWs, so if you are doing this in a MIAW, say so. Yes it's in a MIAW, so wouldn't you know it, when I wrapped the cursor command in a tell the stage/end tell, it worked! When you say cursors behave differently in MIAWs, that was my cue. Roymeo: it doesn't change when it is supposed to. Care to let us know what it is 'supposed to' do, and how it is actually behaving? Good catch. Being specific does help. :-) See below. James: Are you using sprite(x).cursor = y anywhere in the movie for that particular sprite channel? sprite(x).cursor = y has priority over cursor(z). No, but thanks for the tip. Buzz's intuition is correct: My mouseWithin handler mimics the a:hover class for CSS links on a web page. In other words, constantly on mouseWithin, when you are over the text, lingo tests if you are over a link, and if so, the link changes color and adds an underline (the a:hover class), and when you are not over any link, the hyperlink range goes back to looking like a default link. And, yes, I do see a performance hit in doing that. Has anyone done this with better efficiency? - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Reading the registry - always allowed?
Hi list... I've never done anything with the registry before, and I'm wondering if there is any situation in which my Lingo would be prevented from reading values out of it using buddyAPI's baReadRegString or baReadRegNumber? I imagine that writing to the registry can be prevented by a computer's security settings, but here I'm just reading some values. Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Reading the registry - always allowed?
Thanks, Tab. That's the concise answer I was looking for. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l test
Just a test [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l finding the last substring within a string
Hi list... I have a path... F:\All Risk Training\modules\serviceInterruption\serviceInterruption.cst ...that I want to find the last position of serviceInterruption and chop it off so that the string is F:\All Risk Training\modules\serviceInterruption\. Can the lingo keyword last accomplish this? I can't seem to figure it out (especially with the verbose vs. dot syntax prior to MX2004, which I don't yet have). I believe the javascript equivalent would be x = lastIndexOf(serviceInterruption); Thanks a ton, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l finding the last substring within a string
Thanks...but actually in my case, the movie isn't next to the cast. :-) I'll just have to write something weird to do it. - MM If the cast happens to be next to the movie, you end up with the same as the moviepath. The general solution of getting the folder path from a file path, would be this: oldid = the itemdelimiter the itemdelimiter = the last char of the moviepath delete the last item of filepath folderpath = filepath the itemdelimiter the itemdelimiter = oldid That would work cross platform. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l finding the last substring within a string
Thomas: So...lastIndexOf() is in MX2004? I didn't think it actually had js methods in it. I only thought it was the *syntax* of js. That's worth a few bonus points. Colin: Forgive me, but I'm not sure what you mean by reset of the message. But here's what I did anyway, and for my purposes, this works. It opens a MIAW from a dir file with linked cast members by finding the dir used for the MIAW in the same folder as the currently linked cast member. on mMIAW(me, theFileName, theWidth, theHeight) -- ex: (serviceInterruption,200,200) global gMIAW gMIAW = window(theFileName) gMIAW.windowType = 2 -- figure the file path to the MIAW director file theCastPath = castLib(gTools.pCurrentCast).fileName thePos = offset(gTools.pCurrentCast, theCastPath) theChopOff = integer(thePos + gTools.pCurrentCast.length) theNewPath = theCastPath.char[1..(theChopOff)] theFileName gMIAW.filename = theNewPath gMIAW.titleVisible = FALSE -- figure the rect of the window and center it... theL = integer((pScreenData.pScreenW - theWidth)/2) theT = integer((pScreenData.pScreenH - theHeight)/2) gMIAW.rect = rect(theL, theT, (theL + theWidth), (theT + theHeight)) window(theFileName).open() end [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Window.forget() erases all globals? Was: finding the last substring within a string
Hello again... I'm running into a MIAW roadblock when forget() is executed. In my previous post, I spawned a MIAW (gMIAW). When I close it using this handler below, suddenly all becomes useless. Why? on mouseUp(me) -- close button is passed case pFeature of close button: -- quit the MIAW gMIAW.close() gMIAW.forget() title bar: if gTools.pScreenData.pFullScreen = FALSE then cursor(260) end if end case End Thanks, Michael M. __ It was spawned with the handler in my previous post... on mMIAW(me, theFileName, theWidth, theHeight) global gMIAW gMIAW = window(theFileName) gMIAW.windowType = 2 -- figure the file path to the MIAW director file theCastPath = castLib(gTools.pCurrentCast).fileName thePos = offset(gTools.pCurrentCast, theCastPath) theChopOff = integer(thePos + gTools.pCurrentCast.length) theNewPath = theCastPath.char[1..(theChopOff)] theFileName gMIAW.filename = theNewPath gMIAW.titleVisible = FALSE -- figure the rect of the window and center it... theL = integer((pScreenData.pScreenW - theWidth)/2) theT = integer((pScreenData.pScreenH - theHeight)/2) gMIAW.rect = rect(theL, theT, (theL + theWidth), (theT + theHeight)) window(theFileName).open() End [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Window.forget() erases all globals? Was: finding the last substring within a string
What does suddenly all becomes useless mean? Well, when gMIAW.forget() happens, seemingly all globals everywhere are voided. I'm using a couple of parent scripts that are instanced as globals, and they do a lot, so that's why I'm saying everything becomes useless. I get a bunch of object expected errors. However, when I comment out the forget() line, and just use the gMIAW.close() line right before it, all works fine. But that seems like I'm not completing the task. - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Window.forget() erases all globals? Was: finding the last substring within a string
BINGO! That was the issue. I do indeed have an elaborate stopMovie handler that voids things, and it was being executed by the MIAW. Warren, you are a genius. Thanks, all for the feedback. I will wrap all the voids in the stopMovie handler with an if it's the ABC MIAW then... Thanks! - Michael M. I bet that you have a script something like this: on stopMovie global gYourObject gYourObject.forget() end and that's what's nuking you. When you issue the forget call to your MIAW, it triggers a stopMovie event. And probably the MIAW doesn't have a stopMovie script in its own cast file, so the event rolls to the next ... which is the one that's getting called and nuking your objects. IIRC the way to fix that is to do something like this in your MIAW: on stopMovie nothing end That should trap the stopMovie in the MIAw and keep it from propagating up. Warren Ockrassa | President, nightwares LLC [EMAIL PROTECTED] nightwares LLC | Consulting Programming http://www.nightwares.com/ Author | Director 8.5 Shockwave Studio: A Beginner's Guide Chapter samples | http://www.nightwares.com/director_beginners_guide/ [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Director equivalent of Flash's advanced color effect?
Hi list... Is it somehow possible via lingo to SMOOTHLY mimic Flash's advanced color effect? I'm trying to test this in the score with a png, and it's as smooth as low grade sandpaper. rgb(255,0,0)rgb(255,255,255) 00 Ultimately, I want to use it in a timeout script, but frame-to-frame in my test movie's score, the color transition is choppy, where Flash, frame-to-frame, is smooth. Any thoughts? Thanks. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Director equivalent of Flash's advanced color effect?
Yes, visually it's what I'm looking for, but are you changing the left arrows' sprite's *forecolor* to achieve different hues? If so, that's right on track with what I'd like to do... - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Director equivalent of Flash's advanced color effect?
Thanks for a look at your code, Colin. I appreciate it. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l the stagecolor = the stagecolor
Hi list... Somewhere recently, I forget which list, the answer was given to use the stagecolor = the stagecolor for a sprite persistence/screen flaw issue. I just encountered this problem myself with a Flash member that sort of stuck around, and I used this line successfully. My question is: why does this work, and what causes the screen flaws so I can avoid them in the future? Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Parallax
Thanks, Warren and Troy. I really appreciate the kind words! - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Parallax
Hi Grimm... Yes! I did this exact thing a few years back. If you're considering the parallaxed content to be bitmaps, I'd *think* 3d is not the way to go because you would have to use larger bitmaps to make up the distance difference the further away from the camera they are. I used 2d, three sprites on top of one another and with a left and right button, moved the top one 3px, the middle one 2px, the bottom one 1px either left or right depending on whether or not the directional buttons are pressed on exitframe. The text in my foreground is one big see through 1-bit bitmap. http://www.mmwebsite.com/work/timeline.html - Michael M. I've got this project, the idea is a timeline using parallax, where the timeline is the middle, the background is just ...background, and the dates/content are the foreground. I'm actually thinking rather than do this in 2d/imaging lingo, perhaps use actual 3d billboards and move the camera; this way I can 'layout' the timeline/content basically in a 1 to 1 and move the camera...perhaps even a light from behind for some shadowing... Any thoughts? Has anyone does something (as simple as this) before? As for the timeline dates, would it be best to create flat planes with a text texture on it (ie a flash member image) or actual 3d text members? [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Controlling flash with lingo.
Comprehend this article, and you'll be a pro. http://www.macromedia.com/devnet/mx/director/articles/flash_in_director. html - MM And then there's this one too: http://www.macromedia.com/devnet/mx/director/articles/flashobjscript.htm l Can someone please guide me to a website or explain how to control flash inside director. What I am trying to do is make links to certain frames in flash. Can this be done - or is there a nother approach, that's more effective? [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Controlling flash with lingo.
Yes, the first one is the Jonkman article (my favorite article to reread). It seems the links got broken up in the email. The full link ends in ...flash in director.html. Just assemble the whole address in the browswer. And by the way, as far as just going to a flash frame from lingo, use: sprite(whichFlashSprite).goToFrame(frameNumber) - Michael M. Hmm, neither one of those links seem to work for me... keep getting macromedia's 404 page... I assume one of them is Mark Jonkman's article? [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l and speaking of Jonkman's article (WAS: Controlling flash with lingo)
Hi list... If anyone has read Mark Jonkman's article, http://www.macromedia.com/devnet/mx/director/articles/flash_in_director .html, (credit WthmO on the angle brackets), I'm using a function on the root timeline to return to Lingo a list of all the properties in a Flash object. My Flash object has 6 props that I purposely instanced in this order: pMinimize1 pSolution1 pMinimize2 pSolution2 pMinimize3 pSolution3 For some reason, they're returned slightly rearranged. It's not quite alphabetical order, but they're returned as: pMinimize3 pMinimize2 pMinimize1 pSolution3 pSolution2 pSolution1 Since first grade, I've known M to come before S, but why 3 before 1? Shouldn't it be 1 before 3? Also, I don't understand why/where in the function the props sort themselves? Is that just a Flash thing? The Flash function called by Lingo is: gListUtility.mGetPropsAsListString = function (objVariable) { var sProperties = ; for (var elem in objVariable) { sProperties += # + elem + ,; } if (sProperties.length 0) { return (sProperties.slice (0, -1)); // remove last , from string } return (sProperties); }; (The reason I need the object properties in a particular order is because I am writing out a web page with tables with FileIO based on all this data.) Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: [Fwd: lingo-l rounding numbers.... Oops]
Thanks everyone for responding. Those are all good ways of looking at the ceil issue. I appreciate all the responses. And Carl, I guess Math.ceil in the subject means you don't get all the V dot I dot A dot G dot R dot A emails ?!?!?!? - Michael M. If you try to 'reply' to me without fixing the dot, your reply will go into a 'special' mailbox reserved for spam. See below. change the 'DOT' to '.' to email me [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: [Fwd: lingo-l rounding numbers.... Oops]
Well, for what it's worth, I think if you post to any of the forums.macromedia.com lists, they hide the senders address. - MM -Original Message- From: Carl West [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 2:00 PM To: Mendelsohn, Michael Subject: Re: [Fwd: lingo-l rounding numbers Oops] Mendelsohn, Michael wrote: ... And Carl, I guess Math.ceil in the subject means you don't get all the V dot I dot A dot G dot R dot A emails ?!?!?!? Something like that. Unfortunately my set-up precludes my posting directly to the list. Apparently it's impossible to set up a spam-resistant post-from address without actually subscribing it. I'm trying to make it so that my correct address is not in any any part of mail that goes out to lists or newsgroups. Replies to the given address are filtered to a mailbox named Clueless or Spam. I check it every now and then. -- Carl West [EMAIL PROTECTED] http://carl.west.home.comcast.net change the 'DOT' to '.' to email me If I had six hours to chop down a tree, I'd spend the first four sharpening the axe. - Abraham Lincoln [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l DMX4 workspace question
Hi Tom... A question about the DirMX2004 workspace: I'm working on two monitors (Win XP). In Flash MX, if I maximize the screen, it fills up the primary monitor only and I can drag the panels outside the workspace and over to the smaller monitor. In DirMX, I can't do that. The Director window has to be stretched out to both screens in order to have the palettes on the other screen. What I'm wondering is if DMX4 has true dual monitor support, where you can drag the palettes outside the Director workspace. Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Fscommand? Event? getURL? Href?
Thanks, Troy. I've done all that millions of times before from on a button. This time, I'm talking about talking to Director from a Flash text box with some sentence like See spot run. In Flash: select the word run and in the property panel in the hyperlink field, type in some permutation of what I wrote below. It makes the link disappear. All these commands work no problem from a Flash button, but from a *link* they seem to not want to work. I'd just really like to figure it out. regards, Michael M. Fscommand(\linkFromFlash\,hello\) Fscommand(linkFromFlash,hello) Fscommand(event:linkFromFlash,hello) Fscommand(\event:linkFromFlash\,\hello\ [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Focusing a MUI widget
Hi all... Windows MUI question: Is there a way to focus a particular button in a MUI? The #defaultPushButton seems to just put a thicker border around that button, but not the Windows dotted line indicating focus. If a button has that dotted line, the user can press the spacebar to click that button. I'm wondering if I'm missing some method or property that gives a widget true focus -- i.e. for a button, that dotted line. Thanks, Michael M. P.S. Is the MUI xtra Shockwave 10 safe? [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l New Director MX
Hi Tom... How about 8-bit MIAW masks, like the latest Adobe splash screens? - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l New Director MX
Imagine using imaging lingo on a MIAW alpha...the possibilities! [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Re: re: Dir MX2004 (Tom)
Hi Tom... When will the Shockwave 10 player be made publicly available? How big is it? Does the 8.5(.1) player automatically update itself to 10? Can it do this if the computer is non admin rights (Windows)? What xtras are included within the 10 player? Thanks, Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l Blank line in the callstack
Hi all... When debugging, what is the meaning of a blank line in the callstack? For instance, mine right now looks like: exitFrame otherHandler If I click on the middle item, I see the grey arrow pointing to line 1, which has nothing there. Thanks, Michael M. P.S. To all: a happy healthy new year with peace for the world. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Blank line in the callstack
Hmm...could be. I've got lots of do statements scattered throughout the score. Thanks, Irv. Have a nice new year. - MM [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l Flash not asynchronous within Director?
Thanks, Troy. Why would it? I just thought it would work like stepping into a script, but apparently not. ;-) - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l setScriptList
Hi all... Anyone with any experience using setScriptList()? I checked the archives and couldn't find a clear enough answer. Below, I'm trying to make a sprite start off with just 1 behavior, out of the 6 I have attached to it in the score. I save a list of all 6, use just 1, and then I want to attach the other 5 at a later time. I can get the list of 6 and save it, but I'm unable to modify the sprite with setScriptList. In this case, doing a behavior active T/F won't work. Have a nice day, Michael M. Here's my lingo: on beginSprite(me) pSp = sprite(me.spriteNum) pSp.member = member(buttonGraphic,sharedAssets) pOrigScriptList = pSp.scriptList -- gets all instances and parameters theOnlyDisable = pOrigScriptList.duplicate() repeat with i = theOnlyDisable.count down to 1 if ((theOnlyDisable[i][1]).name contains disableEnable) then theOnlyDisable = theOnlyDisable[i] exit repeat -- new script list only contains this one behavior end if end repeat pSp.setScriptList(theOnlyDisable) -- Error: periods not allowed in symbols end [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l setScriptList
Hey, thanks, Valentin. That works perfectly. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
RE: lingo-l accessing the timeoutlist, part II
Thanks everyone, for the lively timeout answers...all very interesting and much appreciated! - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
lingo-l accessing the timeoutlist
Hi all... It's strange: I can't seem to access items in the plain old linear list of the timeoutlist. put the timeoutlist -- [timeOut(wiper)] g = timeout( QUOTE wiper QUOTE ) put (the timeoutlist).getPos(g) -- 0 If ((the timeoutlist).getPos(g)) 0) then -- doesn't work either Somehow, some way, I should get 1. What gives? Put the timeoutlist[1] works, but I need to access by name, not item, because there may be more than one timeout going on. Any ideas? Thanks...and have a nice day. - Michael M. [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]). Lingo-L is for learning and helping with programming Lingo. Thanks!]