Custom UI Inspector

Hi,
I’m trying to create a Custom UI for one of our component. I’ve found that you could access a component’s parameters by jsfl using *fl.getDocumentDOM().selection[0].parameters[0].value = yourValue;
*
This works great. I’ve also made a little script that prints out the selected component parameters. Everything seems to work…

The problem is, when I publish my SWF, the parameters set by the custom UI are not copied to the actual ActionScript component.

Am I missing something ?

Thanks.