flex

How to use Blazeds with a custom classloader?

Hi, has anybody tried using a custom classloader with BlazeDS? We have a web application using BlazeDS and we can convert Java objects in to ActionScript object and back without problems in the main application. However, we also have a plug-in mechanism based on a custom classloader. BlazeDS cannot map the types contained in jar files...

Using flex 4 sdk in flex builder 3

This question may be an absolute crap. Can i use the flex 4 sdk in flex builder 3? i have a licensed version of flex builder 3 professional. so if i need to use flex 4 sdk in it, do i need to buy flash builder? cant i get all the new components in flex builder 3? Regards, PK ...

What is the Adobe Flex Framework for Mobile devices ?

Hi I am Bhaskar, currently worrking on Adobe Flex Technologies. I want to know whether Adobe had launched a Flex platform for mobile devices or not. If Launched what is the name of the Framework and please come with a sample example URL . ...

Flex. PrintJob - pageWidth pageHeight bad values

Hello :) I have: var pj:PrintJob = new PrintJob(); if (pj.start()) { trace(pj.pageWidth); trace(pj.pageHeight); (...) } Problem: low/bad values pageWidth and pageHeight. For printer 600dpi: pj.pageWidth=595 and pj.pageHeight=842 for A4 page ! How can I increase DPI printed page? Please help ...

EOF error encountered while converting bytearray to bitmapdata

I am using var bitmapdata:BitmapData=new BitmapData(); var pixels:Bytearray=new Bytearray(); pixels = rleDecodePixles(); bitmapdata.setPixels(bitmapdata.rect, pixels); In the 4th line in the code above i am getting "Error: Error #2030: End of file was encountered." I checked the length of the pixels object which is 4 times the width...

How to handle custom Java exception in Flex app.

Hello, we are using BlazeDS as a proxy between Flex and Java. The approach is the same as in (http://www.flexpasta.com/index.php/2008/05/16/exception-handling-with-blazeds-and-flex/) Java exception declaration: public class FlexException extends RuntimeException { private String name = 'John'; public FlexException(String message) {...

A question about the performance of htmlText in TextField

Hi all, I have got a performance problem about TextField.htmlText +=msg.And I know thatTextField.appendText(msg) works better than TextField.text +=msg.So I wonder if there's some method better than TextField.htmlText +=msg?Any help would be appreciated. Regards Spawn ...

How to run .swc file in flex project?

I have a .swc file and I learned how to add that swc file into the library. I will be happy if any one explain how to use this .swc file into my flex project and run that with an example . ...

How to do binding inside htmltext CDATA

I couldn't find a way to bind a variable inside the htmlText property of a Text component i want to be able to do something like this : <mx:Text id="bodyText" styleName="bodyText"> <mx:htmlText > <![CDATA[<img src='assets.OrangeRect' align='left' hspace='0' vspace='4'/> Bonjour {UserData.name} ]]> </mx:htmlText> </mx:Text...

Flex line weight of linechart

Hi, I want to keep default color of lines and change line weight in Flex LineChart. How can I implement it? Alternatively, if there any method for setting line weight or line color without using LineStroke? Thanks. ...

Custom cursor gets overlayed by vertical ibar cursor on Text component

Hi, I am making use of a custom cursor on itemRenderers in a List component. The custom cursor works just fine except when I mouse over the Text component which is a child of the itemRenderer at which point I get two cursors, the custom and an iBar one on top of the other. Here's the code: <?xml version="1.0"?> <mx:Application xmlns:m...

OSMF player resize

I just started OSMF, and I wanted to know how can I get alter to of my video display? The controls are getting pushed off. Thanks ...

flex custom itemRenderer doesn't use the styles specified...

Hi everybody, I have a custom item renderer which I use for my DataGrid. The DataGrid has specified selectionColor, rollOverColor and themeColor. The Problem is that the custom item renderer, does ignore those colors, and doesn't give any Feedback... I tried to add the lines: setStyle("selectionColor", 0xEDF1F7); setStyle("rollOverCol...

TextArea being used as an itemEditor misbehaves when the enter key is pressed

Hi, I have a TextArea inside an itemEditor component, the problem is that when typing in the TextArea if the enter key is pressed the itemEditor resets itself rather moving the caret to the next line as expected: <mx:List width="100%" editable="true" > <mx:dataProvider> <mx:ArrayCollection> <mx:Array> ...

Actionscript project that loads a Flex SWF, "Could not find resource bundle" Error when using LayoutManager

Hi guys. I'm using an actionsciprt only project (under FlashDevelop) to load an .swf flex file built by another department of the company I work for. Using the follwing code: var mLoader:Loader = new Loader(); var mRequest:URLRequest = new URLRequest('flexSWF.swf'); mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHa...

Flex: vertical gap between list items not working

I have a list item with buttons in it like so: <mx:List contentBackgroundAlpha="0" baseColor="0x333333" leading="10" id="weekButtonList" width="260" borderVisible="false" dataProvider="{_data.mappoints.week.@number}" itemClick="onWeekClick(event);" > <mx:itemRenderer > <mx:Component> ...

actionscript flex, how to send browser width to the swf itself

I'm working with flex, but actionscript ideas are just as good. The flex <s:Application> tag has height="100%" width="100%" so the swf fits the browser as the browser gets resized. My problem is that I have a <s:Label> that I need to position based on the real/current size of the browser. <s:Application height="100%" width="100%"> ...

Loading of external SWF results in a "Could not find resource bundle messaging" error

I'm using flash.display.Loader to load this example SWF as a use-case for loading SWFs that uses flex charting components in an application I'm working on. This is the code I'm using to load the swf: Main.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onCreation...

Custom "context menu" in flex

I would like to add a custom context menu with line separators, but can't really figure out how. What I need: <mx:List id="treeContextFile" visible="false" width="233" verticalScrollPolicy="off" includeInLayout="false"> <mx:dataProvider> <mx:Array > <mx:String>Open</mx:String> <horizo...

loading mp3 from file using random access to flash.media.Sound

We are migrating application from Delphi to Flex (Air) that plays mp3 files from random access big file. it has positions and sizes to extract mp3 data to FileStream->MemoryStream and then we use bass.dll to play it from memory stream. Now I have to play those same mp3's in flex but I am not sure how... I was reading something similar...