Learn: JavaScript & Flash

Home Food Mates • Members Tutorials Forum Buy Templates Contact Us 

 


Flash Tutorials

   

Tutorial - Communication between Flash Movies: Part 2

 

Free Flash / JavaScript Tutorial


Step 6    <<   Previous      Intro   1   2   3   4   5   6    >>       >>   Webwasp Mates

 

Step Six: Creating the Web Page - Pop 2

  1. On the third web page in the body section, add the following code for the second Pop Up:
  2. <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="70" HEIGHT="70" id="pop2" ALIGN="">
    <PARAM NAME=movie VALUE="pop2.swf">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#FFDC5A>
    <EMBED src="pop2.swf" quality=high bgcolor=#FFDC5A WIDTH="70" HEIGHT="70" NAME="pop2" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
    </EMBED>
    </OBJECT>

  3. Save the page as: pop2.html
  4. Now make sure all the swf files you exported earlier and the web pages are all in the same folder or location on your computer.
  5. Then test it. You should find that:
    1. If you click the first button it opens a new Pop Up Window, and if the second button pop up window is open, it will close it.
    2. If you click the second button, it will close the first Pop Up Window and open a new one.
    3. if you click the third button it will close any open Pop Up Windows.

Now although opening and closing Pop Up Windows may not seem amazing, it illustrates how you can run commands and send information to and from different Flash Movies. These flash movies can be on the same page or on different pages. You can use this example and modify it to run any function or pass any information between Flash Movies. It is highly adaptable and versatile and is simple to use. It seems to work no matter where you put the flash movies.

 

Please indicate what you thought of this tutorial 
10 is the best: 
10 9 8 7 6 5 4 3 2 1

         

Step 6    <<   Previous      Intro   1   2   3   4   5   6    >>       >>   Webwasp Mates


Webwasp Community: Webwasp Mates & Dates

Why not try out webwasp's new community. Meet new people, find friends in your area: Webwasp Mates & Dates

 Top of Page Home Food Mates Members Tutorials Forum Buy Templates Contact Us 
 All material on this site is protected under international copyright © law. DO NOT reproduce any material from this site without written permission. Please ask as permission is often granted.