Load URL into a htmlframe

Okay. I got a swf in one “html frame” and I wanna load a url into another one. on(release) { getURL(“my.html”, “myframe”); } doesn’t work. It just open a new window. Pleease help.

Hi, it should work!

I work with this code on the buttons:

on (release) {
getURL(“your.html”, “yourframe”);
}

Did you give your frame the same name (yourframe)?

Try “name” and “ID”, some browsers need also the “ID”.
I uses inlineFrames for this. Here an example of a site I made that way:

I hope that helps

Cheers

Oh, no I didnt name my frame that way. I suppose you don’t mean the filename, like myframe.htm… How’s the tag to give my frame a name? p <frame name=“hmhm” width=“70%”> ?

nice site, btw btw. :slight_smile:

heh, hm, What do you mean with inlineFrames?

You need to specify the correct target for the geturl. In this case, the target will be whatever the name of the frame is that you want to load the page into. Not the title of the page in the frame, but the actual name of the frame that was defined in the frameset. I hope this makes sense… Just make sure you’re using the exact frame name and it will work, if it is even a little bit different then it will load a new page.

-EG

Hmm, defined in the frameset. Every frame got its one .htm and a name before that. so like “myframe.htm” is that what you mean? Oo thanks for the help.

nah dude, it’s not the filename - because any frame could have any number of different files in it… it’s the name of the actual frame as defined in your frameset html… ie.

Here’s an example…

        <frameset  cols="200,*" border="0">
	        <frame src="Navigation.htm" name="LeftFrame">
		<frameset rows="*,50" border="0">
		       <frame src="About.htm" name="MainFrame">
		       <frame src="Copyright.htm" name="BottomFrame">
		</frameset>
	</frameset>

Here, the frame names would be “LeftFrame”, “MainFrame”, and “BottomFrame”. You can see this frames example at this link. It was just an exercise for school.

-EG

Aha, I get it now. :smiley: I got confused cause I looked at the code in dreamweaver and it didnt show the framesetcode. Just the framecode. So I just open the frameset in wordpad. Thank you so much! :smiley:

Or here something with an inlineframe:



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>YOUR SITE</title>
	</head>

	<body bgcolor="#ffffff">
		<table width="60" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr height="100">
				<td align="center" height="100"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="120" width="790">
						<param name="wmode" value="transparent">
						<param name="movie" value="nav.swf">
						<param name="scale" value="exactfit">
						<param name="quality" value="best">
						<param name="play" value="true">
						<embed height="120" pluginspage="http://www.macromedia.com/go/getflashplayer" src="nav.swf" type="application/x-shockwave-flash" width="790" quality="best" play="true" scale="exactfit" wmode="transparent"> 
					</object></td>
			</tr>
			<tr>
				<td>
					<iframe id="yourframe" name="yourframe" src="home.html" frameborder="0" width=790 height=400 scrolling=auto align=left hspace=25></iframe>
					 </td>
			</tr>
		</table>
		<p></p>
	</body>

</html>

Hi pacno, nice website man. I got a question for u coz i’m just starting using flash mx 2004. Did you made your entire website using flash? or did u used some extra software like dreamweaver or forntpage?
I asked it, coz right now i just start building my website but i wish to build it using only flash. If u have some advice about it, i’ll really appreciate it.
Bye!