A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Movie Clip Button

  1. #1

    Movie Clip Button

    Can someone take a quick glance at this code and see what's wrong. "Start2" is the child clip of "bridal_navigation". The icon becomes a button with the code, but the effect doesn't occur. It should change color to black when it's rolled over and then back to teal onRollOut.

    _root.bridal_navigation.start2.onRollOver=function (){
    black=new Color;
    black.setRGB(0x000000);
    }
    _root.bridal_navigation.start2.onRollOut=function( ){
    teal=new Color;
    teal.setRGB(Ox33CCCC);
    }

  2. #2
    _global.chosenson="flash"; chosenson's Avatar
    Join Date
    Jul 2002
    Location
    BIG APPLE
    Posts
    716
    Please post the fla
    If you have a question, need some help, email me:chosenson

    It's always the simplest things that escape the complex mind!

    always be just

  3. #3
    have at it.
    Attached Files Attached Files

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    The actual correct syntax is...

    myColor = new Color(myMovie);
    myColor.setRGB(0x993366);

    But don't think you'll achieve the effect your looking for, this way!

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Use a dynamic textfield instead of a static one, and give it an instance name... I used my_start as an instance name...

    code:

    stop();
    _root.bridal_navigation.start2.onRollOver=function (){
    _root.bridal_navigation.start2.my_start.textColor = 0x000000;
    // my_color1 = new Color(_root.bridal_navigation.start2);
    // my_color1.setRGB(0xFF0000);
    };
    _root.bridal_navigation.start2.onRollOut=function( ){
    _root.bridal_navigation.start2.my_start.textColor = 0x33CCCC;
    // my_color2 = new Color(_root.bridal_navigation.start2);
    // my_color2.setRGB(Ox33CCCC);
    };


  6. #6
    _global.chosenson="flash"; chosenson's Avatar
    Join Date
    Jul 2002
    Location
    BIG APPLE
    Posts
    716
    Here is the file with changes I made.

    They are exactly as oldnewbie stated as I was working on it.

    Thanks oldnewbie.

    chosenson
    If you have a question, need some help, email me:chosenson

    It's always the simplest things that escape the complex mind!

    always be just

  7. #7
    Thanks to both of you. Thanks a lot. Why though, in god's name newbie, do you NOT have a web site. You know how to change the color of a dynamic text field on a roll over and a roll out, but yet you don't have a web site?

  8. #8
    New Guy ! cks's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    97
    Fla please

  9. #9
    _global.chosenson="flash"; chosenson's Avatar
    Join Date
    Jul 2002
    Location
    BIG APPLE
    Posts
    716
    Hey cks

    Fla please???
    If you have a question, need some help, email me:chosenson

    It's always the simplest things that escape the complex mind!

    always be just

  10. #10
    New Guy ! cks's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    97
    W T F

    Fla ??????

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