Issue Details (XML | Word | Printable)

Key: FDT-1719
Type: Bug Bug
Status: Closed Closed
Priority: Major Major
Assignee: FDT Team
Reporter: Nicholas Bilyk
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FDT

Autocomplete doesn't work in mxml style property

Created: 14/Dec/10 06:49 PM   Updated: 18/Mar/14 05:17 PM
Component/s: MXML
Affects Version/s: FDT 4.1
Fix Version/s: None
Security Level: public

Time Tracking:
Not Specified


 Description  « Hide
Auto-complete in mxml within a style tag does not work, no suggestions are shown.

Example:

<s:Label color="{}"/>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Nicholas Bilyk added a comment - 14/Dec/10 06:57 PM
Then the code in the binding expression isn't interpreted. This only happens for style properties
<fx:Script>
// This will be considered unused.
  [Bindable] private  function getColor():Number {
   return 0xFF0000;
  }
</fx:Script>

<!-- getColor is not evaluated -->
<s:Label color="{getColor()}"/>

Stephanie Swiderski added a comment - 18/Mar/14 05:16 PM - edited
Hi Nicholas Bilyk,

use a cdata tag

<mx:Script>
	<![CDATA[
		[Bindable]
		private function getColor() :Number {
			return 0xFF0000;
		}
	]]>
</mx:Script>

then it is interpreted.

Regards,
Stephanie Swiderski