apache-flex

Call a Java Applet from Flex

白昼怎懂夜的黑 提交于 2019-12-25 04:53:34
问题 I'm working on Flex application and I need to open a Java Applet from Flex (e.g. clicking a button). In particular I'd like to open imageJ, a particular imaging program that could work as application, applet or be integrated in a web page. Is there a way to call it from Flex? I've seen a couple of tutorials that explain how to call a single function in another Java file from Flex, but I'm not so sure that it is what I'm looking for. Thanks for your answers, cheers, David 回答1: I don't know if

Highlighting a DataGrid row in Flex based on an IF Statement

馋奶兔 提交于 2019-12-25 04:53:14
问题 I have a series of DataGrids which will pull data in from a query regularly. I want to highlight an entire row if a specified value in one column of that row is above a certain threshold. So I need to be able to parse through every row in a DataGrid and highlight any row that has a specific value above "100" say. The amount of data in the DataGrids is going to vary and there's no guarantee there will be any at times. Thanks 'override protected function updateDisplayList(unscaledWidth:Number

AS3Crypto RSA Signing

爱⌒轻易说出口 提交于 2019-12-25 04:39:28
问题 I'm having some troubles matching the value returned from RSA signing a Base64 SHA1 hash in the actionscript as3crypto library with the result returned in c#. I'm passing in a Base64 hash decoded as a byte array to the sign() function provided in as3crypto and base64 encoding the result. However, this result never matches the returned result from a c# function which performs the same task. Does it matter that the function takes in and returns hex even though it works at the byte array level?

Create a timeline from date to date in Flex/AS3

江枫思渺然 提交于 2019-12-25 04:39:10
问题 I need to create a timeline between 2 given dates, ie: 2006-01-20 - 2009-02-14 The timeline must be drawn on a given width (can be altered), ie: 600px But I need to add markers, one on year beginning, and others 4 times during the year (each 73 days aprox): Any tips? 回答1: I think the axes in the Flex Charting package allow you to do such formatting by default. If you need to do more, Flex Charts also allow you to draw of them. That might be what you're looking for. Link: http://livedocs.adobe

Restrict MouseEvents to Mask in Flex Skin?

偶尔善良 提交于 2019-12-25 04:37:15
问题 I have a ButtonSkin (Flex 4 Skin) with a Rect, a Label, and a Group, the Group masking the Rect. On rollOver, I animate the Label's x to this.width , and on rollOut, back to the original position. The problem is, when I rollOut, if I roll to the right (where the label is hiding behind the mask), it doesn't register rollOut, until I go past the label (this.width * 2). How do I prevent that, so when I rollOut of the visible area, even though I'm still over the label behind the mask, I get a

displaying an image inline in TextArea.htmlText

雨燕双飞 提交于 2019-12-25 04:33:49
问题 I would like to display some smiley's inbetween text in my chatbox but when i add an image it gets displayed on a seperate line... Any ideas? <mx:TextArea id="myChat" width="271" height="238" backgroundColor="#ffffff" borderThickness="0" editable="false" enabled="true" horizontalScrollPolicy="off" wordWrap="true"> <mx:htmlText> <![CDATA[ <font size='14'> some text - </font><img src='images/emoticons/wink_smile.gif' height='15' width='15'/><font size='14'> more text</font> ]]> </mx:htmlText> <

Creating link in dataGrid

荒凉一梦 提交于 2019-12-25 04:33:24
问题 <mx:DataGrid visible="false" id="dgPosts" width="365" click="" dataProvider="{sendReq.lastResult.loginsuccess.name}" x="140.5" y="169"> <mx:columns> <mx:DataGridColumn headerText="name" dataField="name"/> </mx:columns> </mx:DataGrid> When i click on a particular dataItem, the corresponding website must open. I have tried dgPosts.selectedItem.name but its not working. I am getting the result as XML.... 回答1: As per this page, create an itemClick event handler on your DataGrid. In the function

Create a webbrowser in Flex?

隐身守侯 提交于 2019-12-25 04:32:02
问题 Is it possible to create a webbrowser inside a Flex (not AIR!) application? I want to display some links in a Flex application and when a user clicks the links, it should open a custom component with some sort of a webbrowsing component. Is it possible? 回答1: Check this out: http://www.deitte.com/archives/2006/08/finally_updated.htm has a great example if that doesn't work for you, look at this: http://code.google.com/p/flex-iframe/ 回答2: Short answer - no. There are some simple html rendering

In Flex, is there a way to determine how long an HTTPService.send() call takes round-trip?

百般思念 提交于 2019-12-25 03:38:17
问题 I am looking to find out and track how long a round-trip to the server is taking. Just kinda curious more than anything. 回答1: set up a couple variables and store the time right before the .send() is called in one and store the time at the beginning of the result function in another. The difference of those times should be your total time to get the data. EDIT: I had to do this today to see how long a function was running. I declared this private var start:Number = 0; private var end:Number =

embedding sources dynamically

喜欢而已 提交于 2019-12-25 03:38:13
问题 is it possible to embed sources dynamically. instead of doing this [Embed(source = '../../../../assets/levels/test.xml')] I could probably do something like this var src = '../../../../assets/levels/test.xml' [Embed(source = src )] 回答1: It's not possible for anything within metadata annotations to be dynamic :/. That is, you can't place variables into metadata annotations. If that was possible, there would be SO many cool possibilities. So your first option is the only way to directly embed