/ Forside / Teknologi / Multimedie & design / Flash / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Flash
#NavnPoint
bentjuul 4251
molokyle 1978
Klaudi 1488
jhvp 1265
pallenoc 1160
katekismus 1020
Fnollerpi.. 790
slander 510
Dr.Disco 500
10  Flash77 500
ActionScript - Flash/ASP - MAC
Fra : Sascha


Dato : 30-01-02 18:10

Hej

Jeg har nu siddet i en dag og prøvet på at finde ud af hvordan man for
Mac'en til at opdaterer sine variabler. Virker uden problemer i Windows.

Variablerne kommer fra en DB.
Når Mac'en først har læst fra DB en gang, så kan ikke den ikke opdatere sit
text vindue med ny text.
Jeg kan godt få den til at udstifte texten hvis jeg bruger en knap, men ikke
per automatic.
Jeg kan se at den henter mit asp script med rette tids interval.

Er der nogen mulighed for at rense hukommelsen i Mac flash plugin, så den
reloader texten igen?

Eller et eller andet klogt som jeg ikke kan tænke mig til.

mvh
Sascha D A Peteren




 
 
Krister (02-03-2002)
Kommentar
Fra : Krister


Dato : 02-03-02 19:46

Hej Sascha

Macromedia siger:

Web browser caching
SWFs, like other documents and media retrieved by a Web browser, are often
saved, or cached, locally on the user's hard drive. The next time that media
is requested the Web browser may load the file from the cache instead of
downloading it over the network. This might be desirable for a Flash movie
whose content doesn't change often but undesirable for SWFs that are updated
frequently with new content or information. Using the following techniques,
SWFs can be forced to expire immediately from the Web browser's cache or the
browser can be forced to re-download the media upon every attempt to access
it.

Note: The META tags used below will only work with browsers that support
these tags.

Use one of three methods to ensure SWF files are downloaded each time: 1
Using the 'Expires' header. The Expires header of an HTML document tells a
Web browser when a cached document should expire from the cache. Using a
date in the past ensures the document will always be expired.

Insert the text below between the <HEAD></HEAD> tags of the HTML document
containing the embedded SWF.

<!-- BEGIN INSERT -->
<META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT">
<!-- END INSERT -->
Each and every time this document is requested the browser will notice that
the cached version has expired and will download the file from it's server
of origin.

2 Using the Pragma: No-Cache header. This code directs the browser to not
cache the document at all.

Insert the following text after the closing </BODY> tag of the HTML page
containing the embedded SWF.

<!-- BEGIN INSERT -->

<HEAD>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</HEAD>

<!-- END INSERT -->

Note: the Pragma: No-Cache header does not work with Internet Explorer 5.
Microsoft recommends using the Cache-Control header, instead. See
Microsoft's article on this subject.

3 When linking between HTML pages, it's possible to force the linked page to
be loaded from it's server of origin and not from the browser cache. To do
this simply place a query-string operator, ?, followed by a number on the
end of the link URL.

For example, if one HTML page contains a link to another page called
'stockPrices.htm', then to force the browser to download the latest version
of that page from the Web server set up the link in the HTML page like this:

<A HREF="stockPrices.htm?1">Current stock prices</A>

Hentet fra http://www.macromedia.com/support/search/index.html og søgeord
var cache.

Krister

"Sascha" <sascha@mir.dk> wrote in message
news:SDV58.8850$Eu2.955987@news010.worldonline.dk...
> Hej
>
> Jeg har nu siddet i en dag og prøvet på at finde ud af hvordan man for
> Mac'en til at opdaterer sine variabler. Virker uden problemer i Windows.
>
> Variablerne kommer fra en DB.
> Når Mac'en først har læst fra DB en gang, så kan ikke den ikke opdatere
sit
> text vindue med ny text.
> Jeg kan godt få den til at udstifte texten hvis jeg bruger en knap, men
ikke
> per automatic.
> Jeg kan se at den henter mit asp script med rette tids interval.
>
> Er der nogen mulighed for at rense hukommelsen i Mac flash plugin, så den
> reloader texten igen?
>
> Eller et eller andet klogt som jeg ikke kan tænke mig til.
>
> mvh
> Sascha D A Peteren
>
>
>



Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408522
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste