[Xerte] Re: Dynamic text in buttons

Dave Burnett d_b_burnett at hotmail.com
Mon May 16 12:43:14 BST 2011


 
When I get this I usually try an inspect(the_object) to make sure I'm actually addressing the right thing.
 

 
> Date: Mon, 16 May 2011 13:04:06 +0200
> From: reijnders at tor.nl
> To: xerte at lists.nottingham.ac.uk
> Subject: [Xerte] Re: Dynamic text in buttons
> 
> I tried that , but that doesn't seem to work....
> I did that with the gotoPageButton (made the static text dynamic text 
> with instance name txtLabel)
> 
> Than I tried to set the label:
> this.toc_mc.attachMovie("gotoPageButton", "gotoPage", 9);
> this.toc_mc.gotoPage.txtLabel.text = "yes!";
> 
> Doesn't work ....
> 
> Op 16-5-2011 12:45, Julian Tenney schreef:
> > You need to attach the movie and then set the text with your code, so blah.blah.someTextField.text = theText
> >
> > -----Original Message-----
> > From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
> > Sent: 16 May 2011 11:44
> > To: Xerte discussion list
> > Subject: [Xerte] Re: Dynamic text in buttons
> >
> > Sorry annoying typo in subject...
> >
> > Op 16-5-2011 12:41, Tom Reijnders schreef:
> > 
> >> Julian,
> >>
> >> I am playing with buttons in XMLEngine.xml. I can't figure out how to
> >> make the texts of the library buttons dynamic. Dow you know how to do
> >> that?
> >>
> >> I modified the static text into dynamic text, and added an instance
> >> name, but how do you set the text than when you attach the button as a
> >> movie clip??
> >>
> >> t.i.a.
> >>
> >> Tom
> >>
> >> _______________________________________________
> >> Xerte mailing list
> >> Xerte at lists.nottingham.ac.uk
> >> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> >>
> >> This message and any attachment are intended solely for the addressee
> >> and may contain confidential information. If you have received this
> >> message in error, please send it back to me, and immediately delete
> >> it. Please do not use, copy or disclose the information contained in
> >> this message or in any attachment. Any views or opinions expressed by
> >> the author of this email do not necessarily reflect the views of the
> >> University of Nottingham.
> >>
> >> This message has been checked for viruses but the contents of an
> >> attachment
> >> may still contain software viruses which could damage your computer
> >> system:
> >> you are advised to perform your own checks. Email communications with the
> >> University of Nottingham may be monitored as permitted by UK legislation.
> >>
> >> 
> > 
> 
> -- 
> --
> 
> Tom Reijnders
> TOR Informatica
> Chopinlaan 27
> 5242HM Rosmalen
> Tel: 073 5226191
> Fax: 073 5226196
> 
> 
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110516/9d3a1fe6/attachment.html>


More information about the Xerte mailing list