Lingo (programming language)
Encyclopedia
|
| Tutorials | Encyclopedia | Dictionary | Directory |
|
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. HyperTalk is likely to have been one of the inspirations for Lingo.
Syntax of Macromedia LingoWhen 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 HyperTalk-like sentences like: if sprite 5 is visible then go to the frame Note that in "go to" statements the "to" is optional. Also note that unlike other programming languages, "go" statements reference frames in Director's Score, not particular lines of code. 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 standard programming languages such as JavaScript or C++. The equivalent in new scripting style would be: if sprite(5).visible then _movie.go(_movie.frame) This format uses elements of the Document Object Model, introduced in Director MX 2004. The syntax in prior versions would be like: if sprite(5).visible then go the frame Usage of Macromedia LingoMacromedia Lingo is embedded into Macromedia Director, leaving to Director the low-level details of graphics and OS interaction. 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 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. Lingo supports object inheritance by a slightly idiosyncratic system: a script can have an Imaging in Macromedia LingoA 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), that make it easy to create visual effects. Since then imaging has also been added to Adobe Flash's ActionScript language with the Flash BitmapData object. As this included more sophisticated commands, Director was also updated to allow conversion between the BitmapData object and its own Image objects. 3D in Macromedia LingoIn Director 8.5, a full 3D engine was included for the first time. Lingo was updated substantially to support the new 3D objects and now includes a well-featured (if by now slightly out of date) set of 3D commands. An Xtra was also created to enable use of the Havok 3D Physics engine. Other languages called Lingo
These other languages are perhaps not as well known as the Macromedia language. However, a legal anomaly remains in that the legal trademark of the word 'Lingo' in the UK is not held by Macromedia, but by Linn. External linksUseful resources
Mailing lists
de:Lingo (Programmiersprache) es:Lingo fr:Lingo Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article
|
|
top
©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement