SWFLoader scaleContent doesn't scale

I'm attempting to scale a whole Flex 2 application designed
to be 1024x768 to a slightly smaller size to fit an 800x600 kiosk
screen using SWFLoader. My first attempt was the following which
has the effect of creating a window with the correct width of 800,
but the content is not scaled and is clipped on the right edge. In
the vertical direction, the flash player window is still 768 pixels
high with the content again unscaled in that direction to. The only
thing that seems to work has been to use only scaleX and scaleY
without the scaleContent="true". But even in this case all is not
right because when the application tries to read
mx.core.Application.application.width to position some components,
it returns a value something like 1172 which is neither the
original nor the scaled width. I would expect it to be the unscaled
width 1024.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical" xmlns:kiosk="org.cancer.kiosk.*">
<mx:SWFLoader source="Kiosk.swf" scaleContent="true"
width="800" maintainAspectRatio="true" />
</mx:Application>
Any suggestions appreciated
Thanks,
Barry Tolnas
American Cancer Society
[email protected]

try setting the width and hight on an Event.COMPLETE

Similar Messages

  • 2014 Mac mini doesn't scale the entire HP Envy 32 monitor screen

    I recently purchased a HP Envy 32 monitor for use with my 2014 Mac mini with the Iris display. I get 2560x1440 resolution at 60 Hz on both the DP (1.2) as well as the HDMI ports (using the auto-detected HP Envy 32 color profile) but the display doesn't scale the entire screen of the monitor. Is anyone else using this configuration successfully? If so, what have you done to make full use of the 32" monitor real-estate? I simply cannot find any options in Display preferences (Yosemite) to change underscan options or for that matter within the monitor itself. Is there a particular display profile or driver I can use to fix this issue?

    I'm using a 4K compatible DP cable connected to the Thunderbolt port and getting to the max resolution of the monitor. So I don't think the issue lies there. I was able to use SwitchResX trial mode to discover an underscan option that allowed me to scale to the entire monitor screen. Assuming SwitchResX is manipulating core OSX functions, I'd assume there is some display related configuration within OSX that I should be able to tweak in order to scale the monitor screen natively in OSX without requiring any 3rd party software. Any thoughts for how to go about tweaking the display natively?
    Thanks

  • Desktop content viewer still doesn't scale 2048 folios?

    or does it?
    if I'm creating a 2048x1536 folio in inDesign and preview it on the desktop the viewer doesn't scale to fit so i can only see half the page
    anyone know a way around this, other than to create a 1024 doc?
    - Tim

    Our v20 release will include the ability to zoom the desktop viewer smaller so you can preview folios for the new iPad.
    Neil

  • Image.getScaledInstance doesn't scale

    Hi All!
    I've got a problem with image scaling of JPG file. In the constructor body of my class that inherites from JPanal I wrote following code:
    Image image,image1;
    image = (new ImageIcon(this.getClass().getResource("/Pics/about.jpg"))).getImage();
    Thread.sleep(2000);
    image1 = image.getScaledInstance(this.getWidth(), this.getHeight(), Image.SCALE_DEFAULT);Everything is OK with 'image' loading, but getScaledInstance doesn't scale loaded image.
    In debuger I observe image1.getwidth()/getHeight() = -1...
    What's wrong?

    You can try one of these:
    public PieceIcon(String symbol,int pNum)    { 
          playerNumber = pNum;
          pieceImage = new ImageIcon("./Images/"+symbol+".jpg").getImage().getScaledInstance(10,10,Image.SCALE_DEFAULT);
            //Image doesn't appear dispite being smaller than original image, appears if scaledInstance part removed
           setOpaque(false);    }
           validate();// try it with just one or the other or both
           repaint();

  • Module that doesn't scale 100% to its container

    Hi,
    I have a module that doesn't scale 100% to its container
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
        percentWidth="100" percentHeight="100" verticalGap="0"
        >
        <mx:creationComplete>
            <![CDATA[
            vo = VO.getInstance();
            ]]>
        </mx:creationComplete>
        <mx:Script>
    You see anything wrong?

    I set up the panel like this      
    privileges= new SuperPanel();
            privileges.x=0;
            privileges.y=0;
            privileges.width=725;
            privileges.height=500;
            privileges.verticalScrollPolicy='off';
            privileges.allowDrag=true;
            privileges.allowResize=true;
            privileges.allowClose=true;
            privileges.allowMaximize=true;
            privileges.allowMinimize=true;
            privileges.allowMaximize=true;
            privileges.addEventListener(CloseEvent.CLOSE,privilegesClose)
            privileges.layout='vertical';
            privileges.title="Assign privileges";
            privileges.addChild(privilegesML);
    then I load the module
              privilegesML.url = 'modules/Privileges.swf';
    The module looks a bit like this
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0"
        width="100%" height="100%" verticalGap="0"
        >
        <mx:creationComplete>
            <![CDATA[
            vo = VO.getInstance();
            ]]>
        </mx:creationComplete>
        <mx:HBox width="100%">
            <mx:Button label="Save changes to server" click="deals.dataProvider=tradesResult">
                <mx:icon>@Embed(source='../../images/32px-Crystal_Clear_app_kwrite.png')</mx:icon>
            </mx:Button>
            <mx:Button label="Refresh list" icon="@Embed(source='../../images/cog.png')" click="myService.getUsers();"/>
        </mx:HBox>
        <mx:AdvancedDataGrid id="deals" displayItemsExpanded="false" dataProvider="{vo.usersResult}" width="100%" height="100%" sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="name" headerText="User name" width="120" textAlign="center" editable="false"/>
                <mx:AdvancedDataGridColumn headerText="Add trade" width="70" editorDataField="addTradeView" rendererIsEditor="true" backgroundColor="0xddf5ff">
                    <mx:itemRenderer>
                        <mx:Component>
                                <mx:CheckBox >
        <mx:Script>
                                    <![CDATA[
                                        override public function set data(value:Object):void
                                            super.data=value;
                                            if(value != null){
                                            this.selected=this.data.addTradeView;
                                    ]]>
                                </mx:Script>
                                    <mx:change>
                                        <![CDATA[
                                        this.data.isModifiedClientSide = 1;
                                        this.data.addTradeView = this.selected; //used to check through data and update server
                                        ]]>
                                    </mx:change>
                                </mx:CheckBox>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:AdvancedDataGridColumn>
            </mx:columns>
        </mx:AdvancedDataGrid>
    </mx:Module>

  • Scaling sprite for printing doesn't scale content

    Need help with this one!
    I have a Flash docutment that is 950 x 650. I want to add a
    "print" button that will automatically scale it to fit uncropped on
    an 8.5" x 11" page (Landscape).
    Problem is, although the sprite DOES scale to fit the page,
    the content doesn't scale but rather just ends up being cropped.
    It's like my sprite is a window looking through to my image. I
    change the size of the window but the image behind it remains the
    same size.
    Here's the code:
    Thanks!
    Phalconheart

    I have found that I needed to add each sprite and textfield
    individually. I actually just created new instances of each element
    to add to my page sprite. ie.
    if stage has a square object and a circle objects:
    var square:Square = new Square();
    square.scaleX = .8;
    square.scaleY = .8;
    var circle:Circle = new Circle();
    circle.scaleX = .8;
    circle.scaleY = .8;
    printSprite.addChild(square);
    printSprite.addChild(circle);
    .... yada yada
    myPrintJob.addPage(printSprite, etc etc

  • Mail App Stationary Doesn't Scale / Resize on Mobile devices

    Testing the Mail Stationary, for which I was very excited about, and found that it doesn't scale on mobile devices or even my desktop Mail app. Sent from Mail app on desktop and tried viewing on iPhone, iPad, and my desktop... all 3 devices required horizontal scrolling to view the entire message... while other email marketing messsages scaled just fine.
    UPDATE: Found that in some cases it will scale if I open another message first and then switch back, at least on the iPhone and iPAd in landscape orientation.
    What's up with Apple, or possibly me, that their own stationary doesn't scale on their own devices??  I haven't even tested on Outlook because I can only imagine the results (wouldn't it be ironic if it worked there??)
    Experiences?
    Do the thrid party templates, Jumsoft or Equinox, work any better?

    having exactly the same problems and made exactly the same experiences..
    maybe one more: i checked Outlook - bouth for Mac and Windows. Outlook doesn't like attached images, they are visible in HTML but also attached like real attachments. put them on an webserver and add complete URL and your stationery will look fine.. in Outlook

  • Report generation doesn't scale to fit

    The layout option, "Scale front panel to fit" in "Easy Print VI Panel or Documentation.vi" (in the report generation pallette) doesn't do anything.  In fact, if I dig into that vi, it goes through to "Report Gen VI or Documentation.vi", and I find that the  layout option isn't wired to anything!  Is this a known problem with that vi?
    My application requires that I print the front panel as part of a user log, and I need to be able to scale to fit in order to squeeze it onto the page.  Any suggestions?
    Thanks,
    Charlie

    Hi Charlie,
    The layout option is not wired to anything in the Standard, HTML, Excel and Word Report, but it is used in the Quick Print default case.  The Help document for this VI mentions that the layout option is ignored on Standard and HTML Reports but does not mention the Excel or Word Reports.
    This was discovered a little while ago in this discussion forum.  And a report has be filed to R&D by Ben.
    Justin Parker
    National Instruments
    Product Support Engineer

  • Flash mp3 player doesn't scale when page zoomed

    It's possible there is nothing I can do to fix this, but wanted your expert advice.  Thanks for looking at this.  Gary
    I have installed a mp3 player on my site from dewplayer http://www.alsacreations.fr/dewplayer
    It looks fine when I pull it up in a browser:
    But when I zoom the page (control-alt-scroll) the player remains the same size and does not scale with the page.
    It does scale correctly if you are minimizing the window (ie: clicking the top right minimize box on the browser).
    Here is the html:
    div id="column2Right">
    <h3 id="firstTopic">Featured Song</h3>
    <div id="albumArtShadow"><img src="images/album art/carly1.jpg" width="150" height="150" border="0"></div>
    <!--dewPlayer-->
    <div id="dewPlayerRcolumn">
    <object type="application/x-shockwave-flash" data="dewplayer-mini.swf" width="195" height="20" id="dewplayer" name="dewplayer">
    <param name="movie" value="dewplayer.swf" />
    <param name="flashvars" value="mp3=mp3s/carlyAllyse_somday.mp3" />
    <param name="wmode" value="transparent" />
    </object>
    </div>
    <!--close dewPlayer-->
    <div id="column2SongInfo">Carly Allyse<br />Someday</div>
    Here is the CSS
    #column2Right #dewPlayerRcolumn {
        padding: 0px;
        height: 20px;
        width: 195px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        margin-left: -5px;

    I have the same issue, and it is a browser issue. Like you mentioned, Chrome and Internet Explorer scale all Flash content properly. I have tried Firefox, Nightly, and Cyberfox (Firefox-based) and they all have the same problem. It isn't a dealbreaker for me right now but it is very annoying and I'd love it if the developers at Mozilla could look into fixing it (possibly in collaboration with Adobe). Also, even using the Flash beta (version 16) doesn't work.

  • [solved itself] cpupower doesn't scale ivy bridge high enough

    Not sure if I should have put this in the testing section, the kernel section or here. But I try here.
    cpu family : 6
    model : 58
    model name : Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
    My problem is:
    $ analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1 2 3 4 5 6 7
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 10.0 us.
    hardware limits: 1.20 GHz - 2.20 GHz
    available frequency steps: 2.20 GHz, 2.20 GHz, 2.10 GHz, 2.00 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz
    available cpufreq governors: userspace, conservative, ondemand, performance
    current policy: frequency should be within 1.20 GHz and 1.60 GHz.
    The governor "conservative" may decide which speed to use
    within this range.
    current CPU frequency is 1.20 GHz.
    boost state support:
    Supported: yes
    Active: yes
    "current policy: frequency should be within 1.20 GHz and 1.60 GHz."
    Why is the maximum of the current policy 1.6 GHz and not 2.2GHz? cpupower knows it can scale up to 2.20GHz. i7z confirms that it never clocks above 1.6GHz when running stress -c 1.
    So to make sure no automatism screws with it:
    $ sudo cpupower frequency-set -g userspace
    $ sudo cpupower frequency-set -f 2.20GHz
    But still:
    $ cpupower frequency-info
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1 2 3 4 5 6 7
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 10.0 us.
    hardware limits: 1.20 GHz - 2.20 GHz
    available frequency steps: 2.20 GHz, 2.20 GHz, 2.10 GHz, 2.00 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz
    available cpufreq governors: userspace, conservative, ondemand, performance
    current policy: frequency should be within 1.20 GHz and 1.60 GHz.
    The governor "userspace" may decide which speed to use
    within this range.
    current CPU frequency is 1.60 GHz.
    boost state support:
    Supported: yes
    Active: yes
    It won't go above 1.6 GHz.
    What can I do to convince it to clock to the maximum frequency, and to use "turbo boost" when appropriate?
    Edit: I have since rebooted again and this time I see this:
    $ cpupower frequency-info
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1 2 3 4 5 6 7
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 10.0 us.
    hardware limits: 1.20 GHz - 2.20 GHz
    available frequency steps: 2.20 GHz, 2.20 GHz, 2.10 GHz, 2.00 GHz, 1.90 GHz, 1.80 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz
    available cpufreq governors: conservative, ondemand, performance
    current policy: frequency should be within 1.20 GHz and 2.20 GHz.
    The governor "conservative" may decide which speed to use
    within this range.
    current CPU frequency is 1.20 GHz.
    boost state support:
    Supported: yes
    Active: yes
    So at least it does clock to the official maximum. i7z doesn't show turbo boost though. Is it a i7z limitation for ivy bridge?
    edit2:
    After another reboot it works completely. Weird.
    Last edited by Cdh (2012-10-12 08:33:58)

    Probably same issue here, cant switch frequency at all. At some point it worked, now doesnt work at all. Tried to use Jupiter, but it was unable to change anything when started automatically, so when I removed it from autostart it started to work, but only for 1-2 reboots.
    I'm using Core i5 CPU.
    Edit:
    After suspend it behaves like ondemand, but still very strange behavior + I cant change XFCE settings on acpi events.
    Edit again:
    I installed jupiter again, but this time i added ROOT user to group jupiter instead of adding it only for my user. Now it works! Switches correctly. 4 reboots. But when closing laptop lid it still goes to sleep instead of black screen....
    Try unchecking "Monitor power management control" in power settings if using XFCE, maybe it helps too. My advices!
    Last edited by kellerman (2012-10-22 17:53:19)

  • Firefox doesn't scale YouTube HTML5 videos

    It started recently. Most probably after the recent update to 37.0. What's most weird is that when I disable ALL extensions it doesn't help but when I start Firefox via troubleshooting >> without addons... videos scale correctly.
    NOTE:
    I use the 125% global system scaling option.

    Check here
    *https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats

  • SWFLoader.unloadAndStop() doesn't

    Try this very simple Flex app:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
        <![CDATA[
            import mx.controls.SWFLoader;
            private var ytplayer:SWFLoader;
            private function startYT():void {
                ytplayer = new SWFLoader();
                ytplayer.y=50;
                this.addChild(ytplayer);
                ytplayer.load("http://www.youtube.com/v/ukcMIaCQC94");
            private function stopYT():void {
                ytplayer.unloadAndStop(true);
        ]]>
    </mx:Script>
        <mx:HBox>
            <mx:Button label="Start" click="startYT()" />
            <mx:Button label="Stop" click="stopYT()" />
        </mx:HBox>
    </mx:Application>
    Click the Start button.  A youtube player appears.  Click play on it.  Now click the Stop button in the app.  The video disappears, but the audio continues to play in the background.  How do I get it to stop completely?

    What version of flash player/browser/OS are you running?  I tried the current FP10 on Firefox 3.6 and Safari 4 on Mac OS and I get the same results in both.  I set a breakpoint in unloadAndStop and it does indeed get to that code, but it doesn't work.
    You can also specify ?version=3 in the SWFLoader URL to get the AS3 player from YouTube but it appears very messed up, and unloadAndStop doesn't work for that either.
    My temporary workaround is to use the chromeless player but I really want it to work with the normal YouTube UI controls.

  • SVG import doesn't scale "stroke-width"

    with Illustrator, when opening svg image that content some scaled objects ("transfom=scale(10)" for example) I have a problem
    filled forms are correctly scaled but the size of the border (""stroke-width"") doesn't change .
    Is this a bug ?
    SVG code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448)  -->
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
    <!ENTITY ns_svg "http://www.w3.org/2000/svg">
    <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
    ]>
    <svg  version="1.1" id="Calque_1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="10cm" height="10cm" viewBox="0 0 283.5 283.5"
    style="overflow:visible;enable-background:new 0 0 283.5 283.5;" xml:space="preserve">
    <g transform="scale(10)">
    <rect width="1cm" height="1cm" style="fill:rgb(0,0,255);stroke-width:0.1cm; stroke:rgb(0,0,0)"/>
    </g>
    </svg>

    Sorry nothing changes
    For information, this problem has been detected by Gephi users, but the real problem is a miscomprehension of SVG code by Illustrator
    https://bugs.launchpad.net/gephi/+bug/626378
    New code is
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!-- Generator: Adobe Illustrator 12.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 51448)  -->
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
    <!ENTITY ns_svg "http://www.w3.org/2000/svg">
    <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
    ]>
    <svg  version="1.1" id="Calque_1" xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" width="10cm" height="10cm" viewBox="0 0 283.5 283.5"
    style="overflow:visible;enable-background:new 0 0 283.5 283.5;" xml:space="preserve">
    <g transform="scale(10)">
    <rect width="10pt" height="10pt" style="fill:rgb(0,0,255);stroke-width:1pt; stroke:rgb(0,0,0)"/>
    </g>
    </svg>

  • Print HTML Report.vi doesn't scale properly.

    LV 8.5.1, Report Generation Toolkit, XP.  Our application uses the Print HTML Report.vi to print an HTML report.
    We found that on some installations the resulting page does not scale properly.  Instead of being one page wide,
    the printout is about 1.5 pages wide (and proportionately longer), leading to our report being truncated.
    Tried different printers, different print drivers, no difference.
    Finally we noticed that the affected computers all had Internet Explorer 6 installed.  Updating to Internet
    Explorer 7 fixed the problem.  Don't know about IE8, I expect that will work as well.
    Hopefully this will help someone else who runs across this problem.  I couldn't find any reference to
    an IE > 6 dependency in the Report Generation Toolkit readme system requirement.
    Matt

    Hi Charlie,
    The layout option is not wired to anything in the Standard, HTML, Excel and Word Report, but it is used in the Quick Print default case.  The Help document for this VI mentions that the layout option is ignored on Standard and HTML Reports but does not mention the Excel or Word Reports.
    This was discovered a little while ago in this discussion forum.  And a report has be filed to R&D by Ben.
    Justin Parker
    National Instruments
    Product Support Engineer

  • Indesign doesn't scale type boxes properly

    This has been a major bug for me in indesign for sometime and was hoping would be addressed when upgraded to cc 2014 but problem is still there. when i scale a group of objects the type boxes seem to get ever so slightly smaller which causes text to disappear or flow over to new line break i have to go into every text box and make the box slightly bigger and then it goes back to its original line break. why is this till happening?

    It's ".1 reciprocal" I'm not saying anything other than scaling at proportions that forces indesign into a reciprocal number forces it to make a decision to go larger. Are your rulers in general set to points/picas?  If it were this means your text frames would be in points/picas - allowing a greater degree in scaling.  As you can imagine, it isn't a direct switch from points to mm or inches etc. - so there's some degree of difference between each conversion. And then you're asking a text frame to scale an inaccurate amount, say 37.255% - so it's trying to scale a text frame that's in millimeters - and scale text that's in points by 37.255%, for example.
    There will always be some degree of difference a breaking point when using different measurement systems, and even with the same measurement. It's a side affect of scaling groups of text based on the program dealing with different measurements.
    It's easy to combat, get into the habit of leaving a tiny bit of room around each text frame.
    For the record - scaling things after they've been created is not a good idea, design to the size required. And if you do scale afterwards there is always some degree of fixing that is always required.

Maybe you are looking for

  • How can I associate unique information/ variables with different instances of attachMovie when creat

    I'm creating an interactive animation of an experiment, whereby the user has to detect if there is an oil well lying beneath the surface by selecting and drilling a series of coordination points on a map. I've done the first stage by setting up a bac

  • How to reatain package structure when building wid ant??

    i want to compile the src files in the same directory structure as they were in the src directory. for example i have a directory structure like this,*src.com.package1.package2.myfirstprog.java* and i want to get it in the same directory structure in

  • IPhone and WPA- Enterprise

    My school has Wifi with WPA - Enterprise? Is there any way I can get on the network with the current software loaded onto the iPhone?

  • Hiding reports that are used by dashboards

    Hi:   We are using some Webi reports for use in Live Office/Xcelsius. While we want the users to be able to consume the data from these reports in the Xcelsius dashboards (which reside in InfoView as well as on Desktops), we don't want them to be abl

  • Creating New Target Groups in Background - is this possible?

    We are currently working on CRM 4.0. We have created some custom infosets for criteria that we wish to segment our data by. However when we try and run this using the segment builder a time-out short dump occurs. Does anyone know of a way to create t