[haxe].flash: Align Elements on Stage or Sending Variables from js/php to swf

Adrian nordbaer at gmail.com
Mon Jan 15 23:49:24 CET 2007


Thank you very much Ian, that was very helpful. I feel a bit stupid
right now... :)

2007/1/15, Ian Liu <ian.liu88 at gmail.com>:
> You can retrieve the stage width and height, so it's easy to align the
> MovieClips in the corners:
>
> in Flash < 9:
> var W = Stage.width;
> var H = Stage.height;
>
> in Flash 9:
> var W = flash.Lib.current.stage.stageWidth ;
>  var H = flash.Lib.current.stage.stageHeight;
>
>
> On 1/15/07, Adrian <nordbaer at gmail.com> wrote:
> >
> > My wish is simple; I would love to align elements on the flash stage,
> > like in example one on the left side and one on the right.
> >
> > I could do that either by gathering the screensize via js and send it
> > into flash to work with it. Would be cool, because it's usefull for
> > alot of other things as well. or if there is a possibility to do that
> > out of the swf.
> > Or that there is a class/object with which I could do that, the
> > aligning, but for different movieclips.
> >
> > Thanks
> > Adrian
> >
> > --
> > haXe - an open source web programming language
> > http://haxe.org
> >
>
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
>



More information about the Haxe mailing list