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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash ...GetUrl

Status
Not open for further replies.

jovan40

Programmer
Dec 11, 2001
46
US
I have a question about the getUrl action. I have an action that is supposed to open a html page within the same directory in a seperate window, but when the button is click with the getUrl action it doesn't open. Here is the action:
on (release) {
getURL ("memberform.html", "_blank");
}
What am I doing wrong??
 
I just did a quick test on this and it worked for me. Here's the code I used:

on (release) {
getURL ("test.html", "_blank");
}

Same as yours [apart from the file names of course]. Have you checked that the html page has .html or .htm...? But then again, you'd probably get the window to open, it just wouldn't find the html page is all.

Don't know why it's not working if it's not the file extension of your html page. funkymonk B-)

rod@sameplanet.co.uk
********************


 
Thanks for the response. I will be checking the pages
 
First, you need a script to open a new window in your HTML page like this.
<!-- hide me
function Start(page) {
OpenWin = this.open(page, &quot;CtrlWindow&quot;,&quot;toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=(you choose),height==(you choose),top==(you choose),left==(you choose)&quot;);
}
// End -->
</SCRIPT>
***********
modify that anyway that you would like to make your window.
then from inside flash and your get url add this.
javascript:Start('yourpage.htm')
 
You can open a 'plain' html window with just the getURL action although the way you've done it is much smarter, esspecialy having control over what tool bars are available. funkymonk B-)

rod@sameplanet.co.uk
********************


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top