[flexcoders] Re: xml-rpc

2007-02-12 Thread chuvakgu
See http://debedb.blogspot.com/2007/02/xmlrpc-for-as-30-howto.html
and http://tech.groups.yahoo.com/group/flexcoders/message/58427
for more details.



[flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?

2007-02-08 Thread chuvakgu

 why is FDS such a problem. there are free license options availible

But automation doesn't work with Express, AFAIK.

See http://tech.groups.yahoo.com/group/flexcoders/message/61470



[flexcoders] Re: QTP plug in?

2007-01-15 Thread chuvakgu
 http://www.adobe.com/cfusion/tdrc/index.cfm?loc=en%5Fusproduct=flex
 
 download the Flex Automation Package (bottom of the page).

Is FDS necessary for this (and Express won't do)?



[flexcoders] Text in a grid?

2007-01-09 Thread chuvakgu
(The grid I mean here is not DataGrid or a flex component;
I mean like on a graphing paper).

In other words, I want to present a text (like in a text area)
with an ability to draw arbitrary vertical lines in it.
That's easy - but I want to do it so that they go 
exactly between characters. Any ideas?



[flexcoders] [Inspectable] Function type

2007-01-08 Thread chuvakgu
Hi all,

I want to add some [Inspectable] properties that are Functions. 
I also want to ensure that these are not just any functions, 
but functions that take arguments of specific types and
have certain return type. How would I go about it?






[flexcoders] In closures, referring to enclosing instance if it exists?

2007-01-08 Thread chuvakgu
For example, consider the following:

class Foo {
 
  private var bar:Function = function():void {
// Is there a way to refer to the instance of Foo
// here?
  };
...





[flexcoders] What's the best approach here (Associative arrays, dynamic classes, etc...)?

2006-12-27 Thread chuvakgu
Hi all, 

Here's what I am trying to do. I have an object that I
get from the server (currently via XmlRpc but that
doesn't really matter). It's an Object. I want to convert
it into a data structure on the client side for easier
manipulation. If I do something liek

class Foo {
  var prop1:String;
  ...
}

then I could use code completion to refer to properties
of an instance of Foo. (I am lazy, and sometimes it's hard 
to remember what properties are called). But on the downside,
in order to marshal/unmarshal this object into the raw
object, I need to know these properties. On the other hand
if I make Foo dynamic, and make the property names into constants,
I could use code completion in a bit more unwieldy way:

foo[Foo.prop1] = 'xxx'

and can also iterate through all these properties which is very
convenient for this marshaling/unmarshaling business. 

Is there something that would let me combine the best of both
worlds?



[flexcoders] Re: Drag/Drop - Datagrid. Target is off?

2006-12-26 Thread chuvakgu

 There's a bug in Flex where the application uses an
 ApplicationControlBar (possibly other controls, I'm not sure) which
 causes the hitarea to be inaccurate.

Can you point me to more info about this? I think I am hitting 
this one too... If so, I'll look for a workaround, getting
rid of this particular drag-drop functionality... I just want
to make sure it's not me being silly, it is an actual bug
(though who knows...)




[flexcoders] Timing out an XML request?

2006-12-20 Thread chuvakgu
Hi all,

Is there any way to tell URLLoader to time out a request
after a certain period of time?




[flexcoders] Re: data being dragged

2006-12-13 Thread chuvakgu
 This is comun Drag and Drop question very important.
 How can i know the data being dragged?. How can i add (after the 
 dragdrop) the data being dragged to an array collection?

How are you starting the dragging? It's in the dragSource
property of the DragEvent you get. DragManager docs provide
all the info you need (or link to others). The following query
in Google

data being dragged flex 2

gives amazing results :)



[flexcoders] Fixed-length file import component

2006-12-10 Thread chuvakgu
Hi all,

I am looking to create something like MS Office wizard
for importing fixed-length files, specifically, the
part where you can click to draw a line delimiting
fields, and move it. I can do, say, a TextArea, and 
a VRule (the textarea is transparent), or actually do
graphics.drawLine, etc., it's all fine,
but any suggestions on how to make sure that I am sticking
that line between the characters in the textarea?

I am talking about something like this:
http://debedb.googlepages.com/access-wizard.JPG.





[flexcoders] Drawing a line exactly to the dragged proxy

2006-12-10 Thread chuvakgu
Hi all,

Let's say I want to drag something and this is for creating
an edge in a graph. So what is being dragged, let's say, is a
little arrow (an image). What I would like is for there to be
a line from the place I started to drag it to the current
position of the dragged arrow. I can do it, using localX and
localY of the DRAG_OVER drag event, but those somehow seem
a bit off here and there. Is there basically a way to find out
exactly the x and y of the drag proxy image?



[flexcoders] Re: XML-RPC

2006-12-08 Thread chuvakgu
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote:

 I am not familiar with XML-RPC, but I suspect that the answer to your
 question is no.
 
  
 
 Can you do an ordinary HTTPService call successfully?
 
  
 
 This:
 
 methodauthor.login/method
 
 Looks suspicious. It is sending a querystring parameter that looks like
 this:
 
 ...?method=author.login
 
  
 
 Does the url target know how to handle that?
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of z4guyuk
 Sent: Friday, December 08, 2006 11:44 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] XML-RPC
 
  
 
 I have spent most of today googling and searching forums looking for
 an answer to this and it's getting towards that time on a Friday so my
 brain has given up.
 
 Does Flex natively support XML-RPC? I found 1 or 2 examples of it
 being used - one of them here:
 http://tech.groups.yahoo.com/group/flexcoders/message/549
 http://tech.groups.yahoo.com/group/flexcoders/message/549 
 and when I have been able to get the example code to work (like the
 above one) I have been unable to then get it to work with my own server.
 So far each time I have tried I get an unknown method error.
 
 One comment I found was that the webservice class would be better than
 the HTTPService class. If so does anyone have an example?
 
 The code I have used is this:
 
 mx:HTTPService url={serverSettings.xmlRPCstring}
 method=GET id=service result=methodResult(true,event)
 fault=methodResult(false,event)
 mx:request
 methodauthor.login/method
 Customer108/Customer
 Nameusername/Name
 PasswordPassword/Password
 /mx:request
 /mx:HTTPService
 
 I get the result function call firing but I can't see and data. When I
 dig through all the variables in the debugger I eventually come across
 a unknown method string that is returned by the server.
 
 Can anyone help me with this or do I have to try and get a 3rd party
 AS2 library to work with Flex instead?
 
 Many Thanks
 
 Giles





[flexcoders] Re: XML-RPC

2006-12-08 Thread chuvakgu
Funny you should ask.

http://xmlrpcflash.mattism.com/ is for AS 2. I converted it to AS3, 
fixed some bugs (maybe introduced new ones :), and it seems to work
for me. I was going to seriously clean it up before annoucning,
but since you ask, here:

http://www.hrum.org/people/debedb/pro/blog/2006/12/xmlrpc_in_flex_2actionscript_3.html




[flexcoders] TextArea as Console: Controlling cursor position and intercepting arrow keys

2006-12-07 Thread chuvakgu
Hi all,

How does one control position of the cursor inside a mx:TextArea?

What I am really trying to do is create a console 
out of a TextArea. A user would enter commands at a 
prompt, and at some point they would be sent to 
the server for evaluation. I looked for something like this
but didn't find...

So, control of cursor will come in a case such as:
I want to use up-arrow as history, for example, but while
I can intercept the up-arrow on a keyDown or keyUp event
and show the item from history, the cursor still moves.
In this case, maybe intercepting the arrow's
defautl behavior is good enough, but in another case
(e.g., if a line ends with \, the next line is indented -
but the cursor by default is in the first column, but whne
I mouse click on the area, it ends up in the proper place).

Thanks.




[flexcoders] 3 questions: Context menu, graphing component and XmlRpc

2006-11-27 Thread chuvakgu
Hi all,

I am new to Flex 2, and I have looked for answers to these
but haven't found much. Here they are:

1. Context menu (right-click) - I am looking for a way to
kill the actual flash context menu and have my own. Kind of
like the one shown at
http://www.flex-flex.net/flex/RightClickMenu/RightClick.html, but of
course :) there's no right-click show source code. It is discussed at
http://www.flex-flex.net/blog/article.asp?id=12, but only says code
later, and comments are full of spam (I guess I am just showing that
I've done some homework here).

2. Open-source graph component - by this I mean not graphs like pie
charts, but creation of graphs with nodes, edges, layouts (ideally -
drag/drop/snapping support). I've only dug out
http://mark-shepherd.com/blog/springgraph-flex-component/, but this is
a  bit too much (plus it's non-directional). I guess it's worth
hacking if I don't dig up something more along the lines of
http://www.mxgraph.com/pages/en/index.html. 

3. Finally, for an XmlRpc way to talk to the server (I already have a
server that serves that:). I've been able to find
http://sourceforge.net/projects/xmlrpcflash and
http://probertson.com/projects/xmlrpc/, both for AS 2.0. I am guessing
 it shouldn't be hard to make it work with 3.0, but which one would
you  recommend?