Flex :: Close All Popup Windows?
Aug 8, 2011I want to show all popup windows(already popped up and closed individually) on an image by pressing a button press and want to close all those windows on another button press.
View 1 RepliesI want to show all popup windows(already popped up and closed individually) on an image by pressing a button press and want to close all those windows on another button press.
View 1 RepliesI have a parent window that has a flash movie embedded in it. When a certain button is clicked inside the flash movie, it calls a a pop up javascript function to pop up a window with another flash movie embedded in it. This flash movie (the one embedded in the pop up window) has a button that I need to close the pop up and refresh the parent window when clicked. (i.e., when the user clicks the button, the pop up closes and the main parent window goes to a different URL).
I used javascripting inside flash to do so, it works fine, however, I keep getting a warning message when using IE : ("The website you are viewing is trying to close the window, do you want to close this window?"). This message is not displayed in FireFox. I don't want this message to appear. I read about a lot of solutions around this, however, they only work when I test them in regular html pages, but not when used in a button inside a flash movie.
I need to close the popup(adobe flex), non modal window if I click on the parent page of the popup. I have to do the out of focus check and then do some validation before close the popup. So what I was thinking that is there any inbuilt focus check event or do we need to create custom event for that?
View 1 RepliesI've got a flex project that I'm working on. Currently I've got a popup that consists of another mxml file containing a form.
Once the form is filled in and submitted I'd like to run another function then the popup closes on the main mxml file, but I'm not sure how to go about doing this?
Here's my popup code
private var weightadd:weight_add; //POP UP ADD WEIGHT FORM
private function weightAdd():void {
weightadd = new weight_add();
[Code]....
Currently in my weight_add.mxml file I'm using a button to close the popup, I'd like have this button close the popup and then call a function in my main.mxml file - I'm just wondering how I go about doing this.
<mx:Button x="186" y="83" label="Cancel" styleName="formbutton" id="cancel_button" click="PopUpManager.removePopUp(this);"/>
if we open lot of popup during browsing(web) or in an AIR application, how remove them at once?
View 2 RepliesI have a pop up box on a button which does open and close but I would like to add an X to the corner which would also close the box.
View 2 RepliesIf you create a popup via:[code]It will create a popup and bring it on top of any other visual piece. I have one problem though. This 'popup' needs to stay up even when the user interacts with the background.I would use modal, but I need the ability to interact with the back. Any way to tell the popup manager not to remove the popup when the user clicks off of it?
View 1 RepliesI have an application that creates popupA. PopupA then (based on a button click) calls PopupB. How can I close popupA as popupB be is being created? Or, when I'm closing popupB how can I simutaniously close popupA.
View 1 Repliesi've found that tut to open a window. all good.URL...But how do you do to close the pop up within flash (from a button in the swf embed in the pop up)?
View 2 Repliesi'm working on a project where i would like to build a menu of 3 buttons in the bottom of my screen, when 1 of these buttons is clicked a little popup MC pops up with a X sign to close it. WHen the popup is active the background (the buttons) fade to a 30% alpha and a re not clickable anymore. When i close the popup MC with the X sign then the buttons are active again. I seen a tutorial how to do this but i lost it.
View 2 RepliesI did open 4 windows of the library. I can close these library windows one by one but when I chose to show my library again all 4 windows open. I tried to reset it with chosing my standard workspace but it still happens allways when I open my library window again again.
View 2 RepliesHave been having difficulty with this issue of getting a close button to work within a mc popup box (it is doing my head in !) Basically I have a Button on the stage that launches a popup mc. To close this popup, I have a 'x' for the user to click on to close this box. I don't want the box to become 'invisible' or for the whole box to close when clicked on (I have tried both but not what i am after). It is important for user to be able to relaunch this box by clicking on the button after closing previously.
It would be great if anyone would be able to view the fla atatched and explain what needs to be included, and perhaps upload a working verison.
I wanna make like a popup effect with a close btn, the matter is that I don't know how to fix it. So any time that I click on any btn will only show a popup, then if I click in another btn the previos popup disappear and shows the new one, by now I can't figure out how fix it.
View 1 RepliesI used Flash a wee bit several years ago, but now with AS3 I'm a bit out of my depths... Anyway I have this template I'm adapting, and at the moment it is a thumbnail gallery that loads via an external xml file, and the fullsize image it loads is a link to an html file. The only thing is that it loads the html file in a new window and I want it to load in a popup window. I have figured out how to make a regular popup window using AS3 but that doesnt help me for this case as the actionscript is a bit more complex and going via the xml.... I have honestly spent a good 8 hours scouring the net for tutorials and nothing tells me exactky what I need to know to adapt my particular code.
Here is the code in my actionscript that seems to be calling up the html link part of the xml file:
function pic_click(e:MouseEvent):void
{
navigateToURL( new URLRequest( flashmo_tn_list[current_no].url ),
flashmo_tn_list[current_no].target );
}
[Code].....
My question is, is there a way to alter this code so that all the files in the xml will open as popups?
I have my html where I embed third-party flash video by means of iframe. When I click play on the video a popup is opened. I was wondering id there is a way to add a javascript function to my html that would close such a popup immediately when it is opened?
View 1 RepliesI'm having a problem destroying a pop-up.The window creates beautifully, but does not close on click of the 'x'.Here's the code
Code:
buttonListener = new Object();
buttonListener.click = function(){[code]....
how can I make a windows popup when I put my mouse cursor over a item? The popup should display the item name and it's characteristics. When the cursor rolls out fo the item, the popup windows disappears.
Is there a function in as 3.0 that does this?
Is there any reason why a scrollbar would not show up in a popup window? THe popup window is a dreamweaver document.URL...If you click on the "Interior" button, and then click on any of the balusters a popup window will appear with 4 images. This popup window has no scrollbar?? It should, and I didn't do anything to tell it to "not show a scrollbar".The scrollbar shows up on my Mac, but does not show up on my friends Mac, nor does it show up on my PC?Also, I have been doing a few tests on this page on the first few balusters (trying to get around the scrollbar issue), so maybe pick the 5th baluster, rather than the first one? Or pick one of the last balusters.
View 2 RepliesI have different buttons to open another browser window using getURL. The problem is each button opens a new browser window. If a user does not close the window when coming back, there would be many browser windows open the same time. A few users get confused by this thinking that they are accessing the same page.Is there a way to control it so the popup will open all at the same window (if someone chooses not to close the window each time)?
View 2 RepliesI have an FTP program written that uploads ByteArrays through sockets. It works great on my Mac! I open a command connection, then a data connection, send the ByteArray and then use socket.close() on my data connection. This causes the server to disconnect me and sends the 226:transfer succeeded message back through my command connection. The problem is that in IE8, FF 3.5, and Safari 4 on Windows the socket.close() func does not make the server close the connection. The fact that it works in all of my Mac browsers, and the IDE, but not in Windows browsers makes me think that it's something to do with the Flash Player.
My FP version check data:
MAC 10,0,32,18
WIN 10,0,32,18
I have an html page with a link that loads a popup window. The popup includes a simple Flash movie. Some basic Javascript code in the html file was used to produce the popup window. What Im trying to do is have a button that I created in the Flash app close the Flash movie and the popup window.
View 2 RepliesI have many photos (converted to buttons) in a movieclip. This movieclip slides continuously across the stage in which the speed and direction are dictated by the mouse's position.I want these pics to be hot and when the user clicks on them a fixed-size window (html page with larger image) appears. I added the javascript and altered the published HTML but the windows popup with no controlled settings that I placed in the getURL script assigned to each button. A sample of what I am trying to do is at [URL] Click on an image then click again. That's the box I want.
View 5 RepliesI have an externally loaded file in flash. I'm trying to create a pop up from the text file. In order to do so I place a function into my actionscript, then place the link inside my external text file. It works fine but only while publishing in flash 6 and not 8.Below is the example of the function and the internal link.
openWin = function (url)
{
getURL("javascript:window.open('"+url+"','newWin', 'toolbar=no,width=760,height=560'); void(0);");
};
<a href='asfunctionpenwin,http://adobe.com'><font+color="#0000ff"><b>Link</b></font></a>
I am very new to Actionscript and I'm only used to stop();and GetURL. I've spent countless/frustrating hours on how to make thesebutton codes work with a window pop-up. I am almost there.PROBLEM: I have four different buttons pointing to fourdifferent URL's. The code below is not allowing me to pull up theurl's, individually in the script. It keeps opening the same URL.Here is the code: (Do I apply the code to their own actionlayer for each movie or all in one actions layer like I have it)?
stop();
aj_button.addEventListener(MouseEvent.CLICK,
buttonClickHandler);
[code].....
I have and swf embedded into an aspx web page. I am using ExternalInterface.call to open windows using javascript Eeverthing is working fine when stage.displayState = "normal" all popup windows are diplaying behind the flash when stage.displayState = "fullScreen";Does full screen mode allow the popup windows to be displayed just like normal mode?
View 6 RepliesI want to open a simple pop up window on a user click in a flash movie. I can make it work from all browsers except Chrome (6.0.472.41 beta) which blocks the pop up. Here is an example: [URL] (click the black rect, to bring up a google page in a popup);
[Code]...
My flash banner is placed above my light box popup windows and my Wibiya Toolbar
View 1 RepliesI am trying to figure out how to make buttons on my flash file link to URLs that appear in a window of fixed dimensions (with scroller bars) next to my Flash window. I am aware that Adobe has instructions for creating pop-up browser windows through Flash [URL]. However, what I'm trying to do is a bit more complicated, since I want to have multiple embedded invisible buttons in the Flash window that each take you to a specific URL when you click on them. Alternatively I'd be happy if any button click resulted in a link to a random selection from a pre-programmed list of URLs. This is for ActionScript 3.
View 5 RepliesI'm working with a very old version on Flash (Flash 8 Professional) and need to show popup windows similar to JQueryUI Dialog Boxes [URL] How can i get similar objects using this version of Flash?
View 1 RepliesI will be making flash projector. How do I make windows pop up on flash projector when you click on buttons while exploring the contents inside?
View 7 Replies