addobject() with shading?

I have some problems with the addObject function. I can add the object fine, but it has no lighting shading, when I look at it in BGE it looks fine, but as soon as I try use the addObject function it comes out shadeless! How do I fix this???

make shure your Light Source is not set to " this layer only".
If you have an object on layer 2, wich you add, and the Lightsource is on Layer 1,
all objetcts on layer 2 will not be affectetd by the light…

Also, try putting a light source in the added object’s layer. If there’s no light there, then it won’t be shaded (in some cases).