ActionScript 2.0 :: Getting Variables In Cache?
Feb 29, 2004
PHP Code:
<?
$dbHost= "localhost";
$dbUser= "sarin";
$dbPass="pingpong
$dbName= "sarin-_db";
[code]....
now... when it loads the swf... the swf get the variables from the database using this code
[AS]
loadVariables("journal.php",this);
[/AS]
and i have a textfield with variable set to jor..which is the variable from the php file which holds data from the database when i change text in the database it doesnt change in the swf unless i go to internet properties and empty the cache.... even when i hit refresh it doesnt update... how do I make it so each time u load the swf it refreshes data from the database?
View 7 Replies
Similar Posts:
Jan 5, 2012
I've got a model class with a bunch of Number variables that change frequently. They all dispatch their custom events, thus are bindable. In my UI, a couple of those class instances are bundled into an ArrayList that serves as the dataprovider for a Spark DataGrid. The class variables change perfectly fine, so problem there.
What I'd like to do now is to change the color formatting of those numbers (the corresponding labels in the gridcoloums to be exact) depending on the data that comes in, so to say change in green when the new value is bigger, change to red when the new value is smaller than the old one.
[Code]....
View 2 Replies
Feb 29, 2004
PHP Code:
<?
$dbHost= "localhost";
$dbUser= "sarin";
$dbPass="pingpong
$dbName= "sarin-_db";
$table = "calender";
[Code] .....
And I have a textfield with variable set to jor.. Which is the variable from the php file which holds data from the database. When I change text in the database it doesn't change in the swf unless I go to internet properties and empty the cache.... even when I hit refresh it doesn't update. How do I make it so each time u load the swf it refreshes data from the database?
View 7 Replies
Jul 28, 2009
Do FMS cores share the same FLV cache or does each core have it's own cache?
View 1 Replies
Apr 3, 2009
Whats the best possible way to pull the swf in html everytime from the server not from the system cache?I am using flash files in my hytml which grabs the data from XML, we frequently update our XMLs so we want our users to get the fresh swf from the server so that they get the latest feed.
View 1 Replies
Nov 24, 2010
This is my first post here in StackOverFlow, and I bring you a problem that is hauting my development team.
We are in a project, using stand alone FlashPlayer as a news displayer.The news feed is a dynamic XML returned from a ASP.Net request and runs on Windows XP.
The problem is:- The display is running in a bus screen and sometimes the internet connection fails, but we still need to keep displaying images from the news already downloaded. When we manually put a string on a URLRequest it works. The image is downloaded from the server, cached by the IE8, and re-loaded from cache if the internet is gone. But, when we dynamic retrieve the image url from de XML and puts inside de the URLRequest method, the re-load from cache do not work.[code]...
View 1 Replies
May 26, 2009
We have a web app. built in flash that allows customers to upload images and text, customize the container in which these will be shown (a swf file) and then embed the code into thier website. There is also a sharing options that allows their users to display this container, together with the content, on their websites. (For e.g you can see the container as the Youtube player and the content as the videos the user chooses to show). The swf container uses an XML file to know what to display.
Now, I am not a flash developer, but a person who takes care of the project.We are currently working on the app and the swf and we still find bugs. Every time we fix sth, I am told to erase my cache to see the changes. My concern is that the client/users might not see the newer version that we make available, but the old one. We can't tell them to erase the cache and we can't afford to renounce using the cache since the images are big.I was told that, sometimes, the browser does not see that the current version is a new one and loads it from the cache (actually, it never detected that there is a newer version and I always had to erase the cache). How can we tell the browser "now, load the swf from cache" or "now, don't load the swf from cache".
View 1 Replies
Jul 18, 2011
I'm working on a project that includes several flash elements developed using an XML method. The objects work fine in all browsers except IE. Here is the behavior in IE. You can interact with the objects fine the first time through, but if you leave the page and come back, you just get a perpetual loading symbol. You can get the object back by right clicking and pressing play, but that is an obnoxious work around. I think it is a caching error in IE, but I'm unsure how to fix it given that it is not occurring in other browsers.
View 1 Replies
Oct 26, 2011
I've made a program using AS3, AIR and php to look up a remote dir, and download mp3 file to a folder on my local machine.It works fine.However, even if I delete the downloaded mp3s from the folder on my local machine, and run a test, the program seems to 'instantly' populate the folder with the mp3s again, as if it's getting them from some windows temp folder, and not bothering to re-download them.I was wondering if the above is the case, and if so, if there's a way to force it to download the file even if it resides in a temp folder somewhere?[code]
View 2 Replies
May 19, 2010
The flashbox I've created is a dynamic object - like a coverflow - that loads 8 images (4 channels with a background and forefront image) on its first load and then every 5 seconds loads up another channel to replace one of the other channels. There are 8 channels & 16 images in all and the whole process loops. The images and the data incidentally are loaded via an XML file. Instead of loading the 16 images from the start and then loading them from the cache, it instead constantly loads new images, keeping the older images in the browser memory. If you leave it on the page with the flashbox for 30 minutes, then the browser memory can rise above and beyond the 500MBs of RAM usage mark. Leave it longer and it still racks up - for instance, I had Firefox (this is with all browsers though) get to over 2.5GBs of memory being used earlier on today.
View 1 Replies
Nov 13, 2009
I have built a flex application which has a "main" project and it is assosciated with a few RSL's which are loaded and cached once i run my "main" application. The problem i am facing is that the newer versions of my RSL's are not being loaded as the cache holds the older version of my RSL and execxutes the same. Each time i have got to clear the cache to execute the new version of my RSL's, which is irritating.
View 1 Replies
Oct 31, 2011
i have a flash app that requests xml generated by a php script. The data doesn't change much, and i would like flash to cache the xml instead of loading it every time. I've been checking my access logs, and every single time i reload a page with the flash app on it, the php file is accessed and the xml downloaded.
I've read that flash doesn't control what is cached, as it just requests something from the browser, but nothing else that flash downloads (i.e. mp3 files that are supplied by the xml) doesn't get cached. So I'm not really sure what that means.
I've googled the heck out of this, but everything i find is telling me how to keep flash from caching stuff.
Here's the code i used (AS3):
[Code]...
View 1 Replies
Jan 28, 2009
I have a website that is currently all flash-based. Unfortunately if you return to that website, it won't change a thing until you delete your temporary internet files, being that it is flash. So for every update, I have a new .swf file ie: 2801091.swf and this works perfectly fine. However when you enter the calendar, it loads the .xml file but it's always what's been cached.
1) Everything about the flash file can be revised if it's the newest version so dated .swf files aren't created every time there's an update?
2) A way to clear the .xml cache or refresh it every time the calendar is opened?
View 5 Replies
Feb 11, 2009
I'm sure some of you have run into the IE6 xml / flash issue i.e. no-cache = no load xml. I'd like to know if there is a way to cache my xml using actionscript?
View 5 Replies
Feb 15, 2010
I've got the following problem. I'm looping a FLV in a flash banner, but everytime i the video is looping it reloads the FLV instead of using the flv from the users cache. Is this even possible? It would save me lots of bandwith and serverload.This is the actionscript i use,
Code: Select allvar netConn:NetConnection = new NetConnection(); // Create a NetConnection object
netConn.connect(null); // Create a local streaming connection
[code].....
View 4 Replies
Jan 13, 2009
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
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
[code]....
View 2 Replies
Jan 11, 2010
I'm having this strange problem with the progress bar in the gallery section of my site. I made the site on flash.Go to the English section and click any image. you'll see the progress bar not working but wait a bit untill the gallery loads. There's no close button but if move your mouse pointer to the up right corner it's there, click it. Now click on the same image and you'll notice that now the progress bar and close button works fine.url.. It's weird because when i publish the site and test it on my computer it works fine. But when i upload the files to the server this happens. The preloader only works when it's in the computer cache.
View 1 Replies
Apr 13, 2011
I am making a swf of surgons.. which going to load in a base moviclip and they scroll ther right left. The problem is its taking to much time so I want a script which will load one by one these files.
Or
A script to load other swf(of surgeons) in browser cache. So when user click on these surgeon they start their work. The voice swf of surgeons. I want meanwhile they load in browser cahce..so its not take time.
View 1 Replies
Aug 8, 2009
one question, can I load a movie in any giving time of the main swf without playing it and play it when I choose to? Or, can I load to the cache a movie so I can play it later?
View 12 Replies
Jun 3, 2010
I would like to be able to clear SWFs from the cache in AS3
View 12 Replies
Feb 17, 2010
Im developing an interactive in wich I use many animations either frame-by-frame (image-by-image) or with an embedded flv in the timeline and I have noticed that all of them don't play smoothly when first played, but once the animation has occured once they play the way its supposed to be. Im assuming is because once played an animation gets into the machine cache or something, so I wanna know if there is any way to force an animation to get into the display cache before is played.
View 6 Replies
Jul 29, 2010
I use xp with windows 2000 and firefox.This is used for facebook games and have been advised to clear the Flash cache. Found the page with the information on it but it doesn't make sense where to start the process.
View 1 Replies
Sep 14, 2010
I have an Flex app that loads xml files with URLLoader/URLRequest methods, and works perfectly. The problem is that the .xml files are stored in "Temporary Internet Files" folder of the browser, and we dont want that the user can open or read those .xml files. Do you know any way to prevent that xml files are stored in the user browser cache folder? or any alternative way to load the data of the xml files, or read it directly from the server?
View 6 Replies
Jan 31, 2011
I have recently been working on a Flash file that dynamically loads a movie based on the contents of a simple XML file. I was concerned about caching issues so tried to set up the code to avoid the XML file being cached causing the wrong content to be loaded. I did this by adding a dummy query string to the file link which is a numerical value generated by getTimer().In practice the system mostly worked but occasionally old content would load even though the XML had been changed. The code runs a setInterval that checks the XML every 20 seconds and checks if the loaded file specfied has changed. The code loads the XML with the following code:
The getTimer() functions starts counting in milliseconds as soon as the movie runs so there is a chance that the same query string is assigned to more than one file, meaning that an old cached version is loaded instead of the new, live file. I am now thinking about ways to improve this code and generate unique values for the query string. I thought using the epoch time - the time in milliseconds from which Flash calculates time and dates which is set to Jan 01 1970 - would generate a new value every millisecond and maybe adding an additional random number to that value to further reduce the chance of the same query string being generated more than once.
this.onEnterFrame = function () {
var nowDate:Date = new Date();
nowTime = nowDate.getTime();
[code].....
View 1 Replies
Mar 29, 2011
I don't want Flash to store the video and image files it pulls in when I test publish the swf. Somewhere it's keeping those files in cache, making it impossible to test a realistic download situation ( such as loading indicators, buffering bars, etc ) because the 'loading' file is immediately available in its entirety due to being stored in cache.
View 14 Replies
Apr 11, 2011
In every language programming the most important item is caching data to have the higher performance by the way is there any special way in flash to cache?
View 4 Replies
May 20, 2011
I have an issue with downloading an image from a URL that is not getting updated at runtime. I'm using a URLLoader to download the file initially at the start of the app from some URL, then later on there is a call to the server which re-compiles the image into something else. After that the image is being downloaded again from the exact same URL, but as far as I can tell it's not getting the updated version, but is getting it from the cache that flash creates.
If I restart the application after doing all of this it gets the correct image when it downloads at startup, but I cannot for the life of me figure out how to get it to download the correct image at runtime. Does anyone have any idea how this can be accomplished?
View 1 Replies
Aug 3, 2011
I notice that games on facebook area caching lot's of swf files in browser temporary folder, I'm wondering how this is done, I'm new to web techs.
View 3 Replies
Jan 27, 2012
Trying to work out how I can tell if a downloaded file came from the cache or was freshly downloaded over the net. I need this because users will download multiple files and I am trying to give make an accurate downloader for them. I have made them download a sample file which I have made not to cache by doing the following:
private var _loader:URLLoader;
private var _rootPath:String; = "http:/example.com/speedTest/f4v/";
private var _startDownloadTime:int;
[code]......
View 9 Replies
Feb 23, 2012
I am using a Flash Component in our web site to show videos but I need a way to clear flash cache every time the page is loaded. Such a Flash Component configuration is based on an XML file to get the videos that will be played. Is there a way to do it using C# code?
View 6 Replies