Skip to main content
Inspiring
June 26, 2006
Answered

V2 Components

i have been using the template downloaded from adobe but I receive following error

**Error** C:\work\Incubis\developement\Building.as: Line 43: There is no property with the name 'bB'.
bB = createObject("bBase", "bB", this.getNextHighestDepth());

**Error** C:\work\Incubis\developement\Building.as: Line 44: There is no property with the name 'bB'.
bB._x = 0;

**Error** C:\work\Incubis\developement\Building.as: Line 45: There is no property with the name 'bB'.
bB._y = 0;

Total ActionScript Errors: 3 Reported Errors: 3

title: undefined
files are here BuildingComponents.zip
This topic is closed to new replies. Start a new post to keep the conversation going.
FlashAmitCorrect answer
Inspiring
July 12, 2006
It works now. I am thru with this components. Now I have to integrate this and make a new component. Will get back to you soon...if face any issues related to the integration...

Thanks Again.

38 replies

Inspiring
June 27, 2006
The error indicates that you don't have declared the property bB in the class definition. Since you're most likely to use a MovieClip, you should declare:
private var bB:MovieClip;
or use the bBase property that is already declared in the class definition:
bBase=createObject("bBase", "bB", this.getNextHighestDepth());
or use a local var... without declaring bB as an instance property:
var bB:MovieClip=createObject("bBase", "bB", this.getNextHighestDepth());
However, this will bring up the next error on createObject() which is an undefined method. I think you mean createClassObject() which most likely must be attachMovie();
Translate