apache-flex

Is there a way to make a <s:TabBar /> vertical?

和自甴很熟 提交于 2019-12-24 01:07:16
问题 Is there a way to make a <s:TabBar /> vertical? 回答1: I've managed to do it with a custom skinClass. I've changed the Datagroup's layout to VerticalLayout 回答2: The source code here worked for me: http://hasseg.org/blog/post/112/vertical-tabnavigator-component-for-flex/ 来源: https://stackoverflow.com/questions/2935882/is-there-a-way-to-make-a-stabbar-vertical

How can I use XPath with AS3 and get a result that still reffereced to the XMLDocument object?

不羁的心 提交于 2019-12-24 00:55:30
问题 I'm parsing a XML string into XMLDocument object. I want to search for a specific node using XPath technology by using XPathQuery.execQuery() - this function returns new XML object which means I need to convert it to a different XMLDocument object and lose the reference, how can I do that without loosing the reference? I'm using this XPath library of AS3. 回答1: Amarghosh has a good point. why aren't you using e4x ? here is the livedocs documentation for it http://livedocs.adobe.com/flex/3/html

Keep selection when refreshing datagrid in ActionScript

喜夏-厌秋 提交于 2019-12-24 00:47:50
问题 I'm working on my first ever AIR application with flashbuilder - just so you know. I've bound a mx:DataGrid component to a DataProvider which is a mx:HTTPService fetching an xml file with items. To keep the data up to data I'm polling the webservice on a given interval. My problem is that I loose the currently selected item in my DataGrid when the data is updated. I've tried to save the DataGrid.selectedIndex and set when the data is updated, but I'm not sure when to do it?! The closest I've

Creating XML in PHP using SimpleXML with special characters

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 00:46:51
问题 I am working on project in flex 3 , where user enters some text which is to be stored in a mysql database and shown later. I am using XML for data transfer from flex to php and vice-versa. SimpleXMLElement in php is being used to create the XML . The problem is the XML breaks on special characters. Here is sample code: FLEX: var someXML:XML = <root><data>somedata</data><data>...</data> ... </root> var data:Object = {}; data.xmlData = someXML; saveDataService.send(data); Here somedata is the

Subtract (mask away?) a path by a circle shape

最后都变了- 提交于 2019-12-24 00:45:02
问题 I'm drawing a path in Flex using Spark:Path. I want to subtract a circle shape from this path, as in the following image: (The path is black and wide) Any ideas? I tried creating a mask using a Shape object but couldn't quite manage to create a mask that has a circular hole in it. 回答1: Found it. No masks involved. I took the Path and wrapped a Group around it: <s:Group blendMode="layer"> <s:Path id="connector" ... /> <s:Ellipse id="hole" blendMode="erase"> I set the blendMode to "layer" and

Migrating to Flex 4

…衆ロ難τιáo~ 提交于 2019-12-24 00:15:45
问题 How much of an impact will migrating to Flex 4 have on our code base? We have about 40k LOC written in Flex 3. I'm hoping that there are no breaking changes in the Flex SDK, and that we can smoothly transition to the new features of Flex 4 while minimizing any disruption. From what I've read Adobe is developing a new set of GUI components called 'Spark' but I'm hoping our existing stuff can co-exist with the new components. 回答1: Spark and MX components can co-exist within the same application

Use Flex 4.5 and 4.0 in Adobe Flash Builder 4

倖福魔咒の 提交于 2019-12-24 00:00:27
问题 As the new Flex SDK 4.5 has become a stable release, I want to upgrade my apps to the new SDK. But without losing compilation with SDK 4.0 with which they are working perfectly well. I used Flash Builder 4.0 to build them. Is there a way in Flash Builder to conditionally compile with 4.0 and 4.5 and create two release versions in separate bin-debug folders? 回答1: Flash Builder supports multiple SDKs; but you can only use a single SDK per project. You have a few options: Use a build tool such

Array subclasses cannot be deserialized, Error #1034

懵懂的女人 提交于 2019-12-23 23:48:07
问题 I've just found a strange error when deserializing from a ByteArray , where Vector s cannot contain types that extend Array : there is a TypeError when they are deserialized. TypeError: Error #1034: Type Coercion failed: cannot convert []@4b8c42e1 to com.myapp.ArraySubclass. at flash.utils::ByteArray/readObject() at com.myapp::MyApplication()[/Users/aaaidan/MyApp/com/myapp/MyApplication.as:99] Here's how: public class Application extends Sprite { public function Application() { // register

How do I manage library symbols with linked classes in Flash CS4 to compile/debug in Flash Builder 4?

这一生的挚爱 提交于 2019-12-23 23:19:57
问题 I'm building a video player using Flash CS4 (hereby referred to as "Flash") to create the graphic symbols and compiling and debugging with Flash Builder 4 ("FB4"). Here are the steps I take in my current workflow: --Create the graphic symbols in Flash. I've created a few different symbols for the player, but I'll focus on just the play/pause button ("ppbutton") here. --In the Library panel, I go to the ppbutton symbol's Linkage properties and link to a class named assets.PlayPauseButtonAsset

What does different namespaces mean in Flex?

笑着哭i 提交于 2019-12-23 23:13:10
问题 I worked on a flex application 6-7 months back. We used flex 3.5 sdk. Now we are upgrading our flex app with flex sdk 4/4.1 I am still new to flex development and I have a very basic question related to namespace. I have seen three different namespaces in flex sample applications. What is the purpose of having three diff namespaces? When do I use each of them ? xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" Thanks