How to cache swf files via browser

I notice that games on facebook ara caching lot's of swf files in browser temparary folder, I'm wondering how this is done, I'm new to web techs :> Somebody help? Thanks a lot.

AndrewYuCWA1987 wrote:
Thank U
but what i attend to do is:
- swf resource is need, and there're a lot
- they're on the server first
- when loading swf needed, access loacally file first, if there's none, get remote swf resource from server
- after load from remote, cache swf files locally for the next application runs
How can this be done?
all the above happens by default unless a user clears their cache or has not browser cache- which you can't control.
I met sand box issue when I apply URLRequest api, and I've looked into game's on facebook and other SNS platform, caching is the
common way to build a game, there's a "loader.swf?v=XXXX" there, and if I copy it to file system and run it, surely it's doing URLLoading and trigger a sand box trouble like I do, but when it's applied in the browser, or say in the way it's originally used, it worked,
So I doubt there's something I can do to implement the goal I've imagined, question is, how ) ;
appending a changing query string (?v=XXX) to a url is a common way to prevent browser caching by making the browser think each of those swfs are different by virtue of the changing query string.

Similar Messages

  • How to cache swf files to reduce load time?

    Hi,
    We are using the XML data connection for our swf files. Some of our swf files are large and may take a minute to load. Is it possible to cache the swf files so they load in a shorter amount of time? If so, how would I go about doing this? Thanks!

    Jim,
    There is no option as such in Xcelsius.
    We used SAP BI Query as a source for our dashboard and we had similar issue, we then cached the SAP BI Query to reduce the load time....it worked really very well!!
    Try doing something similar in the source system...
    -Anil

  • How to fit swf completely in browser

    hi there
    can someone help me to find out that how to insert swf file
    into a browser with 100% width and height, the problem i m facing
    is with resizing the browser as the swf does't get fit into browser
    either with height or width, i m giving site reference (
    http://www.christiansparrow.com)
    for what exactley i m looking for.
    if u can pls visit my site( www.websells.com/sf) to get to
    know what is the thing bothering me, well whn u resize the window u
    ll see black borders on the horizontal sides of the site which has
    to be covered by the swf showing there.
    pls revert me soon.
    thanx

    Hey-
    I'm having the same problem, and i wasn't able to find that
    resizing code anywhere... any chance you could help me out and tell
    me how to do it?
    www.nicksdesign.com/flash
    Is where the code would be placed... because if a user is on
    different screen resolutions than what the site is designed at,
    they are required to scroll vertically and horizontally to view
    page.
    Best,
    Nick Smith

  • How to call swf file within another swf file using xml

    hii,
    I am facing some problem to call a swf file via xml when this xml file loaded it calls another swf file which includes a new xml file. now if i call this nested swf calling without xml it works but in case case of xml it is not showing the result. i m confused. how to nested xml file calling done in as2/as3. i need some logics. thanks in advance

    This is the AS3 forum and your posting involves AS2 code.  You should repost in the AS2 forum...
    http://forums.adobe.com/community/flash/flash_actionscript
    Aside from that, your problem might lie in the following lines...
    _root.createEmptyMovieClip("sub_container1", 1);
    loadMovie(sub_SWFPath[1].attributes.url, "sub_container1");
    You create the new movieclip, sub_container1,  in the _root, but you do not assign the loadMovie to load into that same movieclip (unless you have a _lockroot = true assigned in your sub-swf).  In any case, you should repost in the AS2 forum to pursue resolution.

  • How can I send files via Bluetook from my Tour to other phones?

    How can I send files via Bluetook from my Tour to other phones?
    I have even been able to pair to the other device, but I don't see the option to send/copy/move files through Bluetooth.
    I can only send my Address book via bluetooth.
    Please help!!

    Hi and Welcome to the Community!
    See this KB:
    KB05409 Transfer a file using Bluetooth technology between two BlackBerry smartphones
    Substitute, in the KB, the appropriate instructions for your other device in place of the KB section for the receiving device. Be aware that RIM only supports BT file transfer between BBs...with other devices is technically unsupported. But, it usually works, as long as the two devices are paired, trusted to each other, and each have all of the correct BT services enabled for the configuration of the other device.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • C5-03 -how to send music files via bluetooth

    hi
    i've c5-03 mobile
    1.can any one tell me how to send music files via bluetooth
    2.there only mark all option ann no mark several option can any one tell me r there any software updates for this
    Solved!
    Go to Solution.

    PerLs wrote:
    Hi,
    You can do it with the file manager this is how i use to do it. You will find it in menu|applications|office folder
    There is also a possibility to long press on the track and send. Im not sure if C5-03 support this... But go to you music libery and find the track you want then long press on it and press send.the long press method works
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to send .CSV file via email in Oracle10g/11g PL/SQL

    Hi Guys,
    Can any one let me know or suggest me how to send .csv file via email attachment using Oracle PL/SQL.
    Thanks in advance!
    Regards,
    LRK

    A FAQ. Use UTL_MAIL (if attachment is 32KB less). Else use UTL_SMTP. Search this forum. Search using google.

  • How do I transfer files via the thunderbolt cable

    How do I transfer files via the thunderbolt cable. 

    Like you would with any other cable. What are you connecting together?

  • How to use swf file for Spark Skin

    Hi all
    I have little confuse about how to use swf file with Spark Skin,
    in Flex3 , i use Flex Skin Design Extension for Flash to deal with skin ,
    so basically , I just create a swf file and import to the project , then everything is ok
    but , seem that not working in flex4 , spark skin.
    1` I can't find the Flex Skin Design for the FlashCs4
    2` I try to use FlashCs3 version to import the skin art to the project , but seemed not working.
    3` I Google and check the Flex4 Help , seemed Spak skin need the Skin-Class , which I don't know how to use that with swf file
        what I have searched is how to use FXG , or some jpg file in that skin class, none of them are use swf file.
    so , is there any way that let user use the swf file to deal with the skin?
           is the Flex Skin Design can use in Flex4?
    Thanks

    Hello,
    I'm new to Flex, but have come to it from Flash Pro.  I'd like to know the same thing.  I think I found the answer here:
    http://www.flashallys.com/blog/spark-button-skinning-with-flash-symbols/
    However my question is now: Is this a good approach to use?
    99% of the googling I've done tells me to skin components with fxg files.  I've tried that by creating graphics and exporting from flash, but using swfs containing lots of graphics is much faster so I'd rather use that.
    The other thing I've done is to create custom components using these helpful tutorials:
    Creating component in flash:
    http://www.webkitchen.be/2008/12/12/video-tutorial-make-flex-components-with-flash-cs4/
    Dealing with Resizing with method overrides for your flash component:
    http://www.psyked.co.uk/flex/creating-flex-components-the-easy-way-for-flash-ide-converts. htm
    This allows me the flexibility of Flash Pro design with the layout, transistions, data binding etc from Flex.
    So my question is: Is this approach (skinning spark components with swfs, and using custom swc components made in flash) a bad idea for any reason?  E.g. does it create slow mobile apps?
    Cheers
    Chris

  • How to get swf file of any mxml file in flex1.5

    hi all,
    can anybody tell i have one mxml file now when i run this i
    file server generate swf file dynemically ....now my requirement is
    i need that swf file
    so how can i get that swf file from which location i get this
    file......
    plz tell me aasp
    thanks in advance

    Rather than letting the server compile the SWF at request
    time via the URL, you can pre-compile the SWF using MXMLC. Without
    telling you anymore there's information in the docs and an article
    on the Flex devnet about using MXMLC.

  • How to play .swf files ?

    I have some .swf files on my WIndows PC that I want to play.
    The instructions on a website said to:
    ". . . play your flash files using the Adobe Standalone Flash
    Player. For this you will first need to Download the Windows Flash
    Player 9 Projector content debugger from the Adobe Site [Freeware].
    There is NO installation needed. Just open the downloaded
    .exe and open your .swf from within the Projector.
    In order to associate all .swf files to open using the
    Projector, right click the .swf file and "Open with" option. Once
    there, choose the location of your Projector.exe and you are done."
    This worked ONCE. The next time I logged on, the computer
    could not play the files.
    I'm thinking that this is because the programs referred to
    were not running.
    So - how do I (i) find the programs on my PC and then (ii)
    create shortcuts so I can run them when I want ? I prefer not to
    have them automatically load at startup.
    Thank you.
    Bob

    Flash Player is a browser plugin. It's not designed to work as a standalone app for opening FLV or SWF.  The standalone player EXE is a different animal.
    Folks who don't own Flash Professional aren't going to have a standalone player.
    For windows users, the Standalone player installer is in the archived players technote here:
    http://kb2.adobe.com/cps/142/tn_14266.html
    However, it's not an application. It's just an EXE. You have to launch it, then use File> Open to open the local SWF.   You can also keep it on your desktop and drag/drop SWF content to it.

  • Download file via Browser window

    Hello,
    I have a question about downloading a file. How can i Download the file via the browser ? I did get it working to download with flex but also get
    "Error: Error #2176" this error with flash 10 which is not good :-/
    Is there a way to download a file via the browser . i.e : with firefox download window , etc.
    I have seen weborb doing it while i was downloading the weborb application, and i wanted to know if anyone has any idea or sample on how to get this done.
    Help is appreciated .
    Thanks.

    You could write a Javascript function in the HTML page that accepts a URL string as its parameter. This function get then open a new window with this url. You could invoke this function it via the ExternalInterface API in Flex. I believe that would invoke the Firefox Download Manager.

  • How to download a file via web service in Windows Phone 8.1?

    My project just got 2 part.
    1.Pivot app
    2.Webclient server (provide data for pivot app the view the data)
    My concert that how do i do a download button to download a file via web services in to isolated storage.
    urgent!

    something like this:
    public async System.Threading.Tasks.Task DownloadFile()
    using (var client = new Windows.Web.Http.HttpClient())
    var stream = await client.GetInputStreamAsync(new System.Uri("http://urltomyfile"));
    var file = await ApplicationData.Current.LocalFolder.CreateFileAsync("myfile.txt", CreationCollisionOption.GenerateUniqueName);
    using (var fileStream = await file.OpenAsync(FileAccessMode.ReadWrite))
    IBuffer buffer = new Windows.Storage.Streams.Buffer(1024);
    while ((buffer = await stream.ReadAsync(buffer, buffer.Capacity, InputStreamOptions.None)).Length > 0)
    await fileStream.WriteAsync(buffer);
    await fileStream.FlushAsync();
    how is your webservices offering the file?
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • How to send a file via e-mail with director

    Is it even possible to have a button in a free-standing
    projector that would send a file via e-mail, or open up an e-mail
    program and have the file attached and addressed? Or is it possible
    to put a file on a server? Of course, both of these methods would
    alert the user and ask for their permission.

    To just open the user's email program, you can use the
    standard lingo:
    goToNetPage(mailto:[email protected])
    That approach is kind of annoying because it actually opens
    an empty
    browser window then the user's email program. I don't think
    you can use
    that approach to send attachments though.
    A much better way is the fabulous DirectEmail xtra from
    DirectXtras.
    Check out their site:
    http://www.directxtras.com/demail_home.asp?UUID=1217348
    DirectEmail can do everything you are asking for (and more).
    It is
    cross-platform, shockwave safe, can handle text or HTML
    email, can do
    attachments, can use a mail server or not, and is really easy
    to use.
    The same company makes DirectFTP which you can get from:
    http://www.directxtras.com/DFTP_home.asp?UUID=1217348
    DirectFTP can put files onto an FTP site with a minimum of
    fuss. I have
    used both on quite a few occasions and they rock. You can
    actually
    write a full-fledged email or ftp program with those xtras
    and Director.

  • How to get SWF files to play in Dreamweaver CS5

    I designed an interactive memorial page for my company in flash catalyst 5.5. According to the tutorial, it should be simple to insert into a webpage in Dreamweaver. Insert, media, SWF.
    When I try to preview it in internet explorer, there is a blank square where the object is supposed to be. I do get an Adobe Shockwave symbol in the center but that is all. My flash player and shockwave are both updated. I can't imagine what could be going on with this. I am fairly new to web development and have no formal training but my boss is growing impatient.
    Please HELP!

    Wow...more learning here I see. My goal at the moment is to start a root directory. As it stands now, I have only 1 set of files in the DW "sites and servers" (Remote ftp site) I am reading that I need to also have what I think is called a "root" directory where I keep all my images in my PC. I have never done this. I go to DW and add 1 picture at a time, whether in this new slide show or any images I want to insert. I usually go to my off site server, copy the http and insert.
    I am reading that I need to create a local file (folder) on my PC that somehow "links" everything. So when I go to insert this image, it then transfers it to the remote server.
    I am not even sure what a SWF file is. I think it is a code as you say that somehow has all the image names in it that eventually get inserted. Again, I am still learning.
    In another thread in this forum I have been asking questions regarding the public_html issues. I have seemed to have solved that by adding this text into the "Host" file box in the server configuration. Never was there. Now I know why I had to always delete this tag.
    I have a folder in my PC that contains the slide show pictures. I have an identical folder in my remote server. So it plays now in both DW preview and the live site. Now my issue is I am unable to add pictures. It is like I have "done" this particulat SWF file and that code wont allow me to "add" to it. Hard to say what the deal is. I can preview these 2 new images in DW and they are in my PC folder and he remote folder, but the live version is short these 2 images now. So my only thought is to make a brand new SWF file and start over adding one picture at a time.
    I read your comments about how you do it, but it is still not sinking in. I do not understand this whole file upload thing, or this complete "package" transfer. In DW you start by making a flash media with a name. The you go and add 1 image to it at a time. I cannot see an option in the square box with the "F" logo where you can dump a whole slide show there.
    I do not want to seem too dumb, as I try to grasp as best as possible, but if you can explain in specific steps, even if it is a "test" 2+ images slide show, it would help.
    I am going to read the help files tonight because my first challange is to get a root folder added to DW. I think this is the utmost importance as I do not have one now. My files are scattered eveywhere in my PC. It is I "pick" images from everywhere to add to the website. Although my remote has all the images I am using (and plenty more i am not)
    Hopefully, after 10 years of having this site given to me in DW format, I will start to understand it as time goes on. A gift from a Digipen student who had a task of building a website, which he made for me.

Maybe you are looking for

  • HT1386 Can you choose which apps you want to sync to a device?

    I am trying to sync multiple ipads with one laptop and I don't want to copy certain apps from one to the other. Currently when I sync one then they both have the same content and we have to delete the ones we don't want. I would like to know if I can

  • Problems shutting down...

    50% of the times i try to shut down, my computer quits all the open applications and then just gives me the spinning rainbow and does nothing. i eventually just manually turn it off with the button in the back. any advice on fixing this problem? also

  • 1.1.3 upgrade help....

    My bad I put this in the wrong forum last time. Anyways I have the newest version of Itunes and I run vista. But everytime I attempt to upgrade my Iphone, I tunes crazy,I've re-installed Itunes 3 times, is there another way?

  • Automatic replies font

    Hi there, We're having a problem with fonts in automatic replies in our exchange 2010/Outlook 2013 environment. We use Calibri light as a default font in the firm, and need to use this for our automatic replies. We've been able to set the font via ou

  • Time machine+airport extreme w/ HD attached

    I've noticed there is no search window in this discussion forum. Maybe I've got some setting that's off? Anyway, I use a HD attached to my Airport Extreme (802.11n) and have 2 MacBook Pros backed up via Time Machine. So far it works fine including do