A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: mc's in another mc

  1. #1
    mostly harmless
    Join Date
    Feb 2001
    Location
    Leverkusen/Germany
    Posts
    28

    doesn't anybody know???

    hi there,

    first i gotta warn u, i'm german so i might have problems expressing me right.

    i got a mc, that contains other mc's. they are all in a swf that is loaded into another swf. the container mc's _x is in relation to the mouse position, works just fine. problems start with reading the inner mc's _x. it happens once when the swf is loaded but never again.

    now here's the code:
    PHP Code:
    this.onEnterFrame = function() {
        
    abstand pfeil._x-_xmouse;
        
    pfeil._x -= abstand/5;
        
    buttonleiste._x 600-_root.dummie_zeit.pfeil._x;
        for(
    07i++) {
            if(
    buttonleiste["button_"+i]._x 70 || buttonleiste["button_"+i]._x 920) {
                
    buttonleiste["button_"+i]._visible false;
            } else {
                
    buttonleiste["button_"+i]._visible true;
            }
        }
        
    testetest buttonleiste._x+" "+buttonleiste.button_1._visible
    };
    stop(); 
    buttonleiste is the container, the inner mc's are button_0 to button_6. they have 2 static textfields and an invisible button on top

    why can't i read the inner mc's _x?

    thx
    schengen
    Last edited by krascheng; 12-03-2002 at 12:25 PM.

  2. #2
    pablo cruisin' hanratty21's Avatar
    Join Date
    Mar 2002
    Location
    on the lam
    Posts
    2,275
    Moderator - You might want to move this out of the newbie forum and into somewhere a little more appropriate.

    RH

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