flex

Problem with ActiveRecord::Dirty with RubyAmf.

I am using changed?,changes methods on console and that's working fine ... But inside my model it's not returning expected result .. I am using flex as my front end .. Any idea about it ?? RubyAmf causing problem ?? ...

Flex tree drag and drop

I have a flex application with 2 tree. I should allow the drag and drop from left tree to right tree based on the local name of XML. While working on this I encountered peculiar kind of problems. when dragged and dropped to right tree from left tree, the dragged item in lefttree is appearing twice when certain items are dragged to rig...

Flex form layout - add first child vertically aligned with label

Hi all.. In flex form layout <mx:Form id="form"> <mx:FormItem label="horizontal:"> <mx:Text text="test"/> </mx:FormItem> </mx:Form> the output will be horizontal 'test' But my constraint is i want to align the textbox(first child of the form item ) vertically with the label. How can i do this ?Any inpu...

Is it possible to use a different Spring Security AuthenticationProvider in different servlets, same WAR?

I have a single WAR that runs two servlets. One provides AMF remoting to Flex clients and other SOAP/HTTP to web service clients. I currently have Spring Security configured to authenticate the Flex clients using DaoAuthenticationProvider. However, I'd like to use a different authentication provide for the SOAP/HTTP. Possibly basic a...

how to change the flash builder generate HTML to call function in actionscript?

I have an actionscript project, and I have provided the function that I want it to be called from HTML(the flash builder generated html file). ExternalInterface.addCallback("getURL", getURL); This is the code in actionscript, how can I modify the flash builder generated html file so that it can call getURL()? ...

The meaning of "External" linking mode in Flex Builder

Hello, There are three modes to link an SWC library to a flex application: "Merged into code", "External" and "RSL". I understand what is "RSL", but I don't understand what is "External". "RSL" works just fine for me, without any code changes. However, External doesn't work for me. Although my application starts, the classes in the ...

Need to run custom scripts before compiling/building.

Hi, I am creating an AIR app. In this app there's a need to copy a folder from a fixed known localtion C:\xyz to app:/. I would like to know how can I do this copying before compilation/build so that they get packaged when I run the 'Export Release Build'. Thanks guys in advance... :) ...

Flex On Touch Screen System: Does web sites in flex works on touch screen system?

Hi, I build a web site in flex that some time take input. Will this website works on Touch Screen environment(KIOSK).My question is we have to make any change to handle input such as prompt on screen keyboard when input fields are get focused or it will manage my device and OS of system(KIOSK, Touch screen system) itself. ...

Error when implementing Enums using Actionscript 3

Hi All Ours is a Flex/Parsley/Blazeds/Spring project & I'm trying to implement java Enums in Actionscript3 and all I have to do is to send the Enum value to Spring service method. The Java Enum Code (this is generated from XSD) public enum ReferenceLookupType { PATIENT_VISIT_TYPE("PATIENT_VISIT_TYPE"), PATIENT_STATUS( ...

Select a Tree item

I'm working on a tree component using a XMLLIST as a data provider. <list> <menuItem label="Home" menuItemId="1" > <menuItem label="Info 1" menuItemId ="4"></menuItem> </menuItem> <menuItem label="Services" menuItemId="2" > </menuItem> <menuItem label="About" menuItemId="3" > </menuItem> </list> ...

flex flexlib windowshade opened state maintain

Hi, I have flexlib WindowShade component in repeater in my Flex + AIR application. <mx:XML id="mainMenuXML"> <items> <item value="abc" /> <item value="xyz" /> <item value="lmn" /> </items> </mx:XML> <mx:VBox width="100%" height="100%"> <mx:Button label="Button" click="button1_clickHandler(event...

Flex Pixel Blender Performance

I remember seeing some articles about using Pixel Blender to speed up performance on heavy computation, but i cant find them anymore. Can anyone suggest an article on this? ...

Flex: sqlite last_insert_rowid over multiple insert calls

I have file with multiple SQL statements in it to be executed. INSERT INTO reports (a,b,c) VALUES (1,2,3); INSERT INTO units (report_id, e, f, g) VALUES ( (SELECT last_insert_rowid() FROM reports), 4, 5, 6); INSERT INTO elements (report_id, h, i, j) VALUES ( (SELECT last_insert_rowid() FROM reports), 7, 8, 9); The FROM reports secti...

flex select value from Combo

hello experts My goal is to create a generic function that selects a value in a combobox accoring to a value. (My comoBox holds arrayCollection as dataProvider.) The difficulty is infact to get a propertyname in runtime mode public function selectComboByLabel(combo:ComboBox , propetryName:String, value:String):void { var dp:ArrayCo...

Flex Library to do toaster style notifications?

I'm building an Air app and one feature I need is toaster style notifications in the bottom right corner of the screen. Before I go ahead and start writing my own toast controller, does anyone know of an existing library for such functionality? I'm looking for something which will just manage displaying, hiding and stacking of toast noti...

Custom primitives in actionscript

Hi, Is there a way to do something like that? var myPrim:MyPrimitive = MyPrimitive(null); if(myPrim == true){ } else if(myPrim == false){ } else if(myPrim == null){ } Thanks in advance ...

HTML - How do I make my SWF fullscreen?

I'm working on a project where I need to make a Flex application that fills the entire browser window (note that I mean that the toolbars should be visible and all that even if I say fullscreen). To develop the SWF I'm using FlashDevelop (for the first time) and I'm stuck. When I build the project it displays no error and a file website...

How to change view state?

Following is a simplified version of my mxml: <s:BorderContainer> <s:states> <s:State name="create"/> <s:State name="edit"/> </s:states> <s:transitions> <s:Transition fromState="create" toState="edit"> <s:Sequence target="{creation}"> <s:Fade/> <s:RemoveAction/> </s:Sequence> </s:Transition> </s:transitions> <...

signed RSL without Flex (pure AS3 project)

Here there's a brief explanation of how we can "simulate" the RSL system used in Flex with pure AS3: http://stackoverflow.com/questions/1201659/loading-an-rsl-without-using-flex But what about signed RSLs? can we use that technique to load SWZ files too? will them be cached by the player? how can we "reuse" a SWZ cached by the player in...

Fixed y-axis width in flex columnchart

Hi, I'm using a flex columnchart to display data, that changes at runtime. It works perfectly, except the fact, that the y-axis with is automatically resized when the values goes under 1. For example first the values of the charts are between 0 and 10. The y-axis now has labels like 0,1,2,3,4...10. If the values are going under 1 the la...