A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: AS3- Function problem

  1. #1
    Junior Member
    Join Date
    May 2016
    Posts
    1

    AS3- Function problem

    aButton.addEventListener(MouseEvent.MOUSE_DOWN,but tonDown);

    function buttonDown(e:MouseEvent):void
    {
    //does some awesome stuff
    }

    if (something == someOtherThing)
    }
    //here is where my problem is. I would like to make buttonDown ALSO possible to happen when this if
    //statement works. I am unsure how to code that.
    }

    Thank you very much for any help =)

    j3

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    f (something == someOtherThing)
    {
    //here is where my problem is. I would like to make buttonDown ALSO possible to happen when this if
    //statement works.
    buttonDown(null);
    }
    who is this? a word of friendly advice: FFS stop using AS2

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