Re: [flexcoders] webservices and Flex 2

2006-12-08 Thread Patrick Mineault
Hi Robin, Whether you're using RemoteObject or WebService, the point of using either is _not_ to have to do that kind of serializing/deserializing. So it's all built-in, and it's all done behind the scenes, at the player level in the RemoteObject case and at the ActionScript level in the

RE: [flexcoders] Re: Cairngorm's Anaemic Domain Model

2006-12-08 Thread Peter Martin
I thought at this point it is worth jumping in to talk a bit about Cairngorm Enterprise, which we are currently working on. With Cairngorm Enterprise one of goals is to promote an application model on the client (RIA) and a domain model on server. We see the application model being a good OO

[flexcoders] getDefinitionByName

2006-12-08 Thread Daniel
Im using the method getDefinitionByName so I can get instances of classes which I only know their name. Now, this classes always receive 2 parameters in their constructor. My question would be, how can I pass these parameters using the method getDefinitionByName, somehing like: var name:String =

Re: [flexcoders] Design Pattern/Best Practices for generic record 'list' and 'detail' view Component

2006-12-08 Thread Lachlan Cotter
Hi Steve, Is your problem to do with your rules about which view to display? If it's getting a bit complicated or 'crufty', then you probably need another level of abstraction. Encapsulate your rules about which view should be displayed inside a getter called currentView. Bind your view

[flexcoders] Re: getDefinitionByName

2006-12-08 Thread Daniel
Nevermind, for some reason it didnt work in the past, but now its working perfectly. Sweet! --- In flexcoders@yahoogroups.com, Daniel [EMAIL PROTECTED] wrote: Im using the method getDefinitionByName so I can get instances of classes which I only know their name. Now, this classes always

[flexcoders] how to set function reference in css? (e.g. for setting slideEasingFunction)

2006-12-08 Thread benschwehn
Hello all, the slider class has a style property slideEasingFunction that i supposedly can set to a function. How can i set a function reference in an external css file? I know how to set a class reference: e.g. downSkin: ClassReference('whateverclass'); how would I do the same with a

[flexcoders] 2.01 Update

2006-12-08 Thread Austin Kottke
Is there an ETA of the new flex builder 2.01 update? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

[flexcoders] updating ArrayCollection

2006-12-08 Thread sreedhar reddy
Hi, I am working with Combo Box for which dataprovider is ArrayCollection and I am getting data from database using HttpService as follows: mx:HTTPService id=cb_podcast url=combo.jsp makeObjectsBindable=false/ mx:ArrayCollection id=cbXml

RE: [flexcoders] Best practice: string tables

2006-12-08 Thread Giles Roadnight
Fantastic - that is just what I was looking for. I did a few searches in the docs for string tables and similar but didn't come up with anything. Thanks to both of you. Giles Roadnight _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of greg h Sent: 07

[flexcoders] Re: Dot notation to access objects inside a datagrid column

2006-12-08 Thread niko_schmuck
Thanks, Jeremy and Tracy, for the fast answer! By using the labelFunction now the data is displayed correctly. -- Niko --- In flexcoders@yahoogroups.com, jsscardinal [EMAIL PROTECTED] wrote: I encountered this same thing before. The solution is to use a labelfunction. Like this: Here

[flexcoders] Re-usable Components

2006-12-08 Thread Giles Roadnight
Hi All I'm just finishing messing around with the tutorial projects I have been working on and am now getting started with actually building the application I want to build. I am trying to set up my folder structure and what I want is a folder for components (that will be used in lots of

[flexcoders] httpservice conundrum

2006-12-08 Thread kim_boulton
I need to change a httpservice url at runtime. However when I change the url the xml is not being updated, it is always one step behind. See the following example app, the xml displayed in the Alert box is always from the previous call. How do I get it to update correctly? ?xml version=1.0

[flexcoders] Clearing panels before changing state

2006-12-08 Thread stephen50232
Hi, In my application when the user clicks the log out button, the currentState is changed, but before that I'd like to be able to clear all the TitleWindows that my still be opened by the user. Is there a way to force all the TitleWindows to close before changing the state? Thanks Stephen

[flexcoders] Best way to communicate with database

2006-12-08 Thread darylgmyers
We have a web application which is built using Zope and has postgreSQL as the database backend. We are planning on adding/replacing functionality in sections with Flex 2. Over time the majority of the application will be done in Flex 2. We are trying to evaluate the many different ways we

