Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

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: 21
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: 21
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: 21
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: 21
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

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


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap