RE: [flexcoders] Automatically scrolling a TextArea to the very bottom?
You could for example set up an event listener that listens to the FlexEvent.UPDATE_COMPLETE event. That one is triggered every time the TextArea is visually updated (The Change event only fires when using data binding or interacting with the component) . addEventListener(FlexEvent.UPDATE_COMPLETE, onUpdateComplete); and the triggered method would look like this . private function onUpdateComplete(event:FlexEvent):void { textArea.verticalScrollPosition = textArea.textHeight; } If you write a custom textArea component and put this code in it, you also have to use validateNow() at the beginning in the triggered method. Hth, Sascha _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Saturday, 06 January, 2007 16:52 To: flexcoders@yahoogroups.com Subject: [flexcoders] Automatically scrolling a TextArea to the very bottom? Hello All, I am trying to find the common methods, when comparing the TextArea from Flash 8 to the TextArea from Flex 2.0 - In my Flash App, whenever I wanted to scroll my TextArea all the way to the bottom, I used the following code: myTextArea.vPosition = myTextArea.maxVPosition; I am trying to sift through the Properties and Methods of the Flex version, and I am not entirely sure how to accomplish this. Could any of you point me in the right direction? Thanks in advance for all your help, Mike
[flexcoders] Re: Cairngorm FMS
Ah, there we go...very cool! Having the NetConnection as service that creates a SharedObjectListener class dispatching Cairngorm-events is looking good and also feels Cairngormy enough for me now ; ) Thx a bunch, mate carsten --- In flexcoders@yahoogroups.com, michael.ritchie [EMAIL PROTECTED] wrote: Ah, man, totally gave you the wrong information, sorry about that. I posted another project that does use Flex/FMS/Cairngorm. The project won't run out of the box, you need to have FMS and CF running locally, but you can walk through the structure. Thanks man! http://thanksmister.com/?p=39 Michael Ritchie AOL Xdrive --- In flexcoders@yahoogroups.com, carkraus carsten.kraus@ wrote: Hey Michael, actually I stumbled upon your nice article before posting on flexcoders already : ) It helped me getting started with Flex/FMS at all, so thx anyway!! But: your example is not using Cairngorm at all, or am I missing something? Regards carsten --- In flexcoders@yahoogroups.com, Michael Ritchie xmritchie@ wrote: Carsten, I built out a small chat application using Cairngorm, Flex and FMS a while back. I chose to create some public functions to receive the callback methods from the NetConnection and SharedObject. I had to struggled with to make it feel right in the Cairngorm architecture, but I think its a good solution. Remember, Cairngorm is a meant to be modified to fit your needs, it is not engraved in stone that everything must fit in the current architecture. Have a look and see if it helps at all. You can find the sample zip file here: http://thanksmister.com/?p=26 Michael Ritchie Senior Software Engineer AOL Xdrive --- In flexcoders@yahoogroups.com, carkraus carsten.kraus@ wrote: Hi Thijs, while nc = new NetConnection() is defined in my main application, right now, I actually connect to FMS inside the command layer, ie. in LoginCommand. Here, inside execute() I register listeners to ie. LoginCommand.onAccept(...). So: the business / service layer is not used at all at the moment...thus, I feel like not following Cairngorm best practice. Also I guess using SharedObjects lateron would really benefit from the frameworks workflow. Here�s another thread on the issue: http://tech.groups.yahoo.com/group/flexcoders/message/59795, which I commented on. No answer yet, though. regards carsten --- In flexcoders@yahoogroups.com, Thijs Triemstra lists@ wrote: Where do you create the NetConnection? I want to use Cairngorm for a Red5 test app [1] and was thinking of adding NetConnection support to the ServiceLocator. Cairngorm's ServiceLocator supports http, remoteobject, webservice and fds but i don't see FMS/netconnection support.. Maybe NetStream can also be in ServiceLocator and the result from netconnection calls could then be handled by a command's result handler.. I don't know yet how to catch the status events though.. this.service = ServiceLocator.getInstance().getNetConnection( red5 ); this.service = ServiceLocator.getInstance().getNetStream( my_ns ); Thijs [1] http://www.red5.nl/tools/publisher Op 31-dec-2006, om 18:10 heeft carkraus het volgende geschreven: Hi all, I´m looking for a good way to use NetStatus events SharedObjects onSync-data inside the Cairngorm framework. Right now, I´m treating these in the Command layer, which I feel is not really making sense too much. Can anybody provide me with some help, links to resources or similar? Thx for any hint happy new year everyone : ) carsten
[flexcoders] Re: It's possibile in flex
but about you it's possibile only using Flex tag? Devis --- In flexcoders@yahoogroups.com, devisbalsemin [EMAIL PROTECTED] wrote: Thanks i have found this http://demo.quietlyscheming.com/displayShelf/index.html but it's not the same. Where i can found about that effect or similar as the effect panel in effectiveui.com it's very good. Devis --- In flexcoders@yahoogroups.com, oliver langan oliver@ wrote: --- In flexcoders@yahoogroups.com, devisbalsemin devisbalsemin@ wrote: Hi to all, it's possibile to write it in Flex 2 (a love the box scrool) http://www.effectiveui.com/ Can you help me pls Devis Yes, it would be possible to do that. Maybe not easy (and no, I can't help you with it), but it definitely looks well within the realm of Flex's capabilities. o
Re: [flexcoders] Re: Flex 2 for Mac Release Coming Within 7 Days
Great news! Now, the missing piece is the Linux version! I'm on Ubuntu right now and I would be willing to pay the price for a native Linux version of Flex2 and Flash9 IDE as I don't really feel like using Windows again. Marcelo. On 1/4/07, Robert Chyko [EMAIL PROTECTED] wrote: Thanks for the links Dan, I'm usually on top of this stuff... must be the time off for the holidays that got me, but I never saw Ted's countdown. thanks again -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *DannyT *Sent:* Thursday, January 04, 2007 3:20 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Flex 2 for Mac Release Coming Within 7 Days More info here: http://blogs.zdnet.com/Stewart/?p=213 and here: http://www.onflex.org/ted Flex 2.0.1 is actually quite an important release, the small release number is somewhat deceptive. Either that or Adobe are planning lots more which would be great. Dan On 04/01/07, Robert Chyko [EMAIL PROTECTED] wrote: i'm assuming it is referring to http://blogs.adobe.com/rgonzalez/flex/ scan down, there are a few posts relating to the use of modules -Original Message- *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On Behalf Of *Kevin Newman *Sent:* Thursday, January 04, 2007 12:13 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Flex 2 for Mac Release Coming Within 7 Days What's a module tag? Hopefully it has something to do with John's space ship. :-) Thanks, Kevin N. imjustlar wrote: I have heard that the Mac version includes the module tag. If that is in fact true would it be safe to assume that there may be an update for the Windows version (2.01 perhaps)? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com , Paul Whitelock [EMAIL PROTECTED] wrote: I received the reply copied below regarding the problem that I had with the beta for Flex 2 Mac expiring unexpectedly and thought I'd pass it on. Paul --- Paul Whitelock Denver, Colorado Hi, The commercial version of Flex Builder for the Mac will be available within the next 7 days, so your problem should be solved shortly. Sorry for the slight gap. I hope you are enjoying Flex ;-) Phil Costa Group Product Manager, Flex -- http://danny-t.co.uk
[flexcoders] CRUD in XML
Hi, can you help me to find some example how to implment Flex 2 CRUD with xml file??? Thanks devis
[flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
And I stand PARTIALLY Corrected. Yes there is the bug list and the list of new features, but while the COMPILER options show the syntax and examples, the two big feature enhancements runtime stylesheet and modules both have a sentence without showing the syntax and / or examples. Where is one supposed to learn about them? Bruce --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Fixed bugs? http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#fixedbugs http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#fixedbugs what's new (like new properties and stuff like that)? http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#whatsnew http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#whatsnew all at adobe website...and not at someones blog... João Fernandes On 06/01/07, boy_trike [EMAIL PROTECTED] wrote: Its great that there is an upgrade to 2.0.1 So where is the READ ME telling us about the changes. (oh yea, you can find a web page that tells you that there is something called modules and you can now change style sheets dynamically. but where are: 1). The examples 2). The new syntax changes 3). The list of the 250 bugs that are fixed (or are we supposed to guess which ones they got?) We should NOT have to find out about these features on someones blog. This seems very amateurish to me. Bruce -- João Fernandes
[flexcoders] Remote Objects Java to Actionscript conversion
I have a java class I created that contains an ArrayList as one of the i-vars. I am trying access this class as a remote object but when I receive it on the client side in ActionScript the ArrayList parameter is null even though I am printing it's contents on the server just before returning and it is not showing as null before it goes through the flex gateway. And the other parameters within my class (String,int) are coming through just fine. I am receiving it on the ActionScript side as an ArrayCollection. Am I not allowed to send an ArrayList in this way from java to ActionScript? Could anyone please help? Much appreciated. Thanks, Chris
RE: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
Hello, Have you tried the help system? The new functionality is documented. Regards David From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike Sent: Saturday, January 06, 2007 8:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade And I stand PARTIALLY Corrected. Yes there is the bug list and the list of new features, but while the COMPILER options show the syntax and examples, the two big feature enhancements runtime stylesheet and modules both have a sentence without showing the syntax and / or examples. Where is one supposed to learn about them? Bruce --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , João Fernandes [EMAIL PROTECTED] wrote: Fixed bugs? http://www.adobe.com/support/documentation/en/flex/2/ http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#fixedbugs http://www.adobe.com/support/documentation/en/flex/2/ http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#fixedbugs what's new (like new properties and stuff like that)? http://www.adobe.com/support/documentation/en/flex/2/ http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#whatsnew http://www.adobe.com/support/documentation/en/flex/2/ http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#whatsnew all at adobe website...and not at someones blog... João Fernandes On 06/01/07, boy_trike [EMAIL PROTECTED] wrote: Its great that there is an upgrade to 2.0.1 So where is the READ ME telling us about the changes. (oh yea, you can find a web page that tells you that there is something called modules and you can now change style sheets dynamically. but where are: 1). The examples 2). The new syntax changes 3). The list of the 250 bugs that are fixed (or are we supposed to guess which ones they got?) We should NOT have to find out about these features on someones blog. This seems very amateurish to me. Bruce -- João Fernandes
[flexcoders] flexbuilder 2.0.1 css editor support
What happened to the css editor support in flexbuilder 2.0.1? before with version 2 you had code hinting for css file, now after updating to version 2.0.1 doesn't work anymore.
Re: [flexcoders] flexbuilder 2.0.1 css editor support
Still works for me on the Mac version of Flex Builder 2.0.1. Are you editing an external CSS file or inline? Brian On 1/6/07, Paolo Bernardini [EMAIL PROTECTED] wrote: What happened to the css editor support in flexbuilder 2.0.1? before with version 2 you had code hinting for css file, now after updating to version 2.0.1 doesn't work anymore. -- Brian Dunphy
Re: [flexcoders] flexbuilder 2.0.1 css editor support
Hi Brian, I'm using windows and trying to edit an external css file. On 1/6/07, Brian Dunphy [EMAIL PROTECTED] wrote: Still works for me on the Mac version of Flex Builder 2.0.1. Are you editing an external CSS file or inline? Brian On 1/6/07, Paolo Bernardini [EMAIL PROTECTED]bernardini.paolo%40gmail.com wrote: What happened to the css editor support in flexbuilder 2.0.1? before with version 2 you had code hinting for css file, now after updating to version 2.0.1 doesn't work anymore. -- Brian Dunphy
Re: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
Patience is a virtue, Bruce. I'm sure they'll get there. - Original Message - From: boy_trike [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 06, 2007 1:24 PM Subject: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade And I stand PARTIALLY Corrected. Yes there is the bug list and the list of new features, but while the COMPILER options show the syntax and examples, the two big feature enhancements runtime stylesheet and modules both have a sentence without showing the syntax and / or examples. Where is one supposed to learn about them? Bruce --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Fixed bugs? http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#fixedbugs http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#fixedbugs what's new (like new properties and stuff like that)? http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#whatsnew http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#whatsnew all at adobe website...and not at someones blog... João Fernandes On 06/01/07, boy_trike [EMAIL PROTECTED] wrote: Its great that there is an upgrade to 2.0.1 So where is the READ ME telling us about the changes. (oh yea, you can find a web page that tells you that there is something called modules and you can now change style sheets dynamically. but where are: 1). The examples 2). The new syntax changes 3). The list of the 250 bugs that are fixed (or are we supposed to guess which ones they got?) We should NOT have to find out about these features on someones blog. This seems very amateurish to me. Bruce -- João Fernandes -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Max OS X Flex Builder 2.01 License Issue
Hi, I down loaded the OS X release of Flex Builder 2 and installed it but it does not like my Windows license. Does anyone know whether there will be some sort of license exchange available? My charting license worked fine though. I bought the Windows version to bridge the gap until the OS X version was available. As soon as the Mac beta was out I switched and have not looked back. Don't tell me that I am going to have to fork out another 500 bucks just to be able to work on my operating system of choice... Regards, -bill
[flexcoders] Re: Max OS X Flex Builder 2.01 License Issue
Bill, You need to call into customer support to exchange your license. Info here: http://www.adobe.com/products/flex/productinfo/faq/#item-39 Phil --- In flexcoders@yahoogroups.com, Bill Gercken [EMAIL PROTECTED] wrote: Hi, I down loaded the OS X release of Flex Builder 2 and installed it but it does not like my Windows license. Does anyone know whether there will be some sort of license exchange available? My charting license worked fine though. I bought the Windows version to bridge the gap until the OS X version was available. As soon as the Mac beta was out I switched and have not looked back. Don't tell me that I am going to have to fork out another 500 bucks just to be able to work on my operating system of choice... Regards, -bill
[flexcoders] Re: Max OS X Flex Builder 2.01 License Issue
Thanks Phil! Sorry I did not see the information on the Adobe site. Regards, -bill --- In flexcoders@yahoogroups.com, Phil Costa [EMAIL PROTECTED] wrote: Bill, You need to call into customer support to exchange your license. Info here: http://www.adobe.com/products/flex/productinfo/faq/#item-39 Phil --- In flexcoders@yahoogroups.com, Bill Gercken bgercken@ wrote: Hi, I down loaded the OS X release of Flex Builder 2 and installed it but it does not like my Windows license. Does anyone know whether there will be some sort of license exchange available? My charting license worked fine though. I bought the Windows version to bridge the gap until the OS X version was available. As soon as the Mac beta was out I switched and have not looked back. Don't tell me that I am going to have to fork out another 500 bucks just to be able to work on my operating system of choice... Regards, -bill
Re: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
Bruce, As Dave Mendels points out, The new functionality is documented. Also as Dave and Ben have pointed out, when you install FB2.0.1 you will find the updated docs in the help system. You can also download PDFs of the updated doc from the Flex 2 Documentation page: http://www.adobe.com/support/documentation/en/flex/ Regarding Modules, I have already printed out the 13 pages of Chapter 31 from the updated Flex 2 Developer's Guide. The chapter is on Creating Modular Applications. For more good stuff on Modules, see Roger Gonzalez's blog for his slides and demos from MAX: http://blogs.adobe.com/rgonzalez/2006/11/my_max_preso.html For references on runtime stylesheets, how about you RTM and post back on this thread what you find (or still don't find). NOTE: One place you will not yet find the 2.0.1 docs is ... livedocs.macromedia.com! But hopefully LiveDocs will be getting the updated docs soon ;-) Bruce, in the future if you think something is not right, could you please first ask about it politely? You are a great voice on this forum, so please don't hold back. But fwiw, the initial subject line that you chose was heavy handed. When you are frustrated, before broadcasting harsh assumptions, please first test them a bit more thoughtfully. Please also remember that there are real people, who work real hard (even through the holidays), to bring you insanely great products and support. And that when one of the customers that they work so hard to make all this magic happen for doesn't initially get it, they can not but feel a little hurt when overly harsh accusations are made in public forums. Personally, I think that this moment genuinely is a moment of great triumph for the Flex team. I want to thank Adobe, and all of the amazing people at Adobe for creating and fine tuning these truly amazing tools that I know I am going to be building solutions with for decades to come. Regarding the 2.0.1 release, I say BRAVO!!! peace, g P.S. The Flex team really is spending a lot of time listening to customers. After you have had a week or so to get oriented on the 2.0.1release, please do write up a bullet point list of your suggestions of how the release could have been even more amazing, and then share it with this list or the members of the product team directly. If you do, I am sure that they will listen, take your thoughts into account, and will try use it to improve everyone's experiences in future releases. Lastly, if you think there are issues with Flex 2.0.1 documentation, just try using an open source project sometime. After using open source, I now justify all of my licensing costs for Adobe products on the value of their world class documentation alone ;-) On 1/6/07, boy_trike [EMAIL PROTECTED] wrote: And I stand PARTIALLY Corrected. Yes there is the bug list and the list of new features, but while the COMPILER options show the syntax and examples, the two big feature enhancements runtime stylesheet and modules both have a sentence without showing the syntax and / or examples. Where is one supposed to learn about them? Bruce --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: Fixed bugs? http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#fixedbugs http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#fixedbugs what's new (like new properties and stuff like that)? http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex201_sdk.html#whatsnew http://www.adobe.com/support/documentation/en/flex/2/ releasenotes_flex2_fds.html#whatsnew all at adobe website...and not at someones blog... João Fernandes On 06/01/07, boy_trike [EMAIL PROTECTED] wrote: Its great that there is an upgrade to 2.0.1 So where is the READ ME telling us about the changes. (oh yea, you can find a web page that tells you that there is something called modules and you can now change style sheets dynamically. but where are: 1). The examples 2). The new syntax changes 3). The list of the 250 bugs that are fixed (or are we supposed to guess which ones they got?) We should NOT have to find out about these features on someones blog. This seems very amateurish to me. Bruce -- João Fernandes
Re: [flexcoders] CRUD in XML
devis, Could you please provide a bit more detail about what you are trying to do? CRUD is an acronym usually associated with the database operations INSERT, SELECT, UPDATE and DELETE. When you ask for some example how to implement Flex 2 CRUD with xml file??? what do you mean? Have you looked at the Flex 2 documentation sections on: - The E4X approach to XML processing http://livedocs.macromedia.com/flex/201/html/13_Working_with_XML_169_03.html - Working with XML http://livedocs.macromedia.com/flex/201/html/13_Working_with_XML_169_01.html g On 1/6/07, devisbalsemin [EMAIL PROTECTED] wrote: Hi, can you help me to find some example how to implment Flex 2 CRUD with xml file??? Thanks devis
Re: [flexcoders] Re: It's possibile in flex
Devis, From what I have seen, at present experiences like the effectiveui.com home page take a bit of ActionScripting in addition to using tags. Maybe when Adobe ships Flex 3 (or 4) they will have these type of experiences distilled down into MXML tags ;-) fwiw, my guess is that effectiveui.com is done in Flex. And the point of their home page is to sell their services to people and companies that want similar cinematic experiences in their applications and websites. For now, you should consider UIs like effectiveui.com to be advanced topics for Flex 2 development. btw ... for creating Cinematic Experiences with Flex your reference to Ely's DisplayShelf Component is a great source. And Ely did put up a tutorial on it with full source code downloadable at: www.quietlyscheming.com/blog/components/tutorial-displayshelf-component/ www.quietlyscheming.com/blog/2006/11/01/using-the-graphics-api-for-richer-flex-the-displayshelf-component-from-my-max-talk/ Another great source regarding creating Cinematic Experiences with Flex is from another Adobe employee Alex Uhlmann. Alex has put up source code and a PDF presentation on his work at the following link: http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.cfm You can get another perspective on Alex's work here too: http://www.flashmagazine.com/1340.htm hth, g On 1/6/07, devisbalsemin [EMAIL PROTECTED] wrote: but about you it's possibile only using Flex tag? Devis --- In flexcoders@yahoogroups.com, devisbalsemin [EMAIL PROTECTED] wrote: Thanks i have found this http://demo.quietlyscheming.com/displayShelf/index.html but it's not the same. Where i can found about that effect or similar as the effect panel in effectiveui.com it's very good. Devis
Re: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
Lastly, if you think there are issues with Flex 2.0.1 documentation, just try using an open source project sometime. After using open source, I now justify all of my licensing costs for Adobe products on the value of their world class documentation alone ;-) Uh-ooh.. Now you're being a bit harsh yourself, aren't you? ;) Open source projects all have poor documentation? While we're at it, where are the SWF9, RTMP and AMF3 specs? I agree with you that the Flex 2 documentation is very good though. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
Re: [flexcoders] CRUD in XML
You'd probably be better off to use Remoting to implement CRUD in Flex. Search for RemoteObject on Google and you should find a variety of resources. Patrick greg h a écrit : devis, Could you please provide a bit more detail about what you are trying to do? CRUD is an acronym usually associated with the database operations INSERT, SELECT, UPDATE and DELETE. When you ask for some example how to implement Flex 2 CRUD with xml file??? what do you mean? Have you looked at the Flex 2 documentation sections on: * The E4X approach to XML processing http://livedocs. macromedia. com/flex/ 201/html/ 13_Working_ with_XML_ 169_03.html http://livedocs.macromedia.com/flex/201/html/13_Working_with_XML_169_03.html * Working with XML http://livedocs. macromedia. com/flex/ 201/html/ 13_Working_ with_XML_ 169_01.html http://livedocs.macromedia.com/flex/201/html/13_Working_with_XML_169_01.html g On 1/6/07, *devisbalsemin* devisbalsemin@ yahoo.com mailto:[EMAIL PROTECTED] wrote: Hi, can you help me to find some example how to implment Flex 2 CRUD with xml file??? Thanks devis
[flexcoders] Re: It's possibile in flex
SORRY I HAVE BROKEN MY LAST POST ;-) THANKS Alex Uhlmann IT'S VERY GREAT. bye Devis --- In flexcoders@yahoogroups.com, greg h [EMAIL PROTECTED] wrote: Devis, From what I have seen, at present experiences like the effectiveui.com home page take a bit of ActionScripting in addition to using tags. Maybe when Adobe ships Flex 3 (or 4) they will have these type of experiences distilled down into MXML tags ;-) fwiw, my guess is that effectiveui.com is done in Flex. And the point of their home page is to sell their services to people and companies that want similar cinematic experiences in their applications and websites. For now, you should consider UIs like effectiveui.com to be advanced topics for Flex 2 development. btw ... for creating Cinematic Experiences with Flex your reference to Ely's DisplayShelf Component is a great source. And Ely did put up a tutorial on it with full source code downloadable at: www.quietlyscheming.com/blog/components/tutorial-displayshelf-component/ www.quietlyscheming.com/blog/2006/11/01/using-the-graphics-api-for-richer-flex-the-displayshelf-component-from-my-max-talk/ Another great source regarding creating Cinematic Experiences with Flex is from another Adobe employee Alex Uhlmann. Alex has put up source code and a PDF presentation on his work at the following link: http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.cfm You can get another perspective on Alex's work here too: http://www.flashmagazine.com/1340.htm hth, g On 1/6/07, devisbalsemin [EMAIL PROTECTED] wrote: but about you it's possibile only using Flex tag? Devis --- In flexcoders@yahoogroups.com, devisbalsemin devisbalsemin@ wrote: Thanks i have found this http://demo.quietlyscheming.com/displayShelf/index.html but it's not the same. Where i can found about that effect or similar as the effect panel in effectiveui.com it's very good. Devis
[flexcoders] Re: It's possibile in flex
THANKS... YES Alex Uhlmann --- In flexcoders@yahoogroups.com, greg h [EMAIL PROTECTED] wrote: Devis, From what I have seen, at present experiences like the effectiveui.com home page take a bit of ActionScripting in addition to using tags. Maybe when Adobe ships Flex 3 (or 4) they will have these type of experiences distilled down into MXML tags ;-) fwiw, my guess is that effectiveui.com is done in Flex. And the point of their home page is to sell their services to people and companies that want similar cinematic experiences in their applications and websites. For now, you should consider UIs like effectiveui.com to be advanced topics for Flex 2 development. btw ... for creating Cinematic Experiences with Flex your reference to Ely's DisplayShelf Component is a great source. And Ely did put up a tutorial on it with full source code downloadable at: www.quietlyscheming.com/blog/components/tutorial-displayshelf-component/ www.quietlyscheming.com/blog/2006/11/01/using-the-graphics-api-for-richer-flex-the-displayshelf-component-from-my-max-talk/ Another great source regarding creating Cinematic Experiences with Flex is from another Adobe employee Alex Uhlmann. Alex has put up source code and a PDF presentation on his work at the following link: http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.cfm You can get another perspective on Alex's work here too: http://www.flashmagazine.com/1340.htm hth, g On 1/6/07, devisbalsemin [EMAIL PROTECTED] wrote: but about you it's possibile only using Flex tag? Devis --- In flexcoders@yahoogroups.com, devisbalsemin devisbalsemin@ wrote: Thanks i have found this http://demo.quietlyscheming.com/displayShelf/index.html but it's not the same. Where i can found about that effect or similar as the effect panel in effectiveui.com it's very good. Devis
Re: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
NOTE: One place you will not yet find the 2.0.1 docs is ... livedocs.macromedia.com! But hopefully LiveDocs will be getting the updated docs soon ;-) I guess it is ... but the link is not published ... tried changing 2 to 201 and it worked ... maybe it is not ready for release but anyways ... http://livedocs.macromedia.com/flex/201/langref/index.html
Re: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
NOTE: One place you will not yet find the 2.0.1 docs is ... livedocs.macromedia.com! But hopefully LiveDocs will be getting the updated docs soon ;-) I guess it is ... but the link is not published ... tried changing 2 to 201 and it worked ... maybe it is not ready for release but anyways ... http://livedocs.macromedia.com/flex/201/langref/index.html
Re: [flexcoders] RPC Pro's and Cons
Use AMF. http://www.jamesward.org/census/ AMF is much faster. WebORB is cheaper than FDS and has more features. We've used the current version of WebORB it works nice. For 10K/socket WebORB for .NET Enterprise supports AMF3 RemoteObjects, RTMP data pub/sub as well as Media Streaming. Adobe's FDS is 20K/phyical socket and I think FMS(Media Streaming) is like 5K / box? (You'd have to contact Adobe sales for the pricing for the edge edition of FMS which would be the equivalent to WebORB's unlimited Media Streaming connection model.) If you're just looking for RemoteObject support then there''s WebORB Pro for 2K / phsyical. WebORB Enterprise/Professional doesn't support Java/ColdFusion however. This was done on purpose to stay out of Adobe's FDS Java space. If you go with Java you need FDS. Can get a trail version here. http://www.themidnightcoders.com/weborb/ Incidentally the developer mode (which is the default trial mode if you install the trail) allows 5 IP addresses per iisreset which is great for deploying to dev and test. On 1/4/07, jeofmoyster [EMAIL PROTECTED] wrote: I'm looking for any information on why FDS is better than HTTPService or WebService. Or better phrased, WHEN would one prefer FDS over the other two for reasons other than publish/subscription? I'm working on determining the best way to go with an architecture. I can tie Flex applications to Java, .NET or PHP API's for our back-end systems, but I'm wondering whether to go with a home-grown approach/WebORB vs. FDS? Does serving Flex apps from the FDS server reduce bandwidth or make for more efficient delivery? Is polling really terribly detrimental compared to data pushing? Is FDS amazingly faster, better, stronger than going with a free option. How much can an FDS server take before we need to build out the architecture? Basically I need to have a good list of WHY we should use Flex Data Services before I start dropping hundreds of thousands of dollars on the architecture. thanks, /j
RE: [flexcoders] flexbuilder 2.0.1 css editor support
I have similar problems with 2.0. With around 6-7 installations of the Flex builder plugin for eclipse about half of them have this exact problem with the other half working fine. I would be really interested to hear if you or anyone can finds out why this happens... it is a real pain! Lance From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paolo Bernardini Sent: Saturday, January 06, 2007 9:28 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] flexbuilder 2.0.1 css editor support Hi Brian, I'm using windows and trying to edit an external css file. On 1/6/07, Brian Dunphy [EMAIL PROTECTED] wrote: Still works for me on the Mac version of Flex Builder 2.0.1. Are you editing an external CSS file or inline? Brian On 1/6/07, Paolo Bernardini [EMAIL PROTECTED] mailto:bernardini.paolo%40gmail.com wrote: What happened to the css editor support in flexbuilder 2.0.1? before with version 2 you had code hinting for css file, now after updating to version 2.0.1 doesn't work anymore. -- Brian Dunphy
[flexcoders] Docs included in 2.0.1 are broken
I assume this is a local copy of the Flex2 Language Reference C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\asdoc\templates By using index.html I get missing file errors such as: /C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/asdoc/templates/package-summary.html. package-summary.xsl exists, but no html. I'm not sure if this is supposed to be a usable local copy of the docs or not. Also not sure if this worked in the original version of Flex2 -- Collin Peters Lead Software Developer
RE: [flexcoders] Docs included in 2.0.1 are broken
No, these are templates for ASDoc which seems to be now included in Flex. I believe the Flex docs are packed in jars in the Eclipse PlugIn folder (on plugin version that is, no clue about the full builder version). Sascha _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Collin Peters Sent: Sunday, 07 January, 2007 06:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] Docs included in 2.0.1 are broken I assume this is a local copy of the Flex2 Language Reference C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\asdoc\templates By using index.html I get missing file errors such as: /C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/asdoc/templates/package-summary.html. package-summary.xsl exists, but no html. I'm not sure if this is supposed to be a usable local copy of the docs or not. Also not sure if this worked in the original version of Flex2 -- Collin Peters Lead Software Developer
Re: [flexcoders] Remote Objects Java to Actionscript conversion
It's probably being deserialized on the actionscript side as an Array. Try changing the type from an ArrayCollection to an Array. On 1/5/07, Raider226 [EMAIL PROTECTED] wrote: I have a java class I created that contains an ArrayList as one of the i-vars. I am trying access this class as a remote object but when I receive it on the client side in ActionScript the ArrayList parameter is null even though I am printing it's contents on the server just before returning and it is not showing as null before it goes through the flex gateway. And the other parameters within my class (String,int) are coming through just fine. I am receiving it on the ActionScript side as an ArrayCollection. Am I not allowed to send an ArrayList in this way from java to ActionScript? Could anyone please help? Much appreciated. Thanks, Chris
Re: [flexcoders] How to clear a TileList of its items?
I would try any new non-null complex type: new Object(); new Array(); new ArrayCollection(); On 1/5/07, Sascha [EMAIL PROTECTED] wrote: I'm trying to initialize a TileList after items were put into it so that it is empty again and I can load new items into it after that. I'm setting the TileList dataprovider to null but when I then try to load new items into it, it gives me an exception: Parameter child must be non-null. What would I have to do additionally to properly initialize the TileList? Sascha
[flexcoders] Submenus that open up to the left
Hello, I have a menu that is aligned to the right side of the screen which doesn't leave any screen real-estate for submenus so I'd like to have my submenus open up to the left. As an example, Windows Media Player does their application menus this way if you access it with the down button next to window minimize/maximize icons. Here is a screenshot: http://aycu22.webshots.com/image/8101/2000880980537753248_rs.jpg I looked into openSubMenu function of Menu but can't seem to get over the mx_internal issues and don't know where to get row to pass into it. override mx_internal function openSubMenu(row:IListItemRenderer):void There must be an easier solution. GP
Re: [flexcoders] Flex + Struts
Am Donnerstag, 4. Januar 2007 19:28 schrieb Dimitrios Gianninas: Note: I am no struts expert. 1) Download FDS express and install on your PC. Extract the flex.war and then take everything in the web.xml and it to your own. Then take everything in WEB-INF/lib and WEB-INF/flex and add it your app. Create a simple helloworld.mxml and try to see if it work via your browser. If it does then everything is working. You don't need everything when compiling SWFs local. Here are my settings for FDS/Remoting with already compiled SWFs (no AS and MXML files on the server): webx.xml: [...] context-param param-nameflex.class.path/param-name param-value/WEB-INF/lib/param-value /context-param listener listener-classflex.messaging.HttpFlexSession/listener-class /listener servlet servlet-nameMessageBrokerServlet/servlet-name servlet-classflex.messaging.MessageBrokerServlet/servlet-class init-param param-nameservices.configuration.file/param-name param-value/WEB-INF/flex/services-config.xml/param-value /init-param init-param param-nameflex.write.path/param-name param-value/WEB-INF/flex/param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/messagebroker/*/url-pattern /servlet-mapping [...] pom.xml: [...] !-- flex -- dependency groupIdflex/groupId artifactIdflex-messaging/artifactId version2.0/version /dependency dependency groupIdflex/groupId artifactIdflex-messaging-common/artifactId version2.0/version /dependency dependency groupIdflex/groupId artifactIdflex-messaging-opt/artifactId version2.0/version /dependency dependency groupIdflex/groupId artifactIdflex-messaging-req/artifactId version2.0/version /dependency !-- flex commons -- dependency groupIdcommons-codec/groupId artifactIdcommons-codec/artifactId version1.3/version /dependency dependency groupIdcommons-httpclient/groupId artifactIdcommons-httpclient/artifactId version3.0.1/version /dependency dependency groupIdcommons-logging/groupId artifactIdcommons-logging/artifactId version1.0.4/version /dependency !-- flex concurrent -- dependency groupIdbackport-util-concurrent/groupId artifactIdbackport-util-concurrent/artifactId version2.2/version /dependency dependency groupIdconcurrent/groupId artifactIdconcurrent/artifactId version1.3.4/version /dependency !-- flex jta -- dependency groupIdjotm/groupId artifactIdjotm/artifactId version2.0.10/version /dependency [...] Put the Flex jars in your local Maven2 repository. If you don't use m2 copy the jars to WEB-INF/lib. JOTM is for use with Tomcat (servers without build-in transaction support). O. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Docs included in 2.0.1 are broken
All I'd like is a local version of the Language Docs so I don't have to depend on adobe.com (or more specifically the load on adobe.com during the middle of the day). What is the recommended way to access those via browser? On 1/6/07, Sascha [EMAIL PROTECTED] wrote: No, these are templates for ASDoc which seems to be now included in Flex. I believe the Flex docs are packed in jars in the Eclipse PlugIn folder (on plugin version that is, no clue about the full builder version). Sascha -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Collin Peters *Sent:* Sunday, 07 January, 2007 06:40 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Docs included in 2.0.1 are broken I assume this is a local copy of the Flex2 Language Reference C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\asdoc\templates By using index.html I get missing file errors such as: /C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/asdoc/templates/package-summary.html. package-summary.xsl exists, but no html. I'm not sure if this is supposed to be a usable local copy of the docs or not. Also not sure if this worked in the original version of Flex2 -- Collin Peters Lead Software Developer -- Collin Peters Lead Software Developer
Re: [flexcoders] Flex Builder 2 classpaths
Hmm... I think I understand your question. Unless your code is compiled into a swc... the answer is no. It has to be in your workspace. There is a workaround however. You can map a folder in your workspace to a folder on your hard drive. When you create a new folder in your project there is an advanced button that will allow you to select the folder you'd like to link too. Hope this helps. On 1/5/07, Merrill, Jason [EMAIL PROTECTED] wrote: A pretty basic question: How do I set up my classpath like I did in Flash 8? I tried going to Project Properties Flex Build Path and then the add folder button, but this seems to have no effect. Can you set your classpath to somewhere outside your workspace? Or does it have to be within the workspace somewhere? When I type in import I get com as an option, but not the com.namespaces of my actionscript folder I keep on my hard drive and set as the Flex Build Path. I understood how this worked in Flash 8, but not Flex 2. Thanks, Jason Merrill Bank of America Learning Organizational Effectiveness Multimedia / eTools Team
Re: [flexcoders] Re: and I thought Adobe was a professional company. Whats going on with the upgrade
Claus, My apologies if it appeared that I was casting aspersions on all open source projects. For the record, I am a huge fan of open source. That said, as a developer and a businessman, open source's value proposition generally does not include documentation and support at the level that commercial software does. (In fact, I am hard pressed to think of even one open source project that provides doc support that is on par or superior to Adobe's.) Regarding the specs for SWF9, RTMP and AMF3, I do not code directly to those APIs so I have never referenced those specs. (Again, my thanks to the great engineering teams at Adobe for giving me great rapid application development tools that enable me to code to higher level APIs ;-) I do see what you are saying. The Flash Player File Format Specification FAQ http://www.adobe.com/licensing/developer/fileformat/faq/ still says: The most recent version of the specification covers version 8 of the Flash file format (SWF) and then goes on to say: Adobe updates the Specification as soon as possible after each release. Ok. That was over six months ago now. But again, I write to the Flex 2/AS APIs. Personally, I do not require those lower level API docs at this time. What I would like is Netconnection Debugger updated for Flex 2/AS3/AMF3 :-) best regards, g On 1/6/07, Claus Wahlers [EMAIL PROTECTED] wrote: Lastly, if you think there are issues with Flex 2.0.1 documentation, just try using an open source project sometime. After using open source, I now justify all of my licensing costs for Adobe products on the value of their world class documentation alone ;-) Uh-ooh.. Now you're being a bit harsh yourself, aren't you? ;) Open source projects all have poor documentation? While we're at it, where are the SWF9, RTMP and AMF3 specs? I agree with you that the Flex 2 documentation is very good though. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/
[flexcoders] Re: Remote Objects Java to Actionscript conversion
I did a blog entry a while back about this: http://www.velloff.com/?p=23 http://www.velloff.com/?p=23 Also, download and try ServiceCapture http://www.kevinlangdon.com/serviceCapture/ to really see what is going on. --- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: It's probably being deserialized on the actionscript side as an Array. Try changing the type from an ArrayCollection to an Array. On 1/5/07, Raider226 [EMAIL PROTECTED] wrote: I have a java class I created that contains an ArrayList as one of the i-vars. I am trying access this class as a remote object but when I receive it on the client side in ActionScript the ArrayList parameter is null even though I am printing it's contents on the server just before returning and it is not showing as null before it goes through the flex gateway. And the other parameters within my class (String,int) are coming through just fine. I am receiving it on the ActionScript side as an ArrayCollection. Am I not allowed to send an ArrayList in this way from java to ActionScript? Could anyone please help? Much appreciated. Thanks, Chris
Re: [flexcoders] Need some direction from the Pros, on Event Dispatching, and Scoping issues
Not to quash your hopes of getting to play with Adobe's really pretty eventing but... traceArea.vPosition = traceArea.maxVPosition; http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19784.html http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avcq0-ngq=textarea+scroll+sa=Searchcof=FORID%3A9#768 On 1/5/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, As long as I've been coding Flex Apps (since 1.0 Beta), I've not had the need to Dispatch Events manually, in addition to having the Controls that receive the dispatched Events, reside on a different control (or in a Remote Window)... Could somebody really quick point me in the right direction, for a crash course in Event Dispatching - as well as handling Scoping issues? My present problem I'm trying to tackle is this: I have a draggle Popup TitleWindow which displays Debugging information while my application runs. Using Cairngorm, I keep my Debug Messages in a Text Variable (which obviously resides in my Model). My debug TitleWindow's TextArea control, has it's Text Property bound to the model.debugMessages variable. This works beautifully - since when my function kicks off, it appends the new debug information (plus a carriage return) to the TextArea. The problem is, the TextArea doesn't auto scroll to the bottom whenever new text is added to the control. Being a programmer interested in debug messages, I am primarily interested in the LATEST debug information. With that said, I am trying to dispatch an Event, to have the TextArea auto scroll to the very bottom, anytime there is new Text added. I know the Property name that I must change, but I need to find out how to make the Dispatched Event, get disseminated across the application, to the Debug Window control. I know I could simple listen for the change event locally to the DebugWindow Control, but I need to find out how to trigger this manually. Could any of you help me out regarding this? Thanks in advance for any help you can offer, Mike
[flexcoders] selectedDate Problem
Here's the scenario: mx:DateFormatter id=dateF formatString=MMM DD / mx:DateField id=leaseDate_date width=100 height=22 x=146 y=124 labelFunction=formatDate focusOut=setExpireDate() tabIndex=207/ public function formatDate(date:Date):String { return (dateF.format(date)); } The problem is that if I use a date formatter such as this, I cannot reference the selectedDate property because it doesn't get set. I know it doesn't get set because if I click the date icon for that field, the date shown in the text portion of the component isn't highlighted in the calendar pop-up. But, if I leave out the formatting, and then select a date from the calendar pop-up, and the text shows 01/01/2007, and I re-open the calendar pop-up then the selectedDate is appropriately set. So, obviously, the question is, Does anyone know why this happens and how to fix it so I can use a formatting function to set the DateField text to 'MMM DD ' and have the selectedDate property appropriately set as well? Thanks, R. Grimes
[flexcoders] Re: flex 2.0.1 feedback from the trenches
Thanks, that path was exactly what I needed... --- In flexcoders@yahoogroups.com, Mike Morearty [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, fuad_kamal flexCoders@ wrote: -How do I optimize memory usage for FB on the Mac? There isn't any FlexBuilder.ini file on my Macbook Pro! In the Mac version, you can find that file inside the Flex Builder package: /Applications/Adobe Flex Builder 2/Flex Builder.app/Contents/MacOS/FlexBuilder.ini
Re: [flexcoders] Need some direction from the Pros, on Event Dispatching, and Scoping issues
Oops that was Flex 1.5 syntax... should be. traceArea.verticalScrollPosition = traceArea.maxVerticalScrollPosition; It may even be possible to bind it. mx:TextArea id=traceArea verticalScrollPosition={ traceArea.maxVerticalScrollPosition} / I understand you want to dispatch a custom event here but it seems like a bit overkill. On 1/6/07, Clint Modien [EMAIL PROTECTED] wrote: Not to quash your hopes of getting to play with Adobe's really pretty eventing but... traceArea.vPosition = traceArea.maxVPosition; http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19784.html http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avcq0-ngq=textarea+scroll+sa=Searchcof=FORID%3A9#768 On 1/5/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, As long as I've been coding Flex Apps (since 1.0 Beta), I've not had the need to Dispatch Events manually, in addition to having the Controls that receive the dispatched Events, reside on a different control (or in a Remote Window)... Could somebody really quick point me in the right direction, for a crash course in Event Dispatching - as well as handling Scoping issues? My present problem I'm trying to tackle is this: I have a draggle Popup TitleWindow which displays Debugging information while my application runs. Using Cairngorm, I keep my Debug Messages in a Text Variable (which obviously resides in my Model). My debug TitleWindow's TextArea control, has it's Text Property bound to the model.debugMessages variable. This works beautifully - since when my function kicks off, it appends the new debug information (plus a carriage return) to the TextArea. The problem is, the TextArea doesn't auto scroll to the bottom whenever new text is added to the control. Being a programmer interested in debug messages, I am primarily interested in the LATEST debug information. With that said, I am trying to dispatch an Event, to have the TextArea auto scroll to the very bottom, anytime there is new Text added. I know the Property name that I must change, but I need to find out how to make the Dispatched Event, get disseminated across the application, to the Debug Window control. I know I could simple listen for the change event locally to the DebugWindow Control, but I need to find out how to trigger this manually. Could any of you help me out regarding this? Thanks in advance for any help you can offer, Mike
RE: [flexcoders] Need some direction from the Pros, on Event Dispatching, and Scoping issues
Thanks Clint, for those links - The first link, has a section which explains the invalidation stuff - which was really informative. I love reading stuff like this, as it really gives better insight into how things work, as well as what's going through the minds of the Flex engineers, while designing their control's structure. Also, I wasn't aware of the 2nd link - flexsearch.org - and I will start using this on a regular basis, when searching for solutions to problems. Have a good night and weekend Clint :) Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien Sent: Saturday, January 06, 2007 8:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need some direction from the Pros, on Event Dispatching, and Scoping issues Not to quash your hopes of getting to play with Adobe's really pretty eventing but... traceArea.vPosition = traceArea.maxVPosition; http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19784.html http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19784.html http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avcq 0-ngq=textarea+scroll+sa=Searchcof=FORID%3A9#768 http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avc q0-ngq=textarea+scroll+sa=Searchcof=FORID%3A9#768 On 1/5/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, As long as I've been coding Flex Apps (since 1.0 Beta), I've not had the need to Dispatch Events manually, in addition to having the Controls that receive the dispatched Events, reside on a different control (or in a Remote Window)... Could somebody really quick point me in the right direction, for a crash course in Event Dispatching - as well as handling Scoping issues? My present problem I'm trying to tackle is this: I have a draggle Popup TitleWindow which displays Debugging information while my application runs. Using Cairngorm, I keep my Debug Messages in a Text Variable (which obviously resides in my Model). My debug TitleWindow's TextArea control, has it's Text Property bound to the model.debugMessages variable. This works beautifully - since when my function kicks off, it appends the new debug information (plus a carriage return) to the TextArea. The problem is, the TextArea doesn't auto scroll to the bottom whenever new text is added to the control. Being a programmer interested in debug messages, I am primarily interested in the LATEST debug information. With that said, I am trying to dispatch an Event, to have the TextArea auto scroll to the very bottom, anytime there is new Text added. I know the Property name that I must change, but I need to find out how to make the Dispatched Event, get disseminated across the application, to the Debug Window control. I know I could simple listen for the change event locally to the DebugWindow Control, but I need to find out how to trigger this manually. Could any of you help me out regarding this? Thanks in advance for any help you can offer, Mike
RE: [flexcoders] Need some direction from the Pros, on Event Dispatching, and Scoping issues
Too funny Clint - you read my mind on BOTH instances. I first said to myself, that was Flash 8 Flex 1.5 Syntax (as I found the Flex 2.0 syntax, since my original post last night) And secondly, I also came to the conclusion, that dispatching an Event manually may be overkill, since using a built-in Event and attaching a function to it, will be all I really need for this particular application. Per another post, it was mentioned that I should use the UpdateComplete event to cause the text to scroll to the bottom - but I am finding out that this event gets triggered MUCH more often then people may realize. Especially the resize event, in which I use quite a bit with this TitleWindow... For now I am using Change, and this should hopefully be all I need in order to keep the most recently added text, visible in the control. Again, Thanks for all your help - in addition to everybody else on this list. Take Care, Mike From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien Sent: Saturday, January 06, 2007 8:47 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Need some direction from the Pros, on Event Dispatching, and Scoping issues Oops that was Flex 1.5 syntax... should be. traceArea.verticalScrollPosition = traceArea.maxVerticalScrollPosition; It may even be possible to bind it. mx:TextArea id=traceArea verticalScrollPosition={ traceArea.maxVerticalScrollPosition} / I understand you want to dispatch a custom event here but it seems like a bit overkill. On 1/6/07, Clint Modien [EMAIL PROTECTED] wrote: Not to quash your hopes of getting to play with Adobe's really pretty eventing but... traceArea.vPosition = traceArea.maxVPosition; http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19784.html http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19784.html http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avcq 0-ngq=textarea+scroll+sa=Searchcof=FORID%3A9#768 http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avc q0-ngq=textarea+scroll+sa=Searchcof=FORID%3A9#768 On 1/5/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, As long as I've been coding Flex Apps (since 1.0 Beta), I've not had the need to Dispatch Events manually, in addition to having the Controls that receive the dispatched Events, reside on a different control (or in a Remote Window)... Could somebody really quick point me in the right direction, for a crash course in Event Dispatching - as well as handling Scoping issues? My present problem I'm trying to tackle is this: I have a draggle Popup TitleWindow which displays Debugging information while my application runs. Using Cairngorm, I keep my Debug Messages in a Text Variable (which obviously resides in my Model). My debug TitleWindow's TextArea control, has it's Text Property bound to the model.debugMessages variable. This works beautifully - since when my function kicks off, it appends the new debug information (plus a carriage return) to the TextArea. The problem is, the TextArea doesn't auto scroll to the bottom whenever new text is added to the control. Being a programmer interested in debug messages, I am primarily interested in the LATEST debug information. With that said, I am trying to dispatch an Event, to have the TextArea auto scroll to the very bottom, anytime there is new Text added. I know the Property name that I must change, but I need to find out how to make the Dispatched Event, get disseminated across the application, to the Debug Window control. I know I could simple listen for the change event locally to the DebugWindow Control, but I need to find out how to trigger this manually. Could any of you help me out regarding this? Thanks in advance for any help you can offer, Mike
RE: [flexcoders] How to clear a TileList of its items?
Thanks Clint, but all of them result in the same exception. Any other ideas? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Modien Sent: Sunday, 07 January, 2007 10:40 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to clear a TileList of its items? I would try any new non-null complex type: new Object(); new Array(); new ArrayCollection(); On 1/5/07, Sascha [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] com wrote: I'm trying to initialize a TileList after items were put into it so that it is empty again and I can load new items into it after that. I'm setting the TileList dataprovider to null but when I then try to load new items into it, it gives me an exception: Parameter child must be non-null. What would I have to do additionally to properly initialize the TileList? Sascha
RE: [flexcoders] Docs included in 2.0.1 are broken
Again I have no knowledge about the standalone version but on the Flex plugin version you can get to the Flex docs by opening the Eclipse Help (Help/Menu/Help Contents or Dynamic Help). Or if the help browser is not your cup of tea (I find it very slow) you could unpack the API doc from Eclipse/plugins/com.adobe.flexbuilder.help_2.0.155577/doc.zip and use a browser. Hth, Sascha _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Collin Peters Sent: Sunday, 07 January, 2007 10:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Docs included in 2.0.1 are broken All I'd like is a local version of the Language Docs so I don't have to depend on adobe.com (or more specifically the load on adobe.com during the middle of the day). What is the recommended way to access those via browser? On 1/6/07, Sascha [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] com wrote: No, these are templates for ASDoc which seems to be now included in Flex. I believe the Flex docs are packed in jars in the Eclipse PlugIn folder (on plugin version that is, no clue about the full builder version). Sascha _ From: flexcoders@yahoogroups.com [mailto: flexcoders@ mailto:flexcoders@ yahoogroups. http://yahoogroups.com com] On Behalf Of Collin Peters Sent: Sunday, 07 January, 2007 06:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] Docs included in 2.0.1 are broken I assume this is a local copy of the Flex2 Language Reference C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\asdoc\templates By using index.html I get missing file errors such as: /C:/Program Files/Adobe/Flex Builder 2 Plug-in/Flex SDK 2/asdoc/templates/package-summary.html. package-summary.xsl exists, but no html. I'm not sure if this is supposed to be a usable local copy of the docs or not. Also not sure if this worked in the original version of Flex2 -- Collin Peters Lead Software Developer -- Collin Peters Lead Software Developer
Re: [flexcoders] How to clear a TileList of its items?
Odd... did you try setting the dataprovider to a new object instead of setting it too null? You could also try: yourTileListID.dataProvider.removeAll(); On 1/6/07, Sascha [EMAIL PROTECTED] wrote: Thanks Clint, but all of them result in the same exception. Any other ideas? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Modien *Sent:* Sunday, 07 January, 2007 10:40 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] How to clear a TileList of its items? I would try any new non-null complex type: new Object(); new Array(); new ArrayCollection(); On 1/5/07, *Sascha* [EMAIL PROTECTED] wrote: I'm trying to initialize a TileList after items were put into it so that it is empty again and I can load new items into it after that. I'm setting the TileList dataprovider to null but when I then try to load new items into it, it gives me an exception: Parameter child must be non-null. What would I have to do additionally to properly initialize the TileList? Sascha
[flexcoders] 2.0.1 ListBase.as error
I have a datagrid with a change event handler. When a user clicks on an item, it's supposed to take them to another state. I keep getting a Cannot access a property or method of a null object reference error. While this is not uncommon for me, the error actually occurs on line 7029 of ListBase.as: private function mouseIsUp():void { systemManager.removeEventListener(MouseEvent.MOUSE_UP, mouseUpHandler, true); stage.removeEventListener(Event.MOUSE_LEAVE, mouseLeaveHandler); if (!dragEnabled dragScrollingInterval != 0) { clearInterval(dragScrollingInterval); dragScrollingInterval = 0; } } The line with the error is stage.removeEventListener(Event.MOUSE_LEAVE, mouseLeaveHandler); Everything worked great before the 2.0.1 update. If I ignore the error, everything continues as expected. Any ideas? Shan