Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: passing variables problems...
From: Kathy Vergucht
Date: Thu, 15 Feb 2001 17:49:01 -0000

H!

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.

Navigation.swf contains 4 buttons.
---------------------------------------------------------
BUT1

on (press) {
About = "1";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------
BUT2

on (press) {
About = "2";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------
BUT3

on (press) {
About = "3";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------
BUT4

on (press) {
About = "4";
loadMovie ("about_window.swf", "_level0.windows");
---------------------------------------------------------

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"

In "about_window.swf" I have a dynamic text field called 'varSection'.
The script in the first frame of this SFW is as follows:

---------------------------------------------------------

if (About="1") {
varSection = "about text 1";
} else if (About="2") {
varSection = "about text 2";
} else if (About="3") {
varSection = "about text 3";
} else {
varSection = "about text 4";
}
stop ();
---------------------------------------------------------


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]