[Extendflash] library.selectItem() from library's root
Nick Kaayk
Nick.Kaayk at bbc.co.uk
Tue Jan 24 16:17:26 PST 2006
Doh! My mistake... I had previously moved the instance off the
library's root and into a folder...
Hangs head in shame,
n.
-----Original Message-----
From: extendflash-bounces at flashguru.co.uk
[mailto:extendflash-bounces at flashguru.co.uk] On Behalf Of Morten
Barklund Shockwaved
Sent: 24 January 2006 15:00
To: extendflash at flashguru.co.uk
Subject: Re: [Extendflash] library.selectItem() from library's root
Nick Kaayk wrote:
> For some reason, I have a library with multiple items with the same
> name (in different folders). When I call
> library.selectItem(namepathWithNoSlashes), Flash selects one of the
> instances in a folder, rather than the instance in the library's root.
I can't make it do that :(
If I have one in the root and one in a folder (both named "Symbol 1"),
no matter what I have currently selected and no matter which symbol have
been edited latest, Flash always selects the root one.
> Is there any way I can force Flash to select the root level one?
I understand your problem though I cannot recreate it, but if it does
that, then you could create your own function running through
library.items, compairing names, and ensuring there is no folder of the
item. You still cannot select this item (as there is only one
select-method and no selected-property of Item), but you can manipulate
the Item-object.
Pretty annyoing, but possible :)
--
Morten Barklund - Information Architect - Shockwaved Gothersgade 49, 4th
floor - DK-1123 Copenhagen K, Denmark
Phone: +45 7027 2227 - Fax: +45 3369 1174
_______________________________________________
Extendflash mailing list
Extendflash at flashguru.co.uk
http://lists.flashguru.co.uk/mailman/listinfo/extendflash
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain
personal views which are not the views of the BBC unless specifically
stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in
reliance on it and notify the sender immediately. Please note that the
BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
More information about the Extendflash
mailing list