Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Frames and scripting

Status
Not open for further replies.

darxpan

Programmer
Oct 14, 2003
33
US
I made a title and navagation for my website using flash. I am using framesets to display flash and HTML at the same time. My navigation has buttons. I want the buttons to change a different frame in the window. That is I want the flash movie to display while the HTML content below it changes. How can I get Flash to tell the window only to change the frame below the flash frame?

I know Javascript, but I can't seem to get FSCommand to work.
 
You want your top frame's Flash movie to call up different htmls in the bottom frame of your frameset?
 
yes, that's right. Sorry if i was unclear.
 
I forgot to mention that I am not using MX, but Flash 5.
 
You would use a getURL on your buttons and target the bottom frame's name...
Code:
on(release){
getURL("[URL unfurl="true"]http://www.google.com",[/URL] "bottom_frame");
}

Make sure you replace "bottom_frame", with the exact frame name, you gave that bottom frame when defining your frameset.
 
I tried that and it sort of works. Here's the weird part. Let me explain.

1. I publish the flash to HTML. I click on the file. Everything works.

2. I put that exact same web page and movie inside another HTML page that puts it in a frame. The movie runs, but the buttons won't click. The rollovers work, but not the "Down" state of the button. The action script for the buttons never runs.

Any suggestions?

 
Ummmmmmmmmmh!
post a link to your .fla and htmls, zipped up and in MX only format.
 
Put your Darx.html in the same folder as your home.htm and Test.html... Change your url in the Darx.html to a full path to the Darx.swf...

Works for me!
 
Thanks so much. The last problem was that I was linking to an old copy of the Flash movie. All I had to do was fix the URL reference in the frameset.
DOH!

Thanks again. Sometimes it just takes another eye to see the obvious.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top