[flexcoders] Binding using Boolean expressions

2006-02-22 Thread Alberto Albericio Salvador
I rewrite my post because it got mixed into another thread (same 
subject) , sorry.

Hi all,

I dont know why, but the Flex compiler alerts some error when I try to 
use binding with 2 arguments:

mx:VBox visible={someCombo.selectedIndex != 0  
someOtherCombo.selectedIndex != 0}
...
/mx:VBox

And the error is : The entity name must immediately follow the '' in 
the entity reference

Using a function, it works fine

mx:VBox visible={isThisVisible()}
...
/mx:VBox

where:

private function isThisVisible():Boolean {
   if (someCombo.selectedIndex != 0  someOtherCombo.selectedIndex != 
0) return true;
   else return false;
}

Why and how to solve this so I dont have to fill my code with these 
functions?

-- 
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Binding using Boolean expressions

2006-02-22 Thread Oscar . Cortes
What about something like ...



mx:VBox visible={Boolean(someCombo.selectedIndex != 0 *
someOtherCombo.selectedIndex != 0)}





|-+-
| | |
| |  Alberto Albericio |
| |  Salvador  |
| |  [EMAIL PROTECTED]  |
| |  Sent by:   |
| |  flexcoders@yahoogroups.com |
| |  02/22/2006 09:37 AM|
| |  Please respond to  |
| |  flexcoders |
| | |
|-+-
  
-|
  | 
|
  |  To: flexcoders@yahoogroups.com 
|
  |  cc:
|
  |  Subject:  [flexcoders] Binding using Boolean expressions   
|
  
-|




I rewrite my post because it got mixed into another thread (same
subject) , sorry.

Hi all,

I dont know why, but the Flex compiler alerts some error when I try to
use binding with 2 arguments:

mx:VBox visible={someCombo.selectedIndex != 0 
someOtherCombo.selectedIndex != 0}
...
/mx:VBox

And the error is : The entity name must immediately follow the '' in
the entity reference

Using a function, it works fine

mx:VBox visible={isThisVisible()}
...
/mx:VBox

where:

private function isThisVisible():Boolean {
   if (someCombo.selectedIndex != 0  someOtherCombo.selectedIndex !=
0) return true;
   else return false;
}

Why and how to solve this so I dont have to fill my code with these
functions?

--
Alberto Albericio Salvador
Aura S.A. Seguros
Departamento Informática



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links











---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/