Book a Demo

Author Topic: AS2 code generation  (Read 4140 times)

ehegyi

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
AS2 code generation
« on: March 02, 2006, 05:23:58 am »
Hi,

I'm generating AS2 code from EA and produces:

class Class Model.TestBeginProject.GameController
{
}//end GameController

with a ? in line 1

Is this a bug? "Class" should not be there. It stops reverse engineering or syncronisation until the class definition is corrected and the "?" is removed.

Any ideas

Thanks

ehegyi

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: AS2 code generation
« Reply #1 on: March 02, 2006, 05:53:05 am »
I found the first problem arfter looking at template generation, seems you need to rename "Class Model" without spaces.

Now what does the "?" mean, apart from the obvious and how do you remove it?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: AS2 code generation
« Reply #2 on: March 02, 2006, 03:07:14 pm »
Hi,

The first problem can also be solved by setting Class Model as a namespace root.  (See http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1141339578)

I haven't been able to get the '?' at the start of the file through code engineering, but I have by using the internal editor in the following circumstances:

Tools | Options | Source Code Engineering | Code Page for source editing: Set to "20127 (US-ASCII)" (The default)
Open a UTF-8 file containing signature mark in internal editor.
Edit and save the file.
The signature is converted to a ? as part of saving to the specified code page.

If this isn't your situation, I'd like to know what your code page is set to.

ehegyi

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: AS2 code generation
« Reply #3 on: March 02, 2006, 04:03:50 pm »
You were right.

My ActionScript editor "Sepy" was saving code files as UTF-8. I changed the setting and no more question mark.

Thanks,

Evan