Error #1069 Property CLICK not found....
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Error #1069 Property CLICK not found....

  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    3

    Question Error #1069 Property CLICK not found....

    Here's a simple code of rectangle drawing by mouse,and I'm going to add code for draging.but I encounter an error
    Error #1069: Property CLICK not found on flash.events.MouseEvent and there is no default value.

    Code:
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    
    var mouseHolding:Boolean=false;
    var posx:Number,posy:Number
    stage.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
    stage.addEventListener(MouseEvent.MOUSE_UP, mUp);
    function mDown(MouseEvent){
    	mouseHolding=true;
    	posx=mouseX;
    	posy=mouseY;
    }
    function mUp(MouseEvent){
    	mouseHolding=false;
    	var myDraw:MovieClip= new MovieClip();
    	myDraw.graphics.lineStyle(2, 0x000000, 1);
    	myDraw.graphics.beginFill(0x222222, 0.5);
    	myDraw.graphics.drawRect(posx, posy, mouseX-posx, mouseY-posy);
    	myDraw.graphics.endFill();
    	addChild(myDraw);
    	myDraw.addEventListener(MouseEvent.CLICK,objclick)}
    function objclick(e:MouseEvent) {
    	trace("fine");
    }
    I think it's a simple mistake,but what's it?

  2. #2
    Registered User
    Join Date
    Oct 2013
    Posts
    3
    someone helped me the code,it's a basic thing.
    function mUp(MouseEvent){
    function mUp(e:MouseEvent){

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com