mxml

Hello World fails with "Error: Could not resolve <s:Application> to a component implementation"

I'm just starting with Adobe Flex on linux, and can't get the hello world example to work. My application.mxml file is simply <?xml version="1.0"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"> <s:layout> <s:Vertical...

How to turn Flex MXML DataGrid into something like Horisontal DataGrid? (see an Image)

from this (normal dataGrid) into this (horisontal data grid) How to turn Flex MXML DataGrid into something like Horisontal DataGrid? (may be some how with Flash builder 4?) Keeping all stuff DataGrid has like eating data from data provider sortind dragging - droping items etc ...

Trying to add a skinClass to <mx:Form>

I'm working with Flex4 and I'm trying to skin a form (add a background and a border to it, etc.) I'm trying to do it the Flex 4 way with skinClass="" <mx:Form skinClass="skins.MyFormSkin" /> but it's not accepting skinClass as a property. How should I do it such that I'm still adhering to the best practices in Flex 4 (decoupling v...

Action Script - how to access label component defined in mxml file within action script class method?

I have a label component in a mxml file like below <mx:Label x="700" y="409" text="Label" id="lble" width="131" height="41"/> if i want to access it and change its text content within a method defined in action script class that i have written, how to do it? lble.text="test"; ...

How can should I set up Flex 3 projects that reference common controls?

I'm not a flash developer, I'm having issues figuring out how I should set up these two projects that I have in Flex Builder. I've already created projA which has a .mxml that references several custom controls & skins from com.xxx.controls within projA I now have to build projB which also has a .mxml that will create a different .swf....

Prevent MXML custom component in Flex library project always in default package?

I'm creating some custom components and backing code. I've created a Flex library project in Flash Builder which compiles to a SWC. The problem is now that all my MXML files get compiled into classes in the default package, making the whole thing a big mess. Is there a way to set a package declaration for MXML files? After all it just g...

Flex AS3: ComboBox set visible to false doesn't hide

I have a combobox in a view that receives information about application state changes, and then is supposed to show or hide it's children based on the whole application state. It receives state change messages, it traces the correct values, it does what it's supposed to do, however, it just doesn't seem to work. Essentially, all it nee...

Flash Builder Update Query Issue - Channel disconnected Channel disconnected before an acknowledgement was received

I am trying to build my first CRUD application and cant get the update query to work. Here is the MXML and AS. <?xml version="1.0" encoding="utf-8"?> <fx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.DataGridEvent; import mx.events.FlexEvent; import mx.rpc.events.ResultEvent; ...

Rendering MXML component only after actionscript is finished

In my mxml file, I'm doing some calculations in the script tag, and binding them to a custom component. <fx:Script> <![CDATA[ [Bindable] public var calc1:Number; [Bindable] public var calc2:Number; private function init():void { calc1 = //calculation; calc2 = //calculation; ...

Flash Builder 4: mx:Button baseColor doesnt exist

Just wanted to add this here in case you are migrating your project from Flash Builder 4 Beta to Flash Builder 4 release. I used a lot of mx:Buttons with the baseColor property, which now seems to be called chromeColor. ...

Problem to cretate dynamic radio button in flex.

hi friends, I am creating the flex ARI application in which I am accessing the webservice method this method is returning me a childList.I am accessing it in my flex appliction using the Array object in my action script code.Now I want to cretate one flex page in which I get child list with radio button.I have done it using Arraycollecti...

Getting error to access webservice.

hi friend, I have created webapplication in which I am getting the error:- ypeError: Error #1009: Cannot access a property or method of a null object reference. at FlexSBTSApp/displayString()[E:\Users\User1\Documents\Flex Builder 3\FlexSBTSApp\src\FlexSBTSApp.mxml:38] at FlexSBTSApp/___FlexSBTSApp_Button1_click()[E:\Users\User1\...

problem to genrate swf file.

hello friend I have created one flex Air application where I have created the one authentication actionscript class. and one mxml file.This complete application using webservice and google map API. but when I am building application it is not genrating the SWF file in bin-debug folder. that is changes not reflecting in our application. ...

<mx:HTML/> content looks crusty when resized

I've got HTML component as part of a datagroup itemrenderer which I need to resize the content of (there are lots of them). This works quite well but the content looks really crusty. No font antialiasing. Even at 50% looks crusty. I've considered generating thumbnails bitmaps on load 'complete', but that would be my last resort. <mx:...

HTML + CSS dynamic render in flash?

I have HTML + CSS text. I need some lib with simple function like "Render String Var conteining HTML" So no external files (like in flash lib called HTMLwraper you just have to play your SWF on top of HTML). dinamic! I give it string it renders It into some conteiner (not as a bitmab but as if it was real HTML dynamically rendered in fl...

how to get mxml file in ActionScript class

hello friend I want to refer my mxml file into Actionscript class.My code is :- Mxml file is :- <?xml version="1.0" encoding="utf-8"?> <!-- usingas/AccessingPackagedClasses.mxml --> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ import SBTSBusineesObject.A...

How to set Source of s:BitmapFill dinamicaly? (FLASH BUILDER, CODE INSIDE)

In Flash Builder (flex 4) I try to use next code to set selected by user (from file system) Image as a repeated background. It worked with mx:Image but I want to use cool repited capabiletis of s:BitmapFill. BTW: Technic I use also does not work with S:BitmapImage. Also FP does not return any errors. What Shall I do with my code to mak...

How to take "print screen" from your FLEX application and save it to hard drive?

So I have such code for my application <?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" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ protect...

Getting TypeError: Error #1009: Cannot access a property or method of a null object reference.

hello friends, I have created small application for login in flex desktop application. In which I am refering webservice method for login for this have created the Authentication class. Now I want to refer different Textinput value for mobile no and Textinput value for password. In my Authentication class. for this I have created the ...

How do you center a control in an MXML panel?

Here is what I have: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#ffffff"> <mx:VBox percentHeight="100" percentWidth="100" > <mx:Image source="@Embed('img.png')" percentHeight="100" percentWidth="100" /> </mx:VBox> </mx:Application> How can I center...