Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting SWF to talk to eachother on 1 HTML page

Status
Not open for further replies.

punchman

Technical User
Feb 12, 2001
9
US
(Flash 4) I have 2 movies on the same HTML page.
The actions of movie A need to change the text displayed in movie B.
I just can't figgure out how to get the variables of the 2 movies to talk to eachother.

Another example of what I am doing would be:
Movie a- "Enter your name here _______"
Movie b- "Your name is _______"

So how do I get them to talk to eachother?
What if they were in different frames?
What if my parrents named me Salley?
 
if one movie is loading the other then just use targeting to achieve your solution (see flash help). If in separate frames......good luck! ;-)

dD davdesign@hotmail.com

^^^^^^^^^^^^^^^^
 
One movie loading the other 'eh? Hmmm I'll look into it...
The problem is that Movie "A" will load in the other Movie "A"s But Movie "B" need (must) only be opened once.

Thanks for the Quick help.
I mean I turn my head for a second and "BAMPF!" there you is!

(I am drawing a picture of davidesign right now with a lightning bolt on his chest.)

I think from now on we should all look at my issue as if it were in different frames.

Does Flash 5 handle this issue?
(I have 5 but ugh... it is so... ugh)
 
why not:

make your movies as if they were two halfs of one whole (???). What I mean is, say your movie is 600 wide by 600, then make movie B in the bottom half only (600wide by the bottom 300). Then make all you movie A's in the top half of a 600x600 movie. This way you dont get any overlaps of movies and if you want movieA1 to be replace by movieA2 then you simply load movieB into level0, movieA1 into level1 and then subsequent movieA's into level 1 (taking over previous movieA).

dD davdesign@hotmail.com

^^^^^^^^^^^^^^^^
 
you said "subsequent" ha ha ha ha!
no really, ha.

I appreciate your thoughts, and I have the idea, but the problem is that there is more than one Movie "A" there will be close to 300+ movies that will need to be playing the old switch-a-roo. (I don't tend to do things small)

EX> Movie "A001" "My name is Matt"
Movie "B" would then say "Movie A is Matt"
Movie "A001" would then load up Movie "A002"
Movie "A002" "My name is Tom"
Movie "B" would then say "Movie A is Matt and Tom"
And so on for the rest of my years...

Oh, and remember that for the rest of these conversations that Movie "A" and Movie "B" MUST be in different frames for practical demonstrative examples.

I'm thinking that JAVA is my alternative... I just rather do laundry than learn it tonight.
 
Davdesign is right (I think-- still testing) about the SWF calling the movies in and killin' out the old movies as a way to make it work... I now just have to get used to that Flash function and make it all look pretty. (If it didn't need to look pretty, we'd all be usin' BasicA) Still, if someone needs a reason to loose sleep and can think of a fun JAVA type salution for the issue, I'd love to hear it <300 code lines or less> as for me and mine, we might just find ourselves in forced contentness with the advice of dear old Davdesign, warmin' our feet by the warm glow of my TRS80s, Color Computers, and PIII 500s as I call it a night and drift off into the obsolete.
 
TEMP SALUTION:

TEST1.swf <550x400>
Button
On (Release)
Load Movie (&quot;test2.swf&quot;,1)
End On

TEST2.swf <450x400>
Button
On (Release)
Load Movie (&quot;test3.swf&quot;,1)
End On

TEST3.swf <450x400>
Button
On (Release)
Load Movie (&quot;test2.swf&quot;,1)
End On

This seems to work, now I am left with the labirous task of putting in all my variables, trinkets, and doo-dads...

 
If movie b is just text, use .txt files and load them from buttons in movie a (or actions or whatever). If not, then please disregard this advice. It would make your movie size much smaller and would be a lot easier to organize. Do you have some trial runs of it up so we can see it? There will be by my say-so an easier way than using 300 .swfs or resorting to Java.

Blended
 
Hey! Guys! Your troubles are over!
Just saw it on the news!
A new invention... It's called a telephone!
What a name! Apparently, you just dial a number, and you can actually talk to somebody or even transfer data.
Of course... It's a bit expensive for the moment, so if you can afford it right away, guess you'll have to rely on good old chat!
What will they come up with next! Amazing!

Am I out in the woods or what?
I need some rest... I'm so old!

TEST500,000.swf <450x400>
Button
On (Release)
Load Movie (&quot;test500,001.swf&quot;,1)
End On

... Yeah! Looking good! Only a few more to go!

Goooooooooodnight!

s-) &quot;If nothing else, I can always serve as a bad example!”

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top