Flex :: Run Function On Popup Close?

Mar 3, 2010

I'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);"/>

View 1 Replies


Similar Posts:


Actionscript 3 :: Close The Adobe Flex Popup Non Modal Window If Click On The Parent Page Of The Popup

Dec 12, 2011

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 Replies

Flex :: Close All Popup Windows?

Aug 8, 2011

I 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 Replies

Actionscript 3 :: Remove/close Multiple Popup In Flex Application?

Mar 15, 2012

if we open lot of popup during browsing(web) or in an AIR application, how remove them at once?

View 2 Replies

Close A Popup Box With An X?

Mar 10, 2012

I 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 Replies

Actionscript :: Flex Popup Manager Mouse-down Outside Of Popup Removes The Popup

Mar 4, 2011

If 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 Replies

ActionScript 3.0 :: Close Popup Calling Another?

Oct 16, 2009

I 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 Replies

ActionScript 2.0 :: Close Popup Within Flash

Mar 28, 2004

i'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 Replies

IDE :: Close Popup Before Menu Is Active Again?

Apr 16, 2009

i'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 Replies

ActionScript 2.0 :: Getting A Close Button To Work Within A Mc Popup Box

May 24, 2011

Have 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.

View 4 Replies

ActionScript 2.0 :: Popup Effect With A Close Button?

Aug 8, 2007

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 Replies

Javascript :: Close Popup Opened By Embeded Flash

Nov 17, 2011

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 Replies

ActionScript 3.0 :: Close Flash Popup Without Getting Windows Warning Msg

Apr 22, 2011

I 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.

View 2 Replies

ActionScript 2.0 :: Popup Aggravation - Window Does Not Close On Click Of The 'x'?

Jun 30, 2004

I'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]....

View 1 Replies

ActionScript 3.0 :: Button - Close The Flash Movie And The Popup Window

Nov 25, 2009

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 Replies

Flex :: Passing Data From Popup To Popup?

Dec 7, 2010

I have a web application which contains a data grid. Double clicking on any row of that grid will open a popup (lets call it popup1). Now this popup1 again opens a new popup(lets call it popup2). When I close the popup2, I need pass an Object to popup1. Which is the easiest way to do that?

(PS: While opening popup2 from popup1, I am adding an event listener on Close event of popup2)

View 3 Replies

Flex :: Parsley Popup Displaying 2 Popup?

Jul 7, 2011

I have a parsley popup that can create another popup.The issue comes when I close the root popup, when I open the popup again and click on the child popup, it's actually opening 2 child popups.Any idea why this thing happen?

<parsley:PopUp open="{presenter.scenarioCreatePopup}" modal="true" center="true" reuse="false" id="hem" >
<views:ScenarioView width="100%" height="100%" id="scenarioView"/>

[code].....

View 1 Replies

ActionScript 3.0 :: How Responsive Loader.Close Function Is

Nov 7, 2009

Does Loader.close() stops loading at once, or it continues loading certain number of chunks before stopping? Is it viable to run concurrent loading process in the background and then stop it abruptly (or even pause if possible) if user needs something else loaded immediately? And what about loading of other types of external content?

View 0 Replies

ActionScript 3.0 :: Error Popup - Function Does Not Have Body

Aug 24, 2011

I have a problem running this program. An error "function does not have a body" pops up.
stop();
import flash.events.MouseEvent
start_.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
gotoAndStop(1,"Scene 247");
gotoAndStop(1,"Menu");

View 2 Replies

ActionScript 1/2 :: Trigger A Function When The Popup Window Closed?

Aug 27, 2009

using the javascript window.open() and getURL() i am opening a popup from flash. I want to call some flash function when i close that popup window.

View 3 Replies

ActionScript 3.0 :: Calling A Function Present In Parent From A Popup?

Aug 7, 2009

Basically i am trying to call a function which is present in one.mxml from a pop-up in two.mxml with a parameter.

