A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [RESOLVED] Flash talking to html

  1. #1
    theSWEEN thesween's Avatar
    Join Date
    Nov 2005
    Location
    Hertfordshire, England
    Posts
    305

    resolved [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

  2. #2
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Have a look on Necros site under communication, hes got an example of senders and receivers so the two swf "talk" to eachother.

  3. #3
    theSWEEN thesween's Avatar
    Join Date
    Nov 2005
    Location
    Hertfordshire, England
    Posts
    305
    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!

  4. #4

  5. #5
    theSWEEN thesween's Avatar
    Join Date
    Nov 2005
    Location
    Hertfordshire, England
    Posts
    305
    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.

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center