Re: [flexcoders] Clearing panels before changing state

2006-12-08 Thread Paul Andrews
- Original Message - From: stephen50232 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, December 08, 2006 2:17 PM Subject: [flexcoders] Clearing panels before changing state Hi, In my application when the user clicks the log out button, the currentState is changed,

[flexcoders] Re: Best practice: string tables

2006-12-08 Thread zenwarden
Is there a way to have these properties not load at compile time, but rather be read at run time? One of the nicest things about properties in java and other langauges is that they allow you to change or modify behavior and values without recompiling code. Flash seems to ignore this concept both

RE: [flexcoders] Re: Best practice: string tables

2006-12-08 Thread Dirk Eismann
Not out of the box but you can quite easily build your own properties file loader by e.g. builing it on top of URLLoader or URLStream. Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of zenwarden Sent: Friday, December 08, 2006 4:24 PM

[flexcoders] Re: Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-12-08 Thread sof4real03
Kelly, Simple point click works fine as it did in Flex 1.5 with Flash Player 7, but the issue resides with double-clicking and recognizing text input boxes. In Flex 1.5/Flash Player 7 when you clicked into a text input fields; the fields would display an icon to launch the on-screen keyboard.

[flexcoders] Remote Objects: No support for inner class serialization?

2006-12-08 Thread Dirk Eismann
Seems as if public inner classes are not recognized by the Java-to-AMF serializer in FDS, is this correct? i.e. if a class RecordSet uses an inner class RecordSetVO which is used as a data type for the value objects that are transported via AMF then this type info is not set correctly. Dirk.

[flexcoders] Re: Odd behaviour from String.search()

2006-12-08 Thread camlinaeizerous
I had not thought of that, and your right the .search() is detecting it as a regex expression. Being I can't expect the end user to understand to type \(###\)###- to filter phone numbers is there a simple way to make it ignore the characters and not take it as a regex? --- In

Re: [flexcoders] Functions as objects

2006-12-08 Thread Derek Vadneau
You shouldn't have to cast as an object. And, according to the docs, you should be able to simply add a property to a function and access it. No offense - I really do appreciate the effort to help me out - but casting seems to be a bit of a hack. Although I like AS3 there are some things that

Re: [flexcoders] Functions as objects

2006-12-08 Thread Anatole Tartakovsky
Please see apply method also I posted pre-edited cut from the book here: http://flexblog.faratasystems.com/?p=125 - with closure object ala Flex 1.5you can use Thanks, Anatole On 12/8/06, Derek Vadneau [EMAIL PROTECTED] wrote: You shouldn't have to cast as an object. And, according to the

RE: [flexcoders] Can FLEX develop under IBM RAD6?

2006-12-08 Thread Matt Chotin
Yes, RAD6 doesn't work so well with Flex. However we have done work in 2.0.1 to make it compatible with RAD7 which is coming out soon (or already came out). 2.0.1 is out early next year. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] 2.01 Update

2006-12-08 Thread Matt Chotin
Very early next year. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Austin Kottke Sent: Thursday, December 07, 2006 10:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 2.01 Update Is there an ETA of the new flex builder

[flexcoders] backgroundGradientColors on something other than Application

2006-12-08 Thread Matt Maher
I was wondering if there were other elements (canvas, hbox, panel, etc) that can suport the backgroundGradientColors gradient properties? I see that there seems to be no support by default, is this simple to change?

Re: [flexcoders] Functions as objects

2006-12-08 Thread Derek Vadneau
Funny, I just read that this morning. However, it doesn't really apply here. I need to pass a function object and the name will probably be different for each one. So assigning a value to a variable of the class isn't acceptable, since the value will change for each call. As I mentioned, I have

[flexcoders] Re: Clearing panels before changing state

2006-12-08 Thread stephen50232
--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: stephen50232 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, December 08, 2006 2:17 PM Subject: [flexcoders] Clearing panels before changing state Hi, In my

RE: [flexcoders] httpservice conundrum

2006-12-08 Thread Tracy Spratt
ALL data service calls in flex are asynchronous. You can never access the result of a data call in the same function in which you invoke the send(). You must ALWAYS use the result event or bind to lastResult. Binding directly to lastResult can be hard to debug, so get in the habit of

[flexcoders] Re: Odd behaviour from String.search()

