Ask a Question related to Macromedia Director Lingo, Design and Development.
-
Jonas Voss #1
Passing variables between scripts
Hi there
Director and Lingo beginner her, and I've googled for this in this
group and others and on the web. I am not sure that what I want is
possible at all, hopefully someone in here can enlighten me.
I have a movie clip where two overlaying sprites take up half the
screen each. For each of the sprites I have a script incrementing a
counter for every mouseWithin.
At the end of the movie clip, I would like the value of the two
incrementers (sp?) to be passed on to a third script triggered at the
end of the movie. However, I haven't succeeded in passing these
variables yet.
I've made them global in each script for the sprites (by using global
variable at the top of each script), and then made them global in the
endMovie script, where I try to print them to screen via an alert, but
they are empty.
I haven't got the code I've used readily available right now, but if
you need any code to be able to help, please let me know.
--
| Jonas @ 55.75, 12.42 | <http://verture.net/> |
BOFH-excuse: excess surge protection
Jonas Voss Guest
-
Users editing PHP variables or scripts
Hi, I have a PHP template that contains an include for a page header but this script requires three variables that are pass to the header.php page... -
Passing Variables from swf to swf
Is there a good tutorial to do this? I am building greeting cards - I am loading a seperate file before I print them out so I am trying to pass... -
Launching shell scripts using PERL and passing arguments
Hello All, I have a very basic question. I need to launch a Bourne shell script using PERL and automate the responses required by the script. I... -
Passing Objects between scripts and guarateeing that a language has been choosen.
Hi, I am just starting to understand how the session handling routines work in php. I can pass objects to other scripts. So I can put the... -
[PHP] Passing Objects between scripts and guarateeing thata language has been choosen.
How can I guarantee that a language is always choosen? I mean how is this done professionally? What do I have to write at the beginning of every... -
Jonas Voss #2
Re: Passing variables between scripts
In macromedia.director.lingo, Jonas Voss <voss@null.dk> wrote:
[...]
> I've made them global in each script for the sprites (by using global
> variable at the top of each script), and then made them global in the
> endMovie script, where I try to print them to screen via an alert, but
> they are empty.Ok, scratch that. I've just read through the code again, and it was a> I haven't got the code I've used readily available right now, but if
> you need any code to be able to help, please let me know.
blatant fault on my behalf. Just two lines down from declaring the
variables global, I declared them again as a property, which I
understand is only in the local scope. Naturally, the variables
weren't passed between the scripts then.
So, no alarm, nothing to see here, move along (:
--
| Jonas @ 55.75, 12.42 | <http://verture.net/> |
BOFH-excuse: Bit rot
Jonas Voss Guest



Reply With Quote

