Page 1 of 1

selfdefined constants don't work in TextOut-Objects when ...

Posted: Wed Apr 13, 2011 9:07 am
by nexus
... a hollywood script is compiled to a binary (tested with AOS3 and AOS4).

Const #MYCOLOR = $003388

Text(#CENTER,#CENTER,"[color=#MYCOLOR]Some coloured text[/color]")

Executing this line in a hollywood script (.hws), it works fine. Compiling it to a binary, you get an error message about "unknown constant" or something like that.

Predefined constants like #RED also work fine.

Thanks,
nexus

Re: selfdefined constants don't work in TextOut-Objects when ...

Posted: Fri Apr 15, 2011 11:58 am
by airsoftsoftwair
Yes, that's a bug. It's already fixed though in my current builds because Allanon reported this bug earlier but in a different context. User-constants also didn't work when using @INCLUDE with applets. But it's the same bug (user constants were not exported correctly to applets/executables).