View Full Version : Flash to HTML page in frame
anto_123
07-30-2004, 05:30 PM
I have an html page
It has three frames, top, left and right. theres a flash movie playing in the right frame. Inside this movie are URL's.
When i click on a URL i want it to display in the same frame as the flash movie and not take over the whole page.
this is the code im using, is it right?
getURL("www.test.com", "_target");
any help greatly appreciated!
cheers
_target should be the 'name' you've given your frame tag that you want flash to load the url into.
Ruben
07-31-2004, 10:49 AM
getURL("www.test.com", "_target");
should be
getURL("www.test.com", "_self");
- Ruben
catbert303
07-31-2004, 01:55 PM
don't forget the http:// at the start of the address :)
Ruben
07-31-2004, 03:38 PM
don't forget the http:// at the start of the address :)
Thanks catbert303, forgot about that one
Though if you're referring to a relative adress you can leave the http:// behind
getURL("http://www.studiogazal.com","_blank"); // absolute
getURL("somefolder/somefile.html","_self");
:) - Ruben
anto_123
08-02-2004, 09:55 AM
Thanks everybody, that worked fine.
Starlight
08-27-2007, 06:50 PM
Sorry to active this topic again but I have a similar problem that I couldn't solve.
I made an html page with 2 frames: 1 column and 2 rows.
When I open the html page, appears the swf menu on the top frame and an animated introduction (in a swf file too) on the bottom frame (like it suposed to be). But I want the menu change only the bottom frame to another swf file. How can I do it?
The code I used doesn't work. When I click on the menu it opens me the file I want but in a new window.
This is parte of the code on the html page:
<table width="700" height="500" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="700" height="150"><iframe src="menu.swf" marginWidth=0 marginHeight=0
frameBorder=0 width="700" scrolling=no height=150></iframe></td>
</tr>
<tr>
<td width="700" height="350"><iframe src="intro.swf" marginWidth=0 marginHeight=0 name="conteudo"
frameBorder=0 width="700" scrolling=no height=350></iframe></td>
</tr>
</table>
This is the code I have on the buttons:
on(release)
{
getURL("info.swf", "conteudo");
}
anatsou
09-10-2007, 02:45 AM
Hallo everyone
i have the same problem please somebody bother
i've a flash menu embedded as swf object to controll html content
i have an iframe named "MainCont" and i want to change its contents from a
button within the flash movie . i've tried
getURL("myotherpage.html", "MainCont"); and
getURL("myotherpage.html", target="MainCont");
but it loads on a new window.
the only thing that works is
getURL("myotherpage.html", "_self");
getURL("myotherpage.html", target="_self");
which is fine because i figured the syntax is OK but
i want to load "myotherpage.html" on the iframe on the same page
not have "myotherpage.html" substitute my whole page...!!!!!
i've also tried it with simple frames with the same results
PLEASEE HELP>>>!
double_a_q
09-19-2007, 09:29 AM
It has to do with the Security settings of latest Flash player. The loading in target frame will work fine once uploaded to a host, but to make them work on your local machine, this is what you have to do:
Goto Publishing Settings for your movie, go under Flash Tab and change "Local Playback loop" to "access network only".
anatsou
09-21-2007, 03:29 AM
i'll try it
thanks a lot in advance..
luckysas
10-10-2007, 10:21 PM
I had the same issue as you do. There is no problem with your code, but you need to change the global security settings of your Adobe flash player.
Here is what you do
1st -- go to the adobe site:
http://www.macromedia.com/support/documentation/en/flashplayer/help/se ttings_manager04.html
2nd --choose the tab "Global Security Settings" and check the radio button "always allow"
3rd-- go to edit locations...click add a location: here you can pick a trusted location on your computer for your files/folders.
I picked my desktop, but you can of course also make a trusted folder.
Make sure your dreamweaver folder/files is/are in your picked location(for me that was my desktop) then try and see if your flash button loads the I frame..it should work. You may have to change these settings for every browser you choose to test with.
I hope this works for you...it did for me anyway.
good luck
luckysas
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.