PopUp TitleWindow in MXML

So in my application, I want to make it possible to
doubleClick an item in a DataGrid, and open a new window, where
lots of information about that item can be displayed. (nothing
Earth shattering, I know). I've been able to use Action Script to
open the new window (only using Click so far) but I did this using
an Action Script, where all the attributes of the window are in
Action Script as well. That's fine for something simple like a
quick dialog, but this window is going to be VERY detailed, and it
would be much less cumberson to define it in. Is there any way to
simply describe the window object in MXML, and then have that
window automatically opened based on a simple tag in the main MXML.
(Not everyone's a Flash/AS3 programmer)

Doh. Right after writing this, as I was researching the close
button on a titleWindow I ran across this example where the entire
title window is specified in an external MXML file. Exactly what I
wanted...
SimpleTitleWindowExample.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate TitleWindow layout
-->
<mx:TitleWindow xmlns:mx="
http://www.macromedia.com/2003/mxml"
title="Title Window"
x="268" y="86" closeButton="true"
click="this.deletePopUp();" width="200" height="180">
<mx:Label text="Enter Name: "/>
<mx:TextInput id="email" width="150"/>
<mx:Button label="Cancel"
click="this.deletePopUp();"/>
</mx:TitleWindow>
TitleWindowApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple application to demonstrate TitleWindow layout
-->
<mx:Application xmlns:mx="
http://www.macromedia.com/2003/mxml"
backgroundColor="#FFFFFF">
<mx:Script>
<![CDATA[
function showWindow()
var login=mx.managers.PopUpManager.createPopUp( this,
SimpleTitleWindowExample, true);
]]>
</mx:Script>
<mx:Panel title="Simple Panel">
<mx:Button label="Click to view title window"
click="showWindow();"/>
</mx:Panel>
</mx:Application>

Similar Messages

  • Can't move Popup TitleWindow when it gets added to a canvas

    Hi,
    I've created a TitleWindow that gets popped up using
    PopUpManager. When this gets added to the Application.application,
    I can move this popup window around just fine (via mouse
    click-n-dragging the top part of the window). However, when I want
    to add this popup window as a child to a canvas (using addChild()),
    I can see the window on the canvas but I can't move the window
    around (seems to be static). I also can't close the window anymore
    as well. Is there something wrong?

    Maybe because Canvas is absolute layout.

  • Popup TitleWindow component will not go away

    I have a very odd situation that I do not understand. I am
    attempting to create a dialog box and can successfully do so. The
    problem is, when I attempt to remove the dialog box, it does not go
    away! When I instruct the pop-up manager to remove my pop-up, it
    appears as though the dialog disappears. The background screen is
    once again in focus but there is still another copy of my dialog
    box on the screen that will not go away. The remaining dialog box
    still captures and emits events but it will not remove itself event
    though I tell to repeatedly.
    I create pop-up as follows:
    var popup:IFlexDisplayObject =
    PopUpManager.createPopUp(component,PreferencesComponent,false);
    PopUpManager.centerPopUp(popup);
    In order to close the dialog I simply catch the close event
    and instruct the dialogue to remove itself as so:
    PopUpManager.removePopUp(this);
    When I create simple modal dialog boxes like the development
    guide illustrates everything works correctly. However when I
    attempt to create the modal dialog box in my application I observe
    the above behavior. The behavior occurs whether the box is modal or
    not. It occurs when my parent is the application or a child
    component of the application. I have found no way to coax the
    dialog box to completely remove itself. It almost appears as though
    it is a bug but I cannot easily reproduce it to submit a bug
    report.
    I must be missing something. Perhaps I am not specifying the
    correct parent for the pop up. My application consists of a
    hierarchical tree of components. I am not certain what type of
    information to post. Any ideas would be welcome. Thanks a bunch.
    I am using Flex Builder 3, Beta 3.
    JB
    P.S. Sorry for the lack for HTML formating, but I couldn't
    seem to find a good way to post code on this forum

    Hi there,
    I'm fiddling also with popup windows and have the problem
    that when i call the same code again my popup doesn't appear.
    But now your problem, I think that your problem is that the
    code does not now what "this" is anymore..
    I use this:
    PopUpManager.removePopUp(popup);
    and works fine by me.

  • Text input popup

    I am writing a simple RSS reader app in Flex (for AIR).
    I have a "change feed" button in my app. I want this to
    launch a popup with text input, to take the URL as a string and
    return it to my main app. This seems like something that should be
    incredibly, and I'm missing something. Any help would be
    apreciated.

    You can create such a popup with a TitleWindow and
    PopupManager:
    ------------ MyPopup.mxml ----------------
    <?xml version="1.0"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    ]]>
    </mx:Script>
    <mx:TextInput width="200" />
    <mx:Button label="Done"
    click="PopUpManager.removePopUp(this);"/>
    </mx:TitleWindow>
    --------------------- Test.mxml ----------------------
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.managers.PopUpManager;
    import mx.core.IFlexDisplayObject;
    import components.MyPopup;
    private function showMyPopup():void {
    var helpWindow:IFlexDisplayObject =
    PopUpManager.createPopUp(this, MyPopup, false);
    ]]>
    </mx:Script>
    <mx:Button click="showMyPopup();" label="Show My
    Popup"/>
    </mx:Application>

  • The problem about TitleWindow's parent

    This problem is confused me.
    I have main.mxml like this
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:v="views.*">
    <v:documentsView title="Documents" />
    </mx:Application>
    And from the documentsView component create a popup
    Titlewindow.
    var itemWindow:IFlexDisplayObject =
    PopUpManager.createPopUp(this, myForm, true);
    I found this itemWindow’s parent is the main
    application window. But I need itemWindow display data and use some
    function from documentsView component.
    If I didn’t use custom component, I can do
    this.parentApplication.myData and
    this.parentApplication.myFunction.
    But now I have to use custom component. My question is since
    my itemWindow’s parent is main window. How can I get data and
    function from documentsView component?
    Thank you.

    Use the returned reference to the TitleWindow to pass a
    reference to documentsView into the title window. Post back if you
    need more detail.
    Have you tried parentDocument?
    Tracy

  • Trying to use a popup window as a component  in another component

    Hi guys,
    I am unable to use a popup component in another component in
    Flex .
    Its not calling the popup compopnent.
    Could anyone plz hel me.
    This is my code.
    This is the parent component TitlWindow where i want to call
    my popup
    component.
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="100%" height="100%"
    xmlns:util="userinterfaces.util.*"
    creationComplete="showWindow();"
    title="CREATE PROFILE">
    This is my script where i am writing a function to call a
    component
    whose name is fielupload.mxml
    <mx:Script>
    private function showWindow():void
    pop =
    fileupload(PopUpManager.createPopUp(this,fileupload,true));//
    fileupload.mxml
    is called
    pop.title = "Please enter your login information.";
    pop.showCloseButton =true;
    PopUpManager.centerPopUp(pop);
    pop.addEventListener("close",removeMe);
    </mx:TitleWindow>
    This is the code for fileupload.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" width="100%" height="100%"
    xmlns:util="userinterfaces.util.*" title="File Upload">
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.ProgressEvent;
    import mx.controls.Alert;
    import flash.net.FileFilter;
    import flash.net.FileReference;
    import flash.events.SecurityErrorEvent;
    import mx.controls.Button;
    import mx.controls.TextInput;
    import mx.controls.ProgressBar;
    import mx.core.Application;
    import flash.net.URLRequest;
    import flash.net.URLRequestMethod;
    import mx.core.UIComponent;
    import mx.managers.PopUpManager;
    public var fileFilterImage:FileFilter = new
    FileFilter("Images","*.png;*.gif;*.jpg");
    public var fileFilterDocument:FileFilter = new
    FileFilter("Documents", "*.txt;*.doc;*.pdf;*.rtf");
    public var fileFilterArchives:FileFilter = new
    FileFilter("Archives", "*.zip;*.tar;*.hqx");
    public var fileFilterAll:FileFilter = new
    FileFilter("All", "*.*");
    public var fileRef:FileReference;
    public var selectedId:String;
    public function init():void {
    fileRef = new FileReference();
    fileRef.addEventListener(Event.CANCEL,
    traceEvent);
    fileRef.addEventListener(Event.COMPLETE,
    completeEvent);
    fileRef.addEventListener(Event.SELECT,
    selectEvent);
    fileRef.addEventListener(IOErrorEvent.IO_ERROR,
    traceEvent);
    fileRef.addEventListener(Event.OPEN, traceEvent);
    fileRef.addEventListener(ProgressEvent.PROGRESS,
    onFileProgress);
    fileRef.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    traceEvent);
    public function traceEvent(event:Event):void {
    var tmp:String =
    "================================\n";
    public function
    ioErrorEvent(event:IOErrorEvent):void{
    Alert.show("IOError:" + event.text);
    traceEvent(event);
    public function selectEvent(event:Event):void{
    //var selectedId:String =
    selectButton(event);
    //Alert.show("i am in id" +
    Application.application.winMyProfile.selectedId);
    btnUpload.enabled = true;
    iptFile.text = fileRef.name;
    public function
    selectButton(catchButton:Event):void{
    var newButton : Button = new Button;
    newButton = catchButton.currentTarget
    as Button
    selectedId = newButton.id;
    //Alert.show("i am in id" +
    selectedId);
    public function
    onFileProgress(event:ProgressEvent):void {
    prgBarUpload.label = "Loaded " +
    event.bytesLoaded + " of " +
    event.bytesTotal + " bytes";
    prgBarUpload.setProgress(event.bytesLoaded,
    event.bytesTotal);
    public function
    completeEvent(event:Event):void {
    Alert.show("File Uploaded
    Successfully");
    btnUpload.enabled = false;
    btnBrowse.enabled = true;
    public function uploadFile(url:String):void {
    url = url + "?
    folder="+Application.application.winLogin.userInfo.getUsername();
    var req:URLRequest = new
    URLRequest(url);
    req.method = URLRequestMethod.POST;
    var folder:String =
    Application.application.winLogin.userInfo.getUsername();
    fileRef.upload(req, folder,true);
    ]]>
    </mx:Script>
    <mx:VBox id="vbMain" width="100%" height="60">
    <mx:HBox width="100%" height="22">
    <mx:TextInput height="22" id="iptFile"
    width="100"/>
    <mx:Button id="btnBrowse" label="Browse"
    click="selectButton(event),fileRef.browse([fileFilterAll]);"
    />
    <mx:Button id="btnUpload" label="Upload"
    enabled="false"
    click="uploadFile('fileupload.do');" />
    <mx:Button id="btnCancel" label="Cancel"
    enabled="false"
    click="PopUpManager.removePopUp(this);"/>
    </mx:HBox>
    <mx:ProgressBar width="200"
    source="iptFileResume" height="5"
    id="prgBarUpload" mode="manual"/>
    </mx:VBox>
    </mx:TitleWindow>
    Its not even showing any error , i dont know whats the
    problem with
    it.
    Thanks for your help,
    Mario.

    If I understand, you want to display a popup Titlewindow from
    within another popup TitleWindow? This is possible.
    Simplify your code to get it working first.
    Tracy

  • [solved] Make content fit the TitleWindow's size proportionally

    Hi everyone,
    I have a component which has the super class TitleWindow. It's basically used as a popUp for my application. So it receives a file name and adds it to the popUp using the MXML tag Image.
    This content received is a SWF file, and I had no problems using the tag Image to import it (I'm new to Flex, but I guess there is nothing wrong with it).
    My problem is that my application has a sort of "PowerPoint" style, and is going to be used in some presentations, so I want to make sure it works on all screen resolutions, from 800x600 till 1280x1024. And that's where the problem begins.
    I could simply let Flex determinate the size of my popUp (depending on what is the size of the content, the SWF file), but I simply can't. That's because all of the SWF files are going to be 800x600, and so when you run this app in a 800x600 screen, things get messy. The popUp gets too big (in order to contain the content).
    So the solution was to manually set the size this popUp, based on the user's screen resolution. I did this simply by using:
    this.width = stageWidth * 0.9;
    this.height = stageHeight * 0.8;
    This works great and is exactly what I want.
    However, the content is not being fitted into the popUp correctly anymore. It seems after setting manually the width and height of my popUp, all of those wonderful properties, such as horizontalAlign="center" and verticalAlign="middle",  were lost also. The content is too big when seeing the app in a 800x600 computer, while the popUp is on a correct size.
    So I tried to resize the content also, based on the this.width and this.height. That solves some trouble, but then the problem is that X and Y positions are all messed, and so my content appears on wrong places, depending on the user's resolution.
    Straight to the point: after customizing the width and height of my popUp (TitleWindow) how can I set the content to keep the aspect ratio (don't get distorted, since it's a 800x600 file) and also to be resized according to the dimensions that popUp has? I'm here for like 6 hours just trying and failing to do it, and it must be an easier way to do it in Flex.
    Appreciate any advice.
    Thanks!
    Solved: I changed the Image tag for the SWFLoader tag. Also, added the property horizontalAlign="center". The rest was the same, and this solved my problem :D Weird.. I saw on some tutorials that Image could be used without problems to load SWF files... Well, works, and for sure it must be more correct also.

    Solved: I changed the Image tag for the SWFLoader tag. Also, added the property horizontalAlign="center". The rest was the same, and this solved my problem Weird.. I saw on some tutorials that Image could be used without problems to load SWF files... Well, works, and for sure it must be more correct also.

  • Show flex popup in a new Tab

    Hi All ,
       I have a flex application, in that if i Click on "editChart" LinkButton , it shows a Popup(TitleWindow) , But
    my requirement is , that Popup should be open in a new Tab of the Browser, and my application and popup both should work fine.
    Plzzzz reply..
    Thanks in Advance..

    It may help u to create pop up in a new window:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        creationComplete="openTitleWindow(event)" >
        <mx:Script>
            <![CDATA[
                import mx.events.CloseEvent;
                import mx.controls.Label;
                import mx.events.FlexEvent;
                import mx.containers.TitleWindow;
                import mx.managers.PopUpManager;
                // method to open the TitleWindow on creationComplete
                private function openTitleWindow(evt:FlexEvent):void {
                    // create and configure the TitleWindow
                    var tw:TitleWindow = new TitleWindow();
                    tw.title = "Title Goes Here";
                    tw.showCloseButton = true;
                    tw.addEventListener(Event.CLOSE, closeTitleWindow);
                    // create and configure a Label
                    var label:Label = new Label();
                    label.text = "This is a very simple popup window";
                    // add the Label to the TitleWindow
                    tw.addChild(label);
                    // open the TitleWindow as a modal popup window
                    PopUpManager.addPopUp(tw, this, true);
                // method to close the TitleWindow targeted by a close event
                private function closeTitleWindow(evt:CloseEvent):void {
                    PopUpManager.removePopUp(TitleWindow(evt.target));
            ]]>
        </mx:Script>
    </mx:Application>
    Regards:
    Amy Flair

  • Alert or Popup in Modules

    Hi,
    i'm developing an applicatin who uses Modules. The modules load and unload well and after unload a module, i can see in the profiler, the garbage collection remove the instance. so far so good.
    now, i'm using a popup or alert in my modul (for data modification).
    I load and unload my module again, without starting the alert or popup and all works fine. but after clicking a button, which triggers an alert, and unload my module again, the module won't remove by garbage collection. my instances in profiler is 1. Doing the same procedure, i generate in profiler two instances but after unload the module, the instance fell down to 1.
    So i assume, that flex hold a reference to the alert-window i the first case. the second use the reference from the first. accordingly, the second will be garbage collected.
    i'm trying to register the PopupManager in my ApplicationDomain with the follwowing two lines: import mx.managers.PopUpManager;  and privat var popuop:PopupManager. But nothing changes.
    What is the right way to use Alerts (or Popups) in modules without references.
    Here is my code:
    To open my popup with an mxml-component:
    PopUpManager.addPopUp(inputMask,Application.application as DisplayObject, true);
    and my handler for the close-event of my mxml-component:
    PopUpManager.removePopUp( CDBInputMask(event.currentTarget));
    inputMask = null;
    Thanks in advanced.
    Frank

    Alex,
    thank you again.
    I'm trying to get the information as you said:
    "moduleInfo's loaded property simply reflects whether it has released its reference.  Any other references will still pin it.  The profiler will show that."
    can you give me a hint, how can i get this information.
    After pinning my module on memory caused by click on dg, the simpleModule will be shown in the loitering objects and i can see (48) behind it. but it's hard for me to find the references created by frameword or creatd by me.
    My flex-version is 3.2.0, imho the latest version.
    i read your post and work through, so, before i unload my module by button in mainapplication, i set the focus per "focusManager.setFocus(loadBtn);" away from my module. Also, i placed a dg on my mainApp with a dataProvider. Both won't fix my problem. in my example, there is no styles defined at all.
    i think, i haver to get the information from profiler, which reference pin my module inmemory, but i'm unable to locate it at this time.
    The unloading works fine until i click on the dg or typing in some letters. Imho, there must be a procedure that will pin the module after getting some buttonDownEvents (or something else). But i'm not so deep in the framework to figure out the procedure for my self.....
    Can you give me further information, please.
    thank you for your helpful answers. unfortunately i found no solution for my problem.
    Frank

  • How do I open one .mxml from another?

    I suppose I would make a "link" some how, just like in an html page.  What would the URL look like?  What is the ActionScript command to open that other .mxml file?  (Which may be a form or just another page)
    Thanks in advance.

    to open another .mxml file within your project? Like a sub window within your main app? You can do it as a popup;
          var win:[MXML FILE NAME] = PopUpManager.createPopUp(this, [MXML FILE NAME], true) as [MXML FILE NAME];
          PopUpManager.centerPopUp(win);
    or, if it's a completely different app you're trying to link to;
    navigateToURL(new URLRequest('http://wherever/the/compiled/html/is.html'),'_self');
    quite unsure about what exactly you want though...

  • ADL freezes in Windows 7 when screen updates behind modal popup

    I can reproduce this 100% of the time with different popups, removing all MXML content and even blanking the skin so all you see is the modal effect of a blurred window. As soon as something happens, such as an advancing progress bar, whatever, in the underlying window, the app is frozen. Flash Builder shows no errors, just that the app is terminated.
    When I step through I end up in some core windows resize stuff before the app goes away. Something else I should try? Known bug? I searched and didn't find much about popups.
    Flex 4.6, Windows 7 Ultimate 64, lots of memory and all that—get the same behavior on two different Win7 machines but not on two different MacOS boxes.
    Jason

    Hi,
    I noticed that you can't launch Safe mode and Startup Repair mode, even using the installation CD. Regarding the current situation, I would like to propose the following methods.
    Method 1. If you own another available DVD drive, please connect it to the computer and boot using the installation CD. Then boot in WinRE to perform System Restore, if System Restore doesn't work, let't try to use DISM to revert pending actions.
    1) Try using the DISM command to see what update is in a problem state:
    dism.exe /image:d:\ /get-packages
    2) Use the /cleanup-image switch with DISM to revert the pending actions:
    dism.exe /image:d:\ /cleanup-image /revertpendingactions
    3) Once this is complete, try starting the PC into Windows.
    Method 2. You can also create a USB boot disk to launch WinRE and take the above troubleshooting steps.
    Method 3. Unplug the hard disk and slave to another available computer, then run the following commands:
    chkdsk /f
    sfc /scannow
    Plus: basicly before installing Windows Updates, Windows will automatically create a restore point on the hard disk. You properly can run System Restore to get the previous status of the hard disk on another computer.
    Best Regards
    Dale

  • Popup for Datagrid

    Hi all,
    I need a help regarding popup for displaying my data grid
    which has too many columns.Right now the whole data is not being
    diplayed because of too many columns. I want to use an expand all
    icon, which when clicked opens a popup containing the datagrid. The
    popup should have all the features of a normal window like
    minimize,maximize and close buttons to the right -top corner .The
    user if he wants can mimimise,maximize or even close the window.It
    should be the same as the window which appears when we click on the
    preview button while posting the message in the forum. For more
    idea you can try checking out on clicking the preview button.
    Thanks,
    amar

    The Flex 2 Developer's Guild has a very good article on
    creating a popup TitleWindow which has the functionality you are
    looking for. The minimize and maximize things can be done as well,
    but will require some extra work.
    Go to the Flex 2 Developer's Guild. Select "Building User
    Interfaces for Flex Applications". The select "Using Layout
    Containers". Then "TitleWindow layout container". The article is
    called "Creating a pop-up window".
    You could also put the datagrid in an HBox container, show
    all the columns, and allow horizontal scrolling for the container.
    You may have to size the HBox with a numeric width, not a
    percentage, otherwise the HBox may stretch to match the dataGrid.
    This option will take you about 5 minutes, versus hours or days in
    making the popup display and function as you described.

  • Text reversed (mirrored) in menus, lists & popups

    Hi there
    I've just installed the latest trial version of FlashBuilder with the Flex SDK 4.1.
    After compiling and running my project all my popups (TitleWindow + Alerts) are reversed and the text inside them is reversed. Also all the text in my menus are reversed. By reversed I mean that it looks as if one is looking at them in a mirror.
    Why on earth would this be happeining?
    Cheers
    Tracy

    This is happening because the biggest change in Flex 4.1 is the ability for layout mirroring.
    "Layout mirroring refers how containers and controls are drawn on  the screen. The default direction is LTR. You can change any container  or control that implements IVisualElement to lay out from right to left  by setting the layoutDirection style property to "rtl"."
    I experienced the same problem as you..however it went away and I'm still not sure what I did to make it work all of a sudden.. but I'm very curious also

  • Passing variables from between popups

    Hi,
    I have a main app which creates a popup using myRoomForm.mxml:
    private function popUpRoomForm(xmlValuesList:XMLList):myRoomForm {
                 var frmRoom:myRoomForm=myRoomForm(PopUpManager.createPopUp(this,myRoomForm,true));
                 PopUpManager.centerPopUp(frmRoom);
                 return frmRoom;
    Then from inside the room form (myRoomForm.mxml), depending on the situation I need to create a subform (mySubRoomForm.mxml). Again I'm using:
    private function popUpSubRoomForm(xmlValuesList:XMLList):mySubRoomForm {
                   var frmSubRoom:mySubRoomForm = mySubRoomForm(PopUpManager.createPopUp(this,mySubRoomForm,true));
                   PopUpManager.centerPopUp(frmSubRoom);
                   return frmSubRoom;
    I have tried bubbling events dispatching them from the sub room, but my listener on the room form wouldn't pick them up.
    I then tried using a global actionscript file and setting the variables from the sub room and once the sub room form closed, I tried to get them from the room form. This didn't work because my room didn't know when the sub room form closed.
    The I tried creating static public variables directly on the room and setting them from the sub room, but the new() instance of room wouldn't let me create static public variables and if it did I couldn't reference them from the sub room anyway.
    All I need is a way to send text from a few text fields on sub room so that when the sub room form is closed the corresponding text fields on the room form are updated.
    Ideally I'd like to get the custom event handler working, but I've taken too long on this and just need an immediate solution.
    Any help would be greatly appreciated.
    Here is my attempted event handler:
    Sent from the subroom:
    SubRoomData.addItem("TEST SUB ROOM DATA");
                                            var newSubRoomEvent:SubRoomEvent = new SubRoomEvent("newSubRoomEvent");
                                            newSubRoomEvent.sendSubRoomData = SubRoomData;
                                            dispatchEvent(newSubRoomEvent);
    Referencing this .as
    package utils
              import flash.events.Event;
              import mx.collections.ArrayCollection;
              public class SubRoomEvent extends Event
                        public var sendSubRoomData:ArrayCollection;
                        public function SubRoomEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
                                  super(type, bubbles, cancelable);
    And my listener on the room form (which I've tried creating both inside myRoomForm.mxml and inside MainApp.mxml when creating the popup without any joy):
    frmRoom.addEventListener(SubRoomEvent.newSubRoomEvent, frmRoom.processSubRoomEvent);

    Hi,
    if I remember correct you have to override the clone method in the custom event to enablebubbling .
    e.G:
    package events {
       import flash.events.Event;
       public class AddProductEvent extends Event {
          public var productName:String;
          public function AddProductEvent( type:String, productName:String ) {
             super( type );
             this.productName = productName;
          override public function clone():Event {
             return new AddProductEvent( type, productName );
    source:
    http://blog.olivermerk.ca/index.cfm/2007/5/24/Flex-Custom-Events--Part-II

  • PopUp image on MouseOver or RollOver

    I have a datagrid and in the first column there are images. I
    would like to have these images open fullsize in a popup
    TitleWindow when the user places the mouse over the image/cell. I
    know it's been done a lot in javascript but I have yet to find an
    example in Flex :p
    Any suggestions would be greatly appreciated!
    T.

    I'm not sure how this could be done using style tag.. if possible then ignore this solution..
    Well, you need a custom ComboBox that extends from the base ComboBox.. as below..
    package src
    import flash.events.MouseEvent;
    import mx.controls.ComboBox;
    public class ExtendedCombo extends ComboBox
    public function ExtendedCombo()
    super();
    protected override function createChildren():void
    super.createChildren();
    textInput.addEventListener(MouseEvent.ROLL_OVER, onTextMouseOver);
    textInput.addEventListener(MouseEvent.ROLL_OUT, onTextMouseOut);
    private function onTextMouseOver(event:MouseEvent):void
    textInput.setStyle("color", "0xff0000");
    private function onTextMouseOut(event:MouseEvent):void
    textInput.setStyle("color", "0x0B333C");
    hope this helps,
    BaBo,

Maybe you are looking for

  • Can you have two ipods on the same itunes??

    My songs keep getting deleted from itunes. i don't know if this is because i share itunes with my sister so we are using two iPods on one itunes. can we use the same itunes or do we have to use different ones? Someone help me. PLEASE!!! Thanks Rae-Le

  • Bandwidth seems limited to 10M on Cisco RV320

    Just installed a RV320 to a 50Mb downstream 5Mb upstream switch. With previous wireless routers I can get 30-50MB downstream speed and 5M upstream. The same happens when I connect directly to the switch. However when I try to access with the same com

  • RE-LINKING HELP

    Hi, Basically i created a file in Illustrator which contained 60 layers, then imported them into AE under 'composition - retain layer sizes' so i could use each individual layer, now ive moved the original Illustrator file and now each layer is marke

  • Cisco WAAS

    Hi friends, Having couple of doubts with respect to Cisco WAVE technology, 1. What are the differenences between WAAS and WAVE, apart from Virtualization? 2. What are the key functions of Cisco WAVE? 3. Planning to deploy WAVE 274 or 474 for my branc

  • Common Pay Agent/Master for US PY Tax

    anyone with the experience Common Pay Agent/Master for US Payroll Tax reporting what things need to be considered while configuring? aman Edited by: Aman Kumar on Aug 11, 2010 10:24 AM