Groups | Blog | Home
all groups > flash (macromedia) > april 2006 >

flash (macromedia) : Flash header in HTML frames


BullocksTroy
4/10/2006 10:09:21 PM
I created a Flash header to use in my HTML site, which I've never done before,
so I need some help.
Ok, so here's the draft I have now:

http://www.whsphealthcaremanagement.com/index_HCM.html

I want the header to be static, and the white area to be where the page
content appears (it should be scrollable.) I don't think my host supports SSIs.
so how would I do this - in frames?
if so, what would the action script look like on my button in Flash? how do I
get the page to open up in that middle frame?
mgum
4/12/2006 12:00:00 AM
Why dont you just make the whole page in flash....i believe that this would be
much easier. Set each button to use gotoAndStop to go to a specific frame in
flash. Send me a message if you need more help.
fpproductions
4/12/2006 12:41:45 PM
I think to accomplish what you're looking to do, you'd have to have your Flash
file call a javascript routine that resides in your SWF's HTML file.

The javascript routine would then set the SRC of the frame. Info on setting
that up can be found at: http://www.permadi.com/tutorial/flashcalljs/

In terms of what the Javascript code should say and do, you'd want something
like:

if (command == "changeFrameSrc")
parent.content_frame.location = args;

For the Javascript code to work, you'll need to make a small change to your
FRAME tag in your HTML file:

<FRAME SRC="defaultsrc.html" name="content_frame">

It's the name="content_frame" part you care about.

Let me know if you need any help.
AddThis Social Bookmark Button