PopUp Window Help - Toggle Control Between Popup And Stage?
How do you toggle control between a popup window and the main timeline?
I have a button that opens up a pop up window. The popup window is going to contain some text instructions. I would like to have the text instructions visible and allow the user to control a movie clip on the stage. Unfortunately, right now once the popup window appears, the user can no longer control the movie clip on the stage until they close the popup. I'm using MX 2004.
Here is the code I have on my button - this creates the popup window (I got this from some other postings):
on (press) { import mx.containers.Window; var win = mx.managers.PopUpManager.createPopUp(_root, Window, true); win.setSize(375, 262); win.closeButton = true; win.contentPath = 'text'; win.click = function() { this.removeEventListener("click", this); this.deletePopUp(); }; win.addEventListener("click", win); }
This is my first posting, please let me know if I haven't provided enough information or if I'm going about this completely wrong. My project will not be posted on a website, it needs to be executed off of a CD so that's why I didn't use a getURL().
FlashKit > Flash Help > Flash Newbies
Posted on: 04-01-2006, 12:17 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Popup Window From Flash, Making Everything Load In Just 1 Popup
I have a simple thumbnail gallery in flash.
When a user clicks a thumbnail, I want a popup to appear. I got this far... now for my problem.
Without closing the window that has popped up, if you click another thumbnail, ANOTHER window pops up so I decided to keep the name of the windows the same to prevent this.
Now... when you click on the thumbnails, everything loads in just the one window without popping up a new window everytime you click a thumbnail but... the popup window stays minimized or "behind the main window".....
any help would be appreciated, thank you!
Control Size Of Popup Window From Flash
I know I have seen this before, however I can't seem to find the answer now that I need it. I am trying to have a thumbnail popup to a full size window. How do I control the size of the window, etc. that pops up from a Flash photo (mc)?
Button In Flash In Popup To Control Original Window
so i have a pop up window with a flash mov in it - I want a button in the flash to change the original HTML doc to another page.
ie with opening a new window (like if i used _blank)
if u know what i mean!
can it be done?
PopUp Window Gets Blocked By Popup Blockers
Flash CS3
Actionscript 2.0
I have text on the flash website that is being called from an external .txt file. The problem i'm having is that any links called from that .txt file is blocked by popup blockers upon clicking on them.
I have another popup window in the flash itself from on of the navigation buttons, and that one does not get blocked... but the ones in the .txt files do.
However with the design and the content of the flash, I really need that link to be in the .txt file.
Not really sure how i should go about resolving this.
Any and all help will be greatly appreciated, thank you
Centre Popup Window / Title Popup Window
Hi
Can anyone help? I would like my popup window to sit centre of the browswer and have a title on the top can I define it within the following actionscript?
on(release){
geturl("javascript:window.open('myfile.html','winO ne','height=400 width=450');void(0)");
}
Thanks ravenotice
Popup Window From Flash, But Have Only 1 Popup
I have a simple thumbnail gallery in flash.
When a user clicks a thumbnail, I want a popup to appear. I got this far... now for my problem.
Without closing the window that has popped up, if you click another thumbnail, ANOTHER window pops up so I decided to keep the name of the windows the same to prevent this.
Now... when you click on the thumbnails, everything loads in just the one window without popping up a new window everytime you click a thumbnail but... the popup window stays minimized or "behind the main window".....
any help would be appreciated, thank you!
"popup And Drag Window" Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
"popup And Drag" Window Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
"popup And Drag" Window Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
Popup Center Stage
Greetings,
I'm running a flash site from within an HTML "shell". From flash I call a popup with:
on (release) {
getURL ("javascriptpenNewWindow('name of my file.html','newWin')");
}
(courtesy of "I'm Fine")
and in the shell I've got:
<script language="JavaScript"><!--
newWindow=0;
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, 'height=400,width=600,resizable=no,scrollbars=yes, toolbar=no');
}
//--></script>
(courtesy of "I'm Fine")
Now, what I would like is for the window to pop up in the center of the user's screen irrespective of screen size or browser.
Can this be done?
[Edited by curlybushman on 11-07-2001 at 10:27 AM]
[AS2] Grey Out Stage While Mc Popup Visible?
Hey all!
I wasn't sure how to search this so thought I'd just ask here. I'm making a quiz which is more like the game of life. dude walks around a track based on rolling a dice and when he stops on a square a quesiton window pops up.
I'd like to be able to disable everything below the question popup and seem to remember seeing this done via some built in function (as opposed to writing my own). Maybe it was a popup component or something, but thought I'd check before doing it myself in case there's a nice built in easy way
Thanks!
Problems Openin Another Popup From An Existin Popup
helo.....
The first popup window is fine...
but when i use this method again on the swf in the popup to open another popup... it fail... y is this so????
Thankz alot for spendin time to go thru the script...
Script in flash...
------------------------------------------------------
on (release) {
getURL ("javascriptpenNewWindow('XXX.htm','popuppage',' width=430,height=90,top=0,left=0,scrollbars=no')") ;
}
-----------------------------------------------------
Script in html...
-----------------------------------------------------
<script language="JavaScript">
var newWindow
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName,width=400,height=160, windowFeatures);
}
var height = window.screen.availHeight;
var width = window.screen.availWidth;
window.moveTo((width /2)-400,(height /2)-200);
</script>
------------------------------------------------------
Load Jpg Into Popup, Size Of Popup Based On Jpg?
How do I dynamically load an external jpg into a new popup, but with the popup size based of those of the jpg, so as to leave a 30 pixel border around the jpg???
I also want to dynamically put a short description of the photograph at the bottom.
Please help!!!
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!
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
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
Popup Control By Html Title Bar
Hello all
I've created an instant messenger with flash that works fine. my only problem is that when u click on a name in the buddy list multiple times it opens multiple windows of the same chat window, which is a popup by way of getURL and localconnection, therefore opening more than one window of the same conversation. I wanted to control this by somehow dynamically inserting the contacts name in the popup chat window's title bar depending on the name selected from the buddy list. How is this done? I've seen it done in numerous places online so I know it's possible, just not sure how to implement. All feedback welcomed. Thanks.
Tone
Popup Window
hi everyone,
i want to open a new browser window with no scrollbar or topnav at a set size and a set location. anybody know the code to do this from a release button action?
Popup Window
Hey,
alright i have a flash enter page. i have a button that says enter, when i click on that button i want a popup window with my page on it. i want that window to have no toolbar. what actionscript do i put on the enter button to make this happen?
L8
Popup Window
How do i get my flash movie to popup into a seperate window with no browser stuff from my html link. example http://www.smithsports.com
thanks for your help
PopUp Window
I have a index html page where there is a button that when pressed it opens a popwindow with my flash movie. Now it looks fine in Netscape but in IE 5 the window is about 10 pixels off around the border . Does anyone have a script that will fix this I just want the flash movie to fit excatly to the popup window .
POPUP Window -- WHY?
Why do alot of Flash sites pop up in a 'Tollbarless' window? Ive done several all-flash sites and have never done this before. Is there a specific good reason?
Please infor me.
Thanks---and this is nothing more than a basic Javascript popup window with No toolbar, etc. etc. and Loaded with the SWF file only correct?
Thanks again. tvance
Popup Window
I need to center a popup window relative to the viewer's screen. Right now I'm using this code:
<HTML>
<HEAD>
<TITLE>index</TITLE>
<SCRIPT LANGUAGE="Javascript">
function OpenPopup()
{window.open('aitest.html','window','toolbar=0,loc ation=0,directories=0,status=0,menubar=0,scrollbar s=0,resizable=0,width=600,height=400,top=0,left=0' );
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="javascript:OpenPopup()"bgcolor="#FFFFFF">
</BODY>
</HTML>
Any help is appreciated.
Popup Window In IE6
Hello to everyone,
Anyone knows how to open a popup window in IE6, I've tried all the codes I had but none of them works.
I want to open it without toolbar,address bar....
Thanks in advance...
Andres
More Then One Popup Window?
Ok i finally worked out how to get a popup window to work from flash but i can only get one to work!!?
Button in flash contained this:
getURL ("JavaScriptop();");
The html file has this code in it:
<SCRIPT LANGUAGE="JavaScript">
function pop()
{
window.open("popup.html","","height=250,width=525, left=0,top=0");
}
</script>
How do i make another button to open another file??
Popup Window
I'm trying to open multiple popup windows from within a flash movie.
I obtained the following script:
<SCRIPT LANGUAGE="JavaScript">
function pop() {
window.open("popup.html","","height=200,width=200, left=0,top=0");
}
</script>
That means that a specific button in the flash movie will execute the 'function pop()' command and open #popup.html'.
But what if I have another button which is supposed to open another, different popup window? If it executes another 'function pop()' command it would open again 'popup.html'? How do I have to alter the command to open a different url?
Thanks a lot.
Popup Window
the problem which prevents me from sleeping:
index.html incorporates a button that opens movie.html which has movie.swf embedded (window size: 500x450)
Once movie.swf is open, the swf-file has 3 buttons:
Button A, Button B, and Button C.
If Button A is clicked, popup window A (which includes another swf-file A) is opened (size of the popup window: 200x200)
If Button B is clicked, popup window B (which includes another swf-file B) is opened (size of the popup window: 210x500)
If Button C is clicked, popup window C (which includes another swf-file C) is opened (size of the popup window: 300x450)
I’m desperate to find the correct javascript codes for those actions.....!!! How can I open differently-sized popup windows with specific contecnt from within the main swf-file??
U can’t imagine how much I thank u for your advice.
Thank You.
Popup Window
I'm having difficulties with borderless popups. I have added this JavaScript to my index.html in which all the swfs open/load:
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
and I've added this action to a button:
on (release) {
getURL("javascriptpenNewWindow('my.html','thewin ','height=400,width=400,toolbar=no,scrollbar=no')" , "_blank");
}
But it doesn't work. A new window opens, but with the "javascriptpenNewWindow etc" in the url/address field and nothing else happens.
What am I doing wrong?
Popup Window
Doe's anybody knows the right javascript to open a popup window in the middle of the screen.
Please help me
Thanks in advance.
Lallo
Popup Window
Im using flash mx and I want to open a new window without any toolbars, scrollbars or anything except the title bar.
It needs to be 547px*398px and what I really want to know how to be able to do, is, make it popup in the center. Of the screen no matter what resoulution the users screen is at.
Popup Window From A Popup Window
I can call a popup window from my Flash MX movie without a problem, but when I display my Flash MX movie from within a popup window, it won't bring up a new popup window.
I have placed the java code in all of the html files.
Any help is appreciated.
PopUp Window
I am displaying a swf file in a popup window.When i try to close the window by clicking on close button my swf gets unload but not the movie.
I have written the code.
on release()
getURL("javascript:window.close()"
Second thing i want to change the name of the ppup window.I have written the code as
On release()
getURL(javascript:window.open("intro.swf","DEMO"," width=600,height=500")
But it is not taking the name of the window as demo.
All this is done in FLASH 5.
Please help me out as this the last stage of my project.
Popup Window
hi i want my window to pop up in the middle of the page but it allways pops up in the top left ???? can anyone help
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.my site.html','newWin','width=400,height=300,left=0,t op=0,toolbar=No,location=No,scrollbars=No,status=N o,resizable=No,fullscreen=No'); screen_width = window.screen.availWidth; left_point = parseInt(screen_width)-400; setTimeout('NewWindow.moveTo(left_point,0)',100); void(0);")
i think its the left=0,,,,e.c.t. but i am not sure
Help With Popup Window
Hi...I have my thumbnail as a button and I want to open "pic1" in a popup window. Can anyone help with the actionscript to open "pic1"? Right now, I have my larger pictures (jpegs)(pic1 - pic18) in the same folder as all my other flash files. I have about 18 thumbnails that I want to open in there seperate windows if the viewer chooses....how do I do it??? Do I have to put them each in an html file then open them that way, or can I open them just as they are in jpeg format?
Popup Window
hi
is it possible to specify a popup window opening centre of the browser within flash? or do I have to add a javascrip function to the html of the popup?
thanks
ravenotice
Popup Window Help
Ok I have a website that is flash and I want to add JavaScript style popup windows without a browser or any of that stuff. I make my buttons and put them in and this is all on one page so I need to find a way to make all my buttons open to there specific windows. I also when back and used a code from the boad to see if it worked and it did but what I need is a code that makes it possible for me to resize the windows once I've published flash and all that and I also need to add scrollbars to each window. I want the windows to be able to be different sizes set to there specific page once you click the link. I hope this makes sense and I hope some one can writing me out a code that I can add to my html and a code to put in the getURL action in flash for each button...Please help...Thanks
PopUp Window For SWF
What Action Script function do I use to type in the Javascript to make a new PopUp swf browser from within a Flash movie browser.
Popup Window
Hi there,
I want to open a new popup window with a button created in flash. Is there somebody who can tell me a command to use within the GetURL action?
Thanks
Popup Window
Hey guys, i could use a little help please
i'm working on my portfolio, i have thumbnails and i would like to be able to enlarge them (in a new popup window) by clicking on a button, how can i do that.
Thank u 4 the help
Popup Window
Hello,
I am trying to open a new window from my Flash movie and cannot get it to work correctly. I would like the new window to open with an html document, a certain size and in a certain location. The new window opens, but none of the arguments are used. Can somebody please tell me where I am going wrong.
This the code in the html document that holds the Flash movie:
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('newpage.html','','toolbar=no,location =no,directories=no,status=no,menubar=no,scrollbars =no,resizable=no,width=200,height=400,left=0,top=0 ');
}
</script>
The is the buton action in Flash:
on (release) {
getURL("javascriptopup(); ", "_blank");
}
Thanks!
Audrey
Popup Window
Hi
i have a popupwindow on my site with a flash country map inside the popup. on this map users are able to select multiple regions, whereafter they close the window.
what i need now is to send these regions back to the site where the user came from in an array or something. i use php & javascript on my site...
can someone please help me??
regards goos
Popup Window
hi im Jin
how do u link from swf file to html window or in dreamweaver.
Popup Window
Now here is my problem
i have a "enter" button on my web site and when i click it i want the site to be displayed in a new window but without the toolbar. i also have pics that i want to display in a new window (no toolbar again) by clicking on a button. Basicaly i am trying to do as it is on www.cricom.com
thank you very much guys
Popup Window
Hi...Can anyone help me with launching a popup window from flash? Creating a CD-ROM in flash and when the user clicks on a specific button I would like an internet explorer window to pop open that is a specific size and without scroll bar, menu etc. Can this be achieved? any help would be really welcome. Cheers
PopUp Window
I need help with opening several popUps from flash into New windows.
I used this:
javascript:NewWindow=window.open('ubicacion/ubica_fs.htm','newwindow','width=300,height=300,to p=0,left=0'); void(0);
but it opens inside the same window.
This script
on (release) {
getURL ("http://www.url.com", "_blank");
}
works fine, but I can't make the new window a specific size
Can anyone help me make my popUps a specific size (and in NEW windows) ?
Thanks!!
|