ActionScript 2.0 :: PopUpManager.createPopUp() - Content's Form Subclass Isn't Created?

Oct 19, 2005

I'm working on a Flash application that uses the PopUpManager to create a pop-up window. Example of the create code follows:

details_window = mx.managers.PopUpManager.createPopUp(_level0, mx.containers.Window, false, null, true);
details_window.closeButton = true;
details_window.title = "The Popup Window Title";[code].....

Here's where the problems appear: The pop-up's content, "details.swf", is itself a Flash Form Application. The main screen of this Form application has a custom AS2.0 class assigned to it called DetailsScreen. The stripped down (for example purposes) class is below:
import mx.controls.*;

class DetailsScreen extends mx.screens.Form
{
var details: DataGrid; // the extra space between the ':' and 'DataGrid' is to prevent a smiley () on the forum
var details_title:TextField;
var record_display_summary:TextField;[code].....

The problem is the trace output in the DetailsScreen.onLoad() method is never printed. The pop-up window appears, and the graphical content of the details.swf is presented. I've recursively traced into details_window.content to see if DetailsScreen.local_test_variable is present, but it's not. The only variables present are those that represent the graphical items on the stage.It's as though the custom Form class DetailsScreen is never being instantiated.

View 4 Replies


Similar Posts:


Flex :: Know When A Dialog Created Through PopUpManager Closes?

May 1, 2010

Is there a easy way to figure out consistently when a Dialog closes that has been created through PopUpManager. I would have suspected some type of message or callback mechanism, but there does not seem to be. In one case I use the WindowTitle component and event that only fires the CLOSE if someone presses the close and give no message when the dialog actually closes.

View 2 Replies

Flex :: CreatePopUp Make Everything Modal Except Scrollbars?

Sep 28, 2011

I made this simple application to demonstrate my problem. It has:

An image A button that launchess a popup window Scroll bars on the side

[Code]...

Is there a way to make everything "modal" except the main scroll bars? I know that I could put a scrollbar on the Panel but I would prefer to avoid this.

View 1 Replies

AS3 :: Flash - Reference SubClass Of SubClass From Parent Without Instantiating?

May 1, 2011

Can I access a static variable of a subClass' subClass? I don't want to instantiate it, just looking to get the variable because it has already been initialized by the subClass.example:

package
{
public class A extends MovieClip {
private var classB:B = new B();

[code]....

View 3 Replies

Created A Form Which Sends The Inputted Values As An Email

Dec 8, 2009

I have created a form which sends the inputted values as an email. The file takes a name, delivery address etc and also should allow a quantity to be input. There is also an option where a different delivery address can be specified like so:The code looks okay, with no compiling errors, but the 'user input quantity' does not work and when changing different address,

[Code]...

View 5 Replies

IDE :: PHP Email Form With Message Content?

Sep 12, 2009

I never usually work with flash or websites of anykind, but just couldn't resist this time: to make a php email form in flash!

I found a neat script for this: [URL]

The message in the form gets sent to my email.

$message = $_POST["message"];

Now I have added extra variables in my flash form like like "address", "postal code", "country" etc which I would also like to appear in the content of my email.

How do I get these details in my email?

View 1 Replies

ActionScript 3.0 :: Created A Dynamic Text Box And Have Xml Content Loaded?

May 12, 2010

I have created a dynamic text box and have xml content loaded into via a for loop. I would like for each item in the list to be clickable and fire off a different function.

[Code]...

View 3 Replies

Arrays :: Saving Text Content In An Created Csv File In Actionscript 3.0

Mar 25, 2012

how to save the content of an array in an csv file that already has a content. its like overwriting the content of the csv file. the array is like this (Array [1][1]). i've search and googled it but every answer i got is still wrong.

View 1 Replies

ActionScript 2.0 :: Centering Content Inside A Dynamically Created Movieclip?

Mar 17, 2008

I'm having trouble to center any dynamic content (movieclips, textfields...) inside a dynamically created movieclip, which has a default point of interested in the top left corner.

PS: Just as an example, I have a dynamically created text field inside a dynamically created movieclip....and when I try to scale that movieclip I need to scale it from its center

View 2 Replies

ActionScript 3.0 :: Preloader / Content Of The Ide-created Textfield In The ProgressEvent Handler

Nov 6, 2009

I am knocking together a small, 100% code pre-loader for loading in external .swfs. I've done this many times with textfields created in the IDE and simply updated the content of the ide-created textfield in the ProgressEvent handler - works fine. However, when I create the TextField solely in AS, it simply disappears. Here's the relevant bits of code:

[Code]...

View 1 Replies

CS3 - Contact Form Showing Strange Content On Load?

May 5, 2009

I have created this contact form and it works when i hit the submit button but for some reason when I load the page for the first time I get some junk that appears into the box.

Is there anyway to have it not show anything in the box? In edit mode I dont have anything in the text boxes, but when the the flash loads it puts that junk in there.

View 3 Replies

Trying To Upload Dynamically Drawn Image From Flex To Rails 3 With Multi-part Form Content

Jul 1, 2011

I'm trying to write a little flex app that has a paint/canvas type feature to draw an image, which I then want to post to a rails server side. I'm following the post here, but can't get as far as he did due to the following error: NoMethodError (undefined method `rewind' for #):I googled that and found this which says the problem is due to an empty filename, but I thought I had that from the example. However, I altered the example to simplify the post by reducing the form parameters, but I could have easily messed something up since I really don't know what I'm doing with this multipart form content. I was hoping to at least log the request params, but unfortunately I can't, since it's failing before being routed and due to my inexperience with rails. I'll ask that in a separate question and hopefully be able to edit this question with the request params.

View 1 Replies

Actionscript 3 :: Get Element Inside Another Element Just Having It's Id In Dynamically Created String Form?

Mar 18, 2012

I know that there is no such function as getElementByName in Flex but I also now that you can do this["object_id"] to get the element of the application u're in.What about getting an element inside another element?I've tried making element["id"] ? But in my try-catch it always runs the "catch" part..how do I get an element inside another element just having it's id in dynamically created string form?

View 2 Replies

Actionscript 3 :: Change The Content Of A Regular Text Field Created With The Text Tool In Adobe Flash CS5?

Nov 21, 2010

I have made a movie clip which I export to ActionScript 3.

In this movie clip I have drawn a text field (area? well TEXT) using the plain "Text Tool".

After selecting the text, and after I have entered "0" to be displayed, I edit its properties. It's Instance Name, defined at the very top of the list I have written "score". The text engine is TLF Text and the text type "Read only".

When I have made a instance of the movie clip using AS3 I can't get the value of the text instance named "score" - when calling something like trace(getChildByName("score")) in the constructor I just get null.

I want to be able to get the value of the text "score", and I would also like to change its value.

Just how do I get the value from ActionScript? I don't want to have to create the text progamatically and position it, and I doubt that I have to.

View 1 Replies

Actionscript 3 :: Using PopUpManager In A Flex 4.5 Mobile App?

Oct 2, 2011

I'm working on a mobile app using the Flex 4.5 SDK and I'm trying to figure out the best way to handle notification windows. In most cases these windows will be alerting the user to when something goes wrong. Ex: bad login, no data, cannot resolve server.

I'm using a singleton design pattern, I have a Requests class that handles server calls. Most popups will be originating from this class (IOErrorEvents from my loader being used to access the API). Since this class is a singleton and is used from all Views inside the app it is not aware of applications current view. I'm also not sure having this class keep track of the current view and having it push popups on top of it would be best practice.

I'm hoping that I can use PopUpManager to keep track of where to add popups and what popups are currently on the stage. Though all examples I've seen online about this show static Components being used in a views Declarations tag.

View 2 Replies

ActionScript 2.0 :: Cannot Use The PopUpManager Class / Component

Mar 12, 2006

I cannot use the PopUpManager class.

[Code]...

View 1 Replies

Actionscript :: Implicit Coercion When Using Popupmanager In Flex?

Mar 11, 2010

I had to reformat my question because I realized I was using incorrect flex method. But still a similar issue occurs:

private function passForm():void {
PopUpManager.addPopUp(passTitleWindow, this, true);
PopUpManager.centerPopUp(passTitleWindow);

[code]....

I click and popup does not display.

View 1 Replies

Flex :: Using PopUpManager To Instantiate An Mxml Component?

Oct 22, 2010

Basically I am poping up the following component:

PopUpManager.centerPopUp(PopUpManager.createPopUp(this,RegionExperienceDetailPopUp,false));

I need to call RegionExperienceDetailPopUp.generateData(passIntArray);

What is the syntax to do this?

View 1 Replies

Flex :: Count Number Of Windows Up Through PopUpManager?

Apr 20, 2011

I'm using the PopUpManager to bring a bunch of event windows up.I want to make it so that only one window can be open at a time, but I don't see anywhere in the code that tracks open windows to set up a conditional. I guess it just creates the windows and then sets them free?Thinking about a windowCount variable that increments when I add a window and decrements when I remove one, but since the PopupManager is called in different classes I'd have to start throwing events all over the place. I can do that, but I'm wondering if there's a more straightforward method?

View 2 Replies

Flex :: Alert Gives PopUpManager Error When Used With SWFLoader

Jul 13, 2011

I am using SWFLoader to load a swf file. The code is below:[code]

View 2 Replies

Flex :: Adding A RichTextEditor To PopUpManager Seems To Be Very Slow?

Jul 13, 2011

As the topic states, using a Rich Text Editor with a PopUpManager makes typing slow. If you try it in Firefox/Mac, it is painful. Chrome/Mac is a little slower as well. Are there any known issues with the PopUpManager and performance that can be addressed easily?

View 1 Replies

ActionScript 3.0 :: Totally Erase PopUpManager Data?

Feb 22, 2009

We are using PopUpManager to bring some screens up, and every time I create one, I need the new one to be totally unique from the old one. Right now, every time I create a popup, it has cached the last one in memory somewhere, and the variables are all still set.

View 0 Replies

Flex :: PopupManager: TitleWindow: How To Make The Background Transparent

May 12, 2010

I'm using PopupManager to display (not modal) popups in Flex.How can I make the background of my TitleWindow popup completely transparent?Now it is semi-transparent.. see picture with semi-transparent background (i.e. I just want the label inside visible):

[URL]

Maybe, instead of making it transparent I could try to reduce the padding, in order to make only the children visible ?

View 2 Replies

Flex :: Can A Custom Component Call PopUpManager.addPopUp On Itself

Jun 29, 2010

I'm trying to organise my code better and figured it would be good to place the pop-up logic within the component that's being popped-up. However, I can't seem to do this without causing one error or another. I also need to make the pop-up modal.I'm doing something along these lines (psuedo code):

<mx:TitleWindow >
<mx:Label id="messageLabel" />
<mx:Script>
<![CDATA[

[code]....

View 1 Replies

Actionscript 3 :: Make A DisplayObject Popup Like Flex PopUpManager?

Apr 20, 2011

How can I make a DisplayObject popup like Flex PopUpManager in AS3?

View 1 Replies

Flex :: Dispatch Event To Popupmanager Without Reference To Instance?

Apr 25, 2011

I'm fairly experienced with Flex 4, but I still haven't needed frameworks yet (I like to do everything myself) and don't want to use them either, I know it's advantages and have learned how to use one of them, but still, no.

How can I dispatch an event in the main application and have a component inside a popupmanager to react to that event? All this dispatching the event within the main app and NOT aiming it to the popupmanager or the component instance, I want to be able to fire the event and not care about who gets it or if anyone reacts to it at all so if that is possible then I wouldn't care about keeping track of said popups.

I already dispatch an event from the component and receive it in the main application by bubbling the event and therefore being agnostic of each other, now I want it backwards.

View 3 Replies

Flex :: Get Mouse And Keyboard Events, Masked By PopUpManager

Jul 29, 2011

I am implementing an application timeout feature (flex4). What I am finding is that mouse and keyboard events, which I have listened to with :

FlexGlobals.topLevelApplication.addEventListener(MouseEvent.MOUSE_MOVE, resetLastActivity);
FlexGlobals.topLevelApplication.addEventListener(KeyboardEvent.KEY_DOWN, resetLastActivity);

are being masked by the existence of any popup windows. The code is in a component, in the constructor. The component is added to the main application in the block.

How can I get these system generated events to not get stopped by PopUpManager display objects?

View 1 Replies

Flex :: Determine If A PopUpManager Window Is Open (or When It Has Closed)?

Sep 6, 2011

In Flex (Flash Builder 4) I am opening a new window via PopUpManager.addPopUp. I have timer code that runs in my component and I need to stop my timer when that window opens and start the timer again when the window closes.

I figure it's easy enough to stop the timer in the function that opens the window, but how can I start the timer again when the window closes?

Is there a way to tell if there is a pop-up window in front of my component, or if a specific pop-up window is still open via PopUpManager?

View 2 Replies

ActionScript 2.0 :: PopupManager - Depth - Script Does Not Create A New Window

Apr 8, 2007

I put the MC that contains the script for creating a window inside of another MC. When I do that, the script does not create a new window. Why? I have the window component in the library of the childMC and the below script is in the childMC. The openBTN creates a window when childMC is not inside parentMC. Is this a "KnownIssue"?

[Code]...

View 1 Replies

ActionScript 2.0 :: Show PopUpManager On Selected Datagrid Column?

May 27, 2010

i have datagrid and i want that when i click on my EmpName column popopmanager must be display and when i click on other columns it shouldnt display.and i want also edit mode in every column when i click opn it.

View 2 Replies







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