flex4

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

旧时模样 提交于 2019-12-20 03:38:15
问题 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

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

孤者浪人 提交于 2019-12-19 11:24:11
问题 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

Scrollbars in dropdownlist inside DataGrid itemEditor not working

旧巷老猫 提交于 2019-12-18 07:02:33
问题 I have a DropDownList inside the itemEditor of my DataGrid. There are enough items in the DropDownList to justify scrollbars. You can see the scrollbars, and the mousewheel works fine. If you move the mouse over the scrollbars, they'll change appearance fine (mouseover is working). If you click on them, the DropDownList closes as if you'd clicked elsewhere in the data grid. There's a comment on the Adobe Forums that describe the same problem, but it is fairly old and has not been answered. I

Flex's FileReference.save() can only be called in a user event handler — how can I get around this?

非 Y 不嫁゛ 提交于 2019-12-17 10:59:22
问题 I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or keypress event). Otherwise, calling this method results in Flash Player throwing an Error exception." (from the documentation here) This restriction is a bit vague. Does it mean that I can only call the FileReference.save() method from within

Flex 4 and ScrollBar stepSize

一世执手 提交于 2019-12-14 04:05:29
问题 I want to specify amount to scroll with VScrollBar. So in Flex 3 we have "lineScrollSize" but how this property called in Flex 4? I thought it VScrolBar.stepSize — but it dose not do anything. Somebody please help me. I just whant my content to scroll faster on mouse wheel. 回答1: Have a look into LayoutBase.getVerticalScrollPositionDelta. You might want to subclass and override it! Here's what I did in my own layout class: override public function getVerticalScrollPositionDelta(navigationUnit

Conditional color change <s:SolidColor>

左心房为你撑大大i 提交于 2019-12-14 03:18:47
问题 I am unable to get the DataGridItemRenderer to pass a color value to <s:SolidColor based on the function containing an if statement based on the value of data.Bld_Type. Code below. I am vey new to Flex and not sure what the problem or if this is the right way of doing it. Any help would be appreciated. I have tried passing a hex number and color name. Neither work. Thanks. <?xml version="1.0" encoding="utf-8"?> <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s=

Adobe Air: drag & drop grouped components

孤人 提交于 2019-12-14 02:28:37
问题 I am trying to create Adobe Air application in which I require the components below: Allow me to elaborate this mockup: There are 2 panels on each side, and the items inside these panels can be drag and drop on each other, just like moving items around in 2 folders. Several tutorials have shown that a list with dragEnabled = "true" dropEnabled = "true" dragMoveEnabled = "true" will do the job. However, here comes the crucial part. I want my item in the list to have such a structure that I

BULK of Images Loading to form a Thumbnail Gallery

僤鯓⒐⒋嵵緔 提交于 2019-12-13 22:07:49
问题 I am trying to achieve a Photo gallery where images are showed in thumbnails whenever i select a certain folder of images. For example, if i were to click on the folder A, it will load all the images into a arraylist which will be set as the dataProvider for in my List to create the tilelayout. But i realized that, if i have 500 images, and whenever i scroll down on my scrollview, it kind of lags. Is there any way where it will load all my images first, before displaying? Or any way to make

Flex loitering objects with 0 paths

痞子三分冷 提交于 2019-12-13 17:48:19
问题 My application is leaking a visual component called GraphViewer. Every time the user changes graphs a new viewer is created and the old one is removed from the stage and discarded. Yet memory seems to leak. When I use the Flex profiler to track loitering objects it shows that GraphViewer instances indeed leak, but when I examine the object references of the loitering viewers I see that all of them (except one) have 0 paths to GC root. I take a memory snapshot after GC and then change the

Best way to dynamically load an xml configuration file into a Flex4/Flash movie at runtime?

家住魔仙堡 提交于 2019-12-13 17:07:21
问题 I've got a rather simple question about loading in an xml file at runtime in a SWF. I've found a couple different methods to load in the xml. myXml.load("file.xml"); HTTPService object URLStream object What is better way to load an xml file that always has the same name and is located in the same folder as the SWF on the web server? 回答1: I would use URLLoader - I think that's the most lightweight one. The complexity of URLStream is unnecessary as far as a configuration file is concerned.