Creep up on it a bit slower by breaking that expression up.  Like make
sure you can get the "socket" XMLList, first, then get the specific
socket node ant finally get the attribute value.

 

Tracy

 

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of fuad_kamal
Sent: Thursday, November 30, 2006 10:34 AM
To: [email protected]
Subject: [flexcoders] one-liner to break flex

 

a single line of code causes my Flex Builder to fail to compile the
application and throws the following ambiguous error:

'An internal build error has occurred. Please check the Error Log.'

I tried cleaning the application, which made no difference. 
Commenting out the line of code (or setting the value of
pushServerPort to an empty string)resolved the issue. 

Where is this error log? A simple syntax error would have been nice. 

Here's the one-liner:

[Bindable]
private var pushServerPort:String = model.socketConfig.socket.(@name
== 'pushServer')[EMAIL PROTECTED];

(model is a reference to ModelLocator and socketConfig is XML)

Here is the XML definition of socketConfig:

public var socketConfig : XML =
<sockets>
<socket name='pushServer' port='2005'/>
<socket name='cesRes' host='localhost' port='3055'/>
</sockets>;

 

Reply via email to