Why addChild (new Shape()) does not work?
I would like to know why the following code does not work:< mx:Application >
..
private function doShape (): void {}
var aShape:Shape = new Shape();
this.addChild (aShape);
}
..
< mx:Button click = "doShape ()" / > "
< / mx:Application >
According to the docs, addChild() takes a DisplayObject instance as a parameter. The shape is a DisplayObject. However, I get an error (#1034) that the form cannot be converted to mx.core.IUIComponent
I don't understand what the problem...
Yes, it's always a witch hunt in a first time. Flex containers (for example, canvas, Panel, etc) may have only UIComponents and children, not only of DisplayObject. The thing is, one UIComponent can have simple DisplayObjects as children, so you have to wrap your form:
var temp: UIComponent = new UIComponent();
temp.addChild (aShape);
this.addChild (temp);
Tags: Flex
Similar Questions
-
Why my new GFX does not work with my HP system
Hello, recently I decided to replace my old gfx (gt 545) for the Asus Gtx 760 2g. I also replaced the stock for a new psu. However from the start of my computer that was purchased already built (Hp Pavilion p7-1010 (a) the hp loading screen would come but freeze indicating that I could go to a menu if I Press esc that after that, does nothing. However when swapping graphics card back to my old it will work very well.
After some time (with the gtx760 in) then the computer emits a long pause and then it beeps again. After 3 beeps computer beeps once then 3 times quickly, resulting to shut down the computer.
Specifications for the system is here (http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay?javax.portlet.begCache...
With the exception of a new PSU (Thermaltake Litepower 700W, http://www.thermaltake.com.au/products-model.aspx?id=C_00001776)
And of course the new GFX (ASUS GTX760-DC2OC-2GD5, https://www.asus.com/Graphics_Cards/GTX760DC2OC2GD5/)
When the unit is turned on the fans in the managed system, as well as those appearing on the graphics card and the light on it becomes green. This could be a problem of compatibility with the rest of the material in the system?
Anyone know what is happening and how it could be repaired? Any help is greatly appreciated.Hello
You need get clarification of compatibility and/or repair of ASUS.
The question on the compatibility of the video card is that the video card manufacturer wants to disclose on a particular video card.
-
Why Define Custom Shapes does not work because of a program error?
I was selecting a path, to create a custom shape, and I got a program error message, that States "cannot complete the Define Custom Shape command because of a program error." How can I fix it?
Post edited by: Trevor Dennis [confusing typo in the subject line corrected]
In fact, I checked and found a pre-announcement that clarifies the issue. I'm the Photoshop classroom in a book and created the paths using the subtraction of the form. After this post, which will result in a program error, that the procedure would be to use exclude shapes that overlap. I was going to try this anyway. Beautiful when books are wrong... Nothing has been said in the paper on the creation of a new fill layer
-
new tab (+) does not work after the upgrade to v 23.0.1 forefox
I had firfox version 22 I guess... Now, today morning I upgraded to v 23. It displays a message from one of the plug-in is not compatible with wud and therefore be disabled. now later I still once downloaded the plug in to check if its works or not but TI worked (as I had already guessed), or its display in modules or plug-ins.
Now I don't get why the new tab does not work. Not at all. Its so very annoying. I googled the question and tried to reset firefox and the new tab in subject parameter: config. But nothing helped.
I think that its because of this plug-in I've read somewhere that the parameters can be getting replaced by one of the defective Add-ons.
Help, please.
Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/Firefox/tools > Modules > appearance).
- Do NOT click on the reset button on the startup window Mode without failure.
- https://support.Mozilla.org/KB/safe+mode
- https://support.Mozilla.org/KB/troubleshooting+extensions+and+themes
You can use the SearchReset extension to reset preferences to default values.
Note that the SearchReset extension runs only once and then uninstalls automatically, so it will not appear on the page "> Firefox Add-ons" (topic: addons).
If you do not keep the changes after a reboot or have problems with preferences, see:
-
Why the button new folder does not work
the button create a new folder does not work
Hello
You have a common problem with Windows 7. The work that I and many others use is a utility called FileMenu Tools. You can download safely from this link: http://www.softpedia.com/get/PORTABLE-SOFTWARE/System/System-Enhancements/FileMenu-Tools-Portable.shtml .
After downloading, install the program. Each option is checked by default. I would be much more selective on this subject, otherwise your context menu will be a full page long! When the main window opens, you will see a list on the right side of all the elements that can be added to the context menu. Start weeding through the list and every one to take away, you don't need the United Nationsby checking the box.
Once you have completed your selection (de-selections) make sure that you click the green check mark in the row of icons at the top of the left window of the interface to 'Apply' of your choice. The program can do much more, but that answers your specific question. I am told that the program has a good help file, so try here if you are interested.
Let me know how you fare.
Kind regards
BearPup
-
As new synchronization does not work for me, despite the setting it in total compliance with the Mozilla Web site and no one took the trouble to answer the previous post today, is it possible to return to the synchronization of the former?
To the best of my knowledge, the synchronization of the former is no longer available.
If you post some details on the problems you are having with the sync, we can try to solve your problem.
-
Since the upgrade of my new tab does not work, I press on the + icon and nothing
Since the upgrade of my new tab does not work, I press on the + icon and nothing
Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that disables certain parameters, disables most Add-ons (extensions and themes).
If Firefox is open, you can restart Firefox Safe mode in the Help menu:
- In Firefox 29,0 and above, click on the menu button
click Help
then select restart with disabled modules.
- In previous versions of Firefox, click on the Firefox button in the upper left of the Firefox window and click help (or click on help in the Menu bar, if you do not have a Firefox button) and click on restart with disabled modules.
If Firefox is not running, you can start Firefox in Mode safe mode as follows:
- On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
- On Mac: Hold the option key during the startup of Firefox.
- On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
(you may need to specify the installation path of Firefox for example/usr/lib/firefox)
When the Firefox Safe Mode window appears, select "start mode safe."
If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. Please follow the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.
To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.
When find you what is causing your problems, please let us know. This might help others with the same problem.
- In Firefox 29,0 and above, click on the menu button
-
The new tab (+) does not work, or the file/new tab feature
The new tab (+) does not work. The function of the file/new tab does no more work. Both had worked correctly until noon today. I haven't added any software, plug-ins or extensions today, I do not have the Ask toolbar. I tried several of the suggestions made on this site, nothing helps.
This problem may be caused by an extension that does not work in the current version of Firefox.
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).
- Do not click on the reset button on the start safe mode window or make changes.
-
Why xbox 360 controller does not work with all pc games
Why xbox 360 controller does not work with all pc games
Ask in an xbox forum.
-
Why any screen recorder does not work on my computer? __
Why any screen recorder does not work on my computer?
Hi I formatted my computer and downloaded all the conditions for this, I downloaded hypercam and installed, I tried to open it in the tool bar and the start menu, it still does not work.
I downloaded another program for recording of the screen, it also did not work, I tried 3 programs, they all did not work
by the way my computer: windows vista service pack 2 and the screen recorders have worked before I formatted my laptop
I need a solution pleaseeeeeeI got this error in the three programs
Signature of the problem:
Problem event name: APPCRASH
Application name: ScreenVCR.exe
Application version: 1.5.34.0
Application timestamp: 2a425e19
Fault Module name: StackHash_b4c3
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception code: c0000096
Exception offset: 02e42a3b
The system version: 6.0.6002.2.2.0.768.3
Locale ID: 1033
Additional information 1: b4c3
More information 2: d2a8bebd21e0e9bfa99e084d53ece2b6
3 more information: 74a 3
Additional information 4: 0480b6e0a2e7a1df44ee618ae8d0084fRead our privacy statement:
http://go.Microsoft.com/fwlink/?LinkId=50163&clcid=0x0409Please give me a solution... :(my laptop computers Info
Windows is Windows Vista Home Premium
Intel (r) core (TM) 2 Duo CPU 26500 2.10 GHz
3.00 GB RAM
Mobile Intel (r) 4 Series Express Chipset Family=============================================
Just a thought... maybe your video driver or DirectX needs and update?Have you tried the following applications:
(1) Windows Media Encoder 9 Series
http://www.free-codecs.com/download/Windows_Media_Encoder_9_Series.htmDirect Download Link:
http://www.free-codecs.com/download_soft.php?d=571&s=327First steps with screenshot
Using Windows Media Encoder
http://www.Microsoft.com/windows/windowsmedia/HOWTO/articles/ScreenCap.aspx(2) Microsoft Expression Encoder 4
http://www.Microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=75402be0-C603-4998-A79C-becdd197aa79Expression Encoder training videos
http://expression.Microsoft.com/en-us/cc197144.aspxVolunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.
-
Why ctrl + right click does not work with babylon dictionary windows 7
Why ctrl + right click does not work with babylon 8 dictionary. I use a 64-bit windows 7.
Hello
1. facing this problem only with application of Babylon?2. it worked earlier?If you encounter this problem only with Babylon, I suggest you to post your request in the forum of the community of Babylon to better support on this issue.
http://support.Babylon.com/ -
Why my license code does not work on lightroom 6 for mac?
Why my license code does not work on lightroom 6 for mac? My os x is "el capitan".
Please try the steps to serialize Lightroom CC trial to activate like Lightroom 6 mentioned on: https://helpx.adobe.com/lightroom/kb/serialize-lightroom-cc-trial-to-activate-as-lightroom - 6.html
You can also try: error "serial number is not valid for this product". Creative Suite
-
you want to know why my email address does not work in my muse contact form widget?
Hello:
You want to know why my email address does not work on my muse contact form widget?
Hi Omar,.
Please see: Troubleshooting Muse form used on the servers of third party Widgets
Kind regards
Akshay
-
Why the object_not_found exception does not work?
Posters,
I have the following statement in a package.procedure:
-- (...)
Start
Select dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName)
in the cDDL - clob for index DDL
of the double
-- (...)
exception
When dbms_metadata.object_not_found then
null;
end;
-- (...)
Execution is stopped in the select, not enter the exception and the following message is displayed in PL/SQL Developer MicroHelp:
+ "ORA-31608: specified object type INDEX not found." + "
I did it another way by adding the following clause:
-- (...)
Start
Select dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName)
in the cDDL - clob for index DDL
of the double
where exists (select 1+)
of all_indexes+.
where table_owner = 'OWNER'+.
and table_name = sTableName); +
-- (...)
exception
+ When no_data_found then +.
null;
end;
-- (...)
It works, but: why the object_not_found exception does not work?
Thanks in advance for everyone!
PhilipsOh I just noticed:
What happens if instead of this:
Select dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName)
in the cDDL - clob for index DDL
of the doubleyou say:
cDDL: = dbms_metadata.get_dependent_ddl ('INDEX', 'OWNER', sTableName);
?
-
Satellite 1410-303-new CPU does not work
Hi all
MI name Fabio, I'm an Italian boy, sorry for my bad English...I have a problem with my Toshiba Satellite 1410 303, I buy a new processor (Pentium 4 mobile 2 GHz 512 k 400bus) but it does not work.
When I turn on my laptop, I hear the system Speaker beep contiunos that never stop until I turn off the system.
I clear CMOS, and then I spend my BIOS with the latest 1.40 version.Do you have a solution?
Thanks for the help
Bye!
Hello
Have you installed the same CPU than before, or have you installed a different CPU?
I checked the manual of the Satellite 1410 and he normally equipped with an Intel Celeron CPU processor and in my opinion, it is the reason why it doesn't work.
Upgrading the CPU is not being official and it seems that the motherboard and BIOS don't support this CPU.
Check this Toshiba document: http://aps2.toshiba-tro.de/kb0/TSB9401AX0001R01.htmWelcome them
Maybe you are looking for
-
Photosmart C7280 all in one / Windows 7
Fatal error "-error" "wStub" "132056" is the message I get when you install the HP update software. The installation process starts automatically again and again without success constantly. Can anyone help?
-
I had some problems with my Skype. One of them which is the most serious, is this one. I had deleted one of my friends because she seemed offline while she was actually online. When I tried to add him, his Skype appear not at all. It is on this accou
-
Satellite A300-1 - disk HARD for XP drivers
Hello I have Toshiba Satellite A300-1.No recovery CD were delivered by Toshiba.I have a laptop formatted, a valid key of XP, but I can't install it because it does not recognize the hard drive. Where can I find the hard disk for my A300 1 drivers. I'
-
Unable to get the Bluetooth Toshiba BT Stac Headset profile in collaboration with mic
Hello. I have problems with my Motorola HT 820 Stereo headset, the Toshiba Bluetooth Stack installed on Vista Home Premium 32 bit laptop. I am unable to get the microphone to work at all, so can't use it for Skype / VOIP calls etc. Features such as t
-
Hallo! Lately, I've updated my LabView 8.6 to 8.6.1 then lately, I get the following error message when you use the VI atteched: Error-1073807338 at VISA near sornsg Close.vi-> output - Dima old.vi-> lambda_sornsg.vi-> COG.vi-> Ch2_main_with_s11.vi P