ActionScript 3.0 :: Reload An Updated, Remote Xml File?
Jul 8, 2009
This seem like a silly question but as far as I've found: It's impossible to reload an xml file from a remote location while the SWF is running.
For example, I have a kiosk project that will run 24/7 (with a restart each night). I have an "calendar events" loading off an XML file that I want to keep on a webserver so I can update the kiosk by editing the XML file. However, the SWF caches the first XML file and keeps reusing it. I'm testing this by triggering a function that reloads the XML file with a button click.
I found trick that concats a unique ID to the file name which prevents using the old file but that means I'll have an ever growing list of XML files in the Temporary Internet Files folder.
View 7 Replies
Similar Posts:
Apr 8, 2011
I'm somewhat new to FMS. We're creating a chat application and using s remote SharedObject to keep everyone in sync about who is in the room. But despite the fact that I use the following:
_sharedObject.setProperty("groupList", groupList);_sharedObject.setDirty("groupList"); to force the shared object to update the list of who's in the room, for some reason it does not always update correctly when someone enters the room and adds themselves to the shared object. The problem seems to be that the SyncEvent.SYNC event does not always get sent all the time.
More troubling it that if the user closes the browser window or navigates to another page, NetStatusEvent NetGroup.Neighbor.Disconnect and NetGroup.MulticastStream.UnpublishNotify are not reliable to use to remove user's from the list. My assumption is that remote shared objects are just not that reliable in some cases. Should I use server side scripts to keep track of users and what groups they are in?
View 9 Replies
Apr 16, 2009
If I use an imported txt-file in my flash-move. Is it possible for flash to see if it has been uppdated ( last time saved ) the last five days?
View 2 Replies
Nov 5, 2010
I have a MovieClip which is just a progress bar animation with about 100 frames. Then I load a zip file using a URLStreamLoader and subscribe to the ProgressEvent.PROGRESS event. After loading starts I receive notifications correctly and I set the bar's corresponding frame using gotoAndStop(). Everything seems to work fine except for the animation not being visually updated.
It seems that the scene won't refresh until the zip file is fully loaded.
View 1 Replies
Feb 10, 2012
I'm experiencing a major setback as i cannot get this to work at all. I'm using the scrollpane component so all textfields must be in a separate mc, and should be displaying vars from an external as file. I have an import set up on the first frame of the main timeline and all the references inside the main timeline are correct:
Code:
import Variables;
var variables:Variables = new Variables();
the problem starts when displaying data onto the tf's inside the mc, which all return as their initial hardcoded values (not reflecting any changes made throughout the game) I use the code above for the import inside the mc aswell (coz i dont know any better) but it's as it creates another instance of variables.as to use within the mc only. If i change values within the mc's code they'll reflect but that's not what im looking for at all.
So my question is, is there any other way to import an external as file inside a movieclip to reflect the changes made to the values on the main timeline? Do i import it in a different manner, or approach it from a different direction, save its contents just before going to the frame containing the mc?
View 0 Replies
Feb 29, 2012
How do set up my Actionscripts so it can load a dynamically updated XML file? As you can see in the code below, I am able to load two items from my XML file; however, my XML file will be updated with more items to the list. Will I have to go back into Flash and hard code that in if I want Flash to read additional items.
Code:
var req:URLRequest=new URLRequest("applications.xml");
var loader:URLLoader = new URLLoader();
var list:XML;
[Code].....
View 6 Replies
Jan 27, 2012
I would like to have flash (as3) to save a var to a text file located on my server so everyone can reach it from their client swfs. I also need to know how to update this variable by loading latest var on the server and writing over it with a new updated var I've read so much already and it all seems so confusing[URL]
View 6 Replies
Jan 28, 2012
I would like to have flash (as3) to save a var to a text file located on my server so everyone can reach it from their client swfs. I also need to know how to update this variable by loading latest var on the server and writing over it with a new updated var.
[URL]
I would like to, whenever I feel like it, be able to load that var and replace it with something else.
edit: has to use "w w w" instead of "www" as it told me I needed to have made 50 posts to be able to post links, and I've only done 19 so far
View 4 Replies
Aug 3, 2005
I will be trying to obtain data from a periodically updated xml file. As far as I know, this file will simply continue to have data added to it indefinatly. Is there a way to load only the newly added data to the xml object? As opposed to loading the entire xml file each time I want to update my flash movie with new data added to the xml file?
View 3 Replies
Jan 27, 2012
I would like to have flash (as3) to save a var to a text file located on my server so everyone can reach it from their client swfs. I also need to know how to update this variable by loading latest var on the server and writing over it with a new updated var.I've read so much already and it all seems so confusing [URL]
View 1 Replies
Jan 10, 2011
I have a problem with action script.How can I reload/update xml file per 5 minutes in actionscript?isn't there someway i can do to complete the script?[code]...
View 2 Replies
Oct 27, 2009
I'm trying to show a loop of SWF/JPG files in an existing SWF file. A timer decides when to load the new file and the external files are showing and scaling correctly during the first loop, but when the loop has run once I get really odd values on the external files with the Loader.height and Loader.width properties. The files have the following height values during the first loop: 278, 286, 278 and 787. During the second loop they all of a sudden have the following values, and of course don't scale correctly: 101.05, 786.8, 101.05, 2165.15.[code]...
View 0 Replies
Mar 20, 2009
I have a slide show swf file in AS3 that gets the paths froman XMlL file. The problem is that I change the XML file every dayand unless a viewer empties their cache, they get the old slides.There is a technique where you add ?mathRandom() code at theend of the XML path inside the .swf file, but from all I have readand believe, this only adds to ones cache and could irresponsiblyfill a viewers cache.Does anyone know a way to use actionscript 3 inside the .swffile to force a reload of the XML file if the browser has beenopened for the first time?
View 1 Replies
Apr 5, 2008
i have an xml file that is regenerated every 10 mins. I am trying to use the setinterval to reload my xml file in flash but cant get it to work?? Is what im trying do do possible? or is there a better way of doing it?
[Code]...
View 1 Replies
Jan 28, 2007
I have a problem loading remote XML file into SWF file. Im doing a banner for a client with adds that is supose to load constantly updated XML file from my clients server and load some images into flash form it. Everything works fine when i test the movie (CTRL+ENTER), but when i publish it and test it from explorer, XML file is just not loading into flash.
View 7 Replies
Jun 13, 2009
I'm trying to create a method of saving data to disk in Flash.
Uploading the data to a PHP server works... well enough I guess. The issue is that when I go to reload the data, the file has been cached, and so I can't load the saved changes.
Is there a way to force flash to reload a file? Or clear it's current cached version?
View 3 Replies
Nov 14, 2009
I am trying to create something in which even when the flash file is already loaded and never closed, it will update itself. All the variables that are changing are pulled from a text file and loaded using
myData = new LoadVars();
myData.onLoad = function(){
and then I set all of the variables of the text equal to dynamic text fields. My question is: Is it possible to have it reload this text file (reset the text fields to the new variable) every so often?
View 3 Replies
Feb 27, 2009
I'm working on my website and I have one main swf file with the loader, and other four swf. files with home, about, contact and work.This is the code for the main one
Code:
var holdercontent:MovieClip = new MovieClip();
holdercontent.x = 0
[code]........
View 2 Replies
Apr 18, 2002
I'm a newbie at programming and had performed serveral search on the net without much useful results. For all you programmer guru out there, please lend me a hand if you can.I am using flash version 5.0. I have 7 flash movie files within one working flash file and only 4 movie files gets display on an HTML page at a time. I need a script that will randomize the appearance of the movie files each time the browser gets refresh. But the script should only randomize 2 of the 4 movie files.
So for example, say I have movie files named 1 to 7. On browser load, I have movie file, 1,2,3 and 4 displayed. Now when a user refresh browser, I want movie file, 1 and 4 to be replaced by either movie file 5,6, or 7 (ie. random diplay of file).This might sounds confusing or I might not be explaining it well, but if you go to www.standpipe.com you will see what I mean. Look at the Case studies section, there are 4 movie files being displayed.
View 3 Replies
Feb 2, 2010
Each time you go to another page the buttons flash white while having to reload. Is there any way around this?
View 3 Replies
Sep 16, 2010
When I deploy a new .swf file in an HTML file as shown below, I have to clear the browser cache before the new .swf file loads in the browser. Is there anyway to force the browser to load the .swf file when I replace it with a new one on the server.
<embed type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.adobe.com/go/getflashplayer" allowscriptaccess="sameDomain" name="Prototype" bgcolor="#869ca7" quality="high" id="Prototype" src="/flex/Prototype.swf">
View 3 Replies
Oct 22, 2009
I would like to do a URLRequest to a PHP file which contains xml, and the PHP file will be living on a seperate server from my flash file. I understand there are security issues in this sort of thing. figure out how to make this work?
View 2 Replies
Nov 6, 2009
I'm trying for making out application for vod.I want to know how a user can make his file readable by the AMS for vod when file is at different PC and AMS( includes swf and HTMl files) is at different PC.
View 1 Replies
Nov 3, 2010
When I set the 'Publishing Setting' to 'Permit Debugging', Flash never generates the swd file when the target script language is AS3.If I change the script language to AS2 it generates it.I have tried on CS3 and CS5.how to generate this swd file for AS3 projetcs?I have tried with large files and with empty files always with the same result.
View 1 Replies
Mar 16, 2010
I have a flash applet that I want to grab a remote XML file and read it in as a string, how can I do this?
View 1 Replies
Aug 24, 2010
I was wondering if there's a remote file availability check using Flex-AIR. Not a local file.
Example: For displaying a image place holder instead of a broken image icon.
View 1 Replies
Feb 1, 2011
In Flex 4 i want to load css file from remote server at runtime it's possible?
View 1 Replies
Apr 3, 2011
I'm creating a banner for my website from Flash, and I'm using Action Script to read information from a file to put that info on the banner
Now this seems to work fine for local files. But the file will not be on the same server as the script and banner.. (personal Reasons).
How can I read this remote text file? this text files location would be something like: [URL] this file is freely readable for anyone..
View 1 Replies
Oct 10, 2011
I am trying to upload the files to the remote server using PHP with Flex interface. If it's not localhost, it shows the security error. I have already put the crossdomain.xml in the tomcat web app root directory to allow all the domains. However, the security error is still shown when I tried to upload the file.
View 1 Replies
Dec 16, 2009
I tried to search this forum but its goes to a blank white page??Anyhow I'm trying to open a remote text file, the code below works locally I need to make this open from a remote server with a specified URL.
Ext_text = new LoadVars();
Ext_text.onLoad = addText;
Ext_text.load("ContactUs.txt");
[code]......
View 0 Replies