Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 8th, 2003, 08:11 AM
SBUH SBUH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 23 SBUH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to make a popup window in flash

Hello,
Could some one give some hint about adding an action to a button then popup a new window in flash. The new window is an asp file. Many thanks in advance!

Reply With Quote
  #2  
Old July 8th, 2003, 10:21 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 56 m 23 sec
Reputation Power: 18
at its most basic:

Code:
getURL("javascript:window.open('popup.asp','','width=200,height=200');void(0);");


but to be more flaxible create a javascript function in your html page with all the code and call it from flash like:
Code:

//in flash
url = "somepage.asp";
getURL("javascript:myFunction('"+url+"');void(0);");

//in html
//maybe pass the width & height etc etc as well....
function myFunction(url) {
window.open(url,'','width=200,height=200');
}

Reply With Quote
  #3  
Old July 9th, 2003, 03:53 AM
SBUH SBUH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 23 SBUH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your reply

Hello,

Thanks very much for your suggestion, and it works for the first time when I add a link to it. But then after I changed the link to some other page, it isn't refreshed in IE when I open it there. Do u have any experience about this?

Another thing is I have pictures in the .asp file, how to pass that back the flash file when I make a choice.

Thanks again for your time!

Reply With Quote
  #4  
Old July 9th, 2003, 04:19 PM
1ain 1ain is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bath
Posts: 26 1ain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
random numbers

it sounds like your asp page is caching.

try appending your url with a random number as follows:

var randnum = Math.random()*1000000000;
".../mypage.php?"+randnum...blah blah

Reply With Quote
  #5  
Old July 10th, 2003, 12:01 PM
SBUH SBUH is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 23 SBUH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your reply

Thanks for ur reply and now it works well. Then I wonder do you have any idea about how to post the variables between asp file and flash file. Bucause I have code in asp file like choosing a picture from a form and I want to pass that image back to the flash page. How could the code be? Hope you have good suggestion! Thank you again very much!

<FORM name="myform" action="designpage_colormap.asp" method="post">
<input name="color" type="radio" value="001">Red
<input name="color" type="radio" value="002">blue
<input name="color" type="radio" value="003">marine
<input name="color" type="radio" value="004" selected>white

<input name="choose" type="submit" value="choose">

</FORM>

Reply With Quote
  #6  
Old September 15th, 2003, 08:50 PM
devmond33 devmond33 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 2 devmond33 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
popup problem - ie6 domain cloaked

I am able to have a popup window created from flash using both techniques: javascript within flash and javascripted withing the page called by flash.
The problem I'm having is that i have the domain cloaked so that the page is actually masked within frames.
When the popups are activated they work fine in ie5 but not at all in ie6. Would anyone know the solution to this problem?
(most fustrating)

thanks

dev

Reply With Quote
  #7  
Old March 11th, 2004, 08:24 PM
Tw3nty2 Tw3nty2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 13 Tw3nty2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 sec
Reputation Power: 0
additonal question?

what if the i want the file is in flash 2? how can i make 1 flash movie pop up in another window?



Quote:
Originally Posted by jamieB
at its most basic:

Code:
getURL("javascript:window.open('popup.asp','','width=200,height=200');void(0);");


but to be more flaxible create a javascript function in your html page with all the code and call it from flash like:
Code:

//in flash
url = "somepage.asp";
getURL("javascript:myFunction('"+url+"');void(0);");

//in html
//maybe pass the width & height etc etc as well....
function myFunction(url) {
window.open(url,'','width=200,height=200');
}

Reply With Quote
  #8  
Old March 12th, 2004, 04:03 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 56 m 23 sec
Reputation Power: 18
Quote:
Originally Posted by Tw3nty2
what if the i want the file is in flash 2? how can i make 1 flash movie pop up in another window?

just give the url of a web page with a flash movie embedded in it

Reply With Quote
  #9  
Old March 12th, 2004, 04:13 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 56 m 23 sec
Reputation Power: 18
Quote:
Originally Posted by SBUH
Thanks for ur reply and now it works well. Then I wonder do you have any idea about how to post the variables between asp file and flash file. Bucause I have code in asp file like choosing a picture from a form and I want to pass that image back to the flash page. How could the code be? Hope you have good suggestion! Thank you again very much!

<FORM name="myform" action="designpage_colormap.asp" method="post">
<input name="color" type="radio" value="001">Red
<input name="color" type="radio" value="002">blue
<input name="color" type="radio" value="003">marine
<input name="color" type="radio" value="004" selected>white

<input name="choose" type="submit" value="choose">

</FORM>


If you first of all pass the variables to the page with the movie embedded in it you can then get them into flash. So if you change your form to look like
Code:
<FORM name="myform" action="designpage_colormap.asp" method="post" onSubmit="return sendForm();">

and make the javascript function something like
Code:
function sendForm() {
var f = document.myForm;
var url = "action.php?color="+f.color.value;
window.open(url,'','width=200,height=200');
return false;
}

then your page action.php which is opened in the popup has the variable color in the querystring. If you have php/coldfusion whatever it's then easy to pass that variable onto the movie by writing it onto the querystring of the movie url in the OBJECT and EMBED tags. (If not it's more of a pain)

Reply With Quote
  #10  
Old March 12th, 2004, 04:15 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 596 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 3 h 56 m 23 sec
Reputation Power: 18
Quote:
Originally Posted by devmond33
I am able to have a popup window created from flash using both techniques: javascript within flash and javascripted withing the page called by flash.
The problem I'm having is that i have the domain cloaked so that the page is actually masked within frames.
When the popups are activated they work fine in ie5 but not at all in ie6. Would anyone know the solution to this problem?
(most fustrating)

thanks

dev

if your frames/popup are on different domains then this won't work, it's a security issue.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > How to make a popup window in flash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT