Just create a label somewhere in the app, and everytime compilation either starts or finishes, set the text of the label to that date/time. See the FB help system on Date.
I'm sorry but to me, a lemon, this answer looks like this:
- How do i do X?
- Just do X and you'll have X.
Well .. thanks ;)
I don't know if you got me correctly. I don't want to set this label to the date application starts (i'd assign date to the label's text in creationComplete or something), but when it's compiled into swf. Do you mean i should set this label manual before each release? Could you please be more precise?
"Erxar" <email@example.com> wrote in message
> I'm sorry but to me, a lemon, this answer looks like this:
> - How do i do X?
> - Just do X and you'll have X.
> Well .. thanks ;)
> I don't know if you got me correctly. I don't want to set this label to
> date application starts (i'd assign date to the label's text in
> creationComplete or something), but when it's compiled into swf. Do you
> mean i
> should set this label manual before each relese? Could you please be more
I couldn't see the answer you're referring to, but it seems to me you'll
need to use some kind of server side technology to read the file date, then
pass the value in to Flex, probably through using flashVars.
Well .. it's not as simple as makro could have been if it existed but it works.
Edit: Double post
IMHO: correct way to have that achived = use Ant (like apache ant) to compile the project. then you can show not only date but whole lot more information to user if you prefer.
1. Add a flashVars parameter in index.template.html:
var lastMod = document.lastModified; // get last modified date of this document - reset every time the application is compiled
2. Reference the parameter in ActionScript as:
Hope this helps anyone else looking for an entirely client-side solution to this issue, without using Ant.