Crashing whenever using mx.controls.Alert.show
Flex Project: Desktop (AIR)
Flex SDK: 4.1
Flash Builder 4
Problem: Whenever I use Alert.show even with the simplest strings passed it crashes showing the following error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls::Alert$/show()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\Alert.as:566]
And it is pointing at Alert.as line:
var sm:ISystemManager = ISystemManager(FlexGlobals.topLevelApplication.systemManager);
How do I use this? What's wrong? Any fix?
It sounds like you're referencing a NULL object somewhere. Any chance you could provide us with some sample code? I just successfully tried the following out:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
applicationComplete="init()">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
public function init():void
Alert.show("This is a test", "My Alert");
]]>
</fx:Script>
</s:WindowedApplication>
Thanks,
Chris
Similar Messages
-
Mx.controls.Alert.show windowHeight
Hello All
I am trying to set windowHeight for my alert component.
Below a snippet but does not seem to work any suggestion
greatly appreciated
Adam
var myAlert;
myAlert = mx.controls.Alert.show("Please
select:\n"+msg+"","Info", {windowHeight: 400});
trace(myAlert.windowHeight); // This comes up undefined
myAlert.windowHeight = 400;
trace(myAlert.windowHeight);// This comes up 400 but does
not change alert sizeIt sounds like you're referencing a NULL object somewhere. Any chance you could provide us with some sample code? I just successfully tried the following out:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
applicationComplete="init()">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.controls.Alert;
public function init():void
Alert.show("This is a test", "My Alert");
]]>
</fx:Script>
</s:WindowedApplication>
Thanks,
Chris -
Visual Studio 2013 slows down + crashes when using Source Control features.
I have spent two full days trying to resolve this issue but no luck so here we go,
I have created a project using Visual Studio Team Foundation Server plug-in in the past. Later on I switched to
Microsoft Git Provider.
Now when I connect to that project in the Team Explorer and double click on the solution to work on it locally it somehow changes the plug in to Microsoft Git Provider automatically and of course I can't
Commit/Commit and Push since I receive following error in the Team Explorer,
An error occurred. Detailed message: Failed to open directory 'C:/Users/.../AppData/Local/Application Data/'
Manually changing the plug-in to the Visual Studio Team Foundation Server
results in a broken Team Explorer as below,
With Settings leading to an empty pane, and also a warning in the Team Explorer's Changes page telling me the message below if I click on Pending Changes...
Microsoft Git Provider is not the current Source Control plug-in. Change Plug-in
And manually selecting the solution from Solution Explorer, right click and
Add Solution to Source Control, leads to never ending hour glass and (Not responding) visual studio.
New Projects
Creating a new project is straight forward, unless I "Add to Source Control" is checked. If so, again never ending process if Microsoft TFS plug-in is selected in the tools and eventually me Ending the Visual Studio task. And a VERY long process
(40+ mins) if I have chosen Microsoft Git but that finishes successfully rather.
New TFS project from Team Explorer
If I create a new project in my Online Web Studio
Click on Open with Visual Studio Link => Opens and connects to a my newly created TFS in team explorer.
Clicking new in Team Explorer under Solutions to create a new solution and bind it to this Repo
leads to straight crash of Visual Studio and restarting attempt of VS.
So I really can't use Source Control from visual studio other than cloning GitHub's existing repo's on Visual Studio and Committing my current Microsoft Git managed projects.
I have attempted
Repairing Visual Studio (no luck in results)
Devenv.exe /setup (no luck)
Trying to scrap the SCC info on my solution then at least it won't get picked up by source control then I can Check it in as a new project. (no luck and the solution picks the Microsoft Git upon opening it by clicking on the .sln file.) I have followed
these steps in this stack overflow answer.
And lots of mucking around like removing my workspaces almost Thousand times and putting them back, binding and etc.
I am really stuck on this and it's holding me back from staring a new project (which is problematic using Adding to Source Control) and unfortunately is dependent on the old project (which is developed under Visual Studio Team Foundation Server Plug-in which
is throwing tantrums)
Would like to hear you pro-s input on this
Using
Visual Studio 2013 Community edition (recently switched from Pro to Express to Community)
Windows 7 (64-bit)
Git tools
Git windows installation
Nuget Package manager
Visual Studio Log File
http://filesave.me/file/50620/log-txt.html
MehradzieHi Mehradzie,
Based on the description, seems you're working with Git team project in Visual Studio Online(formerly Team Foundation Service). I'd like to know whether you mean Visual Studio Git command tool as the plug-in, and if you're trying to create solutions/projects
with Visual Studio and add them to the created Git team project.
From the screenshot, you're not connect to the Git team project by using Team Explorer. To work with Git team project locally, you can follow the instructions as below:
Connect to Git team project by using Team Explorer, after that you might install Git tools if you connect to the team project for the first time
Clone the remote Git repository to a local git repository and set the path to local git repository
Create a solution and select Git source control, also saved to the local path of the local git repository
Select your branch, and then click "Changes" and Commit the changes
Click "unsynced commits" and push the commit to remote git repository
You can also refer to the links below for more information about getting started with Git in Visual Studio Online.
http://www.visualstudio.com/en-us/get-started/share-your-code-in-git-vs.aspx
http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/30/getting-started-with-git-in-visual-studio-and-team-foundation-service.aspx
If you still have any other concerns, please elaborate more details about your scenario. Thanks for your understanding.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Aperture crashes whenever using the menu 'File' or 'Help'
Hi,
since some time Aperture (2.1.4) crashes whenever I click the menu "Ablage" ("File") or "Hilfe" ("Help") from the menu bar. The same holds true using a new preference file or using a completely new and empty library, or using my version (2.1.3) recovered with Time Machine.
Closer inspection reveals that the crash (spinning ball and '..does not react') occurs whenever I click the menu "File" or the menu "Help". The other menues work correctly, and all images can be edited, exported or imported etc.
I tried to download a new test version of Aperture, but this recognizes immediately my access code, and everything starts again.
Can somebody advise me to overcome this problem?
Best regards and merry Christmas
JGI had a similar problem. I solved it with these instructions on my blog.
http://maximegousse.wordpress.com/2010/12/05/my-aperture-library-crash/
Max -
Mac keeps crashing whenever using Office for Mac (possible graphic card problem)
Mid 2010 15 inch MacBook Pro. Played out perfectly for the first two years. As soon as the warranty expired, things went sideways. Do not know why but whenever I try to use Office 2011 for Mac the entire mac freezes for a millisecond and then crashes. Does this repeatedly whenever I try using Office.
Problem report reads as follows:
Wed May 14 21:12:53 2014
panic(cpu 0 caller 0xffffff7f9a820fb0): "GPU Panic: [<None>] 3 3 7f 0 0 0 0 3 : NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff812c7a8000 0x0a5480a2, D0, P3/4\n"@/SourceCache/AppleGraphicsControl/AppleGraphicsControl-3.4.35/src/Apple MuxControl/kext/GPUPanic.cpp:127
Backtrace (CPU 0), Frame : Return Address
0xffffff81086cb140 : 0xffffff8018422fa9
0xffffff81086cb1c0 : 0xffffff7f9a820fb0
0xffffff81086cb290 : 0xffffff7f98f32eab
0xffffff81086cb350 : 0xffffff7f98ffc49a
0xffffff81086cb390 : 0xffffff7f98ffc50a
0xffffff81086cb400 : 0xffffff7f9927b056
0xffffff81086cb530 : 0xffffff7f9901fb39
0xffffff81086cb550 : 0xffffff7f98f398fd
0xffffff81086cb600 : 0xffffff7f98f37408
0xffffff81086cb800 : 0xffffff7f98f38386
0xffffff81086cb8e0 : 0xffffff7f99e7e9c2
0xffffff81086cb920 : 0xffffff7f99e8e37f
0xffffff81086cb940 : 0xffffff7f99ebc33b
0xffffff81086cb980 : 0xffffff7f99ebc39b
0xffffff81086cb9c0 : 0xffffff7f99e93e15
0xffffff81086cba10 : 0xffffff7f99e5fb5e
0xffffff81086cbaa0 : 0xffffff7f99e5bae7
0xffffff81086cbad0 : 0xffffff7f99e59636
0xffffff81086cbb00 : 0xffffff80188cbe43
0xffffff81086cbb90 : 0xffffff80188cdd3f
0xffffff81086cbbf0 : 0xffffff80188cb85f
0xffffff81086cbd40 : 0xffffff80184b65a8
0xffffff81086cbe50 : 0xffffff8018426bf1
0xffffff81086cbe80 : 0xffffff80184139f5
0xffffff81086cbef0 : 0xffffff801841e043
0xffffff81086cbf70 : 0xffffff80184c97bd
0xffffff81086cbfb0 : 0xffffff80184f3b96
Kernel Extensions in backtrace:
com.apple.driver.AppleMuxControl(3.4.35)[1BFF66C1-65E4-3BB3-9DEE-B61C3137019B]@ 0xffffff7f9a813000->0xffffff7f9a825fff
dependency: com.apple.driver.AppleGraphicsControl(3.4.35)[09897896-ACBD-36B5-B1D4-0CCC4000E 3B3]@0xffffff7f9a80b000
dependency: com.apple.iokit.IOACPIFamily(1.4)[045D5D6F-AD1E-36DB-A249-A346E2B48E54]@0xfffff f7f98d7a000
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[4421462D-2B1F-3540-8EEA-9DFCB0565E39]@0 xffffff7f98e90000
dependency: com.apple.driver.AppleBacklightExpert(1.0.4)[E04639C5-D734-3AB3-A682-FE66694C66 53]@0xffffff7f9a80e000
com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[80472F2E-D31D-32C4-88BA-2EB3D63 C159F]@0xffffff7f98ee3000->0xffffff7f9914bfff
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
dependency: com.apple.iokit.IONDRVSupport(2.4.1)[999E29DA-D513-3544-89D1-9885B728A098]@0xff ffff7f98ed3000
dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[4421462D-2B1F-3540-8EEA-9DFCB0565E39]@0 xffffff7f98e90000
com.apple.nvidia.classic.NVDANV50HalTesla(8.2.4)[B0E6AAA7-E970-3D81-8B43-145D56 A3A4AC]@0xffffff7f99156000->0xffffff7f993fffff
dependency: com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[80472F2E-D31D-32C4-88BA-2EB3D63 C159F]@0xffffff7f98ee3000
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
com.apple.GeForceTesla(8.2.4)[B6C71E9A-E304-354B-80AD-C69C9032D367]@0xffffff7f9 9e3e000->0xffffff7f99f08fff
dependency: com.apple.iokit.IOPCIFamily(2.9)[EDA75271-4E9D-34E7-A2C5-14F0C8817D37]@0xffffff 7f98aba000
dependency: com.apple.iokit.IONDRVSupport(2.4.1)[999E29DA-D513-3544-89D1-9885B728A098]@0xff ffff7f98ed3000
dependency: com.apple.iokit.IOGraphicsFamily(2.4.1)[4421462D-2B1F-3540-8EEA-9DFCB0565E39]@0 xffffff7f98e90000
dependency: com.apple.nvidia.classic.NVDAResmanTesla(8.2.4)[80472F2E-D31D-32C4-88BA-2EB3D63 C159F]@0xffffff7f98ee3000
BSD process name corresponding to current thread: WindowServer
Mac OS version:
13C1021
Kernel version:
Darwin Kernel Version 13.1.0: Wed Apr 2 23:52:02 PDT 2014; root:xnu-2422.92.1~2/RELEASE_X86_64
Kernel UUID: E9CF78E2-1E9F-3B6F-81A4-FEE6C6D0E4D5
Kernel slide: 0x0000000018200000
Kernel text base: 0xffffff8018400000
System model name: MacBookPro6,2 (Mac-F22586C8)
System uptime in nanoseconds: 53710064354842
last loaded kext at 52157306680063: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f9a95d000, size 49152)
last unloaded kext at 52274530849384: com.apple.driver.AppleIntelMCEReporter 104 (addr 0xffffff7f9a95d000, size 32768)
loaded kexts:
com.logmein.driver.LogMeInSoundDriver 1.0.0
com.squirrels.driver.AirParrotSpeakers 1.8
com.rim.driver.BlackBerryUSBDriverInt 0.0.68
com.apple.filesystems.udf 2.5
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.iokit.IOBluetoothSerialManager 4.2.3f10
com.apple.filesystems.ntfs 3.11
com.apple.driver.AGPM 100.14.15
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleMikeyHIDDriver 124
com.apple.driver.AppleMikeyDriver 2.6.0f1
com.apple.driver.AppleHDA 2.6.0f1
com.apple.driver.AudioAUUC 1.60
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleIntelHDGraphics 8.2.4
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleHWAccess 1
com.apple.GeForceTesla 8.2.4
com.apple.driver.AppleUpstreamUserClient 3.5.13
com.apple.driver.AppleSMCLMU 2.0.4d1
com.apple.driver.AppleLPC 1.7.0
com.apple.driver.AppleIntelHDGraphicsFB 8.2.4
com.apple.driver.AppleMuxControl 3.4.35
com.apple.driver.AppleMCCSControl 1.1.12
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.driver.AppleSMCPDRC 1.0.0
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.SMCMotionSensor 3.0.4d1
com.apple.driver.AppleUSBTCButtons 240.2
com.apple.driver.AppleUSBTCKeyboard 240.2
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 35
com.apple.driver.AppleUSBCardReader 3.4.1
com.apple.driver.AppleIRController 325.7
com.apple.driver.XsanFilter 404
com.apple.driver.AppleUSBHub 666.4.0
com.apple.iokit.IOAHCIBlockStorage 2.5.1
com.apple.driver.AppleFWOHCI 4.9.9
com.apple.driver.AirPort.Brcm4331 700.20.22
com.apple.driver.AppleAHCIPort 3.0.0
com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleUSBEHCI 660.4.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleACPIButtons 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleACPIEC 2.0
com.apple.driver.AppleAPIC 1.7
com.apple.driver.AppleIntelCPUPowerManagementClient 216.0.0
com.apple.nke.applicationfirewall 153
com.apple.security.quarantine 3
com.apple.driver.AppleIntelCPUPowerManagement 216.0.0
com.apple.iokit.IOSerialFamily 10.0.7
com.apple.AppleGraphicsDeviceControl 3.4.35
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 2.6.0f1
com.apple.vecLib.kext 1.0.0
com.apple.iokit.IOSurface 91
com.apple.iokit.IOFireWireIP 2.2.6
com.apple.iokit.IOBluetoothFamily 4.2.3f10
com.apple.iokit.IOAudioFamily 1.9.5fc2
com.apple.kext.OSvKernDSPLib 1.14
com.apple.driver.AppleSMBusPCI 1.0.12d1
com.apple.nvidia.classic.NVDANV50HalTesla 8.2.4
com.apple.nvidia.classic.NVDAResmanTesla 8.2.4
com.apple.driver.AppleGraphicsControl 3.4.35
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.AppleSMBusController 1.0.11d1
com.apple.iokit.IONDRVSupport 2.4.1
com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.driver.AppleHDAController 2.6.0f1
com.apple.iokit.IOGraphicsFamily 2.4.1
com.apple.iokit.IOHDAFamily 2.6.0f1
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.IOPlatformPluginFamily 5.7.0d10
com.apple.driver.AppleSMC 3.1.8
com.apple.driver.AppleUSBMultitouch 240.9
com.apple.iokit.IOUSBHIDDriver 660.4.0
com.apple.driver.AppleUSBMergeNub 650.4.0
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOUSBUserClient 660.4.2
com.apple.iokit.IO80211Family 630.35
com.apple.iokit.IOAHCIFamily 2.6.5
com.apple.iokit.IOEthernetAVBController 1.0.3b4
com.apple.driver.mDNSOffloadUserClient 1.0.1b5
com.apple.iokit.IONetworkingFamily 3.2
com.apple.driver.AppleEFINVRAM 2.0
com.apple.driver.AppleEFIRuntime 2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 278.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.AppleKeyStore 2
com.apple.driver.DiskImages 371.1
com.apple.iokit.IOReportFamily 23
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.iokit.IOUSBMassStorageClass 3.6.0
com.apple.driver.AppleUSBComposite 656.4.1
com.apple.iokit.IOSCSIBlockCommandsDevice 3.6.6
com.apple.iokit.IOStorageFamily 1.9
com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.6
com.apple.iokit.IOUSBFamily 675.4.0
com.apple.driver.AppleACPIPlatform 2.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0
com.apple.kec.pthread 1
Model: MacBookPro6,2, BootROM MBP61.0057.B0F, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 1.58f17
Graphics: Intel HD Graphics, Intel HD Graphics, Built-In, 288 MB
Graphics: NVIDIA GeForce GT 330M, NVIDIA GeForce GT 330M, PCIe, 256 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1067 MHz, 0x066D, 0x544E3447313643372D583700000000000000
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1067 MHz, 0x066D, 0x544E3447313643372D583700000000000000
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x93), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.3f10 13477, 3 services, 15 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: WDC WD10JPVT-75A1YT0, 1 TB
Serial ATA Device: WDC WD10JPVT-22A1YT0, 1 TB
USB Device: Hub
USB Device: BRCM2070 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Internal Memory Card Reader
USB Device: Hub
USB Device: IR Receiver
Thunderbolt Bus:
I've done a couple of modifications on it but I dont believe they have affected it to such extent. I believe it might be a defective graphic card but at this point, believing the crash was induced by the usage of Office I have done everything possible short to dismembering the Mac and changing the Graphic Card. I have read somewhere that mid 2010s had problems with graphic cards. If anyone has found a way around the changing of the card, I would be very grateful of their opinion and suggestions.First, uninstall the software responsible for installing these extensions:
com.logmein.driver.LogMeInSoundDriver 1.0.0
com.squirrels.driver.AirParrotSpeakers 1.8
com.rim.driver.BlackBerryUSBDriverInt 0.0.68
If removing the software and extensions doesn't solve the problem, then you are probably correct about the GPU:
The problem is likely due to the discreet GPU failing. Download gfxCardStatus 2.3 and use it to disable the GPU. This is a temporary workaround until you get your motherboard replaced. -
Have tried all fixes I can see, updated Intel drivers, Updated Graphics card drivers, run in compatibility mode, run in administrator mode, logged in and out of Adobe account, turned on and off, cleared memory cache etc. problem still seems to be happening!
Pictures that are "overly" large may cause video editing problems
Photo Scaling for Video http://forums.adobe.com/thread/450798
-HiRes Pictures to DVD http://forums.adobe.com/thread/1187937?tstart=0
-PPro Crash http://forums.adobe.com/thread/879967 -
Itunes crashes while using FX plug in
Can anyone please tell my why my Itunes crashes every time I try to play a tv show?
I have Itunes 11.1.3 I bought all my shows in the itunes store and for the last 4 versions of Itunes it crashes whenever I play a TV show from my library after downloading it.
It says "Itunes quite unexpectedly while using the FX plugin"Possibly? https://discussions.apple.com/message/23104779
-
How to autoclick/run a button after Alert.Show() Event?
Hey Guys
So I have a alert.show happening for something like
public function test(evt:ResultEvent):void
if (evt.result.success == "yes")
mx.controls.Alert.Show("Yay!!!")
if (evt.result.success == "no")
mx.controls.Alert.Show("Nay")
Now I have another button called
<mx:Button label="Reload" id="Reload" />
I want that if the sucess == yes scenario is run.. After the popup box comes and a person click OK.. the reload button is run..
Please tell me how to do so??
RegardsYou need to set up an event listener on the closeEvent.
Here is a quick example (untested):
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.events.CloseEvent;
import mx.controls.Alert;
private function init():void {
Alert.show("myText", "myTitle", Alert.OK | Alert.CANCEL, this, onClose);
private function onClose(event:CloseEvent):void {
if (event.detail == Alert.OK) {
trace("ok pressed");
} else {
trace("cancel pressed");
]]>
</mx:Script>
</mx:Application> -
Flashbuilder 4.5 Alert.show error
My shutdown method looks like
private function onShutDown(event:Event):void {
event.preventDefault();
Alert.show("Do you REALLY want to close this application?", "Wait! Don't go!", 3, null, onConfirmation);
And is valid but throws :
[SWF] AirPureAS.swf - 985,029 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.controls::Alert$/show()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Ale rt.as:566]
at AirPureAS/onShutDown()[C:\Users\Public\Documents\workspace\study\AirPureAS\src\AirPureAS. as:64]
Am I missing something. I have this setup so that the Flex project runs from a default .as class rather then default mxml application class.
And it works fine. As long as I leave Alert.show alone...
My hair is gone, my tea is cold, heeeeeelp!
Thanks on beforehand
ThomasYes suspected last night that must be it after starting at it in debugger.
I am devicing my own alert box as a result of that, finely designed!
Thanks
Thomas -
Mx.controls.Alert;
Hi there,
I am trying to use mx.controls.Alert and am getting the
following error:
"Failed to create a new alert, probably because there is no
Alert in the Library"
But i clearly have the component in my library!!
I have it working in another file but when I copy the code
into that it doesnt work either... any ideas ?
Thanks in advance!
I am just using an example from the help file to get it
working.....Yes probably I've missed someting.
Using mx.controls.Alert is one of the first lessons in all my
FLEX tutorials, and I don't know why it doesn't work easily.
Perhaps may I import this conponent myself in FLEX BUILDER 3
but any informations noware to do that. It seems that it must work
without special manipulation..
Thx
ALEC -
A problem in Alert.show() in FlexSDK 11563
Hello, I've got a problem with the Alert.show and the PopUpManager, every time an active method that ultilize these classes is displayed the following error:
TypeError: Error #1009: Não é possível acessar uma propriedade ou um método de uma referência de objeto nula.
at mx.managers::PopUpManagerImpl/http://www.adobe.com/2006/flex/mx/internal::createModalWindow()[E:\dev\trunk\frameworks\pr ojects\framework\src\mx\managers\PopUpManagerImpl.as:678]
at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\trunk\frameworks\projects\framework\src\m x\managers\PopUpManagerImpl.as:393]
at mx.managers::PopUpManager$/addPopUp()[E:\dev\trunk\frameworks\projects\framework\src\mx\m anagers\PopUpManager.as:189]
at mx.controls::Alert$/show()[E:\dev\trunk\frameworks\projects\framework\src\mx\controls\Ale rt.as:620]
at br.com.vpsa.view.screens.fiscal::CadastroCFOP/carregarCfop()[E:\WORKSPACES\FISCAL\fiscal\ flex_src\br\com\vpsa\view\screens\fiscal\As\CadastroCFOP.as:151]
at br.com.vpsa.view.screens.fiscal::CadastroCFOP/___CadastroCFOP_Group1_creationComplete()[E :\WORKSPACES\FISCAL\fiscal\flex_src\br\com\vpsa\view\screens\fiscal\CadastroCFOP.mxml:6]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\trunk\frameworks\projects\framework\src\mx\co re\UIComponent.as:11982]
at mx.core::UIComponent/set initialized()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:1540]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:759]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\trunk\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1069]This could be the same problem as https://bugs.adobe.com/jira/browse/SDK-24060. Watch the bug for updates. It should be fixed very soon.
-Darrell -
Trying to use Alert.show in module- possible?
I have some user data that I have to validate before
submitting it to a db and so I was planning on popping up an
Alert.show to ask them if they are sure in the usual fashion.
Button click event points to function that should show the Alert.
debug shows that function gets entered, but Alert does not show. no
error, just no Alert. code and controls are in a module that's
loaded into main application based on user input. Is this the
problem? Should I be using a popup window instead of Alert? Thanks
in advance.
Andy C.(never #)First, thanks for the reply:
I can't browse outside from my windows box( well I can but
they can see what I'm doing), so I can paraphrase.
<mx:Button label="Add Button" id="btnAddUser"
click="doAddUser(event)" />
<mx:Script>
<![CDATA[
import mx.everything and its brother;
private function doAddUser(event:Event):void
var alrtmsg:String="Are you sure you want to add this data
to the database?";
var alrtttl:String="Confirm User Add";
Alert.show(alrtmsg,alrtttl, Alert.YES | Alert.NO, this,
alertClickHandler);
private function alertClickHandler(event:CloseEvent):void
if(event.detail==Alert.YES)
rest of code does validation
]]>
</mx:Script>
This is pretty much straight out of the help screens. Now
this is in a module that's loaded into the main application.
Everything else works as I expect it to, but I can't get the Alert
to popup. And obviously, since I'm validating user input I have to
have a way to show them when they forgot to put something in.
Thanks -
Alert.show causing IE to crash
I have an alert that I want to show as a confirmation to exit
my application. The alert works fine in Firefox, however when I run
it in IE the application and IE crashes hard.
Below is the code I tried:
public function exitClick():void {
Alert.show("Are you sure you want to exit Application?",
"Exit Application", 3, null, exitPinpoint, iconExit);
The code below works fine, it just puts an ok rather than the
YES NO that I want.
public function exitClick():void {
Alert.show("Are you sure you want to exit Pinpoint?", "Exit
Pinpoint");
After messing with this for an hour or so, the crashing is
dependant on placing some button other than ok in the alert. I
tried many variations of instantiating an alert and all of them
failed miserably. I also wrote a smaller test application and added
an alert that worked just fine?
I copied the popup manager code into my project and it was
failing on the line in the middle...
This code is in the AddPopup method of the PopupManager
Class:
children = topMost ? sm.popUpChildren : sm;
children.addChild(DisplayObject(window));
window.visible = false;
Text
Any help / ideas on how to resolve this would be greatly
appreciated.It is possible to turn off such things as automatic updates and scheduled tasks to avoid interference with your LV code. As a matter of course, each new PC I use in a project (typically a new Dell of some sort) ends up having all of the "Value Added" software removed, all automatic updates disabled, and many services switched to "manual" start or disabled.
Although msconfig.exe does not ship with XP, it is compatible and can be used to prevent programs from running on Windows start up. Tweak UI is also a useful tool in getting XP to perform faster and with more stability.
As a Linux enthusiast for the past eight or so years, I have to give it it's due. But I've found that developing in LabView on that platform is quite limited. Depending on the "flavor" you choose, Linux on a desktop isn't entirely bombproof either. To really get stability and speed from a Linux system, you either need exactly the right distribution or you need to customize and re-compile your own kernel. Keep in mind that if you do switch to Linux, only certain versions are supported by LabView.
Believe it or not, I've got Windows systems (mostly tweaked versions of 2000) that have not been rebooted in countless months.
Years ago when I was always tweaking my Windows machines for gaming, I found a utility called 98Lite that was very useful. I once had an old PII laptop just blazing. http://www.litepc.com/ is the name of the of the software company I believe. They now have versions for 2000 and XP, although admittedly I have yet to try them.
Good luck!
Patrick Allen -
Please help:
I am using Windows 8.1 with Lightroom 5.6 64-bit.
Lightroom crashes whenever I preview or play slideshow with music.
There is no issue if I preview or play without music.
The length of the slideshow is 1 hour and 35 minutes.
Thank you for your help
C K SeeI have the same problem
Lightroom 5.6 crashes when I enter the printmodule.Windows 8.1 64-bit -
As I said in the title, the application crashes whenever I try to use the paintbrush or pencil. Also, when scrolling, the canvas duplicates as well as any shape tools holding extra places when they should have vanished. I am using the trial version and haven't seen anything like this in the forums. Any help would be awesome.
Can you please confirm the version of Flash Pro you are using by checking Help->About Flash. The latest version is Flash Professional CC 2014.1 (v 14.1.0.96).
Thanks!
Latha
Maybe you are looking for
-
I have read through all of the other discussions and could not find the answer I really needed so I'm posting here. Our AP payment run variant is set up in such a way that the same check number will be used even if several pages are required for the
-
hey guys i forgot the password for my iphone 4S and i keep on trying any passwords but now my iphone has deactivated it self and its asking me the password but i cant remember it and i dont have the last compter it syniced with!!! so what should i do
-
Trying to solve my non-playing flash videos wherever I surf in Firefox 401 w Flash plugin 10.2.159.1, such as CNN or anywhere really while surfing. Even at the Adobe web site I cannot play demo videos and I own CS4 Suite. I can play any YouTube video
-
Re: Whats the correct way to layout a JFrame
Hi, I am fairly new to Java and have just started to put together my first big application. Its a simple application written in Swing where the user is first shown a login screen, when he presses the login button and is taken to another screen where
-
How do i resize my video in photoshop ess 13
can anyone help please need to know how to resize my videos for sending in an e-mail thanks