Skip to main content
Participating Frequently
February 17, 2009
Question

Error with dynamic content

  • February 17, 2009
  • 2 replies
  • 388 views
Hi!

I have several movieclips. One is aligned to top, on is to bottom, one is to up left corner and so on.

When I use:
___________________________________

Stage.scaleMode = "noScale";
Stage.align = "TL";
onResize = function ()
{
ttl._x = 0;
ttl._y = 0;
ttc._x = (Stage.width - ttc._width) / 2;
ttc._y = 0;
ttr._x = Stage.width - ttr._width;
ttr._y = 0;
ccl._x = 0;
ccl._y = (Stage.height - ccl._height) / 2;
ccl2._x = 0;
ccl2._y = (Stage.height - ccl._height) / 2;
ccc._x = (Stage.width - ccc._width) / 2;
ccc._y = (Stage.height - ccc._height) / 2;
ccc2._x = (Stage.width - ccc2._width) / 2;
ccc2._y = (Stage.height - ccc2._height) / 2;
ccr._x = Stage.width - ccr._width;
ccr._y = (Stage.height - ccr._height) / 2;
bbl._x = 0;
bbl._y = Stage.height - bbl._height;
bbc._x = (Stage.width - bbc._width) / 2;
bbc._y = Stage.height - bbc._height;
bbr._x = Stage.width - bbr._width;
bbr._y = Stage.height - bbr._height;
}
;
Stage.addListener(this);
onResize();

___________________________________

Than moviclip bbc (with scrolling) is shown at different playces with the different screen resolution.
If I leave a little amount of text (so that it has the size less than moviclip) than it goes ok.
I attach two files: http://www.alex-pro.net/index_test_0.rar

I am appriciate for any help.
This topic has been closed for replies.

2 replies

Participating Frequently
February 18, 2009
Thank you for answer.

Actually I dont have a problem with the movies if there is no scrolling or loading pictures in it.
I have a problem if I put scrolling text in some of moviclips. In this example I put scrollin text in "bbc". And after this moviclip "bbc" appears in different places with the different screen resolution.
If I dont put scrolling text there, everything is completely ok.
Dont know how to fix this.
Known Participant
February 17, 2009
could you specify your problem, if this is a problem. And 11 movie clips (that really don't have meaningful names) doesn't help
Known Participant
February 17, 2009
things you might need to consider;

ccl2._y = (Stage.height - ccl._height) / 2;

you probably meant ccl2 in your math.


The stage 0,0 is in the top left of the screen.
You also need to be aware where the reference point of you movie clips are.
if you edit your movie clip, its reference point is where the '+' is.

This should be the reason why your pictures are not aligned properly.