[flexcoders] Links defined in Label or Text htmlText doesn't work upon the first click when in TabNavigator

2007-02-27 Thread Sergey Kovalyov

Hi All!

Take a look at this example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:TabNavigator width=100% height=100%
 mx:VBox label=Adobe
  mx:Label selectable=true
   mx:htmlText
![CDATA[a
href=http://www.adobe.com;Adobe/ahttp://www.adobe.com%22%3eadobe%3c/a



]]
   /mx:htmlText
  /mx:Label
 /mx:VBox
/mx:TabNavigator
/mx:Application

When you first click Adobe link, nothing happens. Though, if you click it
second time, application redirects you to Adobe website.

Moving this Label instance outside the TabNavigator causes correct behavior.

Any ideas?

Sergey.


Re: [flexcoders] Links defined in Label or Text htmlText doesn't work upon the first click when in TabNavigator

2007-02-27 Thread Andriy Panas
Hello Sergey,


Set mx:TabNavigator width=100% height=100% focusEnabled=false

I guess you witness this behaviour because mx:Tabnavigator with a
first click over Label only gains a application focus, and only with a second 
click
Label a href action is fired...

SK Moving this Label instance outside the TabNavigator causes correct behavior.

-- 
Best regards,
 Andriymailto:[EMAIL PROTECTED]