flex4

How to close all popup windows in Flex?

徘徊边缘 提交于 2019-12-02 06:44:46
I want to show all popup windows(already popped up and closed individually) on an image by pressing a button press and want to close all those windows on another button press. Any help is appreciated. Try this: package com.devahead.utils { import flash.display.DisplayObject; import mx.collections.ArrayCollection; import mx.core.Application; //import mx.core.FlexGlobals; // NOTE: use this import for Flex 4.x and higher import mx.core.IChildList; import mx.core.UIComponent; import mx.managers.PopUpManager; public class PopUpUtils { /** * Returns all the popups inside an application. Only the

How to install Flash Builder 4 or a Flash Builder plugin on Eclipse in Ubuntu 10.04?

不想你离开。 提交于 2019-12-02 04:15:13
I want to install Flash Builder 4 or a Flash Builder plugin on Eclipse in Ubuntu. There are two methods I know to achieve it. 1. Use fb4linux. 2. Use wine and follow these steps http://diariolinux.com/2009/06/22/how-to-install-flash-builder-on-linux/ Second method gave me errors while installing. First method is good and installs fine, however it doesn't have design mode. They say it isn't supported in linux. Is there a work around or some other plugin to enable it ? Thanks. fb4linux is a hack of the Flash Builder plugin. It won't have most of the useful features as its in breach of the

how to lock Iphone by programmatically [duplicate]

谁都会走 提交于 2019-12-02 03:13:12
This question already has an answer here: Programmatically lock and unlock iPhone screen 8 answers Is there is any option to lock the Iphone by Software Code. Currently I am working in Flex 4 . I couldn't get any idea about this work. actually my Iphone covered by thick panel , it's very difficult to press the lock button . so I planned to create a shortcut for lock Iphone by coding. Kindly give me some Idea about this task, using Flex 4 or other Languages also is okay. thanks in advance. If you want to do this so, Apple never approve this, your app must be jailbreak. you can do this by

Loading flex modules compiled with Flex 4 SDK into an application compiled with Flex 3.5

巧了我就是萌 提交于 2019-12-02 02:28:53
I am working on a feature for an application that requires Flex 4 functionality. Due to some migration issues of the application from Flex 3.5 to 4.0, I have decided to implement this feature as a module that is compiled with Flex 4.0. The theory is that the application would remain compiled in Flex 3.5 and load the module when it needs it. Here is the module loading code: public function loadDiagModule():void { var moduleLoader:ModuleLoader = new ModuleLoader(); moduleLoader.url = "module/DiagrammerModule.swf"; moduleLoader.loadModule(); moduleLoader.addEventListener(ModuleEvent.READY,

Styling ButtonBar font in Flex mobile app - with screenshot attached

只谈情不闲聊 提交于 2019-12-02 01:52:40
问题 I'm trying to add a ButtonBar at the bottom of a mobile Flex app by using this code: CSS: @namespace s "library://ns.adobe.com/flex/spark"; s|ActionBar, s|ButtonBar { chromeColor: #0066CC; color: #FFFFFF; titleAlign: center; } ActionScript: <s:ButtonBar requireSelection="true" width="100%" bottom="0" skinClass="spark.skins.mobile.TabbedViewNavigatorTabBarSkin"> <s:ArrayCollection> <fx:Object label="Распасы" /> <fx:Object label="Пуля" icon="{MONEY}" /> <fx:Object label="10" icon="{CALL}" /> <

Duplicate Flex Sessions With Cross-Domain Requests

瘦欲@ 提交于 2019-12-01 19:53:08
When I make a request locally, I have no problems at all maintaining my FlexSession; however, when I make a request from another computer, it creates duplicate FlexSession for every request. I noticed the JSESSIONID is different for each request which is what's probably causing the duped sessions. But I have no idea why this is happening. The specific error I get is: Channel.Ping.Failed error Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly. My crossdomain.xml is as

Merge data into filtered ArrayCollection (maybe by using IViewCursor or localIndex?)

狂风中的少年 提交于 2019-12-01 13:49:01
I have a Flex question, which isn't as easy as it seems at first. At least I'm struggling since 1 week with it. I have prepared a test case and a screenshot. The question is: how do you merge data (coming repeatedly from server) into a filtered ArrayCollection? The screenshot: The TestCase.mxml (just place it into a Flash Builder 4.6 project): <?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"> <fx:Declarations> <s:RadioButtonGroup id="_group" itemClick="radioClicked(event);"/> </fx:Declarations> <fx:Script

How do I set the dataProvider for an <s:List> component to be an XML file?

青春壹個敷衍的年華 提交于 2019-12-01 11:52:38
I've got the latest Beta of Adobe Flash Builder 4. I want to use a <s:List> component, and specify the dataProvider as being an XML file. However, after loads of research (including looking at doc links off labs.adobe.com), I still can't figure out how to do it. The XML file will look something like this: <?xml version="1.0" encoding="ISO-8859-1"?> <imageList> <image location="path/to/file1.jpg" /> <image location="path/to/file2.jpg" /> <image location="path/to/file3.jpg" /> </imageList> if you want to display images in a list, you should load the xml with a URLLoader , store it in a bindable

Multilined itemRenderer for a spark.components.List - with test case and screenshot

假如想象 提交于 2019-12-01 11:36:08
In the simple Flex 4 web application below - is it possible to change the custom item renderer MyRenderer , so that it wraps the too long lines? TestApp.mxml: <?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"> <fx:Script> <![CDATA[ import mx.collections.ArrayList; private static const MONTHS:ArrayList = new ArrayList([ "1 January is a beautyful month", "2 February is a beautyful month", "3 March is a beautyful month", "4 April is a beautyful month", "5 May is a

Flex 4 DateChooser

 ̄綄美尐妖づ 提交于 2019-12-01 08:26:06
问题 I have an Array of days. I want those days to have a different background-color in the DateChooser component, say red. How can I do that please? 回答1: The DateChooser isn't that easy to customise! Something close to this will work, though you'll need to tweak it somewhat to suit what you want to do. public class FancyDateChooser extends DateChooser { public var fancyStyleName : String; public var dayToMakeFancy : String; protected override createChildren() : void { super.createChildren(); var