flex4.5

Loading Components Dynamically in Flex 4

泄露秘密 提交于 2019-12-25 01:54:18
问题 I have an application whereby I am creating tabs in a TabNavigator dynamically. As you can see as per my codes I am basically having 5 tabs with specific names. Now I also have 5 mxml components with the same names as the tabs (that is the names of the mxml components are same as the tabs, that is Tab1,Tab2 etc. The non-dynamic way would be to use myTab1:Tab1 = new Tab1();myTab1:Tab2 = new Tab2); etc. Thus I will have to do this for each tab which I don't want. What I want to do is to load

Menu attached to mx.controls.PopUpButton never changes

泄露秘密 提交于 2019-12-24 23:29:56
问题 I have prepared a very simple test case to demo my problem. Please just place the 2 files below into a Flash Builder 4.6 project and they will run instantly. My problem is that the menu attached to my (slightly modified) custom PopUpButton never changes - even though the underlying Array data provider is changed when you click one of the 3 buttons on the right side of it: AuxButtonTest.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s

Add layout to Flex UIComponent

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 20:14:15
问题 How can I add a layout (a HorizontalLayout to be specific) to a Flex UIComponent? I'm working on a large mobile application, hence I'd like to avoid using additional containers like HGroups and work with more lightweight components. As usual, any help would be greatly appreciated! 回答1: You can't and you don't really need to. You can't, because only Spark components were designed with an encapsulated layout mechanism. mx components were not and you can't assign a layout to UIComponent. You don

Export flex chart and datagrid to excel

扶醉桌前 提交于 2019-12-24 09:59:15
问题 I need to export a pie chart and a datagrid in flex 4.5 to Microsoft Excel format. I was able to export the datagrid using as3xls. But it doesn't allow to export any chart or even add an image to excel file. Can anyone recommend me a way of doing this? 回答1: As far as I know there is no way to export a chart to Excel by means of existing libraries. I would like to suggest you one specific way to do it. We all well know that current Office files are stored as collections of XML structures. The

How to open and Write specified file in flex web app?

别说谁变了你拦得住时间么 提交于 2019-12-24 07:15:27
问题 In webApp. I want to create file in users desktop with some name and I want to write into it How to do this? is it possible using File reference? Filereference.save() method i tried but it opens dialog box for saving, but i want file to be save in given path without opening dialog box. 回答1: From a browser based Flash app; you cannot save a file to the users machine in Flex without user input. FileREference.save() is the correct approach, but as you discovered it opens a dialog box for user

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 print flex spark datagrid by using the mx PrintDataGrid? Or is there other way to achieve this without using the mx PrintDataGrid?

ⅰ亾dé卋堺 提交于 2019-12-23 12:15:40
问题 this is my first time to ask here since my question is not answerable in the adobe flex forum. So at least finally, I've come to manage it here. Well, Flex 4.5+ is I guess everyone is working on nowadays so I asked this question since I haven't yet find working both spark datagrid and the mx printdatagrid components together . What I'm trying to achieve is to print all the data inside my spark datagrid. So when I do my research, we use the PrintJob or the FlexPrintJob classes. It works fine

Adobe AIR mobile app fails when using HTTPS on Nexus tablet, but works on Kindle

旧巷老猫 提交于 2019-12-23 09:53:32
问题 Ok, 4 hours burned, so I'm turning to SO in hope for help. Here are the facts so you can understand quick: We have an existing AIR Mobile app that runs fine on my laptop, and every Android device we've tested while in HTTP mode (Kindle, Nexus, Asus A100) As soon as we switched to HTTPS, only the laptop and Kindle devices will connect to the server On the other devices, I'm getting a FaultEvent returned, and the error says: "Send Failed. Channel.Connect.Failed error NetConnection.Call.Failed

could not be able to use yahoo weather api in flex mobile app

一曲冷凌霜 提交于 2019-12-23 06:12:28
问题 I want to get Yahoo weather info in flex I want to get image I want to get all of current conditions my code is::: <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> <s:HTTPService id="weatherService" url="{BASE_URL}" resultFormat="object" result="weatherService_resultHandler(event)" fault="weatherService_faultHandler(event)" showBusyCursor="true"> <s:request xmlns=""> <w>{woeidInput.text.toString()}</w> </s:request> </s:HTTPService> </fx:Declarations>

Adding mouseOver/mouseDown/mouseUp/etc. to custom MXML component

╄→гoц情女王★ 提交于 2019-12-21 22:03:46
问题 I'm new to Flex and am porting a pure Flash/AS3 app to Flex 4.5 I've created a custom MXML component based on BorderContainer <?xml version="1.0" encoding="utf-8"?> <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="160" height="140" > <s:Image id="_avatar" enableLoadingState="true" x="0" y="0" width="160" height="120" /> <s:Label id="_username" x="0" y="125" fontSize="12" fontWeight="bold" /