Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: [flasher] passing variables problems... |
From: | Muzak |
Date: | Thu, 15 Feb 2001 18:25:24 -0000 |
Hi Kathy,
that's because the variable "About" lives in the MC where you've set it, so you have to address it like that, with the full path, to
get it's value. A better way might be to store the variable in the main timeline (_root or _level0).
---------------------------------------------------------
BUT1
on (press) {
_level0.About = "1";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------
BUT2
on (press) {
_level0.About = "2";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------
BUT3
on (press) {
_level0.About = "3";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------
BUT4
on (press) {
_level0.About = "4";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------
if (_level0.About="1") {
varSection = "about text 1";
} else if (_level0.About="2") {
varSection = "about text 2";
} else if (_level0.About="3") {
varSection = "about text 3";
} else {
varSection = "about text 4";
}
stop ();
---------------------------------------------------------
HTH,
Muzak
----- Original Message -----
From: "Kathy Vergucht" <kathy [dot] verguchtuk [dot] easynet [dot] net>
> I have 3 swf's:
> main.swf
> navigation.swf
> about_window.sfw
>
> Main.swf contains 2 empty MC's with instance names 'navigation' and
> 'windows'.
> At the beginning of main.swf, navigation.swf is loaded into 'navigation' and
> replaces the empty MC.
>
>
> Basically i'm setting a variable for each button. The variable name is
> 'About'
> When they click one of these buttons, let's say BUT1, it sets the var to "1"
> and it starts loading "about_window.swf" in the other empty MC
> "_level0.windows"
>
> MY PROBLEM!
> when you click but1, the variable 'About = "1"' is not passed on to
> windows.swf...so it doesn't know if the condition is met.
>
> What am i doing wrong? Anyhelp is welcome...
>
> Cheers,
> Kathy
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]