1

I have a component (an s:TitleWindow) that I created and inside I have some <mx:FormItem ...> blocks.

There is supposed to be an equivalent <s:FormItem...>, but when I type <s: and press control space I get a list of spark components, but FormItem is not one. If I type it, the compiler generates an error that it does not exist.

My project settings are set to "MX+Spark".

The reason for this is I want to some some css styling to right justify the form and the examples I have seen all use the syntax of s|FormItem.

zero323
  • 322,348
  • 103
  • 959
  • 935
Scott Szretter
  • 3,938
  • 11
  • 57
  • 76

2 Answers2

1

I noticed here that the spark form tag is available only with Flex 4.5. This includes tags within a Spark form (e.g. <s:FormItem />). Flex 4 doesn't seem to include the Spark Form tags. This may be the issue:

"Spark was a new component architecture introduced in Flex 4. I consider the architecture "complete" but not all MX components have been implemented as Spark components yet. The Spark Form tag is slated for Flex Hero expected early next year and is only available in pre-release builds."

Community
  • 1
  • 1
Kyle
  • 4,202
  • 1
  • 33
  • 41
  • Ok, thanks. I did figure out by the way that I could get right justification on the formitem labels by making sure they are in a form container. I did not have them in a form container. Thats for the clarification on the spark/form/4.5. – Scott Szretter May 06 '11 at 12:33
0

in the transition to version 4.0 not all the components were ported to spark. another example is datagrid, you only have mx:datagrid for now (in 4.5 you will have s:datagrid). you just have to wait that the transition is completed...

the css you are referring to were for 4.0 or 4.5 ?

ALoR
  • 4,904
  • 2
  • 23
  • 25
  • You realize that 4.5 was released earlier this week? It includes both a spark DataGrid (as you mention) and a spark Form. – JeffryHouser May 05 '11 at 21:48