molucawa,
There is an action that allows you to set a layers parallax at runtime. Select actions and go to 'System', you'll find the option you are looking for under the heading 'Layers and Layout'.
You could link it to an event which compares the frame of the object you wish to test!
Hope that helps :)