G2MD
asked on
Get URL to other HTML frame
I have a flash movie with some buttons. I want that these button will have "Get URL" in their "Action", but i want that the URL's in other html frame diferent to html frame parent of the movie.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Say you have two movies in two frames left and right. This code will allow you to control a flash movie in other frame by clicking on the buttons in one frame.
1. in the flash movie on the left, you need to add actions to the buttons that are to control the movie on the right. the actions are:
GetURL "javascript:controlFlash(f
save, and export the movie.
2. in the HTML page for left.html, add this code right after the </title> tag:
<script language="JavaScript">
<!--
function controlFlash(theFrame){
parent.frames.right.right.
}
</script>
3. in this same left.html page, add this tag to the EMBED tag. it goes after the last part "P1_Prod_Version=Shockwave
swLiveConnect="true"
save this file and close it.
4. in the HTML for right.html, add this to the EMBED tag, right after this part "<EMBED src="right.swf"" -
name=right
5. save all the documents and
test in browser.
this should work on most browsers, with the exception of macintosh internet explorer 4.5 and below, which has limited implementation of javascript.
let me know if this works for you.