A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Movie Clip Rollover

  1. #1

    Movie Clip Rollover

    I want to apply this code to a movie clip, but there's not an option for a rollOver on a movie clip. Do I HAVE to embed a button within the movie clip. Here's the code I came up with.

    this.onRollOver=function(){
    black=new Color(this);
    black.setRGB(Ox000000);
    }
    this.onRollOut=function(){
    aqua=new Color(this);
    aqua.setRGB(Ox33CCCC);
    }

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Give the movie clip an instance name and attach your code to a frame, not the movie clip:

    _root.mcName.onRollOver=function(){
    black=new Color(this);
    black.setRGB(Ox000000);
    }
    _root.mcName.onRollOut=function(){
    aqua=new Color(this);
    aqua.setRGB(Ox33CCCC);
    }

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