Pop Up Window
how do I tell flash to open a pop up window with the size I need it to open at.??
FlashKit > Flash Help > Flash ActionScript
Posted on: 10-18-2004, 03:44 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Close.window Script In Flash Button Quits My Browser Window Or Crashes System
Can somebody please help me?
I have a javascript attached to a button in a .swf file to close the browser window it is in.
The code which was given to me yesterday by senocular is
on(press){
getURL("javascript:window.close()")
}
__
however if you try it IE will unexpectedly quit or bomb my computer.
I tried it in Netscape and it didn't crash.
You can refer to my site http://www.valdesdesign.com
after intro go to print button and then to editorial button.
Editorial opens new window with editorial.swf inside. Click on top right button to close window and see what happens.
Is there something I'm doing wrong? Please help me.
Thanks
Link In Pop-up Window (flash File) Target=parent Window
I have a flash demo that is opened from our web site and spawns a new window. At the end of the demo is a link that directs the user to "get more information." I would like this link to open the "more info" page in the PARENT window rather than the spawned window. Currently I have my Flash link coded with:
on (release) {
getURL ("http://www.hiddenmind.com/materials.html", _parent);
}
This is not working. Do I need to add some code to the parent window and/or the HTML page where the Flash file is embedded?
Thanks for your help! I can't seem to find the solution
AS: Close Current Window And Open Link In Father Window ?
Please, guys, can anyone lead my hand in this?
I have produced a flash movie. the wholw are is an invisible button which
should close the animation and in father window open a link.
The flash movie pops up automatically when page is loaded. I used this:
on (press) {
getURL("javascript:self.close();window.opener.loca tion.href = 'http://www.unibanka.sk/servlet/com.elline.pb.Page?page=alfa_ts'");
}
... but am not sure if this would work exactly how I want it.
Thanx
Passing Variables From Spawned Window To Parent Window
Is it possible to pass a variable from a child to a parent window.
I have one page (Index.html) with a swf (index.swf). A button on the index.swf launches demo.html containing a demo.swf. When the user gets to a certain point in demo.swf, I need to tell index.swf that it has arrived. Is this possible.
Any suggestions are appreciated.
Cordially,
Jason
Pausing After Preload If Browser Window Is Not Active Window
Hi folks,
I'm trying to figure out how to do this, but so far I have had no success. The intention is for anything like a Flash trailer, intro movie or such like which is large to preload and once this is done check to see if the user is still viewing that browser window.
So if during the preloading the user opens/selects a different window and the preloading finishes then the Flash will go to a paused screen, awaiting the user to indicate they want to proceed (eg a play button). If however the user still has, or has returned to, the browser window it will skip the pause screen and play the animation.
For an example the 9th chapter of Ninjai.com seems to do this (I haven't checked the other chapters).
Any help would be appreciated.
Ragnar
webmaster@ragnarkarlsson.com
GetURL - Targetting The Parent Window Of Popup Window?
Hello!
Yet another thread on getURL but I did a search and couldn't find anything related to my question, so here goes...
I have a website which launches a 900x400 popup window which contains an interactive flash movie. From within this movie, I am loading in HTML from a text file which populates a scrolling textfield.
I was pleased to learn that href links within the text file work as links within the flash textfield. What I want to do is have these links open in the parent window that spawned the popup.
If I use target=_blank on these links, the pages open up in a new browser window.
If I use target=_parent on these links, the pages open up in the same popup window and obviously replace the flash movie content (goes to the link instead of launching it in the parent window).
Is it possible to use the _parent target to launch these links into the main website that spawned the popup or is _blank the only one?
If anyone has any tips or experience on this matter it would solve a huge headache for me.
Thank you!
Flash Reload Parent Window + Close Window
Hi i got a quesiton.
I have an asp page that will open a new asp page in a new window that contains a swf file with a button.
When the user clicks the button i want to close that window and reload the parent window. Any ideas on how to achieve this in flash ?
Thanks
Popup Window Doesn't Stop Window.open
Hi,
check out www.adidas.com/1
You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.
Any ideas how thye have done this?
thanks
ash
Loading External SWF's Into A New Flash Window Instead Of A Browser Window?
I have this flash presentation where I have buttons when clicked on, a (_blank) browser window pops-up and begins playing external SWF's.
The problem is that, with windows XP, every time I click the button(s) to have the browser window pop-up, to play my externals, the damn 'virus protection notification' thing pops-up first, asking me if this content is allowed. Is there a way to turn this off? My client does not want to have to "allow" the browser to play the external SWF's everytime. I've tried everything but no luck.
Better yet, is there a way to have the external SWF's pop-up in a totally new flash window, on top of the main (presentation) window? I don't want the external SWF's playing in the same window, but rather show in a new window entirely. Can anyone help me? This project is past-due and it needs to go out today. I'll attach the current scripting I'm using so far, if it helps. Thanks so much!
bottingsAd_mc.onRelease = function() {
getURL("exampleAds/bottingsports2_001.swf", "_blank");
};
Popup Window Doesn't Stop Window.open
Hi,
check out www.adidas.com/1
You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.
Any ideas how thye have done this?
thanks
ash
Window Without Border And The Normal Windows Window
Hi there everybody !!!
I´m a guy from Denmark, who´s using flash as a way to promote my self.
I´m fairly good at using flash, but I have to admit, yhat I´m not very proficient at scripting/programming in flash and neither java. but I´m very eager to learn the art of programming/scripting.
Here´s my quostion for all you "HEAVY PROGRAMMERS" out there:
How do I make a new window, without any borders, as we usually see.
Is it a java thing or a flash ?
In the recent past I´ve discovered many sites using this technic. And I´m very curious about making this window.
A window without any borders
A window, - but not the normal popup window, that Explorer generates.
I´ve seen that Samsung uses it in theire website, and someother companies.
Hope everydody understands my request and will reply as soon as possible.
In forward thanks
Yours sincerely K. M. Egander
Popup Window Closing To Main Window?
I can close the popup window of my flash intro, but I want to go to another html page in the main window of my site.
Can anyone help me? Thanks.
Opening A Mc In A New Window, While Still Showing The Mc In The Main Window
Hi Guy's
Its mike again. Please can you help.
I have designd a mc and in this mc, it has a button to another mc but what I would like is to open the mc in another window without closeing the first mc window where my button is. also I would like it to open at a perticular size.
Then be able to close the second window.
how is this possible please can someone help!
Thanks
Mike
Loading In New Projector Window Not Browser Window
I'm designing a portfolio site and Im sending it out as a projector. Is there a way that I can have images load in a new projector window, and not the default browser. My only succes so far is using the getURL, but this opens the image in a browser or in the same window, and I just want to open a new window with the projector, not an internet browser. PLEASE HELP, I need to get a job with this site.
Open Full Screen Window, Same Window?
I have a 700x300 flash banner. What I want to do is once it's clicked, open the page that it is linked to in the same window but full screen? I can do it with java script, how do I add it in MX?
Mike
Open A New Browser Window And Go To Frame(n) In The New Window
Hi I need some help.
I'm trying to load a new html file that contains a movie but I like to specify to what frame to proceed in that movie I try to write this in actionscript I think it is easier to understand.
// I have 2 html files contact.html and home.html
// And I have one swf file named home.swf with 2 scenes named "home" and "contact"
// The home.html and the contact.html both contain the same home.swf movie
// currently I'm in home.html I like to getURL("../main/contact.html")
that loads the contact.html and the contact.html contains the home.swf but I like to proceed to the gotoAndStop("Scene",1) or gotoAndStop("contact",1)
I hope that was clear enough if you may know the answer please email me I have suffered a lot on this but I just couldn't come up with the answer.
Regards
zoltank@timelineillustrations.com
[F8] Target Parent Window From Popup Window
I launch a popup window from a flash movie in the main window. When I close the popup window, I need to target the main movie to go to the next frame, depending on weather the the movie in the popup has played to the end. I tried making use of Javascript with a url quaryString when opening the popup:
window.open("popup.swf?variable1=stringvar")
I also tried Flashvars in the param and embed tags, but do not know how to send the flashvar to the popup. Then update the Flashvar when the movie in the popup is done. Then when I close the popup, communicate with the movie in the main window to go to the next frame.
This need to be done without php, cause I need to deploy this in a LMS environment.
Child Window Redirecting Parent Window
I have made a movie that gets launched from a browser window. In this movie is a button that when clicked needs to close the window and direct the parent window to go to another address. I am using this code to close the window..
on(release){
getURL("javascript:window.close();");
}
but dont know how to get the parent window to go to another address
at the same time?
Help!
dzinr
Closing Window - Javascript:window.close();
Hello all
I'm trying to use the getURL("javascript:window.close()"); code on a button to close my HTML window. But after I publish the file if I click on the button nothing happens.
Does anyone have any idea what is going wrong? Do I need to add another file to the folder where my SWF file sits? Or is there an Internet Explorer setting or something that is disabiling this?
Thanks
MMH
Window Content Management (using Window Component)
Hello,
I usually preffer clean code, so this is my problem:
I'm writing the following code in the .fla file:
var main:SmthMain = new SmthMain();
And the rest of the code is in .as files only.
I can't seem to find a way to control the content of a window (mx 2004 component). That is asigning handlers on buttons, retrieving values from textinputs and so on.
onLoad and onComplete does not have the content fully loaded.
only onEnterFrame seems to work but this is bad coding.
I could use a sample code. Maybe from someone that really has it with AS2.0 and MX 2004 components.
Opening Links In New Window From A Centered Window...
Hi there. I used this chromeless centered window tutorial to create part of my page...
http://www.kirupa.com/developer/mx/centered_popup.htm
It works fine, I have a little intro, then you click a button, main page loads in the center like it should.
Thing is, I have links within the movie to outside websites, sites I want to display in their own window. When you click these links however, they get loaded up in the same centered window as my main page. Because theyre alot bigger than my flash, you can barely see even the corner of each site. And I want it to open a whole new, full size browser window with all the normal buttons it should have.
My site is the only one I wanted centered and chromeless, the others should act like any old link.
Got it? Think I made that all sound right...
Anyway, any ideas on what to do?
Launch A Pop Up Window With Another Larger Background Window?
How do you launch a small and centered popup window at the same time that you open another html window as background?
I tried to do this but it doesn't always work. Especially if you return to the opening and begin again, the small centered window doesn't appear. I used the code from Kirupa to launch the centred popup window and I added my own bit -getURL("white.html", "_parent"); here it is complete code:
on (release) {
getURL("white.html", "_parent");
// customize the window that gets opened
// 0 equals NO.
// 1 equals YES.
address = "museum.html";
target_winName = "introduction";
width = 700;
height = 600;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
// sends data back to the function
openWinCentre(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}
can anyone help?
thanx
max
On Click Closes Pop Window And Changes The Parent Window URL
Question about having a pop up window display flash movie, button within movie having the function of on click closes pop window and changes the parent window (which pop up came from) to navigate to new url. Having trouble with the parent changing. any ideas?
Thanks,
MT
Code:
ready.onRelease = function () {
getURL("javascript:window.close()");
getURL("http://www.google.com" ,"target_parent");
}
Problem With Alert Window On PopUp Window
Hi guys,
I am making a Interview application in which i am showing a Pop window with close button enabled (using mx.managers.PopUpManager class) in which User can edit the content.
Now I want to track If User has changed the content and tried to close the Pop Up without saving changes. In this situation, So I tried to show an Alert window for confirmation to discard changes. Here I am getting Problem with Flash getting struck and giving message "A script in this Movie is causing to Flash Player to run slowly...blah blah". This is my problem.
I tried removing other Event Listeners also but no luck.
Thanks for your help.
pandu
Window Content Management (using Window Component)
Hello,
I usually preffer clean code, so this is my problem:
I'm writing the following code in the .fla file:
var main:SmthMain = new SmthMain();
And the rest of the code is in .as files only.
I can't seem to find a way to control the content of a window (mx 2004 component). That is asigning handlers on buttons, retrieving values from textinputs and so on.
onLoad and onComplete does not have the content fully loaded.
only onEnterFrame seems to work but this is bad coding.
I could use a sample code. Maybe from someone that really has it with AS2.0 and MX 2004 components.
Opening Links In New Window From A Centered Window...
Hi there. I used this chromeless centered window tutorial to create part of my page...
http://www.kirupa.com/developer/mx/centered_popup.htm
It works fine, I have a little intro, then you click a button, main page loads in the center like it should.
Thing is, I have links within the movie to outside websites, sites I want to display in their own window. When you click these links however, they get loaded up in the same centered window as my main page. Because theyre alot bigger than my flash, you can barely see even the corner of each site. And I want it to open a whole new, full size browser window with all the normal buttons it should have.
My site is the only one I wanted centered and chromeless, the others should act like any old link.
Got it? Think I made that all sound right...
Anyway, any ideas on what to do?
Opening A New Window WITH Furniture From A Window WITHOUT
Hi ya,
I've had a scoot around the site and seen some references to something similar to this problem I have. Hopefully if I describe it, someone will suggest something!!
Okay - we have a furniture less browser window opening up with a flash movie splash screen. Once the splash has finished, a 'Click Here' button appears, which has a getURL action on it. This new URL is supposed to open a new window but this time with furniture. Any suggestions as to how to do this because the norm is that the new window will inherite the layout (ie no furniture) of the last window.
many thanks in advance
frank
Issue Using Window.open For A New Window...
this one is interesting...
i have a page called main.html which contains main.swf and the javascript function to open a new browser window... no problem there.
however, when I go to my frameset (index.html) which contains main.html.... and try go open a new window from the main.swf flash piece... i get a javascript error. what is going on with the frameset that is causing the open new window to fail?
try it out.
go to my site:
http://www.menuengine.com (index.html)
>> click on Arctic Thunder in the menu, then click on Character Work.
now go to http://www.menuengine.com/main.html and try the same thing... it works here.
the only difference is that you first tried it from a frameset housing main.html
any clue?
here's the code that's in main.html
<script LANGUAGE="JavaScript">
function popupwindow(){
window.open("The file that you want to pop up here","","height=350,width=500,menubar=0,resizable =0,scrollbars=0,status=0,titlebar=0,toolbar=0,left =0,top=0")
}
</script>
thx,
doubt
Targeting Another Window From .swf In A Popup Window....
Ok...
I have an .swf in a small popup window.
At the end of this movie, I have a button.
I want this button to open the new link in the window that originally launched my popup window.
I'm aware of the javascript function "window.opener", but I'm not sure of the AS syntax I should use.
Can anyone help me out with this?
Thanks so much.
Tone.
Popup Window Instead Of Explorer Window?
I see alot of websites that when you open them the first thing that comes up is a smaller window that is not resizable. Then after either watching the intro or bypassing it, the main page opens in the explorer window. How is that done? If I have a two swf files and I want one to be the intro page and the other to be the main page how do I make the first swf file viewed in a "popup window"?
Pop Up Window .....extra Window Opens
Hi can anyone help with this ..
i have created a pop up window which calls up a image in a window of a predefined size ......it works fine the only thing is another window with [object] appears in it .....anyone know the problem ....
Getting Rid Of The Top Of The Browser Window When Launching A New Window.
hi there,
I have been having trouble getting a flash site to launch a new broswer window for a html document. It worked fine when opening a new flash window but not html.
Anyway someone on here kindly helped me and sent me this code:
getURL("javascript:NewWindow=window.open('http://www.design8ed.com/digitalspirit/pages/designcs.html','newWin','width=459,height=171,left =0,top=0,toolbar=No,location=No,scrollbars=No,stat us=No,resizable=No,fullscreen=No'); NewWindow.focus(); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(459/2); top_point = parseInt(screen_height/2)-(171/2); setTimeout('NewWindow.moveTo(left_point,top_point) ',100); void(0);");
Which made it work the only thing is it pop up including the browser menu at the top - does anyone know how i can get rid of this?
Also within the html doc - http://www.design8ed.com/digitalspir.../designcs.html i have a close button which when reviewed works but when published it doesn't close the browser window - is there something i'm missing - why isn't it working?
Your help would be greatly appreciated!!!
JavaScript New Window Old Window AHHHHHGGHHG
Sorry if this has been covered, but searching the forums for my answers got a little tedious...
I've got a Flash object in an average browser window (which, for the sake of this query, we'll call "Big Window"). Inside the Flash object is a button action with a JavaScript command to open a new, smaller window ("Small Window") with various specs (250x400, no scrolling, etc). Up until now, everything works in a lovely manner. No hitches or quirks whatsoever.
Small Window features no Flash objects. It's pure and simple html. What I'm attempting to do -- and this is where I'm stuck -- is make it so when you click a link in Small Window, it changes the contents (i.e. opens a new page) in Big Window. Kinda like, putting your car in reverse. Er... or not.
Anyway, would love it if someone could help...
kyle t.
How To Constrain A New Popup Window Window
Hi all,
This is just a quick question which I am hoping has a few lines of code as the simple solution.
I have a mvie clip in flash that resides in a html page. When you click a button in the swf the actionscript tells it to open a new window to display the link.
What I want to know is how do I do it so that when it opens it contrains the new browser window to a certain size,
Any help would be much appreciated.
Thankx pixelmagik
Call New Window In A Called Window
Frist let me thank you for helping me in calling an image from a flesh movie into a new window, now i have a little problem related, see..
first i stablish the javascript functions from an action in a blank layer like told to:
function showLink(file, width, height){
if(typeof(width) == "undefined"){
var asFix = file.split(",");
var file = asFix[0];
var width = asFix[1];
var height = asFix[2];
}
var winAttrib = "width="+width+",height="+height+",left=0,top=0,me nubar=0,status=0,toolbar=0,";
_root.getURL("javascript: void(window.open('" +file+ "','popupWin','"+winAttrib+"'));");
}
then, I add the action to the instance of the button:
on (release) {
getURL("asfunction:showLink,web/gall.html,734,398
}
but, in the new window, I have a flash movie running too, and from that movie i want to call the pic., so i repeat the instruction in a blank layer, ant then call the image from the instance of the button:
on (release) {
getURL("asfunction:showLink,galeria/finales/octavopapa.jpg,290,400;");
}
but when i run the movie, the first calling works AOK but, when I click on the button at the called window, the image comes into the same window.. I tried adding the _blank command in the button instance:
on (release) {
getURL("asfunction:showLink,galeria/finales/octavopapa.jpg,290,400;", "_blank");
}
but it still calls it on the same window, what am i doing wrong?
Thank you very much.
L.J.
Call New Window In A Called Window
Frist let me thank you for helping me in calling an image from a flesh movie into a new window, now i have a little problem related, see..
first i stablish the javascript functions from an action in a blank layer like told to:
function showLink(file, width, height){
if(typeof(width) == "undefined"){
var asFix = file.split(",");
var file = asFix[0];
var width = asFix[1];
var height = asFix[2];
}
var winAttrib = "width="+width+",height="+height+",left=0,top=0,me nubar=0,status=0,toolbar=0,";
_root.getURL("javascript: void(window.open('" +file+ "','popupWin','"+winAttrib+"'));");
}
then, I add the action to the instance of the button:
on (release) {
getURL("asfunction:showLink,web/gall.html,734,398
}
but, in the new window, I have a flash movie running too, and from that movie i want to call the pic., so i repeat the instruction in a blank layer, ant then call the image from the instance of the button:
on (release) {
getURL("asfunction:showLink,galeria/finales/octavopapa.jpg,290,400;");
}
but when i run the movie, the first calling works AOK but, when I click on the button at the called window, the image comes into the same window.. I tried adding the _blank command in the button instance:
on (release) {
getURL("asfunction:showLink,galeria/finales/octavopapa.jpg,290,400;", "_blank");
}
but it still calls it on the same window, what am i doing wrong?
Thank you very much.
L.J.
How To Make New Window Open In Same Window
anyone have any advice on this? I need to know how to make a new window openin the same window using Flash MX (Flash MX 2004 too, i have both)right now on my website, when you click to go to a new page, it opens in separate windows so by the end of your journey through my website there are like 5 or 6 different windows open. i don't want that. so, any suggestions would be super helpful. thanks a bunch!
~peace
Link New Window, Lower Window
I have an html page with a button to open a flash file that is in a pop-up html window.
The fash file has 'get URL' links
How can I have the links open up in the "lower" browser window, the same one with the link to the pop-up?
How To Convert An MDI Window To An External Window
Hi there,
I have successfully created an MDI window and I have a button on the title bar that should allow me to change that MDI window to an external window that a user can drag outside the browser and that external window should also have a button that would allow me to change it back into an MDI window. But the question is how do I create a flash window that resides outside the browser? I dont want a browser popup window from the browser cos there has to be interaction between that popup window and the main flash app in the browser. I know that there can be interaction between a browser popup window and the main flash app but its more difficult to implement. Basically, I just want to have a flash popup window created from the main flash app in the browser which can be dragged outside the browser. can anyone please tell me if this is possible in actionscript?? Thanks!!
Naming Window In Pop Up Window Tutorial
hi
In the centered pop up window tutorial it has an option for "target_winName" which i am trying to work out.
I have made a similar window that launches the html pop up from flash.everything is great except that if i press the button again it launches a second window on top whereas in the tutorial it reloads the same window.
I am trying to work out how to use the "target_winName" to have this effect.I know that i put a name in here but i don't know how to name the html pop up so the flash button can correspond.
many thanks for any help on this
paulus
New Window Opening With Centered Window
New window opening with centered window as given by kripa is not working ..... can anybody help me on this....?
http://www.kirupa.com/developer/flash5/newwindow.htm
Popup Window Loading Extra "object" Window For No Reason...
hey all. Following this thread on the subject of popup windows...
http://www.flashkit.com/board/showth...hreadid=397960
Using the code from the Flash-db.com popup window page, I'm getting a second window opening up on top of the window that is supposed to load. The second window contains nothing except the word "object".
sample of code
on (release) {
getURL("javascript:NewWindow=window.open('http://hybrid.concordia.ca/~4919580/dfar351/guineapig/photo/26.html','newWin','width=640,height=520,left=0,top =0,toolbar=No,location=No,scrollbars=No,status=No, resizable=No,fullscreen=No'); void(0);");
}
I'm wondering if it has to do with possibly my personal browser specific settings, or if anyone else gets the extra window as well? No one in the thread mentioned anything about it, but it's driving me nuts... help is greatly appreciated.
ry
How? Flash Links To Html Window Inside Html Window
Hi, at this site, www.jerrycantrell.com, he has flash buttons and when you click on one it changes the content in a small scroll bar window of the page but doesnt reload the whole page, this looks slick. but it is dealing with html, so this question doesnt completely have to do with flash. but i assume the linking commands in flash have most to do with this, all im able to do is change the page entirely with a link, and when i'm only changing somthing in one window its not as quick and because it reloads the whole page just for that one thing it doesnt look as slick because there's a blank white screen between loading the new page.. only for a second, but you get the just of it. anyone know how to do this? much thanks
-randy
|