A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Error??

  1. #1
    Senior Member freshly's Avatar
    Join Date
    Dec 2003
    Location
    Toronto, Canada
    Posts
    439

    Error??

    I am getting an error at runtime.....

    I check my code before runtime and it checks out!

    Here is the error....


    Here is my code...
    Code:
    root.moveButton_mc.addEventListener(MouseEvent.MOUSE_DOWN, startMove);
    
    root.closeButton_mc.addEventListener(MouseEvent.MOUSE_UP, closeWindow);
    
    
    function startMove(event:MouseEvent):void
    {
    	this.stage.nativeWindow.startMove();
    }
    function closeWindow(event:MouseEvent):void
    {
    	this.stage.nativeWindow.close();
    }
    It is basically a tutorial video with a close and drag buttons.

    What is causing this error, any suggestions?
    Last edited by freshly; 11-22-2008 at 10:36 AM.

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    89
    How did you set up your buttons?

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