apache-flex

seeking not working in flex 4.5 netStream byteArray

杀马特。学长 韩版系。学妹 提交于 2019-12-24 03:40:35
问题 I am trying to play a flv video file in flex 4.5 with netStream byteArray. What I am doing is below: Creating a netStream and video object Attaching a netStream with video Reading flv file in byteArray Append byteArray in netStream using "appendBytes" method Playing video In this scenario Play, Pause, Stop functionalities are working fine with video. But when I am trying to seeking in video then it is not working. You can follow the code what I am doing by clicking on the link http://pastebin

How to get type of variable? and instantiate it?

孤人 提交于 2019-12-24 03:36:12
问题 I am trying to make a function that opens a window but makes sure the same window is not already open. I want to be able to pass it a non-instantiated var or an instantiated var and it work either way. If the window is already open it closes it then reopens it. So I need a way to pass a variable of type Window or a subclass if it, and instantiate the proper subclass. I am looking for something like this: public function openWindowOnce(window:Window):void { if(isOpen(window)) { closeIfOpen

Adding Tomcat Plugin to Flex Builder

[亡魂溺海] 提交于 2019-12-24 02:42:56
问题 Is there anyway we can add the tomcat eclipse plugin to Adobe Flex Builder 3? In other words can we add all eclipse plugins to Flex Builder also? 回答1: Yes you can. And you don't have to download Eclipse. You can do this within Flex Builder. What you have to do is to go to help and then go to find and install. There you have to look for WTP (Web Tools Platform) plus WST ( Web Standard Tools) and once you select it it should say that there are some errors, but what you have to do is to select

[IOErrorEvent type=“ioError” bubbles=false cancelable=false eventPhase=2 text=“Error #2032”]

左心房为你撑大大i 提交于 2019-12-24 02:39:08
问题 I am trying to display database details in a Flex datagrid and connected using HTTP Service. It was able to display details without any issue when I was working in the FlashBuilder 4.5, however, I deployed the bin-debug part in the Tomcat webserver to access it globally. I am experiencing this error message when I am trying to access the swf file " HTTP request error Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://localhost:8084

Is there a tool that can track unused code automatically

こ雲淡風輕ζ 提交于 2019-12-24 02:28:16
问题 I currently have 6 different flex applications (widgets) that run on a main page. They all depend on one common library project. I am currently cleaning up the codebase quite dramatically and it is hard to keep overview this way especially since I inherited the codebase. Does anyone know a tool that can automatically inform me of any dead code? Cheers 回答1: There are a few tools out there. I'd start with this one from Adobe; which I believe is written as an eclipse plugin. FlexPMD is another

Flex DataGrid: Change value based on another value?

◇◆丶佛笑我妖孽 提交于 2019-12-24 02:22:19
问题 I have a DataGrid in Flex, with one column a checkbox and another a numeric value. When the checkbox is clicked, the numeric value should change, either to 0 if the checkbox is unselected, or to a pre-defined minimum value if the checkbox is selected. Here is the code I have: <mx:DataGrid x="0" y="45" width="272" height="525" dataProvider="{dp}" variableRowHeight="true" editable="true" id="equipmentDG" verticalAlign="middle"> <mx:columns> <mx:DataGridColumn headerText="" headerStyleName=

Flex to HTML5 - what for presentation layer (canvas, div, ???)

天涯浪子 提交于 2019-12-24 02:00:43
问题 My question is about migration from Flex3 to HTML5. I want do migrate myself not application actually. The question is, what direction is the best and most similar to flex knowledge. Maybe I will reimplement some custom components I already have in my flex library. I think that some of useful flex components I will have to implement myself in HTML5 - e.g. AdvancedDataGrid or Tree. Now I can see 2 possibilities: assume page (or big DIV) as application master class, and implement other

Download/Save/Write a file on the client's hard disk using flash/flex

自古美人都是妖i 提交于 2019-12-24 01:44:07
问题 I wonder how can I download/save/write a file from my server to a client's computer using flash or flex. An example of what I'm looking for is avilable on http://www.flexdownloads.com Sign up Sign in Click on the ("FREE") button placed on the right of the page. (the orange button) Choose any product (won't cost you anything) Press "BUY NOW" then you'll see a confirmation popup for the download, then you choose where do you want to save the file, and the flash movie saves the file! 回答1: Use

Flex memory limit - how to configure

杀马特。学长 韩版系。学妹 提交于 2019-12-24 01:36:37
问题 Can I control the memory limit (i.e. when GC has to run) in my Flex application? 回答1: I don't think so. That is probably a parameter of the flash player based at the client, and I assume it is also dependant on the exact resources the client machine has, i.e. more RAM means less frequent gc, etc. 回答2: Check out the flash.system.System class. The "totalMemory" property will show you (in bytes) how much memory the current application is using. Calling System.gc() will run a GC. You could use a

Applying blur filter to BitmapData

≯℡__Kan透↙ 提交于 2019-12-24 01:19:51
问题 Here's the code I am using to blur an image using BitmapData. The function is called on a Slider_changeHandler(event:Event):void event and the value of the slider is passed to the function as blurvalue. The problem is the function works but seems to be cummalative (if that's the correct word!), that is, suppose I slide it to the maximum and after that try to reduce the blur by sliding it back towards the front the blur still keeps increasing. How do I make it to work so when I will slide it