[Xerte] Re: Dynamic text in buttons
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon May 16 13:07:57 BST 2011
Probably a drawn object then...
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 13:05
To: Xerte discussion list
Subject: [Xerte] Re: Dynamic text in buttons
I tried that, but I can't find the instance name of the label in the object...
i.e. ried that for the backBtn, i.e. I changed the static text 'back' in a dynamic text field with instance name txtLabel
Than I I do an inspect of backBtn:
tabIndex : 64002
blendMode : normal
cacheAsBitmap : false
filters :
scale9Grid : undefined
getDepth : [type Function]
enabled : true
useHandCursor : true
onSetFocus : [type Function]
onRelease : [type Function]
instance361 : _level0.engine.IFC.backBtn.instance361
txtLabel doesn't show up....
Op 16-5-2011 13:43, Dave Burnett schreef:
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<mailto:reijnders at tor.nl>
> To: xerte at lists.nottingham.ac.uk<mailto: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> [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<mailto: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<mailto: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.
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk<mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110516/6d047dac/attachment-0001.html>
More information about the Xerte
mailing list