21, July 2008

PLEASE HELP with popup windows in Flash MX - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Design and Layout  >  Graphics & Multimedia  >  Macromedia Flash & Actionscript (Moderator: Meth0d)
Topic: PLEASE HELP with popup windows in Flash MX
« previous next »
Pages: [1] Print

Author Topic: PLEASE HELP with popup windows in Flash MX  (Read 1900 times)
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« on: Sep 25, 2006, 04:50:37 AM »

I am trying to make a website menu with Flash, that has buttons that when pressed, create new fixed-sized pop-up windows. The website that has the flash html right now is http://www.theugly-club.com/uglymenu.html Visit through proxy . In the action script for each button I put :
 getURL(javascript:openNewWindow('http://www.theugly-club.com/monthly','monthly','height=600,width=400,toolbar=no,scrollbars=yes Visit through proxy'));
For some reason it says that there is an error with this... I also put the following code in the www.theugly-club.com/monthly Visit through proxy page:

<script language="JavaScript">
function openNewWindow('http://www.theugly-club.com/monthly Visit through proxy', 'monthly', 'clothing','height=600,width=400,toolbar=no,
scrollbars=yes') {
newWindow=window.open('http://www.theugly-club.com/monthly Visit through proxy', 'monthly', 'clothing','height=600,width=400,toolbar=no,
scrollbars=yes'); }
</script>

something isn't working...
Any suggestions?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6279
38500 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Sep 25, 2006, 08:58:53 AM »

here is something to much:

Code:
newWindow=window.open('http://www.theugly-club.com/monthly Visit through proxy', 'monthly', 'clothing','height=600,width=400,toolbar=no,
scrollbars=yes');

check this reference:
http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html Visit through proxy


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #2 on: Sep 26, 2006, 02:56:00 AM »

"here is something to much:" - what does thi mean? I'm confused... where would I paste that code? And if I used that code, would I have to change the html on my webpage?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6279
38500 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Sep 26, 2006, 08:09:38 AM »

"here is something to much:" - what does thi mean? I'm confused... where would I paste that code? And if I used that code, would I have to change the html on my webpage?
do you checked teh informationm on teh reference? the url is bad and you have two names for the popup...


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #4 on: Oct 02, 2006, 01:19:31 AM »

i probably sound very stupid, and I'm sorry for not understanding, but it is like you're speaking a different language than I am. I am so confused. When I try to publish my flash work... it says my error is :
**Error** Scene=Scene 1, layer=Layer 8, frame=55:Line 1: ')' or ',' expected
     getURL(javascript:openNewWindow('http://www.theugly-club.com/monthly','monthly','height=600,width=400,toolbar=no,scrollbars=yes Visit through proxy'));
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7970
40777 credits
Members referred : 3



« Reply #5 on: Oct 02, 2006, 10:35:03 AM »


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6279
38500 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Oct 02, 2006, 10:39:27 AM »



Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7970
40777 credits
Members referred : 3



« Reply #7 on: Oct 02, 2006, 10:40:30 AM »

I removed a ) in the end Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6279
38500 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Oct 02, 2006, 11:11:28 AM »

I removed a ) in the end Smiley
but there must be two brackets...(one from the JS and one from the geturl)


Last blog : 4th of July Lottery from TemplateMonster.com
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7970
40777 credits
Members referred : 3



« Reply #9 on: Oct 02, 2006, 11:14:25 AM »

Oh right. Now (that I drinked my first coffee...) I think the solution is this :

Code:
getURL("javascript:openNewWindow('http://www.theugly-club.com/monthly','monthly','height=600,width=400,toolbar=no,scrollbars=yes')");

getURL needs a string to work, right?

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6279
38500 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Oct 02, 2006, 11:22:30 AM »

Oh right. Now (that I drinked my first coffee...) I think the solution is this :

Code:
getURL("javascript:openNewWindow('http://www.theugly-club.com/monthly','monthly','height=600,width=400,toolbar=no,scrollbars=yes')");


getURL needs a string to work, right?
I think there is somthing different, he needs to post here the .fla and the target html file otherwise we can't solve it...
« Last Edit: Oct 03, 2006, 08:30:46 AM by olaf »


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #11 on: Oct 03, 2006, 04:16:38 AM »

I did what nick said.... and I got this:

**Error** Scene=Scene 1, layer=Layer 8, frame=55:Line 1: Statement must appear within on handler
     getURL("javascript:openNewWindow('http://www.theugly-club.com/monthly','monthly','height=600,width=400,toolbar=no,scrollbars=yes Visit through proxy')");
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6279
38500 credits
Members referred : 374


It's time to use PHP5!


« Reply #12 on: Oct 03, 2006, 08:31:23 AM »

I did what nick said.... and I got this:

**Error** Scene=Scene 1, layer=Layer 8, frame=55:Line 1: Statement must appear within on handler
     getURL("javascript:openNewWindow('http://www.theugly-club.com/monthly','monthly','height=600,width=400,toolbar=no,scrollbars=yes Visit through proxy')");

check my message before...(it was hidden inside the quotes)


Last blog : 4th of July Lottery from TemplateMonster.com
Sandwich Artist
*
Posts: 25
170 credits
Members referred : 0


« Reply #13 on: Oct 04, 2006, 05:31:31 AM »

ok... thank you so much everyone for your help so far....
Here is the target url: http://www.theugly-club.com/uglymenu.html Visit through proxy
and the .fla file: http://www.theugly-club.com/uglymenu.fla Visit through proxy
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6279
38500 credits
Members referred : 374


It's time to use PHP5!


« Reply #14 on: Oct 04, 2006, 10:06:25 AM »

First name your button instances and use this AS code instead:

Code:
on (press) {
getURL("javascript:openNewWindow('http://www.theugly-club.com/monthly','monthly','height=600,width=400,toolbar=no,scrollbars=yes')");
}

in your html (header) must be this javascript code:
Code:
function MM_openNewWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}


Last blog : 4th of July Lottery from TemplateMonster.com
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4237
Tags : javascript html pop up Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Design and Layout  >  Graphics & Multimedia  >  Macromedia Flash & Actionscript (Moderator: Meth0d)
Topic: PLEASE HELP with popup windows in Flash MX
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 21, 2008, 03:58:31 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.669
Total Topics: 7.373
Total Members: 3.694
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: jinous@webdco.com

23 Guests, 3 Users online :

5 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.