flex

Flex: Inline Component is not defined?

I opened up FB3 today, without making any changes, I press F11 and now I am getting this error that I never have gotten before: ReferenceError: Error #1065: Variable CaratPicker2_inlineComponent1 is not defined. I find it strange I am getting this error everytime now, when I never got it before and I didn't make any changes before I st...

How to user Frames with ASP.NET 2.0 / OR AJAX ??

Hi, I would like to use a flash menu in Asp.net 2.0. However, I have two problems: How do I keep the menu static so the animations do not refresh with page clicks? Example would be like a 'frames' but within ASP.NET 2.0... Do I use the old HTML Iframes approach?? Or can I use something more contemporary using AJAX or something like ...

Flex container transform matrix problems

I have a Box container that has a label element inside it. When the box is transformed using a Matrix the label element is not visible anymore. How do I make the elements visible? <mx:Script> <![CDATA[ private function onBoxClick(event:MouseEvent):void { var transformMatrix:Matrix = this.box.transform....

How to choose as2 or as3?

I want to make my application compatible with as2, so I think what I want to do is only use the features that as2 provides, how to specify the compiler or source code that I only use the features in as2? ...

Does An Object Have "Children"

I just want to know if the object in question, has any sub-objects within it or not. Do I really have to do THIS: public static function getLength(o:Object):bool { for (var item:* in o) if (item != "mx_internal_uid") return true; return false; } Isn't there some way to say SOMETHING LIKE: Object.hasChildren(); OR EVEN ...

How to access XML object in Restlet 2.0 thats wrapped inside a Representation object?

Hi I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is irretrievable. How do I retrieve it? I tried initialising the received Representation object ...

Flex, JS libraries like (JQuery, YUI, Prototype) or Silverlight, JavaFx ? ? ? What should we go for ?

If any one want to start developing new web application with real cool and reliable UI, good throughput, maintainability, scalability which one can be the winner ? Also which one can be the winner in case we are migrating age old sites with new look and feel? ...

Login using Flex and PHP but how to handle session

Hi, I have a Flex login page that uses HTTPService to communicate with server side php script. Once user's credential is verified, a session will be created and the login page will redirect to the main Flex page with that session info. I'm not sure how to implement the session logic. Can someone shed some light on this? Some sample cod...

How to load data in advanced data grid on Scroll

Hi all i need to load 10 records from database in advanced data grid. After i scroll the advanced data grid. it has to load 11 to 20 records etc., How it can be done ...

ActionScript/Flex: When are public definitions loaded?

Imagine a Flex application which contains spam/eggs.as: package spam { public var eggs:Eggs = new Eggs(); } At what point in the process of loading the .swf file will Eggs be instantiated? Then, assume there is also spam/ham.as: package spam { public var ham:Ham = new Ham(); } What which of the two - eggs or ham - will be loaded f...

adobe flash buider (flex4): addChild() is not available in this class.

Hi. I want to be able to load an swf into a flex 4 application in order to use it's classes. var ldr:Loader=new Loader(); ldr.load(new URLRequest("file://path/to/fileswf")); ldr.contentLoaderInfo. addEventListener(Event.INIT, loaded); function loaded(evt:Event):void { addChild(ldr); } i receive the error: Error: addChild() is not a...

AS3: Main stage listener for ProgressEvent?

Can I add a ProgressEvent listener to the stage? I don't see it in any of the auto-complete options when I am typing in Flex. What do people normally do to get a progress readout of the entire main runner's loading progress? I try the following, which is where I would expect to see the ProgressEvent options pop up: stage.addEventListen...

AS3: Socket timeout.

I get a vague "Socket timeout." error on occasion when I am loading my site. I make various HTTP requests for PHP data and also am using a Loader() class instance. Can anyone shed some light on where this error might be coming from? I wish there was more of an indication of where the error stemmed from... Here is my code that I am ...

Classes must not be nested - MXML

I'm trying to build a simple FLEX application. Unfortunately, I get '1131: Classes must not be nested.' errors even with the simples MXML .... the error pops out at the mx:Application openning tag: (I'm using PureMVC if it's important) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" ...

setting verticalScrollPosition not working.

I have a VBox that I am populating programatically, After a particular event (dragDrop) I do some calculations, reorder some variables, then re-build the VBox. This all works great, but I want the VBox to scroll back to the correct verticalScrollPosition. I tried even the simplest thing: myVBox.verticalScrollPosition = 200 But I just ...

System.ServiceModel.ServiceActivationException in wcf service

I am trying to call my WCF service through a Flex application. I'm getting the System.ServiceModel.ServiceActivationException. I have Integrated Windows Auth switched to on, anonymous access off, and I've set impersonate to false in my web.config. The project and virtual dir are named the same too. What could be the issue? ...

Can I send emails with Actionscript 3.0, or do I need to use PHP?

i wanted to know that using actionscript, is it possible to send email and create a front end in flashbuilder 4(flex), everywhere i see php being used for mails, is it possible? ...

Actionscript's Number class' toFixed() method returns strange values

I'm doing some calculation with numbers and would like to only print an integer (the number without the decimals). I thought that the toFixed() method of the Number class would do the trick, and it does most of the time. But quite frequently strange values are returned. Here are 2 examples: Number(0.002).toFixed(0) returns "0." while ...

Migrating from Flex 3.2 to 4.0

Hi, I have an app built in flex 3.2, and would like to start using some spark components within that same app. Are there any pitfalls to look out for. Is it possible to use the old 3.2 components in the same app or Will I have to rebuild them. Would like to get the heads up from anyone that has done the same, before I make the plunge. ...

How to debug pending/hanging webservices in Flex 4 with Flash Builder 4?

Sometimes (too often...) some webservices "hang". I can see the clock cursor in my app and the network monitor of FB2 shows the webservice as "pending". After waiting a long time, the status changes to "OK" and the clock cursor disappears. How can I find out why a webservice takes sometimes minutes while it usually takes not even a secon...