RemoteObject Problem

2005-03-03 Thread Mehdi, Agha
Hi all, When I try to run a method on a RemoteObject, I seethis error in the debugger EventType: "Status"MovieUrl: "http://localhost:8600/samples/greg/index.mxml.swf"Source: "Client"Time: 1109808432601Date (object #1)."Wed Mar 2 16:07:12 GMT-0800 2005"Status (object #2).code:

AW: [flexcoders] Cairngorm or ARP

2005-03-03 Thread Sven Claar
Hi Aral, please can you send me this preview and the Flex samples application too? Thanks, Sven -Ursprüngliche Nachricht- Von: Aral Balkan [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. März 2005 22:38 An: flexcoders@yahoogroups.com Betreff: Re: [flexcoders] Cairngorm or ARP Hi

RE: [flexcoders] RemoteObject Problem

2005-03-03 Thread Steiner, Jeff
Agha, Check that you have allowed access to the RO from within your flex-config.xml file. Jeff From: Mehdi, Agha [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 4:15 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] RemoteObject Problem Hi all, When I try to run a

Create mx:Model statically vs Binding

2005-03-03 Thread Tracy Spratt
Title: Create mx:Model statically vs Binding There are a few other threads about this, and I have never been comfortable with mx:Model so I decided to try to figure it out, but have been unsuccessful. In the small sample app below, I have three datagrids. One uses XML directly, one uses a

RE: [flexcoders] datagrid does not display http data

2005-03-03 Thread Chris Reynolds
Not sure how fussy Flex is about validXML but your fault and result attributes are in single quotes. Also the HTTPService tag looks unclosed. From: jivankohinoor [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 4:18 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Re: Advanced Printing Question

2005-03-03 Thread Tracy Spratt
Mark, Id love to see a simple working example of this. Luckily, my printing needs at the moment are modest, but an interim solution, while MM improves native printing, would be a delight. Tracy From: Mark Hitchcock [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005

ViewStack change using separate mxml file

2005-03-03 Thread kredding.geo
I created a simple mxml applicationthat contains a viewStack. The stack defaults to the first canvas. This canvas contains a button that when pushed, changes the stack to the second canvas. I can get this to work, but what I really want is to put the first canvas into a second mxml file. The

RE: [flexcoders] ViewStack change using separate mxml file

2005-03-03 Thread Gordon Smith
Try parentDocument.headerStack.selectedChild = secondCanvas; - Gordon -Original Message- From: kredding.geo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ViewStack change using separate mxml file I created a

Re: Integrating with Python

2005-03-03 Thread dunwerkin
Thanks Manish. Running it as an HTTPService or as a CGI would seem to be the easiest, and I'll give it a try. I had been thinking in terms of RemoteObject and hence my uncertainty on how to proceed, but HTTPService sure looks easier to implement from what I'm starting with. From: Manish Jethani

Re: ViewStack change using separate mxml file

2005-03-03 Thread kredding.geo
Perfect. Thank you. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Try parentDocument.headerStack.selectedChild = secondCanvas; - Gordon -Original Message- From: kredding.geo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:13 PM To:

RE: [flexcoders] RemoteObject Problem

2005-03-03 Thread Mehdi, Agha
Title: Message Ok, this is something I didn't understand. I have my flex running on http://localhost:8600. when I use remoteObject with endpoint of http://localhost:8400/flashservices/gateway, which is a CF server, itruns fine with no problems. This time, I tried using remoteObject with

Re: ViewStack change using separate mxml file

2005-03-03 Thread kredding.geo
Now I have a parent document with 2 children mxml docs using viewStack. I would like to take the value of a textInput from one child and place that value into a text control of the second child. Is this possible? Thank you --- In flexcoders@yahoogroups.com, kredding.geo [EMAIL PROTECTED]

RE: [flexcoders] Re: Advanced Printing Question

2005-03-03 Thread Mark Hitchcock
Hi Tracy, Not a problem. Yes, my printing needs are quite modest aswell and like I said in the original email, this solution exceeds my printing needs at the moment, but offeres the flexibility I need. Please find attached a simple mxml file as well as a java file which will need to be compiled.

Re: [flexcoders] Cairngorm + Flash

2005-03-03 Thread Robin Hilliard
Hi Agha, We've used Cairngorm to this point, but we had a good talk with Aral at MXDU comparing the two frameworks and what I've said about ARP is based on this discussion. Try the list Aral posted today in another Flexcoders thread. I need to try out some ARP ideas in a project to sort out my

Re: [flexcoders] Sample Project

2005-03-03 Thread Jeff Steiner
Vandan, Flex, in and of itself, does not truly have the ability to add, edit or delete data from a db. What you can do is call a webservice that performs those actions. Check out some of the samples in the Flex Explorer on Macromedia's web site for some good specifics as to what flex can do.

RE: [flexcoders] Re: ViewStack change using separate mxml file

2005-03-03 Thread Gordon Smith
Certainly. From any script in a Flex application, you can access data from any component and store it anywhere. You can use relative or absolute access, as in any hierarchy. From a script of the parent document, you can access properties of descendant components by dotting down relative to the

Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Steven Webster
code - as a pragmatic (slothfull? :-) Flex programmer I am rather fond of using a bit more actionscript in my mxml, but then I understand where Aral is coming from - and in Flash I would never put code in my fla. I would be happy to recommend either framework to a client. Not having seen

RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Dirk Eismann
After all, a MXML gets compiled into a AS 2.0 class. Most MXML files are instances of the View (classic View in MVC that is) - so to me it's logic andvalid to have functionality inside that file that handles and delegates user interactions. Dirk. -Original Message- From: Steven

Re: AW: [flexcoders] Cairngorm or ARP

2005-03-03 Thread Aral Balkan
Hi guys, I've sent you both the files offlist. In the interests of not flooding this list, can I please ask anyone else who might be interested to email me directly -- thanks! :) All the best, Aral On Thu, 03 Mar 2005 02:32:18 +0200, Willem Engelbrecht [EMAIL PROTECTED] wrote: To repeat the

RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Erik Westra
Personaly I don't like putting code into mxml's too, for me they are just the visual part of the application. I also don't like the idea of having a class somewhere far away from my form wich is called on a (for example) submit button event and then accesses the formfields to check their values.

New to Flex and having difficulties with validation

2005-03-03 Thread Jeroen De Vos
Title: New to Flex and having difficulties with validation Hello everyone, I'm new to Flex (started on Monday) and I'm having a lot of difficulties with validation. Here's the situation: I have a model in which I load data from an external XML mx:Model id=edgesmodel source=edges.xml/

RE: [flexcoders] Number Format issue. I need help.

2005-03-03 Thread Valy Sivec
Hello, I tried to use the NumberFormatter but without any luck... I checked the MM documentation but no luck either... There is a sample here http://livedocs.macromedia.com/flex/15/asdocs_en/mx/formatters/NumberFormatter.html but when I enter 0.00023 the formatted output is : 2.3e-8.

RE: [flexcoders] Click on button problem

2005-03-03 Thread Abdul Qabiz
Hi, It seems to be a limitation, however I will verify and file the issues.. Since both buttons are at same place, when you click one button and don't move mouse and other button appears at the same place...Other button doesn't get into over state or doesn't get the focus. So you have to do

RE: [flexcoders] form validation

2005-03-03 Thread Stephen Gilson
As an experiment, I created a RadioButtonGroup validator as a custom validator to determine is a user neglected to select a RadioButton in a RadioButtonGroup: class RBValidator extends mx.validators.Validator {public function RBValidator () { super(); } public function doValidation(value)

RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Robert Brueckmann
Can I ask how you manage an MXML without any ActionScript at all? How in a file that has components with clickor change listeners would you not have any supporting ActionScript codeI mean just about every single one of my MXML files has initialize or creationComplete listeners in the parent

RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Erik Westra
What i do is extending the mxmlclass with an AS class. Then instead of using the mxml i use the AS subclass. If the class is empty, things just work like they did before. But inside the AS class u have the usual callBacks (createChildren, init, etc) and a constructor. Via code u can add

RE: [flexcoders] Number Format issue. I need help.

2005-03-03 Thread Valy Sivec
Your example works fine as long as “totalAmt” is a number, formatting will work as expected. My problem has a different context, though: I have 2 text inputs, both of them are being formatted using the regular NumberFormatted. I’m trying to get the numbers out of the 2 text boxes, add them up

RE: [flexcoders] Number Format issue. I need help.

2005-03-03 Thread Abdul Qabiz
Show it as string, I mean internally calculate as number then convert number to string and show in the textfield I wrote a quick dirty routine, that might help you.There might be a better way to do, this is what I have done using string operations... code function

newbie

2005-03-03 Thread Doodi, Hari - BLS CTR
Hi members, I am new to Flex coding. I did learn a lot from coenraets web site and also from richinternetapps.com. I do really appreciate them for letting others to see their code and learn from it. I do have couple of issues to resolve. I did try search on Livedocs and other websites for

charting examples

2005-03-03 Thread cnewroth55
does anyone have any good examples of how to get data to and from a chart if RO's or CFC's? All the ones I have seen are static xml... thanks, Craig Newroth

Printing issue

2005-03-03 Thread ibibas
Hi, I have to print data from a datagrid with several columns(12). Defining a print job, I intend to modify the default page orientation, to print in horizontal orientation, but it doesn´t work. Any thought?. Thanks in advance. My code: var pj : PrintJob = new PrintJob(); //orientation

Error message with data binding

2005-03-03 Thread Tom Fitzpatrick
I've created a databinding in a component that works OK, but gives me a warning. I have an xml file called sales.xml storing a value this way: plan description id=DIRECT element nameDescription/name valueThis is some descriptive text./value /element /description other nodes here /plan in

RE: [flexcoders] tool tips for a linkbar

2005-03-03 Thread Matt Horn
Yes, this does work. Here's an example: ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:VBox !-- Create a LinkBar container to navigate the ViewStack container. -- mx:LinkBar dataProvider=myViewStack borderStyle=solid / !-- Define the ViewStack and the three

Can't find entry point for Cairngorm

2005-03-03 Thread dduuggllaa
I'm up to speed on Tomcat now and attempting to install Cairngorm. As the docs are rather thin, I'm assuming Cairngorm is an application skeleton with an entry point. The file INSTALL.txt mentions an Index.mxml file that does not appear to be included in the cairngorm zip file. Can someone from

RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Erik Westra
That was my initial approach too, but eventualy it was easier to track bugs and 'mis-references' since i extended the component i was accessing. Now i get an error when i try to reference a textfield that isnt there. Another thing that is a pro for this kind of approach, is that the mxml

RE: [flexcoders] fscommand and flex

2005-03-03 Thread Erik Westra
Why don't u try to use getURL? U can use it like this: getURL(javascript:functionName('arg1', 'arg2')); Internally fscommand is converted to something like: getURL(fscommand:functionName...), I don't know exactly, but there was a thread about it on flexcoders a month or so ago. Greetz Erik

RE: [flexcoders] Can't find entry point for Cairngorm

2005-03-03 Thread Steven Webster
Douglas, As the docs are rather thin,There are 685 pages of docs here:http://www.amazon.com/exec/obidos/tg/detail/-/0321255666/qid=1109863774/sr=8-1/ref=pd_bbs_1/104-6646893-5762341?v=glances=booksn=507846:-) I'm assuming Cairngorm is an application skeleton with an entry point. The file

RE: [flexcoders] fscommand and flex

2005-03-03 Thread Matt Horn
I think if you're using IE, you have to create a VBScript passthrough because fscommand will only call a VBScript function. Your original code worked for me in Firefox but not in IE. (Plus, you might have to watch the caps of myMovie_DoFSCommand -- the D is capitalized). Try adding the

RE: [flexcoders] Number Format issue. I need help.

2005-03-03 Thread Valy Sivec
Abdul, thanks for your example it was very helpfull I added an extra text box and wanted to do some sum between the 2 boxes... very basic stuff... function setOutput() { var value1 : Number = parseFloat(in_ti.text); var value2 : Number = parseFloat( in_ti2.text ) ; var total : Number; total

Re: Can't find entry point for Cairngorm

2005-03-03 Thread dduuggllaa
Steven, Actually, I have and very enjoy your excellent Flex book. Very helpful. What I mean is that it is unclear how you intend users of Cairngorm to take it out for a spin. Do I now stair at the included code for a while until I discover an entry point to hook into with a .mxml file I code up?

RE: [flexcoders] Creating components with style support

2005-03-03 Thread Matt Horn
Eric, the chapter on programmatic skinning has examples that should get you started. Did you try this? http://livedocs.macromedia.com/flex/15/flex_docs_en/2198.htm There's also a section in that chapter on making skinning properties styleable. HTH, Matt Horn

RE: [flexcoders] Re: Can't find entry point for Cairngorm

2005-03-03 Thread Steven Webster
What I mean is that it is unclear how you intend users of Cairngorm to take it out for a spin. Do I now stair at the included code for a while until I discover an entry point to hook into with a .mxml file I code up? Has that task been left as an exercise for the student ;-) or what?

RE: [flexcoders] Number Format issue. I need help.

2005-03-03 Thread Abdul Qabiz
Hi Valy, Thats how Flash Player rounds off the numbers automatically, if you have a number like this: var s2 = 12345678901234.95; //it would show as 12345678901234.9 and var s2 = 12345678901234.96; //it would show as 12345678901235 Not sure, how to solve thisSomeone who has done it

UPLOAD

2005-03-03 Thread daniele | mentegrafica
As I read, Flex doesn't support files upload to the server, even using a Central App I think this is another weak point. Is there any solution out there to solve the problem ? Thanks, dott. daniele galiffa multimedia designer developer Macromedia Flash MX Developer Certified [EMAIL

Autocomplete text filed

2005-03-03 Thread David Solis
Hi list, For my current project I need an autocomplete text field similar to google's suggestion. If anybody has an idea about how to implement this please drop a line. TIA Regards D.

RE: [flexcoders] Autocomplete text filed

2005-03-03 Thread Steven Webster
For my current project I need an autocomplete text field similar to google's suggestion. If anybody has an idea about how to implement this please drop a line. http://www.richinternetapps.com/archives/79.html Hope this helps, Steven -- Steven Webster Technical Director iteration::two

RE: [flexcoders] Number Format issue. I need help.

2005-03-03 Thread Valy Sivec
Hi Abdul, I'm working for a financial application and this behaviour in my opinion is unaccceptable...I'm hesitant to believethat our QA eng, not mentioning theclients willaccept this Can't believe that such a basic thing cause me so much trouble...is thereanybody in on this forum that used

RE: [flexcoders] newbie

2005-03-03 Thread Abdul Qabiz
Hi, 1) Yeah, you can trap the keyboard events using ActionScript. You can use keyDown event with Key object to find about pressed keys.. See example code later in the mail. 2) you can use the combination of mouseDown, mouseMove mouseUp event to make dragging happen. Look at Manish's Google map

RE: [flexcoders] newbie

2005-03-03 Thread Michael Herron
Hi, This is an issue that I have also had to deal with recently. I had limited success using code similar to that which you have outlined below. The major problem is that pressing CTRL + the majority of keys causes the browser to intercept these key presses and perform its own

RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Matt Chotin
Im reading these posts but haveno time to respond (nor to any other posts right now), though the discussion is a good one and I dont have strong opinions either way (taking into account of course that Im strongly loyal to binding). The only thing Ill contribute is that Im gonna refer to

Re: fscommand and flex

2005-03-03 Thread jeff tapper
Erik - Thanks, that worked in a much nicer cross-platform way then using fscommand. --- In flexcoders@yahoogroups.com, Erik Westra [EMAIL PROTECTED] wrote: Why don't u try to use getURL? U can use it like this: getURL(javascript:functionName('arg1', 'arg2')); Internally fscommand is

RE: [flexcoders] UPLOAD

2005-03-03 Thread Dimitrios Gianninas
hi, I wrote a doc on howto do file upload with a Flex UI with JSP, the doc is here: http://www.markme.com/mchotin/archives/2004_11.cfm Basically the Flash player does not currently support file upload/download. If you deploy your Flex UI in Central it does have file upload/download

Re: Can't find entry point for Cairngorm

2005-03-03 Thread dduuggllaa
Cool. Thanks very much Steven. -Douglass

RE: [flexcoders] Theory and Practice: Mixing AS2.0 in MXML

2005-03-03 Thread Omar Ramos
I was about to say that. It's besicaly like asp.NET where you have the tag bas view on the html and the code in C# or VB in a code-behind file. I use jimmy's method using the viewHelper because otherwise you wouldhave the mxml file a actionscrip class (code-behind) and the viewHelper also if

Re: [flexcoders] Autocomplete text filed

2005-03-03 Thread Leo
hi you can store your data in a array and add a text field to a canvas, when your texfield gains focus (or whatever) you can with absolute position show a list underneath the textfield with the items in the array that match your criteria. I´m not sure if this can be achieved without the canvas

Remote Object architectural question

2005-03-03 Thread wcucsd
Flexcoders, I have 2 Java classes: bean and service. The service class has a save method that takes a bean so it knows what to save. I want to use the Flex RemoteObject data service to call the service's save method and pass it a bean. When I do that, Flex appears to be calling all of the

RE: [flexcoders] Remote Object architectural question

2005-03-03 Thread Peter Farland
It does so by design (a much requested feature that was added in Flex 1.0), but in order for you to skip the Java Bean like deserialization, you could do the following: 1. Don't send type information using the _remoteClass property (I've never been a fan of this method of object typing) 2. Don't

MXML - ActionScript : where is the code cached?

2005-03-03 Thread dduuggllaa
Hello, In an effort to get a better feel for the mapping from MXML to AS2 I'd like to spend some time staring at the code generated by MXML. Can someone please tell me where it is cached? Thanks. -Douglass Turner

RE: [flexcoders] MXML - ActionScript : where is the code cached?

2005-03-03 Thread Matt Horn
You keep the generated ActionScript files by setting the following in the flex-config.xml file: keep-generated-astrue/keep-generated-as The generated files should be in the same directories as the mxml files, with the name {filename}-generated.as. hth, matt horn From: dduuggllaa

Re: MXML - ActionScript : where is the code cached?

2005-03-03 Thread dduuggllaa
Coolness. Thansk Matt. --- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote: You keep the generated ActionScript files by setting the following in the flex-config.xml file: keep-generated-astrue/keep-generated-as The generated files should be in the same directories as

RE: [flexcoders] Autocomplete text filed

2005-03-03 Thread alf
I'll send it this way: === AutoCompleteText.as === // Create the local shared object at the top level of the domain so that // all text fields in all Flash movies in the domain can access it. TextField.so = SharedObject.getLocal(textfieldAutoComplete, /); // When the user types into the text field

RE: [flexcoders] Number Format issue. I need help.

2005-03-03 Thread Gordon Smith
Title: Message http://stz-ida.de/html/oss/js_bigdecimal.html.enhas a _javascript_ implementation of BigDecimal. Perhaps it could be ported to ActionScript if the licensing is acceptable. But Macromedia has no connection to this code and can't offer any support. - Gordon -Original

RE: [flexcoders] HTML with flex

2005-03-03 Thread Tracy Spratt
Supported Tags: lt; (, less-than sign) gt; (, greater-than sign) amp; (, ampersand) quot; (, double-quote) apos; (', apostrophe) The following HTML tags are supported: a href=/support/flash/ts/documents/url b br font [color=#xx] [face=Type Face] [size=Type Size] i span li p