Help: Problem with popup window in Flash

This is a discussion on "Help: Problem with popup window in Flash" within the Flash & Multimedia Forum section. This forum, and the thread "Help: Problem with popup window in Flash are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old May 19th, 2007, 03:25
Junior Member
Join Date: May 2007
Location: Brisbane
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Help: Problem with popup window in Flash

Dear Community,

I humbly ask of your assistent in solving a problem with my thumbnail buttons in flash that wont open up all popup window for 3 different on(release) handlers. I have a couple tutorials which works on one button but when I try to use the other 3 buttons they somehow open the same popup window even if the script I used seems to be right (I hope )

Here is a full detail of how I have built my flash movie for my portfolio.

- Flash movie called port.swf is loaded on (home.html) page when the user clicks on portfolio button and on portfolio movie there is 4 thumbnail buttons which I want all buttons to link to a different popup window. Click on link and then portfolio to preview the 4 thumbnail buttons test

- My actionscript on each button for the thumbnail 1 starting from the left, is....

Code: Select all
on (release) {
getURL("javascript:popup('3D.html','thewin','height=350,width=425,toolbar=no,scrollbars=no');");
}
and the script code is used in home.html....

Code: Select all
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('3D.html','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=425,height=350,left=0,top=0');
}
</script>
and the script code is used in 3D.html....

Code: Select all
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>
If you want, you can view the source which there is not much coding to the html page to find out the problem.

Many thanks in advance
CHEERS

Last edited by Sgaspar11; May 21st, 2007 at 16:16. Reason: code tags!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 21st, 2007, 16:28
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help: Problem with popup window in Flash

It should be as easy as this:

Code: Select all
<script language="JavaScript" type="text/JavaScript">
<!--
function openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
//-->
</script>
Code: Select all
on (release) {
getURL ("javascript:openBrWindow('http://home.com,'newWin','width=400,height=300,left=200,top=200,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No');  void(0);");
}
Last Blog Entry: Yay!? (Oct 8th, 2007)

Last edited by Sgaspar11; May 21st, 2007 at 16:48.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 22nd, 2007, 00:48
Junior Member
Join Date: May 2007
Location: Brisbane
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help: Problem with popup window in Flash

Thanks for your input spar11 .

I noticed the difference between the 2 script and html code then the one I used.
In <!--openBrWindow--!> does Br means Browser?

Code: Select all
 
<script language="JavaScript" type="text/JavaScript">
<!--
function openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
//-->
</script>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 22nd, 2007, 15:02
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help: Problem with popup window in Flash

Morning,

Yeah, although that doesn't really matter. That is just the name of the function that I created. It could be any name really...
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
flash

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Closing Div Popup Window Monie JavaScript Forum 4 Dec 13th, 2007 06:42
Problem displaying popup window over fieldsets Frantic Turtle Web Page Design 3 Jul 5th, 2007 23:37
slideshow appears in a popup window kivanc JavaScript Forum 6 Jan 10th, 2007 21:08
Popup window problem in netscape 8.1 nitu JavaScript Forum 0 Sep 12th, 2006 11:33
Javascript popup window with ASP madhuri.t Classic ASP 0 May 3rd, 2006 10:42


All times are GMT. The time now is 23:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42