Flasher Archive

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


Subject: Re: FLASH: Help - two frames/two movies
From: Sarah Lamont
Date: Fri, 24 Mar 2000 20:19:45 GMT

hey Pat,

You're probably going to have to use Javascript to send the variable to
the other frame.
Okay, I'm going to attempt to help you out, but bear in mind I've had
like 6 diet cokes at this point in the day... caffeine.....

Now, as I'm thinking this through a bit more, it seems that you should
maybe use a frame [in the timeline] of the first movie with an action
that uses javascript to change a variable and send it to the next movie.
I think this code will send the variable to the other frame:
<SCRIPT LANGUAGE="JavaScript">
<!--
function sendVariable() {
parent.otherframename.nameofswf.localvar = localvar;
}
//-->
</SCRIPT>

I think that if you put a getURL action in a frame of the first movie
with "javascript:sendVariable()", this should send the variable to the
other movie in the other frame. In this other movie, the first frame
should contain the if, then statement to check for that variable.
-Make sure that you get all the names right in the javascript; meaning
especially the "nameofswf" should be the same name that is in the Embed
and Object tags of the html where the swf resides.

Okay.... in theory I think that should work.
Ask me if you are confused...I know I'm not the best at explaining things...:]
HTH,
�arah

Tirahmisu wrote:
>
> Hi Sarah:
>
> Yes, that makes sense and is something I am trying to
> do, as well as playing around with Load Movie.
>
> The issue that is driving me up a wall is the actual
> pathing and targetting. How can one movie talk to another
> movie in another HTML frame when the only thing that will
> specify a particular HTML frame to go to is Get URL?
>
> I understand the Load Movie info in John Croteau and Ken
> Mullburn's book, read it several times and played with it,
> but still can't see how the whole separate HTML frame thing
> would be handled.
>
> Ok a bit more light on my project:
>
> I'm working on a web site that starts out in two HTML frames
> like this:
>
> -------------
> | |
> -------------
> | |
> | |
> | |
> -------------
>
> The name of the top frame is Flash, the name of the bottom
> one is Content.
>
> The whole thing starts with the top frame just being empty,
> and the bottom one playing an intro splash swf. At the end
> of this swf is a Get URL to load an HTML page into the top
> frame with an embedded swf of the site navigation,
> window = flash.
>
> This works fine on a fast connection, but I have a sound loop
> in that top swf that really causes the load time to grind
> on a 56k modem, so I want the whole thing to pre-load -while-
> the opening splash animation is playing in Content, but not
> play the movie in Flash until the movie in Content is done.
>
> The reason why we are using this two frame set-up is because
> we need the bottom frame around for loading static HTML pages
> when the user uses the nav that builds into the top frame.
>
> Hope that's more clear. Thanks Sarah and everyone.
>
> Pat

--
"When I die, I hope it can be said of me that I plucked a thistle and
planted a flower where ever I thought a flower would grow." -Abraham Lincoln

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Help - two frames/two movies, Tirahmisu

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