Flash Error #1009: Cannot access a property or method of a null object referencee -


my flash professional cc showing error simple alert code. have tried solve reading discussed on website unable solve it.

error :

typeerror: error #1009: cannot access property or method of null object reference. @ mx.controls::alert$/show()[/users/aharui/flex-sdk-4.12.1/frameworks/projects/mx/src/mx/controls/alert.as:574] @ alerttest()[d:\summer project\practice\alerttest.as:7] 

can suggest reason, here code!!

package { import flash.display.sprite; import mx.controls.alert;  public class alerttest extends sprite {     public function alerttest() {         alert.show("would exit application?", "confirm", alert.yes | alert.no | alert.cancel);         trace("hey");         }   } } 

before getting error 1046 : type not found or compile time constant..

so installed flex skd 4.12.1 in folder , included library path in action settings fla file. after doing landed getting error.

kindly suggest.

the mx alert class flex framework , can't used in flash cc project.

with flex project can use alert class tried do. pure actionscript 3 project or flash cc project (there components available on flash cc no alert) have create own or can try find custom framework (i don't know maybe madcomponents?).


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -