apache-flex

Embed a browser in Flex

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 15:11:46
问题 Anyone know of any documentation that would help me with trying to embed a web browser component into adobe flex. I've seen in Adobe Air that there is a Item; however, in Adobe Flex 3 for a .swf file that would be somewhere - I do not see it. Any ideas? 回答1: Only Air has that capability built in. However there is a very good-looking component that you can find here: http://drumbeatinsight.com/ It is paid-for though. Open source solutions are here http://sourceforge.net/projects/as3htmlparser/

Eclipse is telling me a cycle was detected in the building path, but that's not true!

為{幸葍}努か 提交于 2019-12-12 14:23:26
问题 Eclipse is telling me: a cycle was detected in the build path of -project name- , although the structure of the project (created by others in the team) does not have cycles. The same project is deployed on other machines (the same!) and it doesn't give the error. I need to work from my machine so I need to solve this. It is giving me the error in 8 different projects. It was giving me the error in more (10 projects) but with cleaning and building 10 times just changed to 8! (without any

getting video dimensions before upload, client-side

流过昼夜 提交于 2019-12-12 13:52:20
问题 I have an upload form for an video. The user clicks browse and selects a file. How can I get the video dimensions the moment the user selects the file (before the file is even uploaded to the server). It obviously has to be something client-side with maybe javascript/jquery or flash/flex (prefer js//jquery though), but can either of them do this? 回答1: Unfortunately, the short answer is you can't - You'd need access to scan the file contents using javascript which isn't allowed. Worse than

Flex - Change position of scrollbar to the top of a HorizontalList component

只谈情不闲聊 提交于 2019-12-12 13:31:31
问题 By default, the Horizontal ScrollBar of a HorizontalList component will be at the bottom. Is there a way to reposition it so it is at the top? Just for clarity, I do not mean moving the scroll position using either scrollToIndex or horizontalScrollPosition or similar, but the actual physical position of the scrollbar component. Any suggestions would be very appreciated! 回答1: I was looking for something similar myself a while ago and found this post. I eventually ended up solving my problem in

Mapping PHP and Flex Objects

半世苍凉 提交于 2019-12-12 13:29:53
问题 I am using ZendAMF for remoting. <?php error_reporting(E_ALL | E_STRICT); //error reporting, not needed require_once "Zend/Amf/Server.php"; //the zendAMF server require_once "process.php"; //our test class $server = new Zend_Amf_Server(); //declare the server $server->setClass("process"); //load our test-class to the server $server->setClassMap("Session", "Session"); echo($server->handle()); // needed to start the server ?> My Question is i have a ActionScript class Session and a PHP Class

Rails and Flex

二次信任 提交于 2019-12-12 13:23:47
问题 Any thoughts on using Flex to build an RIA for administering a complex rails app. We are starting to find it difficult using ajax to keep our admin section intuitive and easy for users to work with. Would welcome any advise or suggestions you all may have Thanks Dom 回答1: You've got RoR guys working on this program and you've managed to develop a complex rails app that has enough subtleties that the admin section is difficult to use. The answer to this problem is not to use a different

Disable individual buttons in a buttonbar

寵の児 提交于 2019-12-12 13:06:21
问题 How can I disable a single button in a buttonbar in Flex? 回答1: here is the sample app. <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onComplete();"> <mx:Script> <![CDATA[ import mx.controls.Button; private function onComplete():void { for ( var i:int=0; i<btns.numChildren; i++ ) { if ( i == 0 || i % 2 == 0 ) { Button(btns.getChildAt(i)).enabled = false; } } } ]]> </mx:Script> <mx:LinkBar id="btns"> <mx:dataProvider>

Adobe Cirrus Error on Direct Connect“Property startTransmit not found on flash.net.NetStream”

你离开我真会死。 提交于 2019-12-12 12:33:41
问题 The error: ReferenceError: Error #1069: Property startTransmit not found on flash.net.NetStream and there is no default value. I've played around with cirrus plenty of times before and have yet to see this error before. But now I cant get it to go away. My p2p Direct connect works great just fine. But every single time i see this error pop up. It throws an exception. I can't figure out where it's exactly happening. Has anyone encountered this before? Any ideas where I should look? 回答1: Every

In actionscript, what's the best way to check if a xml node property exists?

↘锁芯ラ 提交于 2019-12-12 12:18:34
问题 If I have some xml like so: <books> <book title="this is great" hasCover="true" /> <book title="this is not so great" /> </books> What's the best (or accepted) way in actionscript to check if the hasCover attribute exists before writing some code against it? 回答1: Just to add some precisions. If you want to check if the property exists even though it's empty you should definitely use hasOwnProperty : var propertyExists:Boolean = node.hasOwnProperty('@hasCover'); Checking the length of the

Flex 4 - DataGrid with Button in cells

六眼飞鱼酱① 提交于 2019-12-12 12:15:34
问题 How can I add a button control in cells of a datagrid? I'm looking to have a button in each row of one column in the datagrid. The datagrid control rows don't need to be selectable in any way. 回答1: It's really quite simple. Just define a custom item renderer for the column <mx:DataGrid width="100%" height="100%" dataProvider="{this.someData}"> <mx:columns> <mx:DataGridColumn headerText="Buttons" > <mx:itemRenderer> <fx:Component> <s:ItemRenderer width="100%"> <s:Button label="{data.buttonName