|
-
theSWEEN
[RESOLVED] Flash talking to html
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
-
That web bloke
Have a look on Necros site under communication, hes got an example of senders and receivers so the two swf "talk" to eachother.
-
theSWEEN
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!
-
That web bloke
What do you want it to do?
-
theSWEEN
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.
-
That web bloke
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|