2006-12-08 Thread Doug Lowder
You can use String.indexOf() instead of String.search() if you don't want any sort of pattern matching at all. Or, you could take the string the user enters and run that through an escaping function before using it with String.search(). Something like: if(item.Phone.search(

RE: [flexcoders] FDS number NaN

2006-12-08 Thread Peter Farland
First, the behavior of ActionScript 3 Number, int and uint is based on the ECMA Script 4 specification (well, at least what this specification stipulated at the time of release). Given that AS3 has been released Flex is dependent on the way it is today. Second, Java primitives can't be null

[flexcoders] XML-RPC

2006-12-08 Thread z4guyuk
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:

Re: [flexcoders] Functions as objects

2006-12-08 Thread Clint Modien
Here's some code to get the name of the currently executing function dynamically if that's what you're after... var traceTarget:TraceTarget = new TraceTarget(); // Log only messages for the classes in the mx.rpc.* and // mx.messaging

RE: [flexcoders] XML-RPC

2006-12-08 Thread Tracy Spratt
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

RE: [flexcoders] Functions as objects

2006-12-08 Thread Francis Cheng
You should be able to add properties to function objects, just as the docs suggest. Unfortunately, it looks like this isn't working in strict mode anymore. Oddly, it does work in standard mode, but that may not be a viable workaround for you. I had a brief discussion about this with the engineers

[flexcoders] Re: FlexTagLib Issue

2006-12-08 Thread sanjaypmg
Hi Doug, Thanks for responding... So now pls tell me how can i integrate mxml with JSP. I tried to include compiled SWF file in my JSP file but it shows an error of destination doesnt exist. It doesnt find RO which I have made in remote-config.xml. Please help Regards, Sanjay --- In

[flexcoders] RSL's and Dynamic components

2006-12-08 Thread wljammal
Hi all, I'm currently working on a big project and need to load components dynamicaly but this doesnt seem to be working to well with our framework so the other option is to use seperate applications as the entire application is binding driven. The problem here is that empty applications come in

Re: [flexcoders] Functions as objects

2006-12-08 Thread Derek Vadneau
Thanks Clint! I completely forgot about describeType. That's MUCH better than tacking on a property - not that you shouldn't be able to do that, but describeType is better suited in this case. And thank you, Francis, for looking into this. It's good to hear that I'm not crazy! ... at least

[flexcoders] SOLUTION: Unable to bind Warning

2006-12-08 Thread Paul Whitelock
I found out what was happening to cause the unable to bind warning in the scenario that I described (see below). I eventually stumbled onto this solution after trying many different searches in Google: -- This is a solution for the common warning: unable to

[flexcoders] Re: FlexTagLib Issue

2006-12-08 Thread Doug Lowder
Hi Sanjay, Again, I haven't heard anything specific about FlexTagLib being supported in Flex2 so I'm afraid I can't be of much help there. Regarding your compiled SWF in a JSP file, can you successfully browse to the SWF directly, i.e. without the JSP? --- In flexcoders@yahoogroups.com,

[flexcoders] Re: SOLUTION: Unable to bind Warning

2006-12-08 Thread lostinrecursion
It's interesting how AMF does not provide the same wrapper functionality as HTTP and WEB services. Reason being, when using the standard CFC to AS Class mapping features of Flex 2, you could certainly benefit from such an automated conversion. For example, when passing data to Coldfusion as an

[flexcoders] Create a custom keyboard shortcut?

2006-12-08 Thread imjustlar
Is it feasible to create a custom keyboard shortcut? I see the huge list of items I can use by default but I would like to create some of my own to account for the repetitive typing (copy/paste) actions. (I am looking to do this in the IDE and not within the application.) I opened the Window

[flexcoders] Disabling the Ctrl key copy action during a drag-n-drop event.

2006-12-08 Thread lokesh2084
I have a simple list (code below) that has drag and drop enabled. I want to allow the user to reorder items in the list. But I do NOT want them to be able to duplicate list items by holding down the CTRL key during the drag drop. What would be the simplest way to handle this? mx:List

RE: [flexcoders] RSL's and Dynamic components

2006-12-08 Thread Roger Gonzalez
Hi, RSLs aren't the best match for what you need. Look into the new 2.0.1 Modules feature. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wljammal Sent: Thursday, December 07, 2006 6:36 AM To:

