Flex - CenterPopUp Centers The PopUp But With Delay?

Apr 25, 2010

did someone else encounter this problem? I use the methods PopUpManager.createPopUp() and PopUpManager.centerPopUp() to create and center a pop up window but it looks strange, like the window is created at (0,0) and then reappears in the middle of the screen. how do I fix this?

View 1 Replies


Similar Posts:


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 :: CenterPopUp(); And Pass In The Whole Application?

Oct 22, 2006

I'm working on some dialogs and need to center the dialog. But not over the chart that it's created from, instead I need it centered over the whole application. To do this what should I pass in to centerPoup()?

View 2 Replies

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

Scaling Selection About Multiple Centers?

Jun 25, 2009

In Flash CS3 is there any way to scale a large number of symbols (each on their own layer) at the same time, about each symbols own center. For example after scaling down, every symbol is smaller but it's x,y position has not changed.

View 1 Replies

IDE :: Test Movie Centers Clip Off-stage?

Mar 6, 2009

I've been fighting this one for weeks - I've tried changing the Document Properties, Publish Settings, and even placing huge white boxes behind the clips I want to preview ... all to no avail! What gives?

Basically, whenever I'm inside a nested movie clip, and Test Scene (Control-Alt-Enter), the animation is centered in the upper left of the stage, so I can only see the bottom-right quarter of the animation - the rest is off-stage and not visible!

View 1 Replies

ActionScript 2.0 :: Using The Equillibrium Code That Centers An Object Between 4 Other Objects

Aug 19, 2004

i've been using the equillibrium code that centers an object between 4 other objects, but when you put the 4 objects inside of another symbol i messes up and i have all the roots right. If you look at the .fla you will be able to see how easy the code is ( its in the square) but it wont work.kirupaForum

View 1 Replies

ActionScript 2.0 :: Resize Class That Centers Main Movie?

Nov 23, 2007

I am trying to make a resize class that centers my main movie, but i can't seem to get it to work when i put it in a class.

This is my code so far.

