Flash stage align
- Started
- Last post
- 6 Responses
- fues
I'd like to align a movie clip loaded into a level to the stage.
Any workarounds that make this possible?Thanks so much.
- fues0
Thanks Unfit but I know how do it when I use a movieclip as a target but when loading something into a level.
I know this code doesn't make any sens but it will get the idea across:
resizeListener = new Object();
resizeListener.loadMovie("index... _level1);
resizeListener.onResize = function() {_level1._x = Stage.width/2;
};
Stage.addListener(resizeListener...
- unfittoprint0
ok.
use a listener with MovieClipLoader and when triggered by an onLoadComplete event, re-align your mc:
- fues0
Unfit, that's the problem, I would like to position a _level (ex: _level1._x=Stage.width/2) and not a movieclip.
Is this possible?
Thanks.
- unfittoprint0
You can't, that's the problem.
And dealing with mcs as content holders instead of levels, is more practical in the end.
var mc:MovieClip = this.createEmptyMovieClip("mc", 100);
For example, you can easily swap mcs depths, something you cannot do with levels...
- fues0
Ok thanks Unfit.