apache-flex

HTTP push examples in Flex

半世苍凉 提交于 2019-12-12 05:18:55
问题 I am trying to create a simple board game (a kind of checkers), where users will be able to play online with each other using flex application as a client. I am using django application to process the game on the server side. And I come across the problem, if one user made a move, I can send it to a server, but how do I let the opponent know about it? The way I am thinking to do it is to create a timer and send requests to the server asking was opponents move done or not....But here we have 2

I am only able to replace the first quotation mark in my str

送分小仙女□ 提交于 2019-12-12 05:16:57
问题 Code: var myPattern:RegExp = /\"/; trace(a.replace(myPattern, "\\\"")); <TEXTFORMAT LEADING=\"2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">sdfdsfdsf</FONT></P></TEXTFORMAT> above im using that regular expression to escape the " in the string. however it only does it for the first " What am I doing wrong? 回答1: You need to specify the global flag. See the docs for the replace method. var myPattern:RegExp = /\"/g; 来源: https://stackoverflow.com

AIR: components in window-based mxml component are frozen

有些话、适合烂在心里 提交于 2019-12-12 05:15:09
问题 SUBJ: creating a window-based mxml component, but in design mode all components that I'm adding are not movable, why? If I create component based on group f.e., it's ok, but based on window - they are frozen. Using Flash Builder 4.6 回答1: I guess it's a bug that Adobe needs to look into. But in the meantime, you can use <mx:Window> and change them all to <s:Window> before you will finally build the release version of the project. 回答2: I am facing the same problem and it's very frustrating. I

How to listen to events inside the child component dispatched by the parent component

£可爱£侵袭症+ 提交于 2019-12-12 05:11:53
问题 When an event is dispatched by a component, there are three phases in which the event flows, capture - event flows from the application to the component which dispatches the event, target when the event is at the Target which actually dispatches the event , then the bubbling phase in which the event flows from the target to the application. There is a situation in which Application has child comp1 , comp1 has child comp2. I have a button in the comp1 which dispatches the event and I want to

How to add images into Adobe Flex RichTextEditor?

笑着哭i 提交于 2019-12-12 05:10:13
问题 How to add images into Adobe Flex RichTextEditor control? I mean using a button =) So we have some text editor with RTE a-la editor screenshot http://livedocs.adobe.com/flex/3/html/images/RTE1.png We want to get into its content images using some button. How to do such thing? BTW: I found this http://anotherflava.com/2009/01/12/flex-xhtml-rich-text-editor-w-images/ but I really do not understand how to make it work so if any one can publish simple project with simple (DIRTY IS OK) source it

How to get a stage calculation to resize an image w/r/t c

我是研究僧i 提交于 2019-12-12 05:06:56
问题 I am trying to center an image in the middle of the stage and scale it proportionally to the correct aspect ratio based on its loader's size when the image is loading. In my main app runner I do: private var rec:Rectangle = new Rectangle(); private var img:BitmapDisplay = new BitmapDisplay(); stage.addEventListener(Event.RESIZE, setRect); img.imageURL = "some/path/to/image.jpg"; addChild(img); private function setRect():void { var horz:Number = stage.stageWidth / 16; var vert:Number = stage.y

Load a Web Page in Flex component

情到浓时终转凉″ 提交于 2019-12-12 04:54:26
问题 Is there a way to display a web page in a flex component like Canvas, Hbox or TextArea? Thanks 回答1: you can use Flex IFRAME that embeds HTML Browsing in Flex apps. 回答2: There is some good stuff in here about mixing Flex and HTML. In fact it is a great Flex blog altogether. 来源: https://stackoverflow.com/questions/1947515/load-a-web-page-in-flex-component

Spreadsheet like input facility for ASP MVC

醉酒当歌 提交于 2019-12-12 04:54:07
问题 I'm looking for recommendations for a spreadsheet-like input facility to sit in an ASP MVC environment. The client currently has a large number of very complex interlinked shared spreadsheets (which they are effectively running 90% of their core business from) for collecting and processing information. They wish to move this to a web application and require ASP MVC. They realise that they will not be able to display as much information on screen as they do currently with their spreadsheets,

Need direction in creating a voice chat application

徘徊边缘 提交于 2019-12-12 04:45:01
问题 I want to create a voice chat application as a part of a project. However, i am totally lacking direction regarding the programming language to use, the technologies involved. Can somebody please guide me as to how i should proceed ? Here are the features that i require : user to user voice chat ability to chat in conference (more than 2 users) How do i connect one user to another ? How to handle voice transmission ? How to effectively route packets in a conference ? I'm thinking the most

RemoteObject inconsistent channel location

醉酒当歌 提交于 2019-12-12 04:44:29
问题 I have a swf which, for some reason, has four RemoteObjects pointing to the same ChannelId, but they are listing that channel as being at two different spots. In four of the five RemoteObjects, everything behaves as expected, but in the fourth (WidgetService), the version on dev is switching from dev.context.root to loc.context.root. To make matters more confusing, it only does this on the dev server (QA and production are fine, as are local builds). The relevant information from the config