[flexcoders] Cairngorm: Event to Command Decision Making (Cairngorm Store 2.0)

2006-12-08 Thread lostinrecursion
Hi all, I just had the pleasure of stepping through the Cairngorm Store (v2.0) and checking it out. (I2, Great Work) I have two event questions regarding the store. 1. I notice that there are two events (UpdateShippingCostEvent and NewScreenEvent) which do not map to a command in the

Re: [flexcoders] XML-RPC

2006-12-08 Thread Valy Sivec
What do you use on the server side?. If you;re using java on the server side you can call a method on the server side if your http controller is properly configured. Give us more detail with what you have on the backend, and you might want to consider using resultFormat=e4x when you declare

[flexcoders] Re: Flex II Stand-alone Builder and SVN?

2006-12-08 Thread discollective
--- In flexcoders@yahoogroups.com, jer_ela [EMAIL PROTECTED] wrote: I've used it with no trouble with svn. Rather than creating a project that points to an existing svn directory, you may have to create a new empty project and then import from svn. --- In flexcoders@yahoogroups.com,

[flexcoders] Abnormal CPU usage?

2006-12-08 Thread zzwi89
My Flex application occasionally likes to ramp up the CPU usage. It will jump to 30 or 40% and slowly increase to 70 or 80%. This seems to happen when I generate components programatically. My code doesn't generate anything like an infinte loop that I could imagine causing this. Has anyone else

[flexcoders] Can not trap ALT keys

2006-12-08 Thread boy_trike
I have a keyboard listener which listens to and responds fine to CTRL + keys or SHIFT + keys or plain old keystrokes. but it is never called when I press ALT + key. Any suggestions? Thanks Bruce

[flexcoders] Extending ChartElement class

2006-12-08 Thread purcept
Does anyone know why I can't create an MXML Component that extands the ChartElement class. * I have Charting license * Used the New MXML Component wizard * Chose ChartElement form the Based on: list It creates MyChartElemeny.mxml with no problems, but when I insert it in an App and

Re: [flexcoders] Re: SOLUTION: Unable to bind Warning

2006-12-08 Thread Patrick Mineault
As long as we're on that subject... I've added a new setting to amfphp, which is: $gateway-setAmf3RecordSetFormat(Array); Which can also be set to ArrayCollection. I have yet to implement it, but does this sound like something useful to you? Patrick lostinrecursion a écrit : It's

RE: [flexcoders] XML-RPC

2006-12-08 Thread Giles Roadnight
Thanks for the reply. The lib I use at the moment (for actionscript 1 in player 6) is here: http://members.netmadeira.com/killer/xmlrpc/ and some details here: http://en.wikipedia.org/wiki/XML-RPC It looks like I'll have to get my existing lib to work with AS3 - it shouldn't be

[flexcoders] Add Parameters to URL for debug??

2006-12-08 Thread Steve Kellogg @ Project SOC
Hello, Is there any easy way to tell flex that I want it to add parameters to the URL when debug launching? I've looked over the preferences are of FlexBuilder, but I can't seem to find anything.. FOR EXAMPLE. I've got the following debug URL for one of my applications. C:\

Re: [flexcoders] Fade from one color to another

2006-12-08 Thread dorkie dork from dorktown
@dustin - Do you know if there is a way to get around the grayish color in the middle of the transition? It looks like it fades from white to the grayish color then to black. And the same from black to white. Here is my code: ?xml version=1.0 encoding=utf-8? mx:Application

Re: [flexcoders] Functions as objects

2006-12-08 Thread Anatole Tartakovsky
Francis, It worked in betas, but was removed on production build - we had to remove samples from the chapter. In standard mode fails for us on access as well with runtime error. More importantly, we can not extend Function datatype as runtime fails instantiation stating that type Function is

RE: [flexcoders] Extending ChartElement class

