Lingo programming language |
The name Lingo has been used by several unrelated programming languages. Its most common version is a scripting language developed by John H. Thompson for use in Macromedia Director. It has been said that HyperTalk was one of the inspirations for Lingo.
=Syntax of Macromedia Lingo=
When Macromedia Lingo was created, the syntax was designed to mimic spoken language, so it would be easy for beginners to get started. You could write whole sentences like:
if the visible of sprite 5 then go to the frame
Although it is still possible to use the old syntax, the latest version of the language fully supports dot syntax, so that the code looks more like in standard programming languages.
The equivalent in new scripting style would be:
if sprite(5).visible then _movie.go(_movie.frame)
Although this format uses elements of the Document Object Model introduced in Director MX 2004. In versions prior to MX 2004 the syntax would be:
if sprite(5).visible then go to the frame
=Usage of Macromedia Lingo=
Macromedia Lingo is embedded into Macromedia Director. This way you don t need to care much about hardware or details of getting things on the screen - the program does this for you. Object-oriented programming (OOP) is encouraged by both the language and the Director community. However, OOP is not the only way, This offers Director programmers speed and flexibility in development as they work in both a timeline and a programming structure. There are 3 types of scripts in Macromedia Lingo: BEHAVIOR scripts are attached to a sprite to control that sprite s properties and movement. They make it easy to program in an object-oriented way, as you can directly see the relationship between the programming and the item they are attached to. They can also control or interact with other sprites, making them a true object. MOVIE scripts are not attached to any one sprite, and are available throughout the program (movie). They can be used to control overall aspects of the movie, especially upon the start or end of the movie. They can be referenced by any other script, to hold common handlers, for instance. PARENT scripts are used to create ( birth ) an Object into a Global Variable, with a new command. These objects can control sprites and other media remotely, without being attached to any one sprite, or may be used to control data or other non-displayed items. A Parent script can be used to create or destroy an object at anytime, freeing them from the confines of the score that a Behavior is limited to. BEHAVIOR and PARENT scripts encourage good object-oriented programming. MOVIE scripts are not as OOP-oriented; however, they can still be used to make black-box handlers, where other objects can input raw data and receive answers back, without knowing the inner workings of the box. Using the strengths and ease-of-use of Director s programming methodology, with the advantages of OOP makes for a powerful and fast programming environment.
=Imaging in Macromedia Lingo=
A very powerful part of the language is Imaging Lingo. It was introduced when Director version 8.0 arrived. It gives the user the power of image manipulation with simple commands. There are some similarities to functions of image applications (like Photoshop), what makes it easy to create visual effects.
=Other versions of Lingo=
A version of APL was released, titled [http://www.vector.org.uk/fetch=prodguid/lingo.inc Lingo Allegro]. The product still exists however Lingo Allegro recently transferred their domain name to [http://www.lingo.com/ www.lingo.com] who provide VoIP solutions.
A language called [http://www.lingolanguage.i12.com/ Lingo] was released for software development under Windows. This version was designed as a compilable high level programming language.
A programming language based on Lisp was developed for the Recursiv CPU developed by Linn micro in Scotland, UK. This language was called [http://www.erg.abdn.ac.uk/research/projects/lingo.html/ Lingo] and is significant because the manufacturers successfully obtained a trade mark in the UK.
It should be noted these other versions are obscure and the Macromedia version is the one most widely used. However, a legal anomaly remains in that the legal trademark of the word Lingo in the UK is not held by Macromedia, but by one of the other obscure versions of Lingo.
=External links=
==Useful resources==
*[http://www.director-online.com/ director-online.com] *[http://www.mcli.dist.maricopa.edu/director/ DirectorWeb] *[http://www.lingoworkshop.com/ lingoworkshop.com] - Useful open source scripts. *[http://www.jmckell.com/ Animation Math in Lingo] - Great tutorials for beginners and experts *[http://www.mediamacros.com/ MediaMacros] - Hundreds of free scripts, opens source games, and a database of Xtras (Plugins)
==Mailing lists==
*[http://listserv.uark.edu/archives/direct-l.html Direct-L] is probably the biggest Lingo mailing list *[http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames-l Dirgames-L] is a list about Lingo for games *[http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l Director-3D-L] is a pure 3D-Lingo list
[[Category:Scripting languages]|
|