one.mxml :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
<mx:Script>
<![CDATA[

[Code].....

How to i call parent's method when i don't know who the caller is?

View 0 Replies

ActionScript 3.0 :: Test If Loader Has A Stream Loading Before Calling The Close() Function?

Nov 4, 2009

I'm loading an image into a container. The container is simply a loader object with a progress event listener and a complete event listener. It is loaded when a thumb is clicked in the gallery and it displays the image larger.Basically it is possible to interrupt the loading process of the current load stream and load something else by clicking another thumb in the gallery before it's complete.

If you call loader.close() when nothing is loading, Flash will call back an error saying that there is no stream attached to the loader object.Is there a way to test if the loader object is presently loading, and if so to close it?

View 2 Replies

ActionScript 2.0 :: Function Invoked When Closing Projector Using The Default Window Close Button?

Apr 10, 2007

I am making a flash application and I am trying to find function to use when I press the close button of the projector window. I dont want to make a button that uses fscommand("quit") since this would be impractical knowing that a default close button on the window is already available. Anyway the purpose of the function is that when I close my application, a dialog box/message would appear as a reminder that some data has not yet been saved and give the user an option to save or quit the application.

View 2 Replies

ActionScript 2.0 :: Close Browser By Clicking On Close Button Embedded Swf?

Jul 27, 2009

i want to close browser by clicking on close button embedded swf. I have tried fscommand("quit"), but which is not working on browser.

View 9 Replies

Actionscript 3.0 :: IsChildOf() Function - Add A Menu Popup Child And Tween It From Off The Stage?

Sep 30, 2011

i have several objects on the stage and a MOUSE_OVER on any of these will add a menu popup child and tween it from off the stage a MOUSE_OUT will tween the menu away and remove the menu with removeChild heres the bug: if i mouse out and then quickly mouse over the same object while the menu is tweening away before it has been removed, it doesn't add the menu again, and then on the next mouse out, it tries to remove the child menu, which isn't currently a child because it was just removed, and i get the error:

[Code]...

View 2 Replies

Flex :: Flex - Programmatically Close A DateField Component?

Oct 17, 2010

I'm using a dateField component (with editable = true) as an itemEditor in a dataGrid. Interestingly, when editing the textInput part of the dateField it doesn't seem to react to an ESC keydown as I would expect, i.e. reload old dateField value and give up focus. This seems to be standard for most other components, but not for as most other components do.

How would you go about implementing such behavior? I can listen to keydown == escape on the TextInput portion, but just realized that I don't know how to tell dateField to give up focus and politely close - in fact I'm not even sure that's the right strategy (maybe I should work at the DataGrid level?

View 1 Replies

ActionScript 2.0 :: Multiple Centered Popup Window - Buttons Don't Open / Replace Past That One Popup

Jul 6, 2004

i'm using the centered pop up window script from: [URL]. i have multiple buttons in my flash movie which open screenshot html pages in external browser windows. the script works fine except when a popup window stays open. the rest of the buttons don't open/replace past that one popup. i tried changing the window name in the onRelease script to screen1, screen2, etc for each button, but that didn't work.

View 1 Replies

Flex :: Positioning / Scrolling Problem With Flex Popup?

Apr 9, 2010

I'm trying to work out a specific problem I'm having with positioning in Flex using the PopUpManager. Basically I'm wanting to create a popup which will scroll with the parent container - this is necessary because the parent container is large and if the user's browser window isn't large enough (this will be the case the majority of the time) - they will have to use the scrollbar of the container to scroll down. The problem is that the popup is positioned relative to another component, and it needs to stay by that component.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>

[code]......

View 3 Replies

Flex :: Flex - Pass Data From Popup To Parent?

Jan 1, 2011

I have a parent w/ a popup child. When parent loads, I have to call a function within the popup without showing the popup (thus, I load "pupLove" but don't include it in layout)....I then pass this data to the parent. When the user manually clicks another button to open the popup, the same function is called & data passed to the parent. However, I am not able to pass dg.length to the parent. I believe the root problem is that I am loading "pupLove" & thus the parents are getting confused.....I'm guessing if I get rid of "pupLove" I can pass the data correctly but will need to call the child's function at creationComplete of the parent....how do I do that?Here's my parent:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code].....

View 1 Replies

As3 :: Flex - Detect Swf Close Event?

Dec 16, 2010

how can i detect swf close event in ActionScript 3. I need to perform some action while swf close event.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved