FLEX Flashpaper sizing issue

I have down loaded the demo of Flashpaper2 and am able to
convert pdf documents to SWF. When I convert a pdf document that is
8.5 x 11 then load it into FLEX the initial size of the swf opened
in FLEX is not taking up the same size every time. I tried to
resize it with benSum.setSize(h,w) but it still does not work
correctly.
code example:
<mx:VBox id="flashPaper"
label="{ewn.planDetails.benefitSummaryTitle}" height="100%"
width="100%" hScrollPolicy="off" vScrollPolicy="off">
<mx:VBox width="100%">
<mx:HBox creationComplete="loadBenSum()">
<mx:Loader id="benSum" autoLoad="false"
scaleContent="true"/>
</mx:HBox>
</mx:VBox>
</mx:VBox>
benSum.setSize(3000,3000);
One of the SWF displays the correct size then the next does
not. Is there a way to define the size of the swf?

well i dont knoe exactly whether the size of swf's can be
resized,,
but definately size of flashpaper can be done..
see the part of the code am posting below, u might get some
logic for ur program.
its about a issue with loading a swf in flex with the
<mx:Loader> tag.
Loading ColdFusion Generated Flash Paper into a Flex
application.
All you realy have to do is to pass the coldfusion page on
the contentPath on the <mx:Loader> tag like this
<mx:Loader id="myLoader1" contentPath="
http://localhost/cfdocexample.cfm"/>
The left hand panel is calling a cfdocument while the right
hand panel is calling a cfreport
One note however, you cannot use the print functionality at
the moment.
code part (flashpaperTest.mxml)
<mx:Application xmlns:mx="
http://www.macromedia.com/2003/mxml"
xmlns="*" creationComplete="resizeFlashPapers()">
<mx:Script>
<![CDATA[
function resizeFlashPapers()
resizeFlashPaper1();
resizeFlashPaper2();
function resizeFlashPaper1()
var flashPaper1 = myLoader1.content.getIFlashPaper();
if (flashPaper1 == undefined ||
flashPaper1.setSize("480","500") == false)
doLater(this, "resizeFlashPaper1");
function resizeFlashPaper2()
var flashPaper2 = myLoader2.content.getIFlashPaper();
if (flashPaper2 == undefined ||
flashPaper2.setSize("480","500") == false)
doLater(this, "resizeFlashPaper2");
]]>
</mx:Script>
<mx:HDividedBox width="100%" height="100%" >
<mx
anel id="panel1" title="Flash Paper through
cfdocument" width="50%" height="100%" >
<mx:Loader id="myLoader1" contentPath="
http://localhost/cfdocexample.cfm"/>
</mx
anel>
<mx
anel id="panel2" title="Flash Paper through cfreport"
width="50%" height="100%" >
<mx:Loader id="myLoader2" contentPath="
http://localhost/cfrepexample.cfm"/>
</mx
anel>
</mx:HDividedBox>
</mx:Application>
--------------------

