Compress SWF File or Not ?

Captivate v5.5
What are the Pro's and Con's of setting the project preferences to compress the swf file ?
I cannt say I have noticed this happening on my projects before now, but when saving my project today Captivate has started to do this.
Appreciate anyone's thoughts on this.
Noel

Hi,
This code will solve ur problem.
public void onActionUploadFile(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionUploadFile(ServerEvent)
    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateFileUploadDownloadView.IContextElement.FILE_RESOURCE);
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)attributeInfo.getModifiableSimpleType();
    IPrivateFileUploadDownloadView.IContextElement element = wdContext.currentContextElement();
    if(element.getFileResource() !=null)
         try
              String mimeType = binaryType.getMimeType().toString();
              byte[] file = element.getFileResource();
              //element.s
              wdComponentAPI.getMessageManager().reportMessage(IMessageFileUploadDownloadComp.SF__UPLOAD,new Object[] {binaryType.getFileName()},false);
         catch(Exception e)
              throw new WDRuntimeException(e);
    else
          wdComponentAPI.getMessageManager().reportMessage(IMessageFileUploadDownloadComp.NO__FILE,new Object[] {" "},true);
    //@@end
Here "fileresource" is context attribute name
Regards,
Sunaina Reddy T

Similar Messages

  • SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    SWF Files do not work in Firefox. My sites work fine in Explore & Safari? Why is this? I have updated all my plugins, reinstalled yet still nothing?

    Can you post a link?
    Does that only happen on that website or do you have that problem with all Flash content?
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Swf file does not work from InDesign

    I am not sure if this is a Flash or InDesign question, so i will post on both..
    I am trying to embed an “animated” swf file (that was created in flash) into an InDesign layout and then export the InDesign layout to swf. in the resulting html file my navigation works ok but the swf file does not play “animate” when viewed in html or flash. It only shows up as a graphic. 
    I have tried exporting the ID file to xfl and bringing it into flash but then none of my animation works. What am I doing wrong?
    any help would be appreciated.
    thanks
    mattG

    You´re doing nothing wrong. SWF export of InDesign CS4 doesn´t support any media files. You can place videos, sounds and animations into indesign layout, but if you export to SWF, they won´t work in resulting SWF. They work in interactive PDF.
    And you can export your basic layout to Flash CS4 by using XFL export and import those media elements in Flash, but that may be quite a job. I have been strugled a lot with that method. My files used to go really messy when I open them in Flash.

  • How can we compress SWF files and optimize tool?

    I need to reduce SWF file size up to 70%, quality will not be sink.
    Is this possible in adobe software? please help...

    Iam working on banner production, is their any better software/tools for SWF optimization/compression?
    I got one  SWF and FLA from other creative team,  SWF size is below 50 KB look's better quality, I have changed some small amends, when i was exporting it from FLA... the SWF file weight goes to 90KB, i compressed image quality then, expoted again... the file size goes to 70KB. how can i do  50KB in better quality.
    Thank you for your help!

  • Program to compress swf file?

    hey there,
    so i have a rather large swf file that is having trouble
    loading...it takes about 10-15 seconds to actually start to load so
    i've come to the conclusion that i need the help of a swf
    compression program but i'm wondering if anyone can give me advice
    on a reliable program to use? have any of you had a similar problem
    and used a good program to compress?
    let me know thanks so much!!

    I don't know of any programs that compress, but I can give
    you a few tips.
    1) Under your publish settings, make sure that "compress
    movie" is checked.
    2) If you are not doing so, use 90% jpg compression on your
    bitmaps, as opposed to 100% or default. It doesnt seem like a big
    change, but it makes a world of difference.
    3) Under publish settings > flash tab > options
    section, click "generate size report". Then when you publish, you
    will get a size breakdown of everything in your file and you can
    easily pinpoint where the majority of your file size is coming
    from. Then you can make adjustments accordingly.
    Hope this helps,
    GAMBRKER

  • Flash .exe or swf files will not play on Vista

    I decided to learn how to create captions for flash video,
    using CS3. I tested this project and it worked fine. I could just
    double-click on the app or the swf and the captioned video played
    fine on my Mac. I only had Flash (CS3) on my Mac, so I created the
    files there.
    I then published an exe to move over to my Vista machine.
    When I double-clicked on the file, it brought up Flash Media Player
    version 9, but only showed a blank white box. Very frustrating.
    After some research, I read that Windows Vista was not
    compatible with Flash Media Player 9. Only 10.02xxx or later (I
    forget the exact version - it was long) was supposed to work with
    Vista. Since CS3 uses version 9 to pack into the executable (PC) or
    app (Mac) projector files, I thought maybe this was the problem.
    So I downloaded the demo of Flash CS4, thinking this version
    would pack version 10 into the projector and this would solve my
    problem.
    While the CS3 version of my saved flash video project would
    open in Flash CS4, it would not play when I tested the movie inside
    Flash CS4. It would just show a skin at the bottom of the video
    player only (with a play/pause button), and it had moving blue bars
    on the skin like it couldn't really load either.
    I then decided to create the whole flash video with captions
    from scratch under Flash CS4. This time when I tested the movie in
    Vista, it worked fine. When I published either the projector exe or
    the html/swf combination, it worked fine. So proudly (and finally!)
    I sent the exe over to my boss. But..... you guessed it. The Flash
    Media Player 10 that started up when the file was double-clicked
    just showed a blank white screen again!
    So then I moved the exe over to another partition to test to
    see if there was some dependent directory pathway saved as part of
    the flash video file. The exe wouldn't play on the other partition!
    So I thought I was onto something. I then tried moving files that I
    thought the exe might be dependent on (although isn't the point of
    a projector to be stand alone?) to the same directory on this
    partition as the flash exe projector file.
    I ended up moving the captions.xml file, the swf files (flash
    video player skins included), and the html file that the swf file
    is supposed to be embedded in. NOTHING worked.
    I even read that someone with this problem saved his Flash
    CS4 file as a Flash CS3 file before he published it, and that
    worked for him. So I tried that too, but with no joy.
    So I am totally stumped. Does anyone out there have advice or
    even a solution?
    Much Thanks,
    Chuck

    HI
    You can use FlashJester Jugglor to create one EXE file by
    adding the FLV in
    the Additional Files section.
    Try it
    http://www.jugglor.com
    Let us know if you have any further questions.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. - www.flashjester.com
    DISCLAIMER:
    This email message is intended only for the addressee(s) and
    contains
    information that may be confidential and/or copyrighted. If
    you are not the
    intended recipient please notify the sender by reply email
    and immediately
    delete this email. Use, disclosure or reproduction of this
    email by anyone
    other than the intended recipient(s) is strictly prohibited.
    All measures
    have been taken to ensure this email is virus free - however
    no warranty is
    made that this email or any attachments are free of viruses.
    Virus scanning
    is recommended and is the responsibility of the recipient.

  • SWF file is not working in Portal PROD System

    Hi All,
              We have written custom mxml script in Adobe Flex 3 which displays the list of applications stored in the DB. Then we have posted that .swf file into our Portal KM and then we have created one URL iView with the location from KM.
    These days we are facing issue like the output of the script is not working means the applications are not listed on the portal prod system.
    Whenever the issue arieses we are requested to upload the file once again into KM and it works after the upload been done.
    We are not sure what could be the reason for this issue and I request any one to assist us to resolve this issue.
    Please let me know if you need more info on this issue.
    Thanks in advance.
    Best Regards,
    Vijaykumar K.

    Hi Vijay,
    I belive this should be a portal issue, anyways let me give it a try.
    I never worked on flex in SAP but did similar stuff in portal content development.
    Do you have any traces in that development..?
    Did you check any messages being loged in portal...?
    Check if there is any issue with the file like couldn't recognise a resource from KM which is required etc.
    Cheers,
    Sai

  • Swf files will not open in firefox

    hi,
    I can not get my pages where I have swf files to open in firefox.  I have several pages
    with sound also and they will not open.  here is the code that I am using.  I have probably
    8 pages of flash and the rest of the pages are javascript and html.
    page10 = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,2,0\" width=\"578\" height=\"680\" id=\"page10\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\"   /><param name=\"allowFullScreen\" value=\"false\" /><param name=\"movie\" value=\"Issue007/Images/page10.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"Issue007/Images/page10.swf\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#ffffff\" width=\"578\" height=\"680\" name=\"page10\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>";
    page10Html = InsertDinamicDiv(10, "page10", "", 0, 0, 586, 680, "", "", "", "");
        page10Html.innerHTML = page10; 
    This is a magazine on the web and prior issues have loaded in firefox using the same code but not the pages with sound.
    I hope someone can help.  I have no problems in internet explorer.  I am having problems with apple also.  I figured if I got firefox working then apple would work.  again in prior issues, we could see the pages in apple.
    thanks,
    Jennifer

    you're missing the mozilla embedding code.  use:
    page10 = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="578" height="680" id="page10" align="middle">
                    <param name="movie" value="Issue007/Images/page10.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="window" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--[if !IE]>-->
                    <object type="application/x-shockwave-flash" data="Issue007/Images/page10.swf" width="578" height="680">
                        <param name="movie" value="Issue007/Images/page10.swf" />
                        <param name="quality" value="high" />
                        <param name="bgcolor" value="#ffffff" />
                        <param name="play" value="true" />
                        <param name="loop" value="true" />
                        <param name="wmode" value="window" />
                        <param name="scale" value="showall" />
                        <param name="menu" value="true" />
                        <param name="devicefont" value="false" />
                        <param name="salign" value="" />
                        <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                        <a href="http://www.adobe.com/go/getflash">
                            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                        </a>
                    <!--[if !IE]>-->
                    </object>
                    <!--<![endif]-->
                </object>';
    page10Html = InsertDinamicDiv(10, "page10", "", 0, 0, 586, 680, "", "", "", "");
        page10Html.innerHTML = page10; 

  • FLV embedded in a SWF file, does not play in HTML file.

    Hi,
    I embedded a FLV file into flash movie clip, which on publish plays well on SWF file, but when the same is embedded in HTML, it does not play.
    What is it i'm missing ..
    Kindly help.
    Regards
    Shashi

    First, clarify this... are you embedding the .flv into the time line, as in:
    The .FLV file is imported on the  timeline of a movie clip.
    I embedded the .flv file,
    If you are in fact embedding the video, then there is no external video file... it's embedded into the timeline.
    If you are using the FLVPlayback component and an external vid file to display the video and the .swf when testing plays the video just fine but not on the HTML Web page:
    SWF plays external video file, as soon as I embed SWF in HTML, it no longer playes the external video file.
    then it's most likely a pathing problem.
    If you are placing the .swf on a Web page and the .swf and/or the .flv file are not both in the same folder as the Web page.... then the .swf should NOT work when you test it directly! That's because it should be pathed to play from the Web page and not the location of the .swf.
    For your review:
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    Best of luck,
    Adninjastrator

  • Text seen in swf file but not seen in flash pro. publish

    I am using fmath formula component for flash. when i push ctrl+enter, texts in formula object are not seen, there is only tiny squareroot symbol. however, when i open created swf file, everything seems normal. I use flash player version 11.2. . Also, everything is ok in version 9.
    http://www.fmath.info/flash/download.jsp

    Are you setting the font that is being used to display the formula yourself? If so is it properly embedded and issued to the component properly? A quick way to check is to use a known system front (Arial, _sans, etc) and see if text shows up. If it does you're just not either embedding properly or aren't pointing to the font correctly in the component.

  • Swf files do not load correctly anymore...

    I maintain a site with many online  tutorials (www.edutorials.gr) that i record with various desktop recording software and export them in swf format. The last few months some of these tutorials do not load correctly, and freeze after few seconds.
    These swf tutorials originally played ok (Few months ago)
    The other swf tutorials continue to play ok
    I used the same software for recording and exporting in swf format most of the tutorials for the site
    I have tried to open the problematic swf files with various browsers and flash players (both on line and locally in my pc) and they always behave the same
    Here is (http://edutorials.gr/drupal-admin-settings1) a swf file that freezes and
    Here is (http://edutorials.gr/gimp-fire-smoke) another one that continues to behave ok
    Any ideas why this happens? I don't have a clue

    Maybe the .swf files have become corrupted. Have you tried replacing the files on the server? If you pull the file from the server and play it locally does it play correctly?

  • Swf file does not appear in Captivate

    Hi,
    When I import the swf file into Captivate, it only appear in "preview" mode but when I publish it does not appear....
    Please help!!
    Thanks
    Syl

    Hi Syl,
    What version of Flash Player are you having in your Internet Explorer? Captivate uses this Flash Player in preview.
    What is the Flash Player version of the imported swf file?
    Where are you viewing the published file - in IE, FF or standalone player? What is the version of Flash Player there?
    Does preview in browser work?
    Check these things. There might be a Flash Player version problem.
    Regards,
    Ravi Kishore.

  • Is it possible to compress SWF files using gzip?

    I am using gzip for all the files of my server but my swf doesn't seem to be getting compressed also "swfobject_modified.js" used by the SWF file doesn't get compressed as well, whereas other .js files are getting compressed. Any suggestions ?

    For quite a while swfs are (by default) (g)ziped when published. You can change that under the publish-settings using the flash tab. Regarding the swfobject, I think that the code is very size optimized, whereas your regular run of the mill self-made .js is mostly optimized for readability.
    M

  • An swf file does not show up in the website even though you can see it in preview and publish

    I created a swf file from a mov file in Adobe Encoder. Thge movie shows up in Muse in both the preview and publish mode.
    Does not show up in the webstie. The html file is in the assets foder and the swf file is in the image folder and the space is blank.
    When i encoded the .mov file I saved it as FLV. Web 1920 x 1080, 16 x 9 5.4 Mbps is the setting for Flash Web Video when i encoded the file.

    To see all the History and Cookie settings, select:
    * Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"
    * Tools > Options > Privacy > History: [X] "Remember download history"

  • Migration to IIS6 causes large swf files to not play

    So I had a FLV that was being played through a SWF on one of
    my clients sites. The server got upgraded to Windows 2003 and it
    stopped working. I didn't originally create the SWF or FLV so I
    wasn't sure what it was doing. I used FLV2SWF to convert the FLV to
    SWF (the unlicensed copy) and it created a 6mb (truncated) version
    of the file, and this file was now viewable. So I got the full
    version and converted the entire FLV, and I still have the same
    problem it looks like its downloading but then never plays and if
    you right click on the player it says movie not loaded. If I just
    create a link to the SWF and download it and play it local it works
    no problem. You can see the non-working version here, in case this
    helps
    http://cwbtechnologies.com/about2.htm
    Any help would be much appreciated. I have a feeling this is
    something in Win2003 but I couldn't find anything on MSDN.
    Thanks,
    Pete

    Thanks for the suggestion Pat.  I checked it out but I do not have any path issues.  The problem is ONLY with swf files that I have had on my website for a year.  They worked perfectly before December 3rd and stopped working after that time.  They still work fine if an older version of Flash Player is used.  I'm pretty sure that there is an swf file backwards compatiblity issue with version 11.1.102.55.  I have spoken with others who have the exact same problem.
    I recompiled one of my swf files using the latest version of Object2vr and it will show properly on my site.  I am now in the process of recompiling the remaining 50 swf files in order to make my site work again.
    I would still be interested in knowing if there is a fix for this issue other than recompiling the swf files.

Maybe you are looking for

  • How do I copy an iTune movie from my laptop to my netbook?

    OK, I hope you can understand what I'm trying to do. I have iTunes on my laptop where I sync my iPod. I loaded iTunes on my netbook (but don't plan on syncing with my iPod, leaving that for the laptop). Anyway, I have movies on my laptop and iPod. I

  • HTTP Listeners shown as running but can't stop, start or configure

    In 4.0.8.2 Oracle Application Server Manager Enterprise Edition, HTTP Listeners, for the "www", the listener shows as down but is actually running. If I try to stop it, it says it is not running (the IE dialog box pops-up). If I try to start it, it s

  • Quick Time File Association, How to change ????

    Hi There- I accidentally chose Quick Time to associate my JPEG image files for all my photos, I also use Nero Picture Perfect for editing my photos, but now Nero can not open any of my photos, can someone help me in taking the association off of the

  • My Macbook pro doesn't see my hard drive while booting

    Hello, Recently I have formated my  hardrive and had few problem with installing lion, so I removed it install it like external drive from another computer then put it back inside and now it's not working, doesn't even spin, but I can boot from usb o

  • RRI sender / receivers

    I have created a jump link between a BW query and R3 report (FBL3N).  The BW report is a simple trial balance of GL accounts.  I want the user to be able to 'jump' to FBL3N for line item detail. The link is established, but it only takes the user to