Flex :: Air - Get The Parent Of A Custom Grid Column Filter Editor And Open A Popup Window?

Jan 31, 2012

I am trying to figure out how to open a pop up window in my Air application, in a secondary Window, instead of the main application window.I am using the ReusableFX components, which include a custom DataGrid with filtering and other capabilities. The filtering feature displays a pop up window via PopUpManager when you click on the top of a column in the grid.

PopUpManager.addPopUp(this, FlexGlobals.topLevelApplication as DisplayObject);

The problem is that the pop up window opens in the main application - I am assuming because of the 'topLevelApplication' reference.So, I need a way to open this window in the current Air "s:Window". I am assuming I need a way to walk up : this.parent.parent or this.owner.owner - though I have tried that and it did not seem to work (it said null reference).OR, is there a way to get the current top most window / component (NOT the main application / window)?

Update:I decided to create a new project for the component, and add in the Air libraries. Now I am able to access the "NativeApplication.nativeApplication.activeWindow" call. That gives me the correct Air window. However, it does not seem to be working:

PopUpManager.addPopUp(this, NativeApplication.nativeApplication.activeWindow as DisplayObject);

My popup does not appear. I am assuming because "activeWindow" is not actually a DisplayObject?(so how do I get the DisplayObject if that's the case?)

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

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 :: Applying PaddingRight To Grid Column Not To Grid Header?

Mar 31, 2010

Whenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well.Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.

<mx:DataGridColumn width="60" headerText="Type" dataField="Grade" headerStyleName="headerLeft" textAlign="left" draggable="false" resizable="false" headerRenderer="GridHeaderRenderer" paddingRight="5"/>

View 1 Replies

How To Open Popup Window

Jul 1, 2009

How can I create a new window such as the one that opens here when i click the "insert link" above, with fade out and one that looks as if it's in the same window ?

View 1 Replies

Actionscript 3 :: Open A Popup Window From A Swf?

Nov 19, 2010

How should I open a popup window from a swf?My method - create another panel and overlay on the original swf.The problem is that the size of the original swf is small compared to the size of the popup window.No JS call allowed which does not allow me to use window.open javascript call.I need to be able to communicate with this popup window as well. This eliminates opening a new window using navigateToURL method.

View 2 Replies

ActionScript 1/2 :: LoadVars.sendAndLoad() Between Parent And Popup Window?

Jun 8, 2010

Having not used PHP in conjuction with Flash before the last few day, I'm a bit stuck.I have a PHP file which will contain a list of online courses, each with their own link to to launch them.  The link to launch the course will contain data such as:

- A book mark that will be read when the flash movie loads to determine which page to go to.

- The current score of the student

- Wherever or not the student has compelted the course.The links open the course in a new popup window, and I am trying to send the PHP variables from the new window to the parent page, without much success.

If I use LoadVars.send(); then the whole works ok, updating the variables and the PHP page, but opening it in a new window, instead of just refreshing the existing page.I have tried getting my head around sendAndLoad, but it doesn't seem to work?Current the "courselist.php" file looks like this:


View 1 Replies

ActionScript 2.0 :: Open New Window From Flash As Popup

Oct 15, 2010

Is there a way to open a new window from Flash as a pop-up (i.e. a specific size without toolbars etc.). The new window needs to hold some flash movies in AS3 which arn't compatible with the AS2 parent movie.

View 3 Replies

ActionScript 2.0 :: Open New Window Popup With ClickTag?

Oct 26, 2005

I have a flash banner and when I click on it,I would like to open a website page inside a popup.

View 1 Replies

ActionScript 2.0 :: Open A Popup Window From Flash?

Oct 4, 2004

I read this: "JavaScript is interpreted by the browser, so whenever you call JavaScript code from the Flash movie you'll have to embed the movie into a HTML document first."

What do you do if your document doesn't have a html file and you need to open a popup window from flash? My document is .exe ..

View 1 Replies

Flex :: Filter Only Certain Column In Array Collection?

Jul 13, 2009

Is it possible for me to filter only a certain column in a arraycollection but still displaying the other values in a datagrid?

View 1 Replies

Professional :: Open A Popup Window When Clicking A Button?

Apr 9, 2011

Not a URL, but just a swf file in a popup window. Using ActionScript3.0

View 3 Replies

Actionscript :: Open A Browser PopUp Window From ( Flash )?

Apr 29, 2010

How to open a Browser popUp window from Actionscript ( Flash )?

View 3 Replies

ActionScript 2.0 :: How To Make Button To Open Popup Window

Oct 13, 2011

How to make a button which opens a pop up window(don't really knows if that's the correct name) with a image or text, centered, but the site isn't available unless I click the "x" button on that window or outside the window.

View 1 Replies

ActionScript 2.0 :: Popup Window From Open Image Link?

Aug 9, 2006

I have dynamic text in my movie that when clicked opens different image jpgs in _blank window. I would like to be able to have the blank window open at a set size so that when the link is clicked it doesn't open the image in a full window.Code:<a href='http://" + currAttribs.link + "' target='_blank'>Keep in mind that I'm not calling actual html pages but rather jpg files to open in _blank pages.

View 4 Replies

ActionScript 2.0 :: Way To Force Popup Window To Open In Flash?

Oct 21, 2004

I've altered Kirupa's centered popup script a bit and it works fine unless you have a popup blocker because most popup blockers just block the window.open() javascript funciton. Does anyone know a way to force a popup window to open in flash? something like you would do on an HTML link <a target="_blank"> or something of the sort.

View 2 Replies

Actionscript 3 :: Creating Modal Popup Canvas Window In A Parent Page?

Nov 3, 2011

I am creating modal popup canvas window in a parent page. When I close the popup how do we get notification in parent screen that child popup is just closed.

View 3 Replies

ActionScript 3.0 :: Automatically Open Popup Window On Mouse Event?

Aug 23, 2009

I am new to ActionScript and am trying to accomplish the following: In a drag and drop function, when the object is "dropped" on mouse up, I want it to automatically open a popup window for the PayPal Web site. Here is the code I have so far. How do I integrate the additional functionality into the dropIt function?


View 3 Replies

AS3 :: Professional - Open A Html Page In A Borderless Popup Window

May 10, 2010

Is there a way to open a html page in a borderless popup window using AS3. I've found info using AS2 with the "getURL" but nothing with the "new URLRequest" This is an example of what I'm looking to do: [URL]

View 2 Replies

ActionScript 2.0 :: Open A PDF In Flash CS5 That Will Launch Into A Popup Browser Window?

Jun 10, 2010

how to open a PDF in Flash CS5 that will launch into a popup browser window. In CS3/CS4 I used the "geturl" command and it worked perfect. In CS5, the geturl command always wants to open a url (ex. [URL]) instead of a local file on my drive. Is there any way around this to make it work like the older versions of Flash? Basically stop it from trying to launch the [URL]?

View 9 Replies

Flex :: Popup Editor For Datagrid Items - Hangs The Browser

Sep 9, 2010

a datagrid which renders some items. clicking on an item would bring up a popup editor (as the item has lots of properties and may not be edited right in the datagrid).

the popup contains just a form and a [Bindable] reference to the item it edits (which is passed from itemClick handler of the datagrid). form's default values are taken by binding to corresponding item properties with {} notion, while form values are bound back to the item using mx:Binding tags.

and now the problem. when the popup is brought up for the first time, everything is fine. however, when after being closed the popup is brought up again by clicking on the same item, the browser hangs (afaik because of change watchers being endlessly fired resulting in stackoverflow or something similar).

we have same behaviour in Safari, IE and Chrome, so i guess it's not to do with something browser-related. removing either [Bindable] from the item reference in the popup or mx:Binding tags from editors suppresses the problem, but of course the editing no longer works.

here's the code of the popup:

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" title="Details"
showCloseButton="true" close="PopUpManager.removePopUp(this);" creationComplete="PopUpManager.centerPopUp(this)">


View 2 Replies

ActionScript 2.0 :: Linking To A Video - Open A Popup Window In Flash With 320 X 240 In Size

Jun 18, 2009

I can only do so much with flash. I am having issues with linking to a video. Here is my question: please refer to [URL] and click on the video link. I have 3 videos that I want people to view when they click on the links:

- SI TU T'EN VAS (2001)
- GWADA (2004)
- JODIA (2008)

I need the links to be able to open a popup window in flash with 320X240 in size.

1- I imported each video in flash (separatly) using the 30rates/frames, progressive dowload from webserver. (the usual).

2- I allready uploaded the videos (.swf and .flv) on the server (godaddy.com)

3- In my main file, I created a button for each one of the links above using the invisible button with their own instances. they are each on a different layer.

View 2 Replies

Flex :: Embed Image Into Grid Column?

Apr 5, 2010

Is there an easy way to embed an image into a flex grid column? Something similar to[url]...

View 1 Replies

Flex :: Data Grid Computed Column?

Mar 23, 2011

How to make a computed column in Flex datagrid? example:

<mx:DataGrid dataProvider="{ConsoleDetails}" id="datagrid">
<mx:DataGridColumn headerText="Absent Hrs" dataField="absentHrs"/>


View 1 Replies

ActionScript 3.0 :: Open Swf In New Window From Parent Swf?

Feb 16, 2009

I'm making a gallery for some flash banners that I had created in AS3. When I click on a "launch" button, I wanted the flash banner swf to open in a new window separate from the parent swf (the gallery). I also wanted the parent swf to remain open. Is this possible and what would the code look like for something like this?

View 2 Replies

ActionScript 2.0 :: Get A Html Popup Window To Open When Movie Hits A Certain Frame Instead Of A Button?

Aug 5, 2008

I am trying to get a html popup window to open when my movie hits a certain frame instead of a button. Im using the following code but it uses a button instead of a frame to open the popup.

on (release) {
customize the window that gets opened
0 equals NO.[code]........

View 2 Replies

Actionscript 3 :: Change Column Width In Flex Grid

Jun 23, 2009

I'm using a mx.containers.Grid to layout some data, and the last column is a set of checkboxes. MXML Code snippet:[code]Basically, I want the labels & text values to align however the Grid component sees fit. However, I'd like the checkboxes to be right-aligned. I've tried setting the width of the textValues to 100% and it does nothing. I don't want to use hard-coded pixel values/canvases/etc because it is important that this is easy to change/update.

View 2 Replies

Flex :: Advanced Data Grid:column Visibility?

Dec 7, 2009

when we use an advanced data grid, only when we click on the parent element the children details get populated in the corresponding columns, right?..SO now i have made the empty columns invisible(at design) now how do i make them visible at run time when the parent element is expanded..similarly once the columns are visible, how can i make them invisible again when the parent element is closed.

View 1 Replies

Flex :: Get Selected Column Value In Advanced Data Grid?

Jan 24, 2010

How to get value of selected column form Advanced datagrid whose visble propery is false .

View 1 Replies

Flex :: Datagrid - Display A Multi-line Column Header Using The Flex Spark Data Grid?

Apr 13, 2011

How can you display a multi-line column header using the Flex Spark Data Grid for Flex 4.5?

View 5 Replies

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