Flasher Archive

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


Subject: FLASH: Sending variables to movie in a different html-frame
From: Kristof Vandommele
Date: Thu, 5 Aug 1999 21:26:35 +0100

Hi all,

I'm pretty new to Flash and I have a problem I can't seem to solve.

I have a setup of two flashmovies in different HMTL-frames. The movie in
left HTML-frame (i'll name this one leftMovie) controls the movie in right
HTML-frame (rightMovie).

leftMovie contains 3 buttons which trigger different animated menu's (they
slide in from the top and out to the top) in rightMovie.

The first time any of the 3 buttons in leftMovie is clicked, the following
things happen:
1. leftMovie checks to see if any of these buttons has been pushed already
(i did this with a variable).
2. If none of them has been clicked, a variable (buttonsClicked) is set to
indicate that a button has been clicked
3. a FS Command is sent (to left HTML-page) with the name of the
framelabel I want to play in rightMovie.

This works okay: I push button 2 in leftMovie and menu 2 slides down in
rightMovie


If any of the 3 buttons already has been clicked, it becomes a bit more
tricky:
1. leftMovie checks if the variable buttonsClicked has been set
(indicating that at least one of the 3 buttons has been clicked).
No problem with this, it works.
2. I want to roll up the already present menu in rightMovie.
I send my first FS Command : moveOut, which triggers the following script:

if ( command=="moveOut" )
{
targetFrame = map.FrameNum + 5;
map.TGotoFrame("_flash0",targetFrame);
}
Basically, this script gets the framenumber of rightMovie and tells it to
go 5 frames further. This frame contains a 'Play'-action and starts a
'roll-up' animation: the existing menu in rightMovie slides up.

So far so good, i've got this working as well.


3. The last thing I want to happen, is that when the menu has done it's
'roll-up' animation, the new menu slides down:

e.g.: when the movies have loaded, you click button 2 and menu 2 slides
down. Then you click button 1, menu 2 slides up after which menu 1 slides
down.

So I 've put a small action in the last frame of each of the menu-slide-up
sequences:

Go to and Play (SlideOut)

SlideOut is a variable and contains the name of a framelabel. The variable
should be sent with my second FS Command from leftMovie to rightMovie, but
.... I can't get this to work.

The flash-action script looks like this:
FS Command ("goToSlider", "foundationSlideIn")
(goToSlider is the command, foundationSlideIn the framelabel)

The javascript looks like this:
if ( command=="goToSlider" )
{
args=""+args;
map.SlideOut("_flash0",args);
}

The error that happens is this one:
the argument of slideOut (sent from leftMovie) is passed to the script
correctly (i checked this with an alert-box), but then I get a 'Object
doesn't support this property or method' and the value isn't passed to
rightMovie.

Anyone out there who has a clue how to solve this?



Kristof Vandommele
kristofattales [dot] be






------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Sending variables to movie in, Wes Tilson

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