apache-flex

MXML: Spark skin a VGroups scrollbar

僤鯓⒐⒋嵵緔 提交于 2019-12-13 21:22:54
问题 I have a VGRoup which automatically gets a scrollbar if the content gets too long. I would like to skin the scrollbar (make it wider). how can i do that? <s:Panel title="Replay" width="95%" height="860" top="920" horizontalCenter="0"> <s:VGroup id="vgroup" left="10" right="10" top="10" bottom="10"> <s:List id="list" height="100%" width="100%" itemRenderer="ListRenderer" /> </s:VGroup> </s:Panel> 回答1: First you should know that it's not the VGroup that gets a scrollbar, it's the List. Groups

Arabic Locale Support in Flex

筅森魡賤 提交于 2019-12-13 20:32:44
问题 Today, I learn how to localize my Flex application and to support multiple languages. The tutorials on-line are great. However, non of them mention the Arabic locale. So basically, I created the Arabic (Jordan) locale files in the SDK folder by using: copylocale en_US ar_JO I navigated to the locale folder and I was able to see the ar_JO folder in there... So I assume everything went smooth. Next, I followed the tutorials (www.babelfx.org) and was able to localize my test application in

Flex/ActionScript - XML

我是研究僧i 提交于 2019-12-13 20:22:57
问题 I am trying to read the below xml file and get the name-value pairs in Flex / Actionscript. Sample.xml <ABC> <XYZ> // First child <id> </id> <width> 10 </width> <height> 10 </height> <name> Person1 </name> </XYZ> <XYZ> // Second child <id> </id> <width> 20 </width> <height> 20 </height> <name> Person2 </name> </XYZ> </ABC> I am trying to use the following all tag name and value details for both childs using .name() and .text() function of XML But I am not getting it. My question is, Can

How flex itemRenderer works ? (their life cycle)

我是研究僧i 提交于 2019-12-13 20:12:37
问题 By works, i mean : how item renderer are instanciate , call , destroy... what is theire life cycle ? I had some display bugs, and this link open my mind to the problem http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=cellrenderer_072_14.html ( the doc is the same for flex3 ) But i want to know more. Any links or knowledge to share ? 回答1: Peter Ent wrote a series of blog posts on item renderers that is extremely useful:

Basics in for loop in actionscript 3 in flex

限于喜欢 提交于 2019-12-13 20:06:42
问题 Good Morning stackoverflow... I'm having a problem.... this is my sample code var i:Number = new Number(); trace("showarray length" + showArray.length); for(i=0;i<showArray.length;i++){ trace("equal daw" + showArray.getItemAt(i).id + "==" + num); if(showArray.getItemAt(i).id == num){ showArray.removeItemAt(i); } } trace('alerts'); myproblem here is...wherenever the if is satisfied it stops looping it immediately goes out of the loop this is a sample output given that the length of showArray

Flex tilelist itemrender instance not match the dataprovider length

不羁的心 提交于 2019-12-13 19:40:18
问题 I use the custom itemrenderer for my Tilelist control. When I run my application. I found that the customitemrenderer's instance count was not equal to the dataprovider listItem count. There are only one item in the dataprovider list, but got 2 customitemrenderer instances. I count'd not find the reason. Can anybody help me. Many thanks! 回答1: For list based components, flex does this for efficiency. Imagine a dataprovider with 1000 rows, but the tile list only displays 9 at a time (3X3).

Getting Unsupported AMF version error while using AMF Connection to send flex message

心已入冬 提交于 2019-12-13 19:37:26
问题 I am trying to send AMF message using AMF Connection API but getting following error as shown below. ClientStatusException message: Unsupported AMF version I am using blazeds-core-4.0.1.21287.jar for this purpose. Following is my code. String url = "https://10.222.73.251:9443/vsphere-client/#"; try { amfConnection.connect(url); System.out.println(amfConnection.getUrl()); } catch (ClientStatusException cse) { System.out.println("Error connecting url: " + cse); return; } try { amfConnection

flash player and browser session cookie sending issue

佐手、 提交于 2019-12-13 19:26:06
问题 i got a nice one. All the days before yesterday when calling a URLRequest the session cookie in the browser got sent back to the server for authentication. Suddenly when issueing the URLRequest the session cookie is not sent any more by the browser. When i open the copy and pasted url from the URLRequest in a browser window it works fine. Do you have any idea what the problem may be....?? Has it something to do with localhost?? maybe when sending a request from flash to localhost the session

How To Make a channel Secure ? I'm using a Amf channel , How to add security to My channel

佐手、 提交于 2019-12-13 18:55:29
问题 I'm using a Amf channel , How to add security to My channel.. 回答1: You need to change the channel def's, you'll find them in: WEB-INF/flex/services-config.xml Change or add a secure definition and endpoint - here is an example: <channel-definition id="my-server" class="mx.messaging.channels.AMFChannel"> <endpoint uri="http://{server.name}:{server.port}/{context.root}/amf" class="flex.messaging.endpoints.AMFEndpoint" /> </channel-definition> <channel-definition id="my-server-secure" class="mx

access mxml component from external actionscript file

老子叫甜甜 提交于 2019-12-13 18:47:23
问题 i'm trying to access an mxml component from my external as file. e.g main.mxml:<br> <code>[mx:text id="myText" />]</code> file.as:<br> <code>var mainM:main = new main(); mainM.text.visible = true;</code> I get the following error: [TypeError: Error #1009: Cannot access a property or method of a null object reference] Any suggestions on how to approach it better. 回答1: The ID of your component instance becomes a member of your application and can easy be accessed like so import mx.core