flex

as3 to .net, not receiving Event.COMPLETE callback

I created an image uploader for an app I am working on. I first used php for the server side script, and everything worked fine. I found out afterwards I had to use .net, so I created new serverside scripts. The problem I am having is that my event.COMPLETE listener is never firing. I can receive data back using a DATAEVENT listener, bu...

Completing a socket connection across an intranet or internet.

I am writing a peer-to-peer binary socket program. There are only two endpoints. One socket is listening on my laptop system. The other socket is broadcasting from my desktop system. I have a third program running on a hosted server, that is available to broker the connection between the two. My problem is that when the laptop and d...

Is there a benefit to embedding ActionScript in MXML when developing Flex apps?

I always thought that separating the UI from the logic is the way to go like the use of class files in Flash CS3/CS4 or MVC in web frameworks but recently there are plenty of examples and posts using ActionScript embedded in MXML. Is there a benefit to doing this? Am I missing something. ...

Creating a parallax on a tiling background

I am using the blitting technique that jeff from 8bitrocket.com uses for creating tiles. I am trying to paint 2 layers of bitmapdata onto a bitmap. One the first layer is the background ( 1 image). and the second layer is the tiles. In that class below. the updateMap is the method that gets called in the loop to repaint the image. packa...

Why use a Flex framework like Cairngorm or Mate?

From what I understand a framework reduces complexity in areas that are common, like a log-in system. I use ASP.NET MVC at work and have done some work in Zend Framework but do not get how a framework helps with client side development. The reason ASP.NET MVC is used at work is for Unit Testing - does a Flex framework help with this too?...

scanning a system for shared folders in lan

Hi, I am developing an application in flex 3 using action script 3......... I have some range of ip address in LAN(wired or wireless both).....i want to check which all the systems available...and also want to see their shared folders.....can anyone give some code or reference in action script.... Thanks to everyone... ...

Adobe Air Binary Sockets

When I Connect To My Socket Over My Intranet, Everything Works Fine: var Sock:Socket=new Socket("192.168.1.100",2222); But When I Set Up Port-Forwarding And Try To Connect Using My Real IP, I Get Error 2031: var Sock:Socket=new Socket("76.18.24.118",2222); What Am I Missing? ...

ActionScript syntax error 1084: expecting rightbrace before leftbrace and var 'colour' will be scoped to default namespace

I got an error which says 1084 syntax error; expecting rightbrace before leftbrace as well as var 'colour' will be scoped to default namespace. Im' not sure what is going on but it is interfering with my ability to debug. it is action script 1084 error package { import flash.display; import flash.display.Loader; import flash.di...

how to restrict users to insert only numbers in a TextInput ?

I want that the users will be able to insert only numbers in a specific TextInput. Anybody knows how to do this ? ...

When is load for IIS7 too much?

At a customer of ours, candidates take tests with our software. If their test is finished, some calculations are done on the server. Now, sometimes, 200 candidates can end their test at the same time, so 200 calculations are done concurrent. The calculations all seem to go fine, but some calls to the IIS7 server get back a http error... ...

this.width within a class always returns the same value.

Within my AS3 class I am calling this.width, and the value it returns is always 1, even though this is impossible given the contents of the object. Is this a standard behavior for AS3? Simple version of class is posted below. It is attached to a MovieClip symbol that just contains a simple hexagon. package { import flash.display....

How to enable accessibility in Flex application

The Accessibility best practices for Flex page from Adobe website list four strategies to enable accessibility : Enable accessibility by default for all Flex applications Enable accessibility in the Adobe Flex Builderâ„¢ 3 project properties Enable accessibility for an individual application Enable accessibility using the command-line co...

Could Facebook have been implemented in Adobe Flex?

I am considering creating a website with the complexity of Facebook that should be able to scale into the millions of users. My question is: Is there any reason not to use Adobe Flex for such large project apart from the obvious point of requiring everyone to have Flash installed and not having to rely on Adobe? In my view Adobe Flex wou...

when i debug my code nothing appears on screen. I've rechecked the code and consulted with others yet nothing appears. my html template is fine.

package { import flash.display.Sprite; import flash.events.*; public class asgnv2 extends Sprite { var lineY = 0; public function asgnv2() { stage.addEventListener(Event.ENTER_FRAME, update); graphics.lineStyle(1); } function update(e){ graphics.clear(); graphics.moveTo(0 ,lin...

problem displaying axis values in flex chart

I have a value object something like this public class Data { public var date:Date; public var value:int; ... public function get formattedDate():String { return date.getDay()+"."date.getMonth()+"."+date.getYear(); } } When I use the 'date' field for the category axis everything is fine but ...

Read xml file from client

I'm trying to read a xml file from client. After search for it. I have got to upload the file to the server with this code. var imagesFilter:FileFilter = new FileFilter("*.jpg,*.gif,*.png", "*.jpg;*.gif;*.png;*.jpeg"); fileRef.browse([imagesFilter]); But what I want to do is to read the file from client and parse it without uploading ...

Adobe Flex Flash Builder DataGrid dataProvider CollectionEvent.COLLECTION_CHANGE handler's access to DataGrid?

I've added an eventListener to the COLLECTION_CHANGE event that is fired when the grid is finished resorting the items in its dataProvider, after the user clicks on a column header: MyType (myDataGrid.dataProvider).addEventListener(CollectionEvent.COLLECTION_CHANGE, onDataGridResort); ... private function onDataGridResort(e:...

Flash programming tutorials

I want to use Flash to write games. I don't want to learn about how to create glossy buttons for my 2005 website, or how to use the motion tween interface-- I just want to learn ActionScript 3 and the development environment. Suggestions? EDIT: I already know plenty about game programming; I'm just new to flash. EDIT: I found this sit...

Flex 3 custom ItemRenderer and Editor Issue

Hi, I've created a custom ItemRenderer extending UIComponent and implementing IListItemRenderer. This renderer contains a Text-Object to display the value. For editing I'm using the standard ItemEditor (TextInput). Now, when I want to edit a value, I click on a cell and the editor is created. But instead of displaying the value which ...

Why would same SOAP request work in one Flex project and not another?

This is a pretty odd situation I have here. I have used a piece of code to interact with a backend SOAP service for several months - it works fine. I tried it out in a different project (first as an swc library and then just by cutting and pasting) and it just doesnt work. If I try the exact same code in the original flex project, conne...