apache-flex

how do I open a newly written file from application storage directory in as3 / flex mobile?

放肆的年华 提交于 2019-12-13 05:03:59
问题 Im working on an app (flex 4.12 sdk, using flashbuilder 4.5, creating an app for ios and android, testing on an android htc one primarily)... and am using the camera to capture a file... Im then saving that image to the application storage directory, and I want to open the image in the default web browser or trigger a native dialog (android users) to choose the web browser of their choice... how it opens isnt really important right now -- Im mainly trying to just 'access' it with the device

Flex: application is confused when passing variables to custom component

£可爱£侵袭症+ 提交于 2019-12-13 05:01:29
问题 I'm new to Flex and I'm missing something very basic about architecting a Flex application -- I've implemented a custom component MyReportGrid and extended GridColumn with MyColumn . I've tried to outline the application code below. The interesting thing to notice is that class OfficeItems is used by class MyItems , and the MyColumn (which extends GridColumn ) includes a customPath variable that is used to access variables pen , pencil , and stapler inside class OfficeItems . I believe that

Record videoconference application to flv

和自甴很熟 提交于 2019-12-13 05:01:05
问题 I've spent plenty of time solving this problem, but it looks like I need some help. I have a web conference application which provides ability to stream live video, chat, share documents, draw on a whiteboard, share desktop, etc. And now I want to record everything that happens in taken separately so called webinar , including video and sound. So I'm looking for tools that can help with this goal. Here's input data: This is Adobe Flash based application Using wowza server Everything should be

Adobe Flex ItemRenderer: Making Calculations

家住魔仙堡 提交于 2019-12-13 04:57:59
问题 I have a database including a user's Date of Birth, but I want to display their age. I have a function which calculates the age but I cannot use it in the ItemRenderer and I don't know why. I don't think it will work if I use this code outside of the ItemRenderer. The DOB is accessed by {data.dob} . Here's my code: <s:GridColumn dataField="age" headerText="Age" width="80"> <s:itemRenderer> <fx:Component> <s:GridItemRenderer> <fx:Script> <![CDATA[ // Retrieving the user's DOB var dateStr

Adobe Air video player blank video on iPad

狂风中的少年 提交于 2019-12-13 04:53:44
问题 Any idea why this simple piece of code wont work on iPad mobile? This works great on Android tablets, the desktop version, web version, etc. On iPad, the video is blank <?xml version="1.0" encoding="utf-8"?> <!-- controls\videoplayer\VideoPlayerEvent.mxml--> <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"> <s:VideoPlayer source="rtmp://fmsexamples.adobe.com/vod/mp4:_cs4promo_1000.f4v" width="500"

Character boundaries of text field based on parent

▼魔方 西西 提交于 2019-12-13 04:47:50
问题 I have a text field inside a container. I'm wondering is it possible to find the boundaries of each character based on the container and not the text field. Here is a sample screen shot: And normal state would be like this: With this I can find the bounds of each character based on text field, But I need it based on the container: var rect:Rectangle = new Rectangle(); for (var i:int = 0; i < textField.length; i++){ rect = textField.getCharBoundaries(i); } Is there anybody whom has an

How to get dragged items into grid?

拟墨画扇 提交于 2019-12-13 04:41:02
问题 <mx:DataGrid id="dg1" dataProvider="{cNumbersList}" cornerRadius="3" allowMultipleSelection="true" change="selectedItem=(event.target as DataGrid).selectedItem.contactName; selectedSno=(event.target as DataGrid).selectedItem.contactNo;" dropEnabled="true" dragMoveEnabled="true" dragEnabled="true" fontWeight="normal"> <mx:columns> <mx:DataGridColumn dataField="contactName" headerText="Name"/> <mx:DataGridColumn dataField="contactNo" headerText="ContactNo"/> </mx:columns> </mx:DataGrid> <mx

flex-iframe error: This content cannot be displayed in a frame

僤鯓⒐⒋嵵緔 提交于 2019-12-13 04:40:00
问题 I have a simple flex application that I created for testing. I download "flex-iframe-1.4.6.zip" library and using this library I am trying to display a url. But it does not show the web page instead it shows an error: "This content cannot be displayed in a frame". <flexiframe:IFrame id="mapIFrame" visible="true" source="http://www.google.com" width="500" height="500" label="Google"/> How can I solve this problem? 回答1: The message "This content cannot be displayed in a frame" is coming from

Flex 4.5 JSON check for existence of key before exception?

对着背影说爱祢 提交于 2019-12-13 04:34:25
问题 Is it possible to check for the existence of a key before Flex 4.5 JSON throws an exception for key not found? I have some json data where some keys are not always present. I am using CallResponder... The issue is that when you try accessing callResponder.lastResponse.key - and, say, key is not always present in your json, Flex won't be able to parse it. This happens even if you check if (callResponder.lastResponse.key) - the error occurs on the if line, in that case (See old error dump here)

Is it possible to connect a flex application to two different BlazeDS servers?

浪尽此生 提交于 2019-12-13 04:28:36
问题 My question is is it possible to connect to two different BlazeDS servers from the same Flex app? I have already read this question: Can a Flex client app connect to BlazeDS running on a different server? However, it appears to be discussing the possibility of connecting a Flex client to a BlazeDS on a different server but not necessarily to another BlazeDS on a different server. I have also read this question: One Flex client connecting to two webapps using BlazeDS - Detected duplicate HTTP