Embedding swf into Flex Desktop Application size/scale problem.

Hello,
I am embedding an swf animation into my desktop Flex desktop application. I am using SDK 4.6.0. I use the SWFLoader to embed the animation:
<s:SWFLoader source="img/mch_anim_1.swf"/>
When I run the application, the animation is loaded and is working, but when I try to maximize the window there is a size/scale bug that happens. The screen  stays half-side maximized (maximized to the top, bottom and stays until the middle of the screen by side).
I've published the SWF for Flash Player 8 and Actionscript 2 just to test and there was no problem with the size/scale, but I need to use Actionscript 3.
Any suggestions?
Thanks in advance,
Stefan

I found the problem!
There was a line of code that was auto-generated from using a template out of Flash CS6. The line of code that caused it is:
stage.scaleMode = StageScaleMode.SHOW_ALL;
After deleting it, everything is now working properly.
Greetings!

Similar Messages

  • Error in compiling swf for Flex 2 application

    Hello experts!
    After applying SPS 7 for EHP1 7.0 I am receiving the following error when deploying my model.
    Error in compiling swf for Flex 2 application. The log is appended below.
    I realized the error only occurs when I use value help.
    Can anybody advise please.
    Thanks,
    Ibrahim
    Error in compiling Flex application: /usr/sap/QJB/JC01/j2ee/cluster/server0/GUIMachine_Business_Packages/[xxx]MyModels.QM.Tab_test/FLEX_COMPILATION_FOLDER/AAD3KX_P.mxml(17): col: 145 Error: Element type "vc:LabeledDropDown" must be followed by either attribute specifications, ">" or "/>".
                      <vc:LabeledDropDown comboHeight="16" width="200" labelField="text" selectedIndex="{VC.getEnumIndex(AXCWV1, AAA3L21.Current.SELOP_TYPE || "BT", 'value')}" valueProperty="SELOP_TYPE" valueObject="{(AAA3L21.Current)}" id="ACA3L21_DropDown1" dataProvider="" comboComponent_y="40" prompt="" label="{(Languser1.BhlfcdeBHckjkGcInkHE)}" comboY="40" visible="{DE.NOT(false)}" creationComplete="AXCWV1.addEventListener(InfosetEvent.DATA_REFILLED, selectDefaultACA3L21_DropDown1)" component_x="88" x="8"/>
    Edited by: Ibrahim Ibrahim on Apr 15, 2011 1:19 PM

    We have solved this by applying note: 1510453 - Certain default values in list-based controls causes error

  • URL request syntax to redirect to a Flex Desktop application that runs in ADOBE AIR

    Hi,
    I'm developing a Flex Project that runs on ADOBE AIR. This
    project contains two Flex desktop applications that runs in ADOBE
    AIR.Now i need to redirect to one Flex desktop application from
    another Flex desktop application.Can anyone please tell me how the
    URL should look like in the new UrlRequest( ). Thanks in advance
    for any help....................

    After two days of research and getting localConnection to work, just to realize the application has to be running in order to pass variables to it with localConnection.  I realized that I set <allowBroswerInvocation> to true in my air application, but forgot to uncomment it in the descriptor file.  Extremely upsetting..... I can now get the airSWF.getApplicationVersion() to return the correct version number, but am still having problems with the airSWF.launchApplication() since it hard to debug, and just doesnt do anything.  Below is the code in the Install.log after running the launchApplication() function  I am still working on it and will post my progress.  Any help would be greatly appreciated, thank you.
    [2011-04-05:12:20:21] Application Installer begin with version 2.6.0.19120 on Windows 7 x86
    [2011-04-05:12:20:21] Commandline is: -playerVersion=10,1,82,76 -sandboxType=remote -securityDomain=airdownload.adobe.com -https=false -fromUserEvent=true -- -launch com.msp.two -- launchFromBrowser
    [2011-04-05:12:20:21] Installed runtime (2.6.0.19120) located at c:\Program Files (x86)\Common Files\Adobe AIR
    [2011-04-05:12:20:26] Application Installer end with exit code 0

  • Embedd SWF into Flex

    Hi,
    I am trying to load a coolaris Gallery into a Flex Application (it's a SWF).
    Now I have to fit its dimensions into my container.
    My first approach was to simply set the SWFLoaders dimensions, but that only scales the content (it is being zoomed)
    I want that the spaces are getting smaller and the appereance is not zoomed (is kept), like its done if you embedd it into html.
    The properties maintainAspectRation or scaleContent did not work either how expected.
    Any idea for that ?
    Second Question is how could I make the fullscreen modus work from the embeded swf ?
    When I now enter Full-screen Modus, my main application is going top full screen and not the embedded swf.
    Idea ?
    Cheers
    Marc

    I would not expect that to work.  The Flash 8 app would set the API level
    for the flex 4 SWF and flex 4 needs Flash 10.

  • Embedding swf into HTML+JS AIR app

    Hi
    I'm trying to embed swf into HTML+JS AIR app with no luck.
    First, I created flash library with this class in default package.
    package
         import mx.controls.Alert;
         public class Utilities
              public function Utilities()
                             //asdfasdf              
                   Alert.show("asdasd","");
    Then I compiled the project with Flash Builder and got library.swc as result. Then I extracted swf file.
    After this is added required code into my html:
    <html>
    <head>
        <script type="text/javascript" src="AIRAliases.js"></script>
        <script type="text/javascript" src="AIRIntrospector.js"></script>
        <script type="text/javascript" src="jquery-1.6.2.js"></script>
        <script src="library.swf" type="application/x-shockwave-flash"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                alert('loaded');
                air.Introspector.logError("aaa");
                var v = new runtime.Utilities();
        </script>
    </head>
    <body>
    </body>
    </html>
    Then after I run application, I get error that result of expression is not constructor, function etc.
    Could you help me please?  Thanks in advance.
    Here is sample code:
    http://depositfiles.com/files/jztpnlb3a

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • Embedding Swf into to forum signature

    Hi, i have been trying to find this everywhere but no good.
    How can i embed swf into forum Posts and signatures ? Its my site s
    o i change settings etc.....is there some mod that should be
    installed on the forum ? Any help at all would be really
    appreciated =)
    J

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • White box of death! Trouble embedding swf into Dreamweaver!

    So close to being finished! I notice this question on alot of other forums but its never resolved!
    here is the site now:
    http://http://www.andrewweeksphotogr...m/index_8.html
    you will notice a slight flash of a white box before the preloader starts, i'm trying everything to make it go away! this box seems to be the same size as my embedded swf. the site and preloader are all in one swf. all i need to do is make that white box the same color as the background so it is unnoticeable.
    here is the code from dreamweaver (you'll notice im sticking in color values wherever i can!)
    help a gal out! many thanks!
    -nicole

    oops! code / site link here!
    http://www.andrewweeksphotography.com/index_8.html
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
        background-color: #FBFCEB;
    -->
    </style>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    </head>
    <body>
    <table width="1150" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FBFCEB" bgcolor="#FBFCEB">
      <tr>
        <td bordercolor="#FBFCEB" bgcolor="#FBFCEB"><script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1150','height','768','src','Andrew Weeks Photography','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Andrew Weeks Photography' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1150" height="768">
          <param name="movie" value="Andrew Weeks Photography.swf" />
          <param name="quality" value="high" />
          <param name="bgcolor" value="#FBFCEB" />
          <embed src="Andrew Weeks Photography.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1150" height="768" bgcolor="#FBFCEB"></embed>
        </object></noscript></td>
      </tr>
    </table>
    </body>
    </html>

  • How can I reduce my Flex Chat Application Size?

    Hi all,
    I have developed a Chat application using Flex and XIFF API.
    The XIFF API size is around 500 KB. I am not using all the Packages
    that are coming with that XIFF. I need the basic chat functionality
    only . Now my chat application size is around 400KB(in release
    mode). Is there any way that I can reduce the Chat application size
    , so that it will loads to the client machine quickly.
    Thanks in Advance
    Kamal

    On Mac, open your folio in Desktop Content Viewer, then check this folder
    ~/Library/Application Support/com.adobe.dmp.contentviewer/Local Store/FolioCache
    You will see your folio and all stacks and all elements.
    As Bob mentioned, prepare your folio as 1024x768, video i would suggest even little bit smaller (cca 800x480, 750 kbit/s). And check your image sequences, if they are not too big in term of size (images without text do for 1024x768 - 72 dpi, images with text on 108 dpi - 1536x1152 px).
    Audio - AAC on 96kbit is good enough.

  • "Severe database error" makes it impossible to sign into Story desktop application. How can I fix?

    When I open the Adobe Story desktop application and sign in, I immediately receive the following message:
    "ERROR:
    Sorry, your Story Free subscription does not allow access to the application in online mode. You can work in the offline mode to retrieve your files."
    I want to work in offline mode, so I click "Work Offline."
    Immediately after I click this, I got another error message:
    "OFFLINE DATABASE ERROR - ADOBE STORY
    Adobe Story has encountered a severe database error and will not be able to retrieve some of your data from your last session. You can recover rest [sic] of your data by either restoring your account to the last backup date or by synchronizing it with your online account."
    I'm then given two options:
    Restore to the last backup date [GRAYED OUT, because I never backed up]
    Sync with my online account( Sign in required )
    I choose the only option I can, then click "Continue."
    This immediately cycles me back to the opening screen, "Your next great story starts here," with the options "Learn more" or "Sign in."
    Every time I click "Sign in," Adobe Story repeats all the steps listed above, making it impossible for me to actually use the program, UNLESS of course I upgrade to Adobe Story Plus, which I don't intend to do.
    Is there any way my account can be fixed to allow me to use the Story desktop application without all these error messages? (I've tried uninstalling and reinstalling already.)
    I just started using Story, so I have no earlier projects to retrieve. Story can wipe my account clean if necessary, it doesn't matter.
    However, I've run into so many problems just trying to *start* using Story that I'm really worried about this program's reliability, especially for the middle of a production. Hopefully after further testing I won't run into so many problems.

    Hi,
    try this
    open item Ifile

  • Re: embedding SWF into HTML

    I don't seem to be able to add to the discussion! Hans wanted the url of the file that works: http://claudinegrandjean.com/Me.- html this is the one that doesn't please forget the placement of the SWF I could fix it if it worked; Cheers, Claudine

    No. I mean that the Flex framework makes certain assumptions about the environment it is running in -- like having a stage to work with. The Alert function, for example, works by creating a sprite and adding it to the Flash display list. Since your embedded SWF is not on a stage, there's no way for it to work.
    You can can possibly use certain non-visual parts of the framework, such as the rpc package, but I can't guarantee it.

  • How to make a Loadvars sendAndLoad request from embedded swf in flex

    I've developed a simple flex app with embedded swf. Basically swf use Loadvars to get data from particular database table. Ok, when I tested the flex app on localhost it is works fine and embedded swf make its sendAndLoad calls correctly.
    But! When it is located on the web server swf not work correctly. I meant there is not returned values by sendAndLoad method.
    Well, to make some points: questionContentLoadVars.img1 holds(return) the string from php call. This "img1" is an empty returned string only in Flex app placed in the web server otherwise it returns correct value from php call?
    When gameplay22.swf is standallone works!
    When gameplay22.swf is in HTML page works!
    When gameplay22.swf is embedded in FLex and executed in LOCALHOST works!
    But in the web server this embedded gameplay22.swf doesn`t works!
    What is the problem with it?
    //* here is flash(swf) part of gameplay22.swf file which is embedded in the Flex by SWFLOader(gameplay22.swf)
        questionContentLoadVars = new LoadVars();
        questionContentLoadVars.onLoad = function(success){
        if (success){
        slidingSvityk_mc.descripTA_mc.description_ta.text = questionContentLoadVars.theContent;
        else 
        slidingSvityk_mc.description_ta.text = "err!";
        function loadQuestionData(sectionID){
        var tablename ='questionsgeo';  // database tablename
        //sending variables to the PHP script
        questionContentLoadVars.row = sectionID;
        questionContentLoadVars.tablename = tablename;
        questionContentLoadVars.id_ = "";
        questionContentLoadVars.img1 = "";
        questionContentLoadVars.sendAndLoad("getQuestionRec.php",questionContentLoadVars,"_POST") ;
        function showLoadedGalleryImages():Void{
        infphp.text = questionContentLoadVars.img1;
        var img1Bulk:MovieClip = new MovieClip();
        img1Bulk = imgGalleryContainer_mc.img1Bulck_mc.createEmptyMovieClip(img1Bulk, _root.getNextHighestDepth());
        img1Bulk._x = 0;
        img1Bulk._y = 0;
        image_mcl.loadClip(questionContentLoadVars.img1, img1Bulk);
        //* And here is Flex part of embedded SWFLOader(gameplay22.swf) component
        <s:SWFLoader includeIn="user" width="1024" height="768" horizontalCenter="0" source="gameplay22.swf" verticalCenter="0"/>

    Thanks kglag, for trying to help,
    As i posted in another forum the problem was in the free flex example which i used to add another state and by using SWFLoader to  embed my swf file.
    Now i was created my own flex app and add SWFLoader to embed my swf and voila - it works!
    There is no cross-domain loads  the loaded content is in the same domain.
    So, again thanks!

  • Login Error from Users machine into BO Desktop Applications With LDAP user

    Hi All,
    I am getting a strange error and got stucked.I have searched in the forums and tried every possible thing but the problem remains same.
    I am not able to login into any Client application using LDAP account.
    The setup is:
    Machine 1: Webserver
    Machine 2: CMS and other servers
    Machine 3: Clustered CMS server
    LDAP is implemented and SSL is enabled between Machine 2 and LDAP server.
    Now when i am into Machine2 and try to login into Client application using LDAP it works for me also for Web Application(CMC, Infoview)
    When i am into user machine I am able to login into Client Application (Designer, Desktop Intelligence etc) using enterprise account, but not with LDAP account. However i am able to login to web Application using LDAP account from users machine.
    All the ports are open and can connect to CMS machine and database repository connectivity is also OK.
    One interesting thing i would like to share that if i am login into Infoview using LDAP account and If i go for editing a report it opens Desktop Intelligence for me (LDAP user) and there is a entry in System name when i login into Deski.That entry in system name is CMS Machine name,Port number, full domain, (J2EE Portal) written in last.
    Using this entry in System I can Login using LDAP account but first should do the process (Login to Infoview, Edit The Report) for every user machine.
    Please help me out where i am getting wrong.
    The error with Client application and LDAP user is USR0013. Can not Access the repository.

    My guess would be that client apps don't have access to the SSL directory defined in the LDAP config but the web/app does. When you edit a report it launches deski in 3-tier mode still using the web/app so this isn't surprising behavior. There are SAP notes on this in SMP key words LDAP SSL deski should return  the result. The link to SMP is in the forum sticky at the top of the administration forum.
    Regards,
    Tim

  • Audio driver is cashing the flex desktop application

    We have a desktop application which is done in flex 4 which is using the audio video capablilites.
    In that application we have pretesting module like skype audio video testing. Some audio drivers are crashing the applicatiion (realtek HD driver), this issue is not getting in the flex builder 4 only in the exe the issue is showing. and this issue is not happening frequently
    Please help us
    Thank in Advance
    Vijayakumar

    I dont think i really understand what you are trying to achieve.

  • Embedding SWF into Powerpoint 2007....

    I use this method to place a SWF in Powerpoint 2007. (see below).
    My question is... how do I make the path relative and not absolute? So whatever path/destination I put in the "Movie" property is absolute and if and when I sent this PPTX file to someone (like in a folder) the SWF no longer plays. I wanted to make a path that is relative... so instead of putting "C:\Use\Profile\Desktop\Flash.swf" I wanted to know if I could do something like "Flash.swf" and then it'll play the SWF since it'd be in the root (or maybe a subfolder).
    Place SWF in Powerpoint 2007:
    1.  Click Office Button.
    2.  Click “Powerpoint Options”
    3.  Under the “Popluar” tab check “Show Developer tab in the Ribbon”. Click OK
    4.  Click the “Developer” tab.
    5.  Click the “More Controls” button (wrench/hammer icon)
    6.  Choose “Shockwave Flash Object”. Click OK.
    7.  Cursor turns to crosshairs. Drag box to house the object.
    8.  In the “Properties” pop-up, find “Movie”.
    9.  Under “Movie”. Paste in the path of the file. (i.e. C:\Users\Profile\Desktop\flashAnimation.swf
    a.  Try to put the SWF in the same root location as the PPTX.

    You can insert a .swf file into PowerPoint using the method you described with both an absolute and a relative path. But that will just insert it and play it as a linked file.
    What you seem to want to do is to embed the file. That's tricker. The .pptx file extension apparently has a known and unfixed bug that won't let you embed a .swf. There's nothing out there, that I could find that may be of help. But you could try these two steps:
    In the properties panel for the insered swf, find the EmbedMovie property and set it to "True".
    Then Save As... your Presentation to the older file format (.ppt not .pptx). This may show up in the Save menu as "PowerPoint 97-2003 Presentation".
    This may work, you should take note that the file size should increase significantly. If the Presentation's file size doesn't increase, then you know it hasn't been embedded and the animation will not play if you email the file (because it's not included).

  • Embedded swf not displaying in full size

    So i have a swf file. When i open it with any browser or with the standalone flash player it shows up fine. But when i embed it in an HTML file with the following code :-
    <html>
    <head>
    </head>
    <body>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/
    cabs/flash/swflash.cab#version=6,0,40,0"
    width="800" height="600" id="mymoviename">
    <param name="movie" value="Example.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="Example.swf" quality="high" bgcolor="#ffffff width="800" height="600" name="mymoviename" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
    </embed>
    </object>
    </body>
    </html>
    and open it in Firefox or Chrome, it all scales down to a very small size like 100x80. This does not happen in IE though and it plays at original size. The stage dimensions in the .fla file are like 550x400. Any help.

    Check out this thread:
    http://discussions.apple.com/click.jspa?searchID=4541194&messageID=5729015

Maybe you are looking for

  • Alv Grid Sub Total

    Hi All        I am have done an object in alv grid where it is working fine but what i want i am giving a sample please do let tell me how to do OUTPUT DATE       TIME-ENTRY  ACM-NO   CHARG    SHIFT   MACHINE-SPEED STANDARD-D    ACTUALL-DIPS   DOWNTI

  • IWeb site loses functionality (Slide Show and Click to Enlarge)

    I have three iWeb sites, to which I have added Slide Show and Click to Enlarge features on Photo pages. They are all published via web.mac.com. Two of them lost these abilities after about a week, although the cursor still changes from an arrow to a

  • X errors: Freezes requiring reboot, or fails to start

    Hello, I just recently ran the update that switched everything over to /usr/lib, but I'm not sure if that's the root of this problem.  I've seen other people have had a similar issue, but the posts I found dated back to 2009... anyways, I have an ATI

  • Httprequest.getSession(false) creating a NEW Session

    I am working on a web application which uses STRUTS. All the client requests are directed to loginaction class. Any resource in the application, is accessed thru the action class. Overview: In the action class, i am checking if there is any session a

  • Updated By field value during workflows.

    Hi Experts, The updated by field displays the value as [system] when i update a field that triggers a workflow. I read in the documentation and it says if the Workflow Owner is the [launcher] then updated by shall always show as [system]. This works