Using “interface” in MTASC without syntax errors

2006:10:27

MTASC will complain if you use the keyword “interface” *anywhere* in your code outside of its declared usage. This includes strings, which makes it tough if you have strings that need the word “interface”. Ok, so whats the work around?

Declare a static variable like so -

static var:String STR_INTERFACE = "inter" + "face";

Use this static variable in places where you would be using the word “interface”.

Hope this helps anyone else whose faced this compiler limitation!


I’m linked-in

2006:10:05

After several years of resisting the tide, I’ve been carried out to the sea of network professionals called ‘Linked-in’. I’m not even going to explain what this is – I’m simply going to post my little linked in button.

View Mitch Coopet's profile on LinkedIn