| ::: About this Blog ::: |
Welcome to Arul's Blog! Weblog on Multimedia,
 |
Flash MX |
 |
Director |
 |
Dreamweaver MX |
 |
And me :) |
Here I'm going to share my views, opinions and code with you all. |
| ::: Time Zone ::: |
All Times on this blog are
GMT + 5:30 Hours
(Indian Standard Time) |
|
Monday, January 12, 2004
|
Update.Arul's Blog: ActionScript Highlighter Version 2 Released!
Hi Everyone! I'm happy to announce the launch of Actionscipt highligther v2.
I've fixed many of bugs in the previous version (hope I fixed all). Now this new version fully supports Actionscript 2.0 and uses CSS styles to color the keywords so you can easily change it to your favorite colors. Help me by finding the bugs and list them all in the comments.
Have a look at it here!
posted by Arul
| link
| ^top
| next> |
add comment |
Friday, January 02, 2004
|
Tips.Flash MX: Solution for skipping files from getting cached by Server and Browser.
Cache is a place to store something more or less temporarily. Web pages we've visited are stored in our browser's cache directory on our hard disk. Likewise, ISPs and Web Servers cache web pages which speeds up access times for users, as the page is being read from the cache memory and not downloaded from the actual web site
It can become a problem when we are loading external content into flash and we update the files more frequently.
Say for example when we are loading an XML file in flash for content, some times we used to wonder why the changes we did in the XML file is not reflected in flash. It is because of Caching which is happening either in the server or in the browser. We have some server side solutions to avoid this problem when the data is dynamic but it won't help when we update the files manually.
We can avoid such problems in flash itself by passing the randomized query string along with the filename. I've written the function which can be used for this purpose. Here is how you can use it.
//sample usage
#include "skipCache.as"
my_xml = new XML();
my_xml.onData = function(dta) {
trace(dta);
};
my_xml.load("myfile.xml"+getSkipCacheString());
this getSkipCacheString() will return a blank string("") when the swf is running as a local file and returns a random string like "?CacheBuster=0.0308893630281091×tamp=1073037565155" when the swf is loaded from a web server (i.e, Website)
You can download the actionscript file from here!
posted by Arul
| link
|<prev. | ^top
| next> |
comments [1] |
footnote:-
Also check the recent entries
and feel free to add your comments. I need your comments to improve this blog
|
|