Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
Well, given that we set up the javaflexcoders list and the phpflexcoders list and they get some traffic but not a lot, I don't know how actively we'll promote. As far as assigning moderators, I don't want to take that on. Set up the list, run it for a while, see if it takes. In the meantime, as I've said all along, I'm going to continue working with the team at Adobe as we try to move our forum infrastructure to a much better place. Long term I think having that system which can operate with multiple sections, multiple email addresses, nntp support, visibility into what's been answered and what hasn't, user ratings, etc is the right thing to do and I'd rather invest my energy towards that. I'm not going to do anything to prevent anyone from setting up whatever list they want. Folks do it all the time, there's a Flex list on houseoffusion and that attracts some CF folks. There is a Google list that still gets a few posts a month. Those Java and PHP lists that I mentioned, or the weborb stuff that you've mentioned. Our team was needed to get flexcoders off the ground, but I think we're far enough along that guaranteed Adobe presence is not a requirement for a successful list. Matt On 6/19/08 7:52 PM, Anatole Tartakovsky [EMAIL PROTECTED] wrote: I guess, the majority of the group tends to like the way things are now. That is hardly surprising given initial posting that most people who do not like the current solution would unsubscribe. It also came to the light that enterprise developers have some restrictions in selection of the client (email) software and problems with getting too many messages. It is also obvious ( by monitoring the messages for few month back) that the questions on enterprise topics are rarely followed and some design questions are answered on a different level then the original question. As a result, we see fewer of such messages lately. Potentially, enterprise part of Flex business might not be getting fare share of attention. So, here is the question - if we create separate list to see the need for enterprise list - would Adobe be willing to include links to it in the usual places/promote it/assign moderators? Sincerely, Anatole Tartakovsky Farata Systems On Thu, Jun 19, 2008 at 6:01 PM, dnk [EMAIL PROTECTED] wrote: On 19-Jun-08, at 2:03 PM, brucewhealton wrote: Maybe we need groups for different users at different experience levels. I think this list is so big that it is hard to find a response or thread, especially when one posts a question and wants to find out if someone responded. I have to look and look to see if I can find that thread anywhere, and it gets confusing when one sees so many similar, though different threads. I'd like a feature to show me threads that include messages where I've posted comments, questions, or etc. I tend to be one that prefers one list, and monitoring all things (I like to see what is out there and what else is going on with the tech on all levels). However with a little thought about this, the reality is this, if it stays as one, most are creating rules to manage or delete, etc. anyways. If we split, the same applies in some form or another. no one will ever be happy on all levels. So if the powers that be decide to split, go for it I will just subscribe to all the relevant ones I wish to monitor and organize how i want (probably all dumped into a flex folder as it is now). But it gives those who wish for more relevance more power to do so. Either way I can sort and have the exact same info in my inbox. It just gives those who want a more targeted inbox the ability to do so. My only suggestion is to not over split. Pick your 5-10 (or what ever the magic number seems to be) and go for it. It is all a matter or preference, but one way (to split to a point) seems to offer more flexibility. Not even $0.02.. but dnk
[flexcoders] Re: How can i include library path when using flex-mojos?
Ok, here is what i have done: Added the src/main/flex/locale/en_US to the project properties | source directory and it seems to work. Not sure if this is the right thing to do but it works. Thanks and comments are welcome. A. --- In flexcoders@yahoogroups.com, baztheman [EMAIL PROTECTED] wrote: I am kind of frustrated when using flex-mojos when I cannot find the exact syntax to match the mxmlc usage. I used mvn -Dfull help:describe -Dplugin=flex-compiler-mojo and couldnt find how I should include library path. Am i going into a wrong path? Here is the original command: OPTS='-use-network=false -library-path+=../../frameworks/locale/{locale} -source-path+=locale/{local e} -locale=en_US' ../../bin/mxmlc $OPTS PhotoViewer.mxml How should i implement this in flex-mojos? So far I have the following errors which I can resolve in flex builder by adding src/main/flex/locale/en_US into the flex build path... [ERROR] Unable to resolve resource bundle strings for locale en_US. [ERROR] Unable to resolve resource bundle strings for locale en_US. [ERROR] Unable to resolve resource bundle strings for locale en_US. [ERROR] Unable to resolve resource bundle strings for locale en_US. Thanks. A.
[flexcoders] Re: Cairngorm Event Question
Hey Barry, My comments, concerning Cairngorm from the beginning, is that there needed to be a more robust method of informing the view that a gesture head succeded or failed. Probably my ignorance, and I'm totally open to suggestion, but the UM extensions seeemed to solve the initial Cairngorm; that in my practice came to light. I welcome your sugestione for a more universal persprective. -TH --- In flexcoders@yahoogroups.com, barry.beattie [EMAIL PROTECTED] wrote: They certainly deserve consideration to be rolled into Cairngorm proper. hmmm, on listening to that podcast a while ago, I got the distinct impression that there was a - not a disagreement as such - but certainly a difference in viewpoint, especially for the reasons that UM went to the effort of developing it. I mean, Tom put forward a very articulate and persuasive case but should the extensions be part of the core or remain add-ins for people to decide for themselves?
[flexcoders] Re: Splitting FlexCoders in smaller, focused groups
I'll tell you honestly Anatole, I've been an enterprise developer for 25 years. From EDLIN to Flex, I've seen it; so please don't propose that you have some un-known insight to software development. This list, and the Macromedia based essence of theme for Flex that has been a huge success, doesn't care about you or me. I appreciate that you have been able to benefit from Flex's success; but I question the motive to try and tell Adobe how to run their business. If you like the product, cool. If you don't, step off. -TH --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: I guess, the majority of the group tends to like the way things are now. That is hardly surprising given initial posting that most people who do not like the current solution would unsubscribe. It also came to the light that enterprise developers have some restrictions in selection of the client (email) software and problems with getting too many messages. It is also obvious ( by monitoring the messages for few month back) that the questions on enterprise topics are rarely followed and some design questions are answered on a different level then the original question. As a result, we see fewer of such messages lately. Potentially, enterprise part of Flex business might not be getting fare share of attention. So, here is the question - if we create separate list to see the need for enterprise list - would Adobe be willing to include links to it in the usual places/promote it/assign moderators? Sincerely, Anatole Tartakovsky Farata Systems On Thu, Jun 19, 2008 at 6:01 PM, dnk [EMAIL PROTECTED] wrote: On 19-Jun-08, at 2:03 PM, brucewhealton wrote: Maybe we need groups for different users at different experience levels. I think this list is so big that it is hard to find a response or thread, especially when one posts a question and wants to find out if someone responded. I have to look and look to see if I can find that thread anywhere, and it gets confusing when one sees so many similar, though different threads. I'd like a feature to show me threads that include messages where I've posted comments, questions, or etc. I tend to be one that prefers one list, and monitoring all things (I like to see what is out there and what else is going on with the tech on all levels). However with a little thought about this, the reality is this, if it stays as one, most are creating rules to manage or delete, etc. anyways. If we split, the same applies in some form or another. no one will ever be happy on all levels. So if the powers that be decide to split, go for it I will just subscribe to all the relevant ones I wish to monitor and organize how i want (probably all dumped into a flex folder as it is now). But it gives those who wish for more relevance more power to do so. Either way I can sort and have the exact same info in my inbox. It just gives those who want a more targeted inbox the ability to do so. My only suggestion is to not over split. Pick your 5-10 (or what ever the magic number seems to be) and go for it. It is all a matter or preference, but one way (to split to a point) seems to offer more flexibility. Not even $0.02.. but dnk
[flexcoders] Re: Digital Camera Control in Flex?
Flash 10 will have access to local files :) We voted and we got it :) --- In flexcoders@yahoogroups.com, nathanpdaniel [EMAIL PROTECTED] wrote: You should check out the VideoDisplay component for starters. If you want to do that with a Flex based web app, look into Networking and Communication because you'll have to save the image from the camera, upload it to a server, then download it. Flash 9 doesn't have access to the local file system. But I hear Flash 10 will (not sure if that's true or not though). -Nate --- In flexcoders@yahoogroups.com, Dan Pride danielpride@ wrote: I would like to issue commands to a locally connected digital camera and retrieve the image file, rename it and store it locally. Any pointers on where to go to figure this out? Thanks Dan Pride
Re: [flexcoders] Re: Flex/AIR Mailing list?
2008/6/20 barry.beattie [EMAIL PROTECTED]: --- In flexcoders@yahoogroups.com, dnk [EMAIL PROTECTED] wrote: Appolocoders. with a typo like that Google may have trouble: Steve, this is what bnk meant http://tech.groups.yahoo.com/group/apollocoders/messages Splendid - cheer Barry/dnk. *slaps Anchal about for thread hijacking instead of creating a new message* Stephen
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
On Thursday 19 Jun 2008, Joseph Balderson wrote: (not that I'm in favour of splitting, I'm not) -- but if the lists have not yet been created, and existing messages stay in the archive, what's to break? We're talking about a branching, not a migration, right? When someone tries to sign up, it'll moan at them, because we'll have closed the list down and kicked all the members off. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Splitting FlexCoders in smaller, focused groups
On Thursday 19 Jun 2008, Joseph Balderson wrote: Again this is a mail client problem, not a list problem IMO. Exactly. I've had the exact same discussion on other lists (when moving to Google Groups, for instance). -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Cairngorm Event Question
First you have to understand the concept of Cairngorm and then UM extensions. Especially in light of what you're trying to achieve. Recoding your project in Cairngorm manner might be an issue depending on how far are you with it and how many developers are on it. It is very straightforward otherwise and I would most definitely recommend you to start using it. If you need some guidance on Cairngorm let us know, but the good starting point would be this: http://cairngormdocs.org/, read the six part article that you find there. The basic idea behind Caringorm is a simple MVC architecture where you make the view as dumb as possible, it just dispatches the events based on (user) actions. Alen On Fri, Jun 20, 2008 at 5:57 AM, donvoltz [EMAIL PROTECTED] wrote: Thanks for your responses. I agree with the idea that binding should work, I have set up 2 datagrids with the same data provider, the standard data grid works fine when the model locator is updated, however, the advanced one does not. Is it because I am using a grouping tag with the advanced data grid that the refresh() is needed or should this work with binding as well? Also, I have looked at the UM Cairngorm. It looks interesting but a little beyond me. Do you have any recommendations for getting more information on using this than what is supplied at google code?? I do not understand the idea of event hooks. Thanks again for the useful information Don
Re: [flexcoders] SummaryField summaryFunction question
On Wednesday 18 Jun 2008, Eric Cancil wrote: amount summary) the NaN is displayed in your summary row. To me this really doesn't make senseDoes anyone have ideas? Use a display/label function as well/instead ? I'd have to see some code though, as I've not used the ADG much. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] columns resize policy
On Wednesday 18 Jun 2008, Parkash wrote: Is it possible to have all the columns scale proportionally as windows are resized Give them a percent width. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Cairngorm Event Question
Tim, I don't use UM extensions and I'm totally able to notify my views just with Cairngorm. What I use usually is a model ( no matter what it is ) that I inject to my event , passes to the command and then on result/fault I update the same model. Since the model passes by reference, my view, which is listening (binding) to that model, can react to the 'notification'. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
Re: [flexcoders] Re: How can i include library path when using flex-mojos?
Library path is defined by you pom dependencies. In your case is missing some resource-bundle... You can see resource-bundle dependencies here: http://svn.sonatype.org/flexmojos/repository/info/rvin/mojo/flex-super-pom/1.0/flex-super-pom-1.0.pom VELO On Fri, Jun 20, 2008 at 4:20 AM, baztheman [EMAIL PROTECTED] wrote: Ok, here is what i have done: Added the src/main/flex/locale/en_US to the project properties | source directory and it seems to work. Not sure if this is the right thing to do but it works. Thanks and comments are welcome. A. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, baztheman [EMAIL PROTECTED] wrote: I am kind of frustrated when using flex-mojos when I cannot find the exact syntax to match the mxmlc usage. I used mvn -Dfull help:describe -Dplugin=flex-compiler-mojo and couldnt find how I should include library path. Am i going into a wrong path? Here is the original command: OPTS='-use-network=false -library-path+=../../frameworks/locale/{locale} -source-path+=locale/{local e} -locale=en_US' ../../bin/mxmlc $OPTS PhotoViewer.mxml How should i implement this in flex-mojos? So far I have the following errors which I can resolve in flex builder by adding src/main/flex/locale/en_US into the flex build path... [ERROR] Unable to resolve resource bundle strings for locale en_US. [ERROR] Unable to resolve resource bundle strings for locale en_US. [ERROR] Unable to resolve resource bundle strings for locale en_US. [ERROR] Unable to resolve resource bundle strings for locale en_US. Thanks. A.
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
I have to admit to not reading all the 132 messages so far written on this thread, but my 2p... On 20 Jun 2008, at 10:15, Tom Chiverton wrote: On Thursday 19 Jun 2008, Joseph Balderson wrote: Again this is a mail client problem, not a list problem IMO. Exactly. I've had the exact same discussion on other lists (when moving to Google Groups, for instance). Personally I feel this list would be a lot more reader-friendly if 'mailing list etiquette' was used more widely by contributors. In particular getting away from 'top posting' and unnecessary quoting would reduce traffic and time wasted by readers trying to find the new comment within the noise of repeated quotation. Some people are already doing this here and I'd argue their responses are much easier to follow. I also tend to find it a lot easier to read as plain text rather than as html text with all the extra Yahoo noise. The settings are easy to change in your Yahoo account. On 19 Jun 2008, at 09:40, Tom Chiverton wrote: On Wednesday 18 Jun 2008, enjoy_jake wrote: Maybe a mailing list like this isn't the best choice. Maybe it's time to abandon flexcoders in favor of a more customized solution for solving our problems. This is not a good plan. Web based forums ... are simply not as easy to use as a mailing list. Mailing lists work... +1. I too find Web based forums a complete pain to use. Mailing list although basic, does a much better job. -- Paul creative-cognition Ltd http://www.creative-cognition.co.uk/ http:/blog.creacog
Re: [flexcoders] How can i connect two Boxes on apanel controls with a Line
On Wednesday 18 Jun 2008, Baljeet singh wrote: beginFill(x1, y1) moveTo(x1, y1) lineTo(x2, y2); endFill(x2, y2); Maybe your drawing surface isn't visable, or you've clear()'ed it. We'd need some of the surrounding code to be sure. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: string to actual actionscript code?
tnx for the answers :) i guess i will use the [], as i just need it in AS3, and normally i dont try to run code with eval(), just create/acess objects thnx a lot :) - Mensaje original De: Joseph Balderson [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com Enviado: jueves, 19 de junio, 2008 22:22:32 Asunto: Re: [flexcoders] Re: string to actual actionscript code? The array accessor [] does not quite duplicate what eval() used to. From my recollection you could actually run code with eval, which of course is impossible to do with []. I know there's a way to do code injection in AS3, but I don't remember the tecnique offhand. The interesting thing about [] of course is that AS3 can do two-dimensional arrays, and you can chain two array accessors together to make both the object and its property dynamic, like so: this.someInstance. someProperty == this[myObject ][daProp ] Which makes things very interesting. Of course this only works if the property exists or the class is dynamic. A for loop and the [] syntax is much lower level and much more efficient than a repeater, but of course a repeater is bindable and has other useful stuff. _ _ _ _ _ _ Joseph Balderson, Developer | http://joeflash. ca | 705-466-6345 Josh McDonald wrote: No worries, the equivalent of eval(movie_ number_ + idNumber); would be: this[movie_ number_ + idNumber]; To explain, in actionscript 3 (and in Javascript), these two references are equivalent: this.someField = true; this[someField ] = true; trace(the value is + anObject.button7) ; trace(the value is + anObject[button7 ]); Notice the fact that it's a string. You can also use numbers (this is how arrays work), and other objects, but with objects the runtime simply calls .toString() and then goes ahead with the string, IIRC. -Josh On Thu, Jun 19, 2008 at 9:20 PM, David Pariente xxmapachexx@ yahoo.es mailto:xxmapachexx@ yahoo.es wrote: Thnx for the psicological help :) Tecnically i come from AS1 and AS2 where i used to create multiple copies of movieclips, and created with a name as: eval(movie_ number_+ idnumber) ; maybe i should need an easy example of how to create multiple objects dinamically, and most important, how to access them later. Thnx, u guys are kind ;) - Mensaje original De: Josh McDonald [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] com Para: [EMAIL PROTECTED] ups.com mailto:[EMAIL PROTECTED] ups.com Enviado: martes, 17 de junio, 2008 0:50:17 Asunto: Re: [flexcoders] Re: string to actual actionscript code? Gordon, I can live without eval() and associated evilness, but I'd sell my left testicle for the ability to mark a Proxy as extending or implementing various classes or interfaces. Mario - As for this sort of pseudo-eval that theyou're after, you could definitely cook up something similar to that without *too much* work, but I don't think it's the correct solution to whatever the actual root problem is. We need more information as to context to be more help :) -Josh On Tue, Jun 17, 2008 at 4:27 AM, Gordon Smith [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] com wrote: Why are you lost without eval()? What would you use it to do? Many developers think they need it when they really don't; there are often other ways to accomplish what they're trying to do. Gordon Smith Adobe Flex SDK Team - - - - - - *From:* [EMAIL PROTECTED] ups.com mailto:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogro ups.com mailto:[EMAIL PROTECTED] ups.com] *On Behalf Of *David Pariente *Sent:* Monday, June 16, 2008 7:35 AM *To:* [EMAIL PROTECTED] ups.com mailto:[EMAIL PROTECTED] ups.com *Subject:* Re: [flexcoders] Re: string to actual actionscript code? They answer u about eval() cause that was what eval() was for. I used it so often in AS1 and AS2. Lost now in AS3 without it :( - Mensaje original De: mariovandeneynde mariovandeneynde@ yahoo.com mailto:mariovandeneynde@ yahoo.com Para: [EMAIL PROTECTED] ups.com mailto:[EMAIL PROTECTED] ups.com Enviado: lunes, 16 de junio, 2008 12:08:26 Asunto: [flexcoders] Re: string to actual actionscript code? No, I'm just wondering if there is a way to convert a string to actual actionscriptcode. .. --- In [EMAIL PROTECTED] ups.com mailto:flexcoders% 40yahoogroups. com, Michael Schmalle teoti.graphix@ ... wrote: Hi, There is no eval() in actionscript if that is what you are
Re: [flexcoders] Re: string to actual actionscript code?
thnx actually i think i won't miss using eval() anymore, cause i'm more than used to use Arrays :) - Mensaje original De: Gordon Smith [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com Enviado: viernes, 20 de junio, 2008 6:37:21 Asunto: RE: [flexcoders] Re: string to actual actionscript code? You can't use code like this[movie_ number_ + idNumber]; unless you've pre-declared vars (or getter/setters) named movie_number0, movieNumber1, movieNumber2, etc. -- which doesn't make any sense because you usually don't know how many you'll need -- or made your class dynamic -- which isn't recommended because dynamic vars are slower. Otherwise, you'll get a runtime error that, for example, movie_number3 isn't a valid property on your class. (I don't remember the exact wording of the error message.) So forget about that. You need to understand how to use an Array to keep track of multiple instances. It's easy: 1. Declare an instance var of type Array and initialize it to an empty Array: public var textBoxes:Array = []; 2. Every time to create a new TextBox, push it into the Array. For example, inside some method, do var textBox:TextBox = new TextBox(); textBox.foo = bar; addChild(textBox) ; textBoxes.push( textBox); 3. In any other method, you can refer to textBox[i] to get the ith one you created. Gordon Smith From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of David Pariente Sent: Thursday, June 19, 2008 7:18 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Re: string to actual actionscript code? Wow, that answer will really help me! :) What if it's not movies, but some other object that i wanna create 20 times? I thought it should get inside some kind of Array, but not sure if its this way too. i.e. var MyTextBox:TextBox= new textBox(); what if i need N instances of that MyTextBox? Should i create an Array before that? What's the right way to put those textBoxes into the Array? I'm sorry for the basic of my question but im quite new to AS3 and OOP, and i did use and misuse of evals a lot in AS1 and AS2. Thanx a lot for the help :) - Mensaje original De: Josh McDonald [EMAIL PROTECTED] com Para : [EMAIL PROTECTED] ups.com Enviado: jueves, 19 de junio, 2008 14:16:50 Asunto: Re: [flexcoders] Re: string to actual actionscript code? No worries, the equivalent of eval(movie_ number_ + idNumber); would be: this[movie_ number_ + idNumber]; To explain, in actionscript 3 (and in Javascript), these two references are equivalent: this.someField = true; this[someField ] = true; trace(the value is + anObject.button7) ; trace(the value is + anObject[button7 ]); Notice the fact that it's a string. You can also use numbers (this is how arrays work), and other objects, but with objects the runtime simply calls .toString() and then goes ahead with the string, IIRC. -Josh On Thu, Jun 19, 2008 at 9:20 PM, David Pariente xxmapachexx@ yahoo.es wrote: Thnx for the psicological help :) Tecnically i come from AS1 and AS2 where i used to create multiple copies of movieclips, and created with a name as: eval(movie_ number_+ idnumber) ; maybe i should need an easy example of how to create multiple objects dinamically, and most important, how to access them later. Thnx, u guys are kind ;) - Mensaje original De: Josh McDonald [EMAIL PROTECTED] com Para : [EMAIL PROTECTED] ups.com Enviado: martes, 17 de junio, 2008 0:50:17 Asunto: Re: [flexcoders] Re: string to actual actionscript code? Gordon, I can live without eval() and associated evilness, but I'd sell my left testicle for the ability to mark a Proxy as extending or implementing various classes or interfaces. Mario - As for this sort of pseudo-eval that theyou're after, you could definitely cook up something similar to that without *too much* work, but I don't think it's the correct solution to whatever the actual root problem is. We need more information as to context to be more help :) -Josh On Tue, Jun 17, 2008 at 4:27 AM, Gordon Smith [EMAIL PROTECTED] com wrote: Why are you lost without eval()? What would you use it to do? Many developers think they need it when they really don't; there are often other ways to accomplish what they're trying to do. Gordon Smith Adobe Flex SDK Team From:[EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of David Pariente Sent: Monday, June 16, 2008 7:35 AM To:[EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Re: string to actual actionscript code? They answer u about eval() cause that was what eval() was for. I used it so often in AS1 and AS2. Lost now in AS3 without it :( - Mensaje original De: mariovandeneynde mariovandeneynde@ yahoo.com Para : [EMAIL PROTECTED] ups.com Enviado: lunes, 16 de junio, 2008 12:08:26 Asunto: [flexcoders] Re: string to actual actionscript code? No, I'm just wondering if there is a
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
if u finally decide to do something about this, do it in a new thread, cause im sotopping reading this one / deleting it as fast as i see it :) i dont wanna miss an important decision about it, just have no time to follow the discussion ;) - Mensaje original De: Paul Evans [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com Enviado: viernes, 20 de junio, 2008 13:50:08 Asunto: Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups I have to admit to not reading all the 132 messages so far written on this thread, but my 2p... On 20 Jun 2008, at 10:15, Tom Chiverton wrote: On Thursday 19 Jun 2008, Joseph Balderson wrote: Again this is a mail client problem, not a list problem IMO. Exactly. I've had the exact same discussion on other lists (when moving to Google Groups, for instance). Personally I feel this list would be a lot more reader-friendly if 'mailing list etiquette' was used more widely by contributors. In particular getting away from 'top posting' and unnecessary quoting would reduce traffic and time wasted by readers trying to find the new comment within the noise of repeated quotation. Some people are already doing this here and I'd argue their responses are much easier to follow. I also tend to find it a lot easier to read as plain text rather than as html text with all the extra Yahoo noise. The settings are easy to change in your Yahoo account. On 19 Jun 2008, at 09:40, Tom Chiverton wrote: On Wednesday 18 Jun 2008, enjoy_jake wrote: Maybe a mailing list like this isn't the best choice. Maybe it's time to abandon flexcoders in favor of a more customized solution for solving our problems. This is not a good plan. Web based forums ... are simply not as easy to use as a mailing list. Mailing lists work... +1. I too find Web based forums a complete pain to use. Mailing list although basic, does a much better job. -- Paul creative-cognition Ltd http://www.creative -cognition. co.uk/ http:/blog.creacog __ Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
[flexcoders] A great feature for Flex Builder would be getter and setter automation.
I use eclipse for Java development and there is a great feature where you highlight your class variables, right click and select 'generate getters and setters'. What a time saver. Is there any plugins for Flex Builder that will do this? It is getting annoying to type in the same basic plumbing for every class. If there isn't then maybe we have a community project ;-)
[flexcoders] Re: string to actual actionscript code?
You could not run code with eval(), for sure in AS2. I can't say for sure in AS1, as I never used that. If I understand correctly, the only way to let flash run code dynamically is through loading a SWF , the path of which could be dynamic like based on day or user input ? regards Devdatta --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Thursday, June 19, 2008 7:58 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: string to actual actionscript code? I'm fairly certain that while you could run code with eval() it wouldn't have any side effects. It was some sort of temporary scope that was thrown out after execution or something, or you could only get side effects by calling a function. But, last time I wrote AS2 code, it was on Flash MX so my memory is hazy ;-) While I'm also from a graphic design background, I'm a pretty experienced Java etc programmer so I came to Flex from that perspective. I might not always be the best person to understand your point of view when you're asking questions, but I'm willing to give it a shot :) Also when you're asking a question like the original, we're better able to help if you provide some context as to what you're trying to achieve, as well as the technical quesion you're asking. What I mean is, the technical question is how do I emulate eval('movie_' + number), but the context is I'm trying to create a scrollable list of 6 text boxes. That way we know whether answering your question is enough, or if we should give you a nudge to a more flex-like solution, such as here's how you do that, but you probably want a List component -Josh On Fri, Jun 20, 2008 at 6:22 AM, Joseph Balderson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The array accessor [] does not quite duplicate what eval() used to. From my recollection you could actually run code with eval, which of course is impossible to do with []. I know there's a way to do code injection in AS3, but I don't remember the tecnique offhand. The interesting thing about [] of course is that AS3 can do two-dimensional arrays, and you can chain two array accessors together to make both the object and its property dynamic, like so: this.someInstance.someProperty == this[myObject][daProp] Which makes things very interesting. Of course this only works if the property exists or the class is dynamic. A for loop and the [] syntax is much lower level and much more efficient than a repeater, but of course a repeater is bindable and has other useful stuff. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[flexcoders] Calling outside functions from SWF loaded by display.oader
Hi I am including a file , Inner.swf into my main Viewer.swf (which is loaded by the browser) using URLRequest and display.loader (etc. etc.). If I define functions in Viewer.swf is there any way Inner.swf can call them? I want to design a set of functions that I want inner.swf to use but I don't want to keep including them everytime I compile inner.swf. Can I make inner.swf call those functions ? Cos at compile time inner.swf doesn't know about these functions and where they are. Regards Devdatta For e.g : code in viewer.swf is : loader=new Loader(); loader.load(new URLRequest(some.swf)); addChild(loader); how do I make same.swf use functions defined in viewer.swf ?
[flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
Hi guys, I've just downloaded the latest Flex 3 SDK here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 Has anyone got any idea how to create the 'framework_3.0.2.2113.swz' or can I only cache major releases of the framework? i.e I've only ever got it to work with 'framework_3.0.0.477.swz'. any help would be brill, thanks paddy ;)
RE: [flexcoders] Re: How to rotate a Combo Box
You could also set the fontWeight to 'normal' for components if u don't want to embed whole new font family: i.e ComboBox { fontFamily: myArial; fontSize: 20; fontWeight: normal; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: 20 June 2008 05:34 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to rotate a Combo Box Now that's what I call a gotcha :) Ladies and gentlemen, this is why we can't fork the list without Adobe's blessing! -Josh On Fri, Jun 20, 2008 at 2:29 PM, Alex Harui [EMAIL PROTECTED] wrote: Combobox (and Button and a few others) use bold fontWeight. You have to embed the bold version of the font as well. I believe it looks something like: @font-face{ src: url(assets/ARIALBD.TTF); /* copy from Windows/fonts/ folder */ fontFamily: myArial; fontWeight: bold; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wyattwang Sent: Thursday, June 19, 2008 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to rotate a Combo Box Thanks. Here's the test app: ?xml version=1.0? !-- charts/BubbleRelativeSize.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Style @font-face{ src: url(assets/ARIAL.TTF); /* copy from Windows/fonts/ folder */ fontFamily: myArial; } ComboBox { fontFamily: myArial; fontSize: 20; } /mx:Style mx:Script ![CDATA[ import mx.effects.Rotate; import mx.controls.ComboBox; import mx.collections.ArrayCollection; import mx.controls.Image; import flash.geom.Matrix; import flash.geom.Point; [Bindable] private var s1:ArrayCollection = new ArrayCollection( [ {x: 20, y: 10, r:10 }, {x: 40, y: 5, r:20 } , {x: 60, y: 0, r:30 }]); [Embed(assets/arial.ttf, fontName=MyArial)] public var myarial_font:Class; private function rotate():void { cb.rotation = 270; textinput.rotation = 270; } private function back():void { cb.rotation = 0; textinput.rotation = 0; } ]] /mx:Script mx:Button label=rotate click=rotate()/ mx:Button label=back click=back() x=104/ mx:ComboBox id=cb dataProvider={s1} labelField=x textAlign=center width=131 x=198 y=169 height=33/ mx:TextInput x=446 y=178.95 id=textinput text=This is a text fontFamily=myArial width=127/ /mx:Application --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The internal TextInput doesn't rotate? Post a test case. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Invitation to join the Flex Developers Group on LinkedIn
Joining will allow you to find and contact other Flex Developers members on LinkedIn. The goal of this group is to help members: Reach other members of Flex Developers Accelerate careers through referrals from Flex Developers Group members Know more than a name view rich professional profiles from fellow Flex Developers Group members Here's the link to join: http://www.linkedin.com/e/gis/126002/6E865D4BF0C6
Re: [flexcoders] Re: string to actual actionscript code?
Wow .. how did they manage to make the D.eval function? Any adobe people out there who care to comment?! Regards Devdatta 2008/6/19 Joseph Balderson [EMAIL PROTECTED]: And I stand corrected, you cannot use eval to evaluate an expression, or use it on the left side of an equation as of Flash 5: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16187sliceId=2 http://www.senocular.com/flash/tutorials/faq/#varreference BUT... looking through my bookmark archives, there is the D.eval class in AS3, which does allow you to use full evel functionality in AS3: http://www.riaone.com/products/deval/docs/user-guide/ug.html ...Which Andrew Trice used to good effect in his Drawing API Explorer: http://www.insideria.com/2008/03/try-out-the-drawing-api-withou.html :) __ Joseph Balderson, Developer | http://joeflash.ca | 705-466-6345 Josh McDonald wrote: You could evaluate any single expression though, right? Like eval(4 / 2) == 2. That worked? Maybe it's been longer than I thought :) -Josh On Fri, Jun 20, 2008 at 10:26 AM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You could not run code with eval(), for sure in AS2. I can't say for sure in AS1, as I never used that. Tracy -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
On Friday 20 Jun 2008, David Pariente wrote: if u finally decide to do something about this, do it in a new thread, cause im sotopping reading this one / deleting it as fast as i see it :) shrug If people want to create more 'focused' groups, go right ahead. No one will stop you. In the mean time, it looks like we will get some improvements to the way this list works, which is progress enough to me. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] internationalization @ switching runtime
forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
[flexcoders] focus out of the flash player
I have a requirement to dismiss a dialog if the flash player loses focus (e.g. someone clicks outside of the player). I'm using the Flex 2.0.01 SDK (hotfix 3) with IE 7 and Flash Player 9. I've registered a FOCUS_OUT event handler on the stage. That seems to work, but I've run into a case where the event is ambiguous. I've been keying off of if (event.relatedObject == null) //then assume the player's lost focus. The problem is that if my dialog contains a DropDown and the DropDown is opened, then I'm getting an event that also has a null value for relatedObject. I don't want to close the dialog if someone opens a DropDown :-) I've also tried focus-out handlers on the root and the dialog window objects (my dialog is subsclass of TitleWindow), but they have a similar result. Any suggestions? Is there another sort of event that will tell me when the Player has lost focus to the browser or another app? Thanks, Glenn
Re: [flexcoders] Re: Digital Camera Control in Flex?
On Friday 20 Jun 2008, Cato Paus wrote: Flash 10 will have access to local files :) We voted and we got it :) This is only via a file browse dialogue the user must interact with, iirc. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Verifyed RSL Digests for 3.0.2.2113 for framework caching
AFIK, swf are created by adobe, and by Adobe only... What you can do is create optimized SWF. Doesn't cache, but are smaller then standard swc files. VELO On Fri, Jun 20, 2008 at 6:13 AM, Paddy Keane [EMAIL PROTECTED] wrote: Hi guys, I've just downloaded the latest Flex 3 SDK here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 Has anyone got any idea how to create the 'framework_3.0.2.2113.swz' or can I only cache major releases of the framework? i.e I've only ever got it to work with 'framework_3.0.0.477.swz'. any help would be brill, thanks paddy ;)
[flexcoders] How to filter HierarchicalCollectionView????
Hi All, How to filter HierarchicalCollectionView in order to display parent branches with children matching the pattern, and filter out parent branches without children matching the pattern ? any help would be appreciated .. Thanks, Chandra
[flexcoders] Re: Passing Values between windows
It may not be best practice but create a public variable in your main (WindowedApplication) file and then access it with Application.application.myPublicVariable. This can be a custom object if you need to have more data. --- In flexcoders@yahoogroups.com, bredwards358 [EMAIL PROTECTED] wrote: In the application I'm currently developing, end users need to log in to utilize it. Also I need to keep track of who is logged in so that I can input that into a local database after certain actions. I've tried using a public variable in a commonly used class, however since an instance of that class is newly declared when a new window opens up the value is set back to null, making it unusable. I've heard of using an actionscript file inside a package used by the App containing the variables but since the examples I've seen have them as static and const variables and thus can't be changed from their default values. So my question is this, is it possible in AIR to pass the value of a variable from the native application window to another window component? To help clear things up, essentially the user logs in and the username is set as the value of a variable declared someplace, then in another window, an action takes place, info is recorded in the database and the app looks up the username in the variable, and records it along with the other stuff in the db.
RE: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
Thanks Velo, Does anyone know how adobe implements releases for .swz files? i.e are they only available for major releases or is it just that adobe haven't got around to releasing a new one for 3.0.2.2113? Ta paddy ;) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marvin Froeder Sent: 20 June 2008 14:40 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching AFIK, swf are created by adobe, and by Adobe only... What you can do is create optimized SWF. Doesn't cache, but are smaller then standard swc files. VELO On Fri, Jun 20, 2008 at 6:13 AM, Paddy Keane [EMAIL PROTECTED] wrote: Hi guys, I've just downloaded the latest Flex 3 SDK here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 Has anyone got any idea how to create the 'framework_3.0.2.2113.swz' or can I only cache major releases of the framework? i.e I've only ever got it to work with 'framework_3.0.0.477.swz'. any help would be brill, thanks paddy ;)
RE: [flexcoders] A great feature for Flex Builder would be getter and setter automation.
I believe this is already on the list of most requested features for Flex Builder 4. In the meantime, you can use snippets to make your life a little easier. http://www.insideria.com/2008/04/flex-builder-enhancements-snippets-and- todo.html (Sample snippets code for this) private var _${PROP_NAME}; [Bindable] public function set ${PROP_NAME}( ${PROP_NAME} : ${PROP_TYPE} ) : void { _${PROP_NAME} = ${PROP_NAME}; } public function get ${PROP_NAME}() : ${PROP_TYPE} { return _${PROP_NAME}; } () Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of adrianpomilio Sent: 20 June 2008 02:26 To: flexcoders@yahoogroups.com Subject: [flexcoders] A great feature for Flex Builder would be getter and setter automation. I use eclipse for Java development and there is a great feature where you highlight your class variables, right click and select 'generate getters and setters'. What a time saver. Is there any plugins for Flex Builder that will do this? It is getting annoying to type in the same basic plumbing for every class.
RES: [flexcoders] Calling outside functions from SWF loaded by display.oader
Hi, why your module will need to call those outside functions? Is that a non other way option? If you really need that way, i'ld go for event dispatching and catching them on the parent. loader = new Loader(); loader.load(new URLRequest(some.swf)); loader.addEventListener(CustomEvent.DATA_DISPATCH, dataDispatchHandler); loader.addEventListener(CustomEvent.DATA_ERROR, dataErrorHandler); ... De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de dev.bits Enviada em: quinta-feira, 19 de junho de 2008 21:53 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Calling outside functions from SWF loaded by display.oader Hi I am including a file , Inner.swf into my main Viewer.swf (which is loaded by the browser) using URLRequest and display.loader (etc. etc.). If I define functions in Viewer.swf is there any way Inner.swf can call them? I want to design a set of functions that I want inner.swf to use but I don't want to keep including them everytime I compile inner.swf. Can I make inner.swf call those functions ? Cos at compile time inner.swf doesn't know about these functions and where they are. Regards Devdatta For e.g : code in viewer.swf is : loader=new Loader(); loader.load(new URLRequest(some.swf)); addChild(loader); how do I make same.swf use functions defined in viewer.swf ?
[flexcoders] Re: A great feature for Flex Builder would be getter and setter automation.
Please remember that if all you need is default behavior as the script you provided does, that is implicitly provided by creating your var public in AS3. Yes, it feels funny having a public member variable coming from Java since it is bad to expose your objects state. But, if you need to intercept the set or get then you can provide the get and/or set method and your other code need not change. You only need getters and setters in Java from the start because there is not implicit mechanism for them. Having getters and setters that are unnecessary and do nothing special just bloats your code. So for that, I see getter and setter generation for Flex/AS3 as unnecessary. One last thing that will surely make eyes roll but...you should be careful when arbitrarily generating getters and setters without considering if that is what you REALLY should do. In the Java world, we too often simply create some fields, generate getters and setters, use the default constructor only. We then use the class like a C-style struct with essentially public fields anyway. Keep your mind engaged when developing classes. If you are generating lots of code that you never refactor to something more pertinent to your domain, you have a very 'dead' model. - Todd --- In flexcoders@yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: I believe this is already on the list of most requested features for Flex Builder 4. In the meantime, you can use snippets to make your life a little easier. http://www.insideria.com/2008/04/flex-builder-enhancements-snippets-and- todo.html (Sample snippets code for this) private var _${PROP_NAME}; [Bindable] public function set ${PROP_NAME}( ${PROP_NAME} : ${PROP_TYPE} ) : void { _${PROP_NAME} = ${PROP_NAME}; } public function get ${PROP_NAME}() : ${PROP_TYPE} { return _${PROP_NAME}; } () Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of adrianpomilio Sent: 20 June 2008 02:26 To: flexcoders@yahoogroups.com Subject: [flexcoders] A great feature for Flex Builder would be getter and setter automation. I use eclipse for Java development and there is a great feature where you highlight your class variables, right click and select 'generate getters and setters'. What a time saver. Is there any plugins for Flex Builder that will do this? It is getting annoying to type in the same basic plumbing for every class.
RE: [flexcoders] Re: A great feature for Flex Builder would be getter and setter automation.
You're getting into religious war territory there my friend! One that's been doing the blogs recently too... The OP wanted a way of generating getters / setters automatically... If we are running a master class here... I would suggest that you only ever generate getters for your model, and encapsulate the behaviour of the model in functions that relate to your use cases. Using public variables in the place of getters and setters reduces the level of thought required to code, but not necessarily in a good way as it then becomes much easier to break encapsulation. But as I said, religious war territory (and didn't we go through this recently on this list?) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of twcrone70 Sent: 20 June 2008 15:34 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: A great feature for Flex Builder would be getter and setter automation. Please remember that if all you need is default behavior as the script you provided does, that is implicitly provided by creating your var public in AS3. Yes, it feels funny having a public member variable coming from Java since it is bad to expose your objects state. But, if you need to intercept the set or get then you can provide the get and/or set method and your other code need not change. You only need getters and setters in Java from the start because there is not implicit mechanism for them. Having getters and setters that are unnecessary and do nothing special just bloats your code. So for that, I see getter and setter generation for Flex/AS3 as unnecessary. One last thing that will surely make eyes roll but...you should be careful when arbitrarily generating getters and setters without considering if that is what you REALLY should do. In the Java world, we too often simply create some fields, generate getters and setters, use the default constructor only. We then use the class like a C-style struct with essentially public fields anyway. Keep your mind engaged when developing classes. If you are generating lots of code that you never refactor to something more pertinent to your domain, you have a very 'dead' model. - Todd
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
Thank you for the honesty, Tim. This list, and the Macromedia based essence of theme for Flex that has been a huge success, doesn't care about [enterprise developers like]you or me I wonder how you got that impression. Are there many people that feel that way? Flex has enterprise side to it and is promoted as enterprise grade tool. I do believe that Adobe targets that market as there are millions of java developers that are looking for new technologies to move into - with a majority of them in enterprise field. How they perceive the product and support does affect you and me in (hopefully) long run. Anyway, enterpriseflex group is created, anyone is welcome to join. I will post formal invitation with list of the topics it will cover as soon as all facets are ready and tested Thank you, Anatole Tartakovsky Thank you On Fri, Jun 20, 2008 at 3:40 AM, Tim Hoff [EMAIL PROTECTED] wrote: I'll tell you honestly Anatole, I've been an enterprise developer for 25 years. From EDLIN to Flex, I've seen it; so please don't propose that you have some un-known insight to software development. This list, and the Macromedia based essence of theme for Flex that has been a huge success, doesn't care about you or me. I appreciate that you have been able to benefit from Flex's success; but I question the motive to try and tell Adobe how to run their business. If you like the product, cool. If you don't, step off. -TH --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: I guess, the majority of the group tends to like the way things are now. That is hardly surprising given initial posting that most people who do not like the current solution would unsubscribe. It also came to the light that enterprise developers have some restrictions in selection of the client (email) software and problems with getting too many messages. It is also obvious ( by monitoring the messages for few month back) that the questions on enterprise topics are rarely followed and some design questions are answered on a different level then the original question. As a result, we see fewer of such messages lately. Potentially, enterprise part of Flex business might not be getting fare share of attention. So, here is the question - if we create separate list to see the need for enterprise list - would Adobe be willing to include links to it in the usual places/promote it/assign moderators? Sincerely, Anatole Tartakovsky Farata Systems On Thu, Jun 19, 2008 at 6:01 PM, dnk [EMAIL PROTECTED] wrote: On 19-Jun-08, at 2:03 PM, brucewhealton wrote: Maybe we need groups for different users at different experience levels. I think this list is so big that it is hard to find a response or thread, especially when one posts a question and wants to find out if someone responded. I have to look and look to see if I can find that thread anywhere, and it gets confusing when one sees so many similar, though different threads. I'd like a feature to show me threads that include messages where I've posted comments, questions, or etc. I tend to be one that prefers one list, and monitoring all things (I like to see what is out there and what else is going on with the tech on all levels). However with a little thought about this, the reality is this, if it stays as one, most are creating rules to manage or delete, etc. anyways. If we split, the same applies in some form or another. no one will ever be happy on all levels. So if the powers that be decide to split, go for it I will just subscribe to all the relevant ones I wish to monitor and organize how i want (probably all dumped into a flex folder as it is now). But it gives those who wish for more relevance more power to do so. Either way I can sort and have the exact same info in my inbox. It just gives those who want a more targeted inbox the ability to do so. My only suggestion is to not over split. Pick your 5-10 (or what ever the magic number seems to be) and go for it. It is all a matter or preference, but one way (to split to a point) seems to offer more flexibility. Not even $0.02.. but dnk
[flexcoders] Return data to FileReference
Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
[flexcoders] SWF does not work in IE, but does in FF??????
This is actually happening more than and more to use. Our application when running from FireFox works great. But when we run it in IE it doesn't. First time it happened FF ran great, but IE would give a null pointer on something that in no way could be null as one line new'd it, the next line set a variable on it. Weird thing here is that I commented out those two lines of code, worked in both FF and IE. Uncommented the lines again and then it worked in both. grrr Next time we had a DataGrid with width=100%. FF had it expand the full 100%, IE did not. This next one we had a VBox. FF displayed it fine, IE didn't display it at all. Now what we have found is that when we create a release build everything works in both FF and IE when deployed to a server. We have tried clean builds. Even deleted the bin-debug folder and did a clean build. Removed both FF and IE browser cache including cookies. So it seems this has something to do with FlexBuilder. We have some developers using FlexBuilder and some using Eclipse + FB plugin. Once this happens and everything committed to SubVersion, then it happens on all developers boxes. Anyone else ever experience this? Anyone have any suggestions? Thanks, Dale
Re: [flexcoders] looking for documentation on FB3 .actionScriptProperties file
On Thursday 19 Jun 2008, icodeflex wrote: .actionScriptProperties file for FB3. I am specifically interested in I am not aware of any - it's an internal detail. more info on the libraryPath, libraryPathEntry, and compiler properties. The plain compiler docs on livedocs (or 'mxmlc -help') should be fairly good. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] A great feature for Flex Builder would be getter and setter automation.
On Friday 20 Jun 2008, adrianpomilio wrote: I use eclipse for Java development and there is a great feature where you highlight your class variables, right click and select 'generate getters and setters'. What a time saver. Yup. It's standard fare in the J2EE IDE world too. Along with 'make (this public var) private with public getter and/or setter' etc. Is there any plugins for Flex Builder that will do this? Nope, not seen any, you could vote for/create a bug in Jira though. If there isn't then maybe we have a community project ;-) The trouble is, and this is also true of ColdFusion developers using Eclipse, that there is a fairly small cross over of skill between those who can write Java and those who use Java-based tools. In CF land, the recent backing from RedHat/JBoss and launching of two (!) open source Java CFML engines may help attract Java developers who can, but in Flex land I don't see that happening. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Re: Cairngorm Event Question
Josh, (also coming from a non-Cairngorm guy) I find it helpful to distinguish between presentation models and data models, and that's a way that status flags etc. need not be regarded as pollution. Just put them in a separate object. There's no rule that says views can only have a reference to one non-local object. Just like the data model, the presentation model(s) may or may not actually be shared by more than one view. A reference can be passed along with events and used by the controller. Having said that, I don't disagree that there may be a place for a more generic way for the controller to notify the view. I believe PureMVC has some sore of Notifier. - RIchard On Thu, Jun 19, 2008 at 5:37 PM, Josh McDonald [EMAIL PROTECTED] wrote: Disclaimer: I don't use Cairngorm or UM, so I might be wrong! But I do take a keen interest in all that is Flex :) Basically, in Cairngorm, from your View, you dispatch an event telling your command to do some stuff, and then you wait for the model to change before the view knows to take some action (like say mark the data as saved on-screen, or close a dialog, etc). Which eventually leads to your model being polluted with things like status flags, feedback, and other sneaky things that are really just a back-door direct coupling between command and view that shouldn't really be in your model. When you build a UMEvent, before you dispatch it you say something like myEvent.successCallback = this.thingsWereDoneHandler; myEvent.failCallback = this.somethingWentWrongHandler; dispatchEvent(myEvent); And the UM extensions will keep track of your event, and anything that is kicked off by the command, and will call back into your view object to let it know the success / failure of whatever you may have initiated. -Josh On Fri, Jun 20, 2008 at 10:27 AM, donvoltz [EMAIL PROTECTED] wrote: Thanks for your responses. I agree with the idea that binding should work, I have set up 2 datagrids with the same data provider, the standard data grid works fine when the model locator is updated, however, the advanced one does not. Is it because I am using a grouping tag with the advanced data grid that the refresh() is needed or should this work with binding as well? Also, I have looked at the UM Cairngorm. It looks interesting but a little beyond me. Do you have any recommendations for getting more information on using this than what is supplied at google code?? I do not understand the idea of event hooks. Thanks again for the useful information Don -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Menubar Styling
I have a menubar where I want the items on the menubar to be one color and size, and the items in the drop downs to be another color and style. I can't find any information on doing this. Can someone help me out?
[flexcoders] Re: Cairngorm Event Question
I hear you João, Binding to the model works the majority of the time. However, it can also add a significant amount of model variables, that are used stricly for state, that can be eliminated with view call-backs. It's clearly an issue of preference, but I personally like what the guys at UM have done to add a little more flexibily to the architecture. -TH --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Tim, I don't use UM extensions and I'm totally able to notify my views just with Cairngorm. What I use usually is a model ( no matter what it is ) that I inject to my event , passes to the command and then on result/fault I update the same model. Since the model passes by reference, my view, which is listening (binding) to that model, can react to the 'notification'. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
[flexcoders] Reading Inspectable tags in AS
Hey guys, I'm trying read the Inspectable metadata tag of the properties of certain components in run time. The idea is when the user clicks a component, the application shows all the variables with Inspectable tags, and the information written in it. I already tried the flash.utils.describeType way, but the only metadata I can access is Bindable. Is there a way of doing this?
[flexcoders] Re: Splitting FlexCoders in smaller, focused groups
Good enough, best of luck. -TH --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Thank you for the honesty, Tim. This list, and the Macromedia based essence of theme for Flex that has been a huge success, doesn't care about [enterprise developers like]you or me I wonder how you got that impression. Are there many people that feel that way? Flex has enterprise side to it and is promoted as enterprise grade tool. I do believe that Adobe targets that market as there are millions of java developers that are looking for new technologies to move into - with a majority of them in enterprise field. How they perceive the product and support does affect you and me in (hopefully) long run. Anyway, enterpriseflex group is created, anyone is welcome to join. I will post formal invitation with list of the topics it will cover as soon as all facets are ready and tested Thank you, Anatole Tartakovsky Thank you On Fri, Jun 20, 2008 at 3:40 AM, Tim Hoff [EMAIL PROTECTED] wrote: I'll tell you honestly Anatole, I've been an enterprise developer for 25 years. From EDLIN to Flex, I've seen it; so please don't propose that you have some un-known insight to software development. This list, and the Macromedia based essence of theme for Flex that has been a huge success, doesn't care about you or me. I appreciate that you have been able to benefit from Flex's success; but I question the motive to try and tell Adobe how to run their business. If you like the product, cool. If you don't, step off. -TH --- In flexcoders@yahoogroups.com, Anatole Tartakovsky anatole.tartakovsky@ wrote: I guess, the majority of the group tends to like the way things are now. That is hardly surprising given initial posting that most people who do not like the current solution would unsubscribe. It also came to the light that enterprise developers have some restrictions in selection of the client (email) software and problems with getting too many messages. It is also obvious ( by monitoring the messages for few month back) that the questions on enterprise topics are rarely followed and some design questions are answered on a different level then the original question. As a result, we see fewer of such messages lately. Potentially, enterprise part of Flex business might not be getting fare share of attention. So, here is the question - if we create separate list to see the need for enterprise list - would Adobe be willing to include links to it in the usual places/promote it/assign moderators? Sincerely, Anatole Tartakovsky Farata Systems On Thu, Jun 19, 2008 at 6:01 PM, dnk d.k.emaillists@ wrote: On 19-Jun-08, at 2:03 PM, brucewhealton wrote: Maybe we need groups for different users at different experience levels. I think this list is so big that it is hard to find a response or thread, especially when one posts a question and wants to find out if someone responded. I have to look and look to see if I can find that thread anywhere, and it gets confusing when one sees so many similar, though different threads. I'd like a feature to show me threads that include messages where I've posted comments, questions, or etc. I tend to be one that prefers one list, and monitoring all things (I like to see what is out there and what else is going on with the tech on all levels). However with a little thought about this, the reality is this, if it stays as one, most are creating rules to manage or delete, etc. anyways. If we split, the same applies in some form or another. no one will ever be happy on all levels. So if the powers that be decide to split, go for it I will just subscribe to all the relevant ones I wish to monitor and organize how i want (probably all dumped into a flex folder as it is now). But it gives those who wish for more relevance more power to do so. Either way I can sort and have the exact same info in my inbox. It just gives those who want a more targeted inbox the ability to do so. My only suggestion is to not over split. Pick your 5-10 (or what ever the magic number seems to be) and go for it. It is all a matter or preference, but one way (to split to a point) seems to offer more flexibility. Not even $0.02.. but dnk
Re: [flexcoders] Re: Cairngorm Event Question
On Fri, Jun 20, 2008 at 9:39 AM, Tim Hoff [EMAIL PROTECTED] wrote: Binding to the model works the majority of the time. However, it can also add a significant amount of model variables, that are used stricly for state, that can be eliminated with view call-backs. It's clearly an issue of preference, but I personally like what the guys at UM have done to add a little more flexibily to the architecture. Yes, I agree. And not only because the model gets more complex, but because those flags are, most of the time, used only for that particular view... so that data is not something that really needs to be shared with the rest of the application. I've been using Cairngorm for some time and that tends to happen a bit too much as applications grow. I've also been playing with the UM extensions. I redid my little blogging thing with it as an exercise. You can see it running from here: http://rojored.com You can check out the source code (and grab whatever you want) from here: http://rojored.com/code/rojored/ Of course comments or corrections are more than welcome! If you are already familiar with Cairngorm but don't yet want the overhead of learning the UM extensions just yet, you can do a super simplified CairngormEvent subclass which can have an callbacks property typed IResponder. If you extend from that for all your events, you'll have a super minimal UMEvent-ish base class that will be able to handle your callbacks easily. I recommend, though, that you check out the extensions in detail. Lots of cool things are packed in there. G. -- gabriel montagné láscaris comneno http://rojored.com t/506.8392.2040
Re: [flexcoders] Reading Inspectable tags in AS
I think you must add keep metadata parameter on your compilation. VELO On Fri, Jun 20, 2008 at 12:39 PM, Daniel [EMAIL PROTECTED] wrote: Hey guys, I'm trying read the Inspectable metadata tag of the properties of certain components in run time. The idea is when the user clicks a component, the application shows all the variables with Inspectable tags, and the information written in it. I already tried the flash.utils.describeType way, but the only metadata I can access is Bindable. Is there a way of doing this?
[flexcoders] Forcing an itemRenderer to reRender
I am doing some real tricky stuff with itemRenderers, how Do i refresh a particular itemRenderer or refresh the entire list. (the only thing that seems to be re-render the list is if I scroll the renderer out of view and then back down into view. any help, Thanks, Patrick
Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
Hi, Our plan at the moment is to only create SWZ's for the milestone releases (3.x, but not 3.0.x). We have a milestone release for 3 on deck in late summer. Matt On 6/20/08 6:52 AM, Paddy Keane [EMAIL PROTECTED] wrote: Thanks Velo, Does anyone know how adobe implements releases for .swz files? i.e are they only available for major releases or is it just that adobe haven't got around to releasing a new one for 3.0.2.2113? Ta paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Marvin Froeder Sent: 20 June 2008 14:40 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching AFIK, swf are created by adobe, and by Adobe only... What you can do is create optimized SWF. Doesn't cache, but are smaller then standard swc files. VELO On Fri, Jun 20, 2008 at 6:13 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Hi guys, I've just downloaded the latest Flex 3 SDK here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 Has anyone got any idea how to create the 'framework_3.0.2.2113.swz' or can I only cache major releases of the framework? i.e I've only ever got it to work with 'framework_3.0.0.477.swz'. any help would be brill, thanks paddy ;)
Re: [flexcoders] Reading Inspectable tags in AS
Yes, you must add a compiler argument. Ex: -keep-as3-metadata+=(your comma separated list of metadata tags goes here) Rich On Fri, Jun 20, 2008 at 11:58 AM, Marvin Froeder [EMAIL PROTECTED] wrote: I think you must add keep metadata parameter on your compilation. VELO On Fri, Jun 20, 2008 at 12:39 PM, Daniel [EMAIL PROTECTED] wrote: Hey guys, I'm trying read the Inspectable metadata tag of the properties of certain components in run time. The idea is when the user clicks a component, the application shows all the variables with Inspectable tags, and the information written in it. I already tried the flash.utils.describeType way, but the only metadata I can access is Bindable. Is there a way of doing this?
[flexcoders] Re: Return data to FileReference
I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
RE: [flexcoders] Re: Return data to FileReference
You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html# event:uploadCompleteData Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
RE: [flexcoders] Forcing an itemRenderer to reRender
Typically this is an indication that your itemRenderer needs some work. But you can always re-assign the dataProvider. And there is the itemUpdated() method. And various other techniques to make the dataProvider dispatch its events. Lots on this in the archives. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djhatrick Sent: Friday, June 20, 2008 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Forcing an itemRenderer to reRender I am doing some real tricky stuff with itemRenderers, how Do i refresh a particular itemRenderer or refresh the entire list. (the only thing that seems to be re-render the list is if I scroll the renderer out of view and then back down into view. any help, Thanks, Patrick
Re: [flexcoders] Forcing an itemRenderer to reRender
I had a similar problem that i fixed by listening for the 'dataChange' event and invalidating the display list Jamie On Fri, Jun 20, 2008 at 9:06 AM, djhatrick [EMAIL PROTECTED] wrote: I am doing some real tricky stuff with itemRenderers, how Do i refresh a particular itemRenderer or refresh the entire list. (the only thing that seems to be re-render the list is if I scroll the renderer out of view and then back down into view. any help, Thanks, Patrick
Re: [flexcoders] Re: Return data to FileReference
Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html#event:uploadCompleteData Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Rich Tretola *Sent:* Friday, June 20, 2008 1:01 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
[flexcoders] Re: Please, help: the release player displays a blank page in all browsers.
We are experiencing the same issue. We don't get errors when viewing in the standalone debug player, the screen is blank in the standard player. Andrea: did you get to the bottom of your problem? Any other suggestions gratefully received. Thanks in advance Julian --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: If it is a security problem, It will work fine under Flex Builder on your dev machine, but not when served from a webserver, like when tested on a coworker's machine. My suggestion is to be sure your have run it from a Web server, using a debug player, which is the only way to see the security error. Tracy --- In flexcoders@yahoogroups.com, andrea bianchi bianchi75@ wrote: Thank you for your answers. Alex: I could try to write an application that loads my swf, but actually I think the swf should work fine since I can run it from debug players. What do you mean with deploying a release swf? I just omitted the -compiler.debug directive and put false as the value of the debug tag in flex-config.xml. Is it right? Tracy: I don't think an error occurs, since I don't see anything while running my app in a debug player. Andrea On Wed, Jun 4, 2008 at 6:40 PM, Tracy Spratt tspratt@ wrote: Does your app do a data service call on start-up? Perhaps you have a security problem that is causing an error on the non- development system, and the release player is not displaying the error. Try to run the app on a non-dev system, but use the debug player. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *andrea bianchi *Sent:* Wednesday, June 04, 2008 10:23 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Please, help: the release player displays a blank page in all browsers. I'm experiencing a strange issue: I'm not able to run my Flex app using the release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47 and IE7/player 9.0.124). The page contains a blank swf (when I right click I can see the Flash player menu). The same application works in all browsers using a debug player. The swf doesn't work even if I try to access it directly, while I'm able to run other Flex applications both standalone and using the HTML wrapper. I'm using the Flex 2 SDK hotfix 2 command line compiler. I actually don't know what has caused this behaviour since I use a debug player 99% of time... a colleague discovered this while testing the application. A possibile hint: this morning, using the debug player, I saw a popup window prompting me for the location of the debugger or the profiler: this happens occasionally and, until now, I didn't pay much attention to it (don't know exactly why it appears, I'm compiling using the same options since many months). When I switched to the runtime player the swf seemed to freeze at the same point, though in this case I didn't see the popup window. Maybe this window and the blank page issue are related? Obviously I cannot force my customers to install a debug player ;- ) Any help appreciated. Bye, Andrea
RE: [flexcoders] Re: Return data to FileReference
The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html# event:uploadCompleteData http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html #event:uploadCompleteData Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
RE: [flexcoders] Re: Return data to FileReference
Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:55 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html# event:uploadCompleteData http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html #event:uploadCompleteData Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
RE: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
Thanks Matt, I'm a little confused as I've actually got a 'framework_3.0.189825.swz' knocking about somewhere but using it was causing problems (it was awhile ago we went through trying to implement it and can't remember specific issues but we had to revert back to 'framework_3.0.0.477.swz'). We were prob doing something wrong but could you let me know if using 'framework_3.0.189825.swz' should be possible or if we should only be using 'framework_3.0.0.477.swz'? in fact maybe you could let us know what the latest framework_3.0.x.swz 'rpc_3.0.0.x.swz' is, in case there are others? Thanks again, paddy ;) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: 20 June 2008 17:35 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching Hi, Our plan at the moment is to only create SWZ's for the milestone releases (3.x, but not 3.0.x). We have a milestone release for 3 on deck in late summer. Matt On 6/20/08 6:52 AM, Paddy Keane [EMAIL PROTECTED] wrote: Thanks Velo, Does anyone know how adobe implements releases for .swz files? i.e are they only available for major releases or is it just that adobe haven't got around to releasing a new one for 3.0.2.2113? Ta paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Marvin Froeder Sent: 20 June 2008 14:40 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching AFIK, swf are created by adobe, and by Adobe only... What you can do is create optimized SWF. Doesn't cache, but are smaller then standard swc files. VELO On Fri, Jun 20, 2008 at 6:13 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Hi guys, I've just downloaded the latest Flex 3 SDK here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 Has anyone got any idea how to create the 'framework_3.0.2.2113.swz' or can I only cache major releases of the framework? i.e I've only ever got it to work with 'framework_3.0.0.477.swz'. any help would be brill, thanks paddy ;)
RE: [flexcoders] Re: Return data to FileReference
I just verified it, my handler is working as expected and I can access the xml status node I am having the server return. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:55 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html# event:uploadCompleteData http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html #event:uploadCompleteData Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
That looks like a beta build number. I don't think we've posted any SWZ's since 477, or if you did see a SWZ it might have been signed only with the test certificate. Matt On 6/20/08 10:52 AM, Paddy Keane [EMAIL PROTECTED] wrote: Thanks Matt, I'm a little confused as I've actually got a 'framework_3.0.189825.swz' knocking about somewhere but using it was causing problems (it was awhile ago we went through trying to implement it and can't remember specific issues but we had to revert back to 'framework_3.0.0.477.swz'). We were prob doing something wrong but could you let me know if using 'framework_3.0.189825.swz' should be possible or if we should only be using 'framework_3.0.0.477.swz'? in fact maybe you could let us know what the latest framework_3.0.x.swz 'rpc_3.0.0.x.swz' is, in case there are others? Thanks again, paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Matt Chotin Sent: 20 June 2008 17:35 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching Hi, Our plan at the moment is to only create SWZ's for the milestone releases (3.x, but not 3.0.x). We have a milestone release for 3 on deck in late summer. Matt On 6/20/08 6:52 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Thanks Velo, Does anyone know how adobe implements releases for .swz files? i.e are they only available for major releases or is it just that adobe haven't got around to releasing a new one for 3.0.2.2113? Ta paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Marvin Froeder Sent: 20 June 2008 14:40 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching AFIK, swf are created by adobe, and by Adobe only... What you can do is create optimized SWF. Doesn't cache, but are smaller then standard swc files. VELO On Fri, Jun 20, 2008 at 6:13 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Hi guys, I've just downloaded the latest Flex 3 SDK here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 Has anyone got any idea how to create the 'framework_3.0.2.2113.swz' or can I only cache major releases of the framework? i.e I've only ever got it to work with 'framework_3.0.0.477.swz'. any help would be brill, thanks paddy ;)
RE: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
That's prob the issue. I've just done a test and get: error #2034: An invalid digest was supplied. Failed to load RSL framework_3.0.189825.swz Failing over to RSL framework_3.0.189825.swf Shame as it fixed some layout issues we were having and a few other things besides. Guess I'll have to have a long summer holiday ;) Is there any scope for releasing 'Stable' 3.0.x builds? It just means if you want to use the caching feature you need to be aware it might be hard taking advantage of updates and bug fixes. Caching is Uber important (it's one of the main reasons I got the green light to develop our latest Flex projects ;) ) If there's a way it can take advantage of patches/updates/bug fixes too that would be golden !... Anyway have a good weekend... paddy ;) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: 20 June 2008 19:05 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching That looks like a beta build number. I don't think we've posted any SWZ's since 477, or if you did see a SWZ it might have been signed only with the test certificate. Matt On 6/20/08 10:52 AM, Paddy Keane [EMAIL PROTECTED] wrote: Thanks Matt, I'm a little confused as I've actually got a 'framework_3.0.189825.swz' knocking about somewhere but using it was causing problems (it was awhile ago we went through trying to implement it and can't remember specific issues but we had to revert back to 'framework_3.0.0.477.swz'). We were prob doing something wrong but could you let me know if using 'framework_3.0.189825.swz' should be possible or if we should only be using 'framework_3.0.0.477.swz'? in fact maybe you could let us know what the latest framework_3.0.x.swz 'rpc_3.0.0.x.swz' is, in case there are others? Thanks again, paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Matt Chotin Sent: 20 June 2008 17:35 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching Hi, Our plan at the moment is to only create SWZ's for the milestone releases (3.x, but not 3.0.x). We have a milestone release for 3 on deck in late summer. Matt On 6/20/08 6:52 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Thanks Velo, Does anyone know how adobe implements releases for .swz files? i.e are they only available for major releases or is it just that adobe haven't got around to releasing a new one for 3.0.2.2113? Ta paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Marvin Froeder Sent: 20 June 2008 14:40 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching AFIK, swf are created by adobe, and by Adobe only... What you can do is create optimized SWF. Doesn't cache, but are smaller then standard swc files. VELO On Fri, Jun 20, 2008 at 6:13 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Hi guys, I've just downloaded the latest Flex 3 SDK here: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 Has anyone got any idea how to create the 'framework_3.0.2.2113.swz' or can I only cache major releases of the framework? i.e I've only ever got it to work with 'framework_3.0.0.477.swz'. any help would be brill, thanks paddy ;)
Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
Understand that caching is important. One reason that we don't necessarily push SWZs for stable builds though is that I don't have a great sense of how many folks are updating yet. We're going to watch the numbers. If everyone is really upgrading to the latest SDK stable build, then we can consider posting SWZs. But since a stable is supposed to come out every 60 days or sooner, that's a lot of cached RSLs that could end up out there. We do want to work on making it so that it's easier to apply a patch and still take advantage of the cache though. The problem is how the Flash Player loads stuff, if you apply a patch to a class that's a leaf, all of its dependencies must be loaded before it, and half the time that will negate the benefit of the cache. So we need to figure it out better. Some of the new framework architecture stuff we're looking at may help with this. Anyway, I'll keep an eye on things and we'll see what we can do. Matt On 6/20/08 11:32 AM, Paddy Keane [EMAIL PROTECTED] wrote: That's prob the issue. I've just done a test and get: error #2034: An invalid digest was supplied. Failed to load RSL framework_3.0.189825.swz Failing over to RSL framework_3.0.189825.swf Shame as it fixed some layout issues we were having and a few other things besides. Guess I'll have to have a long summer holiday ;) Is there any scope for releasing 'Stable' 3.0.x builds? It just means if you want to use the caching feature you need to be aware it might be hard taking advantage of updates and bug fixes. Caching is Uber important (it's one of the main reasons I got the green light to develop our latest Flex projects ;) ) If there's a way it can take advantage of patches/updates/bug fixes too that would be golden !... Anyway have a good weekend... paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Matt Chotin Sent: 20 June 2008 19:05 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching That looks like a beta build number. I don't think we've posted any SWZ's since 477, or if you did see a SWZ it might have been signed only with the test certificate. Matt On 6/20/08 10:52 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Thanks Matt, I'm a little confused as I've actually got a 'framework_3.0.189825.swz' knocking about somewhere but using it was causing problems (it was awhile ago we went through trying to implement it and can't remember specific issues but we had to revert back to 'framework_3.0.0.477.swz'). We were prob doing something wrong but could you let me know if using 'framework_3.0.189825.swz' should be possible or if we should only be using 'framework_3.0.0.477.swz'? in fact maybe you could let us know what the latest framework_3.0.x.swz 'rpc_3.0.0.x.swz' is, in case there are others? Thanks again, paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com ] On Behalf Of Matt Chotin Sent: 20 June 2008 17:35 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching Hi, Our plan at the moment is to only create SWZ's for the milestone releases (3.x, but not 3.0.x). We have a milestone release for 3 on deck in late summer. Matt On 6/20/08 6:52 AM, Paddy Keane [EMAIL PROTECTED] mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk mailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.ukmailto:paddy.keane%40wai.co.uk wrote: Thanks Velo, Does anyone know how adobe implements releases for .swz files? i.e are they only available for major releases or is it just that adobe haven't got around to releasing a new one for 3.0.2.2113? Ta paddy ;) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
[flexcoders] SOAP request has 2 elements generated twice thus throwing an error.
Hi All, I have used the Import WSDL introspection tool by Flex builder and I manage to go around all the hassles and finally able to contact the web services endpoint of the WS server. BTW, thanks to Seth Hodgson for taking time to answer my queries in my previous emails and also to Josh McDonald. But right now i'm getting a user error: soapenv:Body soapenv:Fault faultcodesoapenv:Server.userException/faultcode faultstringcom.netledger.common.schemabean.NLSchemaBeanException: passport not found on {urn:core_2008_1.platform.webservices.netsuite.com }Passport/faultstring detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/; partners-java008.svale.netledger.com/ns1:hostname /detail /soapenv:Fault /soapenv:Body Erroneous SOAP request I got from the logs: SOAP-ENV:Body ns0:login xmlns:ns0=urn: messages_2008_1.platform.webservices.netsuite.com ns0:login ns0:passport platformCore:email xmlns:platformCore=urn: core_2008_1.platform.webservices.netsuite.comclemen/platformCore:email platformCore:password xmlns:platformCore=urn: core_2008_1.platform.webservices.netsuite.com /platformCore:password platformCore:account xmlns:platformCore=urn: core_2008_1.platform.webservices.netsuite.com724168/platformCore:account platformCore:role internalId=3 type= xmlns:platformCore=urn:core_2008_1.platform.webservices.netsuite.com platformCore:name xsi:nil=true/ /platformCore:role /ns0:passport /ns0:login /ns0:login /SOAP-ENV:Body Looking at the SOAP request, I realized that the login element was generated twice. I believe this was a problem coming from the generated AS classes. Has anyone who used the WSDL introspection tool experienced this before? Any help or ideas will be appreciated. Thanks in advance. Clem
[flexcoders] Need Source for Text Limit for Text Area....
Hi All, Can Anyone give me source code for Character limit for TextArea in Flex and Action Script.In my project I've been implementing a Text Area which should accept only 4000 characters. It should also display the status as still how many characters left..? in a Label. If it exceeds 4000 characters it should not print any character in that Text Area. It is highly appreciated if I get this code today ASAP. Regards, Ashwin Thota.
RE: [flexcoders] Need Source for Text Limit for Text Area....
Use maxChars and text.length? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of athota82 Sent: Friday, June 20, 2008 11:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Need Source for Text Limit for Text Area Hi All, Can Anyone give me source code for Character limit for TextArea in Flex and Action Script.In my project I've been implementing a Text Area which should accept only 4000 characters. It should also display the status as still how many characters left..? in a Label. If it exceeds 4000 characters it should not print any character in that Text Area. It is highly appreciated if I get this code today ASAP. Regards, Ashwin Thota.
RE: [flexcoders] Re: Please, help: the release player displays a blank page in all browsers.
Another approach is to comment out code until you get the app to appear and see what the code made the difference. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of julian.leach Sent: Friday, June 20, 2008 10:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Please, help: the release player displays a blank page in all browsers. We are experiencing the same issue. We don't get errors when viewing in the standalone debug player, the screen is blank in the standard player. Andrea: did you get to the bottom of your problem? Any other suggestions gratefully received. Thanks in advance Julian --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: If it is a security problem, It will work fine under Flex Builder on your dev machine, but not when served from a webserver, like when tested on a coworker's machine. My suggestion is to be sure your have run it from a Web server, using a debug player, which is the only way to see the security error. Tracy --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , andrea bianchi bianchi75@ wrote: Thank you for your answers. Alex: I could try to write an application that loads my swf, but actually I think the swf should work fine since I can run it from debug players. What do you mean with deploying a release swf? I just omitted the -compiler.debug directive and put false as the value of the debug tag in flex-config.xml. Is it right? Tracy: I don't think an error occurs, since I don't see anything while running my app in a debug player. Andrea On Wed, Jun 4, 2008 at 6:40 PM, Tracy Spratt tspratt@ wrote: Does your app do a data service call on start-up? Perhaps you have a security problem that is causing an error on the non- development system, and the release player is not displaying the error. Try to run the app on a non-dev system, but use the debug player. Tracy -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *andrea bianchi *Sent:* Wednesday, June 04, 2008 10:23 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Please, help: the release player displays a blank page in all browsers. I'm experiencing a strange issue: I'm not able to run my Flex app using the release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47 and IE7/player 9.0.124). The page contains a blank swf (when I right click I can see the Flash player menu). The same application works in all browsers using a debug player. The swf doesn't work even if I try to access it directly, while I'm able to run other Flex applications both standalone and using the HTML wrapper. I'm using the Flex 2 SDK hotfix 2 command line compiler. I actually don't know what has caused this behaviour since I use a debug player 99% of time... a colleague discovered this while testing the application. A possibile hint: this morning, using the debug player, I saw a popup window prompting me for the location of the debugger or the profiler: this happens occasionally and, until now, I didn't pay much attention to it (don't know exactly why it appears, I'm compiling using the same options since many months). When I switched to the runtime player the swf seemed to freeze at the same point, though in this case I didn't see the popup window. Maybe this window and the blank page issue are related? Obviously I cannot force my customers to install a debug player ;- ) Any help appreciated. Bye, Andrea
RE: [flexcoders] focus out of the flash player
DEACTIVATE event is better From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Jones Sent: Friday, June 20, 2008 6:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] focus out of the flash player I have a requirement to dismiss a dialog if the flash player loses focus (e.g. someone clicks outside of the player). I'm using the Flex 2.0.01 SDK (hotfix 3) with IE 7 and Flash Player 9. I've registered a FOCUS_OUT event handler on the stage. That seems to work, but I've run into a case where the event is ambiguous. I've been keying off of if (event.relatedObject == null) //then assume the player's lost focus. The problem is that if my dialog contains a DropDown and the DropDown is opened, then I'm getting an event that also has a null value for relatedObject. I don't want to close the dialog if someone opens a DropDown :-) I've also tried focus-out handlers on the root and the dialog window objects (my dialog is subsclass of TitleWindow), but they have a similar result. Any suggestions? Is there another sort of event that will tell me when the Player has lost focus to the browser or another app? Thanks, Glenn
Re: [flexcoders] Help on error: Invalid AMFX packet. Content must start with an amfx node
Seth, Thanks you! Much appreciated! Cheers, Clem On Thu, Jun 19, 2008 at 4:58 PM, Seth Hodgson [EMAIL PROTECTED] wrote: Hi Clem, Use the SecureAMFChannel on the client and the SecureAMFEndpoint at the server. Make sure your endpoint URL is correct (starts with https://...). Seth From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of gnu wolf Sent: Wednesday, June 18, 2008 5:14 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Help on error: Invalid AMFX packet. Content must start with an amfx node Hey Seth, I'm not getting anything from the response, no headers and no status code. Pretty weird. I had this request headers tho: POST /samples/messagebroker/http HTTP/1.1 Host: localhost:9400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Content-type: application/xml Content-length: 653 It seems like it's still talking to the HTTP channel and not the AMF channel. If i'm using HTTPS, I should be talking to SecureAMFChannel, right? I already enable SSL in my blazeDS tomcat and use a self-signed keystore file. On Thu, Jun 19, 2008 at 7:50 AM, Seth Hodgson [EMAIL PROTECTED]shodgson%40adobe.com wrote: Hey Clem, That raw request you're seeing is the client-side channel handshake with the server endpoint. This happens before any general messages/requests/data are shipped over the channel/endpoint connection. For some reason the response to this initial request isn't returning the server half of the handshake as valid AMFX. Do you see any other raw response info (say response headers and response status code) in addition to that odd body? Once this initial connect-time handshake is working, the SOAP request will be sent to the server where it'll be proxied through to the actual target SOAP endpoint. Seth From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of gnuwolf Sent: Wednesday, June 18, 2008 10:45 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Help on error: Invalid AMFX packet. Content must start with an amfx node Hi Seth, Thanks for replying. I'm creating a webservices client for Netsuite. The usual SOAP request for login operation would look something like this: soapenv:Body platformMsgs:login xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:platformCore=urn: core_2008_1.platform.webservices.netsuite.com xmlns:platformMsgs=urn: messages_2008_1.platform.webservices.netsuite.com platformMsgs:passport platformCore:email[EMAIL PROTECTED]clemen.canaria%40yahoo.com.ph /platformCore:email platformCore:passwordmypassword/platformCore:password platformCore:account724168/platformCore:account /platformMsgs:passport /platformMsgs:login /soapenv:Body Raw request from charles is this: amfx ver=3 xmlns=http://www.macromedia.com/2005/amfx; body object type=flex.messaging.messages.CommandMessage traits stringbody/string stringclientId/string stringcorrelationId/string stringdestination/string stringheaders/string stringmessageId/string stringoperation/string stringtimestamp/string stringtimeToLive/string /traits object traits/ /object null/ string/ string/ object traits stringDSId/string stringDSMessagingVersion/string /traits stringnil/string int1/int /object
[flexcoders] Re: A great feature for Flex Builder would be getter and setter automation.
Obviously I would not suggest breaking encapsulation. I guess I would suggest not 'generating' accessors/mutators rather give it thought and add them as you should. Also I was trying, although I admit poorly, to make sure a Java developer coming into Flex/AS3 does not miss some of the powerful things provided that Java does not provide like implicit getters/setters. For example... public class MyClass { public var message:String } is the same as: public class MyClass { private var _message:String public function get message() : String { return message } public function set message( message:String ) : void { _message = message } } If you need to do something 'extra' in the getter/setter later you still can in the first instance but if you don't, the second option is overly verbose and doesn't take advantage of the languages richness and implicit getters and setters. Generating getters and setter when they are provided 'invisibly' is foolish and wasted effort for FlexBuilder developers. Let them focus on more interesting things and not on sedating us Java developers that want to do it the Java-way and are reluctant to understand the interesting features of a new language. Forget the old and learn new... Java is static but ActionScript3 has some neat dynamic features that we shouldn't get crazy with but we should take advantage of when applicable. Always keep the brain engaged. Not religious, just good advice. Put your braces where you want to. Mine will be lined up though. ;-) - Todd --- In flexcoders@yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: You're getting into religious war territory there my friend! One that's been doing the blogs recently too... The OP wanted a way of generating getters / setters automatically... If we are running a master class here... I would suggest that you only ever generate getters for your model, and encapsulate the behaviour of the model in functions that relate to your use cases. Using public variables in the place of getters and setters reduces the level of thought required to code, but not necessarily in a good way as it then becomes much easier to break encapsulation. But as I said, religious war territory (and didn't we go through this recently on this list?) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of twcrone70 Sent: 20 June 2008 15:34 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: A great feature for Flex Builder would be getter and setter automation. Please remember that if all you need is default behavior as the script you provided does, that is implicitly provided by creating your var public in AS3. Yes, it feels funny having a public member variable coming from Java since it is bad to expose your objects state. But, if you need to intercept the set or get then you can provide the get and/or set method and your other code need not change. You only need getters and setters in Java from the start because there is not implicit mechanism for them. Having getters and setters that are unnecessary and do nothing special just bloats your code. So for that, I see getter and setter generation for Flex/AS3 as unnecessary. One last thing that will surely make eyes roll but...you should be careful when arbitrarily generating getters and setters without considering if that is what you REALLY should do. In the Java world, we too often simply create some fields, generate getters and setters, use the default constructor only. We then use the class like a C-style struct with essentially public fields anyway. Keep your mind engaged when developing classes. If you are generating lots of code that you never refactor to something more pertinent to your domain, you have a very 'dead' model. - Todd
Re: [flexcoders] Need Source code for Character Limit for TextArea....
Posting twice, demanding source code for a solution, and telling us you need it ASAP isn't going to do much besides piss people off. We're not here to do your work. If you're in over your head and are going to miss your deadline because you committed to developing with a technology you haven't learned then this is the wrong place to look for someone to bail you out. Sorry for the rant, as we've been discussing on this list lately there have been more and more questions like this. I certainly don't want to come off as being condescending or arrogant, but saying give me source code, I need it now for my deadline gets me a little riled up :) Doug On Fri, Jun 20, 2008 at 11:09 AM, Ashwin Thota [EMAIL PROTECTED] wrote: Hi All, Can Anyone give me source code for Character limit for TextArea in Flex and Action Script. In my project I've been implementing a Text Area which should accept only 4000 characters. It should also display the status as still how many characters left..? in a Label. If it exceeds 4000 characters it should not print any character in that Text Area. It is highly appreciated if I get this code today ASAP. Regards, Ashwin Thota.
Re: [flexcoders] Re: Return data to FileReference
Without having done it myself, I would say off the top of my head no, because the Event class (flash.events.Event.COMPLETE) does not contain user-settable data. But you may be able to do it indirectly, by creating a custom property fileName on the server-side dispatching object, and then using event.target.fileName on the client-side ...? ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Rich Tretola wrote: I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
[flexcoders] Repeater items with two states and dataProvider binding resetting state
I have a Repeater which is repeating an item with two states (an open state and a closed state), when I open one one of the items I then load some extra data in. When the extra data is loaded the item in the data provider (an array collection) is replaced - that way everything is updated via the bindings. The problem I have is that when the array collection binding fires the Repeater recreates/refreshes each of the items so any that were open close, which is, of course, not what I want. I'll probably have to code this all up myself without using the Repeater, but I wondered if anyone else had any thoughts before I start down that path.
[flexcoders] showDataEffect sequence lost when swapping bubble series dynamically
Hello, I have created a bubble chart programatically. I init the bubble chart with a datasource (xml object) that I get once from a web service. However, after the data is loaded, the user will have the chance to swap the axes. Meaning that if my original series is: mx:BubbleSeries showDataEffect={eff} xField=A yField=B radiusField=P/ I wanted to dynamically change for this one mx:BubbleSeries showDataEffect={eff} xField=B yField=P radiusField=A/ Or any possible combination. I manage to do this with AS, however I notice that the SeriesInterpolate effect will not work unless you change the chart dataset or add a myChart.hideData(). I do not change my dataset, what I do is create a new bubbleseries with the user selection, push it into the bubble chart, and call the hideData so that this will trigger the effect. However bubbles do not move to their new positions, instead they jump to the new position and that's it. You guys have any idea is this can be accomplished? I'm wondering if the way the SeriesInterpolate effect works requires the series fields to be kept?? Thanks a lot for your help! Marce
RE: [flexcoders] internationalization @ switching runtime
You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
Re: [flexcoders] internationalization @ switching runtime
Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
[flexcoders] Re: Return data to FileReference
Listen for the DataEvent.UPLOAD_COMPLETE_DATA. The DataEvent has a data property that does exactly as Tracy described. I've done the same thing recently to return XML information back to the application from the upload servlet. The XML you return contain whatever information you want. private function onUploadComplete(event:DataEvent):void { var data:XML = XML(event.data); ... ... --- In flexcoders@yahoogroups.com, Rich Tretola [EMAIL PROTECTED] wrote: OK, the problem with your solution is that the FileReference complete event is of type flash.events.Event and does not have a data property and the target is the FileReference. On Fri, Jun 20, 2008 at 2:11 PM, Tracy Spratt [EMAIL PROTECTED] wrote: I just verified it, my handler is working as expected and I can access the xml status node I am having the server return. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tracy Spratt *Sent:* Friday, June 20, 2008 1:58 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Re: Return data to FileReference Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Tracy Spratt *Sent:* Friday, June 20, 2008 1:55 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy *// Called on upload complete* *private* *function* onUploadComplete(event:DataEvent):*void* { *var* sData:String = event.data; *var* xmlStatus:XML = XML(sData); *if* ([EMAIL PROTECTED] == *error*) { *this*.height = 200; lbStatus.setStyle(*color*,*red*); lbStatus.text = *Error Uploading File:*; txtError.text = [EMAIL PROTECTED]; sCloseMode = *ioerror* *//_timerStatus.delay = 6000;* *//_timerStatus.start() * } *else* { _numCurrentUpload++; *if* (_numCurrentUpload _aUploadFiles.length) { startUpload(*false*); } *else* { lbStatus.text = *Upload successful*; sCloseMode = *success* _timerStatus.start() } saveProjDoc(); } }*//onUploadComplete* -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Rich Tretola *Sent:* Friday, June 20, 2008 1:16 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html#event:uploadCompleteData Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Rich Tretola *Sent:* Friday, June 20, 2008 1:01 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich
RE: [flexcoders] internationalization @ switching runtime
If you're not using MXML databinding to write code like Button id=b label={resourceManager.getString(...)}/ then you can override the resourcesChanged() method and reassign the new string, as in b.label = resourceManager.getString(...); The ResourceManager works with resources in ResourceBundles, which normally get compiled from .properties files. Are you loading .properties files at runtime and parsing them yourself to get keys and values? In that case, you can create new instances of ResourceBundle at runtime, put your resources into them, and install them into the ResourceManager like this: var rb:ResourceBundle = new ResourceBundle(locale, bundleName); rb.content[key1] = value1; rb.content[key2] = value2; ... resourceManager.addResourceBundle(rb); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] mailto:gosmith%40adobe.com wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
Re: [flexcoders] internationalization @ switching runtime
No, no, I am definitely using the ResourceManager. But the expression is something like text={buildTitle(someParameter)} And buildTitle calls static function getUIString which calls getResourceManager followed by some string substitution. On Fri, Jun 20, 2008 at 2:59 PM, Gordon Smith [EMAIL PROTECTED] wrote: If you're not using MXML databinding to write code like Button id=b label={resourceManager.getString(...)}/ then you can override the resourcesChanged() method and reassign the new string, as in b.label = resourceManager.getString(...); The ResourceManager works with resources in ResourceBundles, which normally get compiled from .properties files. Are you loading .properties files at runtime and parsing them yourself to get keys and values? In that case, you can create new instances of ResourceBundle at runtime, put your resources into them, and install them into the ResourceManager like this: var rb:ResourceBundle = new ResourceBundle(locale, bundleName); rb.content[key1] = value1; rb.content[key2] = value2; ... resourceManager.addResourceBundle(rb); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
RE: [flexcoders] internationalization @ switching runtime
In that case, I don't think the binding expression will re-evaluate when the localeChain changes. It may be easiest to override resourcesChanged(). But you could also try doing some extra work to get the binding expression to re-evaluate. Try putting [Bindable(change)] metadata on your declaration of the buildTitle() method, and arrange for the class buildTitle() is in to redispatch the ResourceManager's change events. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 3:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime No, no, I am definitely using the ResourceManager. But the expression is something like text={buildTitle(someParameter)} And buildTitle calls static function getUIString which calls getResourceManager followed by some string substitution. On Fri, Jun 20, 2008 at 2:59 PM, Gordon Smith [EMAIL PROTECTED] mailto:gosmith%40adobe.com wrote: If you're not using MXML databinding to write code like Button id=b label={resourceManager.getString(...)}/ then you can override the resourcesChanged() method and reassign the new string, as in b.label = resourceManager.getString(...); The ResourceManager works with resources in ResourceBundles, which normally get compiled from .properties files. Are you loading .properties files at runtime and parsing them yourself to get keys and values? In that case, you can create new instances of ResourceBundle at runtime, put your resources into them, and install them into the ResourceManager like this: var rb:ResourceBundle = new ResourceBundle(locale, bundleName); rb.content[key1] = value1; rb.content[key2] = value2; ... resourceManager.addResourceBundle(rb); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 2:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] mailto:gosmith%40adobe.com wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
Re: [flexcoders] internationalization @ switching runtime
Thanks. It's not a matter of urgency. I could also imagine passing a globalSettings.localeChanged flag to buildTitle. It might be a nice addition to add a getStringWithSubstitution to ResourceManager, that took a ..rest parameter and called StringUtil.substitute() on the retrieved string. On Fri, Jun 20, 2008 at 3:16 PM, Gordon Smith [EMAIL PROTECTED] wrote: In that case, I don't think the binding expression will re-evaluate when the localeChain changes. It may be easiest to override resourcesChanged(). But you could also try doing some extra work to get the binding expression to re-evaluate. Try putting [Bindable(change)] metadata on your declaration of the buildTitle() method, and arrange for the class buildTitle() is in to redispatch the ResourceManager's change events. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 3:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime No, no, I am definitely using the ResourceManager. But the expression is something like text={buildTitle(someParameter)} And buildTitle calls static function getUIString which calls getResourceManager followed by some string substitution. On Fri, Jun 20, 2008 at 2:59 PM, Gordon Smith [EMAIL PROTECTED] wrote: If you're not using MXML databinding to write code like Button id=b label={resourceManager.getString(...)}/ then you can override the resourcesChanged() method and reassign the new string, as in b.label = resourceManager.getString(...); The ResourceManager works with resources in ResourceBundles, which normally get compiled from .properties files. Are you loading .properties files at runtime and parsing them yourself to get keys and values? In that case, you can create new instances of ResourceBundle at runtime, put your resources into them, and install them into the ResourceManager like this: var rb:ResourceBundle = new ResourceBundle(locale, bundleName); rb.content[key1] = value1; rb.content[key2] = value2; ... resourceManager.addResourceBundle(rb); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
RE: [flexcoders] internationalization @ switching runtime
ResourceManager's getString() method does parameter substitution. Its signature is public function getString(bundleName:String, resourceName:String, parameters:Array = null, locale:String = null):String Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 3:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Thanks. It's not a matter of urgency. I could also imagine passing a globalSettings.localeChanged flag to buildTitle. It might be a nice addition to add a getStringWithSubstitution to ResourceManager, that took a ..rest parameter and called StringUtil.substitute() on the retrieved string. On Fri, Jun 20, 2008 at 3:16 PM, Gordon Smith [EMAIL PROTECTED] mailto:gosmith%40adobe.com wrote: In that case, I don't think the binding expression will re-evaluate when the localeChain changes. It may be easiest to override resourcesChanged(). But you could also try doing some extra work to get the binding expression to re-evaluate. Try putting [Bindable(change)] metadata on your declaration of the buildTitle() method, and arrange for the class buildTitle() is in to redispatch the ResourceManager's change events. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 3:03 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime No, no, I am definitely using the ResourceManager. But the expression is something like text={buildTitle(someParameter)} And buildTitle calls static function getUIString which calls getResourceManager followed by some string substitution. On Fri, Jun 20, 2008 at 2:59 PM, Gordon Smith [EMAIL PROTECTED] mailto:gosmith%40adobe.com wrote: If you're not using MXML databinding to write code like Button id=b label={resourceManager.getString(...)}/ then you can override the resourcesChanged() method and reassign the new string, as in b.label = resourceManager.getString(...); The ResourceManager works with resources in ResourceBundles, which normally get compiled from .properties files. Are you loading .properties files at runtime and parsing them yourself to get keys and values? In that case, you can create new instances of ResourceBundle at runtime, put your resources into them, and install them into the ResourceManager like this: var rb:ResourceBundle = new ResourceBundle(locale, bundleName); rb.content[key1] = value1; rb.content[key2] = value2; ... resourceManager.addResourceBundle(rb); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 2:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] mailto:gosmith%40adobe.com wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/
Re: [flexcoders] internationalization @ switching runtime
Oops! Sorry, I missed that. On Fri, Jun 20, 2008 at 3:27 PM, Gordon Smith [EMAIL PROTECTED] wrote: ResourceManager's getString() method does parameter substitution. Its signature is public function getString(bundleName:String, resourceName:String, parameters:Array = null, locale:String = null):String Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 3:26 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Thanks. It's not a matter of urgency. I could also imagine passing a globalSettings.localeChanged flag to buildTitle. It might be a nice addition to add a getStringWithSubstitution to ResourceManager, that took a ..rest parameter and called StringUtil.substitute() on the retrieved string. On Fri, Jun 20, 2008 at 3:16 PM, Gordon Smith [EMAIL PROTECTED] wrote: In that case, I don't think the binding expression will re-evaluate when the localeChain changes. It may be easiest to override resourcesChanged(). But you could also try doing some extra work to get the binding expression to re-evaluate. Try putting [Bindable(change)] metadata on your declaration of the buildTitle() method, and arrange for the class buildTitle() is in to redispatch the ResourceManager's change events. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 3:03 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime No, no, I am definitely using the ResourceManager. But the expression is something like text={buildTitle(someParameter)} And buildTitle calls static function getUIString which calls getResourceManager followed by some string substitution. On Fri, Jun 20, 2008 at 2:59 PM, Gordon Smith [EMAIL PROTECTED] wrote: If you're not using MXML databinding to write code like Button id=b label={resourceManager.getString(...)}/ then you can override the resourcesChanged() method and reassign the new string, as in b.label = resourceManager.getString(...); The ResourceManager works with resources in ResourceBundles, which normally get compiled from .properties files. Are you loading .properties files at runtime and parsing them yourself to get keys and values? In that case, you can create new instances of ResourceBundle at runtime, put your resources into them, and install them into the ResourceManager like this: var rb:ResourceBundle = new ResourceBundle(locale, bundleName); rb.content[key1] = value1; rb.content[key2] = value2; ... resourceManager.addResourceBundle(rb); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
Re: [flexcoders] focus out of the flash player
Much better :-) The DEACTIVATE had none of the ambiguity of the FOCUS_OUT. I still had a problem simply closing the dialog when an item-editor was active - seems like there were events still queued which would NPE when they fired after the controls had been deleted. But I worked around that by using the deactivateHandler to raise a flag that told focusOutHandler when it was safe to act. Thanks, - Glenn On Fri, Jun 20, 2008 at 1:56 PM, Alex Harui [EMAIL PROTECTED] wrote: DEACTIVATE event is better -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Glenn Jones *Sent:* Friday, June 20, 2008 6:10 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] focus out of the flash player I have a requirement to dismiss a dialog if the flash player loses focus (e.g. someone clicks outside of the player). I'm using the Flex 2.0.01 SDK (hotfix 3) with IE 7 and Flash Player 9. I've registered a FOCUS_OUT event handler on the stage. That seems to work, but I've run into a case where the event is ambiguous. I've been keying off of if (event.relatedObject == null) //then assume the player's lost focus. The problem is that if my dialog contains a DropDown and the DropDown is opened, then I'm getting an event that also has a null value for relatedObject. I don't want to close the dialog if someone opens a DropDown :-) I've also tried focus-out handlers on the root and the dialog window objects (my dialog is subsclass of TitleWindow), but they have a similar result. Any suggestions? Is there another sort of event that will tell me when the Player has lost focus to the browser or another app? Thanks, Glenn
RE: [flexcoders] Re: Return data to FileReference
Are you saying, complete event is of type flash.events.Event and does not have a data property... because of the docs? (which do not list a data property) Because I am not proposing a theoretical solution, this is operating code. I am a bit confused, though about the event datatypes. While I am listening for flash.events.Event from Filereference, my listener is typing the argument as DataEvent, and no exception is thrown, and I can access the .data property. Per the docs, flash.events.DataEvent.UPLOAD_COMPLETE_DATA http://127.0.0.1:54009/help/nftopic/com.adobe.flexbuilder.help/langref/ flash/events/DataEvent.html#UPLOAD_COMPLETE_DATA is the correct event to use. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 2:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference OK, the problem with your solution is that the FileReference complete event is of type flash.events.Event and does not have a data property and the target is the FileReference. On Fri, Jun 20, 2008 at 2:11 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I just verified it, my handler is working as expected and I can access the xml status node I am having the server return. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:55 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:16 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html# event:uploadCompleteData http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html #event:uploadCompleteData Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question
RE: [flexcoders] Menubar Styling
You can style the MenuBar by setting styles as attributes, or through ActionScript, on the MenuBar directly. To style the menus popped open by the MenuBar, you can loop through them in ActionScript and set styles on the Menu instances as appropriate. To loop through the MenuBar, you can use the getMenuAt() method which returns Menu objects. To figure out how many Menus the MenuBar has, check the length of the MenuBar's menus property. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicholas Watson Sent: Friday, June 20, 2008 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Menubar Styling I have a menubar where I want the items on the menubar to be one color and size, and the items in the drop downs to be another color and style. I can't find any information on doing this. Can someone help me out? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Menubar Styling
Hi Nicholas, The dropdowns are Menu controls, so you can create these styles in your CSS file; or your method of choice for setting styles. MenuBar { fontSize: 14; color: #ff; fontFamily: arial; } Menu { fontSize: 16; color: #ff; rollOverColor: #22; textRollOverColor: #ff9900; selectionColor: #33; textSelectedColor: #ff9900; fontFamily: arial; dropShadowEnabled: true; shadow-direction: right; background-color: #00; background-alpha: 1; border-style: solid; border-color: #4e5968; border-thickness: 2; } You can also get to the individual dropdown menus, to set styles or a styleName, with something like this: myMenuBar.getMenuAt(0).setStyle('color', '#ff'); -TH --- In flexcoders@yahoogroups.com, Nicholas Watson [EMAIL PROTECTED] wrote: I have a menubar where I want the items on the menubar to be one color and size, and the items in the drop downs to be another color and style. I can't find any information on doing this. Can someone help me out?
[flexcoders] Re: Menubar Styling
Good timing. :-) --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: You can style the MenuBar by setting styles as attributes, or through ActionScript, on the MenuBar directly. To style the menus popped open by the MenuBar, you can loop through them in ActionScript and set styles on the Menu instances as appropriate. To loop through the MenuBar, you can use the getMenuAt() method which returns Menu objects. To figure out how many Menus the MenuBar has, check the length of the MenuBar's menus property. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicholas Watson Sent: Friday, June 20, 2008 8:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Menubar Styling I have a menubar where I want the items on the menubar to be one color and size, and the items in the drop downs to be another color and style. I can't find any information on doing this. Can someone help me out? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Return data to FileReference
I'm guessing then that Event.COMPLETE and DataEvent.UPLOAD_COMPLETE_DATA both are the string complete and you just happened to get lucky with a bad naming convention. But that's just a guess. Doug On Fri, Jun 20, 2008 at 4:19 PM, Tracy Spratt [EMAIL PROTECTED] wrote: Are you saying, complete event is of type flash.events.Event and does not have a data property… because of the docs? (which do not list a data property) Because I am not proposing a theoretical solution, this is operating code. I am a bit confused, though about the event datatypes. While I am listening for flash.events.Event from Filereference, my listener is typing the argument as DataEvent, and no exception is thrown, and I can access the .data property. Per the docs, flash.events.DataEvent.UPLOAD_COMPLETE_DATA is the correct event to use. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 2:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference OK, the problem with your solution is that the FileReference complete event is of type flash.events.Event and does not have a data property and the target is the FileReference. On Fri, Jun 20, 2008 at 2:11 PM, Tracy Spratt [EMAIL PROTECTED] wrote: I just verified it, my handler is working as expected and I can access the xml status node I am having the server return. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:55 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html#event:uploadCompleteData Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I guess no one else has run into this before? On Fri, Jun 20, 2008 at 11:03 AM, Rich Tretola [EMAIL PROTECTED] wrote: Here is the situation: I am uploading files from Flex to a Servlet using the FileReferenceList class. Since there is no way to change the filename before it is uploaded, I am passing along a parameter which holds the file name I would like the file to ultimately be saved as. On the server side, all is well. The file is uploaded and then renamed to my parameter name. So my question is, is there a way to pass the new filename back to Flex so that I can access it within the FileReference Event.COMPLETE event listener? Rich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:
[flexcoders] Re: Return data to FileReference
I think he is referring to the two different types of events that you can listen for on a FileReference. 1) Event.COMPLETE which does not have a data property (Event Class) and 2) DataEvent.UPLOAD_COMPLETE_DATA which does have the property (DataEvent Class) Both are in the docs for file reference. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Are you saying, complete event is of type flash.events.Event and does not have a data property... because of the docs? (which do not list a data property) Because I am not proposing a theoretical solution, this is operating code. I am a bit confused, though about the event datatypes. While I am listening for flash.events.Event from Filereference, my listener is typing the argument as DataEvent, and no exception is thrown, and I can access the .data property. Per the docs, flash.events.DataEvent.UPLOAD_COMPLETE_DATA http://127.0.0.1:54009/help/nftopic/com.adobe.flexbuilder.help/langref/ flash/events/DataEvent.html#UPLOAD_COMPLETE_DATA is the correct event to use. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 2:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference OK, the problem with your solution is that the FileReference complete event is of type flash.events.Event and does not have a data property and the target is the FileReference. On Fri, Jun 20, 2008 at 2:11 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I just verified it, my handler is working as expected and I can access the xml status node I am having the server return. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:55 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:16 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference Yes, but that file name is the name that was selected by the user, not the one that the file was actually renamed to by the servlet. On Fri, Jun 20, 2008 at 1:18 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You can get the event.result data in a handler for the uploadCompleteData event. http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html# event:uploadCompleteData http://livedocs.adobe.com/flex/201/langref/flash/net/FileReference.html #event:uploadCompleteData Tracy From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 1:01 PM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re:
RE: [flexcoders] Re: Return data to FileReference
Yeah, I should be using DataEvent.UPLOAD_COMPLETE_DATA, but I am not, I am using Event.COMPLETE, but I am still getting access to the .data Property and am seeing my XML status returned correctly. As Doug pointed out, this may just be a lucky coincidence. At any rate, I think Rich's problem is solved, and I will correct my code to use the the correct event. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Santiago Gonzales Sent: Friday, June 20, 2008 7:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Return data to FileReference I think he is referring to the two different types of events that you can listen for on a FileReference. 1) Event.COMPLETE which does not have a data property (Event Class) and 2) DataEvent.UPLOAD_COMPLETE_DATA which does have the property (DataEvent Class) Both are in the docs for file reference. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Are you saying, complete event is of type flash.events.Event and does not have a data property... because of the docs? (which do not list a data property) Because I am not proposing a theoretical solution, this is operating code. I am a bit confused, though about the event datatypes. While I am listening for flash.events.Event from Filereference, my listener is typing the argument as DataEvent, and no exception is thrown, and I can access the .data property. Per the docs, flash.events.DataEvent.UPLOAD_COMPLETE_DATA http://127.0.0.1:54009/help/nftopic/com.adobe.flexbuilder.help/langref/ http://127.0.0.1:54009/help/nftopic/com.adobe.flexbuilder.help/langref/ flash/events/DataEvent.html#UPLOAD_COMPLETE_DATA is the correct event to use. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Rich Tretola Sent: Friday, June 20, 2008 2:41 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Return data to FileReference OK, the problem with your solution is that the FileReference complete event is of type flash.events.Event and does not have a data property and the target is the FileReference. On Fri, Jun 20, 2008 at 2:11 PM, Tracy Spratt [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I just verified it, my handler is working as expected and I can access the xml status node I am having the server return. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference Hmm, looks like I am just using the Event.COMPLETE event. Its been awhile since I ran this code, let me double check it. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, June 20, 2008 1:55 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Re: Return data to FileReference The event.result should contain whatever your server sends back, just like with a normal httpservice request. Below is the code I am using. I send back an xml status node, but you could send anything: Tracy // Called on upload complete private function onUploadComplete(event:DataEvent):void { var sData:String = event.data; var xmlStatus:XML = XML(sData); if ([EMAIL PROTECTED] == error) { this.height = 200; lbStatus.setStyle(color,red); lbStatus.text = Error Uploading File:; txtError.text = [EMAIL PROTECTED]; sCloseMode = ioerror //_timerStatus.delay = 6000; //_timerStatus.start() } else { _numCurrentUpload++; if (_numCurrentUpload _aUploadFiles.length) { startUpload(false); } else { lbStatus.text = Upload successful; sCloseMode = success _timerStatus.start() } saveProjDoc(); } }//onUploadComplete From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Re: [flexcoders] Verifyed RSL Digests for 3.0.2.2113 for framework caching
Matt, but since Adobe advises to upgrade to 3.0.2 due to a security bulletin, should Adobe provide all major functionalities? Right now we have to pick, the security fix or to be able to use the cache framework. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)
[flexcoders] Re: Need Source code for Character Limit for TextArea....
--- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote: Posting twice, demanding source code for a solution, and telling us you need it ASAP isn't going to do much besides piss people off. We're not here to do your work. If you're in over your head and are going to miss your deadline because you committed to developing with a technology you haven't learned then this is the wrong place to look for someone to bail you out. Sorry for the rant, as we've been discussing on this list lately there have been more and more questions like this. I certainly don't want to come off as being condescending or arrogant, but saying give me source code, I need it now for my deadline gets me a little riled up :) I interpreted it that he wanted to know where in the Framework to look for this functionality so he can learn from the example...
[flexcoders] Re: Repeater items with two states and dataProvider binding resetting state
--- In flexcoders@yahoogroups.com, dave_defusion [EMAIL PROTECTED] wrote: I have a Repeater which is repeating an item with two states (an open state and a closed state), when I open one one of the items I then load some extra data in. When the extra data is loaded the item in the data provider (an array collection) is replaced - that way everything is updated via the bindings. The problem I have is that when the array collection binding fires the Repeater recreates/refreshes each of the items so any that were open close, which is, of course, not what I want. I'll probably have to code this all up myself without using the Repeater, but I wondered if anyone else had any thoughts before I start down that path. One thing that can help in this kind of situation is not to bind, but to explicitly set the dataProvider.
[flexcoders] Re: Reading Inspectable tags in AS - SOLVED
That's it guys! Thanx! --- In flexcoders@yahoogroups.com, Daniel [EMAIL PROTECTED] wrote: Hey guys, I'm trying read the Inspectable metadata tag of the properties of certain components in run time. The idea is when the user clicks a component, the application shows all the variables with Inspectable tags, and the information written in it. I already tried the flash.utils.describeType way, but the only metadata I can access is Bindable. Is there a way of doing this?
[flexcoders] easing scrollbar
Is there any way to apply easing to a scrollbar? -e
[flexcoders] Re: internationalization @ switching runtime
A trick that I have used in this case (when overriding resourcesChanged is inconvenient) is to add a property to your whatever.properties file that has no value but accepts a parameter like the following. eval = {0} Then, in your mxml component, do something like the following. mx:Label text={resourceManager.getString('whatever','eval',[buildTitle(someParameter)])}/ This will reevaluate when the locale is changed, and the eval property will simply pass through the new value. Voila! -Brent --- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote: No, no, I am definitely using the ResourceManager. But the expression is something like text={buildTitle(someParameter)} And buildTitle calls static function getUIString which calls getResourceManager followed by some string substitution. On Fri, Jun 20, 2008 at 2:59 PM, Gordon Smith [EMAIL PROTECTED] wrote: If you're not using MXML databinding to write code like Button id=b label={resourceManager.getString(...)}/ then you can override the resourcesChanged() method and reassign the new string, as in b.label = resourceManager.getString(...); The ResourceManager works with resources in ResourceBundles, which normally get compiled from .properties files. Are you loading .properties files at runtime and parsing them yourself to get keys and values? In that case, you can create new instances of ResourceBundle at runtime, put your resources into them, and install them into the ResourceManager like this: var rb:ResourceBundle = new ResourceBundle(locale, bundleName); rb.content[key1] = value1; rb.content[key2] = value2; ... resourceManager.addResourceBundle(rb); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Friday, June 20, 2008 2:37 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] internationalization @ switching runtime Gordon, Forgive me (or ignore this) if it's in the docs. Does this assume that the ResourceManager.getString call is in the binding expression? Currently I have some static utilities that load strings like Hello, {0} from properties files and then do parameter substitution. I've been wondering how that would work out in a runtime locale switching scenario. On Fri, Jun 20, 2008 at 2:14 PM, Gordon Smith [EMAIL PROTECTED] wrote: You want to learn about the ResourceManager class in Flex 3. It allows you to simply change its localeChain property at runtime and have the entire application redraw in a new language. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of artur_desig2dev Sent: Friday, June 20, 2008 6:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] internationalization @ switching runtime forgive my newbie question.. just wanted to find out the best practice on this to date. on how to change all the components' language at runtime. i found 2 methods of doing this: http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ http://www.herrodius.com/blog/123 http://flexme.wordpress.com/2007/07/11/internationalization-in-flex/ thanks
[flexcoders] Re: How to compose a super tree item renderer using TreeItemRenderer and others
Fine. Can you just show me a simple example of how to Just add the label when you subclass. Real code is most convincing and helpful to me. And you blog is cool, but it just seems not so easy to dig up the specific snippet I need in a short time. Thank you again. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: There are no hard rules here. I'm a code minimalist and don't like adding layers of code and display object parents unless it is really important. Adding one child is not worthy of another layer IMHO, so I'd just subclass, and I don't see why such a subclass wouldn't be reusable. See the examples on my blog (blogs.adobe.com/aharui). The more stuff you add, the slower things get and more memory they take. MXML is convenient, but not as efficient. It's up to you. If you do composite, the trick should be propagating the data object from the container to the children. Also, you should never call addChild in a constructor. We have a component lifecycle documented for performance reasons.