Is that what I can pass the "Builder" parameters to the custom mxml component
I would like to create a generic dialog box (popup) using mxml and then have my subclass of dialog boxes specific to application it. I would spend at least a parameter to the instantiation, so there the reference to its parent window. My code looks like this so far
private static var DebugPopup:DebugViewer;
public static void creationComplete(event:Event):void {}
MainWindow = event.target as DisplayObject;
DebugPopup = new DebugViewer (MainWindow); //only works if no parameter passed
}
-DebugViewer.mxml looks like this - some code removed for reasons of brevity-
< mx:TitleWindow >
< mx:Script > <! [CDATA]
Import mx.managers.PopUpManager;
[Bindable] public var ParentWindow:DisplayObject;
[Bindable] public var buffer: String = "Insert power ici\n;
public void log(text:Object):void {buffer += text + "\n";} }
public void display ( parent: DisplayObject): void {}
PopUpManager.addPopUp (this, parent);
PopUpManager.centerPopUp (this);
}
[]] > < / mx:Script >
< mx:TextArea width = "400" height = "300" text = "{buffer}" / >
< / mx:TitleWindow >
I would like to set the parent window when I instantiate the dialog box, rather than go through the show method. Is there a way to do this in a mxml component or I have to go to ActionScript. I intend to make a general class of dialogue which is then subclssed by all of the specific dialogue of my application.
You can do this:
DebugPopup = new DebugViewer(); DebugPopup.ParentWindow = MainWindow;
Tags: Flex
Similar Questions
-
Is that what I can change the fisheye, look in first pro, a GoPro camera?
Is that what I can change the fisheye, look in first pro, a GoPro camera?
It depends, at least in part, on what platform you are. [That and you have the exact version of Premiere Pro are two data points that you always include...]
Under Windows, first has an effect called lens distortion. I don't know what are your options on Mac. If someone else does not come with any suggestions for Mac, then googling '"Premiere Pro" mac GoPro fisheye"gives a few promising hits.
-
Hello, I just subscribe to the student version but after giving all my bank details etc, safari can't open the page telling me that no application can open the URL. What should do? Thank you.
Hello
You have purchased successfully the creative cloud under the same email that you use with the forums.
To download: -.
Try to reset the browser, clear the hidden cookies or try with another browser.
You can download the installer for Creative Cloud from here:
Using creative cloud | Creative cloud to desktopHope this Helps!
-
If I install CC on one computer, then after having worked on this computer for awhile I install United Nations. Is that what I can then reinstall CC on another computer under the same license? Thanks for your attention
You can activate the product on two computers, if are not the product on a computer before the uninstall, it is always better to disable the CC from this computer.
To turn off
launch no matter what CC products and click Help > log out.
-
Hello, if I created a website with adobe muse, I can't create member area. but this is what I can export the site created in wordpress pour it?
If you want a WP site, using Wordpress and see their API and guides for creating themes and customizations. This has absolutely nothing to do with the Muse. You simply cannot just create a site of Muse and hope that it will work with WP.
Mylenium
-
is that Hermes IWATCH can change the tapes?
is that Hermes IWATCH can change the tapes?
Apple didn't iWatch, only Watch.
Yes, you can buy additional strips.
-
Where is the options bar for what I can change the size of the Eraser tool?
Where is the options bar for what I can change the size of the Eraser tool?
Double-click on the eraser in the tool palette.
-
Is it possible to make a PDF interactive on a Web site so that a user can submit the information and the information is sent to an e-mail account?
Hi ayrtont99139624,
Yes, you can create interactive PDF forms using Acrobat or InDesign that can be downloaded on the Web site in order to collect information from users.
See the help link - below
Acrobat: -.
InDesign: -.
Kind regards
Nicos
-
Hello
I bought Lightroom from a shop in Switzerland. Setup refuses the activation key, saying that the parcel is a forgery and that I need to contact the customer service. It's Saturday and I would like to install the product by Monday! Is it possible to do? Thanks for your help, best looks.
Dominique
Thanks to you two, John and Kglad, for your responses. I have contacted Adobe and they had me download the package from their website. The problem was apparently with the package on the purchased version. Problem solved.
Best regards.
-
Hi I'm new to nsis. I used nsis to create an installer for all versions of windows, but the problem is that his works well for windows XP, 7 not for windows vista. Is there the thing to mention explicitly in the nsi script?
Thanks in advance...Hello
Your question of Windows Vista is better suited for the MSDN forums. You can follow the link to your question:
http://social.msdn.Microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/threadsIt will be useful.
-
Can someone tell me please in the sense of how I now save down from Illustrator CC last in a legacy file?
Thank youHi Jenny
You can choose the version inherited in the Illustrator Options dialog box, while saving the file.
Thank you
Simart
Adobe
-
Hello...
I register to sign code and whenever I build the app, I received an email with content as below.
Is it everyone understands what that means?
is there a restriction for the demand meter?
A request completed successfully for the customer "xxx" of code signing. The customer is 2147483647 request (s) to the left.
Thank you...
Rudy
sonicboomboy wrote:
Therefore, there is a number of attempts to register to the left? or what...
Correct, but it is not decremented. There is no limit on the number of times that you can sign applications with the BlackBerry code signing keys.
-
I tried selecting the custom shape of the arrow and then turning, but the whole canvas rotates. Maybe I'm not selcting it good? I tried the quick selection tool and the direct Selection tool. Any ideas? Thank you!
On a PC, it is ctrl-T. Happy that you guessed it work.
-
How can I can get the webBean child "Component of messages" of "petition".
Hello
I have a "component Message page layout: get" in a "Query: query region. How can I can get the child object of "component Message layout: look for ' webBean of the controller class" Query: query region "to add my OADefaultListBean?
Thank you very muchHello
--> Get the id of the layout of the message component
--> Manager of bean for this presentation get the component messages using code lone belowOAMessageComponentLayoutBean bean1 = (OAMessageComponentLayoutBean) webBean.findChildRecursive (id);
--> now add your beans to list by default to this presentation of messagecomponent
Kind regards
Vijay Reddy.Published by: user10496887 on Sep 6, 2011 14:29
-
I have a problem trying to fix now... Here's what happens:
(1) I have a custom, event that is just CustomEvent.as that extends event.
(2) when I close a TitleWindow, calling dispatchEvent (myEvent), where myEvent is an instance of the CustomEvent.
(3) I checked the event get sent, because the Boolean that returns the dispatchEvent method is set to 'true '.
(4) the eventListeners on the application parent never called.
I use this process on another custom event and eventListener and it works. It does not for this one. Here is my code:
/ * The custom event class
**/
package me.events.Events
{
import flash.events.Event;
/public class CustomEvent extends Event
{
Public static const WINDOW_CLOSED:String = "windowClosed";
public void CustomEvent (type: String, bubbles: Boolean = true, cancelable: Boolean = false)
{
super (type, bubbles, cancelable);
}
}
}
/ * The MXML component
**/
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:TitleWindow ' http://www.Adobe.com/2006/MXML "layout ="absolute"width ="400"height ="300"title ="replaced"showCloseButton ="true"borderStyle ="solid"cornerRadius ="0"creationComplete ="init (); "close ="windowCloser (); » >
< mx:Label x = "10" y = "10" text = "" project name: "fontWeight ="bold"/ > "
< mx:Label x = "10" y = "50" text = "' Description of the project:" fontWeight = "bold" / > "
< mx:Script >
<![ CDATA [ ]
import me.events.CustomEvent;
Public static const WINDOW_CLOSED:String = "windowClosed";
public void init (): void {}
private function windowCloser (): void { }
var myEvent:CustomEvent = new CustomEvent();
dispatchEvent (myEvent);
PopUpManager.removePopUp (this);
}
]]>
< / mx:Script >
< / mx:TitleWindow >
/ * The parent application
**/
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"creationPolicy ="all"creationComplete ="init (); » >
< mx:Script >
<![ CDATA [ ]
private function init (): void { }
this.addEventListener (CustomEvent.WINDOW_CLOSED, myHandler);
intro = model.getIntro ();
PopUpManager.addPopUp (intro, this, true);
PopUpManager.centerPopUp (intro);
}
private void myHandler(e:CustomEvent):void { }
//THIS IS NEVER CALLED!
}
]]>
< / mx:Script >
< / mx:Application >
If you display the TitleWindow as a popup, which is probably the problem, because the pop - up is not in the same display as the application list below systemManager. You may need to add the event listener to the systemManager.
See my Flex 3 post recipe book where I use custom events and add event listeners to the systemManager:
http://www.Adobe.com/cfusion/CommunityEngine/index.cfm?event=ShowDetails&ProductID=2&postI d = 11246
If this post has answered your question or helped, please mark it as such.
Maybe you are looking for
-
How to put an end to my monthly storage iCloud - iPad
I want to put an end to my monthly storage iCloud on my iPad. How do I do this without losing the photos, applications etc. that are already on the cloud? Rosalind
-
Mac OS 8 and 9 FireFox 10.6.8If I print a web page, all simply to print or save to PDF, only the first page prints fine. Page 2 is shifted to the right, such as the information is cut on the right edge. Information is lost in the page break, several
-
The problem is on my iMac. IBooks works very well on my iPad2. My iBook library is intact on the IMac. I asked apple support but not help there. When I open the iBooks app in the store that nothing shows up at all. It is empty. Features blank, Virgin
-
On 2015 retina MacBook Pro SSD upgrade
I want to improve my drive to a 500 GB SSD. No one knows is that I can buy one? Fry electronics there?
-
Try to configure the Server Active Directory rights management failed. Exception has been thrown by the target of invocation. to System.DirectoryServices.Configuration.ProvUtils.EnsureGroupMembership (StringstrTargetComputer, String strUserName, stri