flex4

Flex4: Detect source Video size VideoPlayer?

Hi, Is it possible in Flex 4's VideoPlayer control (spark.components.VideoPlayer) to detect some attributes of the source video? In my case, it's a local file. I would need to detect the original width and height of the input source video (an h264 f4v). Thanks ...

How can I use the same buildscript for Flash Builder 4 and Ant/Mvn?

I'm setting up a build system for a Flash Builder 4 (Flex 4) based project; and I'm struggling to get a setup that compiles in the IDE the same as it does from the command line on the build server. I come from a C# background; and my expectation is that I'll be able to create a "solution" with a collection of "projects" that I can compi...

Please help me work out this error, regarding the use of a HTTPService to connect Flex4 & Ruby on Rails

I have a HTTPService in Flash Builder 4, that is defined as follows: <s:HTTPService id="getUserDetails" url="http://localhost:3000/users/getDetails" method="GET"/> It gets called as follows: getUserDetails.send({'user[username]': calleeInput.text}); Here is a screenshot of the network monitor, showing that the parameter is being se...

One DataGrid Item Renderer for multiple columns

Hey, I'm trying to create a Flex DataGrid where the firstname and lastname are shown under each other, but in the DataGridColumn Ideally I would want to do something like <mx:columns> <mx:DataGridColumn headerText="Column 2" dataField="time"/> <mx:DataGridColumn headerText="Column 2" dataField="firstname,lastname" itemRenderer=...

AIR GUI testing

What do you guys recommend for AIR GUI testing? ...

Interaction between main flex application and component

Hello everybody. I made a login component for my flex 4 application, and i load this component from my main flex application with: <ns1:Login id="page_login" visible="true"></ns1:Login> Now i want to change the visibility from true to false, from the login component. Is there a way to do this kind of interaction? Thanx! ...

Is there a Flex widget for a common calculator?

I need a calculator for a flex app I am making, and was wondering if there was any official widget prebuilt or already in good quality. I could make one myself but it would be nice to use one that already existed and had a nice api to customize it with. Any ideas? Thanks! ...

How to use EffectUpdate?

Take a look at this code: <?xml version="1.0" encoding="utf-8"?> <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"> <fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; ...

Flex learning path...

Hi all I am current learning Flex 4 programming now and trying to get as much knowledge as I could from the books and adobe website. I have finished 5 days video training from Adobe website and almost done with a book. However, most of them only talk about basic stuffs. (like create skin, components, events..etc) When I checked the...

Flex noob questions

Hi all I was wondering how to copy files (like my images files) into my flex 4 src folder from windows explorer. There is no such folder called src when I look at my project folder. Thanks. ...

Flex list control itemrenderer issue

Hi Guys I am working on a small photo Gallery. I create a xml file and try to link it to my List control with itemrenderer. However, when I tried to save the file, I got access of undefined property "data" error. I thought we are suppose to use "data" to refer the current row of the data object. Here is my code...and thanks a lot! <?x...

Center label instance inside VGroup in Flex

Hi all I am trying to center my labels below my image inside my VGroup. The labels are align to left now and it seems like HorizontalAlign is not working on spark component. Anyone knows how to fix it? Thanks a lot. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="...

Accessing an RSS feed in Flex, works when run from Flash Builder 4, but not when the project is online?

Hey guys, In my Flex 4 app, I access an RSS feed (I'm using http://news.ycombinator.com/rss as a dummy). It works okay when I run it from Flash Builder 4, but if I export the project and upload it, I get the following error when it tries to load the RSS feed: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox vio...

PHP script works fine until I send it a parameter from HTTPService in Flash Builder 4?

I'm using a PHP script to read an RSS feed in my Flex 4 app. The script works when I put the URL of the feed in the actual script, but I can't get it to work when I try to send the URL as a parameter from a HTTPService in Flex. Can anyone tell me what I'm doing wrong? Here is the HTTPService from Flex 4 that I'm using: <mx:HTTPService ...

flex 4 release changes to application are not showing up.

I just took over a clients flex project and I can't get the app to reflect even a simple trace statement. Before I took over, the project was last successfully built using the Flash Builder Beta 2 environment/sdk. I have the latest release version of Flash Builder 4. Upon importing the project into FB4, I got a ton of errors. Most of t...

Problem storing an RSS feed in Flex 4

Hey guys, I'm having some trouble storing the results of an RSS feed in my Flex 4 app. Here is the variables view, showing the result of the HTTPService which gets the feed: And here is the code I use to store the result: public var rssXML:XML; rssXML = event.result as XML; But after this code is run, rssXML is still null. What am...

webservice result return null in flex4

hi, I have a web service on my localhost. Calling this from a PHP page works fine and it returns the expected results. The result is: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSche...

States Transition when elements are removed

I would like to write a transition where all the elements from State1 rotate around Y axis and then show elements from State2 This s illustrated in the dummy code below (just imagine Label 1 is a Group). <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:...

Flex 4 Button state in a HGroup

Hi all, I have a HGroup with some buttons inside which is my application's menu. <s:HGroup id="nav"> <s:Button id="homeButton" label="Home" /> <s:Button id="showroomButton" label="Showroom" /> <s:Button label="Catalogue" /> <s:Button label="Offers" /> <s:Button label="My Account" /> <s:Button label="My Orders" /...

Flex Spark TitleWindow bad redraw on dragging

Hi, I have a problem with redrawing in flex 4. I have a spark titleWindow, and if i drag it faster, it looks like it's mask is one frame late after the component. it's easily visible with 1pixel thin border, because it becomes invisible even with slower movement. You can try it here (what is not my page, but it's easier to show you h...