flex3

Image object white background showing

五迷三道 提交于 2019-12-08 11:35:01
问题 I have an Image object that gets resized to the containers size when the image loads. The images that it will load are dynamic in size so after resize I end up with a sliver of the image object's white background showing. How can I make the Image object not have a white background and be transparent. Parts of the PNG's have transparent parts but show up as white due to the white background of the object is it loaded into. <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" headerHeight="20" >

Get content of a single cell from a DataGrid in Flex 3

非 Y 不嫁゛ 提交于 2019-12-08 10:19:40
问题 I want to select information in a single cell from my DataGrid in Flex 3. Specifically, I'm displaying three phone numbers per line and the user needs to be able to select one of those numbers, from any row, but not the whole row. While similar to this, I am displaying the DataGrid to the user. The answer for that question was to manipulate the dataProvider, how can I know what cell I've selected in order to do that? 回答1: Check this. 来源: https://stackoverflow.com/questions/2476476/get-content

Flash TextField HTML - How do I prevent the error dialogue for missing images? (Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found)

可紊 提交于 2019-12-08 07:53:01
问题 I'm using a Flash TextField control to display some HTML content inside a Flash presentation to be shown on a large touch-screen kiosk. Unfortunately, if any image tag in the displayed HTML content points to a non-existent image, a dialogue is shown with the error message Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. I am trying to avoid having that dialogue pop up. The solution for loading content through a loader class is to catch IOErrorEvent.IO_ERROR , but I've

Security in Flex – is it possible to manipulate downloaded code and execute web service

一世执手 提交于 2019-12-08 07:42:33
问题 I am designing the application in Flex that connects to some web services to perform some financial transactions. Web services are secured using https protocol and are asking for user token created at login on each request. This is used to authenticate and authorize the user. So far so good. The trick part is that not all of our web services are coarsely grained. To give you an example, we can have two web service methods: EnoughFounds and Transfer. So, only after the method EnoughFounds

Streamed PNG using URLStream intermittent when server is bogged

拈花ヽ惹草 提交于 2019-12-08 07:06:50
问题 So I used the regular loader class to load my images however the .close function is apparently broke in that class and it will not stop the download if it is called. In my case I need to be able to cancel loading as the user could possibly be scrolling through alot of images and the if not canceled it can take a few minutes to catch up to the scroll position. So after research the URLStream class seems to cure this problem and I found a good streaming class here This class works very nice

Security in Flex – is it possible to manipulate downloaded code and execute web service

柔情痞子 提交于 2019-12-08 06:25:29
I am designing the application in Flex that connects to some web services to perform some financial transactions. Web services are secured using https protocol and are asking for user token created at login on each request. This is used to authenticate and authorize the user. So far so good. The trick part is that not all of our web services are coarsely grained. To give you an example, we can have two web service methods: EnoughFounds and Transfer. So, only after the method EnoughFounds replies “true” will I execute Transfer. This logic is programmed inside the Flex application code. The

Thumbnails for mxml components in Flex

百般思念 提交于 2019-12-08 04:31:37
问题 Is it possible to make some kind of 'dynamic' thumbnails for mxml components which I'm using in my application? By 'dynamic' I mean if I change some layout in mxml component, my thumbnail refreshes according to new layout without any screen capturing, photoshoping or similar =) Edit: I am using a FlexBook component, which makes a 'book' of mxml components (because each page has many independent interactions). I think that problem could be that bitmap data does not exist until I actually start

Skin Flex 4 combobox to look like Flex 3 combobox

我是研究僧i 提交于 2019-12-08 03:16:50
问题 As I have migrated my application to Flex 4 recently, I want to utilize the <s:Combobox> component in my application rather than <mx:Combobox> . The problem is that the look and feel of both are different. How can I make the <s:Combobox /> component look (all skinning e.g. hover over, click, outline) exactly the same as <mx:Combobox /> ? More specifically, I want to apply the Halo theme to a DropdownList component. Is that possible? 回答1: You could just set the default skin for your

Display List ItemRenderer Index in Flex3

左心房为你撑大大i 提交于 2019-12-07 23:12:30
问题 Is there a direct way to get the item index of the data inside an itemRenderer? I need to display the item number against each item. I am currently doing a workaround and won't allow reuse of my itemRenderer component. var index:int = model.dataColl.getItemIndex(data) + 1; itemNo = index.toString(); This is what i am using now, it works, but the concepts of component reuse and data abstraction are compromised. I am using Flex 3. 回答1: The first answer seems to be working, but slow. It takes O

Is there a SVG to MXML Converter?

北城以北 提交于 2019-12-07 18:05:28
I'm trying to use an SVG file in my Flex app - but it seems the best way to do that is to convert it to MXML. However, I cannot find an SVG to MXML converter. There seem to be a number of SVG to XAML converters (for Silverlight/C#), but I can't find anything analogous for Flash/Flex. Any help would be appreciated. Thanks, Karthik You should be able to Embed the SVG directly , without a converter. yes, there are few libraries but i haven't come across any mature one- - http://code.google.com/p/as3svgrendererlib/ - http://www.degrafa.org/ - http://code.google.com/p/svg-viewer/ - http://labs