I´m doing the same for my build information... but that doesn´t replace
the vars with the actual value. And also, i want to keep my variables
where they belong.
In my example, if i decompile the code, instead of var mypptest2 =
path.to.the.class.Test.VAL2 | path.to.the.class.Test.VAL3;
i want var mypptest2 = 6;
With #define is easy, but i don´t have syntax checking nor code
completion...
On Fri, 10 Feb 2006 10:23:41 -0300, Henrik Lindahl <[EMAIL PROTECTED]>
wrote:
> Maybe you could use ant to create the Test class before compiling. After
> the first run syntax checking will work.
> I use this code be able to include subversion info in my build:
>
> <echo file="src/SVNInfo.as" append="false">
> class SVNInfo {
> public static var svnRevision :String = {svn.info.nodekind}";
> public static var svnRepository :String = "${svn.info.url}";
> public static var builtBy:String = "${user.name}";
> public static var buildTime :String = "${build.time}";
> }
> </echo>
>
> /Henrik
>
> Marcelo Volmaro wrote:
>> Hi list,
>> I want to know if there is a preprocessor that could do the following:
>>
>> 1) I have some class, with some static variables, ie:
>> class Test {
>> public static var VAL1:Number = 1;
>> public static var VAL2:Number = 2;
>> public static var VAL3:Number = 4;
>> }
>>
>> 2) Now, in another class, i assign to some var the value of any (or all)
>> the variables in the test class, like:
>> var mypptest:Number = Test.VAL1;
>> var mypptest2:Number = Test.VAL2 | Test.VAL3;
>>
>> What i want is, in the compile code, all the static variables replaced
>> with their respective values (1 & 6).
>>
>> I know i can do something like that with CPP and # define, but that
>> doesn´t solve the problem of syntax checking/code completion.
>>
>> Ideas?
>> Thanks in advance!!
>>
>>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
--
_____________
Marcelo Volmaro
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org