Jump to content
GreenSock

Sam

ScaleMode.STRETCH will not return to proportional

Moderator Tag

Recommended Posts

Hi greensock,

 

I have a project wherein I am loading videos and allowing the user to adjust the scale mode similar to the way the autofitarea example works. I believe that I have discovered a bug in your FlexContentDisplay class (and possibly ContentDisplay). When setting the ScaleMode on the object to STRETCH it will not return to either proportional mode unless you set it to NONE first. I have attached a brief project that demonstrates the bug.

Link to comment
Share on other sites

Great catch, and thanks for putting a sample together. Very helpful. I believe the issue is resolved in the attached version - would you mind giving it a go before I post it in the public downloads? Thanks again for the assist.

Link to comment
Share on other sites

Looks good, although my test is fairly cursory. I can confirm that it is happy with images and videos.

 

Thanks for the fix.

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

 

i'm using the latest version of GreenSock as3 (11/11/11) and VideoLoader class :

ScaleMode don't work. Videos are always "STRETCH".

 

For example :

 

var videoloader:VideoLoader = new VideoLoader( "video.mp4",
										  { 
										  container:this,
										  width:300,
										  height:500,
										  scaleMode:"proportionalInside",
										  name:"video",
										  bgColor:0xff0000,
										  bgAlpha:1
										  } );

 

I tried with mp4, flv, f4v. Same results.

 

Thanks for help.

Link to comment
Share on other sites

I also have the same problem. It looks like 'proportionalInside' is stretching the video. I am using the latest version.

Link to comment
Share on other sites

Yeah, I'm so sorry about that - it was a bug introduced a few days back that caused this behavior and it should be fixed in the latest version. Again, my apologies. If you update now, you should be in good shape but let me know if you run into anything else.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×