Hey,
Ive written a little OO code for a listitem class. I created a ListItem movieclip in the library and associated my class with it, inheriting from MovieClip:
//constructor
PlaylistItem = function(){}
//inherit from MovieClip
PlaylistItem.prototype = new MovieClip();
//register class with library object
Object.registerClass(“playlistitem_mc”, PlaylistItem);
This works fine. The problem arises when i try to access the dynamic textfield item thats in the “playlistitem_mc” movieclip. No matter how i reference it, i just cant get the value in or out:
PlayListItem.prototype.onRollOver = function(){
trace(this.title_txt.text);
}
This always fails.
Any ideas? Is it possible to access an object in a movieclip from a bound class? Surely it can be done…
Thanks guys, this is the greatest flash site ive found ever!
Mafro