January 28th, 2003, 11:59 AM
Flash links loading pages from cache
I have a page with a Flash movie on it. In the flash movie there are some links. One of the links points to a ColdFusion page that is producing some dynamic output. There is also a normal HTML link to that ColdFusion page on the same page the Flash movie is on. When I click the link in the Flash movie, it loads the page from the cache, but when I click the HTML link it makes a new request to the server, allowing my dynamic output to be generated correctly.
I'm using IE 5 Win.
What gives? Why is a link to the same URL loading the page from cache when clicked in the Flash movie, but correctly requesting it from the server when clicked in the HTML? How do I fix it?
January 28th, 2003, 12:08 PM
January 28th, 2003, 03:05 PM
I'd want to see the Flash code.. but Flash treats a link the same as anything else....
You do have the options in Flash to load in a different frame/window... bu tnothing like - 'load from cache'.
If you have a link in Flash and you want to make sure that it is always loaded from the server, and never from the chache... you just append some random variable to the URL...
getURL("myscript.cfm?s="+ (new Date().getTime()));
January 28th, 2003, 10:37 PM
In my case, the whole idea was to avoid having to edit the link in the Flash file.
January 29th, 2003, 03:32 AM
Yeah - it's a 'hack', but Flash has no other way of manually loading 'outside' of the cache.
Sorry it didn't work for ya...
January 30th, 2003, 10:14 PM
Don't think I don't appreciate the suggestion, or that that is the SOP for Flash links.
To make a long story short, I had a situation where I needed to make a link lead to a different page than it was currently. The link was included in HTML as well as a Flash movie throughout the website. My goal was to effectively change the link without editing all of the pages in the site (I didn't create the site, so it wasn't equipped with my Unique Data Management system) or changing the Flash file (I have done absolutely nothing in Flash). It would have worked except that, as I explained, the Flash link loaded a cached page instead of triggering processing of my ColdFusion script on the server.
Thanks for the info.
January 31st, 2003, 01:22 AM
Ehh... you do what you can.
I never thought you didn't appreciate the 'hack'.. I was agreeing with you - it's a hack. I wish MM would have given more freedom over things like that... but that'd probably make the player download bigger... and that's a no-no...
Yeah - JS and AS are both ECMA262 based... and for the most part compliant.