Re: lingo-l script cast member not found -- bug?

2004-10-05 Thread Irv Kalb
I've seen it many times. I've never been able to reproduce it exactly, but I usually see it when I am debugging through a parent script. I believe that what happens is that Director looses track of the compiled code for a script. It thinks that the script has been compiled, but it can't

Re: lingo-l Collating multiple returns from sendAllSprites

2004-08-24 Thread Irv Kalb
You can use a list (untested, but the idea is right): someList = [] sendallsprites(#GetCheckboxValues, myCheckboxGroupID, someList) nItems = count(someList) and in the sprites: on GetCheckboxValues me, groupID, aList if groupID = pThisGroupID and someglobal then append(aList,

Re: lingo-l OOP: shortest handler name

2004-08-05 Thread Irv Kalb
Inside a handler (or if you prefer, method of a parent script or behavior script), you need to have the me in two circumstances: 1) if you have any other parameters. This is because methods expect to see the current instance of the object as the first parameter (this is really what me is),

Re: lingo-l List question

2004-07-22 Thread Irv Kalb
Matt, I would suggest a slightly different approach. I would probably reverse the property and value positions in your two lists. That is, build up a sorted lists like: list1 = [0:text , 10: text ] list2 = [10:/text, 19:/text] This way, you could walk through each list and check if

Re: lingo-l Getting information form a list

2004-07-19 Thread Irv Kalb
Use getPropAt Irv At 12:29 PM -0500 7/19/04, Matt Wells wrote: How do you get the first and second value from a property list by the position? listA = [10: one, 3: one, 4: three] nCount = count(listA) Repeat with x = 1 to nCount secondPos = ListA[x] put secondPos end repeat With this I get --

Re: lingo-l Removing duplicates from 2 list

2004-07-11 Thread Irv Kalb
Why are you having to eliminate duplicates??Rather than remove duplicates after finding matches, only add one of each item that matches in both lists to your matchlist. That's what the code that I provided did. Confused ... Irv At 1:19 PM -0500 7/11/04, Matt Wells wrote: Hello, After

Re: lingo-l comparing lists

2004-07-11 Thread Irv Kalb
At 5:59 PM +1200 7/11/04, Sean Wilson wrote: While Irv has already provided some crafty code, it's worth noting that for performance's sake you only need to iterate through the _smaller_ list looking for duplicates. -Sean. Sean is right. Here's a revised version that accounts for this (still

RE: lingo-l Help yourself, children

2004-06-28 Thread Irv Kalb
Yup, that would work! :) Irv At 4:36 PM +1200 6/28/04, Sean Wilson wrote: Because of the problem with the actorList, many years ago, I wrote a replacement for the actorList which would solve the deletion problem. Hi Irv, You know, of course, that there's a simple work-around. Before an object

RE: lingo-l Help yourself, children

