The LinkButton is a MX component. It has no Spark component. The LinkButton in Flex is much like the hyperlink option of HTML.
The LinkButton is a MX component. It has no Spark component. The LinkButton in Flex is much like the hyperlink option of HTML.The LinkButton is a MX component. It has no Spark
component. The LinkButton in Flex is much like the hyperlink option of HTML. It
helps us to open a URL in a web browser. You can use the ViewStack container
with it.
You can use NavigateToURL() method to open the URL.
The Tag of LinkButton is <mx:LinkButton>.
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ public function link():void{ lbl.text="This is a LinkButton"; } ]]> </fx:Script> <s:Panel title="LinkButton Control Example" width="216" height="127" x="0" y="0"> <mx:VBox id="vbox" x="60" y="21"> <mx:LinkButton id="lbutton" label="Roseindia" textDecoration="underline" icon="@Embed (source='file:/C:/work/bikrant/flex4component/linkbutton/right_arrow.gif')" color="#413ebb" click="link()"/> <s:Label id="lbl" color="#990000" fontWeight="bold"/> </mx:VBox> </s:Panel> </s:Application> |