Flasher Archive

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


Subject: FLASH: RE: inconsistency in loading variables
From: Tobie Kerridge
Date: Mon, 15 May 2000 18:04:42 +0100

Hi Anders,

I had this problem. The only way I could get round it in 100% of browsers
was to use the "stub" movie idea from director. Its not very elegant, but it
works.

When someone click on your navigation and you need to reflect a change in
area, reload one of your 12 stub movies with:

Get URL stub3.htm

This html page embeds the 3rd of 12 swf movies. Each of theses movies has
the same size and background colour as your main movie, and contains just 1
frame with a frame action. They are very tiny in file size:

Set Variable: "currentSection" = "3"
Load Movie ("mainMovie.swf", 1)

The value for "currentSection" is the only thing that differs between all
the stub movies in this case I use 3. When the main movie is loaded in level
1, there is another action script in the first frame of that movie to pick
up the "currentSection" value:

Set Variable: "goToLabel" = eval("_level0:currentSection")

then go do a label in the scene to reflect current area (You could do
whatever you wanted with the variable to and reflect the state of current
action):

If (eval("goToLabel") = 1)
Go to and Play ("section1LabelName")
Else If (eval("goToLabel") = 2)
Go to and Play ("section2LabelName")
Else If (eval("goToLabel") = 3)
Go to and Play ("sectio31LabelName")
(((etc. for each of the 12 options)))
End If

There you are. Very long winded, I'm sure there is a more efficient way of
doing it, but it works. I used it in a frameset situation.

cheers



-------------------------------------
Tobie Kerridge
Mook

a: 116 Baker Street, London, W1M 1LB
w: http://www.mook.co.uk
e: tobieatmook [dot] co [dot] uk
t: 020 7959 1530

----------
>From: owneratchinwag [dot] com (flasher-digest)
>To: flasher-digestatchinwag [dot] com
>Subject: flasher-digest V1 #3027
>Date: Mon, May 15, 2000, 4:47 pm
>

> FLASH: inconsistency in loading variables

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: How To Refer to Loaded Movies, Scott Rossi

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