I am working on a project that has the stage and all contents resize to the browser size. However, there is one logo that requires it keeps it's aspect ratio. Curently it is positioned near centre of the stage but of course with it's width and height settings at % the logo looks great on a desktop 16:9 browser window but gets squashed in a mobile portrait view.
Is there no way of assigning the image height as auto as you would do in standard css?
OK, if the image was static on the stage I could give it a class and manipulate it in css outside of Animate (not tried it but the theory seems to make sense). However, this logo gets moved to the top corner of the screen when other content is placed in the centre of the stage so in my mind the css short-cut wouldn't work.
Are there some clever script tricks to resolve this. It can't be an uncommon problem...?
if cou can give a copy for your project to help you
As Mario hints a copy of the project (zipped) would be ideal.
On that notion of setting the img to auto > Height, see attached.
Set the image container to div (top portion of the Properties Panel)
Then scroll down towards the Image properties; to the lower right of the H property is a small arrow - click it and from the option choose 'auto'.
I was looking in the position and size area for the auto setting, I can now see the options in the image box. Thank you so much for your help!
I have one other nagging problem, perhaps your experience will be able to help with. I've posted it here on the forums: