473,385 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Flash objects in IE cache..!

Hi there all. (first of all, sorry about my bad english)

I need some help over here. I'm developing an asp.net application that works as an administrator site for other application built in flash. The basic Idea is to generate xml dinamic so the flash movie can read its content any time is invoked..

I was forced to implement a "preview" kind button that allows to see who the flash will be seen. So i've made an extra aspx page that contains the flash object.

There comes the problem. The 1st time that u watch the preview its ok.. but seems like the object is stored on cache, so if u make any change in the content with asp, generate another xml, but the preview is still the same. So i have to go to my internet options, clear cache and then preiew so it works fine (I don want to do that)

I've tryed everything.:

meta tags: <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta HTTP-EQUIV="Cache-Control" content="no-cache" />

Server side HTML Header edit:
Response.Cache.SetCacheability(HttpCacheability.No Cache);

Flash code to avoid cache]:
var dummyquery:String = (isLocalFile ? "" : ("?random=" + Math.random() + "&timestamp=" + (new Date()).getTime()));
mymc.loadMovie("mymovie.swf"+dummyquery);

etc etc..

All of them seems to work fine on Firefox.. but IE is the "!%%#.

I dont know what else to do and i'm pretty frustrated now. So i'm asking for help.

I appriciate every single answer that u gusy can give me.. thanks.!!!
Sep 6 '07 #1
5 2409
Plater
7,872 Expert 4TB
Well you can try:
Expand|Select|Wrap|Line Numbers
  1. Response.Cache.SetNoStore();
  2.  
But the flash object is usually kept in a seperate cachin mechanism, so I dunno
Sep 6 '07 #2
Thank u very much men for a quick answer.!!

yeah well.. i'd tried but seems not to work.. i dont know if im doing something wrong. this is the code of the "caller page". I got a gridview with all the pages that are loadable with flash, and the button "preview on it as a command:

if (e.CommandName == "Preview")
{
// Generate Presentation's xml
try
{
Presentacion presentacion = PresentacionDAO.get(IdPresentacion, (String)Session["USER_ID"]);
String nombre_presentacion = presentacion.Nombre;
Lamina[] laminas = LaminaDAO.GetAllLaminas(IdPresentacion);
Lamina lamina;
int cantidad = laminas.Length;

// Create the Index
GeneradorContenido.CrearIndice(cantidad, Server, nombre_presentacion);


for (int i = 0; i < laminas.Length; i++)
{
lamina = laminas[i];
GeneradorContenido.GuardarADisco(lamina.Contenido, Server, i+1, nombre_presentacion);
}
}
catch (FormatException)
{
FormsAuthentication.RedirectToLoginPage();
}

// and REdirect.!!!!

// this random number was another patch for avoid cache.. didnt work also
System.Random r = new Random();
int rand = r.Next();

foreach (DictionaryEntry de in HttpContext.Current.Cache)
{
String ess = de.Key.ToString();

}
Response.Cache.SetNoStore();
Response.Cache.SetCacheability(HttpCacheability.No Cache);
Response.Redirect("Presentaciones/" + p.Nombre + "/index.aspx?asd=" + rand);
}



it might be that im doing something very wrong.. but i dont think so because it works on Firefox very well...

the other thing that i don't understand is the fact that the application is built under ASP.NET code.. witch seems to be native with Microsoft and his own explorer.. but it seems to avoid all the code...i mean.. wtfk?
Sep 6 '07 #3
Plater
7,872 Expert 4TB
The setnostore should be used alone and you'd want to remove the nocacheability line.

The problem is that only stops the caching of the page, not of objects on it. You need the flash object itself to be marked as no cache.
Which might be better directed over to the Flash/ActionScript section
Sep 6 '07 #4
ok.. ill try that.. ill head to AS people now...

thanks for ur time..
Sep 6 '07 #5
I've FOUND A SOLUTION.. (just in case u want to know)

the deal is to randomize the xml loaded everytime

eg: xmlTodo.load("laminas/"+numeroLamina+".xml?bola=" + Math.random());

that way the flash is forced to look for the new version of the xml because there is no other called like that.!!

(note: Seems like only works on web enviroment.. if u try to use this from flash compiler it will say something like "it cannot open whatever.xml?bola=xxxxxx" because is not found..)
Sep 6 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Joey Martin | last post by:
This is more of a flash recommendation question than ASP related, but I use this forum a lot, so wanted to see if anyone can answer. My page header is flash. One the header is flash. It's about...
2
by: avanhalen | last post by:
To embed flash objects in my pages, I read them from a database. A script file (Filedownload.aspx) reads it from the database, and streams it to the browser. Here are two example flash objects...
10
by: netnet | last post by:
I have a collection of objects that I store in the session. Then I look in that collection to see if the collection.contains an object. it answers false. If I dont store that collection in the...
2
by: cgdev1 | last post by:
Hi Folks, I'm somewhat a newbie to .Net (2.0) and even newer to Flash. I'm trying to incorporate a flash (.swf) file into my application. The code* below works in a .htm page (added to my...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
1
by: Sura | last post by:
Hi I have a flash interactive window which has html links and this appears on an html page. This window can be moved with the mouse on the html page. The html page has an iFrame too. When the...
3
by: =?Utf-8?B?cGVsZWdrMQ==?= | last post by:
is it possible to load some how a flash into a webpage which has an embed object and that the flash will be outside of the IS folder? thnaks in advance peleg
1
by: Ravenshield | last post by:
Hi there all. (first of all, sorry about my bad english) I need some help over here. I'm developing an asp.net application that works as an administrator site for other application built in flash....
2
by: lionbarrage | last post by:
Hi all, I was just wondering if anyone knows how to grab an image from a flv or a swf when a user uploads a file? Any help would be appreciated!
13
by: DigitalDave | last post by:
A project I did awhile back stored php5 objects in elements of the $_SESSION array between pages that were navigated on the site. There were object classes representing teachers, and object classes...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.