[FMX] calling properties of other objects

Ok, here the code that I have

//Object 1
function object1() {
this.txt = “It works!”;
object1.prototype = new MovieClip();
Object.registerClass(“object1”, object1);

//Object 2
function object2() {
object2.prototype = new MovieClip();
object2.prototype.onEnterFrame = function() {
Object.registerClass(“object2”, object2);


Now when I add the objects, im getting “undefined” for the value of object1.txt, and I have no idea what else to do =.
Thanks in advance for any help.