Click to See Complete Forum and Search --> : [RESOLVED] Flash talking to html
thesween
11-16-2007, 07:51 PM
Hello, I have a very simple html doc with 3 frames.. I have a header, menu & main frame. I am adding a flash menu to control the main frame... I know that I can use <a href ="frame_a.htm" target ="mainframe">Frame a</a> if I were making a html menu. Does anyone know what code I can use for the buttons in a flash movie to control my mainframe?
Cheers
Steve
Stoke Laurie
11-17-2007, 06:53 AM
Have a look on Necros site under communication, hes got an example of senders and receivers so the two swf "talk" to eachother.
thesween
11-17-2007, 04:50 PM
Thanks for the reply Stoke, I have already looked at Necros example, but it doesnt help at the mo as I want an swf to tell an html frame what to do. Help!
Stoke Laurie
11-17-2007, 04:51 PM
What do you want it to do?
thesween
11-19-2007, 07:39 AM
Hi Stoke, I have worked this out, maybe it was me being abit thick...
I have an html split into frames, one frame Ive named 'mainframe'...
<html>
<head>
<title>theSWEEN.com</title>
</head>
<frameset rows="250,500" border="0">
<frame noresize="noresize" src="header.swf">
<frameset cols="20%,60%,20%" border="0">
<frame noresize="noresize" src="menu.swf">
<frame noresize="noresize" src="frame_c.htm" name="mainframe">
<frame noresize="noresize" src="frame_c.htm" name="rframe">
</frameset>
</frameset>
</html>
I have a flash menu on the leftside and am using the following code in the swf to load the mainframe so the whole page doesnt have to reload...
on (release) {
getURL("new.html",_target="mainframe");
}
so simple, I couldnt work it out haha
If anyone else is trying this, remember, when you are testing it on your computer, it will not load the mainframe, it will load in a new window. you need to upload everything to your server to test it properly.
Stoke Laurie
11-19-2007, 08:49 AM
Glad You got there.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.