apache-flex

Calling fcsh from PHP script

孤人 提交于 2019-12-11 15:48:56
问题 My question is whether or not Flex's fcsh can be called from within a PHP script. Here is the background: I have been created a simple process that creates a simple quiz/tutorial by converting a text file into a .mxml file and compiling to a .swf file using the mxmlc compiler. This works well from the command line, but I wanted to make the process easier by creating a web-interface to do this. My initial attempts with PHP's exec() function have not worked. The Python scripts I use to create

How do I use Flex's Binding in a Flash AS3 project

孤街浪徒 提交于 2019-12-11 15:48:25
问题 I have a flash app using the flex framework - I would like to bind a display object textField with data from my dataModel. How do I do this without the flex binding brackets "{ }" Thanks in advance everyone. 回答1: The easiest way to do this is to use the BindingUtils class. For example, say you have an object foo with property bar that you want to bind to your text area's text property; all you need to do is the following in your ActionScript: BindingUtils.bindProperty( myTextArea, "text", foo

Flash Builder 4.5 won't run my application

百般思念 提交于 2019-12-11 15:47:18
问题 I was running my application from Flash Builder 4.5.1 without any issues. (It is a Flex application that connects to .Net Web Services). However, something has changed recently in my configuration or project, because when I try to run the app with the play or debug button, I just get a grey screen. I can't even stop on any breakpoints. Eventually (maybe 30 seconds), a message pops up like so: 'The Flash Builer failed to connect to the running application. Please make sure that you are running

How to call JavaScript function from with in Flash application?

假如想象 提交于 2019-12-11 15:47:07
问题 So in my AS file I want to call a function like public function JS(streamUri:String):void{ JavascriptCommand(streamUri) } to get my JS code running... How to do such thing (Example needed) 回答1: It sounds like you're looking for ExternalInterface.call(). Adobe has an article about how to use it to call JavaScript from ActionScript. You can also use ExternalInterface to expose ActionScript to JavaScript and call functions internal to your SWF from JavaScript. Let's say you have a JavaScript

how to navigate in spark list control?

会有一股神秘感。 提交于 2019-12-11 15:34:57
问题 I'm building a mobile app, using spark list control. When user tap on a list item, i want it to navigate to that correspondence page <s:List id="list" width="100%" height="100%" labelField=" label"> <s:dataProvider> <s:ArrayList> <fx:Object label="Page One" /> <fx:Object label="Page Two" /> <fx:Object label="Page Three" /> <fx:Object label="Page Four" /> </s:ArrayList> </s:dataProvider> </s:List> how do i code it so that when user tap on item label="Page One" it will navigate to PageOneView

Air application - how to run two instances at one time [duplicate]

吃可爱长大的小学妹 提交于 2019-12-11 15:34:41
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: starting an Adobe AIR application multiple times I'm trying to test my air application with a java server on my machine but in the flash builder program only one instance can be run at one time. How can I run two instances so I can test two users connecting to the java server I have built? Thanks. 回答1: Every AIR application has a .xml file that defines application properties. This file contains a <id /> tag that

red5: how can i send microphone stream?

故事扮演 提交于 2019-12-11 15:32:32
问题 i am using red5 and flex. Actually my objective is to send microphone stream from the server to the client and play it on the client side. Similarly send microphone stream from client to server and play it on the server side. No need to store the live stream. Is this possible? how can i do it in red5 and flex? 回答1: private var nc:NetConnection; private var mic:Microphone; private function init():void { nc=new NetConnection ; nc.connect (your rtmppath,"anchor"); mic=Microphone.getMicrophone();

Is there a way to use a fingerprint scanner with Flex?

守給你的承諾、 提交于 2019-12-11 15:27:21
问题 I was curious if it's posible to integrate a fingerprint scanner to a Flash/Flex/AIR application, I can't seem to find anything on the web. 回答1: I believe currently there's no way to directly connect to external devices using AIR, but if you use something like Merapi (http://www.merapiproject.net/), you could write a java api that would allow you to do a lot more. 来源: https://stackoverflow.com/questions/1500832/is-there-a-way-to-use-a-fingerprint-scanner-with-flex

flex4 mx|Tree - items order change when i fold and unfold an item

孤街醉人 提交于 2019-12-11 15:17:01
问题 Using Flex 4.1, i'm trying to create a Tree element with a custom ItemRenderer (MXTreeItemRenderer). my problem is that whenever I fold and unfold a root item, the order of the items change.. it's weird like maybe the XML is not formatted properly. any ideas? my Main.mxml file: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <!--

RDKit Building Error

半腔热情 提交于 2019-12-11 15:14:41
问题 Rdkit (version: 2013_09_1) make gives some errors: make[2]: [Code/GraphMol/SLNParse/testSLNParse] [Code/GraphMol/SLNParse/CMakeFiles/testSLNParse.dir/all] Error 2 Previous Steps (Boost 1.54.0, EIGEN3) -------------------------------------------------- BOOST -------------------------------------------------- mkdir ~/boost mkdir ~/boost/boost-home cd ~/boost/ wget "source to boost" tar zxvf boost_1_54_0.tar.bz2 cd boost_1_54_0/ ./bootstrap.sh --with-python-version=2.7 ./b2 --prefix=/lustre/home