[COLOR=Red]1.[/COLOR] I have a MovieClip in the Library. There is a named and dynamic text box in the MovieClip. In Frame 1 of the .fla, I construct the MovieClip from the class StatusBoard and add it to the stage. There is one setStatus method in the class to set the text. This works fine.
function displayStatusBoard() {
var billboard:StatusBoard = new StatusBoard();
billboard.x=160;
billboard.y=20;
billboard.setStatus("dummy default text");
addChild(billboard);
}
**[COLOR=Red]
2.[/COLOR]** I have a bunch of buttons that I created from a class called LinkButton.as (they are MovieClips, not _btn buttons). FWIW, they are attached to other MovieClips, but they work fine. The trace output is fine. What I am trying to do is have the rollover change the text in the billboard.
// from the rollover event in the .as file
public function nameOver(event:MouseEvent) {
trace("Yes, I get this far.");
**???.billboard.setStatus("when rollover, show this text right here");**
}
[COLOR=Red] 3.[/COLOR] In lay terms, I used addChild to add a MovieClip with a dynamic TextField to the stagw and I want MovieClip buttons created from an .as class to be able to change the text on a rollover.
What I can’t seem to do is actually reference the billboard that I added using addChild from the .fla.
The buttons work and trace the desired text, I can’t seem to send that text to the billboard.
Thanks so much. I’m sure it’s easy and I’m being dense, but I’m at that point where I my head is swimming and I can’t get a fresh perspective on it.