Daniel Cascais
2005-06-07 20:29:21 UTC
I have done an application that uses an Alert Window. I am using the
same swf file for two different resolutions (1024x768 and 800x600).
The two different versions have a different size (430x402 and
341x320). I am using Stage.width and Stage.height to reposition all
the objects; depending on the size that it should be adapting to, (I
am only using one file for both occasions).
In the IDE, the alert pops up in the center of the stage in both the
sizes, but in the browser (inside an Iframe) the alert pops up in the
center of the size given to the swf in the IDE, instead of using
Stage.width and Stage.height to center it. As there is no mean to
control where the alert pops up, maybe you could help me figure how to
make it appear centered in both occasions.
If you have any idea on what I should be doing to fix this little
issue I would really appreciate it.
Thanks,
Daniel
same swf file for two different resolutions (1024x768 and 800x600).
The two different versions have a different size (430x402 and
341x320). I am using Stage.width and Stage.height to reposition all
the objects; depending on the size that it should be adapting to, (I
am only using one file for both occasions).
In the IDE, the alert pops up in the center of the stage in both the
sizes, but in the browser (inside an Iframe) the alert pops up in the
center of the size given to the swf in the IDE, instead of using
Stage.width and Stage.height to center it. As there is no mean to
control where the alert pops up, maybe you could help me figure how to
make it appear centered in both occasions.
If you have any idea on what I should be doing to fix this little
issue I would really appreciate it.
Thanks,
Daniel