A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: MouseOver problem - Simple Gallery and Text

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    11

    Question MouseOver problem - Simple Gallery and Text

    I'm running CS6 windows 64bit
    Actionscript 3.0

    I am trying to make a simple MouseOver gallery ...

    I have a banner of 4 pics as buttons, when I MouseOver the pic the (appropriate) text should show, it kind of does but it jiggles and flashes on the screen.

    The gallery should have 4 pics but I have removed them to reduce file size so I can upload here.

    I did inc the full actionscript tho.



    PHP Code:
    stop();

    al_btn.addEventListener(MouseEvent.MOUSE_OVER,abuttonOver);
    function 
    abuttonOver(event:MouseEvent):void
    {
        
    gotoAndStop(5);
    }
    al_btn.addEventListener(MouseEvent.MOUSE_OUT,abuttonOut);
    function 
    abuttonOut(event:MouseEvent):void
    {
        
    gotoAndStop(1);
    }
        
        
        
    dik_btn.addEventListener(MouseEvent.MOUSE_OVER,bbuttonOver);
    function 
    bbuttonOver(event:MouseEvent):void
    {
        
    gotoAndStop(10);
    }
    dik_btn.addEventListener(MouseEvent.MOUSE_OUT,bbuttonOut);
    function 
    bbuttonOut(event:MouseEvent):void
    {
        
    gotoAndStop(1);
    }
        
        
    lab_btn.addEventListener(MouseEvent.MOUSE_OVER,cbuttonOver);
    function 
    cbuttonOver(event:MouseEvent):void
    {
        
    gotoAndStop(15);
    }
    lab_btn.addEventListener(MouseEvent.MOUSE_OUT,cbuttonOut);
    function 
    cbuttonOut(event:MouseEvent):void
    {
        
    gotoAndStop(1);
    }
        
        
    mal_btn.addEventListener(MouseEvent.MOUSE_OVER,dbuttonOver);
    function 
    dbuttonOver(event:MouseEvent):void
    {
        
    gotoAndStop(20);
    }
    mal_btn.addEventListener(MouseEvent.MOUSE_OUT,dbuttonOut);
    function 
    dbuttonOut(event:MouseEvent):void
    {
        
    gotoAndStop(1);
        } 
    Attached Files Attached Files

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