Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Adobe Flash Code Error Driving Me Nuts!!

  • 25-05-2009 09:52PM
    #1
    Registered Users, Registered Users 2 Posts: 35


    Can anyone tell me what I am doing wrong on this Flash tutorial?

    This is the link to it
    http://www.vineyardesigns.com/tutorials/flash/website/label_links.shtml

    I've followed the tutorial step by step and I keep getting this error

    **Error** Scene=Scene 1, layer=Buttons, frame=1:Line 2: The class or interface 'MouseEvent' could not be loaded.
    function clickHome(event:MouseEvent):void

    Total ActionScript Errors: 1 Reported Errors: 1

    This is my code as per the tutorial:

    Home.addEventListener (MouseEvent.CLICK, clickHome);
    function clickHome(event:MouseEvent):void
    {
    trace ("home");
    gotoAndStop("Home");
    }
    I cant figure out why MouseEvent cannot be loaded.
    Can you help?

    Thanks:confused:

    [FONT=&quot][/FONT]


Advertisement
Advertisement