On Wed, Mar 10, 2010 at 2:20 PM, Susan Day <[email protected]>wrote:

> On Wed, Mar 10, 2010 at 1:21 PM, [email protected] <
> [email protected]> wrote:
>
>> If you trace e.currentTarget what do you get?
>>
>
> [object Sprite]
> 1
>
> The "1" is from this line, which follows:
>
> trace(e.currentTarget.numChildren);
>
> So lo and behold, apparently currentTarget does indeed have a child (I'm
> vindicated!).
>
> So I changed the line which used getChildByName to getChildAt and entered
> the value "0" and now all works well. But why didn't getChildByName work?
> How can I find the name of the child?
>

Well, correction. getChildAt(0).htmlText gives me, of course, the full html
text:
<a href='index.html'>Home</a>
which, obviously, is not what I want. I tried to change htmlText to just the
link, but of course that screwed up the display of the name of the nav
widget (which should be "Home" not the whole blooming link). So I tried to
cheat and use the "name" property and assign the url to it, but it didn't
assign and chose its own name. What do?

> TIA,
> Susan
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to