Similar Messages

  • [svn:fx-trunk] 5367: The changes here are mostly fixing some sizing issues.

    Revision: 5367
    Author: [email protected]
    Date: 2009-03-17 15:26:35 -0700 (Tue, 17 Mar 2009)
    Log Message:
    The changes here are mostly fixing some sizing issues.
    For the FlashContainerPlaceholder, the first child is now MyFlexContentHolder, which extends mx.flash.FlexContentHolder but meets the invariant that it has 1 child and that child is FlexContentHolderThumbnail, which I?\226?\128?\153ve added as a swc to the project. I changed this by accident last time to refer to mx.flash.FlexContentHolder, when it should've referred to a concrete instance created by Flash from a swc. I also added a chrome of 151x151 to match the FlexContentHolderThumbnail since otherwise the container itself would have no chrome at all, and this let?\226?\128?\153s it size correctly.
    Also, for sizing, in a container, rather than sizing to the size of the chrome, I now size to the size of the FlexContentHolder thumbnail that all FlexContentHolder?\226?\128?\153s have. This means in ContainerMovieClip, I don?\226?\128?\153t need to override bounds anymore.
    ContainerMovieClip now implements IVisualElementContainer.
    Also, I fixed a resizing event bug in UIMovieClip where the resize event was getting dispatched more than once.
    QE Notes: -
    Doc Notes: -
    Bugs: SDK-19271, SDK-19788, SDK-19789
    Reviewer: Glenn
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19271
    http://bugs.adobe.com/jira/browse/SDK-19788
    http://bugs.adobe.com/jira/browse/SDK-19789
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
    flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/FlexContentHolder.as
    flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as
    flex/sdk/trunk/frameworks/projects/utilities/build.xml
    flex/sdk/trunk/frameworks/projects/utilities/src/FlashComponentPlaceholder.as
    flex/sdk/trunk/frameworks/projects/utilities/src/FlashContainerPlaceholder.as
    Added Paths:
    flex/sdk/trunk/frameworks/projects/utilities/libs/
    flex/sdk/trunk/frameworks/projects/utilities/libs/FlexContentHolderThumbnail.swc
    flex/sdk/trunk/frameworks/projects/utilities/src/MyFlexContentHolder.as

    Hello Everyone,
    We request you all to try your applications with http://labs.adobe.com/technologies/flashplatformruntimes/air3-5/
    Release Notes - http://labsdownload.adobe.com/pub/labs/flashplatformruntimes/shared/air3-5_flashplayer11-5 _releasenotes.pdf
    Please let us know how it goes.
    -Thanks
    Pahup

  • [svn] 2913: Fix SWFLoader sizing issue (SDK-16497) Refactor some classes to try to fix ASDoc build.

    Revision: 2913
    Author: [email protected]
    Date: 2008-08-19 21:55:11 -0700 (Tue, 19 Aug 2008)
    Log Message:
    Fix SWFLoader sizing issue (SDK-16497) Refactor some classes to try to fix ASDoc build.
    Review: DJL
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16497
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/projects/airframework/src/mx/managers/WindowedSystemMa nager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/controls/SWFLoader.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ISystemManager.as
    flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/SystemManager.as

    Thanks for sharing.

  • How do I avoid sizing issues with a Bevel?

    I am designing a logo for a startup business, and a beveled filter really looks nice for this particular company. The client really likes what I came up with. The problem is the filter seems to cause sizing issues. Enlarging it is creating ugly pixelation. Is there a method for avoiding this, or can I simply not use a bevel?
    Thanks.

    In the preferences check scale strokes and effects

  • Sizing Issue

    I'm doing a project for school and having some sizing issues
    with my pages. earlier in the project my partner and I had some
    major issues with style sheets and banner headings, but now
    whenever we preview a page it changes size. We have about 10 pages
    and when you change from page to page the main text area either
    becomes really big, shrinking the other text areas, or becomes
    extremely small letting the other text areas take over. Can anyone
    tell me what we are doing wrong and how to dix this problem?

    Can you post a link to these pages, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "luv4dirish" <[email protected]> wrote in
    message
    news:ekhd19$abb$[email protected]..
    > I'm doing a project for school and having some sizing
    issues with my
    > pages.
    > earlier in the project my partner and I had some major
    issues with style
    > sheets
    > and banner headings, but now whenever we preview a page
    it changes size.
    > We
    > have about 10 pages and when you change from page to
    page the main text
    > area
    > either becomes really big, shrinking the other text
    areas, or becomes
    > extremely
    > small letting the other text areas take over. Can anyone
    tell me what we
    > are
    > doing wrong and how to dix this problem?
    >

  • Croping and sizing issues

    I have been using lightroom 4 for about 5 months.  But I am having issues with croping and sizing of pictures.  When I use the crop tool it does not always draw the picture in closer. I do shoot in RAW and not in JPEG.    I was wodering if there is a setting that I am not using or its not avaiable.  Also when I export out of lightroom4 and convert them from RAW to JPEG I have sizing issues depending on what size the customer orders.  I have tried to export them out at certain sizes but its still not correct.  The only way I have found to do it is going into photoshop and sizing them correctly but its very time consumeing .  Any help would be great!!

    You didn't tell us the desired output. All you said "...but its still not correct". What output are you trying to obtain?
    Also, what do you mean "When I use the crop tool it does not always draw the picture in closer"? Normally, you drag a corner (or corners) of the crop rectangle to crop tighter. Are you doing this? Is it not working? Explain.

  • Flex PHP Wizard Issues (Is Flex/PHP ready for prime time)

    I have been designing a website using Flex. I thought of using Flex form many reasons, but one was to reduce the number of languages used in the development process. I am going to be hosting at Godaddy so I thought  I would try PHP. I normally would use Java, but Flex seems to want Enterprise Beans and Java Remote Objects which cost to much and would probably not work on Godaddy. I started out with MAMP on a Apple computer and have design 60% of my application, when I started noticing as the database go larger, I started getting communication errors with the MAMP version of mysql. So I installed MySQL and and started using Apache and PHP that comes with OSX. The communication errors are increased.
    Any suggestions? I am at the point, if I can find a proven programmer, with GoDaddy/Flex/MySQL/PHP and Java experience to help answer some question, I think I can come up with contract dollars.
    First question is Flex ready? or is this an issue with PHP?

    have moved this thread from the ADDT forums to the Flex Data Services forums

  • Application sizing issue

    It seems like Flex apps don't size properly in Mozilla Firefox.
    Do demonstrate, I made this sample application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Canvas left="10" top="10" right="10" bottom="10" backgroundColor="#CA2020"> (don't worry about the color value...not accurate)
    </mx:Canvas>
    </mx:Application>
    When deployed to the server (it works fine when launching the app throught the Flex Builder). Here's how it should look (in IE, Chrome and Safari):
    And here's how it looks when viewed in mozilla FF:
    Does anyone have ANY idea why is this happeneing and how to work around it.
    In my current project I've asked the company to not list Mozilla FF in the "supported browsers" list, which is pretty embarrassing considering that a lots of people (including me) use Mozilla FF as our default browser.
    Any help will be appreciated.
    Best Regards..........

    Hey Ryan,
    Thanks for the input, but the situation stays the same.
    The sizing of the wrapper has always been a choice, but I cannot do that, I want the flex app to resize itself with the browser size, rather than have the user resize the browser to get the full view of the app.
    The height:100% solution did seem to be promising but alas!. Although, the width:100% works perfect.
    I'm still looking for an alternative, if you have any other suggesstion, please do care to write.
    Thanks and Regards.......

  • CompositionElement sizing issue needs to be addressed.

    Ok, so it's not just the PosterFrame and VideoElement inside a SerialElement that's sizing wrong.  It's anything inside a Parallel or Serial Element that includes an element with a temporal trait, and a static element such as RTMPPosterFrameElement, PosterFrameElement, or ImageElement.
    I just tried to use ScaleMode.LETTERBOX with a ParallelElement that included a progressive AudioElement, and ImageElement.  The ImageElement does not size properly, and can be replicated in your ExamplePlayer flex project.
    Just add the MediaPlayerWrapper to a container with a smaller fixed size (like a canvas container at 320x240 ).  You will notice that no Serial or Parallel Element with a static element will scale properly.
    This needs to be addressed.  The direction for this functionality is great!  Having a Posterframe for Audio and Video is a must ... but it currently does not size properly.  The only acceptable ScaleMode is NONE.

    The Layout system was created after our UI components, and a separate UIComponent was created to work with the Layout system.  We have a backlog item to fix this in the current sprint, starting today.  I have a work around below which demonstrates how to use this little know component call a RegionGateway.   Cheers!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="init()"
    xmlns:players="com.adobe.strobe.players.*">
    <mx:Script>
    <![CDATA[
    import org.osmf.media.MediaPlayer;
    import org.osmf.metadata.Metadata;
    import org.osmf.gateways.RegionGateway;
    import org.osmf.layout.RegistrationPoint;
    import org.osmf.display.ScaleMode;
    import org.osmf.layout.LayoutUtils;
    import org.osmf.proxies.TemporalProxyElement;
    import org.osmf.utils.URL;
    import org.osmf.media.URLResource;
    import org.osmf.image.ImageLoader;
    import org.osmf.image.ImageElement;
    import org.osmf.composition.SerialElement;
    private static const REMOTE_IMAGE:String = "http://mediapm.edgesuite.net/osmf/image/adobe-lq.png";
    private static const REMOTE_IMAGE2:String = "http://mediapm.edgesuite.net/strobe/content/test/train.jpg";
    private var region:RegionGateway;
    private var serial:SerialElement;
    private function init():void
    serial = new SerialElement();
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE)))));
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE2)))));
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE)))));
    serial.addChild(new TemporalProxyElement(5, new ImageElement(new ImageLoader(), new URLResource(new URL(REMOTE_IMAGE2)))));
    for( var itr:Number = 0; itr < serial.numChildren; ++itr)
    LayoutUtils.setLayoutAttributes(serial.getChildAt(itr).metadata, ScaleMode.LETTERBOX, RegistrationPoint.CENTER);
    LayoutUtils.setRelativeLayout(serial.getChildAt(itr).metadata, 100, 100, 0, 0);
    region = new RegionGateway(serial.metadata);
    wrapper.addChild(region);
    serial.gateway = region;
    var mediaPlayer:MediaPlayer = new MediaPlayer(serial);
    invalidateDisplayList();
    protected override function updateDisplayList(w:Number, h:Number):void
    super.updateDisplayList(w,h);
    if (region)
    LayoutUtils.setAbsoluteLayout(region.metadata, stage.stageWidth, stage.stageHeight);
    ]]>
    </mx:Script>
    <mx:UIComponent
    id="wrapper"
    width="100%"
    height="100%"
    />
    </mx:Application>

  • Flex swf cache issue in IE

    Hi,
    We are facing an important issue with the IE cache of the swf file. Could you please help us?
    For example, we built and put calendar.html & calendar.swf on server. We don't want users to download a 800 KB large swf file everytime when they access the web page, especially at a lower speed of network. However, although we coded some IE cache setting in calendar.html, like response.setHeader("Cache-Control" ...., IE still download the file from server sometimes instead of using the local one in cache.
    One of reasons is the cache size. If you set the size to 50 MB by default, it will be full very soon after you view some websites. Then IE will clean part of the cache. The cached swf file might be cleaned, or might not be. We never know. If it's cleaned and you access calendar.html, you will found out IE downloads the file again from server. To avoid this, users can enlarge the cache size, but the downloading still happen sometimes. Also, letting user enlarge the cache may not be a good and final solution.
    We want to force IE to use the local file everytime. If we updated the file, we want IE to download it in this case, and download it only once.
    So, we want to ask if you also have faced this kind of issue and how you did it? Please follow this topic or anyone is welcomed to send an email to me at [email protected]
    Thank you very much.

    Hmmm
    Not sure about this one.  However to reduce download time have you tried using Runtime Shared Libraries.  This allows the Flash Player to cache the Flex Framework.  This means the first time someone gets a flex app it will take a bit longer to load, but it will cache the framework, then next time the load is quicker.
    Its the Flash Player that caches the frameowrk also, so the browser can;t clear it.
    That might help
    Andrew

  • WebView sizing issue

    Hi,
    I'm embedding a WebView through a JFXPanel in a existing Swing app and running into some issues regarding to sizing.
    My issue is that sometimes the height/width reported in JavaScript inside the WebView is 800*600, while most of the time it is reported to be equal to the dimensions of the WebView/Scene/JFXPanel. As the content I'm showing is a chart that renders itself to a size according to the dimensions of a parent DOM node, which is in this case the document.body, you can imagine that the results are wrong when the values reported in JavaScript for width and height are wrong.
    Ideally what I want is that the size of the body of the HTML document automatically follows the dimensions of the JFXPanel, meaning that is the JFXPanel gets resized, the dimensions of the scene/WebView follow suit. As this is not possible AFAIK, I've now setup a ComponentListener on the JFXPanel to update the dimensions of the WebView through the componentResized method of the ComponentListener. However, this still gives me the mixed results.
    I've setup a log of logging and I see that when the JavaScript layer reports the 800*600 dimensions, the dimensions of the WebView, Scene and JFXPanel are NOT reported as 800*600, but all report the actual size.
    My setup is as follows:
    - JFXPanel containing a Scene containing a WebView.
    - The scene is constructed without specifying a width/height
    - The JFXPanel is dimensioned by a special Swing layout manager
    - The WebView is loaded with custom HTML through loadContent() of the WebEngine
    - The body of the HTML document is sized 100%*100% through CSS
    - Dimensions in JavaScript are retrieved through document.body.getWidth/Height
    - In the custom HTML a chart is instantiated with the dimensions of the
    - Using Java 1.7 update 25 64bit on Windows with the bundled JavaFX
    Any thoughts appreciated.
    P.

    Please a correction i have seen that this error is produced on every scheduled report. The problem i am facing is that the campaign consolidated daily report is not imported in the specified folder.
    Help!

  • Flex Builder 3 Issues

    I apologize in advance for my cynicism, but since I received
    cricket sounds from Adobe Support I figured I would give this a go.
    I downloaded and installed the trial version of Flex Builder 3, but
    when trying to click on any of the links in the start page
    (tutorials, etc..) it displays the following error: Windows - No
    Disk
    Then it requires me to kill both the FlexBuilder.exe and the
    associated javaw.exe using task manager to get rid of the error. I
    found a similar issue in the knowledge base, but it was for people
    who installed from a DVD on Vista.
    I installed to the default location on XP SP2, with all the
    latest patches. I've un-installed/reinstalled like the knowledge
    base entry states as the solution, but to no avail.
    If anyone can provide insight or a solution, I would
    appreciate it!
    Thanks in advance,
    Rob

    I am not sure if this would work but worth a try.
    1. Try to launch your flex builder with -clean. (Using
    Command line)
    Go to Program Files-> Adobe->Flex Builder 3
    Run Flexbuilder.exe -clean
    Also if it doesn't work try reinstall but after uninstalling
    make sure Program Files-> Adobe->Flex Builder 3 is empty.
    Also please log a bug at
    http://bugs.adobe.com/flex
    HTH,
    Gaurav

  • Flex 15 brightness issue.

    After upgrade the latest Windows 8.1 update (End Apr), the brightness adjustment are not function any more.
    The brightness key at the keyboard and setting in the windows also not working.
    Kindly help to solve this issue. 
    Thanks

    Have you updated all your drivers after upgrading to Windows 8.1?
    You can find drivers for your model here: http://mobilesupport.lenovo.com/us/en/products/laptops-and-netbooks/flex-series/ideapad-flex-15-note...
    Jonas
    Microsoft MVP: Windows Consumer Expert
    Yoga Tablet 2 10 || ThinkPad X1 Carbon (20A7007MPH) || ThinkPad Helix (3698-6EU) || IdeaCentre B540
    Twitter: @jonashendrickx

  • Flex/Spring UserDetailsService issue

    I'm fairly new to both Flex and Spring.  I can get them to communicate and have no issues there, I can even authenticate a user from lines in my database.  I've implemented my own UserDetailsService which returns my own custom UserDetails object with some extra user information in it.  This is where my problem is.
    I need to login with more information than just a username and password.  I need to also check to make sure that they also put in the proper first name and last name.  I can't seem to figure out where to validate that.  I'm doing the standard:
    ro.channelSet.login(number.text, password.text)
    but I can't pass anything else into it.
    Any suggestions?

    This can be done by using <mx:Reparent/> tag.

  • Flex TextArea HTMLText issue.

    Hi All,
             I am using a Flex textArea control and recently i found an interesting behaviour while using htmlText property of the TextArea.
    By default the htmlText has "<P align=''left' /> tag.When i added bullets to the text it adds the "<LI>" tag to the text and get rid of the the "<P/>" tag.
    The problem is that,when i add bullets and the right align the text,it displays fine on the textArea ,but since the htmlText does not have the "<P/>" tag,when i send the htmlText to the backend to generate the .jpg preview of the screen,it is not aligning the text to right.
    Bottom line:"when text right aligned with bullets,htmlText does not have "<P/>" tag and only have "<LI/>" tag.
    Does anyone know about this issue?
    Any ideas to overcome this issue?
    Thanks
    Kartik B

    Thanks for reply,
    i am taking htmlText from another textarea..
    code:
    var htmltext:String = txtarea.htmlText
    var textarea1:TextArea = new TextArea();
    textarea1.htmlText = htmltext;
    vboxName.addChildAt(textarea1,0);
    while tracing value of htmltext
    <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="11" COLOR="#000101"
    LETTERSPACING="0" KERNING="0">agenda descriptyion</FONT></P></TEXTFORMAT>
    <TEXTFORMAT LEADING="2"><LI><FONT FACE="Verdana" SIZE="11" COLOR="#000101"
    LETTERSPACING="0" KERNING="0">neethu<FONT FACE="none" COLOR="#FFFFFF"></FONT></FONT></LI></TEXTFORMAT>
    Regards,
    Manu Lal

Maybe you are looking for