Right now a lot of my applications use GWT-RPC for retrieving POJO's from a GWT RemoteService which in turn calls a Web Service (SOAP) to get the data. I am evaluating Flex and didn't really see anything truly analogous to this simple architecture.
I'm trying to migrate a Flex 4 project backwards to Flex 3, and I need to move stuff mapped in a <fx:Declarations> block in MXML. Does Flex 3 have something similar to this? It's been a while since I've done Flex 3.
I want to find a way to get the character index in a Spark based RichEditableText based on mouse x, y position.The mx.controls.TextArea has a protected getCharIndexAtPoint() method but I can't find an equivalent of this in the Spark RichEditableText which is disappointing.
Is it possible to capture user typed inputs from keyboard and overwrite user entered text with pre-defined words in Flex/Adobe Air? I'm looking for a functionality in Adobe Air something like "typinator" does.
I am migrating my Flex 3.2 to FLex 4.5. the property draggableColumns of <mx:DataGrid> is obsolete in the <s:DataGrid>. Have you an idea to have its equivalent in Flex 4.5?
As of Flex 4, I'm using s:Group instead of mx:Canvas.
With s:Group , show event is not fired when the container is visible like with mx:Canvas. creationComplete event fire only once. How can I detect show event or something alike in Flex 4 or should I just use the mx:Canvas instead ?
When does the event listener for "itemEditBegin" get added and removed? Is this essentially the same as:
<mx:DataGrid id="myDataGrid" creationComplete="myDataGrid_creationCompleteHandler(event)" /> protected function myDataGrid_creationCompleteHandler(event:FlexEvent):void {
[Code]...
Basically, I'm wondering where I should add "myDataGrid.addEventListener" if I want to do it programmatically? Should it be in the creationComplete listener function of the object itself, or perhaps in the creationComplete listener function for whatever parent object it resides in?
WSDL defines a number of datatypes supported by web service . Is there a documentation stating the various equivalents of those datatypes on flex side. In general for any language that we use to consume web service, how do we get to know the equivalent datatypes of the wsdl types.
One of the web service that I am consuming is returning base64Binary (an image binary data) , What is the equivalent datatype of this on flex ?
In the .NET world order, companies like Telerik provide awesome sets of components for web/windows/silverlight. Who are the equivalents in the Flex/Flash universe? I see lots of sites filled with little 10/20 dollar menu components or uploaders, but I'm really looking to find something a step above that.
I use the HTTPService() method to post a variable value to a SQL Server database. The suggestion came from someone with some past experience in Flash but nothing specifically related to posting variables to a database.
This person sent me the following code snippet that he found in a Flex forum (and changed a bit), with a suggestion that maybe it will work with a bit of massaging.
PHP Code:
private function start():void { service = new HTTPService(); service.url = "http://webServer.aspx";
[code]....
My biggest problem is that I'm using Flash instead of Flex. What is the Flash (non-Flex) equivalent of HTTPService() method in the following code snippet?
After setting an control's location to some site. How could I then take a peek at the associated HTML? I notice that as soon as I set Location, htmlText becomes null and vice-versa... So how would one go about looking at the HTML displayed in the control in TEXT form?
A question for Mac developers - which ActionScript IDE do you prefer? I've loved FlashDevelop on the PC, but can't find the equivalent on the Mac which:
is freehas code completion
The options I know about: TextMate - isn't free. it doesn't seem to have code completion...SE|PY - can't seem to get it to work on Snow Leopard, and I notice that the website doesn't seem to have been updated in four years...Flash Builder - isn't free(although I'm looking into installing Eclipse with Flex SDK), and I always preferred FlashDevelop for elegance and speed as an AS IDE anyway.my next last resort option is to look into running windows on the mac..
I was wondering if actionscript had something equivalent to PHP's create_function.pecifically, the ability to create a function from a string is what I am looking for.
I'm setting up a multi-lesson game and using it also as an opportunity to make the switch from AS2 to AS3. It's been a bumpy road but I'm getting it but think I've hit a roadblock.Is there an equivalent to the "loadMovieNum()" parameter from AS2? I have been merrily building all the individual games assuming I'd just swap them in and out of the same level so they purge each other as we go.
Second, but similar, I have a 2D array that contains only 0's or 1's. The smallest data type in AS3 seems to be Boolean (or Int or unit) which is 32bits (4bytes).
So if my array, which was say 10 x 10 in size, each containing an int to represent the 0 or 1, the array would be 400bytes (10*10 * 4bytes). This is an assumption, as I don't know how to get the size at run time.
BUT I have written code to convert arrays of 0's and 1's into an int (and vice versa) so instead of storing an array like this [ [1,1,1,1,1,1,1,1], [0,0,0,0,0,0,1,0] ], it would be represented like this [255, 2]. [code]...
I've got a button on screen and behind it a slideshow rotating images with a fade transition from one to the next. What I'm trying to figure out is when you MouseOver the button... the slideshow stops. When you MouseOut, the slideshow picks up where it left off. Seems simple enough, but I can't seem to get the correct combination of conditional statements to get this to work. Here's what I've got with a couple notes giving my thought process.[code]
i have 3 numbers ( r, g , b ) .... how do i get a number which is HEX equivalent?? color : Number = r<<16 | g<<8 | b is giving me something, which i am not sure if it is HEx
I have a program that loads a number of puzzle pieces torandom locations on a board. There is an eventlistener and code todetect if they are all together. Unfortunately, once in a while, even thoughits random, they overlap enough to trigger the later code and the programdiverts incorrectly. I can easily check for all the pieces on top ofeach other, butcan't seem to find how to return the code back a few lines inorder to reshuffle, similar to the goto line# in Vbasic.
create a new flash project, draw whatever and call it 'a'. then paste this:[code]this is a simple handler that should trace 'here' while the pointer is over 'a', thats all. if you run it, it will trace 'here' only once, or only once every time you enter a, instead every frame the pointer is over a.how do i create a handler that runs as long as the pointer is over a sprite or whatever. a way could be to put an enterframe and check if the pointer is over a, which i believe is not decent at all, is there any equivalent of 'over' that runs while is over, and not just enter?
I wondered what would be the equivalent of metadata tag used in flex or flash builder, but for flash or fla .. For example to use with [Injectors]Greetings!
Just started coding in AS3 with FlashDevelop and coming from a C# background, I would like to know if there's something equivalent to the #region directive in AS3? The #region directive in C# essentially allows an IDE e.g Visual Studio to collapse or expand a section of code to improve readability. With #region directives, you can split codes in sections e.g constructors, properties, public/private methods to aid others perusing your code.
#include is deprecated in AS3 but import is not really equivalent. In C# there is using which is like import AND PARTIAL CLASS.AS3 needs something equivalent to #include to be able to organize code like partial class so what's the equivalence ?