Adobe Lingo communication with Flash Actionscript

Posted on 2009-02-18
Last Modified: 2013-12-24
See gthe code in actionscript. "gFlashServicesArray" is a global variable in lingo. it contains a value  = {0,0,0,0,0] if all 5 checkboxes from the flash asset in director are set to off. If director, the user can turn on or off any of the fix buttons and "gFlashServicesArray" will get updated (Example: the first button is clicked, so the value of "gFlashServicesArray" is now = {1,0,0,0,0], etc).

I need to be able to update "gFlashServicesArray" in director and then read it in flash to determine if the button is in the On or Off state.


I need to set the state in flash and then update "gFlashServicesArray" (which ios what I was trying to do originally.
on (release) {

	click = getURL("lingo:_global.gFlashServicesArray[1]");

	trace("Click: " + click);


	if (click == true) {



		click = false;

	} else {



		click = true;




Open in new window

Question by:msukow
    1 Comment
    LVL 39

    Accepted Solution

    not sure which version of flash  you're using but you can use FSCommand and probably External Interface.

    From Help File re fscomman.
    Usage 3: The fscommand() function can send messages to Macromedia Director. These messages are interpreted by Lingo (the Director scripting language) as strings, events, or executable Lingo code. If a message is a string or an event, you must write the Lingo code to receive the message from the fscommand() function and carry out an action in Director. For more information, see the Director Support Center at

    i'm not sure if this will work and I don't have director to test it with but you may be able to use ExternalInterface.
    that's why i use to communicate between Flash and C#.

    so in flash to access a function in the external app"flashToC",msgToC);

    and in order for the external to access flash

    ExternalInterface.addCallback("initBtn", this,initBtn);

    this way you must have a function in flash called initBtn which the extenal app can access.

    so in your case try setup functions which accepts value and sets the variable to that value.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now