Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-30-2004, 05:30 PM   #1
anto_123
Registered User
 
Join Date: Feb 2003
Location: Ireland
Posts: 12
Default Flash to HTML page in frame

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
anto_123 is offline   Reply With Quote
Old 07-30-2004, 05:37 PM   #2
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

_target should be the 'name' you've given your frame tag that you want flash to load the url into.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 07-31-2004, 10:49 AM   #3
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,510
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

getURL("www.test.com", "_target");

should be

getURL("www.test.com", "_self");

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 07-31-2004, 01:55 PM   #4
catbert303
member
 
catbert303's Avatar
 
Join Date: Nov 2002
Location: uk
Posts: 428
Default

don't forget the http:// at the start of the address
catbert303 is offline   Reply With Quote
Old 07-31-2004, 03:38 PM   #5
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,510
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Quote:
Originally Posted by catbert303
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

ActionScript Code:
getURL("http://www.studiogazal.com","_blank"); // absolute getURL("somefolder/somefile.html","_self");

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 08-02-2004, 09:55 AM   #6
anto_123
Registered User
 
Join Date: Feb 2003
Location: Ireland
Posts: 12
Default

Thanks everybody, that worked fine.
anto_123 is offline   Reply With Quote
Old 08-27-2007, 06:50 PM   #7
Starlight
Registered User
 
Join Date: Aug 2007
Posts: 2
Default

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");
}
Starlight is offline   Reply With Quote
Old 09-10-2007, 02:45 AM   #8
anatsou
Registered User
 
Join Date: Jun 2005
Posts: 3
Default Same problem with iframes or frames

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>>>!
anatsou is offline   Reply With Quote
Old 09-19-2007, 09:29 AM   #9
double_a_q
Registered User
 
Join Date: Jun 2007
Posts: 6
Default

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".
double_a_q is offline   Reply With Quote
Old 09-21-2007, 03:29 AM   #10
anatsou
Registered User
 
Join Date: Jun 2005
Posts: 3
Default

i'll try it

thanks a lot in advance..
anatsou is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.