x


problem at adding script

When I Try To Attach a script it says: Can't Add Script Can't Add Script behaviour tempGen_V0.2. The Scripts file name does not match the name of the class defined in the script! What is The Problem?

more ▼

asked Mar 03 '11 at 12:01 PM

david 2 gravatar image

david 2
20 6 6 10

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

What is The Problem?

The Scripts file name does not match the name of the class defined in the script.

Seems you answered your own question.

In an attempt to clarify this;
Your class must have the same name as the file (without the extension).

Also I think you should strip off the dot in your class name (tempGen_V0.2).

more ▼

answered Mar 03 '11 at 12:04 PM

Statement gravatar image

Statement ♦♦
20.2k 35 71 176

(comments are locked)
10|3000 characters needed characters left

oh i renamed it to generator2.js and maked a start function cuz before there were no functions. it is fixed

more ▼

answered Mar 03 '11 at 12:07 PM

david 2 gravatar image

david 2
20 6 6 10

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3568
x3418
x2029
x80

asked: Mar 03 '11 at 12:01 PM

Seen: 3922 times

Last Updated: Mar 03 '11 at 12:01 PM