Incomplete jsfl Manual

Source: Internet
Author: User

Http://iamzealotwang.iteye.com/blog/577801

Jsfl is a very powerful thing, and the deeper the research, the more powerful it is.

 

Next I will share some of my summary with you.

 

1 'jsfl storage path

1) jsfl files can be separately stored on disks. You only need to select the open method Adobe falsh.

2) Place the jsfl File

*: \ Documents and Settings \ * username * \ Local Settings \ Application Data \ Adobe \ Flash cs4 \ zh_cn \ Configuration \ commands

Go to any flash file and select the command menu to view your newly created jsfl.

 

The first storage method is suitable for writing batch operation scripts using other tools (such as Java, the second method is more convenient and scripted for specific flash operations (such as complex and boring operations for art .)

 

 

2 'Use of functions in jsfl

You can add function calls in the script, for example:

 

Function print (_ message)

{

Fl. Trace (_ message );

// Return something if you want you can return somethings

}

 

Note that the functions in jsfl are different from those in the as code.

 

1) The declaration of functions (including variables) in jsfl is unnecessary and cannot specify types, such as var I: Int.

2) If the function requires a retun result, directly return does not need to declare the return type before the function.

 

3. file write operations

Jsfl is powerful because it can write files, so that it can easily share information with other programs.

The file writing method is very simple.

Flfile. Write (filepath, message, "APPEND ");

Filepaht: file: // test. xml

Message is the content to be written.

The append parameter indicates that it is added at the end of an existing file, rather than overwriting the write.

 

4 'stage-related classes

1) Document: document refers to a FLA file opened by the user. a fla file is a document

2) timeline: timeline is used to edit the timeline of flash.

3) layer: layer is the layer on the timeline.

4) frame: frame is the frame in the layer.

5) element: the element in the frame, that is, the element that can be seen on the stage.

Elements on the stage are symbolinstance with an inheritance relationship-> instance-> element

 

 

5. Library-related classes

1) The Library is the corresponding flash library.

2) item corresponds to the original in the database.

 

 

The above are some of my frequently used things and I will share them with you.

If you have any questions, please leave me a message.

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.