flex-spark

Disable Flex CSS type selector warning?

旧巷老猫 提交于 2019-12-04 23:33:17
I'm building a somewhat large Flex project that includes several modules (a single Flex project that produces multiple SWFs) Right now, I have a single css file, being loaded in the main SWF tag: <s:Application ... > <fx:Style source="css/main.css" /> ... </s:Application> In the CSS file: /* CSS file */ @namespace s "library://ns.adobe.com/flex/spark"; s|Panel { skinClass: ClassReference("com.skins.DefaultPanelSkin"); } s|Button { skinClass: ClassReference("com.skins.DefaultButtonSkin"); } The CSS file is not referenced anywhere else. I have currently 6 modules (plus the main SWF, a total of 7

Spark datagrid with checkbox does not update correctly

眉间皱痕 提交于 2019-12-04 20:44:17
The checkboxes are updated correctly when I select one or more datagrid rows but when I select a checkbox for the first time the checkbox does not refresh until the pointer moves out of the datagrid row. How can I fix this? <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <s:DataGrid id="dg" x="344" y="48" selectionMode="multipleRows" requestedRowCount="4"> <s:columns> <s:ArrayList> <s:GridColumn> <s:itemRenderer> <fx:Component> <s:GridItemRenderer> <fx:Script> <

iOS TextInput displayAsPassword doesn't displayAsPassword

元气小坏坏 提交于 2019-12-04 16:10:57
I'm building an app to launch across Android, iOS, and desktop simultaneously. The app includes a login that is attached to a vBulletin system and I've run into a significant issue (that the client is adamant must be fixed). On iOS, if you are typing in a TextInput that has its displayAsPassword set to true, it will show plain text while typing. Once you click out of the TextInput, it displays properly. Here is the code I am using within Flex <s:TextInput id="inputField" width="100%" styleName="loginFields" text="Password" focusAlpha="0" focusEnabled="false" autoCorrect="false" /> I then

How do I attach camera to Spark.components.VideoDisplay

£可爱£侵袭症+ 提交于 2019-12-03 16:32:14
I'm using Flash Builder and created a spark-application Flex project that will stream video from the local camera. If I use mx.controls.VideoDisplay ; there is no problem since it has attachCamera(camera) method. But Spark's VideoDisplay component does not have that method. I know I can use mx controls inside a Spark app but I want to know: What is the real difference between spark.components.VideoDisplay and mx.controls.VideoDisplay ? How do I attach camera to spark.components.VideoDisplay ? Is there any advantages if I go with spark (since it's newer to mx library)? thanks. EDIT : In the

What is the hostComponent?

前提是你 提交于 2019-12-02 11:47:31
问题 Im skinning a progressBar in Flex, and after reading a bit about it, I see that there is something called hostComponent. Adobe site says: "The host component is the component that uses the skin. By specifying the host component, Spark skins can gain a reference to the component instance that uses the skin by using the hostComponent property." But, I still dont understand how this exactly works. Any quick and practical explanation? Thanks! 回答1: When you create custom components in the Spark

ActionScript MXML <mx:> vs <s:>

蹲街弑〆低调 提交于 2019-12-01 21:37:06
Looks like I can use components for both <mx:> or <s:> . So, which has more advantages? As other posters have mentioned, the spark (s:) namespace refers to the new components introduced with Flex 4, while the halo/mx (mx:) namespace refers to the older components. They can be used together, which is necessary since there are not spark equivalents for all of the mx components (notable omissions are DataGrid, Tree, DividedBox, among others.) Some of the motivations for the new spark components include: Separation of form from function, which means the spark components are very much skin driven.

Spark lifecycle changes between Flex 4.5 and 4.6

故事扮演 提交于 2019-11-29 04:07:10
I have recently migrated some of my projects to the shiny new Flex 4.6 SDK. I wasn't expecting much trouble since it was only a minor release. But as a matter of fact I got hundreds of errors all over the place. These errors would mostly come from Spark SkinnableComponent s; for example: override protected function getCurrentSkinState():String { return mySkinPart.someProperty ? "normal" : "someOtherState"; } would work just fine under 4.5, but would throw me a nullpointer error in 4.6. The reason is simple enough: in 4.6 getCurrentSkinState() is called before the skinparts are created, whereas