slomatt
03-09-2007, 03:26 PM
Greetings.
I'm attempting to center the content in a custom splash screen and have run into issues.
My base code is as follows:
<splash persistent="true">
<view resource="../resources/images/dc-loading2.swf" />
</splash>
The above displays the swf in the upper left corner.
If I add constraints for the x and y attributes I get an error, it seems in a SplashView those fields only accept constants.
If I use center="true" it centers the view based on its top left corner, not the middle of the view. This offsets my image from center. The SplashView does not have xoffset/yoffset attributes that would allow me to center to the middle of the image.
Is there anyway to place the center of my swf at the center of the page so that it appears centered?
Thanks!
- Matt
I'm attempting to center the content in a custom splash screen and have run into issues.
My base code is as follows:
<splash persistent="true">
<view resource="../resources/images/dc-loading2.swf" />
</splash>
The above displays the swf in the upper left corner.
If I add constraints for the x and y attributes I get an error, it seems in a SplashView those fields only accept constants.
If I use center="true" it centers the view based on its top left corner, not the middle of the view. This offsets my image from center. The SplashView does not have xoffset/yoffset attributes that would allow me to center to the middle of the image.
Is there anyway to place the center of my swf at the center of the page so that it appears centered?
Thanks!
- Matt