Flash menu and html frames

 

The goal is to show how to display a page in an html frame from a flash menu

menu flash et frames html

Principle

We just need getUrl. Let's see the different stages.

html pages

1 - With your favourite text editor, create index.htm which you 'll put in :
<html><head><title>essai changement frame avec flash</title></head>
<frameset framespacing="0" border="1" cols="139,*" frameborder="1">
<frame name="left" scrolling="no" noresize target="rbottom" src="menu.htm">
<frameset rows="50,*">
<frame name="rtop" target="rbottom" src="up.htm" scrolling="no">
<frame name="rbottom" src="accueil.htm" scrolling="auto">
</frameset>
<noframes>
<body>
<p>This page uses frames but your browser don't support them.</p>
</body> </noframes></frameset> </html>

2 - Create up.htm :
<html><head><base target="rbottom"></head>
<body bgcolor="#AAAAAA">
<div align="center"> <center><H2>Page Entête</H2></center></div>
</body></html>

3 - Create main.htm
<html><head><title>Accueil</title></head>
<body bgcolor="#CCCCCC">
<div align="center"><center>
<H1>Welcome</H1></center></div>
</body></html>

4 - Create page1.htm, page2.htm, page3.htm :
( change text ! )
<html><head><title>Page 1</title></head>
<body bgcolor="#CCCCCC">
<div align="center"><center><H1>This is page 1</H1>
</center></div></body></html>

Flash menu

1 - Settings :

movie properties

In Movie Properties (= CTRL J) , toggle Stop playing at end of movie

2 - Create 4 text as shown :

menu

3 - Put the following scripts :
- for text Menu : on (release) { getURL("accueil.htm", "rbottom"); }
- for text > Page1 : on (release) { getURL("page1.htm", "rbottom"); }
- for text > Page2 : on (release) { getURL("page2.htm", "rbottom"); }
- for text > Page3 : on (release) { getURL("page3.htm", "rbottom"); }

4 - Save ( menu.swi ) then export ( menu.htm ) Test !

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.003 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google