Publishing problem ! Pls help

In my fla , i have imported a class . I used addChild method to add it on the stage . When i hit Test Movie , all the flas works perfectly . BUT when i publish the file , the class part ( gallery ) is not working anymore … it’s just appearing what i already added on the stage without adding the class instance …

I revised all my publish settings , class path and took care about making all the functions in the class as “public” .

WHAT is the problem ? I am very nervous about that … i worked a lot on this project and now i just can`t publish it properly .

Thanks in advance .