[Xerte] Xerte3: getting the name of an icon

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue Jun 15 13:32:09 BST 2010


I think I ignore the name property because of the native name property,
which is the internal name given to the objects. I'll give it a whirl
and see what happens if I set the .name to the icon's name: I think one
reason I didn't was because the icon name might not be a valid variable
name...

J

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
Huppertz
Sent: 15 June 2010 12:06
To: Xerte discussion list
Subject: Re: [Xerte] Xerte3: getting the name of an icon

Sure, I can do that. 

Sometimes it is, in my opinion, easier to maintain the piece if you just
refer to the name of a TextField. So I can just check textArea.name ==
textArea.text. I can easily change the name without having to look at
script icons I buried somewhere ...

Also, if you want to create an index of your piece containing the names
of the pages, the name property would help. I think there is a name
property in flash/actionscript, but it has nothing to do with the names
you give in Xerte?!

Peter


On 15.06.2010, at 12:38, Julian Tenney wrote:

> Shouldn't you ne checking textArea.text == theAnswer
> 
> ?
> 
> Not sure how the icon's name will help you there...?
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
> Huppertz
> Sent: 15 June 2010 10:01
> To: Xerte discussion list
> Subject: [Xerte] Xerte3: getting the name of an icon
> 
> Is it possible to get the name of an icon using actionscript? If I try
> debug(myicon.name) it displays an internal name like "TextAreaIcon196"
> but not the given name I see in the tree. 
> I need this to check if a TextArea is filled with the correct answer
and
> just wanted to compare name == value, to make it easy. Don't want to
use
> IconID for this, cause I can't guarantee that the name is unique in my
> piece. Also alternative ways are welcome!
> 
> Peter
> 
> 
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte

==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list