Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 445593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:23:12+00:00 2026-05-12T21:23:12+00:00

I have a Director project with 3 scripts (2 behaviors and 1 movie script).

  • 0

I have a Director project with 3 scripts (2 behaviors and 1 movie script). I have the following code in my movie script:

on startRecording ()
  --do stuff
  _movie.script["script2"].passGrade(75, 3, 4)
end

and in one of my behavior scripts, I have the following:

on passGrade (acc, dur, tim)
  member("Assessment", "Assessment").displayGrade(acc, dur, tim)
end passGrade

where the name of the second behavior script is script2and there is a Flash object on the stage called Assessment which has an ActionScript method called displayGrade which takes 3 numbers as input.

I have 2 questions. First, the call -movie.script["script2"].passGrade(75, 3, 4) does not work, and I can’t figure out why. Am I not allowed to call from a movie script to a behavior? Or am I not doing this correctly? The second question is how do I call the ActionScript method? The script is defined as a behavior for the Flash object, which is called Assessment, but Director doesn’t seem to be able to locate the method.

I am using Director 11 with HotFix 3, and the Flash object was compiled for ActionScript 2.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:23:12+00:00Added an answer on May 12, 2026 at 9:23 pm

    The syntax for calling the behavior script should rather be:

    script(“script2”).passGrade(75, 3, 4)

    Alternatively you could attach your behavior to the flash sprite (the instance of your flash on the stage), and send the call to the sprite:

    sendSprite (flashSpriteNumOrNameOrRef, #passGrade, 75, 3, 4)

    About calling a function inside the flash sprite, you do more or less the same, but you send the call to the flash sprite, not the member:

    sprite(flashSpriteNumOrNameOrRef).displayGrade(acc, dur, tim)

    if the behavior is attached to the sprite:
    sprite(me.spriteNum).displayGrade(acc, dur, tim)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Flash sprite in my Director project. Under the Properties of that
Suppose I have the following directory layout in a Maven project: src/ |-- main
I have a directory structure like the following; script.php inc/include1.php inc/include2.php objects/object1.php objects/object2.php soap/soap.php
In our web application we have a directory which resides outside of the project.
I have multiple branches of a project checked out, each under their own directory
If i have the following directory structure: Project1/bin/debug Project2/xml/file.xml I am trying to refer
I have a directory with PDF files that I need to create an index
I have a directory with several subdirectories with files. How can I copy all
I have a directory of bitmaps that are all of the same dimension. I
I have a directory full of files and I need to pull the headers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.