Hi,
 
Putting <buildnumber/> and <tstamp/> into an Ant build file makes them accessible to other tasks:
 
  <buildnumber />
  <tstamp><format property="timestamp" pattern="MM/dd/yyyy hh:mm:ss" /></tstamp>
 
You could then, for example, write the build number and timestamp into an html file:
 
  <concat destfile="buildinfo.html">
   <![CDATA[<b>Title Text<br> DATE: ${timestamp} <br>BUILD: ${build.number} <br>AUTHOR: <a href="" href="mailto:[EMAIL PROTECTED]">Your Name"> mailto:[EMAIL PROTECTED]">Your Name</a></b>]]>
  </concat>
 
Which Flash could read.  A simple text file would be simpler, but I had this example handy...
 
You could even use Ant to write a FlashVar with the build number into the html page that contains your swf... Then your swf would have direct access to it.  For that I'd look into the Ant replaceregexp task.  Something like:
 
  <replaceregexp file="myHtmlpage.html" match="FlashVars=" replace="FlashVars='buildNumber=${build.number}'"/>
 
Jim Kremens

 
On 10/27/05, erixtekila <[EMAIL PROTECTED]> wrote:
Thanks Ralf,
> Hamtasc does it via rb_param.
> Other than that, you could do simple String replacement inside of an as
> class file. Take a look at the ant replace task
>
Very neat solution.
I'll give it a try.
Thanks to point it to me.

Respect ;)

-----------
erixtekila
http://blog.v-i-a.net/


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to