flex-spark

Flex mobile project does not support mx:Canvas?

时光总嘲笑我的痴心妄想 提交于 2019-12-23 02:43:08
问题 In Flash Builder, if I new a Flex Mobile Project, and paste the following code: <?xml version="1.0"?> <!-- Simple example to demonstrate the Halo Canvas layout container. --> <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:Group/> <mx:Canvas/> </s:Application> The "Canvas" line fails to compile. However it's OK in a Flex Project. My question is, is there any way to use Canvas or other halo

What's the difference between the mx/fx/s object types in Flex 4?

谁都会走 提交于 2019-12-22 09:33:28
问题 Flex4 provides the following namespaces: xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" What's the difference? Which namespace provide which function? Where can I find info about that? 回答1: Namespaces allow you to specify to the compiler where to look for the files/classes that you reference in your mxml. There are two different types of namespaces that get used in Flex 4. A language namespace and a component

Flex Spark List Mouse Wheel Scroll Speed

China☆狼群 提交于 2019-12-22 04:48:17
问题 I have a component extending a Spark List, and when I scroll using the mouse wheel it scrolls too much in one go. I have tried looking for the handler that deals with mouse wheel scrolling in the List class and VerticalLayout class to override but I cannot find it. Is there another way I'm supposed to change this, or am I missing something? 回答1: The "delta" property of MouseEvent.MOUSE_WHEEL defines how many lines will be scrolled by one wheel-scrolling. You could try changing it in the MOUSE

Disable Flex CSS type selector warning?

江枫思渺然 提交于 2019-12-22 01:57:39
问题 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"); }

How do I attach camera to Spark.components.VideoDisplay

时光总嘲笑我的痴心妄想 提交于 2019-12-21 05:28:09
问题 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 ?

ActionScript MXML <mx:> vs <s:>

≡放荡痞女 提交于 2019-12-20 02:34:27
问题 Looks like I can use components for both <mx:> or <s:> . So, which has more advantages? 回答1: 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

Warning: CSS type selectors are not supported in components 'sparks.component.TextInput'

爷,独闯天下 提交于 2019-12-19 02:01:51
问题 I am trying to do a simple CSS declaration. However, I have got the warning above and not sure how to solve it. I thought s|(type) should declare the style for me. <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; s|TextInput{ color:#313131; } </fx:Style> <s:Panel width="600" height="480" skinClass="skins.CustomPanel"> <s:layout> <s:VerticalLayout paddingTop="7"/> </s:layout> <s:TextInput text="TextInput CSS not working"/> <mx:Form>

Spark lifecycle changes between Flex 4.5 and 4.6

久未见 提交于 2019-12-18 04:08:49
问题 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

SelectItem Method in spark Datagrid?

帅比萌擦擦* 提交于 2019-12-14 03:59:09
问题 I am enabling multiple row selection with clicking checkbox Item renderer. this works for extending mx:Datagrid (other answer) override protected function selectItem(item:IListItemRenderer, shiftKey:Boolean, ctrlKey:Boolean, transition:Boolean = true):Boolean { // only run selection code if a checkbox was hit and always // pretend we're using ctrl selection if (item is CheckBox) return super.selectItem(item, shiftKey, true, transition); else //Avenir Cokaj 23/06/11: this enables the flex's

iOS TextInput displayAsPassword doesn't displayAsPassword

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 03:42:33
问题 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%"