Reducing Flex filesize

So I'm trying to build an animation with text. I've followed the examples and have been able to build it but the filesize as compared with the same animation built with Flash is enormous. I'd like to know if there are ways to actually decrease the filesize to get it down to roughly the same size.
I'm trying to figure out how I can leave unused components out and etc. Is there anyway to make each frame of the animation a separate flash file and then have it load one by one when required? And after loading, will these files be cached? From an engineering perspective, Flex is exactly what we want because we can edit the text and etc and have the animations automatically build by themselves. Unfortunately, the filesize is the biggest problem and we might have to ultimately go back to Scriptaculous or something of that nature.
I'm just wondering if anyone has any thoughts or opinions on this matter.
Thanks!!

You should take a look at two things:
1. When compiling Flex project for the final build, don't use neither Run, nor Debug buttons (those green ones at the top), but you should use "Export Release Build" button, that's placed next to them.
2. Right click on the project name -> properties -> Flex build path -> Library path. There's a combo box that should be saying "Meged into code" by default. Change it into "Runtime Shared Library (RSL)".
Check out your .swf file now - the one that has been put into the bin-release folder, not the bin-debug folder. It should be much smaller, althoug it's still not the same as you can do with pure Flash.
You should also be very carefull when using ComboBox or HTTPService objects. They add almost 100 KB to the project - each.

