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>id=" lbutton"label=" Roseindia"textDecoration=" underline"icon=" @Embed(source='file:/C:/work/bikrant/flex4component/linkbutton/right_arrow.gif')" color="#413ebb" click="link()" </s:Application> |
To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.