Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: Variables, navigation & LoadMovie |
From: | Richard |
Date: | Wed, 18 Oct 2000 23:59:43 +0100 |
Hi there
A simple question:
I'm using variables to establish a navigation system for a Flash based site.
There are four "galleries" each of which are seperate swfs and are loaded
into level 2.
>From the main navigation frame, a user clicks, say the Gallery 1 button
which does the following:
on (release) {
gotoAndPlay ("gallery trans", "transition");
gallery = "1";
}
A transition scene is thus played and the variable gallery is set to "1". I
need the variable so that I can load the correct movie after the tranistion
scene depending on the button clicked.
Then on the last frame of the transition scene, the following action plays:
if (gallery="1") {
loadMovieNum ("G1A.swf", 2);
} else if (gallery="2") {
loadMovieNum ("G2A.swf", 2);
} else if (gallery="3") {
loadMovieNum ("G3A.swf", 2);
} else if (gallery="4") {
loadMovieNum ("G4A.swf", 2);
}
Trouble is, I can't get the other movies to load - only G1A.swf loads and it
does so regardless of the button pressed. I infer from this that there is a
problem either with the setting and reading of the variables OR with the
if...else if statements in the above frame action.
I've run out of debugging ideas. This is my first attempt at ActionScript
and I'm certain I'm doing something pretty obviously wrong.
I hope someone can help me!!
Cheers
Richard
PS what is the difference between loadMovieNum and loadMovie? In the
ActionScript reference manual, I can find no mention of the former yet that
is what is used when I click loadMovie in the scrtipting dialog box.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: Variables, navigation & LoadM, Randy Kato
RE: FLASH: Variables, navigation & LoadM, Matthijs Koevoets
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]