Behaviour Conflict between scrollpane and swapDepths

Hi. It’s been very long since I picked the forum’s brains…!!

I have 8 MCs on stage. And I use the Bring Forward Behavior code to swap depths for these MCs. inside one of the MCs I use a scrollpane for a bunch of pictures. The scrollpane in the MC works if I remove the Bring Forward behaviour code on that MC. But as soon as I attach the Code, the scrollpane freezes.

I have tried using the Scrolling code instead of the scrollpane component and still it does not work. How do i get around this behaviour conflict?

Thanks.