in4ray / firefly-sdk

Firefly - in4ray Gaming SDK
http://firefly.in4ray.com
Other
54 stars 11 forks source link

Main view has no size in web player #10

Open dbathily opened 11 years ago

dbathily commented 11 years ago

Hi,

When I build my project for the web player, my main view has no size (w=0,h=0) unlike in the mobile version (1024x68). Same classes.

Thanks for your help

vstyran commented 11 years ago

Hi,

For web you need to put size on metadata [SWF(width="800", height="600"] under your main class.

dbathily commented 11 years ago

Thanks, but this did not solve my problem. I just test one of your example, no problem. So this is not an issue in your framework.

dbathily commented 11 years ago

Hum, sorry but I think there is the same problem when I test ZombieRisingUp Part2 in web mode. My real problem is that "relative" layout don't work in web mode.

See it your self, I just changed the layout in the GameSplash of Zombie 2 to addElement(gameName, $hCenter(0), $vCenter(0), $hRatio(50).pct);.