2006-12-08 Thread Ely Greenfield
To avoid confusing people with an avalanche of options, the mxml namespace for the framework only contains those classes we expect people to be using in MXML. ChartElement is one of those that very few people use or extend in MXML (this is the first I've heard of it). So it's not in the

RE: [flexcoders] Add Parameters to URL for debug??

2006-12-08 Thread Tracy Spratt
I haven't tried this but let us know: In FB, go to menu Run, Run, Other. It will bring up the launch configuration dialog. If you uncheck Use Defaults in the URL section, you can edit the url. Put your parameters on that and save it and give it a try. Please let us know the result.

RE: [flexcoders] backgroundGradientColors on something other than Application

2006-12-08 Thread Dirk Eismann
Try this one: http://www.richinternet.de/blog/index.cfm?entry=ADD4FDD1-9B48-BFBC-2A70F3C57EBC6892 Dirk. -Ursprüngliche Nachricht- Von: flexcoders@yahoogroups.com im Auftrag von Matt Maher Gesendet: Fr 08.12.2006 17:07 An: flexcoders@yahoogroups.com Betreff: [flexcoders]

[flexcoders] Need light shed on Array issue

2006-12-08 Thread Robert Moss
In Adobe's dashboard sample app, http://www.adobe.com/devnet/flex/samples/dashboard/ it assigns a charting component's dataProvider to an ArrayCollection's source (e.g. revenueData={slicedRegionData.source}) In the regionChange() function it sets the array regionData and assigns it to

RE: [flexcoders] Add Parameters to URL for debug??

2006-12-08 Thread Steve Kellogg @ Project SOC
Thanks for the suggestion. I'll try it in the next few hours (currently traveling). Best Steve _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, December 08, 2006 2:59 PM To: flexcoders@yahoogroups.com Subject: RE:

Re: [flexcoders] Cairngorm: Event to Command Decision Making (Cairngorm Store 2.0)

2006-12-08 Thread Douglas McCarroll
Hi Kenny, 1. NewScreenEvent - Hmm... This isn't a CairngormEvent - rather it extends flash.events.Event. It is used only in Checkout.mxml and its subcomponents. It makes sense to me to keep this within this part of the view as nothing else 'needs to know'. If something else did need to know

[flexcoders] Flex Presentation Server vs Flex Data Services

2006-12-08 Thread Charles
Hi all, Can anyone tell me the difference between Flex Presentation Server and Flex Data Services. I'm aware of FDS, and I've used it myself. But I haven't found much info on Flex Presentation Server and I'm a little curious as to what it's for. Thanks in advance Charles

[flexcoders] Styling p tags inside of mx:Text

2006-12-08 Thread gotgoose09
I want to add margin to p tags inside of a mx:Text control. How can I do this?

RE: [flexcoders] Flex Presentation Server vs Flex Data Services

2006-12-08 Thread Matt Chotin
Flex Presentation Server is essentially Flex 1.5. For Flex 2 we separated out the presentation logic into the Flex SDK and improved the data portion into FDS. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Charles Sent:

[flexcoders] Re: Add Parameters to URL for debug??

2006-12-08 Thread Mike Morearty
Unfortunately you can't add parameters for a file: URL. If you want to add parameters, you'll have to follow Tracy's instructions but change it to an http: URL that points to the file, e.g. http://localhost/MyApp.html?sessionID=1657. (If it's a file on your hard disk then of course you'll have

[flexcoders] Webservice WSDL ActionScript authentication and operations - n00bie

2006-12-08 Thread phipzkillah
Hi, I am trying to create a web service in pure action script. I need to authenticate and then call the proper method from the web service. I have not seen any good tutorials explaining how to do this... This is my current snippet: private function init():void{

[flexcoders] Re: Unable to bind Warning

2006-12-08 Thread Paul Whitelock
Thanks for the suggestion. I tried changing the name of the ArrayCollection, but I'm still getting the Unable to Bind warning. Any other ideas? Paul --- In flexcoders@yahoogroups.com, Samuel Reuben [EMAIL PROTECTED] wrote: from the looks of the code it seems that you'll have to change the

[flexcoders] How to create a nested non-visual component

2006-12-08 Thread Du, Xiaochen \(Harry\)
Hello all, I want to create a non-visual component that can have another non-visual component as child. For example: MyComponentA MyComponentB/ /MyComponentA How to do that? I know I should implement the AS class of MyComponentA from IMXMLObject like the following. But I don't know how to

[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

[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:

[flexcoders] Re: Webservice WSDL ActionScript authentication and operations - n00bie

2006-12-08 Thread ben.clinkinbeard
I've not dealt with authentication but here is how to call an operation. // getOperation() returns generic AbstractOperation by default // you want mx.rpc.Operation, not mx.rpc.mxml.Operation var op:Operation = ws.getOperation(doCoolStuff) as Operation; op.arguments.arrayArg = new Array(foo,