开发者

Flex Link not working

开发者 https://www.devze.com 2022-12-20 18:12 出处:网络
There this link in Flex that was working and now isnt... Flex is giving me a headache with this on开发者_StackOverflow中文版e because it is not throwing any errors either.

There this link in Flex that was working and now isnt... Flex is giving me a headache with this on开发者_StackOverflow中文版e because it is not throwing any errors either.

In the script part of the XML I have this:

private function onLinkClick( event:TextEvent ):void {
                var url:URLRequest = new URLRequest( event.text );
                navigateToURL( url , "_top");
            }

and then I have click-able text box on the stage like so:

<mx:Text 
        styleName="Link"
        condenseWhite="false"
        text="View full transaction listing"
        fontAntiAliasType="advanced"
        fontSharpness="0"
        x="265"
        y="336" 
        selectable="true"
        link="onLinkClick(event);" 
    >
      <mx:htmlText>
         <![CDATA[<a href='event:table.html'>View full transaction listing</a>]]>
      </mx:htmlText>
   </mx:Text>

It was working but now the link doesn't and the swf's not throwing any errors either. This is very strange behavior, would anyone know why the link won't work?


Throw away text="View full transaction listing", you can't have both text and htmlText set at the same time, as one will overwrite the other.

0

精彩评论

暂无评论...
验证码 换一张
取 消