2004-06-28 Thread Irv Kalb
OK, I'll give you a month, but not a day longer!:) Irv Thanks a lot, but I'll need at least a month to delve into it and understand of what is going on in that sophisticated code. Peter the Great [To remove yourself from this list, or to change to digest mode, go to

Re: lingo-l Help yourself, children

2004-06-27 Thread Irv Kalb
Before I answer your question, I'll pose a question to you. Why would you do this?? (Unless you are just trying to learn about the actorlist.) Instead, if you are trying to move a sprite, it would be much easier to do the same thing with a behavior attached to the sprite in channel 1.

RE: lingo-l Help yourself, children

2004-06-27 Thread Irv Kalb
typing. I'm not criticizing you post though, I'm just exploring the best way to deal with objects. Thanks pb At 10:06 PM +0300 6/27/04, Petro Bochan wrote: Irv Kalb: As for an object deleting itself from the actorList ... here's the problem.When Director goes to a new frame, it basically goes

Re: lingo-l Seeking Shockwave math website

2004-06-24 Thread Irv Kalb
http://www.explorelearning.com At 12:43 PM -0400 6/24/04, Mendelsohn, Michael wrote: Hi list... Some time ago, I came across a really cool website that had lots of math lessons done in Shockwave. Of course, I don't remember the URL. Sound familiar to anyone? Thanks, - Michael M. [To remove

Re: lingo-l GPDL again

2004-06-13 Thread Irv Kalb
I'm a little familiar with that write-up, maybe I can help. While you can have code in a GPDL, you generally put code in there that will help you build up lists, or provide selections for the resulting Parameter Dialog Box. The basic thing that is going wrong in your script is that GPDL does

Re: lingo-l Need HideHotSpots and ShowHotSpots capability

2004-06-10 Thread Irv Kalb
Welcome to the list! I remember going through the exact thing about a year ago. I was looking for a programmatic way to do the exact same thing. I also had the requirement that I had to be able to do VR HotSpots cross-platform. Unfortunately I could not find a solution. I also ran across

RE: lingo-l When and when

2004-06-09 Thread Irv Kalb
Peter, You should not be worried about the amount of memory used by local variables. All local variables are allocated using a stack mechanism. When you call a handler, space for local variables is allocated on the top of a stack (actually, it might be done when Lingo first encounters each

Re: lingo-l pass with prepareMovie not possible?

2004-06-09 Thread Irv Kalb
It's really not clear what you are trying to accomplish, but here is an approach that I have used in projects with multiple movies, maybe you can use something similar. Each movie links to one common external castlib, lets call it GCode.cst (for global code castlib). In this castlib, I have a

Re: lingo-l database lingo vs. xtra

2004-06-08 Thread Irv Kalb
And if you want your Lingo-based database to run faster, check out an article I wrote for DOUG many years ago at: http://www.director-online.com/buildArticle.php?id=442 This describes a technique I use to store data in cast members as Lingo routines. I don't know if the timing is still

Re: lingo-l When and when

2004-06-07 Thread Irv Kalb
Congratualtions on your thesis! In just looking over the versions of getPropertyDescriptionList from your post, both have errors. GPDL #1 says that you are trying to build a list of members, but what you are really displaying is a list of numbers. This is because you are just adding the value

Re: lingo-l Importing multiple images problem

2004-05-26 Thread Irv Kalb
Is there any reason why these images must be all imported into Director? It might be easier to deal with these images if you had them all as external images in a single folder. Then you could have one (or more, depending on what your needs are for the catalog) graphic members that link to an

Re: lingo-l Importing multiple images problem

2004-05-26 Thread Irv Kalb
Is there any reason why these images must be all imported into Director? It might be easier to deal with these images if you had them all as external images in a single folder. Then you could have one (or more, depending on what your needs are for the catalog) graphic members that link to an

Re: lingo-l passing values

2004-05-24 Thread Irv Kalb
I've read your posting a number of times. I can understand some of what you are saying, but I don't understand what your question is? Can you describe your goal a little clearer - what are you trying to achieve? Does the program choose a pan value and the user is supposed to click on the

Re: lingo-l movie vs behavior lingo

2004-05-20 Thread Irv Kalb
Handlers in movie scripts are available globally. So, if you have an on mouseUp handler if a movie script, and nothing else is catching the mouseUp events, then they get sent to the on mouseUp handler in the movie script. If/when you have an on mouseUp handler in a behavior, it only applies

Re: lingo-l Lingo Animation Optimization Test

2004-05-14 Thread Irv Kalb
Hi Anthony, In looking this over quickly, I found one optimization, one warning, and one nigley: Optimization: In your on Animation you have a line that says: if pnCurrentMem plMembers.count then This will call the count routine EVERY time. Instead, create a new property, e.g.,

Re: lingo-l resources for updating Director skills

2004-04-26 Thread Irv Kalb
You can read my E-Book on object oriented programming in Lingo, at: http://furrypants.com/loope Irv At 5:26 PM +0100 4/26/04, [EMAIL PROTECTED] wrote: Hi As lapsed Director user I am looking for learning resources to get my Director skills back up to speed. I worked extensively in Director

Re: lingo-l SVG generation scripts

2004-04-07 Thread Irv Kalb
OK, I'll bite. What is SVG??? Irv At 2:51 AM +0200 4/8/04, Valentin Schmidt wrote: Hi list, I've taken an important step forward in fullfilling my ingenious plan to achieve world domination by means of lingo :-) I've written 2 classes (parent-scripts) for runtime generation of SVG-files: one

Re: lingo-l Quick Time Dynamic Play

2004-03-25 Thread Irv Kalb
It's not clear from your posting if your difficulty is in the if syntax or in the ability to play a QT movie. First, here's the if syntax. This code assumes that the variable pcgreaterthan4 has to be LESS than each threshhold. If you want it to be less than or equal, just add an equal sign

Re: lingo-l Setting properties via a method's parameters

2004-03-23 Thread Irv Kalb
I just tried it, and I found that version #2 does not compile. I get a comma expected within the pCurrent.pModule part of the on mHandler line. If I think back real hard to my days of writing compilers, I can understand why this would be. Parameters that are declared on a handler line are

RE: lingo-l Using @//

2004-03-03 Thread Irv Kalb
I may be wrong, but I think that the problem is that Buddy doesn't understand the @ operator. I've always used an approach like Sebastien's. Irv At 11:34 AM -0500 3/3/04, Kerry Thompson wrote: Hi Kerry a.) set the itemDelimiter to the foler delimiter (ie the last char of the moviePath)

lingo-l OT: Happy Birthday Dr. Seuss

2004-03-02 Thread Irv Kalb
Today is the 100th anniversary of the birthday of Dr. Seuss (Theodor Geisel)! My personal favorite is The Lorax, I speak for the trees, for the trees have no tongues. Irv -- Multimedia Wrangler. [To remove yourself from this list, or to change to digest mode, go to

Re: lingo-l Text bleeding through

2004-02-27 Thread Irv Kalb
What's the ink of the sprite in channel 150? Irv At 12:28 PM -0500 2/27/04, Kerry Thompson wrote: I have a text sprite that is bleeding through some sprites in higher channels, and I can't figure out how to stop it. The text sprite is being set up dynamically at run time. The member's dts

Re: lingo-l absolute vs relative pathnames

2004-02-24 Thread Irv Kalb
I've never done that in Shockwave. I don't know if it would be anything different than from a projector, but here's how I would approach it. You said that the QT movie is at the same directory level as your Director movie, so just take the current value of the moviePath, and concatenate on

Re: lingo-l Accessing sprite(x) properties via variable

2004-02-20 Thread Irv Kalb
Are you looking to do this for many, many different properties? If not, a standard way is to get and set property values is using accessor methods. In a behavior attached to the Mass-Spring-Damper thing: property pMyProperty on mGetMyProperty me return pMyProperty end on mSetMyProperty

Re: lingo-l Accessing sprite(x) properties via variable

2004-02-20 Thread Irv Kalb
Maybe I don't really get what you are trying to ask. There are two different things going on here. There are sprite properties and there are properties defined in one or more behaviors - and they are very different beasts. Things like locH, locV, blend, etc are properties of the sprite.

RE: lingo-l scriptInstaceList

2004-02-18 Thread Irv Kalb
(I sent this to the list yesterday, but I haven't seen it come through yet) At 8:04 PM +0200 2/17/04, Peter Bochan wrote: Thanks Irv, it's really better to use sendSprite when I want to call a unique handler. Judging from your message, the only way to use call function, is still through list. The

Re: lingo-l scriptInstaceList

2004-02-16 Thread Irv Kalb
Short answer: for a case like this, use the sendSprite command instead, e.g., sendSprite(1, #bumpCounterH, xref, 2) SendSprite will send the message to all instances of all behaviors attached to the sprite. Assuming that there are no other behaviors attached that have a bumpCounterH

Re: lingo-l Re: updating an online database

2004-02-06 Thread Irv Kalb
Lee, From your description below, it sounds like you are using the NetManager correctly. Therefore, I'm guessing that the problem, whatever it is, in on your server side with your asp page. The error code that is reported is simply the value that is returned when the NetManager calls

Re: lingo-l updating an online database

2004-02-05 Thread Irv Kalb
I don't know if the problem is in your net routines or at the server, but I have have a different approach to net routines. I have a whole chapter in my on line book on building a net manager that would handle many net calls. Check it out at: http://www.furrypants.com/loope/ Chapter 14 goes

Re: lingo-l looking to speed up the search process in seudo db with what I have

2004-02-03 Thread Irv Kalb
Hi, Here's te URL of an article I wrote a while back that might help you: http://www.director-online.com/buildArticle.php?id=442 The basic idea is to create a new type of cast member called a Data cast member. The basic idea is that you create your lists as real Lingo lists rather than as

Re: lingo-l looking to speed up the search process in seudo db with what I have

2004-02-03 Thread Irv Kalb
Hi, Here's te URL of an article I wrote a while back that might help you: http://www.director-online.com/buildArticle.php?id=442 The basic idea is to create a new type of cast member called a Data cast member. The basic idea is that you create your lists as real Lingo lists rather than as

Re: lingo-l streaming quicktime

2004-01-29 Thread Irv Kalb
I just tried this, and as you say, it does start to play at 160x120. However, if you just go into the score, you can change the size (W and H) to be 256x192, and it plays just fine that way too. Irv At 10:25 PM + 1/29/04, matt bindoff wrote: For streaming QT in a browser, your size and

lingo-l Solitaire game

2004-01-12 Thread Irv Kalb
If anyone has some free time (and interest) to play around with a solitaire game, I've recently built a new version of an old game. I don't play many computer games, but many years ago I got hooked on a solitaire game called 40 Thieves. I played it quite a bit on my Mac. But when I made the

Re: lingo-l Get and Put data to and from the Internet

2004-01-09 Thread Irv Kalb
Assuming that you are talking about using Lingo ... I have a whole chapter in my online book about how to build a Net Manager that will do the netLingo calls for you. See chapter 14 of http://www.furrypants.com/loope/ Irv At 5:12 PM +1300 1/9/04, Teo Petralia wrote: Hi! So... what's the

Re: lingo-l New Director and OOP

2004-01-09 Thread Irv Kalb
At 1:50 PM -0800 1/9/04, Buzz Kettles wrote: At 11:29 AM +0300 1/9/04, you wrote: Does anybody know, is there new features in Lingo? For examle, for when I write parent scripts, it'll be better to have an opportunity to use class (parent script) inheritance, polymorphism and so on... there's

lingo-l Test - please ignore

2004-01-06 Thread Irv Kalb
Nothing to see here. Irv -- Multimedia Wrangler. [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

Re: lingo-l Blank line in the callstack

2003-12-31 Thread Irv Kalb
I have seen that when the code goes through a do statement. Is that what's happening in your situation? Irv At 9:23 AM -0500 12/31/03, Mendelsohn, Michael wrote: Hi all... When debugging, what is the meaning of a blank line in the callstack? -- Multimedia Wrangler. [To remove yourself from

Re: lingo-l Weird error code

2003-12-13 Thread Irv Kalb
Grimm, I ran into this problem earlier this year. The bug is definitely in the vList Xtra. I wrote Daniel Devolder (sp?) about it, and he sent me a newer version of his XTRA that seemed to fix the problem. This was about 6 months ago (on a Mac under Mac OS). I don't know if he has

RE: lingo-l accessing the timeoutlist, part II

2003-12-11 Thread Irv Kalb
Can one imply from this statement, that JT has returned to the nest? Irv At 2:01 PM -0800 12/11/03, Thomas Higgins wrote: I just strolled over to the source (John Henry Thompson, father of Lingo) and got the scoop: snipitude -- Multimedia Wrangler. [To remove yourself from this list, or to

RE: lingo-l accessing the timeoutlist, part II

2003-12-11 Thread Irv Kalb
This is excellent news for the Director community! Sending one large e-cake to celebrate his return. Irv At 4:01 PM -0800 12/11/03, Thomas Higgins wrote: Can one imply from this statement, that JT has returned to the nest? Either that or you can imply that I live with JHT... :\ (your

Re: lingo-l fileIO writeString()

2003-12-09 Thread Irv Kalb
Unless the Lingo documentation explicitly says differently, all Lingo calls are synchronous - which means that your program waits there until the operation complete. Examples of asynchronous calls are the netLingo calls like getNetText, postNetText, etc. Irv At 3:11 PM -0500 12/9/03,

RE: lingo-l figuring out the previous handler

2003-12-09 Thread Irv Kalb
There is no built-in mechanism. (Ancestor is not the right thing). The easiest way to do this is to pass a different value (probably a symbol) from the two different places: on mouseUp SomeHandler(some values, #mouseUp) end on whatever the target of your sendSprite is

Re: lingo-l Multiple statements in one line

2003-12-04 Thread Irv Kalb
Nope. One statement per line. And while you are at it, I find it much clearer when each property is declared on a seperate line. Irv At 11:01 PM +0200 12/4/03, Peter Bochan wrote: Hello, I wonder, can Director script window have multiple statements in one line? e.g. instead of varA = 5 varB =

Re: lingo-l Director and Flash objects

2003-11-11 Thread Irv Kalb
I don't know how you can get the properties of the flash object, but getting the spriteNumber is easy. In any behavior that is attached to the sprite (or create a new one if there aren't any), if you just decleare the property spriteNum, it will automatically be given the number of the channel

Re: lingo-l scriptList vs. scriptInstanceList

2003-11-10 Thread Irv Kalb
The scriptlist tells you what scripts are attached to a sprite, AND the value of the parameters that have been set in each GetPropertyDescriptList dialog box. This is available at author time. The scripts are listed as: member x of castlib y. The properties are reported as a property list

Re: lingo-l ball and paddle problem

2003-10-07 Thread Irv Kalb
If you've copied and pasted exactly, the problem with the code below is that you've missed a continuation character. In the first line you have a continuation character of ¬. You need this same character at the end of the second line. If you were doing this in Director MX, you would use the

Re: lingo-l RE: Lingo-l digest, Vol 1 #972 - 20 msgs

2003-09-26 Thread Irv Kalb
OK, so I had three typos - I warned that it was Email Lingo. This works: on test gmusicLib = [[#tagTitle: Splish Splash, #tagArtist: Bobby Darin,\ #tagAlbum: The Bobby Darin Story, #tagYear: 1961, #tagGenre:\ Oldies, #tagFilePath: D:\My Music\old school\Bobby Darin - Splish\ Splash.mp3],

Re: lingo-l RE: Concatenating property list values

2003-09-26 Thread Irv Kalb
No escape sequences are needed. I just created a new movie, pasted the code I just posted into a movie level script, created a field called musiclibrary. I went to the message window and typed test(). Now I see the member musicLibrary has: Splish Splash - Bobby Darin Runaround Sue - Dion It

Re: lingo-l Concatenating property list values

2003-09-25 Thread Irv Kalb
Here's how I would do it. (Untested email Lingo) -- Store the output in a string until you are finished stringOut = -- Find out how many items are in your list nItems = count(gMusic) repeat with i = 1 to nItems -- create a tempory pointer to each property list tempList = gMusic[i]

Re: lingo-l forms and prints

2003-09-18 Thread Irv Kalb
Director does not have any built in forms. To create forms in Director, you typically create the background art in some other graphics creation package then import the graphic into Director as a cast member. Then you layer different field members on top of the art in different score channels

Re: lingo-l accessing scriptInstanceList in a MIAW: Bug...or just me?

2003-09-17 Thread Irv Kalb
Yes, this is a typical standard problem when working with MIAW's. The ways that I use to debug MIAWs are: 1) (Quick and dirty) Use put statements in the code of the MIAW and/or 2) Build the MIAW in a way that it can be run AS a stage movie. That is, have checks in the MIAW code that says

Re: lingo-l Scrolling background over multiple .dcr's

2003-09-15 Thread Irv Kalb
I'm not sure if I understand the exact details of what ou are trying to do. But here's the standard way to do what you want. If you aren't already doing this, create a castlib that is shared by all your movies - that is, make all movies link to the same external castlib file. Then move your

Re: lingo-l Attach behavior to sprite...

2003-09-11 Thread Irv Kalb
Here's my guess about your problem, and a potential fix. The problem has to do with the value of spriteNum. When you use a behavior normally (attached during authoring), the special property variable spriteNum is automatically given the corrent value. All you have to do is to declare

lingo-l [XPOST] LOOPE - New chapter available

2003-09-08 Thread Irv Kalb
I've been writing even more ... For anyone interested in my free E-book on Object Oriented Programming (OOP) in Lingo, I have just added a new chapter. This one is called: Building a Simple Game. This new chapter (Chapter 15) describes how behaviors and objects can be used together to

Re: lingo-l unexpected selection of a text member

2003-09-05 Thread Irv Kalb
I recently ran into what is probably the same problem in a large project. You have some text hilighted in a text member, you click on the another application, click back in your Director program, the entire contents of the text member are highlighted. We spent a lot of time and tried

Re: lingo-l Slide Show question

2003-08-30 Thread Irv Kalb
Check out the following in the Lingo Dictionary: go next go previous go marker(-1) go marker(1) I'm assuming that you have your slides layed out in the score, and are jumping to the next or previous markers - where you have a standard go to the frame script. Irv At 7:54 PM -0700

Re: lingo-l field and miaw

2003-08-30 Thread Irv Kalb
Look up the tell command. As in: tell window yourMIAWwindow someVariable = member(someFieldName).txt end tell Then someVariable will contain a copy of the text in someFieldName in yourMIAW Irv At 1:19 PM -0700 8/30/03, director wrote: hi everyone, how do you get the value of a field

Re: lingo-l explore properties of script objects

2003-08-29 Thread Irv Kalb
Here's a function that I've had in my toolbox for many year (note the set statements from a long time ago). Just pass in your object reference: on DebugObject oWho set nParams = count(oWho) repeat with paramNum = 1 to nParams set symParam = getPropAt(oWho, paramNum) set theValue =

Re: lingo-l eliminate certain folders

2003-08-21 Thread Irv Kalb
Untested email Lingo, but here's how I would approach it: FolderList = baFolderList(osX) -- Build up a list of the folders you to eliminate from the list EliminateList = [Temporary Items, TheFindByContentFolder] -- Iterate through the EliminateList, seeing if each is found in the FolderList

Re: lingo-l delete the last RETURN in a list

2003-08-18 Thread Irv Kalb
It sounds like you do have some confusion between a list and a textual representation of that list. If you need to build up these items into a list (maybe for saving and using elsewhere), you can do it like this (untested e-mail Lingo): fileList = [] repeat with i = 1 to the maxInteger

Re: lingo-l QT conundrum

2003-08-16 Thread Irv Kalb
Kerry, As part of my current project, we had to do snapshots also - with different types of media, including QT. We always played the QT DirectToStage. When the user wanted to take a snapshot, we temporarily turned DirectToStage off, took the snapshot, then turned DTS back on. Would this

Re: lingo-l Re: timeout to child (was loop every hour)

2003-07-25 Thread Irv Kalb
For more information on object oriented programming in Lingo, visit: http://www.furrypants.com/loope Irv At 10:46 PM -0400 7/25/03, Denis Bel-Isle wrote: Thomas and Irv, I'm out of the gutter - thanks to you both. That darn me thing again ... Yet, you have provided enough of a working model

Re: lingo-l Re: timeout to child (was loop every hour)

2003-07-24 Thread Irv Kalb
Hi, In Director, to create objects you use parent scripts (or behavior scripts). The passage you quoted below refers to the fact that within a parent or behavior script, you can create a timeout object in one handler (also known as a method), and set the target (the method to be called back

Re: lingo-l RE: intersecting sprites in a maze game

2003-07-07 Thread Irv Kalb
Actually, he has a whole chapter (22) on how to write a maze game. Irv At 9:56 AM -0700 7/7/03, Jonathyn B. Tellez wrote: Advanced Lingo for Games by Gary Rosensweig is a GREAT source for these kinds of questions. This particular issue is dealt with head on in the Space Invaders chapter. He

Re: lingo-l basic question: Lingo to test authoring orprojector mode

2003-07-03 Thread Irv Kalb
Eudora's new line continuation characters are semi-colon right paren ;) See it worked ;) Irv At 11:55 AM -0500 7/3/03, Howdy-Tzi wrote: No, it's the same. MX didn't change existing Lingo. Not even line continuation characters got re-redone this time... ;) -- WthmO -- Multimedia Wrangler.

Re: lingo-l List bracket access

2003-07-01 Thread Irv Kalb
Kerry, The bracket syntax always gets you what is the value at the given location, whether it's a linear list or a property list. Yes, you have to use getPropAt, to get the property, then you can use that property to get the value. Using your example, if you do a: theProp = getPropAt(vpl,

Re: lingo-l displaying text from list

2003-06-27 Thread Irv Kalb
No, you don't want to change your original data, you just want to build a string with returns in it. Here's my untested version: on ListToString listIn stringOut = nItems = count(listIn) repeat with i = 1 to nItems put (listIn[i] RETURN) after stringOut end repeat return

Re: lingo-l text

2003-06-12 Thread Irv Kalb
Look up the scrollTop in the Lingo Dictionary. Irv At 8:53 AM -0600 6/12/03, Liz wrote: Hi, I have some scrollable text in a window and would like to be able to start the text half way through the text field. What I am actually trying to do is to place a hyperlink in the top part of the text

Re: lingo-l change sprites channels

2003-06-08 Thread Irv Kalb
No, you can't change sprite channels, but you can change the ordering. When you want to bring something forward, set the locZ property high. But don't forget to reset it when the spritespan ends, or it will remain in that ordering: on endSprite me sprite(spriteNum).locZ = spriteNum end Irv

RE: lingo-l testing for resolution with dual monitors

2003-05-29 Thread Irv Kalb
My dual monitor Mac returns: -- [rect(0, 0, 1280, 1024), rect(-1024, 0, 0, 768)] Irv At 1:12 PM -0500 5/28/03, Josh Race wrote: I'm trying to TEST the resolution of the users monitor and determine whether they have single or dual monitors setup. I've found that the desktopRectList will

Re: lingo-l object gets keydown?

2003-04-02 Thread Irv Kalb
Objects by themselves do not receive key interactions - independent of whether are or are not added to the actorlist. Irv At 12:43 PM -0600 4/2/03, [EMAIL PROTECTED] wrote: If I create an object and don't add it to the actorlist, does it still receive key interaction? [To remove yourself from

Re: lingo-l ARRRRRRRRGHHHHHH!!

2003-04-02 Thread Irv Kalb
I'll throw out a guess based on your description. Here's my understanding: You are attempting to create a QT object. In the new handler of your script, you are checking for QT being installed. In the case where it is not installed, your new method is issueing a go to frame xxx. My guess is

Re: lingo-l wait

2003-03-27 Thread Irv Kalb
The best way to achieve something like this is to do move the sprite at every frame event. Since I don't know what your starting and stopping triggers are, I'll just give you the basic idea: property spriteNum on exitFrameme sprite(spriteNum).locV = sprite(spriteNum).locV + 1 end This will

Re: lingo-l send me your CD drivers!

2003-03-25 Thread Irv Kalb
You would probably get more responses if you listed the name of the file that we should look for - and where it can be found. I, for one, have no idea what the name of the CD Driver file is. Irv At 4:51 PM -0500 3/25/03, Fletcher Moore wrote: Hi, Can every Mac user on this list do me a

Re: lingo-l LimitingFieldSize

2003-03-23 Thread Irv Kalb
Check out: the floatPrecision Irv At 8:35 AM -0700 3/23/03, kevin pyatt wrote: Hello. I am trying to figure out a way to limit or specify the size of a string or integer sisplayed in a text field. Example: a =1 .0 b=1.5 c=a+b member(myTextBox).text = string(c) Question: The value that is

lingo-l on hyperlinkClicked

2003-03-19 Thread Irv Kalb
I must be missing something basic here - 'cause I've made this work before. I have a text member that I've put on stage. I have a field member called source with some valid HTML - it has one or more links in it that look like this: a href=somelinkSome text/a Then attach a behavior that to

Re: lingo-l on hyperlinkClicked

2003-03-19 Thread Irv Kalb
Thanks very much Howdy - that did it! (Of course, no mention of this in the docs) Irv At 12:01 PM -0600 3/19/03, Howdy-Tzi wrote: On Wednesday, Mar 19, 2003, at 11:22 America/Chicago, Irv Kalb wrote: I put a breakpoint in the hyperLinkClicked routine above and run. The text shows up

Re: lingo-l What is the most elegant/performative rollovertechnique

2003-03-11 Thread Irv Kalb
I've got a whole chapter on Intersprite Communication in my online electronic book. http://www.furrypants.com/loope Check out chapter 11. Irv At 5:28 PM + 3/11/03, Simon Wheatley \(lists\) wrote: I have a movie where I want to change four graphics with one rollover. At the moment I have

Re: lingo-l sprite().member

2003-03-11 Thread Irv Kalb
You can get the name of the member of a sprite like this: theName = sprite(whatever sprite number).member.name Irv At 8:05 PM + 3/11/03, Simon Wheatley \(lists\) wrote: Hello Is it possible to get the text name of a cast member? Ie I can say: sprite(59).member = myCastMemberName Can I

Re: lingo-l Finding the sprite from the member

2003-03-11 Thread Irv Kalb
The problem is that you can have the same member in one or more channels. For example, you could have the same bitmap in channels 3 and 10. Here's a routine I've been using for years (notice the set statement and pre-dot syntax). It finds the first occurance starting at channel 0 on

Re: lingo-l Lingo OOP?

2003-03-11 Thread Irv Kalb
It can be if you want to use the OOP aspects of it. Behaviors and parent scripts are the basic elements of OOP in Lingo. To find out more: http://www.furrypants.com/loope Irv At 11:52 AM +0700 3/12/03, Meiky - wrote: hi, I just want to know is Lingo OOP? Thank

Re: lingo-l QTVR question

2003-01-30 Thread Irv Kalb
Thanks Buzz, but unfortunately that doesn't do it for me. It assumes that you know how many hot spots you have, or at least the highest numbered hotspot. And since I'm trying to write a general behavior, I won't know that. I see the list there, but it doesn't look like it has the ability to

Re: lingo-l destruction of objects

2003-01-05 Thread Irv Kalb
Craig, Director disposes the memory needed to represent an object when there are no more variables that point to that object. If you create an object and only set one variable to it: myObjectRef = new(script myObjectScript) Then later you can release the memory needed for that object by

Re: lingo-l can someone explain this (count count() ) ??

2002-12-20 Thread Irv Kalb
Others have done a good job at explaining this Lingo syntax error. I would like suggest that you use a different approach altogether. One of the cardinal rules of object oriented programming is that you never reach into an object and access its properties by name. Rather than trying to get

Re: lingo-l Watchpoints

2002-11-08 Thread Irv Kalb
That's exactly what I do. Often, I will have a single behavior that I have attached to many sprites, and only want to track down what's going on in one instance of the behavior. Just for testing and tracking this down I will sometimes write: if spriteNum = 42 then nothing end if And

Re: lingo-l moviePath

2002-11-08 Thread Irv Kalb
Here's a routine I wrote a while ago to do this: on BackupOneLevel sPathIn sPathOut = sPathIn theDelim = the last Char of sPathIn delete the last char of sPathOut -- delete delim repeat while TRUE lastChar = the last Char of sPathOut if lastChar = theDelim then exit repeat

Re: lingo-l more than 1 ancestor

2002-10-28 Thread Irv Kalb
Only one. There is just a single ancestor keyword. You can really nest ancestor scripts, but an ancestor script can set its own ancestor, etc. But it sounds like you are looking for multiple inheritance - and Lingo does not allow that. Irv At 4:24 PM + 10/28/02, Jamie Dyer wrote: Is it

Re: lingo-l Help with lists **bad getaProp

2002-10-21 Thread Irv Kalb
Can you store a zero in your list to show the absence of an object, rather than storing VOID as the value? If you can do that, then as Tab said, you can tell the difference between you conditions. You need two checks, first to see if the if the property exists, then if the property exists

Re: lingo-l hit rect question.

2002-10-18 Thread Irv Kalb
Two possible solutions. 1) Simplest fix. Store the mouseLoc into a local variable then check against the local variable. the mouseloc is a system call which chews up time. Do this instead: theCurrentMouseLoc = the mouseLoc repeat with i = 1 to nRects if inside(theCurrentMouseLoc,

Re: lingo-l Director HTML Database

2002-10-14 Thread Irv Kalb
I don't know anything about Gary's address book, but there is a problem with the code you posted. According to the Lingo manual, the mouseline is the number of thhe line under the pointer when the property is called and the cursor is over a field sprite. It is typicaly used when the user

RE: lingo-l Word scramble game

2002-10-01 Thread Irv Kalb
And here's another version of the code that Buzz just posted. It's a little more efficient because generates the random list in one pass using only a single list: on scrambleText oldStr list1 = [] -- create a sequence of scrambled numbers n = oldStr.char.count repeat with i = 1

Re: lingo-l Text or field

2002-09-25 Thread Irv Kalb
A field. Irv At 11:49 PM -0700 9/25/02, Jeremy wrote: Which renders faster, a text media element or a field? [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

  1   2   >