Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-07-2003, 05:35 AM   #1
gafnad
Hungry for insight
 
gafnad's Avatar
 
Join Date: Jan 2003
Location: Mtl, Canada
Posts: 33
Send a message via AIM to gafnad
Default getURL("javascript:openNewWindow

My flash button won't open a new html document containing frames. I don't want toolbars nor scrollbars. My path is correct, but the btn does nothing on release.

CODE ON FLASH BTN:
ActionScript Code:
on (release) {     getURL("javascript:openNewWindow('me/html/frameset.html','thewin',\r'height=750,width=600,toolbar=no,scrollbars=no')\r");   }


CODE IN HEAD OF HTML DOCUMENT:
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>


What am I doing wrong? the btn won't do jack.
gafnad is offline   Reply With Quote
Old 06-07-2003, 05:48 AM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

you might want to try this. I was hoping it would simplify that process

http://proto.layer51.com/d.aspx?f=850

just throw all that code in the first frame of your movie then to open a window, instead of using getURL yada yada yada just use

ActionScript Code:
Javascript.openNewWindow("me/html/frameset.html","thewin","height=750,width=600,toolbar=no,scrollbars=no");
__________________
(6)
senocular is offline   Reply With Quote
Old 06-07-2003, 06:09 AM   #3
gafnad
Hungry for insight
 
gafnad's Avatar
 
Join Date: Jan 2003
Location: Mtl, Canada
Posts: 33
Send a message via AIM to gafnad
Default

I did as told, but the btn is stubborn.
Do I need any javascript in the HTML doc to make it work?

its in the "about me" section of my homepage, the btn is the one that says "more". If I manage to launch a window with no toolbars nor scrollbars, it will be very handy for viewing other stuff on my site.

Thnks,
gafnad is offline   Reply With Quote
Old 06-07-2003, 06:18 AM   #4
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

nope, no HTML stuff is needed. Here see this:
Attached Files
File Type: zip mainopener.zip (5.0 KB, 2660 views)
__________________
(6)
senocular is offline   Reply With Quote
Old 06-07-2003, 06:29 AM   #5
gafnad
Hungry for insight
 
gafnad's Avatar
 
Join Date: Jan 2003
Location: Mtl, Canada
Posts: 33
Send a message via AIM to gafnad
Default

Maybe its the options on my browser, but I still see the toolbar ...weird! Any suggestions?

btw, your help and time are much appreciated
gafnad is offline   Reply With Quote
Old 06-07-2003, 06:31 AM   #6
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

yeah I guess its your browser. Works fine for me
__________________
(6)
senocular is offline   Reply With Quote
Old 06-07-2003, 07:03 AM   #7
gafnad
Hungry for insight
 
gafnad's Avatar
 
Join Date: Jan 2003
Location: Mtl, Canada
Posts: 33
Send a message via AIM to gafnad
Default

You are the king!
Didn't work when i ran it in flash (infinit loop of open browser window functions being executed) I had to "End task",
but i still uploaded the swf.. and lo and behold.. it worked!

Thanks a bunch!
gafnad 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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:20 PM.

///
Follow actionscriptorg on Twitter

 


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