A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Accessing A Child Movie Clip

  1. #1

    Accessing A Child Movie Clip

    This code doesn't work. The movie clip instance "start" is nested in a movie clip called "bridal_navigation".

    _root.start.onRollOver=function(){
    black=new Color;
    black.setRGB(0x000000);
    }
    _root.start.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
    _root.bridal_navigation.start.onRollOver=function( ){
    black=new Color;
    black.setRGB(0x000000);
    }
    _root.bridal_navigation.start.onRollOut=function() {
    teal=new Color;
    teal.setRGB(Ox33CCCC);
    }
    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
    Senior Member Jaffasoft's Avatar
    Join Date
    Apr 2001
    Location
    On Travel
    Posts
    1,587
    Although that will get your paths right its stil not going to work ,'start' is a reserved actionscript syntax for to start a song playing for example. use an instance name like starter. Then also you need so make some slight changes with the changing color code.
    You make on colour object like myColor = new Color(starter); putting the path to the mc you want to change colour in the brackets.


    _root.starter.nav.onRollOver=function(){
    myColor =new Color(this);
    myColor.setRGB(0x000000);
    }
    _root.starter.nav.onRollOut=function(){
    myColor.setRGB(0x33CCCC);
    }

    Also one other thing if your using you code the teak wont work because you used the letter 'O' on the keyboard instead of the number 0 , be careful of that .
    Last edited by Jaffasoft; 07-12-2003 at 04:16 AM.

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