PDA

View Full Version : mc with class attached won't work after exporting



bfaubion
July 22nd, 2008, 08:22 PM
Hi All, Im doing a few additions to a project someone did in AS3. I keep running into a problem though. I need to add a text field to a movieclip that is connected to a class. I drop my movieclip(or textField) into that movieclip, and name it. The I go to the corresponding class and i declare my variable that matches that name. I have to do this so it doesnt break and give me errors. After i export it and drop the .swf into my project directory it will not load or initiate that .swf, but it doesn't throw any errors when exporting. I can go back and guide out the layer i dropped that new MC/textfield into, export it.. and it works. I'm not an advanced AS3 developer, and i've never worked with classes that are connected to dynamic movieclips.. anybody run into something like this before?

sekasi
July 22nd, 2008, 08:51 PM
I drop my movieclip(or textField) into that movieclip, and name it. The I go to the corresponding class and i declare my variable that matches that name. I have to do this so it doesnt break and give me errors

I'm not psychic, but I'm gonna wager the problem lies somewhere in this sentence x)

You have to name your class after the textfield ? That sounds pretty wrong, can you elaborate on that?