GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
can anybody help me?
P.S. I`m using AS 3.0
Thank you.
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Sep 5, 2008, 00:17
View Complete Forum Thread with Replies
Sponsored Links:
GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
cab anybody help me?
P.S. I`m using AS 3.0
Thank you.
View Replies !
View Related
GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
can anybody help me?
P.S. I`m using AS 3.0
Thank you.
View Replies !
View Related
GetHours Flash Cache Issue AS3.0
hello,
I am trying to get time from user`s PC,
and change contents depending on if it`s day or night.
the following code works perfectly when I preview within flash.
it updates everthing when an event occurs.
BUT it only works first time when I open it from HTML,
unless I clear browser`s cash.
Code:
var nowStat:String;
stage.root.addEventListener(Event.ADDED, getTime);
function getTime(e:Event):void
{
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
nowStat = "day";
trace(nowStat);
}else {
nowStat = "night";
trace(nowStat);
}
}
can anybody help me?
P.S. I`m using AS 3.0
Thank you.
View Replies !
View Related
GetHours And EventListener Issue.
I `m trying to get time from user`s PC to see if it`s day or night.
the following code WORKS perfectly when I preview within flash.
BUT it only UPDATE TIME ONCE when I viewed in a web browser.
AND it updates only when I clear browser`s cash.
Code:
stage.root.addEventListener(Event.ENTER_FRAME, renew);
function renew(e:Event):void{
getTime();
}
function getTime():void{
var now:Date = new Date();
var hour:Number = now.getHours();
if (hour > 6 && hour < 18){
trace("NOW IS DAY");
// do something
}else if(hour < 8 || hour > 18){
trace("NOW IS NIGH");
// do something
}else{
trace("ERROR");
}
}
What do I need to do?
can anybody help me?
Thank you.
View Replies !
View Related
Weird Flash AS2/3 Hardrive Cache Issue
Hi Guys,
Lately since the start of my dev work with CS3 I ve been getting the weirdest stuff happening, and it is starting to hamper my performance and sometimes even throw me way off course.
It happens with the trace function.
Sometimes when I change a trace function within my classes to check for a value I get the same value as previously traced for.
For example Test 1: I trace the value burger
trace("BURGER IS "+burger) // Outputs BURGER IS YUM
Test 2: trace the value of burger but change the trace string
trace("WHOS YOUR DADDY "+burger) // Outputs BURGER IS YUM
It seems that a version of the swf is precached into my hardrive for easy compiling, but somehow is not updating when I change it. It is not for any stupid reason like I didnt save or something. I had some associates come over to my desk and showed them and they are convinced as I am that it some kind of bug.
Anyways I was wondering if anyone here has come accross this...and did they manage to solve it.
Thanks guys.
View Replies !
View Related
PC Versus MAC Loadmovie Flash Projector Built-in Cache Issue
I made a swf with a loadmovie action
it loads a jpg, unloads it, and later on reloads it... but it is not the same file. it has been updated on the server side...
it works fine on my mac, and the projector works fine...
it doesn't work on my PC.... GRRRR
the .exe reloads the same jpg, even though it has been updated on the server side....
It doesn't work on my PC in a Explorer... double GRRRR
And this is before using a web browser... and for the projector use
(i'm aware of the browser cache issue and i m actualy using loadMovie ("http://mywebite.com/image.jpg?1")
i actually like this methode, for browser issues... even though i do not really understand it ...
this is the first time i encounter a difference of behavior between MAC and PC using flash... (i divorced with Java because of this)
What should I do ??? i tryed to use removeMovieClip but it doesn't seems to help...
My MAC and my PC use the same network, same router, no proxi,
I came up with a feeling that... but i might be completly wrong...
As it is hard to think that there is such a thing as a cache in the swf projector...
I wonder if it doesn't happen because the swf behaves like it is inside M$ explorer browser while you open it on a PC... the Operative Systeme interface of the PC seems to be run by explorer ... ???
I tryed to take it of the PC, and windows doesn't run anymore...
View Replies !
View Related
Cache Issue
I have a flash movie that plays an animation while loading another swf in the background to the user's cache. This works nicely, as when the animation has finished playing the 2nd movie is ready to go. I've ran into one issue tho. If the 2nd movie isn't quite 100% loaded by the time it trys to load it into the main window, it will start loading again at 0%. Is there a work-around anyone knows about to this issue?
View Replies !
View Related
Cache Issue
hi,
i have tried following the kirupa tutorial on solving cache problems, but it doesn't seem to work.
I have a main html page with a flash button on it. Once you click on it, it opens a pop up window with a swf in it. What i am trying to do is to force tha pop up window to reload everytime poeple come back on it, as i have a preloader animation, etc.... but it keeps on loading the swf stored on the cache.
Should the code be:
myIdentifier=Math.round(Math.random()*10000);
loadMovie("content.swf?uniq="+myIdentifier,1);
content being the swf loaded in the pop up?
many thx
View Replies !
View Related
Cache And .swf File Issue
**********//////// As usual 10 minutes after posting a question on the forum the I find the answer..........
"loadMovieNum" instead of "loadMovie" seems to work, when using the variable.
Don't no why yet, so any comments appreciated.////////************
I am building an image intensive website, to cut download time I have split the movie, and am using the "loadmovie" function to access the seperate sections of the site.
The problem I am having is that when I upload the movie to the server the .swf files are getting cached, I have a suspicion that that may even be happening on the server. This is preventing me from updating the various sections of the movie.
To prevent the caching I'm trying to place a random variable on in this manner.....
on(release){
rn = Math.round(Math.random()*1000000);
loadMovie("new_movie.swf?="+rn,0); // doesn't work
//loadMovie("new_movie.swf?=3",0); // works (not random though)
}
Am I going about solving this problem the right way? and if so, can anyone tell me where my code is faulty?
T.I.A.
View Replies !
View Related
LoadVars IE Cache Issue
I have created a flash chat that uses loadvars, PHP, and MySQL. It works "perfectly" in Netscape, but IE seems to cling to old variables and won't let go - even if I empty the cache (physically) and restart the browser.
The more detailed explanation:
At startup, a php loadVars returns the "current_message_id," the database index of the latest chat message. Flash then adds 1 to that variable and sets out looking for the next message, etc.
In IE, when you go away and come back, the "current_message_id" is the one from your last visit, so the last chat replays before your eyes before you can join in. And if the database has been emptied, it just sits there and your new messages do not submit correctly. None of this happens in Netscape.
Sorry to be so long winded, but I guess the real question is: is there a way to guarantee that loadVars will return a fresh result, not a cached result?
View Replies !
View Related
Site Cache Issue
I've been working on a site that is composed of flash (a flash movie essentially). However, whenever I update it and try to view it, the browser uses the cached version instead of the new. This wouldn't be a problem if only I were to view it, but this isn't the case. Is there any way to either prevent the movie from being saved, or to ensure it is reloaded every time it is viewed?
View Replies !
View Related
Cache Issue :SWF File
Hi Everybody,
I want to refresh my .swf without clearing the cache or files. As we all know that just refresh doesn't work. So after quite a bit of searching i got some code here:
http://www.kirupa.com/developer/acti...icks/cache.htm
But i tried that without any luck. Does that work in all cases. And i am not sure if i am doing it corrrectly. What i did is - i created a New Blank file and on first frame i added this
myIdentifier=Math.round(Math.random()*10000);
loadMovie("myfile.swf?uniq="+myIdentifier,1);
It does embed myfile.swf but refresh still doesn't work. Is there any other method of achieving this thing.
Thanx.
View Replies !
View Related
Stuck Up With Cache Issue
Hi
I recently intiated in a project
where the user will be scrolling through a slide show and when they click a particular image they will be taken to another frame where they will be able to view the details of the product in the right and in left a 360 degree view of the product will be displayed
and the user can view all the products by clicking next and previous button on top
everything works perfect for me but
i am having a big issue with the 360 degree rotation
where when the user enters the first product the he will be able to view the its corresponding product and its details, but when they when they click the next or previous button
the details of the product changes but the same product remains there ie the product one remains there it does not change to its corresponding product view
each time the user has been forced to reload the page to view the corresponding product
I have displayed below the xml code
It will be very much helpful if some can sort this out
Quote:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("racer/showcase.xml");
previous.onRelease = function ()
{
prevImg();
};
next.onRelease = function ()
{
nextImg();
};
View Replies !
View Related
Java Session ID Cache Issue
Greetings and salutations intrepid problem solver.................................
I was able to load XML Java variables across a network, however I am now being met with a problem in that the jsessionid can not be passes, flash is sending its own, or it is cached.
Please note this is NOT a crossdomain policy file issue as Java is replying. This is not a flash 8 network access issue. It is a cache issue in dealing with session id I am sending to the java server, here is url:
Code:
http://noneofyourbusiness.Simple9LineServlet;jsession=529327FDD906F090503AD2EACD7FCD06?line0=1&line1=1&line2=1&line3=1&line4=1&line5=1&line6=1&line7=1&line8=1&gs=coralslots&pId=5"
And yes we have appended all manner of date/time/random numbers to this to prevent caching...............no bannana!
HELP WOULD BE REPAID WITH GRATEFUL NODS, RESPECT AND KNOWING WINKS.
cheers,
sam
View Replies !
View Related
Cache Issue, Not The Typical Question Tho.
First of all hello, I am new here as well as being new to Flash/Actionscript.
The problem at hand. I have a meter and a gauge that need to read XML constantly to update. Of course I ran into the cache problem, which I fixed easily enough by using CacheManager by Paul Newman. It does the append datestamp and random number trick.
Works great, but now the cache gets filled up fairly quick, especially with multiple objects polling the XML, making the browser slow and unresponsive.
I have a feeling I could fix this issue, for me anyway since I am running the server, with an XMLSocket connection, but I like it not being tied to port as I want to release this freely to anyone.
Anyone have any ideas besides the meta refresh tags in HTML? Those don't seem to work in I.E.
Ideas would be most welcome!
Thanks
View Replies !
View Related
Cache Issue With Load External Jpg
Question to all when you load a jpg with the loadMovie() function
Does it stay in the users cache once it is loaded?
If you removeMovieClip(); which will remove the jpg inside it and if you load the same jpg into another emptyMovieClip() will it load in straight away or does it have to load all over again because it's gone out of the cache????????????
View Replies !
View Related
Local Connection Or Browser Cache Issue?
Hi,
I posted this in the backend and scripting forum but not many replies so I am doing the dreaded....... cross post, sorry. I seem to be stuck on this...
FlashMX AS1.0...
I created a newreader movie that is populated by a textfile. I also created an admin movie to modify the textfile with a bit of PHP. The theory is to update the textfile for the newsreader movie from the admin, making editing the original newsreader.fla unnecessary.However, I would like to update the information without a browser refresh. I thought I might run into some browser cacheing issues when trying to update the data real time, so my idea was to use the localConnection method to update the newsreader with the content that is being saved to the textfile. I thought this would be a workaround for the browser cacheing the old textfile contents. This works fine locally, but when tested from a browser, the localConnection idea doesn't seem to work. In other admin demo's, after the user saves the info, I just provide a link to the textfile to update the browser cache. When refreshing the browser, the content is updated. I would like to find a way to do this in a real time situation. Here is a link to a small tutorial I tried to write using this method.....
http://ntdesigns.net/tutorial/NewsManager.html
Any suggestion appreciated.
Regards
NTD
View Replies !
View Related
Browser Cache And Data Load Issue
Hi there....
I have a flash 8 movie that uses amfphp/flash remoting. I have written various AS classes and such to assign my data to things like text fields, loaders and so on.
Now i have a movie that when I load it with a clear brwoser cache (replicated the behavior in both firefox and safari and win firefox), my movie works as it should. Now if i refresh the page, and view again, some of my data does not load. The odd thing is that it is not ALL of the data that does not load. Just some of it. Now if I clear the browser cache and reload the movie, all works again! Of course until the movie is reloaded again.
has anyone else experienced behavior like this before? It is driving me mad!
View Replies !
View Related
[MX04] Loading Dynamic Jpgs With Fade--cache Issue
hello. i'm using flash mx and working on this photographers website and have cut and pasted and tweeked a little code to load jpgs dynamically with a fade transition between the outgoing and incoming jpg. problem is that the first time you go to the site the images aren't cached and so the images don't fade in the first time. i would like to change that so everything fades accordingly.
my guess is that i need some kind of getBytesTotal() script to make sure that each image gets downloaded to the users cache first before it fades in.
but i'm not sure how to append the code i have with that script. i'm still definitely trying to grasp this stuff and am more of a copy/paste/tweaker of script than a write my own (although i'm working on it). any help would of course be greatly appreciated.
the website can be viewed here: www.ericpercher.com
and here is the script i'm working with:
jpgArray = new Array("images/image_0.jpg", "images/image_1.jpg", etc.)
//create two MovieClips that will hold the loaded files
this.createEmptyMovieClip("target1",1)
target1._x = 14;
target1._y = 76;
this.createEmptyMovieClip("target2",2)
target2._x = 14;
target2._y = 76;
//load first movie into clip 1 to start with the first image
target1.loadMovie(jpgArray[0]);
//set target 2s alpha to 0 so it can fade in
target2._alpha = 0;
activeTarget = target1;
currentIndex = 0
this.onEnterFrame = function() {
if (obj1._alpha > 0) {
obj1._alpha -= 10;
}
if (obj2._alpha < 100) {
obj2._alpha += 10;
}
};
button_0.onRelease = function() {
gotoAndStop( "dis0" );
if (activeTarget == target1) {
obj1 = target1;
obj2 = activeTarget = target2;
} else {
obj1 = target2;
obj2 = activeTarget = target1;
}
obj2.loadMovie(jpgArray[0])
obj1.onEnterFrame = function () {
if (this._alpha <=0 ) {
this.unloadMovie();
delete this.onEnterFrame;
}
}
};
then i have multiple buttons (button_1, _2, etc) which use the code directly above and load the next image in the array. thank you.
View Replies !
View Related
GetHours();
i want to make a digital clock in flash. i have produced if nearly 99% but the seconds and minutes does not change in dynamic textfields
i am offering the codemydate = new Date();
time = mydate.getHours();
min = mydate.getMinutes();
secs = mydate.getSeconds();
io = time;
mins = min;
sec = secs;
where "io,mins and sec" are names of text fields for hours, minutes and seconds respectfuly.
plz help me
fame(ijaz)
View Replies !
View Related
GetHours Trouble
I'm trying to make a MC which will show a different greeting (good morning, good afternoon, good evening) depending on what time of day it is. What I have done so far is make a MC with this code in the first frame:
hours = getHours();
if (hours >=5 and hours <= 11) {
gotoAndPlay (2);
} else if (hours >=12 and hours <= 17) {
gotoAndPlay (3);
} else {
gotoAndPlay (4);
}
In frame 2 is the "good morning" graphic, in frame 3 is the "good afternoon" graphic and in frame 4 is the "good evening" graphic. I then placed this MC on in the main timeline.
Right now nothing is happening. Is there something wrong with my code?
thanks,
Chris
View Replies !
View Related
GetHours() Problem
I am trying to script a Dynamic Textbox to show the hour at the time. I am using:
Quote:
mydate = new Date();
hour = mydate.getHours()
But when I use this the output shows 16 when it is 3 o'clock.
Can anyone help me with this problem please. Appreciated.
View Replies !
View Related
GetHours Question
I'm trying to load a movieclip at a certain time, 6 p.m.
I have found this script here.
onClipEvent (enterFrame) {
daynight = new Date();
dayframe = daynight.getHours()+1;
this.gotoAndStop(dayframe);
}
but it only makes it tween along. I need to know how to do something like.
from 6 a.m to 6 p.m it stays on one frame, and at 7 p.m to 5:00 a.m it plays another clip.
How is this done?
thanks.
View Replies !
View Related
GetHours Question
I'm trying to load a movieclip at a certain time, 6 p.m.
I have found this script here.
onClipEvent (enterFrame) {
daynight = new Date();
dayframe = daynight.getHours()+1;
this.gotoAndStop(dayframe);
}
but it only makes it tween along. I need to know how to do something like:
from 6 a.m to 6 p.m it stays on one frame, and at 7 p.m to 5:00 a.m it plays another another frame (frame2).
How is this done?
thanks.
View Replies !
View Related
GetHours Question
I'm trying to load a movieclip at a certain time, 6 p.m.
I have found this script here.
onClipEvent (enterFrame) {
daynight = new Date();
dayframe = daynight.getHours()+1;
this.gotoAndStop(dayframe);
}
but it only makes it tween along. I need to know how to do something like:
from 6 a.m to 6 p.m it stays on one frame, and at 7 p.m to 5:00 a.m it plays another another frame (frame2).
How is this done?
thanks.
View Replies !
View Related
GetHours From Aspx Pages...
hey there, I've got some code I've been using to get the time from the users clock -
Code:
getUTCHours
, but I'm wanting to develop a different system....
I'm looking to knock up some aspx to spit out the date in a flash friendly format...
But what's the best format to use and how can I get Flash to grab the info required?
I hope that you kinda understand what I mean....
I know a way of doing this with:
Code:
pollForText();
and grabbing variables from .txt files, but I was wondering if there was a better solution, as this, I feel, is a little clumsy.
Cheers
View Replies !
View Related
Date.getHours And Bugs
so it is my understanding that the .getHours method doesnt work for IE on Windows unless the player version is v5 - i would like to INSURE that this function works on my site - it is actually crucial since one of the site's principal functions is to calculate time zone differences - now i have checked out the various methods of the Date object and confess that i find them to be somewhat difficult to understand... (i'm a designer ok?) can someone out there point me in the direction for implementing a simple time zone calculator - preferably all in Flash - i noticed that JavaScript and ActionScript have almost exactly the same methods with regards to their Date objects so i could conceivably use JS's .getHours method to determine time 100% of the time on 100% of machines (unless they have JS turned off i guess) but i have had a difficult time before trying to pass values from embedded JS (getURL : functions in header of swf...etc) so all Flash is preferable...
any thoughts???
bvb
View Replies !
View Related
Simple GetHours Question ...
I should know this, but can anyone tell me whether getHours always returns a string of length 2 (i.e: ... 07,08,09,10,etc ....)
or
just whatever the actual hour is (i.e: ... 7,8,9,10,etc ...)
Thanks,
Stephen.
View Replies !
View Related
GetHours Not Working Online?
hi,
I've written a simple function:
ActionScript Code:
//ShowTime Function
function ShowTime() {
now = new Date();
t = now.getHours();
status.text = t;
}
and it works perfectly fine when the swf is sitting on my hard-drive, however, once it's online, it won't work. Any help would be great.
Al
View Replies !
View Related
.getHours(); Works Locally But Not Online
Hi all, wondered if you help me with this one...
I've got an if statement which controls a background for three different times of the day, day, midday, night.
The problem is that once uploaded the night if statement does work. It does however seem to work locally though, that bizarre right!?
var hour = new Date().getHours();
trace("hour= "+hour);
if (hour>0 && hour<5) {
gotoAndPlay(40);
}
else if (hour>5 && hour<11) {
gotoAndPlay("day");
trace("day");
}
else if (hour>11 && hour<18) {
gotoAndPlay("miday");
trace("midday");
}
else if (hour>=18) {
gotoAndPlay(“night”);
trace("night");
};
Any one got any ideas, thanks in advance
Jon
View Replies !
View Related
[F8] Question Involving GetHours() And Testing.
i am developing a site that will change appearance based on the time of day using the code below:
Code:
my_time = new Date();
identifier=my_time.getHours(); //gives U an integer 0-23
if(identifier<7||identifier>21) {
//here is the nitetime part
} else {
//here is the daytime part
}
I have 2 questions.
1. is there a better way i can test this site without having to change the time on my computers clock for each section?
2. do you feel this code is the best approach to obtaining this goal?
i appreciate your help
View Replies !
View Related
Controlling Movie Clip By GetHours()
hi there
I've got a background with night & day images, and want to switch between the night & day by getting the time from the users computer - at 8am the day kicks in and 8pm night kicks in.
Before waiting hours for it to see if this would work can someone have a look and tell me if I'm on the right lines?
thanks
function dayNight(){
var hour=currentTime.getHours();
if (hour>8){
gotoandPlay("Day");
}else{
gotoandPlay("Night");
}
Thanks in advance
View Replies !
View Related
Using GetHours To Control A Movie Clip
Hey guys,
I have a movie clip that animates across a set of labels that are based on a 24hour day. The hours are separated into blocks and the basic idea is to mimic a pda style daily calendar based on the current hour. The day starts at 6am and ends at 9pm.
This is the code i have but doesnt seem to be working correctly, im not sure i have it right here but im thinking the "AM, PM" thing is messing it up...
var myCalate = new Date();
var myMinutes:Number = myCal.getMinutes()
var myHours:Number = myCal.getHours()
var myTime:String
if (myHours > 12) {
myTime = "PM";
} else if (myHours == 12) {
myTime = "PM";
} else {
myTime = "AM";
}
if (myHours > 23){
myHours = myHours + 1;
}
if ((myHours <= 6) && (myTime == "AM")){
gotoAndPlay("six");
}
else if ((myHours >= 6) && (myTime == "AM")){
gotoAndPlay("one");
}
else if ((myHours >= 9) && (myTime == "AM")){
gotoAndPlay("two");
}
else if ((myHours >= 12) && (myTime == "AM")){
gotoAndPlay("three");
}
else if ((myHours >= 15) && (myTime == "PM")){
gotoAndPlay("four");
}
else if ((myHours >= 18) && (myTime == "PM")){
gotoAndPlay("five");
}
else if ((myHours >= 21) && (myTime == "PM")){
gotoAndPlay("six");
}
Thanks to anyone who can help!
View Replies !
View Related
Image Load Based On GetHours()
Hello,
I have 4 images...morning, afternoon, evening, night. I would like to load each image based on getHours return.
Between 3:01am and 12pm I would like morning.jpg to load.
12:01pm - 5pm - afternoon.jpg
5:01pm - 8:00pm - evening.jpg
8:01pm - 3:00am - night.jpg
Make sense?! Thank you for the help.
View Replies !
View Related
Flash & Cache
i have external .jpgs being called into a flash mx movie using the loadmovie command. i wanted to replace the .jpg and have the .swf update with the new image showing. instead it seems like either the .swf or the .jpg is being cached and the movie never updates. is there a way to have the .swf and the .jpgs not cache?
View Replies !
View Related
Flash Without The Cache
how can i get my flash movies not to enter the users cache.
when the site is updated if the user hasn't emptied his cache then he will see the old version. this is not good
simple question. lets hope its a simple answer
View Replies !
View Related
Flash And Cache
hi,
i can´t solve this problem, once browser reads flash it stay´s in browser cache. if it´s posible to refresh page afer let´s say one day. I want to other people to load that flash nest time they visit
tnx
View Replies !
View Related
Does Flash Cache?
Hi there,
I'm working on a little project where I'm loading data (read: .swf files)externaly on several different frames. Because of this, my preloader doesn't work that good, because of the extra content that get's loaded later on.
So now I'm wondering if it's possible to first preload all thes files in a container movieclip using a MovieClipLoader, and then remove this container. Would the swf files then be cached and ready-for-use later on?
Thanks,
~Sph
View Replies !
View Related
Flash 8 - XML - Cache
Hi!
I am developing an application with Flash and XML. This application retrieve all the information from the XML.
My problem is that, these XML has information that I don't want people know... and it starts when the swf and xml files are cached by the browser/flash player
* - I am using Flash 8,
* - XML is not encrypted (Is this a good solution?),
* - ActionScript 2.0,
How about another solution?
Please, let me know if there is any information you need to help me...
Thx lot,
nitz
View Replies !
View Related
Flash Cache
i have a header that is controlled using variables to html to ( highLight current selected button ) to html pages something like movie.sherri.swf?currentBtn=1
but problem is that my header loads everytime i click new page, is it possible browser load file from cache once it is downloaded from server? and also reconize what current button is hilighted?
i am also reading some article to fix it, i think that is that most common problem. i hope someone knows this. any help is appreciate it.
Edited: 02/27/2008 at 05:45:09 AM by akdesignnow
View Replies !
View Related
Flash Cache
i have a header that is controlled using variables to html to ( highLight current selected button ) to html pages something like movie.sherri.swf?currentBtn=1
but problem is that my header loads every time i click new page, is it possible browser load file from cache once it is downloaded from server? and also recognize what current button is hilighted?
i am also reading some article to fix it, i think that is that most common problem. i hope someone knows this. any help is appreciate it.
View Replies !
View Related
Flash Cache
sorry didint know how to call this but what im interested in is knowing if for ex....i want a movie clip to play once as the site is 1st loaded onto the fresh & new visitors machine but stays as something else(maybe a still frame with an img) for returning visitors.
the main reason i want this is because i want that video to play for the new ppl that come to the site the 1st time around, and plays something else when they reload/come back to the site. since the movie has sound, its not something i want to play EVERYtime they come back in you know.
thanks for any help
View Replies !
View Related
Flash Cache
Hi all,
This question is more about updating swf and xml files on the browser. I have a gallery site that has muliple swf files loaded on the master swf on button click. These swf files loads an xml file.
My problem is that whenever I update the xml or swf file, the browser still has the flash cache stored so I have to manually refresh the file to see the changes. As in, I can't just refresh the index.html. I have to refresh the /xml/filename.xml or /flash/filename.swf
Which works but then when other people view the site again, they won't know that they have to refresh the files because they dont know the file name or path. Know what I mean?
I researched the net and found solutions like using index.php instead of html or using a random variable string like index.php?mod="34342234" but that only seems to update the master swf.
Does anybody have solutions for this? Thanks
View Replies !
View Related
Flash +IE Cache
How can i stop browsers from caching flash animations? I created an MP3 player which loads an xml playlist but the problem is that IE caches the movie + files that are imported to it. The playlist is randomised using a php script but if it's cached, the new version is never loaded (i've tried meta tags to make the content not be cached etc).
Any ideas?
View Replies !
View Related
Does Flash Cache?
im a real newby to flash, but i needed to use it in a site.
i have a short movie as part of the main header navigation. whenever a link is clicked, the movie plays over again.
my question is, does the browser cache the swf file or does it request it from the webserver each time?
View Replies !
View Related
FLASH Cache
I seem to have a problem with an ASP page that uses a FLASH header.
http://www.utakeitback.org/Resources...dProductType=4
This is my online catalog. When a user add something to their cart and then removes the item it shows the basket is empty. Then if you navigate away and click the 'View Cart" Icon it shows the item as still there, even though the database shows that the item is gone. The only way to permanently remove the item is to refresh the basket page after you have removed the item...
I'm not the one who created the FLASH header so I was hoping someone here can tell me what I need to change to make the page refresh from the link.
Thanks,
Matt
View Replies !
View Related
Flash And The Cache?
Ive noticed that when putting my flash on a live server to test the loading routines that I h ave to explicitly clear the cache from whichever browser im using before it will update to the new files..
This wouldnt really be a problem but the site im working on is going to go live with some areas "under construction".. namely an extra gallery that will be added later at the request of the client..
problem is if some user checks back and it reloads from the cache and not the updated files.. then well.. you see the problem..
i doubt your average user will know to clear the cache before checking the site again, they will just see the old stuff and assume that it hasnt yet been updated..
is there anyway to solve this issue? or is it just "one of those things"
View Replies !
View Related
Flash And Cache
Hi all.
Reading an old thread on var caching inside swf i've found this:
append this line to sendAndLoad url "to clear the variables from cache"
ActionScript Code:
load_init.sendAndLoad ("asp_files/gameInitialize.asp?cacheKiller=" + new Date ().getTime (), DataReply);
I can't understand why now there aren't no more swf in my cache. I want instead that the swf remain in cache and the aspx files with the appended vars be deleted.
Thx to all
Sorry for my bad english
View Replies !
View Related
Flash's Own Cache?
Last edited by nathand : 2003-11-20 at 14:10.
Does Flash have it's own "cache" ?
I have FLA#1 that has a mc that loads FLA#2's swf... However, every time I do Test Movie on FLA #1 after making a change to FLA#2, it's using an older version of the swf.
I will note though that FLA#2 publishes to another server on our network. FLA#1 then uses the absolute URL to do the loadMovie.
Any ideas why? I have to completely exit Flash and then reopen it EVERY time I do any change to FLA#2.......
Thanks!
Nathan
View Replies !
View Related
Flash Page On Cache
Good Mourning,
Why some flashes pages stay in the cache of the browser and others no? Why this happening?
Please send me a quick answer,
that's urgent.
Thanks again,
Angelistis.
View Replies !
View Related
|