5/7/2010 12:24:00 AM
Title:
Flex-Flash in PDF
I need to embed a pice of flash in a PDF File using Acrobat 9.
Problem is: When inserting a Flex-Project output SWF it always resizes it to a lower resolution making it look aweful. Using an ActionScript Projekt SWF everything works fine.
thx for helping!
5/7/2010 2:00:37 AM
In flex generated swf file the scaling of the application is controlled by internal classes by setting the scalemode property. You can change scaling behavior by setting four modes, see which suits you :
// you can set these modes on applicationComplete event of flex application.
// resize to fit
stage.scaleMode= StageScaleMode.EXACT_FIT;
//maximum height and width, cropping may occur
stage.scaleMode= StageScaleMode.NO_BORDER;
//never scale
stage.scaleMode= StageScaleMode.NO_SCALE;
//scale to maximum height and width in proportion to avoid any distortion
stage.scaleMode= StageScaleMode.SHOW_ALL;