Re: lingo-l Drag file to stage
Hi Rodrigo, Check out the DropFile Xtra (search http://www.mediamacros.com/). It does just what you want. PC only, though. One thing to note: in my experience, the DropFile event happens whenever the system issues it. It appears to even interrupt a running handler. This may not affect an ftp client, but when using DropFile to open documents, it caused a great deal of trouble. A way to get around this is to set a boolean or else to place an object in the actorList for a single stepFrame when DropFile is triggered, and to execute the response to the DropFile command there. In that way, the response will be politely sequenced with the rest of the code execution. Regards, Daniel On Jul 20, 2004, at 7:28 PM, Rodrigo wrote: Hi list, Is it possible to drag a file from a folder inside the director movie? I'm developing an ftp client and like to have the ability to drag the files that I'll upload. Thank's Rodrigo [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
There's always Impressario. -Daniel Is there any way of opening a particular page in a pdf, not just baOpenFile(pdf file, Normal) but more like baOpenFile(pdf file, page 500, Normal)? Can this somehow be done with a [Windows] shell command? This message was sent using IMP, the Internet Messaging Program. [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 overwriting lingo commands
Hello Valentin, I ran into something similar to this when defining my own ilk functions. The solution I used was to declare a movie level g_ilk() function and to call this within objects that had an ilk() function. Of course, this only helps with parent and behavior scripts, not movie scripts (pre MX2004). But then again, it seems good policy to avoid movie scripts whenever practical. Regards, Daniel On May 18, 2004, at 7:18 PM, Valentin Schmidt wrote: hi list, does anyone know if/how I can overwrite an existing lingo command with a custom function in a moviescript, but then use the original command inside my custom function (with dir version before MX2004)? what I want to do is something like: on alert any alert(string(any)) end which of course doesn't work, because it creates an recursive circle ad infinitum. any ideas? valentin [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 Language and DoubeByte Language
Hello Roy, Simply setting the font of a field or text member to a double byte font appears to allow text entry. I haven't produced a final product that allowed entry, and only experimented on Macintosh, but the experiments indicate that it is very easy (they explored using BIG5 and GB for Chinese characters). Of course, there may exist subtleties with localized installations of Windows. If I recall correctly, FileIO Xtra stops reading a file when it encounters numToChar(0), and the upper range byte of the double byte character might be 0. So for saving the data, you may want to look to vList Xtra, or else convert the string so that it won't contain numToChar(0). Regards, Daniel On May 13, 2004, at 8:26 AM, roymeo wrote: At 05:14 PM 5/11/2004, you wrote: Does the project require data entry or just data display? Entry and display. Does the project need to save data, and if so, will the files be distributed between different users or stay on a particular machine (ie: are the files data files that may be exchanged between users or are they similar to preferences files)? Not sharing. But will need to interact with the user and the user's computer. [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 Language and DoubeByte Language
Does the project require data entry or just data display? Does the project need to save data, and if so, will the files be distributed between different users or stay on a particular machine (ie: are the files data files that may be exchanged between users or are they similar to preferences files)? Regards, Daniel On May 11, 2004, at 3:41 PM, roymeo wrote: So, I'm working on a software product (in Director, mainly). Been brought into the project, this is something that is already up and running and architected and shipping. This product is quickly being translated from English to German, Italian, French, Spanish, as well as Japanese and both Simplified and Traditional Chinese. I've done English/Spanish/Portuguese products for Latin America before, so I imagine the G,I,F,S's will be more or less ok. Where do I even start for J,SC,TC? Any Tips, Caveats, Haranging to Test Early, Test Often, Test On Real Not Simulated Systems, etc. would be greatly appreciated. PC Only. roymeo [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 Application crash OS 10.3.2
Hi Teo, I posted this to Direct-L earlier this year: Date: Mon, 26 Jan 2004 11:59:17 -0600 From: Daniel Nelson [EMAIL PROTECTED] Subject: a little bizarre: freezing on Panther Hi All, This morning, a small utility I've been running for years hung after launching. I opened it in Director to see what the problem was, and found that the playback head wasn't moving at all from the first frame (with no sprites or scripts) to the next frame. Director and projectors were all frozen. After restarting the computer (quitting Director didn't help), everything is back in order, but it is a little strange that only Director and projectors seemed to be affected. This might be something to keep in mind if OSX users report projects freezing on startup. OSX 10.3.2 Regards, Daniel On May 2, 2004, at 5:17 PM, Teo Mattiozzi Petralia wrote: Hi! I'm working on a Macintosh running OS X 10.3.2. I've got a weird problem, never happen before, that is, when I open a file (that is always been fine) the file open up showing the first frame with the picture and the text and then the application is not responding anymore. Does anyone know what's could happened, and how can I solve the problem? Thanks Teo [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!] Daniel Nelson Blue Jade Creative Enterprises LLC [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 charToNum() on very large string
Hello Gilles, Unfortunately, not much. OSX just seems to be very slow at handling text in Director. A minor improvement might be the following: cnt = reallyBigString.length repeat with i = 1 to cnt myCodeList.append(charToNum(reallyBigString.char[i]) end repeat Note: I don't know that the use of more dot-syntax language will speed things up. It's just how I write Lingo. The efficiency is in not assigning the unnecessary thisCode variable each iteration and perhaps using a local variable cnt (count) instead of number of chars each iteration might save a little. But again, OSX is just slow with text. Regards, Daniel On May 1, 2004, at 1:32 AM, 2702NET wrote: Hi Folks, I need to grab ASCII codes for chars in a very large string and drop those codes into a list. At the moment, I'm doing the obvious and simple i.e. looping to the number of chars in the big string and returning the code for each char retrieved with charToNum() then appending the code to the list. repeat with x = 1 to the number of chars in reallyBigString thisCode = charToNum(char x of reallyBigString) append(myCodeList,thisCode) end repeat This is very inefficient and slow, particularly under OS X. Is there any slick way to do this (more) efficiently?...perhaps break it up somehow to run more quickly? TIA, Gilles [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!] Daniel Nelson Blue Jade Creative Enterprises LLC [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 charToNum() on very large string
I don't know if this is the case for Gilles or not, but trying to use Director to read or export text file representations of images results in very large strings. Regards, Daniel On May 1, 2004, at 7:33 AM, Colin Holgate wrote: But again, OSX is just slow with text. I'm handling fairly big chunks of text in OS X without it seeming slow. How big is the original string that needs to be converted to a list of numbers? Also, how many times do you have to do that conversion, and does it really matter if it takes a while? [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 decimal to binary conversion...
I posted a parent script to MediaMacros.com that does general base conversion. Regards, Daniel On Apr 28, 2004, at 6:23 AM, 2702NET wrote: Hi all, Anyone have code for decimal to binary conversion you wouldn't mind posting? TIA, J [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!]
Re: lingo-l Tell end tell
windowObject.movie.call(#someHandler, target object, if relevant, other parameters) Regards, Daniel [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 Shape Projector
Hi Victor, DMX 2004 makes this easy, though only 1-bit masking, so no alpha effects. Regards, Daniel On Apr 8, 2004, at 10:47 PM, Viktor Iwan wrote: Hello, This is a quick question... in creating Projector (i'm using Windows), which one is the best XTRA to create a shape-like projector (the one like Windows Media Player 9 or When running WinOnCD).. i'm sure there's plenty.. but may i know what yours and why ? Thx. Victor [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!]
Re: lingo-l New Comer : Introduction first posting
deeper about director. Within this 2 years i learn a lot about web and i do learn a lot about Flash MX Actionscript.. so no wonder when i want to get used with Lingo again..my mind is framed with a lot of Flash Method which is unable (or i still don't know) on how to implement my idea. Hi Viktor, If you have spent a lot of time recently on Actionscript, you might find the new JavaScript syntax in Director MX 2004 to be more to your liking. 1. How the method i have to learn to generate the buttons on-the fly ? When i do it manually, I create a button..then i put some instances on different chanels in Sprite.. buat when i try to change the text for the button : sprite(1).member(thebutton).text , all the instance suddenly change ... how to create a copy of a member in a cast with different name then put the instance on the movie ? (it's like an equall of attachedMovieClip/duplicateMovieClip in Action Script Did you try sprite(1).text =? 2. Do you have any better idea to create a system like point no.1 ? or you think FlashMX-DirectorMX Integration will do the job easier ? Depends on your goals. For system standard buttons, OSControl Xtra buttons are a snap. Using the behavior that comes with OSControls, you can set the text of individual sprite instances of the same member. http://xtras.openspark.com/index.php?page=OSC_home For custom bitmap, vector shape, or text member buttons, I use my own custom button code; in those cases, changing the member affects all instances of the same button, so I would create as many as I need and work with them, just to keep it simple. You can use the new member command, but I try to avoid that when possible because the documentation recommends against deleting members during run-time (although, with a global, dynamic member object, they can be cleared and recycled, so it is workable). Regards, Daniel [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-bug: contains() and offset() mix up chars
Hi Valentin, I reported something similar in DMX a few weeks before the DMX2004 release. It had to do with i and some higher range character. However, with that one, there was further weirdness in that aList.findPos(i) returned TRUE for a list with that higher range char as a property, but i = higher range char returned FALSE. It was confirmed as a bug. In this case, is it possible that these two characters (138 and 154) are lower and upper case versions of one another? Regards, Daniel On Apr 8, 2004, at 7:56 PM, Valentin Schmidt wrote: hi list, i just wondered, is the following a known director bug? c=numtochar(138) put (c contains numtochar(154)) -- 1 put offset(numtochar(154),c) -- 1 and also c=numtochar(154) put (c contains numtochar(138)) -- 1 put offset(numtochar(138),c) -- 1 (tested on dmx, win xp pro) [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 Framing text
Hi Kerry, Field members have a border property, but text members don't. Regards, Daniel On Apr 1, 2004, at 2:22 PM, Kerry Thompson wrote: Is there a property of a text field that I can set to have a 1-pixel frame drawn around it? Or should I just do it with a shape? [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 Xtra File Path Limit
When using FileIO Xtra, use Buddy API's baShortFileName method when opening files: p_fileIOxtra.openFile(baShortFileName(filePath), mode) Regards, Daniel On Mar 31, 2004, at 2:59 AM, Des Marron wrote: Hi All, Has anyone ever come accross a limit to the number of of characters in a file path that can be used in the file IO Xtra to open a file? The limit for the path seems to be 126 characters. After that the file can be found. [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 multiple movies
Hello Jakob, Use go instead of play. Play keeps the previous movie open in memory so that it can return to the last executed place upon exiting the called movie. Go closes the calling movie and frees the memory. Regards, Daniel On Mar 30, 2004, at 7:42 AM, Jakob Asp wrote: Hi, I'd like to have multiple movies and one main movie which randomly select the other movies. I've tried to do this by using the play and play done commands, but I get several strange problems. What is the best approach to do this? [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: Macromedia Logo
http://www.macromedia.com/support/director/ts/documents/ made_with_macromedia.htm Would people please stop the senseless future discontinued product line of thought. DMX 2004 is one of the strongest statements I can imagine that MM is carrying Director into the future. JavaScript. Better support for window management. Less deviation from the standard programming world. And the discontinuation of the Made with Macromedia support is a strong step towards making Director more like most development environments, a step that has been strongly requested by developers. As someone once pointed out, Director does not come with a Made with CodeWarrior stamp. And for people such as myself who produce primarily downloadable products that don't have packaging, a 96pixel by whatever pixel Made with Macromedia Logo in the credits screen was a far cry from helping us present our work as professionally developed. I, for one, am thrilled to see that requirement go. -Daniel [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 Macromedia Logo
If you want it for the Made with Macromedia program, and you are using MX 2004, then you won't need it: that's been discontinued for MX 2004 projects, woohoo! Otherwise, if you need it for the MWM program with an older version of Director, search the Macromedia site for Made with Macromedia. -Danel On Mar 24, 2004, at 4:18 PM, Fred Westermeyer wrote: Where can I fine Macromedia Logo??? [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 Macromedia Logo
According to the website, Developers creating content with previous releases still need to abide by the terms they agreed to when they started using the software. This includes Made with Macromedia program. It makes sense from several angles, not the least of which is another reason to upgrade. =) (quoted from http://www.macromedia.com/support/director/ts/documents/ made_with_macromedia.htm) Regards, Daniel On Mar 24, 2004, at 5:00 PM, Kerry Thompson wrote: Thanks, I'm using d85 I will look it up. You know, that raises an interesting question. Since Macromedia have dropped the requirement for the logo, do we still have to use it for projects done in pre-MX 2004? It doesn't seem logical to me that we would, but marketers and lawyers often use different logic than I do. What would be the point of requiring it now? Look, this product was made with an old version of Director! Cordially, Kerry Thompson [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 delete string
I can't find the delete method that refers to strings in the DMX 2004 documentation on Mac OSX. Under Modifying strings with Lingo or JavaScript Syntax, it says To delete a chunk expression from a string of text, use the delete method. However, there is no link; and searching for delete comes up with a whole lot of deletes that don't have anything to do with strings. It used to be: delete aString.char[i] Thank you, Daniel [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 [XPOST] titleVisible and windowType not forwards compatible
Sorry for the cross-post. Direct-l is stuck on a vapid thread. I hope to get more of a response here. Yesterday, I upgraded to DMX 2004 on Mac 10.3.2. Unfortunately, on MIAWs setting the titleVisible or windowType throws an error on a project that works fine in DMX. I have scriptExecutionStyle set to 9. The window objects are present in the debugger, and all this worked fine in DMX on Mac 10.3.2. I want to upgrade the Mac projector to DMX 2004 because of how slow MX seems to be in Panther, and I recall a thread reporting that DMX 2004 is faster. However, I want to keep the Windows Projector as DMX because i. it works just fine ii. is a smaller download iii. I don't want to risk errors like the ones I'm running into on Mac OSX trying to simply port from DMX to DMX 2004 iv. (just a small issue, but would be yet one more thing to fix) the Windows projectors are all nicely packaged with icons and copyright info set to our info, rather than Macromedia's (Also, regardless of these project specific points, it is conceivable that one would want to work in an older version of Director on some projects and in DMX 2004 on others, while still relying on shared code libraries.) So basically, I want to create a DMX 2004 stub projector to run a project that I want to keep as DMX native, but it keeps complaining about certain commands. People have written that projects back to D7 should run fine in DMX 2004, so what is the trick with MIAWs? Thank you, Daniel [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 Minimized app problem
You could test if (the frontWindow = the stage or (the windowList).getPos(the frontWindow)) prior to setting the resolution. Regards, Daniel [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 limits
baShortFileName works fine with FileIO for pathnames longer than 127. Though Buddy's open dialogue breaks down for very long path names (255? at least, it did when increasing the path name by making one very long folder name). I just tested it on Win XP with a pathname 169 characters long. I conditional language in in my FileIO wrapper. If you are interested, copy the following into the message window: go movie http://www.bluejade.com/public_resources/director/ bluejade_scripts.dir The members needed for this to work are: bluejade_textFileIO.class and global helper handlers from the external cast. Regards, Daniel On Feb 11, 2004, at 10:56 AM, Warren Ockrassa wrote: On Feb 11, 2004, at 10:37 AM, Kerry Thompson wrote: I don't know of any other way to read a text file in Director. Try importFileInto. You should also be able to set the member.filename of a #text member. You might still get the 127-char limit but baShortFileName can resolve that. [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 MX Cross Platform Scripting
if (the environment.osVersion contains OS 10) then --do OSX stuff else --do OS9 stuff end if Regards, Daniel [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 MX Cross Platform Scripting
Better way around would be: if (the environment.osVersion contains OS 9) then --do OS9 stuff else --do OSX stuff end if This allows for OSX and higher. Regards, Daniel [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 Injured vector member
There is a limit on the number of curves a vector shape can have. They may display properly, but you will be unable to open them in the editor. (Note that I didn't download the dir, but did try to load it in a couple browsers without success.) Regards, Daniel [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 Math.ceil()...lingo style
There was a discussion about this (or perhaps it was floor) on Direct-l last year or the year before. Someone posted a very fast, elegant solution using bitXor, or something. There are other ways as well, but they need a conditional to handle differences between positive and negative numbers. Here are the ones I use: on ceiling me, aNumber if aNumber = 0 then return integer(aNumber + .4999) --integer rounds n.5 up to n + 1, but rounds -n.5 down to -n - 1 return integer(aNumber + .5) end ceiling on floor me, aNumber if aNumber 0 then return integer(aNumber - .5) --integer rounds n.5 up to n + 1, but rounds -n.5 down to -n - 1 return integer(aNumber - .4999) end floor Regards, Daniel On Jan 26, 2004, at 9:10 AM, Mendelsohn, Michael wrote: Hi all... I want to automatically convert a float to the next highest integer. Flash has the Math.ceil() method, so what's the most efficient way to do this in Lingo? I appreciate any responses, and have a superb day. 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!] [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 A little heads-up
Is there any chance 'go ...' was being issued from a prepareFrame or stepFrame event? A gotcha that keeps on getting me is that navigation commands fail silently when used within those handlers (and prepareMovie). I navigate using go frame on stepFrame without issue. Regards, Daniel [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 create and save pdf
Hello Mark, If the images are bitmaps, then you will need Valentin's solution. If they are dynamically generated charts that use Bezier curves, then I don't know of any other besides mine that will do that. Mine is available from: http://www.bluejade.com/public_resources/director/bluejade_scripts.zip The PDF export is available from menu-vector shapes-PDF export. Regards, Daniel [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 multi-select dropdown menus?
Hi there, In about three minutes, I just now added a very simple example titled multi-select to my menus. It is fairly plain, though that fits most of my aesthetic needs. To incorporate it quickly, it would be simplest to link my external cast. Then, copy the multi select menu.behavior from member 5 of the internal cast, change the string defined in getMenuDefinition() to whatever you need (it is fairly simple), add whatever call you need where I've indicated in a comment, and attach it to where you want the menu to appear. www.bluejade.com/public_resources/director/bluejade_scripts.html menu-walking menus Multi-select is in the top middle of the screen. Regards, Daniel [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 Transparency with Imaging Lingo Headache
Hi Ross, You are correct. I posted either here or to Direct-l a couple months ago about this very problem. I have a solution that uses setPixel. It is slow, but the results are clean. Check out http://www.bluejade.com/public_resources/director/bluejade_scripts.html menu-imaging Lingo-smartAlphaCopyPixels() The source can be downloaded. Regards, Daniel [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 [XPOST] Export vectorShapes and text to PDF
Dear Director Folk, On Monday I finally got around to looking into PDF export. I am now posting a PDF export parent script that exports vectorShapes and text to PDF. Features: -outputs a PDF 1.1 file if transparency is not used, a PDF 1.4 file transparency is used -horizontal justification of text -vertical justification of text -bounding and justifying text acording to a width and a height parameter -fonts limited to Helvetica, Helvetica-Bold, Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, Courier, Courier-Bold, and Symbol (I haven't tested Symbol) -transparency (results in a PDF 1.4 file) -stroke width -stroke color -fill color -built in circles, half circles, quarter circles, stars, half stars, rectangles, lines -exports vector shape vertexList to Bezier curves with holes (with an offset method to position the vector shape) -a few other features It could use more documentation, but I'm in the middle of a project and just threw this example together so it would be available to anyone who wants it: http://www.bluejade.com/public_resources/director/bluejade_scripts.zip Shockwave version (can't export) displayed at http://www.bluejade.com/public_resources/director/bluejade_scripts.html Load directly into Director via the message window: go movie http://www.bluejade.com/public_resources/director/bluejade_scripts.dir; --save-as both the external cast and the .dir before exporting the PDF The stage to PDF export example is available from menu-vector shapes-PDF export. Clicking the click to export text places screen.pdf in the moviePath folder. I hope people find this useful. If you make any improvements, please let me know. The PDF version 1.5 reference is downloadable from the Adobe site: http://partners.adobe.com/asn/tech/pdf/specifications.jsp Regards, Daniel [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 Stage.rect stage.image.rect?!?
Hi SÈbastien, Thank you for pointing out the drawRect. Using this, I was able to replace my kludge workaround using window.picture with what I originally intended: window.image.duplicate(). That is gratifying. Regards, Daniel [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 Stage.rect stage.image.rect?!?
Hi There, I ran into a problem earlier this year in which I wanted to be able to capture the image of a window, but the image returned was always the original size of that window as it was declared in the .dir. Changing it on the fly had no effect on the size of the image of the window. Are you dynamically changing the stage.rect? The only workaround was to use window.picture, and it wasn't pretty since this cropped white space , so I had to use colored pixels in opposite corners before grabbing the picture if the corners were white, and then change the final image back to white. Regards, Daniel [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 dcr security
There is a forthcoming Encryption Xtra from SmartPants Media that I highly recommend. Unfortunately, it sounds like you want to protect content from being stolen by the user from within an app that displays that content to the user. I believe there is no way you will ever achieve this. If the player app can display the content, then the user viewing the content has access to the decryption scheme...that will always be a security hole. Data can only be secured en route to its intended audience. If you can give the audience a public key, then you can prevent others from intercepting it, but you won't be able to stop them from stealing that data. You can make it difficult to access, but if the data were desirable enough, it could be accessed without brute force. Regards, Daniel [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 editShortCutEnabled and edit menu
Hi Jean-Louis, Yes, in my experience, installMenu short-circuits the text edit shortcuts. I, too, have written a behavior that correctly accomplishes these things, accounting for the selStart and the selEnd. If yours works, then you're all set, but if you'd like mine, I'd be happy to pass it along. By the way, I found that keyDown would not even receive the event if the command were down, so I had to check on exitFrame. Were you able to trap keydown events in a behavior with installed menus? Regards, Daniel [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 ball and paddle problem
Is the draggable prroperty set to TRUE (1) for that sprite? If so, set it to FALSE. Regards, Daniel [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 TRUE or FALSE
Hi Warren, I prefer maintaining type consistency of what a variable or a return value will be. If an object is cleared, I want it to be a cleared object type. VOID is the closest thing we have in Lingo. #null is better than the integer zero but I still prefer VOID. (0 would drive me crazy. I'd be expecting an object type, and here would be an integer type.) To me, type consistency is a more powerful debugging aid than avoiding VOID. (As an aside, I don't consider VOID to be uninitialized data. Uninitialized data is what you get in C, when you can't tell predict what it is going to be. In Lingo, any time you declare a variable, it is initialized to VOID.) Regards, Daniel [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 Imaging Lingo and lines
You're welcome, Martin. I'm glad I could help. If you want to omit all the unnecessary scripts, copy members bluejade_images.class and bluejade_math.class to one of your project casts. Also, by the time you downloaded, did the line drawing demo work continuously, drawing a line to the cursor as long as the mouse was pressed, or only on mouseDown? If continuously, then you're all set. I posted an update within about 15 minutes of when I sent the e-mail. The initial version passed floats into the draw() function, causing a noticeable delay between the draw command and the result. With integers, it draws very quickly. Best, Daniel Martin Pallett wrote: Daniel, Thank you very much. It works perfectly, and only took about a minute to slot into my project. [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 Imaging Lingo and lines
Hi Martin, I just now wrote a handler to do this as part of my open source Lingo. It is available from the following URL: http://www.bluejade.com/public_resources/director/bluejade_scripts.html (If you've visited before, you may need to clear the browser cache since external casts at least used read from the cached version even when they'd been updated.) menu-imaging Lingo-dashed line Click anywhere on the blue rectangle. The behavior attached to the rectangle illustrates how to use the method. Regards, Daniel Martin Pallett wrote: So.. has anyone come up with a way of drawing dashed lines between two arbitrary points, or has anyone solved the problems of using linesize values 1 and creating a contiguous, consistent thickness line? Any suggestions will be greatly appreciated. cheers, Martin Pallett [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 english to spanish / spanish to english translation in director
Find another Lingo project, or find another language to do your translation program. One day computers will translate natural language. Just not now, and probably never with Director. I'd take issue with that. Natural Language Processing isn't overly computationally taxing, no more than a lot of other things that we've written in Lingo. It's mainly table lookups. The problem is not the amount of computation but the number of entries that need to be coded. If you could get an open source version of the tables used by an existing Natural Language Processing program, then you could read them into Director. Otherwise, the project would be an enourmous amount of work. If you want to see what is possible, try Babel Fish: http://babelfish.altavista.com/ Regards, Daniel [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 copyPixels and alpha channel
Hi Sébastien, I had to add two lines to get reasonable results: -- get the original alpha channel alphaBuffer = imgDest.extractAlpha() imgDest.useAlpha = FALSE -- copy the bitmap data copyPixels(imgDest, imgSrc, rDest, rSrc) -- copy the alphachannel pixelmap alphatoAdd = imgSrc.extractAlpha() alphaBuffer.copyPixels(alphatoAdd, rDest, rSrc, [#ink:39]) -- apply the alpha changes imgDest.setAlpha(alphaBuffer) imgDest.useAlpha = TRUE end -- CopyPix32 handler Without those changes, the background had the right alpha, but with color taken from the top image. With these changes, it's much better, but any partially transparent pixels in imgSrc become white (the more transparent, the more white they become). So in the example I posted before (which I have reposted using your code), the drop shadow of the top text becomes white, instead of black. Many composites won't have large transparent sections in the top image, so it wouldn't always be a problem. I tried many variations on inks and masks with copypixels in my testing before writing the pixel by pixel method, including isolating the masks and using darken ink. None of them produced a proper composite. As you imply, the method to use depends on the desired results. Thanks! Daniel [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: AW: AW: lingo-l copyPixels and alpha channel
Hi Michael, What do you get when you run my example (it plays in a browser)? Regards, Daniel Michael von Aichberger wrote: Hi Daniel, I cannot reproduce the effect you mentioned. [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: AW: AW: AW: lingo-l copyPixels and alpha channel
Hi Michael, Load into Director by entering the following line into the message window: go movie http://www.bluejade.com/public_resources/director/copypixels.dir; The behaviors that perform the tests are attached to the two text sprites. They are called copypixels test.behavior and smartAlphaCopypixels test.behavior. They are short scripts, so it is easy to compare what is happening. Thank you, Daniel Michael von Aichberger wrote: What do you get when you run my example (it plays in a browser)? Your example delivers the results that you described ... maybe you want to post some lines of code? Regards Michael [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 copyPixels and alpha channel
Hi Colin, The problem is when compositing real images. I've reposted my example with less idealized images. In this example, it is clear that copypixels, either with or without the masking, does not actually composite the alpha data. My smartAlphaCopyPixels() is very slow, and is not exactly the same as the sprites overlayed, but it is fairly close (the darkness achieved by overlapping shadows differs in intensity between my example and the overlayed sprites). If you load the movie again and haven't quit Director, clearCache() needs to be called so that it doesn't call up the old version. I would be very interested to see Michael's example of the two TIFF images composited using copyPixels. Michael, can you post your test? Regards, Daniel Colin Holgate wrote: go movie http://www.bluejade.com/public_resources/director/copypixels.dir; I'm curious now. Your method involves immensely long scripts. What was the original effect you are trying to get? If you're trying to make a blended blue band across the circle, but without the sticking out bits that you see in your technique, you could do it like this: on mouseup img1 = member(bitmap1).image.duplicate() img2 = member(bitmap2).image.duplicate() top = (img1.height - img2.height) / 2 bottom = top + img2.height imask = img2.extractalpha() img2.usealpha = false img1.copyPixels(img2, rect(0, top, img1.width, bottom), img2.rect,[#ink:#mask,#maskimage:imask]) member(composite).image = img1.duplicate() 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 Can MUI bitmaps have ink effects?
I've not used an MUI. Just throwing out an example of where it did work. Sorry. Regards, Daniel Mendelsohn, Michael wrote: I'm afraid not. 32-bit images show up in the MUI the same way they do in the paint window. Kudos to the OS Control xtra (it's in my project anyway), but you can't stick an OS Control xtra item in a MUI, right? [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: AW: lingo-l copyPixels and alpha channel
Hi Michael, This code only works if the image into which pixels are being copied does not have an alpha channel. (I just opened the example I posted online and set the useAlpha of bitmap1 to FALSE, then tested the copyPixels composite. Setting useAlpha of the composite back to TRUE reveals a very botched image.) My original post starting this thread stated that copyPixels() does not work when compositing _two_ images with alpha channels. Regards, Daniel Michael von Aichberger wrote: Michael, can you post your test? I think I posted it already, it only this bit of code: on test img1 = member(img1).image.duplicate() -- Background Image img2 = member(img2).image.duplicate() -- image with alpha channel img2.usealpha = TRUE -- use that alpha channel with copypixels img1.copyPixels(img2, img1.rect, img2.rect) x = new(#bitmap) x.name = result x.image = img1 end For the alpha channel in img2 I used a gradient. That way in my resulting image I can see the upper part of image 1 smoothly fading into the lower part of image 2. Regards Michael [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: AW: lingo-l copyPixels and alpha channel
Hi Michael, My experimentation with copyPixels() does not achieve a true alpha composite. Using the example you have given, anywhere there is positive alpha data in img1 completely overwrites the image data in img2. ie: if a pixel in img1 was at 10% transparent, and the corresponding pixel in img2 was at 100%, then the result of the copypixel was the img1 pixel at 10%, instead of what it should be, which is the img2 pixel tinted by the img1 pixel. I've posted an example of the difference in functionality between my smartAlphaCopyPixels() and copyPixels() for your reference (click the different sets of words to perform the corresponding composite): http://www.bluejade.com/public_resources/director/copypixels.html Regards, Daniel Michael von Aichberger wrote: In my own experimentation, I was unable to use copyPixels to properly composite two bitmaps with alpha channels. Has anyone here used copyPixels successfully? yes, I have. To copy img1 with its alpha channel into img2 use img1.useAlpha = TRUE img2.copyPixels(img1, img2.rect, img1.rect) Does that help? Regards Michael [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!]
Re: lingo-l [XPOST] Movie in a Window manager parent script
Hi Alex, Yes, the .class is just a clarification. I know the icons serve to show the type of a script, but I like the name to reflect its intended purpose. For most of my reusable behaviors, I name them with a .behavior extension. I hope it works well for you! Regards, Daniel Alexandre Cop wrote: Hi Daniel, This looks excellent, cheers for sharing it! I see you've named your scripts with the .class extension... One assumes it's out of habit? ... Alex ... [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 Miaw
Hi Bob, Check out the MIAW manager parent script I made available in the [XPOST] Movie in a Window manager parent script thread. It contains a centerWindowOverStage(windowName) handler that you can call immediately after resizing the screen. Regards, Daniel to 1024x768 the miaw is not on the right place, so i want the Miaw, to follow the position of the projector on the screen [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 copyPixels and alpha channel
Dear List, In my own experimentation, I was unable to use copyPixels to properly composite two bitmaps with alpha channels. Has anyone here used copyPixels successfully? If not, then I plan to make available my imaging lingo parent script. It contains a smartAlphaCopyPixels handler. I have an example of this being used to composite two vectorShape members aligned according to their registration points (I recently wanted to completely remove the flash asset from a project, and many of my buttons relied on two vectorShapes layered one over the other, so I wrote this to produce alpha-channel bitmaps from those vector shapes) that I would also be glad to share. Regards, Daniel [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 Miaw @ Daniel
Here you go, Florian, I hope you find it useful. http://www.bluejade.com/public_resources/director/window_manager.html Regards, Daniel Florian Bogeschdorfer wrote: One of the strange things about lingo-l is that I don't get all posts. Another one is that the answer comes usually before the question. So would you mind to post the link again Daniel? Thank you Florian [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 [XPOST] open source Lingo
Dear Lists, I've posted a single .dir to share some of my more generally applicable code (consolidating and updating some of what I've previously made available plus new additions, MIAW manager available separately as already posted): math (vector math, geometry, etc.) sprites lists strings fields textFileIO vectorShapes (including import EPS/Illustrator version 8 and lower into vectorShape) imaging lingo (including colorization and smartAlphaCopyPixels) date format conversions dynamic member conversion and deletion since erase() isn't a good idea in projector environments text member based walking menus buttons based on a naming convention sliders A short demo containing these scripts is available and can be downloaded from http://www.bluejade.com/public_resources/director/bluejade_scripts.html I hope people find it useful. Regards, Daniel [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 [XPOST] Movie in a Window manager parent script
Hi Lists, I've made my window manager parent script (and its companion window forgetter parent script) available: http://www.bluejade.com/public_resources/director/window_manager.html Using a global instance of the window manager allows the stage or any MIAW to create and forget windows without explicitely calling tell the stage (the window manager takes care of that). By referencing the name of a window instead of instances of the window everywhere except for in the window manager, problems forgetting a window because it is referenced in multiple places are avoided. I hope people find it useful. Regards, Daniel [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 MIAWs: close, forget....and VOID?
Just this morning, I solved a baffling bug related to this. If an object in a MIAW passes its instance to an object held in another window (or maybe if the window is referenced in some other window...I didn't resolve which reference was actually causing the problem), then all references to the MIAW resident object must be cleared _before_ forget() is called on that MIAW. Otherwise, the next time you try to create that MIAW, an error occurs saying file file path leading to the.dir is already open with write permission by another user. Clearing the references on endSprite doesn't free up the MIAW file. Regards, Daniel [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 MIAWs: close, forget....and VOID?
That's correct; the same thing happens with parent scripts as well. If all their internal props aren't zeroed first, An internal property only needs to be cleared if there is a circular reference or in cases such as the one I mentioned, in which an object reference points to another object created from the scope of a MIAW that is to be forgotten. In this case the reference needs to be cleared before it is forgotten. Garbage collected languages don't need explicit memory freeing, they just need to avoid circularity so that the number of references to a particular object can fall to zero. Regards, Daniel [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 MIAWs: close, forget....and VOID?
If you have a very complex app using Director, do you have any advice on tracking down MIAW/parent script leaks? We have various LDMs, MIAWs, parent scripts, etc, with data being shared between all of them, and we have some leaks that are being very difficult to track down. My approach: 1) avoid circular references - for asynchronous processes, create the processes as local variables, not properties, and pass in the reference to me as the callback target. 2) in MIAWs - when the MIAW is slated to be forgotten, but before forget() is called, clear all references to objects created in the MIAW. Keep the number of references to objects created within a MIAW, but referenced outside that MIAW, to a minimum so that you can keep track of them and be certain to clear them. 3) use a window managing object that maintains a property list of windows whose properties are the window names. only refer to windows through this object. If you need to know the window that should be scoped with a particular callback (ie. with a dialogueBox MIAW that needs to know to which window to send the user's response, the response being sent to an object created within that window), then save the window name, not the window. If the window manager returns VOID when you ask for the window of this name, then you know that that window has been forgotten (I didn't follow this rule myself recently, which got me into trouble last night). 4) for LDM interfaces - 'tell someWindow to sendSprite(someSprite, #someHandler))' is an good way to avoid circular references when LDMs need to communicate with a behavior in the movie that houses the LDM. Use 'tell LDMsprite to sendAllSprites(#setCallbackSprite, someSprite, window name, some message)' to tell LDM interface elements which sprite and which window to target with their call. someWindow is retrieved from the global window manager. some message can be used to direct the tell LDM sprite command to a particular interface element. (Note: this is reliant on the undocumented use of the tell command on an LDM sprite.) The difficulty with this is that LDMs are the last sprites to be initialized, so one cannot perform the initialization of the callback on beginSprite in a sprite that begins in the same frame as the LDM sprite to be called. There are a number of alternate methods for setting the initial callback data, depending on what the LDM does and when. I may be leaving something out or confusing something, but I think this is a good start. If anyone would like my window managing system, I would be happy to make it available. It allows for any MIAW to create any window by simply calling a global window manager. The window manager automatically scopes the new() and the forgetting timeout object to the stage. Regards, Daniel [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 fill effect
Also check out mask ink. Some very good, fast effects are possible using a greyscale member in front of a color bitmap member. Regards, Daniel [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 Screen resolution Xtra.
Hi Kristian, I've had good results with the Resolution Xtra from Andrade Arts. The one item to note is that if you use the hide desktop option, be certain to keep a variable around that tells you whether it is set or not. If it is set, then before calling halt, the desktop must be revealed. I found that if the desktop was hidden and tried to be revealed on stopMovie, then it threw an error. Regards, Daniel Kristian wrote: Experiences with Xtras regarding checking/changing/restoring the screen resolution and color depth would be appericiated. Need for cross-platform compatibility. Am trying out ResolutionXtra from andradearts.com right now and it looks OK like it can do the job. [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 memory usage of bitmap 24/32-bit images/ bitmap cast members
Hi Michael, I would guess that this has to do with how each pixel is represented. On a 32-bit architecture, each integer can be divided into pixels a number of ways neatly: four 8-bit pixels, two 16-bit pixels, one 32-bit pixel. To span a pixel across integers would be inefficient. So for 24-bit images, the last 8 bits are simply wasted. (This is all merely speculation on my part. I don't know how a Director engineer would respond.) On a different, but related note, try using 1-bit members versus 32-bit. 1-bit will animate slower than 32-bit, even though it is 32 times as small. Regards, Daniel [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 memory usage of bitmap 24/32-bit images/ bitmap cast members
Hi Kerry, It's definitely an issue. In one project, I have a white and black bitmap covering the entire stage (and it's a large stage, matching the monitor up to 1400X1050). It is dynamically rendered to connect different elements of a visual data structure. At 1-bit, it was totally unnacceptable, even on a fast machine. At 8-bits, it plays fine. I've also seen such hits elsewhere. For my text highlighter, I use QuickDraw rectangles. Kind Regards, Daniel [EMAIL PROTECTED] wrote: On a different, but related note, try using 1-bit members versus 32-bit. 1-bit will animate slower than 32-bit, even though it is 32 times as small. Really? I've been using 1-bit bitmaps for my text highlighter, with the belief that I can resize and reposition them more quickly and reliably than a bitmap with more color depth. Have I been deluding myself? Performance has been an issue, but I figured it was just because there was so much Lingo. Cordially, Kerry Thompson [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 [XPOST] FileIO Xtra wrapper: writeFile() solution
Hello Lists, A recent thread on Lingo-l set me to thinking about overwriting files using FileIO Xtra (particularly files that are longer than the string to be written). The standard solution seems to have been to delete the file before writing it again, but this seems scary if one doesn't have a backup system built. While walking my dogs this morning, it struck me that if the string to be written were shorter than the existing file, one could simply append the EOF character to that string before writing it. My newly modified FileIO Xtra wrapper class implementing this technique is available from the below URL. It must be saved first to a local hard drive, since the text file will be created using the moviePath. It also requires BuddyAPI. Once saved, entering test() into the message window will print hello world gooodbye followed by hello world if the test is successful. These are the results of successive writeFile()/readFile() commands and indicate that a longer file has been successfully replaced by a shorter file. http://www.bluejade.com/public_resources/director/fileioxtra.html Thank you for any feedback. I hope some of you find the wrapper useful in your own work (please send me an e-mail if you do). Regards, Daniel [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 [XPOST] FileIO Xtra wrapper: writeFile() solution
Thanks Evan. I guess FileIO Xtra can't read a character that other text reading applications can. Since I'm only using text to write XML, I'm tempted to append the space character or the carriage return character enough times to make up for the difference in string lengths. How does that sound to people? It seems very risky to have a period of time in which the file is absolutely gone before it is created again, a number of things could prevent the createFile() command from completing properly, leaving the user with no file. Thanks, Daniel Evan Adelman wrote: huh - just tested it really quickly on win2k, d8.5.1, looking at the file in notepad, and no go - just left the 'goodbye' in there...if i look at it in wordpad, same thing except now goodbye has a block in front of itany ideas? evan [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 [XPOST] FileIO Xtra wrapper: writeFile() solution
It seems very risky to have a period of time in which the file is absolutely gone before it is created again, a number of things could prevent the createFile() command from completing properly, leaving the user with no file. If that's a concern, then: 1. rename the old file 2. write the new file 3. confirm that the write was successful 4. delete the [renamed] old file. Thanks Kerry, That is probably best. I just thought I might have found a solution with the EOF trick. Unfortunately, as people have noted, it only works within Director. Regards, Daniel [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 Xtra wrapper
My attempt at an elegant solution to the writeFile() method didn't work, so I've made the change (as Kerry recommended) to a backup temporary file instead. If anyone would like to use my FileIO Xtra wrapper, it is available from the following URL: http://www.bluejade.com/public_resources/director/fileioxtra.html Regards, Daniel [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 FW: File IO - bad filename
Hi Andy, Was the problem encountered during createFile or openFile? I've recently found that using baShortFileName is necessary in openFile() on Windows machines, but needs to be avoided in createFile(). Are you using baShortFileName at all? If the path they are saving is longer than--if I recall correctly--127 characters, it will be a bad file name. It is very possible to have a problem on the same machine with two different filenames simply because one filename pushes the total file path above this maximum, and the other doesn't. Regards, Daniel [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 unexpected selection of a text member
You could try automatically setting the selStart and the selEnd to sprite(the keyboardFocusSprite).member.text.length every time the window in question becomes the activeWindow. I'm not sure if this will work since I stopped using editable text members after discovering that they seem to cause animated cursors to stop working after an editable text has been rolled over. Regards, Daniel How to avoid the unexpected selection of a text member after we click on the stage previously in the background ? [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 Erratic behavior with fileIO xtra
Funny that several of us should encounter this same problem within a matter of days. Just today, I ran into this problem myself (my FileIO wrapper object only deletes the file if the new file is shorter than the old, so it hadn't popped up until I tried to save a shortened file...I've used external casts or vList Xtra to save data up to this point). It seems that fileIOXtra.openFile() balks at long file names and requires baShortFileName(), but fileIOXtra.createFile() balks at baShortFileName(). Using the full file name in fileIOXtra.fileCreate() seems to work fine. Using baShortFileName() on a the fileName seems to work with fileIOXtra.fileOpen(). This is on Windows XP in D8.5.1. Regards, Daniel [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 dynamic text fields, how-to...
If the handler that changes the text is in a behaviour attached to the sprite that wouldn´t be a problem, right? You would be able to refer to the sprite by using the spritenum property or sprite(me.spritenum). Then the default text could also be typed in a getPropertyDescriptionList dialog box field. If communicating with the sprite from outside the sprite number could instead be added to a global sprite reference list variable or just a simple global variable. If we are still imagining the scenario of dynamically created sprites, you would almost always need to keep track of those dynamic sprites with a linear list or a property list anyway, perhaps residing in a sprite creator object, to be able to reference them in an easy way. So I don´t quite see how this would be a problem? To me it would only be good news. Ah, I see. I tend to use text and field members differently. I often use text to gather or display information through some independent object that interacts with multiple fields. The member name allows me to set or gather that information without knowing to which sprite it is associated. I now realize that if the sprite.member.name still held, then as long as only one copy of that field/text member were used on the stage at a time, it could be found by scanning sprite.member.name for all instantiated sprites. This would allow me to accomplish the same thing without requiring behaviors to be attached to all fields while giving you your member independence. properties that change the appearance of a sprite. Some examples are: color, forecolor/bgcolor, ink and blend, quad, rotation and skew for bitmaps. I imagine it would be possible for Macromedia to implement a dynamic text cast member type where the displayed text is a property variable of the sprite, not just a member property - maybe the field members could sport a sprite.text property in the next version of Director? I for one would like that. The properties you mention above are properties that apply to displaying many types of visual data, not just bitmaps or text. That's one of the differences between sprites and members: member properties apply to a particular member type, sprite properties apply to multiple data types. If Director were to be changed to achieve what you have described, it would need to be a feature of text/field instantiation--duplicating rather than linking to the data--instead of altering the definition of sprites. Certainly, as you have noted with Flash members, it could be done; however, for backwards compatibility issues, there would need to be a new property of text/field members. This property would specify whether to duplicate the member when a sprite to which it is attached is instantiated, or to keep it linked to the cast. Regards, Daniel [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 using an non standard shape as a button
Absolutely. mouseEnter and mouseDown/Up take alpha data into account. An example (try the switch in the upper right corner to see a clear example of the rollover and the mouse click being alpha data dependent): http://www.bluejade.com/public_resources/director/buttons.html Regards, Daniel I want to use a star shape for mouse events? Is there any way to do this other than using a bunch of squares and rectangles? [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 cpu usage
There was a thread on this topic on Direct-l just last week. Search them here: http://www.mcli.dist.maricopa.edu/director/digest/index.html Regards, Daniel [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 Erratic behavior with fileIO xtra
The file needs to be closed after it is deleted before the file can be created again. Regards, Daniel delete (gFileObject) createFile( gFileObject, fPath fName) [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 task bar icon, closing
The Winshaper Xtra can perform some taskbar and tooltip related functions. I've never used it myself, but at one time looked into using it: http://www.ravware.com/winshape.htm Regards, Daniel And another related item: in many aplications, the tooltip that pops up when you move the mouse over the icon in the taskbar contains more than the application's name... the name of the current document, for example. Does anyone know how to do this for a projector? [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 deleting from a text file with fileIO
Don't delete and create again, just open in write mode (or read/write) and start writing with the file pointer at 0. Regards, Daniel [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 deleting from a text file with fileIO
Oops. Thanks for correcting me. Regards, Daniel Kerry Thompson wrote: Don't delete and create again, just open in write mode (or read/write) and start writing with the file pointer at 0. Actually, that won't shorten the file. It will write the new stuff, and leave old stuff in the rest of the file. You need to delete it and write it again. It's a known issue with fileIO. I don't have time to look up the call, but explicitly delete it before you try to create it. Cordially, Kerry Thompson [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 dynamic text fields, how-to...
open to suggestions - I´m not even sure how I would go about creating text members on-the-fly. Thankful for any input Dynamically creating members in cast castlib name: new(#field, castLib(castlib name)) new(#text, castLib(castlib name)) Regards, Daniel [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 dynamic text fields, how-to...
Isn´t it annoying when you find out that something is not working corretly just when you are deep inside coding and have done most of it, and it is just (at least in this case) from some malicious glitch in Director. This is not a glitch. It is very beneficial to be able to access and control the text of a field or text member without knowing what sprite it is in. If each sprite used the same member, you'd have to hard code sprite references to gain access over those text members, which would be miserable software development practice. Regards, Daniel [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 dynamic text fields, how-to...
Dynamic member generation is fast enough. No need for asymmetry here. One note: create the dynamic members in a cast devoted to dynamic members. Then, during authoring, you can simply delete all the members in that cast without worrying about deleting other members. Note: Members cannot be dynamically deleted during runtime. As long as you don't save the cast in projector mode, they won't build up over time. Regards, Daniel [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 dynamic text fields, how-to...
nuisance. At least until one figures out how they work. I learnt today that the forecolor property updates as you change the color property - only, the color can be an rgb value, and the forecolor is a color number (not a paletteIndex, as the bgcolor is. Oh my god. Then, when you change the color property it won´t change the actual color of a bitmap cast member, only add to it. Thus, you can´t make a yellow bitmap black by changing its color property w Lingo... But a black one can become yellow... It´s fun though, every day something new. Some of this is outdated, only included for backwards compatibility. U bet it is - it really would be nice to use text in a field/text sprite as a property variable for the sprite. But, when in Rome... Again, I disagree. How would you find that sprite without hard coding its sprite number? Regards, Daniel [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 dynamic text fields, how-to...
Charlie Fiskeaux II wrote: Members can be deleted dynamically during runtime, with member(x).erase(). From the docs: For best results, use this command during authoring and not in projectors, which can cause memory problems. Regards, Daniel [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 MIAW image rects
Following is a post I sent to the Direct-l list earlier this year: Date: Thu, 22 May 2003 22:02:33 -0500 From: Daniel Nelson [EMAIL PROTECTED] Subject: Re: MIAW window.image cropped to original .dir dimensions Ok, some progress here: window(some window).picture does return the contents of the entire window, and it can be converted to an image by setting the picture of a member to the picture of this window and then duplicating the image of the member. Unfortunately, this crops white space, even when setting the trimWhiteSpace property of the member to FALSE at several different points in the process. What to do about the trimWhiteSpace problem is unclear to me. Thanks again, Daniel I'm not talking to myself. I'm thinking out loud. To search Direct-l, go to : http://www.mcli.dist.maricopa.edu/director/digest/index.html [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 sorting is such sweet sorrow
[1, 10, 2, 3, 4, 5] is correct. [1, 2, 3,4,5,10] is correct. Hmmm...now I gotta figure out a way of dealing nicely with this. Here's one way. (untested Lingo) Regards, Daniel --both of these appear in the same parent script on getSortedFileList me, fileList --fileList is a list of the form [aString1.ext, aString10.ext, aString2.ext, ..., aStringijk.ext] --returns a sorted, property list version of fileList sortedFileList = [:] sortedFileList.sort() the itemDelimiter = . repeat with fileNameString in fileList aString = fileNameString if aString.items.count 1 then delete the last item of aString --delete the file extension --if one exists numberString = EMPTY repeat while me.isNumber(the last char of aString) put the last char of aString before numberString delete the last char of aString end repeat sortedFileList.addProp(integer(numberString, fileNameString) end repeat return sortedFileList end getSortedFileList on isNumber me, aChar --copyright © 2003 Daniel W. Nelson --aChar may be an integer. if so, it is considered the ASCII --value of a character. if integerP(aChar) then charNum = aChar else charNum = charToNum(aChar) return charNum = 48 and charNum = 57 end isNumber [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 Prob w/key commands w/install menu
Does anyone know which platforms this is true on? The key commands always work on my WinXP Dell. Forgetting MIAWs doesn't affect them. J (and anyone else interested), would you mind conducting an experiment using a Director product I wrote? We've had the product out since around June 10, and have had no complaints about key commands failing. A free demo--fully functional except for image exporting--of The Logo Creator is available from http://www.download.com. Just search for logo creator. After you install it, run it (I also recommend internet updating to bring it up to version 3.0.8), and press command-n/control-n for a new document. Then select Window-About The Logo Creator. Close that window. Wait a couple seconds to allow the timeout object to forget the window. Then try command-t/control-t. If the commands work, the word new will appear in the canvas. Please let me know whether key commands still work on your system after forgetting the About MIAW. Thank you, Daniel Hi All, I've some installed menus (using installMenu) which include key commands. Key commands work fine until a MIAW is opened and then forgotten. After the MIAW has been opened and forgotten key, commands no longer work with the projector. Anybody have experience w/this? What am I doing wrong? BTW, no problems w/the menus themselves, just the key commands. Director MX WIN 2000 TIA, J [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 delete the last RETURN in a list
Tony Åström wrote: Hi List, I getNthFileNameinFolder into a gSoundList an put RETURN after every filename then on mouseUp nLine = the mouseLine if nLine 0 then this needs to be something like if nLine 0 and nLine sprite(me.spriteNum).member.lines.count then -- (although the number of lines in is faster sprite(me.spriteNum).member.line[nLine].hilite()gSoundList[nLine] end if end When I click below the last filename in the scrollable field I get the error Index out of range! I can understand that. How can I delete the RETURN after the last filename in the gSoundList? delete the last char of gSoundList Regards, Daniel [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 delete the last RETURN in a list
Tony Åström wrote: I put gSoundList into a member and used: delete the last char of member(videoTitle) Otherwise it deleted the ] char. I think you may have a confusion between lists and strings. -Daniel [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 scroll bar for lingo 8.5
I have something that will do the trick. I'm off for a short canoe outing, but will try to post a .dir this evening. Regards, Daniel Batsheva Evers wrote: Hi - Does anyone have a ready scroll bar? I am looking for a scroll bar that moves a number of sprites (dynamical amount) either left-right or up-down. Does anyone have such a script for me?? Thank you! [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!]
Re: lingo-l scroll bar for lingo 8.5
Ok, here you go: http://www.bluejade.com/public_resources/director/scroll_sprites.html Regards, Daniel Batsheva Evers wrote: Hi - Does anyone have a ready scroll bar? I am looking for a scroll bar that moves a number of sprites (dynamical amount) either left-right or up-down. Does anyone have such a script for me?? Thank you! [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 Prob w/key commands w/install menu
I've seen this on Macintosh OS 9. Not the other systems. Is this in a projector or in authoring? Regards, Daniel I've some installed menus (using installMenu) which include key commands. Key commands work fine until a MIAW is opened and then forgotten. After the MIAW has been opened and forgotten key, commands no longer work with the projector. Anybody have experience w/this? What am I doing wrong? BTW, no problems w/the menus themselves, just the key commands. Director MX WIN 2000 [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 again....
Hi Hector, You may also want to look into the desktopRectList. Element 1 (given by (the desktopRectList)[1] gives the dimensions of the first screen (the only screen for most users). You can set (the stage).rect relative to this, or even make (the stage).rect equal to the screen. Kind Regards, Daniel [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 Dropdown List
You are most welcome, Slava. I hope it is of use to you. Regards, Daniel Slava Paperno wrote: Wow! Many thanks, Daniel, Slava [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 basic question: Lingo to test authoring or projector mode
the runMode returns Author, Projector, Plugin, or Java Applet (though I believe 8.5 no longer exports Java, this is still in the docs) Regards, Daniel Bastien Bouchard wrote:Could someone tell me the Lingo expression for testing if a movie is in authoring or projector mode? Something like: if the authoring mode =false then [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 totally stumped
Hi Chris, Basically, yes. But it is good coding practice to make code that may be used in multiple places into its own handler (even better to make it a handler of a parent script, but that can wait for now). So instead, you would do something similar to the following: put listToString(myLinearList) into field(entry) where myLinearList is the list you want to convert to a string. Regards, Daniel [EMAIL PROTECTED] wrote: Hi Daniel, Thank you for your response! I'm rather vague on how the listToString functions...do I then say something like: put linearListOfStrings into field entry ? [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 Anyone else getting the posts twice?
Seems that since last night I've been getting two copies of every post, this happening to anyone else? No. OK, now that was just a mean thing to do. Wish I'd thought of 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!]
Re: lingo-l x-post: DMX issues (summary)
time animation. The ones that bother me are the little tools that I write which use OSControl xtra for all the interface components. They are so lightweight that it seems crazy to start the fans blowing - which also reduces laptop battery time, of course. Yes, I wish there were an option to say hey, this is just a regular app, not a multimedia project. It's so very easy to make great looking and functioning stuff in Director that it would be nice if it had the ability to act just like other applications. I guess I'll fire off a message to the wishlist. Maybe if enough people ask for this, then they'll do it! Regards, Daniel [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 x-post: DMX issues (summary)
Thank you Tom for your presence here and for the heads up on the wish-list. Best Regards, Daniel Thomas Higgins wrote: All bug reports and feature requests should be submitted using the form at the following URL: http://www.macromedia.com/support/email/wishform/ Yes, I'm listening to this DMX issues thread and will note all items mentioned. That having been said, please do send along any requests via the wishform as well. Cheers, Tom Higgins Product Specialist - Director Team Macromedia [EMAIL PROTECTED] [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 Anyone else getting the posts twice?
Seems that since last night I've been getting two copies of every post, this happening to anyone else? No. [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 Anyone else getting the posts twice?
Seems that since last night I've been getting two copies of every post, this happening to anyone else? No. [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 x-post: DMX issues (summary)
Hi Troy, The way Macromedia has explained this is that Director projectors don't actually hog the cpu, they just eat up unused cycles. If I recall correctly, this is aimed to handle animation. Other types of processing can afford to wait--being off by a tenth of a second may not really matter--but a tenth of a second in an animation produces a jerk in the motion. When another application requests cycles, Director supposedly plays nicely. Regards, Daniel Maybe I'm the only one seeing this one - idle projectors in OSX consuming huge CPU resources for no apparent reason. I notice on my Powerbook that the CPU fan comes on whenever there is a projector running, or even a shockwave in the browser - my own, or anyone else's. CPU averages 80% utilization when the projector is in the background looping on a frame with no scripts (other than go to the frame.) If this doesn't qualify as an issue to be reported, does anyone see similar results, or have found a way to eliminate the CPU hogging? [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 resizing images
Hi Mayuresh, Direct Image Xtra will do a good job, but it costs. http://www.directxtras.com/DImage_home.asp?UUID=1144299 Regards, Daniel clean. Now I know I should not be comparing both of them, but any way else I can resize the images to atleast somewhere close to the quality Photoshop can achieve? [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 The value of void?
Have you tried using integer() --returns void (unsure of consisitency; I'd be interested in other people's tests. btw, value() is consistently returning 0 at this time on this machine) or float() --returns (ditto to above) ? One way I have checked for valid user entries of numbers is floatP(float(user string)) or integerP(integer(user string)), depending on the data type requested. Regards, Daniel [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!]