Samples
How this thing works:
Contact me with one short specific lingo scripting problem your having in simple English. For example, “How can I get lingo to convert any string variable to UPPERCASE?”
I will respond to your email message or time permitting… I will create and post a small custom Director movie. Hopefully this movie will help you and anyone else out there on the internet with a similar problem.
Requirements:
After you download these files you may need Stuffit Expander (available for Mac and Windows) in order to extract them. You will also need a copy of Director in order to open and run these movies.
Future samples will be posted to my blog on the right . >>>>>
- How Can I tell which QTVR hot spot is selected? With a few tweaks to Director MX 2004′s built in help sample lingo scripts, you can easily identify which QTVR hotspot is clicked on by your end user.
- Download (Director MX 2004)
Mar 2007
- Can I use one cast member as a button? Yes you can. This lingo behavior uses blend and position manipulation to simulate button rollover, and down effects on a single sprite.
- Download (Director MX 2004)
Dec 2006
- Sometimes my Quicktime movie will blink and skip when playing.. How can I stop this from happening? To ensure smooth playback of your QT movies via shockwave, you can preload the complete QT movie onto the users local hard drive cache before playback. This method takes advantage of the director score, a built in behavior, and some custom lingo tweaks.
- Download (Director 8.5)
Dec 2003
- Could you give me an example of an image scroller that looks like a text scroller? O.K. This sample movie uses a combination of lingo commands and sprite manipulation to change the locV of a image sprite to simulate scrolling.
- Download (Director 8.5)
Jan 2002
- I am trying to create a lingo script that will create a series of dots to show the path of an object. Essential when an object moves I need dots to appear showing the path the object took. This sample movie uses a combination of lingo commands and sprite manipulation to create a custom sprite trailer.
- Download (Director 8.5)
Dec 2001
- I have tried the zoom in and out behavior given in the library palette. But when we play the movie the sprite completely disappears off the stage. Here is a classic example of the benefits of taking the time to learn the lingo language. It gives you the power to modify preexisting behavior to suit your needs.
- Download (Director 8.0)
May 2001
- Is it possible to have one animation loop that runs on the roll over and then runs backwards when the cursor leaves? Yes, using cell animation and frame scripts.
- Download (Director 8.0)
Apr 2001
- I can you get multiple hypertext links within a text cast member to jump to different markers? Sure this sample movie will jump to different marker based on the hyper link clicked on.
- Download (Director 8.0)
Mar 2001
- How can I create a movie that captures the key pressed and then jumps to different marks based on that key? This sample move will jump to different markers when the user presses the “a”, “b”, or “c” keys.
- Download (Director 8.0)
Feb 2001
- How would I make a box appear on top of the stage at any given scene with a “Are you sure you want to quit?” question with yes and no buttons. “Yes” would exit the user and “no” would make the quit question box disappear? This sample movie uses sprites to make functional castmembers appear and disappear on command.
- Download (Director 8.0)
Jan 2001
- I have a problem that is really stumping me. I have a nested property list from an XML file that I imported into Director and I can’t seem to find the correct syntax to get at the individual elements. How can I extract the info I need? Property lists in Director are very powerful, however they can also be confusing.
- Download (Director 8.0)
Dec 2000
- I take a working script from lingo, copy n paste it into flash 4 (with the action get url and “lingo:” in front). Then I import the swf in director but why the &$#@$%$ doesn’t it work? Like any programming language syntax is half the battle..
- Download (Director 8.0)
Apr 2000
- How can I get animated GIFs to play in shocked director movies without errors about missing the xtra? Make sure to select the “download if needed” check box under Menu:Modify:Xtras: for the animated GIF xtra asset.
- Download (Director 8.0)
Apr 2000
- I want a textmember appear when I roll over a button. I also want the location of that textmember specified. Is that possible in Lingo? Why yes it is. This sample movie shows you how use lingo to pop up a text cast member and set it location when the mouse rollsover another cast member on the stage.
- Download (Director 8.0)
Mar 2000
- I’m trying to do a movie that runs on it’s own frame by frame unless you press a button then the movie halts playback in the current frame on depressing the button again playback continues? This sample movie shows you how use lingo to loop within one frame when the user presses a button once and then too continue play when the same button is pressed again.
- Download (Director 8.0)
Feb 2000
- How could I move several sprites on the stage in the same time? This sample movie shows you how to move multiple sprites on the stage at the same time. The “sliderX.zip” file expands to a “sliderX” folder containing: A “sliderX.dir” director movie.
- Download (Director 7.0)
Jan 2000
- For example suppose you have this list: mylist = [4, 6, 9, 13, 7, 4, 13, 2, 13] I know the count(mylist) command will tell you how many items in the list, but suppose I wanted to know how many times a particular number or item appears in the list, like 13, appears 3 times. This sample movie uses a lingo created function to calculate and return how many time a number appears in a list. The “howmany.zip” file expands to a “howmany” folder containing: A “howmany.dir” director movie..
- Download (Director 7.0)
Dec 1999
- I would like to create a basketball game, with the hoop moving around along a user/programmer defined “track”. How do I use a list to program this motion? This sample movie uses a double list to store locH and locV postions for a sprite. It then loops through this list to animate that sprite along a track. The “tracker.zip” file expands to a “tracker” folder containing: A “tracker.dir” director movie.
- Download (Director 7.0)
Dec 1999
- If possible I would like lingo to control the apple audio cd player and the windows version? This sample movie combines lingo commands and the Macromedia xobject “ECDCTRL” to control your cd audio player. NOTE: this XOBJECT only works with director 6.5 and EARLIER. The “cdcontroller.zip” file expands to a “cdcontroller” folder containing: A “cdcontrol.dir” director movie and the ECDCTRL xobject support..
- Download (Director 6.5)
Nov 1999
- Your hangman seems just like the thing I need for my project. So, is it hard to do (I’m relatively new in the fasinating world of Lingo)? If not, how to do it? If you understand your lingo commands, it is not that bad. This is a unprotected version of my hangman game. There are alot of different lingo commands. so you tell me if its hard or not. The “hangman.zip” file expands to a “hangman” folder containing: A “hangman.dir” director movie.
- Download (Director 6.5)
Jul 1999
- I want the project to automatically prompt the user to find the path or folder were his/her files are located and auto loads them for viewing in projetcor. It’s sort of a auto slide show program. can u help? This movie lets the user select one or all pictures in a folder to automatically load into director for a slide show.The “slideshow.zip” file expands to a “slideshow” folder containing: A “slideshow.dir” director movie.
- Download (Director 6.5)
Jun 1999
- How to make Director list, cast libraries and cast members containing lingo for a script library? This movie lets you to list all cast library names and all cast members containing lingo scripts.The “cstnames.zip” file expands to a “cstnames” folder containing: A “cstnames.dir” director movie.
- Download (Director 6.5)
Apr 1999
- Could I setup a global variable to store which channel a sprite is dynamically in and then use it from then on within all scripts? This movie allows you to track the sprite channel, cast member number and name of a cast member dynamically.The “sinfo.zip” file expands to a “sinfo” folder containing: A “sinfo.dir” director movie.
- Download (Director 6.5)
Mar 1999
- Your “textdbf” and “rwtext” are pretty kool FileIO xtra sample movies, but they only work with Director 5. How about a Director 6 or higher update? OK here you go… This movie allows you access a text file on your local hard drive as if it was a a DFB file. The “fields” within the text file are delimited by commas to allow for spaces within a field.The “textdbf6.zip” file expands to a “textdbf6″ folder containing: a “textdbf6.dir” director movie, and a “textdbf.txt” simple text file. This movie is an example of reading from and writing to a simple ascii text file. It uses Directors 6 plus external “FileIOxtra”. The “rwtext6.zip” file expands to a “rwtext6″ folder containing: A “rwtext6.dir” director movie, and a “junk.txt” simple text file.
- Download textdbf6 .. Download rwtext6 (Director 6.0)
Mar 1999
- I want to randomize or scramble some values in a list without getting repeat values. Is this possible? Yes it is! This is a sample movie that randomizes items in a list without repeating those items. It also uses an unquie random seed each time it is called The “urandom.zip” file expands to a “urandom” folder containing: a “urandom.dir” director movie.
- Download (Director 6.0)
Mar 1998
- I want to make an image move left when you move the mouse towards the left of the stage and vice versa? This movie will move a ball to the left when you move the mouse to towards the left and vice versa. The “slider.zip” file expands to a “slider” folder containing: a “slider.dir” director movie.
- Download (Director 5.0)
Oct 1997
- I have a 9-frame section that has some animation in it. This section also contains four navigation (Skills, Education, Cool Stuff, Quit) buttons that are present throughout the 9 frames. I also created a highlight for each button. What I would like is for each button to switch to its respective highlighted cast member on a rollOver and also go to its marker on mouseDown. However, the trick is to keep the animation going throughout the frames regardless of whether a rollOver or mouseDown exists? This is a sample movie that combines the rollover function with continious animation and going to a frame marker on mouseDown. The “spinwbut.zip” file expands to a “spinwbut” folder containing: a “spinwbut.dir” director movie.
- Download (Director 5.0)
Sep 1997
- I want to write small “database” to store student records using lists…. Can I save the “database” as a text file on my hard drive? This movie allows you access a text file on your local hard drive as if it was a a DFB file. The “fields” within the text file are delimited by commas to allow for spaces within a field. Note: This movie requires Director 5. The “textdbf.zip” file expands to a “textdbf” folder containing: a “textdbf.dir” director movie, and a “textdbf.txt” simple text file.
- Download (Director 5.0)
Sep 1997
- I’m having difficulty trying to figure out how to make an image spin on a mouse down. spin constantly or spin for a while then stop. any suggestions? This movie is an example of animation while the mouse is down on a castmember. The “mdspin.zip” file expands to a “mdspin” folder containing: a “mdspin.dir” director movie.
- Download (Director 5.0)
Aug 1997
- How can I use rollover to change a castmember, and then change it back to the orginal? This movie is an example of switching castmember using the “rollOver” function. The “butrolov.zip” file expands to a “butrolov” folder containing: a “butrolov.dir” director movie.
- Download (Director 5.0)
Jul 1997
- How can I get lingo to convert any string variable to uppercase? This movie is an example of converting any string variable to uppercase. The “upcase.zip” file expands to an “upcase” folder containing: an “upcase.dir” director movie.
- Download (Director 5.0)
Apr 1997
- Is there a way to get Director/lingo to read and write to text files without using an external Xtra? This movie is an example of reading from and writing to a simple ascii text file. It uses Directors (version 4 and 5) built in “FileIO”. The “rwtext.zip” file expands to a “rwtext” folder containing: A “rwtext.dir” director movie, and a “junk.txt” simple text file.
- Download (Director 5.0)
Apr 1997