flex

Mapserver and Flex

Anyone know how I can integrate Flex and Mapserver in much the same way Flex and ArcServer talk? Thanks! ...

how to draw a very short line with actionscript?

I am having trouble drawing a very short line with actionscript3: var cSp:Sprite = new Sprite(); var cGx:Graphics = cSp.graphics; cGx.lineStyle( 1, 0xFF0000, 1, false, LineScaleMode.NONE, null, null, 1 ); cGx.moveTo( 2, 10 ); cGx.lineTo( 3, 10 ); This creates two vertically stacked pixels which are not quite red (#7f0000)! (here...

Flex - Clear DateField programmatically

I cannot find any way to clear a DateField control programmatically after either a user has selected a date, or after I set myDateField.selectedDate via code. Documentation only states how to clear it if a user selects the date again. But doing myDateField.selectedDate = myDateField.selectedDate doesn't work I have tried all the obvio...

how to refactor code inside curly braces in flex

Data binding in ActionScript is really cool. But what if I want to refactor a big switch or if statement inside the curly braces into a function, for example: {person.gender == 'male' ? 'Mr.' : 'Ms.'} into: {salutation(person)} The compiler doesn't let me do that. I know about properties and I could write getters and setters on t...

Flex HAccordion No Text?

I'm a flex noob and I'm trying to figure out how to implement a horizontal accordion. I'm trying to make a horizontal version of the accordion on Doug McCune's blog: http://dougmccune.com/blog/2007/09/22/nifty-flex-accordion-menu-like-on-applecom/ I'm simply switching VAccordion to HAccordion (and some styling), when I do that, text no...

Degrafa: Adding a RasterImage in ActionScript

I'm trying to add a RasterImage component to a Surface at runtime. My code runs as follows: var ri:RasterImage = new RasterImage(); ri.loadingLocation = new LoadingLocation('http://resources.mydomain.com/','crossdomain.xml'); ri.source = 'http://resources. mydomain.com/some.jpg' this.myGeometryGroup.geometryCollection.addItem(ri); Bo...

Cache image thumbnails in flex TileList control

I have a flex TileList to which I load a bunch of images. When the tile list is scrolled up and down, it does fresh requests for all the images even though they were loaded previously. Is there a way to stop this behavior and let the TileList control keep its previously loaded images? Thanks in advance! ...

Calculate Bounding box coordinates from a rotated rectangle, Picture inside.

Hello, I have the coordinates of the top left Point of a rectangle as well as its width, height and rotation from 0 to 180 and -0 to -180. I am trying to get the bounding coordinates of the actual box around the rectangle. What is a simple way of calculating the coordinates of the bounding box - min y, max y, min x, max x ? The A p...

How can I drag and drop canvases within a Vbox to re-order?

Hi, I'm getting up to speed with Flex and I am looking for any example of implementing a drag and drop re-sort within a vbox container. Basically I have a Vbox that contains a number of canvas's that are full width and 35px high. I want to be able to drag and drop them to re-order within the vbox. Any help is greatly appreciated - thank...

Embedding dynamic text in a video in flex

Hello, I am developing a flex application in which a person fills a form and the text dynamically gets added in the video preview next to it. Can anyone tell how the text from form can be dynamically added to the video? ...

3D flex, rotate around a random point for a container (with partial solution!)

I'm trying to find the best way to rotate a container (or anything for that matter) using the matrix3D features in flash 10 for flex. I have managed to get a container to rotate around a point that is not its registration point but I’ve only managed this by turning off the clipping on a container then placing the contents somewhere othe...

Is it possible for Flex 3 to spawn a new browser to the brower's default home page?

My windows application hosts a Flex application via the IE ocx. I have a button on my flex canvas that when pressed should spawn the users default browser, open to his or her home page. When the click handler looks like this it works fine: private function OnClickedInternetImage() : void { var url:String = "http://stackoverflow.com"...

Mouse scrollwheel in Flash/Flex application

I'm building an application in Flex and I have few windows with scroll. When I'm trying to use mouse scrollwheel the window does not scroll up/down. Plus if it is possible to make the window to scroll up/down then is it possible to make to scroll right/left. ...

How do I create a Hierarchical Cursor from the dataProvider of an AdvancedDataGrid?

In a previous application that I had written, I had a Class that extended AdvancedDataGrid (ADG). It contained the following code: package { public class CustomADG extends AdvancedDataGrid { .... // This function serves as the result handler for a webservice call that retrieves XML data. private function...

Offline RIA Cross-Platform Environment

I want to create a simple 'scorecard' like mechanism for some card/parlor style games. The trick is I want this to be a visually stimulating application (WPF/Flash style animations etc.) and available on Mac, Windows and some mobile clients eventually. Any thoughts on framework? Silverlight would be great if I could run it offline, other...

Creating form dynamically in flex from xml file

I am having an XML something like this http://image.jpg 102.49999999999999% 97.5% 0% 0% 0s 15 http:audio.mp3 0s ...

Traditional HTML/CSS/JS + PHP vs. Flex + Java Servlets -- a little more than that

So the situation is a bit complicated. There was one graduate student who was developing this web application by himself using Flex and JSP. He moved on with his career and took a job somewhere else. He still has access to the application and frequently maintains it. Along with couple other students and I took over the project the grad ...

Rendering form on the fly from XML in flex

Hi, I have an xml code something like this <root> <render> <head> <transition id="fadeIn" type="fade" subtype="" dur="3s"/> <transition id="fadeOut" type="fade" subtype="" dur="3s"/> <layout> <root-layout width="480px" height="360px" backgroundColor="0"/> <region id="rootRegion" dur="15s"> <region id="background" soundLevel="10...

How to generate a form(<mx:form>) dynamically in flex?

I need to generate a mx:form from an xml file that I am getting from httpservice. Also I need to prefill the data that I am getting from the form itself. Can someone give me a sample code? ...

How Can I get Remote Objects to return XML in E4X?

Hi there. I'm writing a Flex application that makes full use of BlazeDS to a Java server. I use Remote Objects a lot, but I've come across an instance where receiving XML is cleaner and faster than returning objects. Returning XML through BlazeDS is easy enough. I'm building up the XML with Dom4j on the Java and returning the root ...