- private function clickMoHandler():void {
- if (lblMore.label == "更多") {
- expandEffect.play();
- lblMore.label = "收起";
- bcMore.visible = true;
- } else {
- expandEffect1.play();
- lblMore.label = "更多";
- bcMore.visible = false;
- }
- }
- <s:Resize id="expandEffect" target="{panelCode}" heightTo="180" duration="0"/>
- <s:Resize id="expandEffect1" target="{panelCode}" heightTo="110" duration="0"/>
- //该片段来自于http://www.codesnippet.cn/detail/2010201410713.html
来源: http://www.codesnippet.cn/detail/2010201410713.html