16, March 2010

PLEASE HELP with popup windows in Flash MX - webmaster forum

 
Webdigity webmaster forums
[ 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 3116 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 . 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'));
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 page:

<script language="JavaScript">
function openNewWindow('http://www.theugly-club.com/monthly', 'monthly', 'clothing','height=600,width=400,toolbar=no,
scrollbars=yes') {
newWindow=window.open('http://www.theugly-club.com/monthly', '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: 6690
34708 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


Last blog : A new Wordpress theme for our blog
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: 6690
34708 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 : A new Wordpress theme for our blog
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'));
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5659
45587 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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 credits
Members referred : 374


It's time to use PHP5!


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



Last blog : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5659
45587 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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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 : A new Wordpress theme for our blog
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5659
45587 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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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 : A new Wordpress theme for our blog
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')");
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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')");

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


Last blog : A new Wordpress theme for our blog
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
and the .fla file: http://www.theugly-club.com/uglymenu.fla
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6690
34708 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 : A new Wordpress theme for our blog
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....

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?
Mar 16, 2010, 05:54:34 pm





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: 44.173
Total Topics: 8.616
Total Members: 8.211
Tutorials : 58
Resources : 929
Designs : 360
Latest Member: makebelieve

39 Guests, 4 Users online :

16 users online today:



Readers

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