The owner of the icon

Mike Bonner bonnmike at gmail.com
Wed Nov 14 08:44:17 EST 2012


Hmm. Based on this..

*Comments:*

LiveCode looks for the specified image in the following order:

1) The stack of the object's behavior <dictionary/property/1927.xml> (if
applicable)

2) The stack of the owner of the object's
behavior<dictionary/property/1927.xml>(if applicable)

n) The stack of the object's stack's behavior
<dictionary/property/1927.xml>(if applicable)

A) The object's stack

B) The object's stack's mainstack (if a substack)

C) The object's stack's mainstacks substacks

D) The list of open stacks, in order they were loaded


it does seem that you'll have to iterate through since img ids are not
unique across stacks.




On Wed, Nov 14, 2012 at 6:29 AM, Malte Brill <revolution at derbrill.de> wrote:

> Hi Ben,
>
> I am afraid not. This would require the image to be on the same stack (and
> even card) as the topstack. For icons it could be any card of any stack.
>
> > Would "the long id of image id <x>" answer it?
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list