As long as you have the ending " } " that is not shown, there is nothing wrong with that code and it works fine when I test it. If there is a bug, it might be in your file, but it is not a bug of Flash. Use the trace() function to see the status of things... see if they agree with what you expect.
you are right i have tried now and its worked fine idk but on my projects if i click the items its being invisible.Thanks researching my fail..but hard to find it
i found something my movieclips on different layers (for example box1mc on rooms layer other items in objects layer)Action script searchs my item in current layer , it being invisible coz its not on same layer , its on different layer.If i put my items same layer its working fine.Omg how to fix it i dont know
(if acs cant find my item in same layer , onrelease codes working automaticaly and dont see drag drop)