I'm trying to get flash to toggle a div layers display status.

I have an html version working, but i can't seem to code it properly in AS3

I need to figure out how to issue something like:

<a href="javascript:toggleLayer('componentLevel2');" title="toggle">
toggle
</a>

within this function

function loadBuildingBenefits(event:MouseEvent):void {
// send the methodToExecute method in another movie's
// LocalConnection listening to "lc_example"
outgoing_lc.send("lc_component1", "playBenefitsText");
outgoing_lc.send("lc_example", "playBuildingBenefits");
}