RE: [flexcoders] flex profiler
Can you try using the FP 7 debug player instead of 8? Which settings did you put in mm.cfg? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Sunday, February 12, 2006 5:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] flex profiler I installed the flex profiler in my application server and enabled the mm.cfg file as well as the flex-config.xml. I make the request to my mxml page and then view the profiler. It adds a row to my tested pages, but the column with the "File Name/URL" field is blank. I'm sure i've installed the flash 8 debug player as well. Any insight? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] flex2: styles sheets and accessing elements
I think the overhead exists but the VM is faster J I believe we considered it fast enough now to not need to differentiate between inherited and uninherited styles. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel Sent: Sunday, February 12, 2006 4:59 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] flex2: styles sheets and accessing elements sorry to dig up this old thread. i was wondering if calls to getStyle has the same type of overhead as it does in flex 1.5? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: 回复: RE: [flexcoders] Re: HTTPServ ice onLoad
Are you using 1.5 or 2.0? 1.5 myHttpService.addEventListener(“result”, mx.utils.Delegate.create(this, myResultHandler)); myRemoteObject.someMethod.addEventListener(“result”, mx.utils.Delegate.create(this, myROResultHandler)); 2.0 myHttpService.addEventListener(“result”, myResultHandler); myRemoteObject.someMethod.addEventListener(“result”, myROResultHandler); Then write your result handler function, take the event as a param, and voila! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ??? Sent: Sunday, February 12, 2006 7:49 AM To: flexcoders@yahoogroups.com Subject: 回复: RE: [flexcoders] Re: HTTPService onLoad i use result event handler in the .mxml.but in AS, how to use resutl event handler,i use remote object,and it also has the same problem on loading the data from java,could u please give an example to handler the result date using AS? Matt Chotin <[EMAIL PROTECTED]> 写道: In the result event handler for the HTTPService... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ffej1138 Sent: Tuesday, January 24, 2006 4:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTPService onLoad yeah, so I have the following: useProxy="true" showBusyCursor="true"/>
RE: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Pete and I discussed it the other day. He was working on getting it in soon, not sure if it will be method-for-method compatible but the goal is for it to provide the same functionality. I don't know what the status will be of connecting it to a legacy gateway though, that has not been an overriding concern of Flex 2. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 11, 2006 8:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex2 and Amfphp is it possible ? Hi Peter, Any word on bug/feature request #154595? I've had a look in beta 1 and didn't see anything there but I could easily have missed something. Also I'm glad to see addHeader has returned to the NetConnection object even though I can't get it to pass credentials to a legacy CFMX remoting gateway yet. I filed a bug on that and related problems. Anyway if RecordSet or something similar that will be compatible with legacy apps has been added it would be great to know. Yours truly, -Brian Peter Farland wrote: >>I can tell you, however, that Flex 2 Data Provider API is >>considerably different. I believe the mx.remoting.RecordSet >>API as it stands in Flex 1.5 is an inadequate data provider >>for Flex 2 components. >> >> > >How can plain old web services, which are totally generic, be adequate >but not recordsets? > >[Pete] Sorry, I should have explained further. Flex 2 components use >mx.collections.ICollectionView to manage data that may have also come >from a remote location (implying that users might have to consider >paging concerns when all of the data is not present on the client). If >mx.remoting.RecordSet is ported to AS3 and made to extend something like >mx.collections.ListCollectionView things would start to look better for >legacy data interacting with new components. > >I think this is a reasonable request for legacy application support - I >logged an enhancement request as bug #154595. > >Not that this is a consolation to your situation, but note that we have >new, more advanced and very flexible frameworks for managing remote data >in Flex Enterprise Services 2 - keep an eye out for a Beta of this soon. > > > > >>Also, how were you constructing these on the server? >>CF Query objects? >> >> > >Brians story is different from mine which I am sure is different for php >users. But I construct all of my recordsets with JDBC resultsets. >Cached rowsets to be exact. I suck lots of complex queries right out of >the database and send them to flash. The data never becomes serialized >POJOs. > >[Pete] Very cool. The format of a JDBC resultset (well, cached rowset as >you accurately state), and a CF Query were the same over the wire >according to Flash / Flex. The structure is pretty simple. Did you make >use of paging by any chance? > > > > __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex-Struts configration
Title: RE: [flexcoders] Flex-Struts configration Kinda hard to help without more information. Turn on debugging in flex-config.xml, check your server logs, put printlns in your java code to see what’s happening, etc. Time to sit down and debug J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Srikanth Sent: Saturday, February 11, 2006 5:53 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex-Struts configration Hi, My browser is always the running state(no out put/hanging), I think the problem is in the flex configuration file. Could you please help me? Thanks in Advance, Regards, Srikanth -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, February 09, 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex-Struts configration This was there right? result="alert(registrationRequest.result.registration.status)"> {firstName.text} {lastName.text} {phone.text} {email.text} {errorList.currentItem} From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Srikanth, R Sent: Wednesday, February 08, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex-Struts configration I have not outpur. I think HTTP Service tag is not Parsed in that application, where I had seen the view sourse in the browser the entire code has same. Please advice me how to proceed? Thanks in Advance, Srikanth -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Wednesday, February 08, 2006 1:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex-Struts configration There’s nothing to download from that tutorial, it’s all embedded in the pages. In example 1 the HTTPService tag is used to make a request against the servlet that then executes the Struts action. In example 2 the WebService tag is what was used to hook up the connection to the extracted business logic, the same logic that a modified Struts action would have called. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Srikanth, R Sent: Tuesday, February 07, 2006 11:17 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex-Struts configration Hi David, I had gone through the http://www.macromedia.com/devnet/flex/articles/struts.html. I have some doubt. Please clarify the following doubts. 1. In that link they have given a Flex client application. May I know what the extention of the file. Is? 2. How it process? Thanks in Advance, With regards, Srikanth -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Srikanth, R Sent: Monday, February 06, 2006 2:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex-Struts configration Hi, I have seen in your mentioned link. I have some doubt in that link. Where I have to save the Flex client file and how it calls? Could you please explain? Thanks, Kind regards, Srikanth -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of David Mendels Sent: Saturday, February 04, 2006 9:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex-Struts configration Hope this helps: http://www.macromedia.com/devnet/flex/articles/struts.html -David Adobe From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Husain Kitabi Sent: Saturday, February 04, 2006 9:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex-Struts configration I am just wondering why would you require struts and flex. anyway, look into web.xml file Srikanth <[EMAIL PROTECTED]> wrote: Hello, Could you please explain the confiration and Integration of the Flex and Struts? Please send a sample code/link for that. Thanks in advance, with Regards, Srikanth YAHOO! GROUPS LINKS • Visit your group "flexcoders" on the web. • To unsubscribe from this group, send an email to: [EMAIL PROTECTED] • Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. hussain Yahoo! Mail - Helps protect you from nasty viruses. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS • Visit your group "flexc
RE: [flexcoders] declaring constants in an interface
I think the language folks decided that constants just won’t be in interfaces. Use a class with static consts instead. I’m not sure that the Java folks these days ended up feeling like constants in interfaces was so grand anyway. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel Sent: Friday, February 10, 2006 12:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] declaring constants in an interface no access identifiers in interfaces give an error and then its the const that is the main error On 2/10/06, Manish Jethani < [EMAIL PROTECTED]> wrote: On 2/10/06, Johannes Nel < [EMAIL PROTECTED]> wrote: > public interface IStream extends IEventDispatcher{ > const UPDATED:String ="streamUpdated"; [snip] > getting the error "variable declarations are not permitted in interfaces". but a constant is not a variable, its set at compile time so why is this not allowed? Does declaring it as "static" help? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: HTTPService
Someone will try to look into it this week and see if we see the same error. If we see it we'll fix it or tell you why it no longer works. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of José Saldanha Sent: Friday, February 10, 2006 7:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTTPService Hi Matt Thanks for your reply For me this example that I talk about is Important because have .xml in three diferent ways: the first Only Atributes the second only nodes and the 3º Atributes and Nodes, in Browser the files run OK, in Alpha Flash Player run ok to, but in Beta only the file with Nodes XML run the others give that error. The example runs where with Alpha Player: http://www.evilfree.com/adam/blog/2005/11/flex_data_binding_nodes_or_ att.html What you write about "if QA reproduces" I dont understand sorry. For me is Important one feedback tell if have changes in Beta, or is a Bug or I make some wrong and have to make diferent. Thanks --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > I haven't confirmed this behavior but I've filed a bug pointing to the two XML files. We'll see if QA reproduces. > > Matt > > -Original Message- > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of José "aldanha > Sent: Thursday, February 09, 2006 3:15 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] HTTPService > > Hi > > Some ex. that I have and use .xml file and mysql PHP data, Flash > Player give me that error: > > TypeError: Error #1009: null has no properties. > at mx.rpc.xml::NamespaceUtil$/getLocalName() > at mx.rpc.xml::SimpleXMLDecoder/decodeXML() > at mx.rpc.xml::SimpleXMLDecoder/decodeXML() > at mx.rpc.xml::SimpleXMLDecoder/decodeXML() > at > mx.rpc.http::HTTPService/http://www.macromedia.com/2005/flex/mx/inter > nal::processResult() > at > mx.rpc::AbstractInvoker/http://www.macromedia.com/2005/flex/mx/intern > al::resultHandler() > at flash.events::EventDispatcher/dispatchEvent() > at mx.rpc::Producer/acknowledge() > at C:\dev\enterprise_beta1\frameworks\libs\framework.swc > (mx/validators/Validator) > $132::DirectHTTPMessageResponder/completeHandler() > at flash.events::EventDispatcher/dispatchEvent() > at flash.net::URLLoader/flash.net:URLLoader::onComplete() > > > In one ex (in > http://www.evilfree.com/adam/blog/2005/11/flex_data_binding_nodes_or_ > att.html ) > > Flex Data Binding - Nodes or Attributes? > > I have 3 diferent .xml files on first Load Attribute XML no error, > but in Load Node XML file give that error and Load Node XML w > Attributes give the error to, in Flex ALPHA all the ex work fine but > now? > > What I whant to know is: > > If in Beta make the ex. I have to code in diferent way, or is a bug > or What is it? > > If anyone have the same error please feedback and how to fix that. > > Thanks > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com > Yahoo! Groups Links > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Bind Datagrid to model
Dg2.dataProvider is going to be an Array that contains whatever you put in there. You can do with it whatever you want, including sending it to a service. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Venkata Krishnan Natarajan Sent: Friday, February 10, 2006 7:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bind Datagrid to model Hello, I have two datagrids, dg1 and dg2, in my flex 1.5 application. The source for dg1 is an xml file. I have dragdrop feature between the dg1 and dg2. After I populate dg2 with the items the user likes from dg1, how do I bind the contents of dg2 (which is a subset of dg1) to a model or xml and use it in a dataservice? Can anyone please help. Thanks Venkat Make FREE PC-to-PC calls with MSN Messenger. Get it now! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Array serialization for Webservice
With the literal request format instead of passing in the object as the parameter and having it serialized you write the XML that the service would expect. So since you know what the XML should look like going across the wire you just fill that in instead of the serializer doing the wrong thing like we're seeing. I did some searching and I found the bug and it's marked as fixed in 1.5. So in reading your code a little further I'm not sure I can tell how your WebService function is supposed to work. You said that everything was passed correctly if you specified a single range. Does that mean that you passed an array of 1, or did you just pass the range object? Is it possible that you declared two functions in your Java side for the WebService, one that takes an array and one that doesn't? If that's the case we may have a problem because AS doesn't support method overloading so it may pick the wrong method. Not too much help here I know, if we can see the WSDL we may be able to learn a little more. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pablo Apanasionek Sent: Friday, February 10, 2006 4:48 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Array serialization for Webservice Matt, Thanks for your reply. Could you explain me a bit of how this 'literal request format' would work? Thanks in advance, Pablo Apanasionek -Mensaje original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Matt Chotin Enviado el: Viernes, 10 de Febrero de 2006 04:36 Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Array serialization for Webservice Unfortunately I think this may be a known bug. I believe you're going to need to do a literal request format and pass the information in XML yourself to make it work. I don't remember if we may have fixed this in a hotfix, if you have a support contract you may want to ask your rep. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pablo Apanasionek Sent: Thursday, February 09, 2006 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Array serialization for Webservice I tried many things without results, so I decided to ask for help. I'm using Flex 1.5 and some Java Webservices. I have an object that is passed as a parameter to a webservice. The Object goes something like this: SomeObject(code:String, ranges:Array) The "ranges" array contains 1 or more instances of some other object, which has a String and two Numbers. So far, so good. And here comes the problem: When I complete my paramObject with a code and ONE range in the ranges array (which I decided to declare as Object = code:AAA, ranges:(D,200,300)), it serializes like this: AAA X 200 300 Its values are passed like this: someService.addType.request.code = 'AAA'; someService.addType.request.ranges.scope = 'X'; someService.addType.request.ranges.from = 200; someService.addType.request.ranges.to = 300; This format posts well to the webservice, and it results OK. But, if I add a range (in the array), so it holds two ranges, I step into two problems: 1) If I stick to declaring "ranges" as an Object, I can't add another instance of it. 2) If I convert "ranges" into an Array, and add the two complete objects, although the Flex Network Monitor and Trace Panel show it right, it gets serialized like this: AAA X 200 300 Z 400 500 Resulting in a fault event of the webservice, because of the unrecognized property "item". Is there a way to change the serialization of array (as I would need to name each item as "ranges" and not as "item") or some other way to fix this? Thanks in advance, Pablo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders]How to create Heavy interface properly?
With the queued policy you may want to specify the creationIndex to further control things. A creationPolicy of "all" will do all of the work at startup which will mean that the app is slow to initialize but will be fast afterward. Is that preferable? These are the tradeoffs, I'm not sure that you can really get creation going without the UI slowing somewhere. When you do the default policy things we spread it out. When you use queued you get to see some visible progress but you only get to watch, it's hard to interact. When it's none you get to control it entirely on your own and you can tune however you want. It seems like you just need to experiment to find the tuning that works for you. Sorry, Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Friday, February 10, 2006 4:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]How to create Heavy interface properly? Hello Flex Developers, I have next problem: Context of the problem: In my application I have little main page with text info, and after mouse click user goes to next page where is accordion placed with 5 childrens inside and every of this children load some data from server and then show it, using different components(dataGrid, List, etc...) this childrens are quite heavy. I know it is possible to optimize them, but let's assume that they are optimized to maximum. Problem: When user goes to accordeon, he needs to wait some time(1-3 sec) before accordeon child initializes, load data and finally show it. First aspect of the RIA is Seamless, and it doesn't work here! Solutions: 1. I tried to use creationPolicy="auto" on accordion and it works, but still user need to wait while active child initializing and load data. 2. creationPolicy="queed", but in Accordion it didn't work properly, it creates just top container of the childrens and that's all. 3. Using creationPolicy="none", I developed my own little solution and now childs initializes one by one properly, i.e like creationPolicy="queed" should work. BUT... the application freezes, while other childs initializing in the meantime and load data, so user can't interact with interface. Ideal WorkFlow: User read data on first page, in the meantime accordion initializes, load data and place it properly. And application doesn't freeze! When user goes next screen everything is working without delays. So the question is: How I can achieve this Ideal Workflow and especially how I can avoid freezing application? Thanks in advance. Best regards Stanislav -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] flex profiler
I installed the flex profiler in my application server and enabled the mm.cfg file as well as the flex-config.xml. I make the request to my mxml page and then view the profiler. It adds a row to my tested pages, but the column with the "File Name/URL" field is blank. I'm sure i've installed the flash 8 debug player as well. Any insight? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] flex2: styles sheets and accessing elements
sorry to dig up this old thread. i was wondering if calls to getStyle has the same type of overhead as it does in flex 1.5? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
> My point is that every time there's a new language (yes I've been > around for awhile :) there are people complaining that it's unlike > some other language (mostly an older one). It's understandable, but > I also know that the people implementing the language spec's for the > most parts is not inexperienced fools. There's in all properly a > reason for the missing 'feature', and it just _might_ be that the > language does in fact support the desired construct but in a > different way than the one you are used to. A new language is often > more productive than the older one _overall_, but some specifics > might become more tedious on account of the re-arrangement in > complexity. You simply cannot progress and keep everything as is. > This also applies for humans. Yes, this is certainly true in general. What I still don't get though is how it applies to this specific topic. I still miss any reason why permitting private constructors might have any undesirable side- effects for AS 3 as a whole? And note that they are not only used for singletons, I also use them for faking abstract classes in AS 2, and since AS 3 still does not introduce this feature, it would be nice to at least be able to "hide" the constructor with a private access modifier (or rather protected in AS 3 I assume). Note that even the APIs for Flash Player 8.5 use the concept of abstract classes, but with a rather ugly workaround. From the docs for the DisplayObject class: DisplayObject is an abstract base class; therefore, you cannot call DisplayObject directly. Invoking new DisplayObject() throws an ArgumentError exception. This does not feel right. This is something that should be enforced at compile time. Either through making the class abstract or through making the constructor inaccessible. (Btw: Otherwise I think the new Display API is great) Jens www.oregano-server.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: cellRenderer not recognizing click events for Custom Mxml Cell Renderer
Kevin, Here is the brief internal training video of the component that does what you are doing : http://demo.xmlsp.net/dataservice%206/dataservice%206.html Toward the end of video you should see a typical cellRenderer that is being used in dynamic layouts. Looking at your original code I would suggest few things. The button "click" event is emitted by the either simplebutton ot Button based on the ability of the button to be selectable. If you do not care about the ability to disable the button or being able to tab to it and press "space" button you might consider intercepting mouse event. HTH, Anatole Tartakovsky - Original Message - From: "Kevin Ewok" <[EMAIL PROTECTED]> To: "Anatole Tartakovsky" <[EMAIL PROTECTED]> Sent: Friday, February 10, 2006 4:16 PM Subject: Re: cellRenderer not recognizing click events for Custom Mxml Cell Renderer Anatole, Thanks for your response. It seems almost impossible, but when I set my click event to click="listOwner.dispatchEvent({type:'arrowClick'})" , the function is still not called. I'm completely lost at this point. Did you have a code sample you said that might work? Again, I really appreciate your help in your past posts. --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" <[EMAIL PROTECTED]> wrote: > > Simplest way to pinpoint the problem is to keep generated files and review generated code. You can change the code in click="" to click="mx.utils.Delegate.create(this, click)" if you think that it fails context recognition. In most cases we would just delegate processing to container with click="listOwner.dispatchEvent({type:'arrowClicked',...}) > I will try to publish dynamic datagrid demo on one of our external servers this week. > Thank you, > Anatole > - Original Message - > From: Kevin Ewok > To: flexcoders@yahoogroups.com > Sent: Tuesday, February 07, 2006 4:04 PM > Subject: [flexcoders] Re: cellRenderer not recognizing click events for Custom Mxml Cell Renderer > > > Anatole- > Thanks for your response. I have traces in both my 'setValue() and > 'arrowClick' methods. I see the trace statements for both the > setValue(...) and arrowClick(event) methods when the com.StatusPicker > cellRenderer is applied to the mx:Datagrid mxml tag. However, for the > dynamic datagrid, I only see the trace statements for the setValue() > method and no traces occur when I click the arrow. arrgh. so > frustrating. The fact that it renders it correctly is the most > frustrating part...why the click event that is dispatched doesn't get > picked up makes me curious to know what Macromedia's code does when > applying a cellRenderer b/c obviously I'm missing that in my mxml file. > > Is there an example mxml file that does work with dynamic datagrids I > can try to plugin? I guess a last resort option is to write the entire > cell renderer in an Actionscript class but that I fear woul dlead to > more problems (and Actionscript forums) for me! Cheers. > > > --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" >wrote: > > > > I am using both mxml and AS - works in both. Try to use trace in > setValue to verify if the trace output is sent. Also, I am not sure > what you mean by saying that you add mxml dynamically - it is either > referenced in the code statically with var > _fake:com.StatusPicker=null; or has to be in RSL preloaded into the > application. > > HTH, > > Anatole > > > > > > - Original Message - > > From: Kevin Ewok > > To: flexcoders@yahoogroups.com > > Sent: Tuesday, February 07, 2006 1:17 PM > > Subject: [flexcoders] Re: cellRenderer not recognizing click > events for Custom Mxml Cell Renderer > > > > > > I have traces at the beginning of my 'arrowClick' method which is > > linked to the click event of the button. When the mxml file is applied > > to the mx:DataGrid cellRenderer...I see all traces. However when I add > > the mxml file dynamically, I do not see the trace of my 'arrowClick' > > function. > > > > I'm creating my datagrid dynamically from a XML file (mx:model). It > > looks like this: > > > > > > > cellRenderer="com.StatusPicker" /> > > > editable="false" /> > > etc... > > > > > > in which case I'd loop through the model and call: > > if(column.cellRenderer != undefined) > > { > > _dgc.cellRenderer = column.cellRenderer; > > } > > > > It renders the component, but the click event doesn't call the method. > > Are you using pure ActionScript classes as your cellRenderers or mxml > > files? I think I'm missing something when I just add the mxml file in > > the code below as if the children are not getting created correctly. > > > > Thanks again for your help. > > > > --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" > >wrote: > > > > > > Kevin, > > >
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
I agree that it can become tedious, but it's hardly a hack.My point is that every time there's a new language (yes I've been around for awhile :) there are people complaining that it's unlike some other language (mostly an older one). It's understandable, but I also know that the people implementing the language spec's for the most parts is not inexperienced fools. There's in all properly a reason for the missing 'feature', and it just _might_ be that the language does in fact support the desired construct but in a different way than the one you are used to. A new language is often more productive than the older one _overall_, but some specifics might become more tedious on account of the re-arrangement in complexity. You simply cannot progress and keep everything as is. This also applies for humans. Personally I still need to absorb some of the new features (like using the namespace type for e.g. implementing a factory pattern) in the AS3 language, and reflect on the new set of options before I 'complain' on missing features. Perhaps you guys already have _the grand perspective_ on the AS3 language, and thus rightfully criticise the decision. If so, I'm sorry for the interruption. I just got the feeling that this was more of the 'why? Java has it!' kind of thing. :) cheers -michaelOn 2/12/06, Julian Suggate <[EMAIL PROTECTED] > wrote: Try writing static facades for a class with any larger interface than five or so methods and it becomes tedious to say the least. not to mention that every time you add a function to the Manager class you have to manually expose it through ManagerImpl. If there was a codegen tool that could do this for me, I'd not care so much but with languages as they are at the moment, this kind of extensive delegation involves too much grunt work. Languages should have a "wraps" keyword to manage this. In the AS2 days you could use __resolve quite nicely to delegate behaviour but lost typesafety :( I don't think Roger's solution would hold much traction with my team leader who is always looking for the "path of least resistance" (sorry Roger!). Unfortunately, it looks like AS3 doesn't have one of those when it comes to implementing singletons (or template methods for that matter). Otherwise, i think AS3 is awesome and congratulate all the Macrobat dudes for revamping their platform Yet Again! Well done :-) And the performance enhancements combined with Flash's capabilities mean that people will use the language no matter what. Heck, if it still had AS1 syntax, we'd still be using it. But really, I think abstract classes and modifiable constructors should make it into the AS4 spec. And typesafe delegation/wrappers that also avoid pointless delegation code like in Roger's example! My $.02. Cheers, Jules On 2/13/06, Michael Hansen <[EMAIL PROTECTED] > wrote: Please explain why Roger Gonzalez (last 4 lines) construct is a hack (other than different from the Java way)? It is interesting to note that private constructors are discouraged in C# 2.0 and replaced by statics. (much like in AS3)cheers -michael On 2/12/06, Xavi Beumala < [EMAIL PROTECTED] > wrote: Hi there,I also completely agree with you. If it's a fact of architecture why not let us (programmers) decide what to use (internal vs private) ?? All new features on AS3 and FES are really amazing, but I think two main things are being forgotten as has been said: abstract classes and private methods. It's really tricky and weird to use runtime exceptions to control what can be controlled at compile time. And despite patterns are language agnostic and can have different implementations on different languages they must be easy to identify on the code. Using hacks like the ones explained isn't easy to identify them. Implementing a template method using exceptions IMHO also looks really bad... Just my opinionX. On 2/12/06, Carlos Rovira <[EMAIL PROTECTED] > wrote: Thanks to god! I thought was completly alone in this topic! : ) 2006/2/12, Jens Halm < [EMAIL PROTECTED]>: > again from other people's coming to the Flash platform they look at> all this stuff as the typical flash hacks from old days.> I don't know why are you so reactive to introduce private > constructors that are very clear and precise to resolve this kind of> things and don't need any trick. > Another question is what's about Abstract classes that are again very needed.> Please rethink this two things so we could get a very flexible> languaje and bring more people form other backgrounds to our beloved> platform without think that we have a platform full of hacks. I have to second all those points.Ok, now we know Adobe had long discussions internally about thisissue, but I still can't see any disadvantages in permittingnon-public constructors which might have led to this decision. As it seems evident from this and other similar threads theproposed workarounds for singletons are ugly and confusing formost developers.As for abstract classe
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Try writing static facades for a class with any larger interface than five or so methods and it becomes tedious to say the least. not to mention that every time you add a function to the Manager class you have to manually expose it through ManagerImpl. If there was a codegen tool that could do this for me, I'd not care so much but with languages as they are at the moment, this kind of extensive delegation involves too much grunt work. Languages should have a "wraps" keyword to manage this. In the AS2 days you could use __resolve quite nicely to delegate behaviour but lost typesafety :( I don't think Roger's solution would hold much traction with my team leader who is always looking for the "path of least resistance" (sorry Roger!). Unfortunately, it looks like AS3 doesn't have one of those when it comes to implementing singletons (or template methods for that matter). Otherwise, i think AS3 is awesome and congratulate all the Macrobat dudes for revamping their platform Yet Again! Well done :-) And the performance enhancements combined with Flash's capabilities mean that people will use the language no matter what. Heck, if it still had AS1 syntax, we'd still be using it. But really, I think abstract classes and modifiable constructors should make it into the AS4 spec. And typesafe delegation/wrappers that also avoid pointless delegation code like in Roger's example! My $.02. Cheers, Jules On 2/13/06, Michael Hansen <[EMAIL PROTECTED]> wrote: Please explain why Roger Gonzalez (last 4 lines) construct is a hack (other than different from the Java way)? It is interesting to note that private constructors are discouraged in C# 2.0 and replaced by statics. (much like in AS3)cheers -michael On 2/12/06, Xavi Beumala < [EMAIL PROTECTED] > wrote: Hi there,I also completely agree with you. If it's a fact of architecture why not let us (programmers) decide what to use (internal vs private) ?? All new features on AS3 and FES are really amazing, but I think two main things are being forgotten as has been said: abstract classes and private methods. It's really tricky and weird to use runtime exceptions to control what can be controlled at compile time. And despite patterns are language agnostic and can have different implementations on different languages they must be easy to identify on the code. Using hacks like the ones explained isn't easy to identify them. Implementing a template method using exceptions IMHO also looks really bad... Just my opinionX. On 2/12/06, Carlos Rovira <[EMAIL PROTECTED] > wrote: Thanks to god! I thought was completly alone in this topic! : ) 2006/2/12, Jens Halm < [EMAIL PROTECTED]>: > again from other people's coming to the Flash platform they look at> all this stuff as the typical flash hacks from old days.> I don't know why are you so reactive to introduce private > constructors that are very clear and precise to resolve this kind of> things and don't need any trick. > Another question is what's about Abstract classes that are again very needed.> Please rethink this two things so we could get a very flexible> languaje and bring more people form other backgrounds to our beloved> platform without think that we have a platform full of hacks. I have to second all those points.Ok, now we know Adobe had long discussions internally about thisissue, but I still can't see any disadvantages in permittingnon-public constructors which might have led to this decision. As it seems evident from this and other similar threads theproposed workarounds for singletons are ugly and confusing formost developers.As for abstract classes: Maybe they are not part of ECMA 4 yet? I tried to google it up, but somehow I am not able to find anup-to-date specification draft. (The newest one I was able to find isfrom 2003). In AS 3 abstract is a reserved keyword but it's not usedyet. But again: If we don't get abstract classes we need non-public constructors to fake them. In AS 2 I combine private constructors withempty (pseudo-abstract) template methods to accomplish this.AS 3 is a huge step forward, but I still miss some pieces in the corelanguage: - Private constructors- Abstract classes and methods- Enumerations!- Class.instantiate(args:Array) methodJens www.oregano-server.org --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Searc
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Please explain why Roger Gonzalez (last 4 lines) construct is a hack (other than different from the Java way)?It is interesting to note that private constructors are discouraged in C# 2.0 and replaced by statics. (much like in AS3)cheers -michaelOn 2/12/06, Xavi Beumala < [EMAIL PROTECTED]> wrote: Hi there, I also completely agree with you. If it's a fact of architecture why not let us (programmers) decide what to use (internal vs private) ?? All new features on AS3 and FES are really amazing, but I think two main things are being forgotten as has been said: abstract classes and private methods. It's really tricky and weird to use runtime exceptions to control what can be controlled at compile time. And despite patterns are language agnostic and can have different implementations on different languages they must be easy to identify on the code. Using hacks like the ones explained isn't easy to identify them. Implementing a template method using exceptions IMHO also looks really bad... Just my opinion X. On 2/12/06, Carlos Rovira <[EMAIL PROTECTED] > wrote: Thanks to god! I thought was completly alone in this topic! : )2006/2/12, Jens Halm < [EMAIL PROTECTED]>: > again from other people's coming to the Flash platform they look at > all this stuff as the typical flash hacks from old days. > I don't know why are you so reactive to introduce private > constructors that are very clear and precise to resolve this kind of > things and don't need any trick. > Another question is what's about Abstract classes that are again very needed. > Please rethink this two things so we could get a very flexible > languaje and bring more people form other backgrounds to our beloved > platform without think that we have a platform full of hacks. I have to second all those points. Ok, now we know Adobe had long discussions internally about this issue, but I still can't see any disadvantages in permitting non-public constructors which might have led to this decision. As it seems evident from this and other similar threads the proposed workarounds for singletons are ugly and confusing for most developers. As for abstract classes: Maybe they are not part of ECMA 4 yet? I tried to google it up, but somehow I am not able to find an up-to-date specification draft. (The newest one I was able to find is from 2003). In AS 3 abstract is a reserved keyword but it's not used yet. But again: If we don't get abstract classes we need non-public constructors to fake them. In AS 2 I combine private constructors with empty (pseudo-abstract) template methods to accomplish this. AS 3 is a huge step forward, but I still miss some pieces in the core language: - Private constructors - Abstract classes and methods - Enumerations! - Class.instantiate(args:Array) method Jens www.oregano-server.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Xavi Beumalahttp://www.code4net.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS
[flexcoders] Re: Cairngorm2 version of Phones Flex/ColdFusion Connectivity samples
Hi Benoit, Great work. Appreciate your contribution. Cheers, T --- In flexcoders@yahoogroups.com, "Benoit Hediard" <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > Today, I managed to take some time to write a Cairngorm2 version of the > Phones Flex/ColdFusion Connectivity sample! > > Description: > A Cairngorm 2 version of the Phone Selector sample application. > http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity:Sampl > es:Phone_Selector > > Purpose: > - to show Flex RIA best practices, > - to show Flex/ColdFusion Connectivity best practices. > > Changes: > I made some minor changes to the original app, in order to simplify it. > - removed > simple list instead of tile list without details state, > - removed > no images, > - added > reload button to demonstrate Cairngorm events/commands with > Flex/ColdFusion connectivity, > - added > loading state during remoting commands. > > Installation: > - download Cairngorm 2 alpha > (http://www.richinternetapps.com/archives/000145.html), > - unzip the Phones and Cairngorm files in new Flex Builder 2 project, > - move the content of "coldfusion" folder to your ColdFusion wwwroot, > - test the service by calling > http://localhost/com/mycompany/phones/service/test.cfm, > - compile the Main.mxml app (do not forget to set the compiler args to use > flex-enterprise-services.xml). > > The zip file can be downloaded here : > http://www.benorama.com/flex/samples/PhonesCairngorm2.zip > > Any feedbacks are welcome. > > Have fun! > > Benoit Hediard > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RslBuild - an automated build report parser and SWS generator for Flex 1.5
Hi all, I had some free time to work on this utility recently. Basically, it reads your Flex build reports and generates a SWS file for classes that are common to a specified number of applications. I’d like to offer it to anyone who would find it useful. It’s pretty preliminary and might need some more work, but check it out and tell me if it’s useful to you. You can download the first version and read the documentation here: http://www.flashalchemy.com/rslbuild/ Overview: RslBuild is a command line utility for Flex 1.5 developers to automatically generate RSL (Remote Shared Library) definitions (SWS files) for their Flex applications. RslBuild is useful when you have multiple applications that share some classes and you want to externalize some or all of those common classes in an RSL. To achieve this, RslBuild analyzes Flex generated build reports. The user can specify what build reports to analyze as well as what number of applications a class must occur in for it to be added to the RSL. For example, if you had four applications that used some of the same classes, you might choose to include classes that occur two or more times. In this way, if the mx.controls.Button class was used in two or more of the four applications, it would be eligible for inclusion in the resulting SWS file. RslBuild is appropriate for both precompiled Flex applications and applications compiled using the Flex J2EE application. …Jim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
回复: RE: [flexcoders] Re: HTTPService onLoad
i use result event handler in the .mxml.but in AS, how to use resutl event handler,i use remote object,and it also has the same problem on loading the data from java,could u please give an example to handler the result date using AS?Matt Chotin <[EMAIL PROTECTED]> 写道: In the result event handler for the HTTPService...-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of ffej1138Sent: Tuesday, January 24, 2006 4:43 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: HTTPService onLoadyeah, so I have the following:useProxy="true" showBusyCursor="true"/>I then take the data in put it in a repeater.. all is fine. I want to be able to assign the recsData.result.XML.TAG array andassign it to another array, lets say recsArray.if I do this in the getXML() function, right after the .send(), thenthe new array (recsArray) is blank. Presumably because the XML has notarrived yet. Is there some way I can set this new array once the XMLhas arrived?--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ 雅虎1G免费邮箱百分百防垃圾信 雅虎助手-搜索、杀毒、防骚扰 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex2: Hierarchical DP with typed objects. Class must be dynamic?
You might want to look into using the ITreeDataDescriptor http://www.google.com/search?q=ITreeDataDescriptor -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo Bucchi Sent: Sunday, February 12, 2006 1:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2: Hierarchical DP with typed objects. Class must be dynamic? Hi all, I was feeding a tree with a structure of objects ( instances of a custom class, PersonVO ) which had a children array. The tree kept spitting out runtime errors until I modified my class to make it dynamic ( i figured that at some part of the process the tree classes were trying to stick some state variables to the nodes... open/closed flags or similar ). It works now. Is this a bug or an acknowledged restriction? Best, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] File - flexcodersFAQ.txt
Flexcoders Frequently Asked Questions Last Updated: 30th May 2005 Contributors: Matt Chotin, Steven Webster, Alistair McLeod, Tariq Ahmed, Jeff Tapper, Peter Farland, Abdul Qabiz, Tracy Spratt, Jesse Warden, Dan Harfleet, Manish Jethani, Dimitrios Gianninas 1. What is Flexcoders? 2. How does Flexcoders relate to the Macromedia Flex Forum on www.macromedia.com? 3. Who posts to Flexcoders? 4. Resources to check before asking a question 5. Guidelines for effective question-asking 6. FAQ 1. What is Flexcoders? Flexcoders is a forum where developers can ask questions about Flex, FlexBuilder, and Flex-related technologies (like Cairngorm, FlexUnit and SynergyFLEX). The community is made up of everyday Flex developers as well as Macromedia employees. However, this is not an official Macromedia-sponsored forum, it is actually moderated by the folks at iteration::two, a consultancy responsible for authoring the book Developing Rich Internet Applications with Macromedia Flex. 2. How does Flexcoders relate to the Macromedia Flex Forum on www.macromedia.com? Both the Macromedia Flex Forum and Flexcoders provide help on issues related to Flex, and neither is an official support mechanism. Some people monitor both forums, some only one. It is up to you to decide where you might have a better experience getting a question answered and being able to subsequently help others. 3. Who posts to Flexcoders? Everyone who has a question or an answer. Many members of the Flex development team read and respond to Flexcoders as well as other Macromedia folks who monitor the community. Some recurring Macromedia folks are: David Mendels: EVP and GM, highest-level executive in charge of Flex. Lucian Beebe: Sr. Product Manager, Flex. Matt Chotin, Manish Jethani, Abdul Qabiz, Gordon Smith, Peter Farland and many more: Engineers on Flex. Active community members include: Steven Webster (Technical Director at iteration::two and co-author of Developing Rich Clients with Macromedia Flex), Alistair McLeod (Development Director at iteration::two and co-author of Developing Rich Clients with Macromedia Flex), Jesse Warden (JesterXL - Flash badass playing with Flex), Tracy Spratt (long-time member, holder of all knowledge related to 32K limits), Jeff Steiner (maintainer of www.flexauthority.com), Tariq Ahmed (maintainer of www.cflex.net), Jimmy Gianninas (long-time member, developer at Optimal Payments). And so many more! 4. Resources to check before asking a question The Flexcoders Mail Archive (better searching than YahooGroups): http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.cflex.net/showfaq.cfm http://livedocs.macromedia.com/flex/15/asdocs_en/index.html http://www.macromedia.com/go/flex15_java_livedocs http://www.macromedia.com/cfusion/knowledgebase/index.cfm http://www.cflex.net http://www.flexauthority.com http://www.macromedia.com/devnet/flex http://coenraets.com http://weblogs.macromedia.com/mxna/ http://www.google.com The Book "Developing Rich Clients with Macromedia Flex" (check your favorite bookstore) 5. Guidelines to effective question-asking Include a useful subject; this will help people find their own questions and answers later. Explain what you are trying to accomplish. Explain the error (include compilation errors or a description of the runtime behavior). Be prepared to break your problem down into a simpler scenario in case someone wants to try to debug the code themselves. Remember, private web services are inaccessible; you may need to create some dummy data to emulate problems. Phrases to avoid: "URGENT" (we all have deadlines, no one is intentionally delaying a response to you) "Please send code" (this is very frustrating to read as it implies you aren't interested in learning anything on your own. Where code is appropriate you can expect someone to provide it, but in many cases you will learn more by doing it on your own with appropriate guidance. It may be that you're on a deadline and just want to finish, but many of those who respond regularly would prefer to "teach you to fish" so that you can answer your own questions next time and even help out others). 6. Mini-FAQ Q: Can I mail Matt, Manish, Abdul, Pete, Gordon, iteration::two, or anyone else for that matter off-line with my question? A: Please don't! If someone is capable of answering your question on- list please believe that it will be done. Everyone on the list has full-time jobs doing their own work and often answer flexcoders on their own time; mailing them off- list doesnt endear you to them. If no one answers on-list in a reasonable amount of time (24 hours) you can try to rephrase the question and perhaps include more detail (including a version of the problem that someone can run without doing any setup on their o
[flexcoders] Flex2: Hierarchical DP with typed objects. Class must be dynamic?
Hi all, I was feeding a tree with a structure of objects ( instances of a custom class, PersonVO ) which had a children array. The tree kept spitting out runtime errors until I modified my class to make it dynamic ( i figured that at some part of the process the tree classes were trying to stick some state variables to the nodes... open/closed flags or similar ). It works now. Is this a bug or an acknowledged restriction? Best, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Difference between WebService and Remote Object
what do you mean that removing the functions will solve it ? i don't see a difference other than the removed functions. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Thursday, February 09, 2006 16:16To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object The format of these classes should work for ya... at least they have for me in the past.class com.mercury.onyx.client.services.vo.UserVO extends com.mercury.onyx.client.services.vo.BasicUserVO { public static var regClass = Object.registerClass("com.mercury.onyx.client.services.vo.UserVO",com.mercury.onyx.client.services.vo.UserVO); public function UserVO(){} public var customerId : String; public var email : String; public var password : String; public var userPermissions : Array = new Array(); public var userRoles : Array = new Array(); public var userSettingsVO : com.mercury.onyx.client.services.vo.UserSettingsVO ; public var userViews : Array = new Array();}class com.mercury.onyx.client.services.vo.UserSettingsVO extends Object { public static var regClass = Object.registerClass("com.mercury.onyx.client.services.vo.UserSettingsVO ",com.mercury.onyx.client.services.vo.UserSettingsVO); public function UserSettingsVO(){} public var changesPageSize : Number; public var landingPage : String; public var userLocale : String; public var userTZ : String;} On 2/9/06, Shlomi Cohen <[EMAIL PROTECTED]> wrote: Hi i manage to find the problem to at least one of the cases that we had trouble with. 1. RO result that was sent right back to the server and failed - this problem was solved , it caused by a Public Static final variable in the Java class therefore Flex thought it is a different object. 2. RO result that was set as the dataProvider to a datagrid and then pulled out from the grid and sent back to server - i didn't managed to find the problem here . only creating the object from scratch - does the dataProvider changes the objects it gets ?? thanks Shlomi From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Shlomi CohenSent: Thursday, February 09, 2006 11:26To: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Difference between WebService and Remote Object I've already tried this and even Object Copy. I think you don't understand the problem ,the returned object is good , BUT when sending the same returned object to server i get convertion error. Attached are the two VOs that participate in this. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:50To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object I'm not sure that I understand the problem. Is there anyway you can post the value object definitions?The public static final member "may" be causing a problem.I noticed this line of code may also be the problem. var userVO:UserVO = event.result;try this insteadvar userVO:UserVO = UserVO(event.result);if(userVO == null) trace("Error: the cast failed"); On 2/8/06, Shlomi Cohen <[EMAIL PROTECTED]> wrote: How , i create the VO using Ant task (code generation) except for 1 public static final member - could that be the diff ? Shlomi From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Wednesday, February 08, 2006 20:07To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Difference between WebService and Remote Object More than likely the definitions for your java UserVO and your ActionScript UserVO are different. On 2/8/06, Shlomi Cohen <[EMAIL PROTECTED]> wrote: Hi while testing the performance of our application , i changed the way we work with the server from WS to RemoteObjects i found that there is a difference in the way data is being received / transmitted although we use the registerClass (as the POJO2AS does for you) . for example a method that was saving user info to DB did not work with RO - saying it could not convert ASObject to typed object. what is wrong here ? here is a short snapshot function sendRequest(){ service.getUser(111); } function getUser(event){ var userVO:UserVO = event.result; // we save with the save object we got. saveUser(userVO);
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Hi there, I also completely agree with you. If it's a fact of architecture why not let us (programmers) decide what to use (internal vs private) ?? All new features on AS3 and FES are really amazing, but I think two main things are being forgotten as has been said: abstract classes and private methods. It's really tricky and weird to use runtime exceptions to control what can be controlled at compile time. And despite patterns are language agnostic and can have different implementations on different languages they must be easy to identify on the code. Using hacks like the ones explained isn't easy to identify them. Implementing a template method using exceptions IMHO also looks really bad... Just my opinion X. On 2/12/06, Carlos Rovira <[EMAIL PROTECTED]> wrote: Thanks to god! I thought was completly alone in this topic! : )2006/2/12, Jens Halm < [EMAIL PROTECTED]>: > again from other people's coming to the Flash platform they look at > all this stuff as the typical flash hacks from old days. > I don't know why are you so reactive to introduce private > constructors that are very clear and precise to resolve this kind of > things and don't need any trick. > Another question is what's about Abstract classes that are again very needed. > Please rethink this two things so we could get a very flexible > languaje and bring more people form other backgrounds to our beloved > platform without think that we have a platform full of hacks. I have to second all those points. Ok, now we know Adobe had long discussions internally about this issue, but I still can't see any disadvantages in permitting non-public constructors which might have led to this decision. As it seems evident from this and other similar threads the proposed workarounds for singletons are ugly and confusing for most developers. As for abstract classes: Maybe they are not part of ECMA 4 yet? I tried to google it up, but somehow I am not able to find an up-to-date specification draft. (The newest one I was able to find is from 2003). In AS 3 abstract is a reserved keyword but it's not used yet. But again: If we don't get abstract classes we need non-public constructors to fake them. In AS 2 I combine private constructors with empty (pseudo-abstract) template methods to accomplish this. AS 3 is a huge step forward, but I still miss some pieces in the core language: - Private constructors - Abstract classes and methods - Enumerations! - Class.instantiate(args:Array) method Jens www.oregano-server.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Xavi Beumalahttp://www.code4net.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development be
[flexcoders] Datagrid to HTTPService - Pls help
Hi, Can anyone please advise on how to pass the contents of a datagrid as a HTTPService in flex 1.5. Thanks Venkat Find just what you're after with the new, more precise MSN Search - try it now! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.