Tut11-script Basics

Source: Internet
Author: User

Dean's: http://www.deansdirectortutorials.com/scripting/tut11.htm


Director has four types of scripts:

Behaviors, cast member scripts, movie scripts, parent scripts

In the first three cases, the storage location determines the valid range and lifecycle of the script.

The last one can be understood as a class library.


Operate one 

From the tool panel, pull a button (the last one in the lower right) to the stage,

Right-click cast member script on the button in cast ..

In the script

On mouseup And





Then play the video, and then click the button ....

Why didn't the problem come?

Then add


Alert "multimedia in design is the greatest subject! "

Still not dynamic?


Because the tool panel is not in Classic mode.

Director MX 2004 and later, you must first change mode to classic.


I mentioned at the start that you should useClassicMode buttons.The reason is that the other modes create 

Flash componentButtons, which work in a slightly different way.


The buttons created in other modes are flash component buttons, which work in slightly different ways.

By default, the flash component buttons are set as inactive, which can be changed in property inpector.

The last eventpassmode in flash component is # passnever by default. Change it to # passalways.


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.