Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-11 Thread Daniel Wabyick

Hi Peter (and all) ...

I finally got around to checking out your proposed method, and 
unfortunately it does not work. It seems to interpret anything within a 
CDATA block as a string. 

Here is what I tried, and it does not work.

mx:Label
  mx:doubleClickEnabled![CDATA[{ true  true 
}]]/mx:doubleClickEnabled
/mx:Label

I also tried the following ... without luck:

mx:Label
mx:doubleClickEnabled{ ![CDATA[ true  true ]] 
}/mx:doubleClickEnabled
/mx:Label

So it seems the only way to get this to work is to use entities:

mx:doubleClickEnabled{ true amp;amp; true 
}/mx:doubleClickEnabled

Peter Hall wrote:

 mx:Button
 mx:enabled![CDATA[{checkA == something  checkB ==
 somethingElse}]/mx:enabled
 /mx:Button

 Peter

 On 10/2/06, Daniel Wabyick [EMAIL PROTECTED] 
 mailto:daniel%40wabysabi.com wrote:
 
  Ran into the same thing. Its that '' is an entity in XML. So you 
 can use:
 
  enabled={checkA == something amp;amp; checkB == somethingElse}
 
 

  



--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Conditional Login inside curly braces for binding

2006-10-03 Thread Tom Chiverton
On Monday 02 October 2006 18:41, Sam Shrefler wrote:
 Is there anyway to put a condition inside { } for example:
 enabled={checkA == something  checkB == somethingElse}

Create a mx:Script block and encapsulate your logic in a function, then:
enabled={isThingEnabled(checkA,checkB)}

-- 
Tom Chiverton
Helping to centrally pursue cross-media segments



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Conditional Login inside curly braces for binding

2006-10-03 Thread Gordon Smith
Or write the  operator as amp;amp;

- Gordon

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, October 03, 2006 2:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Conditional Login inside curly braces for
binding

On Monday 02 October 2006 18:41, Sam Shrefler wrote:
 Is there anyway to put a condition inside { } for example:
 enabled={checkA == something  checkB == somethingElse}

Create a mx:Script block and encapsulate your logic in a function, then:
enabled={isThingEnabled(checkA,checkB)}

-- 
Tom Chiverton
Helping to centrally pursue cross-media segments



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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






 





--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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/
 





[flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Sam Shrefler



Is there anyway to put a condition inside { } for example:

enabled={checkA == something  checkB == somethingElse}

Flex Builder throws an error The Entity must immediately follow the  in the entity referecne. It seems to be a problem with the Logical Operator  since || works fine.

ThanksSam


__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Daniel Wabyick

Ran into the same thing.  Its that '' is an entity in XML. So you can use:

enabled={checkA == something amp;amp; checkB == somethingElse}



Sam Shrefler wrote:
 Is there anyway to put a condition inside { } for example:
  
 enabled={checkA == something  checkB == somethingElse}
  
 Flex Builder throws an error The Entity must immediately follow the  
 in the entity referecne.  It seems to be a problem with the Logical 
 Operator  since || works fine.
  
 Thanks

 Sam
  
  



--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Conditional Login inside curly braces for binding

2006-10-02 Thread Sam Shrefler



Daniel:

Thanks...the other thing I tried that worked was using the ||, soas per DeMorgans law:

A  B = !A || !B

Thanks
Sam

On 10/2/06, Daniel Wabyick [EMAIL PROTECTED] wrote:





Ran into the same thing. Its that '' is an entity in XML. So you can use:enabled={checkA == something amp;amp; checkB == somethingElse} 
Sam Shrefler wrote: Is there anyway to put a condition inside { } for example:  enabled={checkA == something  checkB == somethingElse}
  Flex Builder throws an error The Entity must immediately follow the   in the entity referecne. It seems to be a problem with the Logical  Operator  since || works fine.
  Thanks Sam  
 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Conditional Login inside curly braces for binding

2006-10-02 Thread Peter Hall
mx:Button
mx:enabled![CDATA[{checkA == something  checkB ==
somethingElse}]/mx:enabled
/mx:Button


Peter


On 10/2/06, Daniel Wabyick [EMAIL PROTECTED] wrote:

 Ran into the same thing.  Its that '' is an entity in XML. So you can use:

 enabled={checkA == something amp;amp; checkB == somethingElse}




--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Conditional Login inside curly braces for binding

2006-10-02 Thread Daniel Wabyick

Yeah - I used that at first ... Although I think the DeMorgan's law 
would be:

!( A  B ) = !A || !B

So then ...

A  B = !( !A || !B ) ...

Sam Shrefler wrote:
 Daniel:
  
 Thanks...the other thing I tried that worked was using the ||, so as 
 per DeMorgans law:
  
 A  B = !A || !B
  
 Thanks

 Sam


  
 On 10/2/06, *Daniel Wabyick* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:


 Ran into the same thing. Its that '' is an entity in XML. So you
 can use:

 enabled={checkA == something amp;amp; checkB == somethingElse}



 Sam Shrefler wrote:
  Is there anyway to put a condition inside { } for example:
 
  enabled={checkA == something  checkB == somethingElse}
 
  Flex Builder throws an error The Entity must immediately follow
 the 
  in the entity referecne. It seems to be a problem with the Logical
  Operator  since || works fine.
 
  Thanks
 
  Sam
 
 


  



--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Conditional Login inside curly braces for binding

2006-10-02 Thread Sam Shrefler



Sho:

Yep...i rushed the reply right after writing it on my blog...blog was right, reply was wrong...thanks

Peter:

Thanks, i never thought of doing if that way..

Thanks for all the replies
Sam
On 10/2/06, Peter Hall [EMAIL PROTECTED] wrote:





mx:Buttonmx:enabled![CDATA[{checkA == something  checkB ==somethingElse}]/mx:enabled/mx:ButtonPeterOn 10/2/06, Daniel Wabyick 
[EMAIL PROTECTED] wrote: Ran into the same thing. Its that '' is an entity in XML. So you can use:
 enabled={checkA == something amp;amp; checkB == somethingElse} 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___