Go Back   OpenLaszlo Developers Forums > Programming in OpenLaszlo > General OpenLaszlo Programming

General OpenLaszlo Programming Questions and discussions about coding in OpenLaszlo. Please include the release of OpenLaszlo you are developing in.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-09-2007, 04:26 PM
slomatt slomatt is offline
Community Member
 
Join Date: Mar 2007
Posts: 8
slomatt is on a distinguished road
Centering a custom splash screen.

Greetings.

I'm attempting to center the content in a custom splash screen and have run into issues.

My base code is as follows:

Code:
<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
Reply With Quote
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.