Similar Messages

  • Reduce Flex application initial loading time

    Comparing to HTML, Flex's initial load time is very long. How
    to reduce the initial loading time to the level that is
    comparable to HTML's loading time for the page content? Any
    best practice or rules to follow?

    Ok, OK! What's the specs?
    How long is the load time? Please don't say "very long".
    Let's see the spec. Oh, and can you give me a load time for the
    mythologocal HTML page in question, just so I can compare?
    I gotta tell ya, I sometimes take a nap when I'm loading half
    the ASP pages I stumble across nowadays.
    Here's a page from the Los Angeles times--html--- coming in @
    6-7 seconds.
    http://latimesblogs.latimes.com/lanow/2009/02/los-angeles-pay.html
    Another example: from CNN.com, coming in at about 10-11
    seconds. Unbelievable.
    http://www.cnn.com/video/#/video/showbiz/2009/02/03/wynter.simpson.scientology.cnn
    I've got a 350Kb Flex app using RSLs which loads in about 5
    seconds. I'm kicking @ss compared to a lot of professional web
    sites out there. Think that's too slow? Compared to what???

  • Reducing filesize with Acrobat Pro

    Hey!
    I'm currently trying to reduce the filesize of a scanned PDF in Acrobat 9 Pro and I've tried the Reduce File Size as well as the Optimize Scanned PDF options from the Document menu. The original document is about 505kb, and I need it as small as possible (100-200kb) without losing to much quality (The 1-page document is handwritten in some places).
    I need to retain compatibility with older Acrobat versions, which in return does not decrease the file size enough (around 350-400kb) with the first option. Using Optimize Scanned PDF reduces the file size properly, but for some reason the lower 1/4 of the document is replaced with a part from higher up on the page. Very strange :-) I have fiddled with the different setting in the Dialog, does anyone know what this problem might come from and how to solve it?
    Thankful for any suggestions!

    Go here:  http://ProDesignTools.com/adobe-acrobat-x-10-pro-reader-suite-direct-download-links-ddl.ht ml
    Note: Make sure you are logged into Adobe.com with your Adobe ID.

  • Flex vs ActionScript

    Hi all,
    Perhaps I am confused but here's my situation: I'm trying to build a Flash video player for compatibility with IE. I built a simple on in Flex using the Spark components but compiled, it comes to 41k without static linking and 300k+ with static linking.
    I have seen some implementations in ActionScript alone and their implementations are 20k-ish flat.
    I generated the report from the compile in Flex and it includes a lot of libraries. My questions are:
    1. Can anyone explain why these libraries are need and if I can remove them to reduce my filesize?
    2. Without static linking and the 41k file size, if a user hits my site for the first time, does it only download 41k or does it download the full 300k? Also, where does it download the libraries that it needs? from Adobe?
    3. Is there anyway that I can build a Flex application with pure ActionScript? Or how would I go about building an ActionScript video player and compile it using Flex?
    Thanks!

    Frameworks carry a price.  The ability to just have scrollbars show up by
    setting a property is weight the every application carries.  If you use the
    Microsoft Foundation Classes, an app for HelloWorld is not 2k as if you
    coded it by hand in C.
    Therefore:
    1) you can hand code stuff and not use flex
    2) 41K if they already have the RSLs which most folks should
    3) hand coding.

  • Flex optimization

    Hey there,
    I was wondering if there are any techniques to reduce the filesize of my Flex application? With dynamic linking, it's 41k. With static linking, it's about 300k. What's all that extra heavyweight that brings it up to 300k? And by my understanding, with dynamic linking, if the user doesn't have the required libs, they will auto-download themselves right? I'm curious about whether or not I can make my app be 41k flat and bundled with everything it needs?
    Thanks

    You can run a link-report to see what is in the other 259K.  It will be
    mostly infrastructure.  Flex is a toolbox of feature-rich components and
    infrastructure.  It is the same reason that a Swiss Army knife doesn't lie
    flat.
    For example, the List control doesn't just handle a list of items, it also
    has code for drag-drop and tooltips and custom cursors.
    If you use dynamic linking you are betting that everyone already has the
    Swiss Army knife and that you only need ship the instructions on how to use
    it.  If they don't have the framework already, it will auto-download it.  I
    believe it is a pretty safe bet that folks already have the Flex framework
    these days.
    The only way to get to 41k all-inclusive is to write most of what you are
    using from the framework yourself so you only have code for the features you
    are using.  That will probably take much longer than just setting properties
    on the framework components.

  • How to reduce file size in flash gallery and add description

    How can i reduce physical filesize of my photo's within the flash web gallery. When i generate the flash gallery it takes the original filesizes to publisch, some jpg files are verry large, not mentioning my raw files.
    How can i reduce the filesize? lets say 600x400 at 96 dpi in stead of 6144x4113 at 300 dpi.
    Or do i first have to reduce the filesize in a automated script within photoshop?
    Also i want to add the description into the flash document.
    How can this be done?
    Help is much appreciated...

    Crizzz wrote:
    How can i reduce the filesize? lets say 600x400 at 96 dpi in stead of 6144x4113 at 300 dpi.
    Or do i first have to reduce the filesize in a automated script within photoshop?
    Use the Image Processor script.
    In Bridge it is: Tools > Photoshop > Image Processor ...
    The interface is self-explanatory.
    Where do you want the description and what do you want?

  • Reduce file size of image a user loads into image field in form

    Hello,
    I'm a Mediadesigner from Germany and I started to work with Lifcycle Designer about a year ago.
    I already made some smaller forms with different fields.
    Now I have a special form with empty image fields, that allow the user to put in his images.
    For the form goes out to so many different people, some of them just take the images as they are, load them into the form and so the filesize of the pdf grows. For your information: the filled out pdf will be sent back to us by e-mail.
    So here is my question: is it possible to reduce the filesize of that images when it is loaded into the fild or when the filled in form is saved.
    For example that I can say: "Take all images and make them 72dpi and max. height 500px"?
    Thanks for your help in advance!
    Carola

    Hi,
    there is now way to reduce the real file size or dimension of an imported image.
    But you can checkt the file size and show a warning to the users to use a smaller file.
    Here's a sample which describes how to do so:
    http://blogs.adobe.com/formfeed/2011/09/validate-image-size.html

  • Batch shrinking of pdf filesize for a lot of files

    I have several million pdf files, each about 1MB in size, and need to compress them to save disk space and shorten the download time when viewed through the web.
    I've tried many different third party products to compress/shrink/resize them in a batch job without changing the looks (just lowering the visible quality), but most products only reduce the filesize about 15-25% and the few that actually could compress 70-90% took a "long" time for each file (even just a few seconds for each file makes a process time of approximately a year in total running on a normal PC).
    Removing all the embedded fonts changes the size from 1MB to about 60kB, but I need the compressed files to look similar to the original files (a certain degree of visual quality degradation is accetable though).
    When studying the Adobe SDK it seems like there are methods that could be of use to me, but that they are only accessible through adobe plugin functionality and not externally available using the API.
    After searching both these forums and on google I've realized the issue with compression and font embedding isn't a trivial problem, and therefore need some help understanding all this. Any help, code snippets or ideas is greatly appreciated.

    There is a script called PDF Processor you can try.
    The last one listed is the one you want (most up to date)
    http://ps-scripts.com/bb/viewtopic.php?f=10&t=1882&sid=4756172e6aed44b1195bbee6ce4b9367
    Put the script in your photoshop>presets>scripts folder and the script should then
    be under File>Scripts>Pdf Processor.
    MTSTUNER

  • Reducing jar size

    Hi are there any other ways to reduce the filesize of a jar file? currently my jar file is nearly 900kb! half of the file size comes from my java class files. i have about 15 java class files and they all total up to nearly 500kb alone without the images. how can i reduce the size of these java class files?
    One more note to add, when i select all the files from my src directory under windows explorer, i then right click on properties and to my amazement, the total size off all the files are 708kb! i thought a jar file compresses the source code and images? seems like its making src files bigger

    Yeah I also faced this, Thumbs.db is created by Windows when you set the folder view to Thumbnails. The file is never shown in Windows folder listing even when "Show hidden files and folders" is selected.
    If you manually change the size of the jar using WinZip or any other utility, don't forget to edit the jad produced by NetBeans to correct the jar size, or you'll have new problens.
    Hey, I just realized that at least one of my applications offered for free download on GetJar probably still has a Thumbs.db in the jar.. ouch!
    db

  • Ffmpeg screen recording filesize

    Pardon me for opening several questions about ffmpeg, but I don't want to mix several questions into one post as it may get really hard to keep track of the answers.
    I have noticed that recording my screen with the following command:
    ffmpeg -f alsa -i hw:0 -f x11grab -s wxga -r 25 -i :0.0 -qscale 31 /tmp/out.mpg
    which I assume is the worst quality I can get, I still record at about 1MB/s which is kind of large. Can I further reduce this filesize, and if so, how do I do this?
    Thanks a lot!

    A common practice is to use a fast, and often lossless, encoder to initially capture your screen and then re-encode this to something more manageable. The two-step method allows you to take advantage of a fast encoder so your screencast looks smooth, and also achieve an output that isn't morbidly obese in file size.
    FFcast is a good screencast tool. Also see HOWTO: Proper Screencasting on Linux.

  • Reduce High Water Mark

    Oracle 9.2.0.1
    Windows 2000 Prof
    I have truncated all perfstat tables (tablepspace file: from 7gb to less that 200mb), but then cannot reduce the size of the file afterwards.
    The error syasy that cannot shrink lower than actual size. I can see that in the tablespace only about 200 mb is occupied. Then why is it giving error?
    Is there someway to bring dowm HWM manually?

    Even if you remove data from the tables, it may happen that the data in the file is spread in such a way that you won't be able to reduce the file size. E.g. if the filesize is 1 GB and if that file containts tables having just 10 MB of data, but one block of this data is at say block_id number 50000 then you won't be table to reduce the file size below 390 MB (50000*8192/1024/1024 - assuming that the block size is 8192)
    You need to check what is the last used block in the file. You should be able to reduce the filesize to the last used block
    select file_id, max(block_id)
    from dba_extents
    where file_id = <file id>
    select ((block_id + blocks) * <tablespace_block_size>) / 1024 / 1024 "MB"
    from dba_extents
    where file_id = <file id>
    and block_id = <max block id from above query>
    If the output of above query is say 500 MB then you should be able to reduce the filesize upto 500 MB.
    The other way would be to create a tablespace, move all the objects of original tablespace to another tablespace, resize the original tablespace and move all the objects back to it.
    Hope this helps,
    Ashish

  • File size of corrected jpegs expands to half the size of the original

    Using a Canon 1Dx, I have an option of utilizing both slots and assigning different file types to each.  In one slot I shoot RAW, and on the 2nd slot I shoot a JPG backup.  Typically though I'll do all my work on the RAW file in Lightroom 5.  The unimported JPG shot on the second slot expands to approx. 51MB.  But the CR2 file, imported to Lightroom 5 and then exported as a corrected JPG, only expands to 28MB.  Am I missing something on import/export that would reduce the filesize of the corrected JPG?  I cannot find a setting that is toggled that augments import/export size.  Is this a bits per channel issue?   Similarly, I have the same issue with Bridge.  When converting a CR2 file to JPG it expands to the same 28MB filesize.  My client wants his JPG to expand closer to that 50MB number.

    dean5432 wrote:
    When the JPG file is opened, it shows as 51MB.  When the CR2 file is opened it's 28MB.  I was under the mistaken impression that the files would produce equally sized JPGs, and that somehow in the output from Lightroom it was constraining the size of the finished image.
    When you say "opened" what  'MB' reading are you reffering to? Lightroom can show the image file's Resolution (5184 x 3456), File Size (MB), and Megapixels. What does LR show for these three reading, in particular you should be interested in the image 'Resolution' value.
    When viewed in PS your Canon 1Dx raw image files should show a 'Document Size' of:
    5184 x 3456 x 3 (RGB) x 2 (16 bit data) = 107,495,424 Bytes ÷ 1,048,576 (# of Bytes in MB) = 102,515,625 Bytes = 102.5 MB
    Your full-size Camera JPEG images should be exactly 1/2 since they are 8bit images = 51.3 MB
    I can confirm these numbers with my Canon 600D, which also uses a 5184 x 3456 resolution sensor.
    You may have your camera set to shoot M-Raw (3888 x 2592) or S-Raw (2592 x 1728) with full-size JPEG (5184 x 3456).

  • How to diagnose flickering exported JS animations from Flash CC?

    Quick stats on my system:
    Macbook Pro Retina 2012 running OSX 10.9.3
    Flash CC 13.1.0.226
    I'm not experiencing an error so much as a lack of understanding about how to diagnose Flash CC JS export issues. Here's the backstory:
    In 2012, my company started working with an contract sprite artist. I was using the CS5.5 Creative Suite, and we were exporting normal png sequences from Flash for use in the game. After about 8 months, my cofounders and I realized that we could both reduce the load time for the game and also allow our artwork to be dynamically scalable by switching to JS exports of our art rather than the raster sprite sheets. Here's the blog post we wrote about it: http://blog.codecombat.com/hacking-our-way-to-vector-artwork-in-html5
    At the time, I didn't have Flash CC, and was reliant upon the CreateJS plugin to export the required JS files: CreateJS Developer Center | Adobe Developer Connection After another month or so, our contractor upgraded their version of Flash and we started having compatibility issues reading FLA files, so I upgraded as well. After doing some reading, I concluded that the CreateJS plugin was now incorporated into Flash CC as the HTML5 doc type, which was confirmed when I checked out the publish settings and resulting files.
    This is all a rather long winded way of saying that we have legacy artwork created with an older version of Flash but are now importing all of our artwork from JS files.
    Fast forward to today and we have two big issues:
    1) We can't figure out how to reduce the filesize of JS exports. As discussed in our blog post, vector artwork has upsides and downsides. One of the downsides we've found is that complex art that uses a lot of shapes ends up being substantially larger (in terms of filesize) than the appearance might otherwise suggest. Raster exports skirt this because a pixel is a pixel, but vector exports scale with the complexity of the source FLA. I'm not a Flash expert, and when we get files that are particularly complex, Flash either runs out of memory exporting them to JS files or we get files that are far too large to reasonably use. To be clear, the "out of memory" error isn't a problem because even if Flash finished the export, the resulting files would be too large for us to use (plus, I've done some digging and found a tutorial for correcting the out of memory error). Our artist is not familiar with the intricacies of the JS Flash exporter, so when we get a file that's too big or breaks the export, neither of us can really figure out a way to correct the problem. We have three questions in particular:
         a) Where can you view shape data that Flash is going to write to the JS files?
         b) Is there any way to edit said shape data inside the Flash CC interface?
         c) Is there any way to optimize shape data in Flash? For instance, in Photoshop, you can flatten images and export a psd with 500 layers as a single JPEG, is there any way to do something similar to shape data in Flash?
    2) Exports frequently break in weird ways. Many of the sprites that we created a year ago haven't needed to be re-imported into our game engine for some time. But every once in a while, I need to go back and fix, improve, or tweak an existing sprite, and then I run smack into the issue of reconciling files that were created without thought to JS exports with our current system. Just last week I was running into this issue in a big way and I made a screencast for our artist (since we work remotely) that I hoped might give him a better idea of the problem: Flash Errors - Treasure Chest, Flippable Tile - YouTube
    The two files mentioned in that screencast are both old (treasure chest) and new (flippable land tile). We have a few questions:
         a) Why are the treasure chest frames "flickering" in the html5 preview? The problem doesn't appear inside Flash and is inconsistent between files. There are two FLA files: one in which the treasure chest is empty, and one in which it's full. The empty animation doesn't throw any errors, either when converting to the HTML5 doc type or on export, but the resulting animation flickers. The full treasure, on the other hand gives me 21 lines of these errors when I do the conversion (not when I export): "Blend Modes(Layer) is not supported in HTML5 Canvas document, and has been converted to Normal in an instance of Movieclip <Path>." The result in both cases is the same: the animations flicker, and neither our artist nor us can figure out why, or for that matter, even begin to troubleshoot it. This SO issue seems to describe the problem, but was never resolved, and I can't find anything else that seems to address it: CreateJS Publish of Flash Project Flickers - Stack Overflow
    I've uploaded the files involved to a public dropbox folder which I think you'll be able to access (Dropbox seems to be having some problems at the moment): Dropbox - flash_debugging
    Since my questions are fairly involved, and my goal is to gain a better understanding of the UI, not simply resolve an error, I'd be happy to pay for someone's expertise/time in getting me up to speed. You can get in touch with me at george [at] codecombat.com

    Hi George,
    I have taken a look at the files full_treasure_chest.fla and flippable_land.fla that you have shared via drop box and found that they both uses blank keyframe(s) followed by Keyframe(s). This was an issue and has been addressed in the latest release Flash CC 2014 (released on 18 June, 2014). Can you please install the latest build 14.0.0.110 and try this out?
    Thanks!
    Mohan

  • External Hard Drive 3TB - iOmega, Western Digital... ?

    Hi guys
    Since my MacBook Pro is getting stuffed with huge Adobe files (I'm a graphic designer) and I'm not really into throwing stuff away since they might be useful one day, and that I can't make time to start reducing the filesize of these files, I am considering on buying a new External Hard Drive, next to my Time Capsule.
    What I want to know: I have my 1TB Time Capsule and I love it for what it does, but it isn't the external hard drive I'm looking for. So what is the best solution for me, respecting the following preferences?
    3 TB
    wireless and FireWire or USB
    not a portable disk
    adapter
    compatible with:MacBook Pro 15-inch, spring 2011,  2 GHz Intel Core i7
    Time Capsule 1TB
    Mac OS X Lion
    I've already been gathering information about these devices:
    Iomega® Network hard drive Home Media Cloud Edition 2 TB - Link
    Western Digital 3TB My Book Studio - Link
    Western Digital My Book Studio II harde schijf van 4 TB - Link
    Any of these is the best solution? Or what would you advice?
    Many thanks!
    Bob

    Just to add to the mixing pot....
    Just re-read the thread and mulled over all the ideas. First off, wasn't the idea to have a means of backing up your data? The key to effective backups is redundancy; acknowledge that hardware will fail but there will always be at least one copy that missed the bullet. The 6TB monster is quite appealing from the cost per GB perspective, but I fear it will become a central and solitary repository for all your life's treasures while you try to fill it up. And if it fails, as all hardware does eventually, I'm going to get my butt chewed in the virtual sense, for having recommended it. Me? I have a slew of external drives I cycle around as I change from OS to OS, Mac to Mac and week to week. 12 at last count, plus 3 HDDs laying in their antistatic bags, waiting hopefully for me to get them their own enclosure.
    When you mention working on a huge .psd on an external drive, note that you are crossing a threshold there. Mixing a device used for backups with one used as an external workspace. Just beware of the risks involved; should failure occur while you're working, your backups will die as well.
    Regardless what you end up using the drive(s) for, you'll have to make a choice regarding the interface. Do you want speed or convenience. Wireless is great for ease, but are you willing to have the Mac hung up for twice or trice the time while it backs up, vs. a direct FW or eSATA link?

  • PDF Optimizer Removes Lines for Arrows & Circles

    I'm using Acrobat 9 Pro for Mac.  I've created documents that need  arrows & circles around certain images, & have created PDF's from those docs.  I need to optimize those PDF's to reduce the filesize, but in doing so, the PDF Optimizer removes the lines from the arrows & circles, leaving just the beginning & ending points.  Here's an example of before/after optimizing:
    I've changed just about every setting in the PDF Optimizer, but it still removes the lines.  What am I missing here?
    Thanks for your help!

    I'm afraid I initially missed your "I've changed just about every setting in the PDF Optimizer," and don't have the expertise to take this much further.  I assume you added your circles and arrows with Acrobat 9's commenting tools.  If so, a desperate measure might be to flatten them, as discussed by Dov Isaacs a few times, most recently with regard to "Typewriter Objects," over in the InDesign forum, but I'm getting out of my depth.
    Good luck,
    David

Maybe you are looking for

  • Is it possible to datamerge more than one image per page?

    I am building a product catalogue using datamerge.  Is it possible to data merge more than one image per page? (ie I have a logo, product image and dimensioned drawing to go with each product page) What would the coding be for the Data Field Name? Wo

  • After charging to 100% upon unplugging iphone 4S doesn't show 100%

    Everytime when i charge my iPhone overnight, the iPhone will end up showing 100% but when upon unplugging the phone, the indicator immediatly shows 97% or lower in some cases, i wonder why and has anyone encountered this problem? I have been 'bump ch

  • Album art screensaver question

    I love this album art screensaver. I have a lot of album covers on itunes becuase of hte new downlaoding feature. But...even though i have the album in itunes, only a few show up when i run the screensaver. this is sort of annoying....and i dont unde

  • Uable to connect to database with new connection

    we are not able to connect to DB using SQL DEVELOPER with new connection,exiting connects works fine and sql plus works fine as well. anybody has any information u. Thanks RK

  • Failed update to printer

    I have an HP Photosmart eStation C510a. It did an update over the WEB direct to the printer. The update failed to complete unsatisfactorily. Now when I try to print anything it spools out numerous blank pages with printed pages mixed in. How do I rem