flash comtent management?
- Started
- Last post
- 9 Responses
- wouterwwvc
hi all!
so here we go: our studio has created this content management system for flashsites of our clients. the site load .txt and .jpg items in the .swf file. so far so good.when we change the .txt or .jpg files in our management system, they are changed. also fine.
when we load the website .swf again, it still shows the old files in it. unless you remove the temporary files from your explorer. there MUST be an easier way to make it happen that the files show up directley without cleaning your history e.d.
all help is appreciated guys!
- unknown0
put?random=123 at the end of file requests... might not work in flash... can't remember... vicar!
- lostnation0
Use the old variable trick: generate a random number and append it to the .jpg or .swf call, thereby tricking IE into thinking its a diffrent file altogether.
You'll have to it from within flash of course, so read the value from your textfile or whatever than add the random variable to that, like
loadMovie(movie+"?v="+random(999...
- unfittoprint0
as stated, random variable attached to the end of the file name, is the solution...
- unknown0
don't think it even needs to be random... the request is probably loaded anyway... assumes that the stuff online may have changed and not he request, if you know what I mean.
- wouterwwvc0
thanks, but it works like this:
------------------------
loadText = new loadVars();
loadText.load("content/text/welk...
// creating the loadVarsText function
loadText.onLoad = function() {
scroller.text = this.welkomsteksttitel1;
};------------------------
so how do i make this to load random as you say? Thanks!
- unknown0
make .txt .txt?random=yes
- lostnation0
we need to see the code for the .swf and .jpg load, not for the initial loading of the textfile. that is where you will need to make the changes.
- kinetic0
use the loadVars object sendAndLoad or if you're feeling a bit daring use flash remoting to load in variables
- unfittoprint0
loadText.load("content/te
xt/welkomsteksttitel1.txt?"+(Mat...but I use this with php, I don't know how txt handles this...