We haven't found an easy way to do it - we've done it two ways:
i) Use Ant to update a textfile as part of the build process, and read that textfile in at runtime. A good way to get a version number / date for an entire _deployment_, rather than just for one .swf. or ii) Use Ant to update a textfile again, then use token-replacement to update a value in a swfmill input file, then use swfmill to create the final .swf. That way the .swf itself has a version / date embedded in it. But, obviously, it ties you to using swfmill for that file. If you were using MTASC, you could do something similar to ii) very easily. (We're not.) Ant is your friend. :-) HTH, Ian On 12/1/06, Stefan Thurnherr <[EMAIL PROTECTED]> wrote:
Hi flashcoders, I am looking for an easy way to indicate an SWF's version on the stage (i.e. via a textfield). I guess the easiest way would be if there was a compiler literal like __DATE__ (indicating the time/date of compilation) available within ActionScript. But I couldn't find any such thing neither in the livedocs, nor with the help of the almighty G. I'd prefer a solution that also works offline (i.e., not involving a call to a server-side script that gives the SWF access to its own time/date of creation). How do other flashcoders solve this problem? Thanks, stefan.
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com