flex4.6

cut copy paste with DisplayObject(Group ,UIComponent) in action script 3 flex 4

偶尔善良 提交于 2019-12-12 15:21:30
问题 I am implementing Cut Copy Paste in my application like cacoo. but I face problem during these operation. i'm using idea behind cut copy paste var className:String = getQualifiedClassName(objcut.getItemAt(i)) var klass:Class = getDefinitionByName(className) as Class var cloneObject:* = new klass() so i'm not able to preserve all property of object. There is any other idea to perform these operation in flex 4.how can i copy an Graphical object in Flex 4(as3). Copy an Object and paste multiple

Flex 4.6 TabbedViewNavigator - TabBar with indication of more items

痴心易碎 提交于 2019-12-12 02:46:16
问题 I would like my TabBar to have the ability to show if there are more menu items on either the left or the right. Else the user may not know that more options exist. Something like either arrows to indicate more items or even some sort of beveled effect on the last visible tab item so that it suggests more options are off screen. This is how my TabBar looks like with an arrow showing how the other items are just cut off: Here is the code of the TabBarSkin: public class ScollingTabBarSkin

How to capitalise the first letter of every word in a string

半城伤御伤魂 提交于 2019-12-11 19:52:28
问题 I am using the Flex SDK and able to capitalise the first letter of every word as follows: textInput.text.toLowerCase().replace(/\b./g,function(...m):String{return m[0].toUpperCase()}) This works fine, however letters after punctuation are also being capitalised, which works in some cases (e.g. O'Neil) but not others (e.g. Connah'S Quay). I want to have the code only look at letters at the start of a string and letters after a space. Can anyone provide the correct code to use in this instance

Event is not being triggered for Geolocation in Flex

前提是你 提交于 2019-12-11 16:06:43
问题 I created a button that looks up the coordinates of the device. There is no errors in the code but for some reason which is eluding me, the event is not being triggered. Here is my code: protected function lblCheckIn_clickHandler(event:MouseEvent):void { if (Geolocation.isSupported) { lblLat.text = "Finding Location..."; geo.addEventListener(GeolocationEvent.UPDATE, onUpdate); } else { lblLat.text = "Geolocation is not supported on this device."; } } Later on I have the event code: protected

Save Application state on Disk or some where so user access it later

十年热恋 提交于 2019-12-10 21:24:03
问题 In flex builder 4.5 i'm working on a project like cacoo. I want to save diagrams(display object,ui components,text) before close the application into somewhere than I would be able to access after the application open again . more clear: -If user edit some uml diagram on this project and save it for edit later and close application.after some days he/she want to edit previously saved diagram. now how i'm save this diagram for future edit. 回答1: If save/open dialog will work for you, you can

can i use design mode in fb 4.6 if I add apache flex sdk 4.9.1 as my compiler?

≯℡__Kan透↙ 提交于 2019-12-09 00:32:27
问题 I am running Flash Builder 4.6 and just added Apache flex sdk 4.9.1 (build 1447119) to my mac book pro running Moutain Lion and when i tried to do a quick 'hello world' and add a few elements to the stage using design mode i got following error: The design mode is disabled as the project uses an incompatible version of the flex sdk My question is if i go beyond the default sdk that shipped with fb 4.6 do I therefore loose the ability to use design mode and have to do everything in source mode

How to ensure that the popUp always displays above the PopUpButton? With test case and screenshot

╄→尐↘猪︶ㄣ 提交于 2019-12-08 01:03:37
问题 Few users of my Flex 4.6 web application are complaining, that the mx.controls.PopUpButton at the right bottom corner of it sometimes opens a List underneath it and is thus unusable (I can't reproduce that myself - probably an unlucky combination of their Flash player and/or font size setting?) How could I ensure, that the popUp component (in my case it is a spark.components.List) always opens above the PopUpButton? I suspect, that I should create a skin based on mx.skins.halo.PopUpButtonSkin

How to ensure that the popUp always displays above the PopUpButton? With test case and screenshot

好久不见. 提交于 2019-12-06 07:40:01
Few users of my Flex 4.6 web application are complaining, that the mx.controls.PopUpButton at the right bottom corner of it sometimes opens a List underneath it and is thus unusable (I can't reproduce that myself - probably an unlucky combination of their Flash player and/or font size setting?) How could I ensure, that the popUp component (in my case it is a spark.components.List) always opens above the PopUpButton? I suspect, that I should create a skin based on mx.skins.halo.PopUpButtonSkin and assign it to my PopUpButton? And I probably should use the PopUpPosition.ABOVE constant together

Flash Builder 4.6 always shows blank html page on run in Google Chrome

醉酒当歌 提交于 2019-12-06 02:47:53
问题 Flash Builder 4.6 always shows blank html page on run in Google Chrome. I have tried everything but nothing works. Kindly help. 回答1: Simple answer: Do not use Chrome for debugging Flash Builder projects. For debugging, do this: Go into the Debug Configurations (Run > Debug Configurations) Find the configuration for the current project Under "URL or path to launch", uncheck "Use default" and browse for the SWF (html is default). This will open the debug in the actually Flash Debug Player

Using mx.charts in a Flex mobile project

百般思念 提交于 2019-12-05 07:28:22
问题 Adobe states that Charts are supported in mobile projects but when I try to change the following working files (created project with File - New - Flex Mobile Project - Google Nexus One): MyTest.mxml: <?xml version="1.0" encoding="utf-8"?> <s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.MyTestHome"> <s:navigationContent> <s:Button label="Home" click="navigator.popToFirstView();"/> </s:navigationContent> <s:actionContent