-
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(i = 0; i < 7; i++) {
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.
-
pablo cruisin'
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|