Lingo uses tips

Source: Internet
Author: User
Assign values using verbose syntax

The logical operators in lingo use the single equal sign "= ".

Set Param To Value

Put Value Into Param

Verbose syntax to assign values more clearly.

 

Case-insensitive

Because case-insensitive is case-insensitive, note the comparison of strings.

Put"A" = ""

-- 1

 

Case-sensitive

Lingo is not sensitive in most cases. Only one case is that the property of the property list is case sensitive when strings are used.

PL = ["M": 1, "M": 720] 

 

Verbose syntax and dot syntax cannot be mixed in the same statement

It sounds like nonsense, but it will be written if it is not properly maintained, and no cause of syntax errors can be found.

Set Sprite (1). Visible To true -- Wrong!

Set Visible Of Sprite 1 to true -- Yes

 

Special features of case

After the case of lingo, you can use "," to separate multiple expressions. In addition, the last otherwise can be added: or not. Recommended and nice looking. -_-B

-- Lingo syntax

Case ( _ Key . Key ) Of

"" : _ Movie . Go ( "Apple" )

" B " , " C " :

_ Movie . Puppettransition ( 99 )

_ Movie . Go ( "Oranges" )

Otherwise : _ Sound . BEEP ()

End case

 

Special features of repeat

There isRepeat with... in ..Practical, in can be a list and an object.

 

System Event stepframe

FRame system events include prepareframe, stepframe, enterframe, and exitframe. Only this stepframe is not the system event of frame behavior. It is the event of parent script.

 

Property in movie script

property is the local variable of behavior or parent script. If you have to write it, writing property AA in movie script will not cause syntax errors or the like. But because movie does not have the me concept, the property in movie script is actually a dead object.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.