Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 13 Feb 2008 14:44:47 -0000
I want to add, that the main problem with that is, that the layer id changes, when I insert a new layer with the id 1, e.g. Depending on what "... do some stuff ..." is the Box would have the id 1. But what, if it was changed because a new layer was insert? How can you get the id of the box now?
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 13 Feb 2008 16:54:22 +0100
GetAttribute(#DISPLAY, 0, #ATTRLAYERS
Ah, that'S the trick
But can I be sure that it is really the id belonging to my object ? What happens if a SetInterval or Timer Function creating additional layers is executed between Box() and GetAttribute() call ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 13 Feb 2008 22:00:58 +0100
GetAttribute(#DISPLAY, 0, #ATTRLAYERS
Ah, that'S the trick
But can I be sure that it is really the id belonging to my object ? What happens if a SetInterval or Timer Function creating additional layers is executed between Box() and GetAttribute() call ?
That won't happen. Hollywood does not do any random context switches to intervals and timers. Interval and timer functions are only called when Hollywood is in a WaitEvent() loop.