flash expire
- Started
- Last post
- 18 Responses
- NOVOLUME
I've got a new client, one who I am a little worried about getting payment from. What I want to do is put some code in my fla that stops the movie working after a set period of time, thus if they do not pay, then they do not get the work. Anyone know how to do this?
- Mimio0
You could have the swf check a asp/php page when it starts that retrieves the server time/date.
- heavyt0
easy, but the trick is undoing it when they pay you.
they are going to ask, "why do we need to replace this file again???"
- alloyd0
u can do a date check and then do something to _root when it has reached this date.
ie. maybe replacing _root w/ a blank mc, or setting _visible to false...
That would be a quick and easy way..
- UndoUndo0
use the date class in flash if you want to work against a set date
- Mimio0
I would just do something remotely. Have the swf check another server page/url, one that you control. That way you can just turn it on/off whenever you want.
- UndoUndo0
or load all the swfs from yr server into an empty swf on theirs. you get full control then
- Mimio0
Yeah, but why host all that data?
- ********0
load as from your server?
- mrdobolina0
tell them vinny and rocco are going to kneecap them if they dont pay.
- joyride0
flash security policy won't allow you to import stuff outside of the current domain.
Now what you could do, is install a simple php script that will mirror an xml file on your server. That way it appears to come from within the domain. Have the flash file parse the xml and look for a shutDown/lock setting. Pretty simple really.
- UndoUndo0
flash security policy won't allow you to import stuff outside of the current domain.
joyride2
(Apr 3 06, 10:06)you can you just need to develop a domain policy file
- joyride0
true: i've not had to cross Domain data load in a while. But i always had trouble with it. Is it much easier now?
- UndoUndo0
add the domain that is requesting the file to domain policy file, you can get samples on MM. the policy file is just xml and you need to be aware of subdomains etc ie. mysubdomain.mydomain.com
- Mimio0
You can wildcard an external domain or be file specific. This workaround has existed for since 7, they just made a class for it in 8.
http://www.macromedia.com/devnet…
- joyride0
yeah, I've been through all that. But it never really worked. I was helping someone out so i really didn't pay super close attention. but the crossdomain.xml seemed right. just had issues.
Obviously that is the proper way, but you could just mirror the file as a workaround. I need to actaully do that for a project coming up. So I hope it's as simple as it seems.
- ********0
or just have them pay you up front? works for me.
- version30
have it link to an external swf on your server, replace with whatever you want when they don't pay
if they do, simply upload the correct files to thier server, 5 min tops
easiest solution by far
- caseyc0
This is all a little immature man, just be up front with them. Why do you think they wont pay?
If you are going to date stamp it I would tell them up front, 'cause if you try to be sneaky and fuck them over (even if they fuck you first) there is no way you are going to get money out of them and all your time will be wasted.