flexbuilder

how to navigate in spark list control?

会有一股神秘感。 提交于 2019-12-11 15:34:57
问题 I'm building a mobile app, using spark list control. When user tap on a list item, i want it to navigate to that correspondence page <s:List id="list" width="100%" height="100%" labelField=" label"> <s:dataProvider> <s:ArrayList> <fx:Object label="Page One" /> <fx:Object label="Page Two" /> <fx:Object label="Page Three" /> <fx:Object label="Page Four" /> </s:ArrayList> </s:dataProvider> </s:List> how do i code it so that when user tap on item label="Page One" it will navigate to PageOneView

Retrieving a single cell value from a datagrid in Adobe Flex

与世无争的帅哥 提交于 2019-12-11 12:49:10
问题 I'm using CF to retrieve values from a database that are then being stored in a datagrid in Flex. I then want to selectively take the value from one cell of the datagrid and store it as a string variable. I've searched around, but I haven't been able to come about a solution. The users will not be interacting at all with the datagrid as it will be hidden to them. Any help? 回答1: Why are you bothering to use a DataGrid if it is hidden to the user? Store your data in an ArrayCollection of

flex builder 3 compiler won't show errors or compile specific pages

你说的曾经没有我的故事 提交于 2019-12-11 07:50:43
问题 In flexbuilder 3 for some mxml files I can purposely put in syntax errors and the compiler will seem to compile the specific page(but actually not compile it) or report any errors for that page. Is there any way that you know of to get the compiler to report the errors to me so I can get it to compile the page. I've tried rebuilding all and cleaning the project already. 回答1: Sounds like you're not actually using that page in your application anywhere. mxmlc only compiles classes that are

Flex 4 transparent background problem?

▼魔方 西西 提交于 2019-12-11 04:25:54
问题 I have found several solutions for this,but non of those solutions work for me.Can someone help me with this please. here is my code : <?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" name="app_clock" minWidth="150" minHeight="150" width="150" height="150" backgroundAlpha="0.0"> <fx:Script> <![CDATA[ ]]> </fx:Script> <fx:Declarations> </fx:Declarations> <s

Looping over elements inside an element in Flex

浪子不回头ぞ 提交于 2019-12-11 03:42:02
问题 I have the following function in Flex 4: protected function initEventHandlers():void { imageContainer.addEventListener(DragEvent.DRAG_ENTER, acceptDrag); imageContainer.addEventListener(DragEvent.DRAG_DROP, handleDrop); img_1.addEventListener(MouseEvent.MOUSE_DOWN, handleDrag); img_2.addEventListener(MouseEvent.MOUSE_DOWN, handleDrag); img_3.addEventListener(MouseEvent.MOUSE_DOWN, handleDrag); img_4.addEventListener(MouseEvent.MOUSE_DOWN, handleDrag); } I didn't like the look of this code

Text input fields in flex when full screened does not work

折月煮酒 提交于 2019-12-10 19:22:00
问题 Hi all i have a problem where if my application is full screen i cannot click on any text input component and i cannot input any text into the fields. i have tried creating the text input fields at run time and i have tried creating them on the canvas when on the gui design window in flex builder. however they both give the same results and do not let me pick them and enter text. Any thoughts Regards Mark 回答1: As you said in the comment (just writing this answer for anyone that stumbles

Flash Builder 4 spaces instead of tabs?

北城以北 提交于 2019-12-10 18:18:41
问题 Is it possible to configure Flash Builder 4 to indent using spaces instead of tabs? I've enabled Preferences > General > Editors > Text Editors > Insert spaces for tabs but it still inserts tabs. I've tried editing files with no tabs but it still inserts tabs. What's strange is that Insert spaces for tabs works in Eclipse but not Flash Builder, which is built on Eclipse. Perhaps there's a bug in Adobe's portion of Flash Builder. I'm running Flash Builder 4.0.0.272416 on Mac OS X 10.6. 回答1:

clean project in flash builder on debug launch

佐手、 提交于 2019-12-10 17:04:59
问题 Using Flash builder 4 to build an AIR app. I keep having my code changes not take effect when I launch the project with the debugger, probably happens about once an hour. So does anyone know how to have FlashBuilder clean the project automatically before each launch? Thanks 回答1: I'm having a similar issue with a Flex application. If I make a change to an .as file the change is not taking effect. The component is being instantiated by a parent component in the application so the compiler

Can I generate a Flex web and Air desktop app from the same source code?

家住魔仙堡 提交于 2019-12-10 13:06:43
问题 I'm new to Air. I've got an existing Flex 2 application which I'm considering bringing into Flexbuilder 3. My question is can I use the same base application (and source code) to make the Air version, or would I have to maintain to separate code trees: one for the Air version and one for the Flex/SWF version? 回答1: The best approach I've found to creating both Flex and AIR applications from the same source, is to use a core library project for almost all code, with separate small projects for

git + Flash Builder workflow: how do I set it up so git works smoothly?

≯℡__Kan透↙ 提交于 2019-12-10 12:45:23
问题 I'm using git to track a project I'm developing in Flash Builder, and I'm wondering the best way to go about having it track it, especially regarding Flash Builder generated files, Compiler generated files, and source files that aren't necessarily flex files. I had it set up to ignore all of the flash builder .project & debugging directories via .gitignore: .actionScriptProperties .flexProperties .metadata .project .settings bin-debug and also treating any swf/swc files as binaries via