Skip to main content
Known Participant
December 1, 2009
Question

nested movieclip not showing on stage

  • December 1, 2009
  • 1 reply
  • 443 views

on frame 1

for (j=0; j<20; j++) {
duplicateMovieClip("letterCont", "Letter"+j, j);
}

//this frame is executed only once

on frame 2

for (j=0; j<20; j++) {
if (j<MsgLen) {

// remove old clip in a loop sequence
  _root["Letter"+j]["let"+j].removeMovieClip();
  _root["Letter"+j].attachMovie("let"+ord(substring(Message, j, 1)),"let"+ j,j+200); // as was suggested to place it in diffrent depth
} else {
//  _root["Letter"+j]["let"+j]._visible = false;
}
}

on frame 3

//updating the clips position and size

for (j=0; j<MsgLen; j++) {
if (k<9) {
  if (pos-j>=0 && pos-j<9) {
   _root["Letter"+j]["let"+j]._width = Wchar[pos-j];
   _root["Letter"+j]["let"+j]._height = Hchar[pos-j];
   _root["Letter"+j]["let"+j]._x = Xchar[pos-j];
   _root["Letter"+j]["let"+j]._y = Ychar[pos-j];
   _root["Letter"+j]["let"+j]._visible = true;
  trace("for j= " + j + "  --  " + _root["Letter"+j]["let"+j]._visible + "  -  " + _root["Letter"+j]["let"+j]._alpha) // the results is allways true  -  100
  } else {
//  _root["Letter"+j]["let"+j]._visible = false;   For test I marked them as remark
  }
  k += 1;
} else {
//  _root["Letter"+j]["let"+j]._visible = false;For test I marked them as remark

}
}

frame 3 is looped until all 20 are shown and then it send back to frame 2

The checking the data given in frame 3 is correct

What my couse it not to show?

is there a way to debug the clip it self the?

_x _y _width _height on the debugger has correct values for all clips as expected but the clip is not on the stage why?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 1, 2009

what are you trying to do?

Tal770Author
Known Participant
December 1, 2009

letters are rotating around earth

taking each letter and attaching a movie clip of that letter and moving the mc and changing its width by calculating its visible face to the point of view

should be getting a proper rotation effect.

first I used a text and animating it (not actionscript) but I got bad results.

thinking of this I had made some changes that since then the clip is not seen becouse it did work before

Im not sure if this problem has to do with the nested MC's

kglad
Community Expert
Community Expert
December 1, 2009

i would expect one parent containing multiple letters.  each parent would contain letters that displayed a single sentence, phrase or word.

why do you have a different parent for each letter?