Javascript :: Manually Caching SWF/SWC In The Browser - Mimic Adobe's Signed SWZ?

Nov 14, 2009

I would like to take advantage of Adobe's Runtime Shared Library system for swc's, but I'm not sure how it ACTUALLY works, like the programming behind it. I understand that it allows you to load SWCs at runtime, but how does it do that?

I'm asking because I would like to try to mimic something like the Signed RSL "swz" system Adobe uses to cache the Flex Framework into the Flash Player, so if you ever visit a site that downloads the Flex framework for some flash website, then the next time, and forevermore, you don't have to download it again.

I can't do this because I'm using my own version of the Flex SDK from the Sandbox, and I have like 5 other swc's I'm using (Mate, RestfulX, etc.). I would like to be able to cache these things permanently, and only have them re-download them if they change.

How do I do that, or what should I read, other than the Adobe RSL docs and such? Can I use javascript or ruby to do this?

View 2 Replies


Similar Posts:


Javascript :: Disable IE9 Browser Caching?

Oct 3, 2011

I have a Flash application that sends a getURL request for an image file every 60 seconds.

This works fine in all browsers except IE9 with Internet Option set to automatically check for newer versions of stored pages. I setup Charles proxy (http://xk72.com) to watch the requests being sent by my flash app and confirmed that the request is being surpressed by IE9 when the setting is set to Auto, but works fine if I change the setting to check everytime I visit the webpage. This, however, is not an option! I need this to work in all browsers regardless of how the options are set.

Even if I do a page refresh (F5), the ASP page does not reload. The only way to get it to reload is close the browser and restart it.

I have tried adding content headers to disable caching but it does not appear to work.

For Example, here is my request headers:

HTTP/1.1 200 OK
Date Sun, 02 Oct 2011 23:58:31 GMT
Server Microsoft-IIS/6.0
X-Powered-By ASP.NET
Expires Tue, 09 Nov 2010 14:59:39 GMT
Cache-control no-cache
max-age 0
Content-Length 9691
Content-Type text/html
Set-Cookie ASPSESSIONIDACQBSACA=ECJPCLHADMFBDLCBHLJFPBPH; path=/
Cache-control private


I have read the Microsoft blog (http://blogs.msdn.com/b/ie/archive/2010/07/14/caching-improvements-in-internet-explorer-9.aspx) which states that if I add the content headers, the browser should respect my request, but it obviously does not.

I don't think this is a Flash issue since the html page that holds the Flash object will not even reload.

View 1 Replies

Flex :: Self Signed Certificate For Adobe Air Application?

Jan 2, 2012

I nedd to create a self signed certificate for my desktop app. What do I need to enter in these fields?

Organization unit
Organization name

Does Organization means my agency's name?

View 2 Replies

Javascript :: Tutorial On Starting Adobe AIR App From Browser?

May 11, 2010

Is there any tutorial on starting (not install but application startwake up call with parameters) Adobe AIR app from browser (on button click within flash app using JS function or what ever is needed)? Blog articles or any other materials wanted...

View 3 Replies

Javascript :: Determine If Adobe AIR App Is Running From Browser?

May 11, 2010

Is it possible to determine if Adobe AIR app is running from browser?

So I want to check if app is on, how to do such thing?

View 2 Replies

Flex :: Can Adobe Air Application Turn Off Self-signed Certificate Warnings

Dec 16, 2010

I have a demo application using Adobe Air that accesses my own SSL web service that uses a self-signed certificate. In .NET clients, I can explicitly handle (and ignore) certificate warnings and suppress them via the ServicePointManager.ServerCertificateValidationCallback. I've examined the URLRequest and URLLoader classes but haven't found anything.

View 1 Replies

Javascript :: Executing Adobe Flex Without Using Browser Control?

Jan 3, 2012

I want to add scripting functionality to my Adobe Flex application. I know it's possible to use the Browser control, and add the script packaged as a HTML file to the Browser control, and expose Flex objects. However I'd like to if it is possible to execute JavaScript without using the Browser control.UPDATE: I guess my question hasn't been clear enough. I'll explain what I'm trying to do.I want to make my application customizable using JavaScript ie., add scripting/plugins to my application dynamically.I realize that it's possible to dynamically execute Javascript by inserting the JS code into the HTMLLoader control. I would like to know there is a direct way to execute JavaScript without inserting it into the HTMLLoader control.

View 2 Replies

Flex :: Signed And Un-signed Framework RSLs?

Jul 12, 2011

what is a framework RSL and difference between Signed and un-signed framework RSLs in Flex.

View 1 Replies

Flex :: Adobe - Redraw When Manually Scrolling?

May 11, 2010

I have two columns: the left one is a Canvas containing an mx:Tree and the right one is a Canvas containing a Canvas (to allow for scrolling) of some custom Sprites that go along with the tree nodes on the left. I made the right Canvas scrollable (horizontal and vertical) and I want the vertical scroll to also scroll the left Canvas so that the tree nodes line up with their representations on the right. The scrolling portion works fine and when I embed with wmode="window" there are no problems. Unfortunately, the customer requires dynamic HTML to overlap the Flash at times and when using wmode="opaque" or "transparent", there are issues. The scrolling still works, per se, but Flash does not seem to redraw either Canvas appropriately. The Canvases become out of sync and artifacts often remain on the right side.I catch a scroll event on the right column and update the scroll position on the left column like so:

public function onTimelineScroll(scrollEvent:ScrollEvent):void {
leftColumn.verticalScrollPosition = rightColumn.verticalScrollPosition;
}

[code].....

View 1 Replies

Actionscript 3 :: Adobe Air - Choose Webcam Manually?

Dec 2, 2011

How to choose the webcam/camera manually in Adobe Air? In Flash it's working through this:

Security.showSettings(SecurityPanel.CAMERA);

Is there something like that in Adobe Air?

View 2 Replies

ActionScript 3.0 :: Prevent Browser Caching?

Sep 14, 2008

I periodically upload a revised main.swf. But I have torestart my browser when I retrieve the files from the remoteserver, in order to see my updated swf. The advice given on:"How to prevent caching of swf files"does nothing, in IE FF or Safari, with FlashPlayer v 9

View 20 Replies

ActionScript 3.0 :: Browser Caching In Flash

Oct 21, 2010

I have a Flash file that is linked to 14 xml files using the E4X method. To keep the network activity to a minimum, I have it set up so that the xml files don't load until the relevant button is clicked (rather than have them all load at the beginning). I've been told I could further reduce network activity by using something called browser caching. There seem to be methods called "conditional HTTP" and "304 caching" but I can't really find a coherent tutorial on how to add this to the code.

View 5 Replies

ActionScript 3.0 :: Manually Cache The File Byte Ranges To The Browser?

Sep 10, 2010

I am downloading large files in the browser using a swf coded in as3 that makes byte range http requests (using http:url....).This lets me download the files in chunks.Is it possible to manually cache the file byte ranges to the browser cache so that I can prevent wasting bandwidth if the client has already downloaded a portion of the file on the next visit? This would essentially be a "resume download" feature.

From what I can find on adobe livedocs, flash player will not allow this because of security issues. I just wanted to double check and see if anyone knew a way to do this

View 4 Replies

Javascript :: Disable Caching YouTube Videos?

Oct 1, 2010

YouTube achieved quite a feat when they made youtube videos work with cache. However, this is causing a problem on my ajax site and would like to know if there is a way to disable youtube videos being cached. Especially in Internet Explorer.

I cannot disable caching for the whole page as I need caching to work for images and other content for speed reasons.

View 2 Replies

Flex :: Javascript - Caching Video Player

Jul 30, 2011

I've got the following Javascript for creating the HTML of video player. I use Javascript because this is the only way I can tell the player which video to play.

[Code]...

The problem is FlexPlayer.swf is loading every time and I need to cache this SWF file. Maybe I should use Javascript constructor but don't know how in this case.

View 1 Replies

ActionScript 3.0 :: Class To Checking Browser Caching?

May 31, 2010

Is there a way to check if the user has my site cached so it can tell my preloader not to run?Or is there an easier way to check this? I have a preloader, but once it hits 100% it makes a mess. It's not all that appealing. It works if you see it loading, but just to see the mess at the end is not aesthetically pleasing.Is there a way to have the Flash movie say, "Oh. You've already got this loaded? Skip animation." ?

View 5 Replies

Flex :: Enable The Caching Also When I Open It In The Browser?

Jul 8, 2009

I have the following problem, I have a flex application that works as a frontend in a client-server-application. In my application I have two sliders and a chart that moves when I drag the sliders, now when I have the following positions

slider 1: 10
slider 2: 20

a request is sent to the server and the response back to my flash. When I now change the sliders to

slider 1: 10
slider 2: 30

another request is sent to the server, because we have changed the position of slider 2. When I now turn the sliders again to the first position.

slider 1: 10
slider 2: 20

no request is sent to the server and the chart is moved correctly because the flash seems to know what he will receive, I think the application has cached the result. This effect only works when I open the flash application in the flash player. When I open it in the browser every slider position leeds to another request to the server. Is there a way to enable the caching also when I open it in the browser?

View 1 Replies

Flash :: Child SWF Is Caching Even Though Browser Cache Is Disabled

Dec 17, 2010

I've got a parent SWF that loads in a couple child SWFs. Even though my browser cache is cleared -- it's disabled, in fact -- reloading, or even restarting, the browser doesn't trigger the newest version of the child SWFs to load into the parent SWF. I can even delete the SWF off the FTP server, and it still gives me the last version that was up there.

What's caching the child SWFs, and how do I force them to refresh on my end? I'm not too concerned about the end user, because once the site development is over, the SWF files won't change very often. (They're all loading in XML files that have the cache disabled via PHP cache control and expires headers.)

I'm primarily using Firefox on PC and Mac, but it seems to do the same thing on IE/PC and Safari/Mac. The PC is using my ISP's DNS, and the Mac is using OpenDNS... not sure if that has anything to do with it. The site is hosted on Rackspace Cloud.

View 1 Replies

ActionScript 3.0 :: Flash - Stop The Browser Caching The Old Version?

Oct 28, 2010

I put a swf file on a website, then I made some changes and replace the old version. However, some browsers seem to have some kind of cache to remember the last swf file, they only show the old version instead of the new one. What can I do to stop the browser caching the old version?

View 9 Replies

Javascript :: Sending An Email From The Browser With Javascript And Flash?

Aug 5, 2011

I'm wondering if its possible to do what I'm thinking, and if it is possible, does anyone know of a flash object that does what I need? I know a Flash object can provide a javascript API to interact with it, what I dont know is can Flash send an email directly without the need to talk to the webserver to do so? If thats possible would it not be possible to write a flash object that did nothing but provide an API to send emails? Has such a thing been created that is out there for others to use?

I'm looking to create a email form on a web page but the site is static (no server scripting). In my situation server scripting is not possible as there is no server, the site is 100% client side on a CD/DVD/USB Stick.

View 4 Replies

Mimic A Command In Xml Using Actionscript?

Apr 25, 2009

I am new to Flash and working with a site template that uses a xml data file. In the animation there are a couple of 'read more' links that when pressed, the movie animates to a read more screen with basic info depending on which it is (read more 1, read more 2, ...) In Flash I have added an image on one of the main pages and I would like it to link to the same readmore just as one of the text links does.

The xml has the following line for editing the text, so I see how it is calling the readme page with asfunction, but I have no idea how to use actionscript (or behaviors?) within the flash document to mimic this with an image as the link. I am guessing its something simple but I have yet to stumble upon it.[code]...

View 6 Replies

ActionScript 3.0 :: Flash To Mimic Power Point?

Dec 10, 2008

I need a good Flash strategy for creating an ordinary PowerPoint presentation. We always need very media-rich presentations (PP is weak in this area). So far we have relied on embedding a Flash object in PP. This turned out to be a bad move because many of our clients deal with the Defense Department and are not allowed to D/L and install the latest Flash player. I have found that publishing a Flash movie projector (.exe) that advances slides like a PP is a good solution. The problem is that I have to put buttons on each slide and write unique functions to advance the slides I would like to be able to simpley click the mouse or use the arrow keys (like PP) for navigation. Should I use the "Flash Slides Presentation" template?

View 2 Replies

ActionScript 3.0 :: Mimic The Behavior Of XML Dynamic Class?

Jun 7, 2010

I would like to know, if it is possible to mimic the behavior of XML dynamic class:

[Code]...

View 11 Replies

ActionScript 2.0 :: Mimic The Combat Log Used In Final Fantasy XI And XII?

Apr 20, 2007

im creating an RPG game, and im trying to mimic the combat log used in Final Fantasy XI and XII. (go to http://herenbdy.iblogger.org/game.swf , press the attack and magic buttons and youll see what i mean)

My Combat log is a movieclip with a dynamic text field. Currently my code for the attack and magic and help buttons is this:

[Code]...

My buttons are movie clips with Dynamic text fields for their names. If you press the attack / Genesen / Help buttons, youll see that the lines of text in the combat log are put in right after each other, i used a || before each message to make it eaiser to read. Id would like to know how I would go about making the combat log messages appear on different lines as apposed to the same line?

I tried to make the text field into an HTML text field and do:

Code:
combatlog.combatlogtext.text = combatlog.combatlogtext.text+" <br> Press the H key to toggle the combat log off and on.";But that doesnt work, can anyone help? Please tell me if i phrased my situation awkwardly.

View 6 Replies

ActionScript 2.0 :: Mimic A PowerPoint Presentation With Flash MX?

Jul 7, 2003

I am trying to mimic a powerPoint presentation with Flash MX. I have 19 different slides and have created 19 small flash files, one for each slide. I am using alpha transperency to fade text and images in and out. I have also used the load feature to have another movie file load and play when the last one is finished.It works fine locally on my machine but when I upload it to the server to be viewed by all I get pauses in between movie files.

View 2 Replies

ActionScript 3.0 :: Click On Another Greeting The Original Greeting Still Plays In Ie - Swf Caching Or XML Caching?

Dec 30, 2009

I have this PHP page that lists several people. When someone clicks on one of the people they are sent to another PHP page that has their video greeting in a .swf embedded into the page. This works by the php writing the path to the greeting video to the xml file that the .swf loads and plays.

Well in firefox it works perfect, but in IE when they try to click on another greeting the original greeting still plays. Its like the swf is caching the first greeting and refresh of the page does nothing to alleviate this. Is this a problem with the swf caching? or XML caching? or am I totally clueless?

[Code]...

View 1 Replies

Javascript :: Using Fzip Lib Under Adobe Air App

May 4, 2010

I'm currently working on a project for Adobe Air (1.5.3) and I need to unzip a file, copy some of its contents to another file. Then I saw people talking about the Fzip ([URL]) lib. The problem is that I don't know how to "import" or use this library with Javascript and Adobe Air, since Javascript doesn't have the import directive.

View 2 Replies

Javascript :: Use HTML Dom In Adobe Flex?

Sep 12, 2010

Can you use Html DOM in adobe flex to...

1) write/Auto fill in a form?

2) Read values in label? Textboxes? And use them in your program?

View 2 Replies

Javascript :: Adobe ExternalInterface Not Working In IE9?

Jul 20, 2011

I am calling an Actionscript function from JavaScript and it works in all browsers except for IE9. I narrowed it down to the js function that retrieves the movie object:

<script type="text/javascript">
var swf;
...

[Code]....

View 2 Replies

Javascript :: Use Adobe's Blaze DS Via ColdFusion Through Ajax?

Dec 7, 2009

I want to use Adobe's Blaze DS via ColdFusion through Ajax. I know enough ColdFusion and JavaScript to do what I want to do, but I want to add long poling into the application and it looks like the only way to do that is through Blaze DS...but I don't know enough about Flash/Flex to finish the job.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved