Compiled SWF compression issues

I've written some code that generates .as files with embedded image assets then compiles them all into a SWF file so I can easily automate generating asset SWFs, but after comparing the size of the SWF to the size of one generated from publishing an FLA file with the same assets it's a LOT larger. Does publishing from an FLA apply some type of compression that using mxmlc does not? Is there any way to get this outside of using FLAs because have 100s of FLA files is a really horrible option, hence why I bothered doing all of this. Any help would be greatly appreciated, thanks!

Alright I take that back. While the compression does make the compiled SWF file a lot smaller, when trying to load time image data I keep getting invalid data errors:
Error: Error #2136: The SWF file file:///app.swf/[[DYNAMIC]]/24 contains invalid data.
    at flash.display::BitmapData/ctor()
    at flash.display::BitmapData()
Anyone know what's going on?
EDIT: I figured it out. Apparently you can't use smoothing when you're using compression or it will crash. That's it. Just remove the smoothing="true" tag and it will load fine. Would've been nice if that was in the documentation somewhere...

Similar Messages

  • SWF compression issues

    I'm using Flash MX 04 Pro and am having issues with SWF
    compression when compiling.
    I have two .FLA which last week compiled to 52k and 83k.
    Today they're compiling to 102k and 172k respectively!!!
    I have not made any changes to the files, publish settings,
    or general Flash settings whatsoever?
    Any ideas why this is happening? Rather urgent as I have
    things that need to go live this afternoon.
    Thanks in advance!

    Alright I take that back. While the compression does make the compiled SWF file a lot smaller, when trying to load time image data I keep getting invalid data errors:
    Error: Error #2136: The SWF file file:///app.swf/[[DYNAMIC]]/24 contains invalid data.
        at flash.display::BitmapData/ctor()
        at flash.display::BitmapData()
    Anyone know what's going on?
    EDIT: I figured it out. Apparently you can't use smoothing when you're using compression or it will crash. That's it. Just remove the smoothing="true" tag and it will load fine. Would've been nice if that was in the documentation somewhere...

  • GZIP Compression Issue in Weblogic 8.1

    Has anyone experienced issues with gzip compression filtering in 8.1?
    After about 2 months of dev. and testing with the filter, a bug has been found
    in our portal, and I have traced it back to the filter that I downloaded from
    dev2dev code and utilities.
    It is strange. The only time I see an issue is when a user clicks the "back button"
    in the browser itself to go back to a previous page, AND then clicks a link (for
    example) in a portlet that is tied to an action in a jpf for that portlet. The
    error only happens for actions in a portlet that are local to that portlet (no
    forwarding to other portlets or anything fancy)...just pure "local internal forwards."
    If you do this, USING THE BACK BUTTON to get back to this page with the portlet,
    when you click the action, you are actually taken to the page where you were when
    you clicked the back button.
    I have re-created this is simple portals that have no content, so I know it is
    not something else I introduced.
    Any ideas? Maybe it is the filter-mapping pattern I am using??? I am currently
    mapping on *.portal, but this is the only situation that seems to break.

    For those interested, I have some updates on this subject and someone out there sent me a mail asking if I ever found anything out.
    Basically, when I encountered this issue the first time, I was working on a SP2 Portal. We were having numerous small bugs like this one with SP2 that centered around the back button or refresh button. BEA gave us a "super patch" back in July or so that when applied to our SP2 project, fixed our issue. I have sense moved onto SP3, and I did not see the compression issue (so I think SP3 must have the patches correctly setup...like I would assume it would).

  • Why are the compiled SWF colors brighter than in Flash CC while programming

    Just a quick question, when I open the SWF with FlashPlayer the colors are brighter than in Flash CC while programming, why is that?
    Left part is in Flash CC right side is the compiled SWF opened with FlashPlayer.

    Flash uses the sRGB color space. If your original art was created using a different color space then the colors will look shifted.
    This article may help: http://www.adobe.com/devnet/flash/quickstart/color_correction_as3.html

  • 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

  • Compile SWF version 14 (Air 3.1) from Flash Pro CS55 possible?

    Dear Adobe community,
    Has anyone been able to take an existing FLA file in Flash Pro CS55 and 'publish' an swf file as version 14 (Air 3.1)? I'm trying to use a native extension for iOS on GitHub, but my app has been on Flash Pro and hence have been publishing, then using ADT to compile the native extensions I need. However, to use iOS5 features (and add additional frameworks from Xcode like MessageUI), the swf file has to be version 14.
    With the latest Flash Pro CS55 update, my compiled SWF files are version 13, and when I try to publish an ipa-ad-hoc file, it tells me the "root swf file version" is 13 while the extension (I'm assuming library.swf) is in version 14. I've of course tried overlaying the Air 3.1 SDK over the appropriate directories within CS55, as I did with Air 3.0 SDK, but no go?
    thank you and with kind regards,
    Alex

    Hi user23890123,
    I need swf-version 14, because (and please correct me if I'm mistaken), Air SDK 3.1 started support for being able to include non iOS-API-calls (beyond stuff like you see here on the samples: vibrate the phone, get battery level, pop up an alert, etc.). For example, being able to include the MessageUI framework to pop open an sms or email composer view, or features new to iOS5. You can now include a platform.xml file in the .ane file where your static library is, and include them like such:
    <platform xmlns="http://ns.adobe.com/air/extension/3.1">
        <sdkVersion>5.0</sdkVersion>
        <linkerOptions>
                  <!-- to use the MessageUI framework -->
            <option>-framework MessageUI</option>
        </linkerOptions>
    </platform>
    thank you,
    Alex

  • Where can I find a complete set of compiled swfs for 2.0?

    Where can I find a complete set of compiled swfs for 2.0?
    I want to place these directly on my website.
    Thanks,
    Ken

    So basically Apple is hiding which networks allow rentals vs. purchase until you buy an ATV2,
    and then find out you can't watch "The Closer", "Men of a Certain Age", "In Plain Sight", etc., etc.
    Or until you spend a bunch of time digging through iTunes show by show...
    Sad...Guess I'm sticking with Cable for a while longer....

  • [svn] 4669: Fix for - compiled SWF varies depending on version of java pointed

    Revision: 4669
    Author: [email protected]
    Date: 2009-01-26 11:00:48 -0800 (Mon, 26 Jan 2009)
    Log Message:
    Fix for - compiled SWF varies depending on version of java pointed
    QE Notes: Some mustella tests may need to be updated, as includes will be processed as per the order specified during compilation.
    Doc Notes: None
    Bugs: SDK-18168
    Reviewed By: Paul
    tests: checkintests, mxmlcunit
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18168
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java

    Revision: 4669
    Author: [email protected]
    Date: 2009-01-26 11:00:48 -0800 (Mon, 26 Jan 2009)
    Log Message:
    Fix for - compiled SWF varies depending on version of java pointed
    QE Notes: Some mustella tests may need to be updated, as includes will be processed as per the order specified during compilation.
    Doc Notes: None
    Bugs: SDK-18168
    Reviewed By: Paul
    tests: checkintests, mxmlcunit
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18168
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcMovie.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/linker/FlexMovie.java

  • Why my compiled swf is loading too slowly?

    Hi,
    Previously we are directly accessing th site with .mxml url.
    Thta time file was loading too slowly. But afterwords, we are
    loading compiled .swf file. It is much better.
    assume, we are having two swfs
    1.compiled swf is 400KB.
    2. and one animated swf is 1.5MB.
    here for our site animated swf it self is loading much faster
    then my compiled swf. Why it is happenning like this? What we have
    to do to load our compiled .swf also to be loaded much more fastly.
    Thanks
    Satish KC.

    Load speed depends on how you have architected the
    application.
    Avoid nested containers. Do not use creationPolicy="all"
    There are articles available out there try google.
    Tracy

  • SWF Compression

    Hi,
    I was wondering if someone could help me with what I think is
    a swf compression error.
    I created an animation in Flash MX using a large Jpeg
    background and smaller gif objects. The Jpeg moves at times, as if
    a camera is panning accross a scenery while most times the gif
    objects are stationary or move off the screen. The animation is a
    total of 7 scenes. However when I convert the animation to a .swf,
    the background at times becomes blurry and smeared (like a gradient
    or horizontal lines) even though the background is stationary in
    that part of the scene and only the foreground gif objects are
    moving. Other scenes the background pans correctly in the SWF and
    everything looks fine in the original Flash MX file.
    My question is, is this an error caused by Flash MX or SWF
    compression? Is there anything I can do to correct this and has it
    happened to anyone else?
    I can post the animation on my website if anyone wants to see
    the error.

    "JstPeachy" <[email protected]> wrote in
    message
    news:fmlr27$c9r$[email protected]..
    > Hello,
    >
    > I am looking for a program to shrink my gigantic .swf
    file. Anybody know
    > of any programs?
    >
    > Thanks,
    >
    > -Peachy
    Flash .. turn on the compression option on output. I'm pretty
    sure free
    tools like FLASM will also do the compression for you.
    If that is already one, try reducing the size of your images,
    the quality of
    your sounds etc, the number of embedded fonts you use, if you
    have complex
    vector drawings, try drawing them smaller and then scale them
    bigger.

  • My compiled swf can't run on web

    My compiled swf can't be browsed on web,but it works fine on
    localhost. Which means that my compiled swf can run on localhost,
    but if I try to run the swf on web(from other machine), then it
    will hold for a long time, and I can't see anything but a grey
    screen. I wrap my swf file via Flex builder. I can't figure it out.
    Is there any one who have ever had experences like this, and know
    the solutions?
    My MXML is:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="testRmt.send()">
    <mx:HTTPService id="testRmt" url="
    http://140.122.79.118/TestFlex2_2.php"
    useProxy="false" method="POST">
    <mx:request xmlns="*">
    <id>{myDG.selectedItem.id}</id><username>{username.text}</username><email>{email.text}</e mail>
    <OP>{OP}</OP>
    </mx:request>
    </mx:HTTPService>
    <mx:Script>
    <![CDATA[
    import flash.net.LocalConnection;
    [Bindable]
    public var OP:String;
    public var ad:LocalConnection = new LocalConnection();
    ]]>
    </mx:Script>
    <mx:Button label="Send" click="OP='INS';testRmt.send()"
    x="446" y="204"/>
    <mx:HBox horizontalScrollPolicy="off" width="200"
    height="24" y="142" x="300">
    <mx:Label text="Username:"/>
    <mx:TextInput id="username"/>
    </mx:HBox>
    <mx:HBox horizontalScrollPolicy="off" width="200" x="300"
    y="174">
    <mx:Label text="Email:"/>
    <mx:TextInput id="email"/>
    </mx:HBox>
    <mx:DataGrid id="myDG" width="625" height="200" x="87.5"
    y="234" dataProvider="{testRmt.lastResult.users.user}"
    click="delBtn.enabled=true" >
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Id"
    dataField="id"/>
    <mx:DataGridColumn width="150" headerText="Name"
    dataField="name"/>
    <mx:DataGridColumn width="450" headerText="Email"
    dataField="email"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:Button enabled="true" label="Del" id="delBtn"
    click="OP='D';testRmt.send();username.text='';email.text='';"
    x="667.5" y="442"/>
    <mx:Label x="10" y="10" text="Flex Example" width="186"
    fontSize="15" color="#ffffff"/>
    </mx:Application>
    Text

    I have had the same or similar problem, in my case with
    ColdFusion projects. I have uploaded several sample projects to my
    shared hosting web server; all the projects that do not use a
    server run fine, buit I have never been able to make the CF
    projects run. I have posted about this two or three times, but
    nobody ever answered.
    Maybe our question was too stupid to deserve an answer from
    busy people. I never thought of this, but today I got an email from
    my Hosting provider. Quoting part of that message:
    “We will be performing a ColdFusion upgrade to CFMX
    7.02 on the
    server where your account(s), timo, mochica, is/are hosted.
    We have
    scheduled the upgrade to take place between 3:00 AM EDT and
    6:00 AM
    EDT on Saturday, August 5th, 2006.
    We do not anticipate more than 15 minutes of downtime once
    the
    maintenance begins .....”
    Also, I found that the projects that do run require all those
    files that are generated when FB builds the project, so I have been
    uploading the entire output folder (usually, but not always,
    ‘bin’).
    I’m hoping I won’t have any more problems after
    Saturday.
    Peace,
    Carlos

  • How to compile swf with ANT en ASC 2.0?

    He All,
    I used to compile a swf in Flash builder with this antscript below. But mxmlc in not supported anymore. Any idea how to compile the swf with ASC 2.0?
    <target name="compile.apple" depends="clean.apple">
      <echo message="Compiling swf"/>
      <mxmlc file="${app.projectfile}" output="${app.rootfile}" optimize="true" configname="airmobile" debug="false">
      <load-config filename="${app.rootdir}/resources/ant/build.config"/>
      <source-path path-element="${flex.sdkPath}/frameworks"/>
      <source-path path-element="${app.sourcedir}"/>
      <source-path path-element="${app.rootdir}/libs"/>
      <static-link-runtime-shared-libraries/>
      <compiler.library-path dir="${flex.sdkPath}/frameworks" append="true">
      <include name="libs/*" />
      </compiler.library-path>
      <arg line="-swf-version=17" />
      <arg line="-define=CONFIG::debug,false" />
      <arg line="-define=CONFIG::device,true" />
      <arg line="-define=CONFIG::local.false" />
      <compiler.library-path dir="${app.rootdir}" append="true">
      <include name="libs/*" />
      </compiler.library-path>
      </mxmlc>
      </target>

    He Peter,
    Thanks for your reply. I've made some steps, but still no perfect solution. I've managed to compile a swf with ant using only the AIR SDK.
    But, check these results
    - Compiled using Flash Builder release : 455 kb
    - Compiled with ant using mxmlc : 104 kb
    - Compiled with ant using compc : 139 kb
    Can you provide us an example, how to compile a swf using ant. For example, with an AIR mobile project.
    Thanks Peter.
    Tim.

  • Gzip compression issues from using a proxy?

    Hello I am unable to load some websites now from suspected gzip compression issues? I have been using a proxy and now my firefox browser is messed up Plz Help [email protected]
    Thanks

    It is possible to autenticate to a proxy server, but the question is what tye of authentication your proxy is carrying out . "Basic" or "digest".If it is Basic then you can use Base64 authentication scheme. You have to first set the System property variable to find proxy server (like port and IP Address)

  • Compressed .swf Display Issue

    Hey guys,
    I recently created a simple Flash animation, and uploaded it HERE (deviantART stash). I hoped to upload an LZMA compressed version to reduce the file size and increase its loading speed.
    Problem: although the animation shows when you click the "download" button, it doesn't show on the main page.
    These are my publish settings:
    The UNCOMPRESSED animation shows up fine (uploaded HERE), but the file size is way too big and it loads way too slowly for me to work with.
    I realised that in the page source of the artwork's page, the compressed file shows the following code:
                  <iframe class="flashtime" src="http://sandbox.deviantart.com?fileheight=0&filewidth=0&filename=fs70%3Af%2F2014%2F218%2F6% 2F8%2Ffinalyeah_fixed_by_eresince-d7tyi43.swf"                   height="0"
                       width="0"
                        frameborder="0" scrolling="no" noresize="noresize"></iframe>
    The height and width for the artwork displayed on the page is 0px x 0px, though its original dimension is 700px x 700px. This does NOT apply for the uncompressed file, which displays fine. I'm not sure if this says anything, just hope this helps a little.
    I'm not sure if I'm doing anything wrong (publish settings? actionscript coding?) Any sort of help that could help me solve this problem is much needed because I've been stumped for more than a week now, it's very frustrating.
    * Please note I cannot edit the website's page because this is not my site! Just an online art community.
    Thank you so much for your time!

    Hey kglad, I published the HTML code of the Flash file and pulled it into Chrome - it works. Does this mean there's some sort of clash between my file and deviantART's coding? Since dA isn't helping, I would really like to see what I can do to make it work or all my work on this flash is wasted.

  • Creating "compiled" swf?

    Aloha!
    It's been many, many moons since I've worked with Flash ( Flash 5, Circa 2001 eek! ) and I'm trying to get to grips with the new version. Apologies for anything that might seem "obvious" to full-time flash developers, I’ve never used the Creative Cloud version before and a lot has changed!
    Background:
    I have a PHP-based system that produces adverts for work - generating a custom XML file for the FLA/SWF to use, putting the images into the advert and creating the resource folders.
    This runs from a CSV, so that multiple product adverts can be generated quickly and easily without having to go through and modify each advert manually in Flash (previously a massively labour-intensive task for a team of people). The output of all the advert folder generation and file creation etc. at present is then zipped up and provided to the team to download onto their computer.
    Prelude to issue:
    In my younger days I would have passed output through a command-line processor on my linux servers to compile into one instance - The advert platform does not allow resource files to be uploaded with it, only a single SWF.  At the moment, the SWF requires the resource files in the images and xml folders
    What I’ve tried:
    I’ve built the PHP system that generates all the folders, resource files and copies in the template swf. This then displays fine in the browser.
    Folder structure:
    AdvertFolder
    |__ advert.swf
    |__images
    |    |__ image1.png
    |    |__ image2.png
    |__xml
         |_ banner.xml
    I’ve had a look online at some of the CC resources and they suggest that a lot of things now happen with the flash javascript interface - from what I’ve seen and some of the example code it appears that this deals a lot with generating content inside the flash instance based on actions etc. That’s not really what I’m after at this point.
    My question:
    Is there a command-line utility / series of switches to pull the SWF into a "compiled version" or does the latest version of flash require these resource files?
    Again, I’ve got no background in the latest version of the system and when I used to do manipulation like this things were vastly different!
    If it means that I have to run the scripting on the folders to generate the files once the team have downloaded it from the server that’s fine - I’m just not sure of how to pull this together at the moment.
    I looked at the possibility of looping through all the folders generated to "compile" the SWF - I've not seen anything to give a definitive answer as to if this is possilbe as yet.
    Thanks for your help and advice…

    When I read posts like this where you have issues getting a unique solution to work, I always want to go back to the solution. 
    You have to create seperate swfs because you're using unique images?
    Did you include Air in your options?  Servers are the last place you should use the cpu.  Air gives you software access to the computer.  You can download files from anywhere, use files from the computer, process them using the computer's cpu (no cost, no time concerns), save the generated files to the computer and/or upload them to wherever.  Air can inspect the files created too.
    Adobe Edge tools are for work creating html, css rwd, html5 animations.

Maybe you are looking for