Code:
import mx.utils.Delegate;
class resizeClass extends MovieClip {
private var sw:Number = Stage.width;

[Code]....

View 5 Replies

ActionScript 2.0 :: Mask Over Script - Load A Picture And Centers It?

Apr 16, 2004

is it possible to have a mask over this script:

_root.createEmptyMovieClip("emptyMC", 1);
_root.emptyMC._x = 25;
_root.emptyMC._y = 25;[code]....

what it does is load a picture and centers it, what would be nice is to have a mask over it....

View 9 Replies

ActionScript 2.0 :: Create A Delay Via SetTimer, SetInterval Or Delay?

Feb 23, 2009

I want to create a function based (not frame) delay of about 10 seconds to the function at the start of a flash movie, the code only needs to run once.I'm very new to actionscript and have been given links to SetInterval and SetTimer examples but they all seem to be very complex.The function is below. I believe it's possible to add the commandTimer(delay:Number, repeatCount:int = 0) how me to a simple example.

onClipEvent (enterFrame) {
framePos = int(_xmouse / 100 * _parent._totalframes);
if (framePos < 0) {

[code].......

View 4 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

Flex :: Timer Delay Changer?

Jan 12, 2012

var timer:Timer = new Timer(x);
basically x is an array...
when timer.start() is invoked

it runs, the first count is 1000 ms, then the second 800 ms, and the third 6200 ms and so on. In other words, it's a dynamic change in the delay and not a continuous delay of x ms.

View 2 Replies

Actionscript :: Delay Before Playing Embedded Mp3 In Flex 3?

Nov 19, 2009

I am embedding an mp3 into my Flex project for use as a sound effect, but I am finding that every time I play it, there is a delay of about half a second from when I call .play() to when you can hear the sound. This makes it weird because I want the sound effects to sync to game events. My mp3 itself is only about a fifth of a second long so it isn't because of the contents of the mp3.

I'm embedding with

[Embed(source="assets/Tock.mp3")]
[Bindable]
public static var TockSound:Class;

[Code]....

I know there's a delay because the sound plays about a half second after the Alert displays. I did consider that maybe it was the initial loading time of constructing the TockSound, but the delay is there on all the subsequent calls as well.

How can I avoid this delay on playing a sound?

Update: It turns out this delay is only present when playing the swf on Linux. I believe it is a Linux-specific flaw in Adobe's flash player.

View 5 Replies

Flex :: How To Cancel Effect During Start Delay In AS3

May 5, 2011

I've got a Glow effect (glowIn) being applied to an object on the roll over which has a startDelay applied. I have another glow effect (glowOut) on roll out. If the user mouses out of the control during the startDelay of glowIn, I want to cancel the effect. How do I do this? In this instance, I'm using a glow effect with a startDelay of 300ms. I want a short pause before the item actually shows the effect, but I don't want the effect playing if the user mouses out during this time. I'm setting the properties as follows:

component.setStyle("rollOverEffect", glowIn);
component.setStyle("rollOutEffect", glowOut);

I don't think it matters much, but the component in question is a Series within a chart that gets created at runtime so I would prefer a solution in actionscript rather than mxml if possible.

View 1 Replies

Actionscript :: Flex - Errorstring Tooltip Delay?

Dec 16, 2011

I've got a simple text input which I want to use the errorstring tooltip on, ie. when you assign a value to errorstring it colours the textinput red and shows an error tooltip when you hover the mouse over it.

This all works fine, but there is a long delay (maybe 10 seconds) between when the mouse is over the offending textinput and when the tooltip appears. Does anyone know how to influence this delay? I've had a good look around, but can't find anything.

View 1 Replies

Actionscript 3 :: Flex - Delay SetStyle Until Next Update?

May 26, 2009

I have a component composed of two parts, let's say two Hbox A and B in a Vbox. On a specific call I want to:

[Code]...

The problem is that the border get drawn before the resizing of the parent Vbox happen, so i end up with a border Around the Vbox with B invisible :

[Code]...

View 4 Replies

Flex :: Cannot Tab Between Controls On A Modal Popup?

Sep 25, 2009

Create a modal popup to popup with popupmanager (mine is a group with a skinnable container inside of it)Put field components (textinputs) on the modal popup Attempt to tab between controlsTab switches to controls behind the modal-popup and ignores the fact that the modal is there. The tab loop only contains controls behind the modal. I've tried everything from setting tabChildren, to hasFocusableChildren. I can't implement IFocusManager as it's Halo and my modal is a Spark group, but would that work in some capacity? It really seems like Flex just ignores the modal in its focusmanager.

View 3 Replies

Flex :: Add A Preview Button To The Popup?

Dec 7, 2009

I am working on an image management application. We have an Adobe AIR client talking to a WAMP server. The MySQL DB stores the images as blobs.We have an image search feature. Upon searching, I am displaying the results as XMLList in a popup window and provided a download button. Downloads work fine. I also want to add a preview button to the popup.how can I code this. Without having the file on the client, I cannot preview. But when I use save() method, the os dialog opens up.

View 1 Replies

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

Flex :: Center Popup Window In 4?

Mar 30, 2010

How can I center popup window in flex 4 ?

I have tried:

PopUpManager.addPopUp(AlertPopUp,DisplayObject(spark.components.Application), true);
PopUpManager.centerPopUp(AlertPopUp);

but it's problem with conversion Application->DisplayObject.

View 2 Replies

Find An Open Popup In Flex 4?

Sep 1, 2010

I'm opening popups (subclass of TitleWindow) in Flex by using

PopUpManager.createPopUp(parent, TrainCard)

Is there any way I can get a list of popups that are open? Or do I need to keep my own list?I need to make sure I'm not opening the same popup twice.

View 1 Replies

Flex :: Set A Public Var In A Popup Window?

Feb 9, 2011

I am trying to set a variable in a titlewindow pupup and use it in a script section. The variable is not being set and I don't know why. Here is my Main.mxml file:

[Code]...

View 2 Replies

Flex :: How To Popup TitleWindow In Module

Jun 22, 2011

I want to open TitleWindow in flex Module.

My Main page is Application Page and I want to open Module page from Main Page. In Module page there is TitleWindow control. I want to popup title window in Module Page.

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

Flex Loads Flash SWF With Popup?

Oct 25, 2011

My Flex application is required to load a SWF file externally. This SWF file has a popup. How could I ensure the popup is at the middle of my Flex application and modal?

Edit: The popup component is owned by SWF file (through a "Show more" button) and is not just an Alert. The SWF file is provided by third party. Any update on the SWF file and its popup component do not require re-compilation.

View 2 Replies

Flex :: Air - Popup Window - Get [ok] Or [cancel]

May 23, 2009

I've done a lot of C# programming with both Winforms and WPF. I'm working on a Flex/Air app now for cross platform support. But this is my first flex project, so I'm learning as I go. I've got a window that I want to popup, that the user will fill out a form, then hit OK or CANCEL. I set it up the same way I would've in C#, but it doesn't work, and I can't really see a way to make it do what I want.

[Code]...

View 3 Replies







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