Re: [flexcoders] flex2 and fms2
Just a quick update. I've posted a Flex archive file and some instructions on how to install it and work with the Flex 2 FMS Explorer code here: http://flash-communications.net/technotes/flex2FMSExplorer/index.html Yours truly, -Brian grimmwerks wrote: Fantastic Brian; it's much appreciated. On Aug 22, 2007, at 9:31 PM, Brian Lesser wrote: By the way you may be interested in a set of Flex2/FMS2 samples I built to demonstrate basic Flex 2/FMS 2 coding. You can see it here: http://flash-communications.net/technotes/flex2FMSExplorer/ http://flash-communications.net/technotes/flex2FMSExplorer/ flex2FMSExplorer.html There are nine samples including a simple scratchpad, shared Rich Text editor, controlled live stream etc... The source code is available via View Source. Also, the FMS 2 server-side code can be found in the applications/flex2FMSExplorer folder when you view source. Yours truly, -Brian -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] mailto:blesser%40ryerson.ca (Enter through LB99) Web: http://www.ryerson.ca/~blesser http://www.ryerson.ca/%7Eblesser __ [EMAIL PROTECTED] mailto:grimm%40grimmwerks.com mailto:grimm%40grimmwerks.com wrote: Can someone from adobe please show how one can pass custom messages for the connectionRejection as we used to with AS2? Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
At fitc Ted Patrick announced that Flex 3 will have platform-neutral support for data integration with .Net, Java, PHP, etc.. see Aral Balkan's notes from the keynote: http://aralbalkan. com/922 http://aralbalkan.com/922 /*I'm very excited about the back-end neutrality and the additional language intelligence in Flex Builder 3. Refactoring support is going to be a huge productivity booster and the integrated profiler should prove very useful.*/ I don't know exactly what that means - we'll have to wait and see. Cheers, -Brian mvbaffa wrote: I beleive that Adobe wants to increase its participation in the software development market. .NET is very good and its number of developers is huge. That's why they should not be fogotten. This at least is naive. Adobe has one thing that Microsoft does not have, FLASH. This is the key to success if it is well conducted. I do not care about politics. I really do not care which is the winner Microsoft or Adobe. The winner will be the one that can deploy good and affordable products. -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Flex Goes Open Source
LOL, I hope not... world domination seems a little extreme for a compiler, debugger, component framework and the other bits and pieces... The discussion has been interesting though. I really like the idea that developers could weave their own components into the framework: See Ryan Stewart: http://blogs.zdnet.com/Stewart/?p=353 But what interests me most is how Adobe will go open source but still retain control as they gradually allow people outside the company to run with sub projects within the Flex system. (Again see Ryan's article.) I hope taking Flex open source is a huge success because I'd like to see Adobe do something similar with the player. (To RULE THE WORLD in Greg's terms?) My guess (and I really don't know) is that many people in Adobe can't imagine how they would take the player open source in a meaningful way. It is a highly optimized and size-constrained piece of code. For example one question would be how could Adobe begin to provide the community with a way to own sub projects? One tantalizing possible answer is for Adobe to look at re-engineering the player to adopt an extension mechanism of some type. The strategy is risky because no one wants an Acrobat player experience for Flash but it could solve a lot of problems. There was a fitc session that I couldn't attend where I understand the Flash player group asked for comments on what to put into the player in the future. I imagine there were all sorts of requests like hardware accelerated 3D, screen sharing, and better video codecs. It's hard for Adobe to add those sorts of things quickly without a player extension mechanism. It's probably impossible for them to keep the player size small and add many of the big important things designers and developers want. So it seems there are a lot of good drivers for going with introducing a more extensible/modular architecture for the player: 1.it provides an opportunity for real participation in an eventual open source initiative for the player 2.the player becomes more agile (and therefore competitive) with smaller extensions coming out in-between major player upgrade cycles 3.Adobe can add newer more powerful features to the player without bloating the initial download size much more. Extensions would have to download once as needed. There are probably a lot of reasons folks inside Adobe know about for not doing this that I'm not aware of. For example another thing no one wants to see is a Windows Media Player experience where the player announces it can't find the right codec to play your video. But if those things could be overcome this note is my personal request to Adobe to continue the process you started with AS3 and make it happen for the player too. Cheers, -Brian greg h wrote: TRULY, NOW, FLEX WILL RULE THE WORLD!!! Oh, and now I better understand why the name change on Flex Data Services to LiveCycle Data Services. g -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Flash Remoting / Flex / Datagrid
FWIW, I'd love to see a simple way to do this too. I thought maybe itemEditEnd would work but of course it fires before the item is updated. There is also a collectionChange event that the dataprovider will fire when its updated. So if you set a flag when itemEditEnd is fired and then take action when you get a collectionChange from the dataprovider, and clear the flag, I think it should work. Is there an easier way? Yours truly, -Brian Scott Hoff wrote: Does anyone know how I should go about detecting that a row has been changed when a grid is editable and then pushing the change to the server? I'm currently searching for some sort of explanation but haven't found anything yet. -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
[flexcoders] Flex Goes Open Source
FYI: Flex Goes Open Source http://labs.adobe.com/wiki/index.php/Flex:Open_Source Cheers, -Brian -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Flex Goes Open Source
RTMP and AMF would be a surprise... More info on open source flex on Scoble: http://scobleizer.com/2007/04/25/adobe-opensources-flex/ Cheers, -Brian Weyert de Boer wrote: Nice! Interested in the ActionScript compiler. Would be nice if they share the magic behind RTMP and AFM too now ;) -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Flex Goes Open Source
Seems the debugger is going open source as well: http://davidzuckerman.com/adobe/2007/04/25/were-open/ Cheers, -Brian Weyert de Boer wrote: debugger i mean Nice! Interested in the ActionScript compiler. Would be nice if they share the magic behind RTMP and AFM too now ;) -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Sadly, this seems to describe Scott's post Microsoft behavior: http://en.wikipedia.org/wiki/Internet_troll I wish it was otherwise... -Brian Scott Barnes wrote: http://www.youtube. com/watch? v=TyuDAzzKnz8 http://www.youtube.com/watch?v=TyuDAzzKnz8 :) -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Hi Paul, You made me laugh out loud when I read: I shouldn't even be responding to this rant. I've had a very similar feeling! Some news that may be of interest from the FITC conference here in Toronto summarized by Aral Balkan: http://aralbalkan.com/922 /*I'm very excited about the back-end neutrality and the additional language intelligence in Flex Builder 3. Refactoring support is going to be a huge productivity booster and the integrated profiler should prove very useful.*/ He's reporting on a quick overview Ted gave about Flex 3 during the keynote - including a brief bit on how the new back-end platform-neutral data integration will work. (I'm probably not using his exact words but the gist was there will be support for Java, .Net, PHP, and others.) I'm looking forward to Ted's longer Flex presentation. Yours truly, -Brian Paul DeCoursey wrote: --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Scott Barnes scott.barnes@ ... wrote: Paul: How many? 37... I don't know... I don't even work in that group. I just know that it has been very lucrative. I shouldn't even be responding to this rant. I'm not too sure how to respond to it really. I don't really understand why people think that Adobe needs to be creating products that suit the needs of every user. If you want a .NET Remoting solution then build one, WebORB did it, why can't you? Adobe is making products that make sense for their main customers, and I'm sorry to say that isn't us. -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
and architecture are excelent, but the comercial strategy is not so good. Macromedia had something like 4 years ahead of Microsoft, since Flex 1.5, that was a very good product too. Macromedia insisted to to seel it for US$18 k, nobody bought it Microsoft at that time did not exist in RIA Market. Then Adobe came and Flex became more accessible. But Adobe charges FDS in US$ 20K and does not pay attention to .NET developers. Well it seems to me that this is another big mistake. if Adobe continues with this kind of comercial strategy, i am afraid that our beloved Flex will loose the race. -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Prana: IoC container for AS3
Hi Christophe, Thanks for your thoughts on this. It has been helpful. In Flash 8 I have been using a very large XML file to define all the forms, controls, and security for a Flash client. A single XMLAssembler class within each container would create and secure everything based on its chunk of that XML file. In Flex 2 I'm experimenting with using Component subclasses to divide up that big XML file. For the most part that means a lot of the XML has moved into containers. However, you've probably seen this example in the Flex 2 docs of creating an extended ComboBox: ?xml version=1.0? !-- components\myComponents\MyComboBox.mxml -- mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:dataProvider mx:StringCT/mx:String mx:StringMA/mx:String mx:StringME/mx:String mx:StringNH/mx:String mx:StringRI/mx:String mx:StringVT/mx:String /mx:dataProvider /mx:ComboBox That's what led me to experiment with what I described earlier and why filtering in the container got so complicated. Now it seems like the best course is to use a plain old ComboBox and to move the ArrayCollection out of the Combo box and into the ComboBox's container. The container will apply the filter and set the vanilla ComboBox's dataProvider. So for my immediate needs I think my conclusion is don't subclass controls in order to contain a model except in the most trivial cases where there are no cross-cutting concerns. For what it's worth, I now have a container with some data in it (the unfilteredCollection) and this one line of code in the enterState() method: myComboBox.dataProvider = RoleFilter.filterArrayCollection(unfilteredCollection); It seems very simple and I feel I've learned something. To return to where we started I can see that I didn't need to extend the ComboBox to filter data for security and so the consumer doesn't need to know about the filter. Knowledge of the filter is now in the container. That said I'm still very interested to see if a cleaner, more expressive, and more powerful approach would come out of having an ioc container. I'm not sure it would, as what I'm doing now seems simple, but I would like to experiment with different options. Yours truly, -Brian Christophe Herreman wrote: Hi Brian, The way I see it, the current implementation has some problems: - As you say, your custom combobox will always know about the RoleFilter. (On a sidenote, it might be even better to pass in an instance of an IRoleFilter so that you have more flexibility in the way the filter is implemented. You could even define the filter and your combobox in the applicationContext and have them wired together by the container at runtime.) - The fact that you have to create a custom combobox for implementing security in your application. And would have to do that for every filtered component. The most elegant solution for this would be an AOP advice that filters the dataProvider before assigning it to the consumer/component. The advantages are: - the consumer doesn't know anything about the filter - you don't need to extend the component(s) to add filtering - the advice can easily be reused and applied to other components with a dataProvider property. You'd need to alter the pointcut (that defines where to intercept accessors or methods) which could also be done in the applicationcontext. Of course, the downside of this is that it bring a bit of extra complexity to your application, but IMO that's mostly because we are not used to thinking in aspects. What do you think? thx for your input, it is greatly appreciated! regards, Christophe Brian Lesser wrote: Thanks Carlos, I'll be interested to see what you come up with. Right now I'm experimenting with the best way to use static methods to handle cross-cutting security concerns within custom components. For example a combo box may only be able to show certain options to a user based on the user's role. The combo starts off with all the options available but must filter them before displaying them. To do that it calls a static method of a RoleFilter class. I'm not sure if that's the best way to go about it though. Here's the script from within a custom combo box as an example: mx:Script ![CDATA[ import com.somecompany. security. RoleFilter; private function init():void{ filterData() ; } public function filterData() :void{ dataProvider = RoleFilter.filterAr rayCollection( unfilteredCollec tion); } ]] /mx:Script Note: unfilteredCollectio n is just an ArrayCollection of objects. Now, that's not a lot of code, but what bothers me is that I'd rather my custom combo box not know anything about my RoleFilter class. In fact I'd prefer it not know anything about filters at all. So, even though this works fine, I'm trying to come up with something more elegant. So far having the combo box's container set this up hasn't looked right either. So
Re: [flexcoders] Prana: IoC container for AS3
Hi Christophe, My first impression is that you would not need ServiceLocator at all and would end up cutting most of Cairngorm out of your application. I need to think about this some more though. Right now I do something like what you describe as write custom configuration code that reads an xml. I create a WebApplication Factory that sets up a channel and creates and caches RemoteObjects. I don't compile with the services.mxml file at all. Containers get the Remoteobjects they need from the WebApplication RSO factory method and add/remove listeners before calling methods. AOP might simplify this a great deal. I'm not sure... Yours truly, -Brian Christophe Herreman wrote: Hi Brian, there might indeed be a difference between Flex projects that use Flex Data Services vs. compiled Flex/Flash/AS3 projects. The FDS projects have a huge advantage of having the code compiled on the server. For instance to change Cairngorm's ServiceLocator and define where to find let's say a RemoteObject' s endpoint, you could simply replace the services.mxml. In a compiled app, you'd have to recompile it after changing the remote object's details. You could of course write custom configuration code that reads an xml or a text file and defines the remote object's details that way, but if you need to do that for several objects in your application, your code becomes cluttered with configuration code. By using an IoC applicationcontext, you don't need to write custom code for parsing and assigning the properties of an object, because the container does that for you. But also with FDS I can see some advantages in using IoC. I will again refer to Cairngorm where BusinessDelegates typically lookup a service in the ServiceLocator and commands instantiate a business delegate. You now have code like this: this.service = ServiceLocator. getInstance( ).getRemoteObjec t( productService ); (in the business delegate) and var delegate : ProductDelegate = new ProductDelegate( this ); (in the command) But what happens if we go from using remoting to using webservices or httpservices? We would have to change the businessdelegate and possibly also the code of our commands to read the data returned by the remote call, the webservice of the httpservice. It would be better if we had an accessor for a businessdelegate on our command and an accessor for a service on our businessdelegates. If everything is typed to an interface the code would not be aware of any implementation details and we would be able to leave that up to the application context. If we would work out this case in a Cairngorm app, it would most likely require some changes in the framework itself. I'll try to work out an example in the coming weeks as a proof of concept. Any thoughts? best regards, Christophe Brian Lesser wrote: Hi Carlos, et al, I have a question regarding the need for an ioc container for Flex as opposed to a pure AS3 or Flash project. Flex already provides a hierarchy of containers that contain controls and service proxies. The containers are usually responsible for setting the dependencies between controls and proxies. Setting dependencies can be done with databinding, simple assignment, or by setting up listeners. This is a very different situation from what a Java developer faces without an IOC container when writing servlets or JSP pages. In fact in Flex the built in visual state mechanism means we can set up dependencies and tear them down when states are entered and left. So, here's my question: what would an IOC container add that Flex doesn't provide and how would it improve our work or what we could do? Are you primarily thinking about aspects? Yours truly, -Brian Carlos Rovira wrote: Looks very promising :) Great! C. PD:mmm... no body else seems to be interested in this proyect? people know about the benefits of a IoC container? 19 Apr 2007 04:03:30 -0700, Christophe Herreman [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] com mailto:lists%40herrodius.com mailto:lists% 40herrodius. com: Hi Carlos, I don't really have an official roadmap, but here are some of the things I'd like to achieve: - IoC container - IoC utils for frameworks like Cairngorm and ARP - AOP framework - Mock Objects for FlexUnit - Reflection API - general utilities Reading this myself, it looks very optimistic ;-) but the motivation is there so, what the heck. A first version of the Reflection API has just been added to the SVN repo BTW. regards, Christophe -- _ _ _ _ _ _ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: POD?? E-mail
Re: [flexcoders] Prana: IoC container for AS3
Thanks Carlos, I'll be interested to see what you come up with. Right now I'm experimenting with the best way to use static methods to handle cross-cutting security concerns within custom components. For example a combo box may only be able to show certain options to a user based on the user's role. The combo starts off with all the options available but must filter them before displaying them. To do that it calls a static method of a RoleFilter class. I'm not sure if that's the best way to go about it though. Here's the script from within a custom combo box as an example: mx:Script ![CDATA[ import com.somecompany.security.RoleFilter; private function init():void{ filterData(); } public function filterData():void{ dataProvider = RoleFilter.filterArrayCollection(unfilteredCollection); } ]] /mx:Script Note: unfilteredCollection is just an ArrayCollection of objects. Now, that's not a lot of code, but what bothers me is that I'd rather my custom combo box not know anything about my RoleFilter class. In fact I'd prefer it not know anything about filters at all. So, even though this works fine, I'm trying to come up with something more elegant. So far having the combo box's container set this up hasn't looked right either. So again, I'm interested to see what you end up with. Yours truly, -Brian Carlos Rovira wrote: I think avoiding repeated code would a great advance if we use an IoC container that allows us only create the different code and inyect the shared functionality. Another great thing is AOP that would be a great thing since many different objects must face equal behaviour and we could do this as as aspect and inyect it by configuration. Maybe the problem is to think about how we must to adapt this kind of functionality to AS3 and Flex and not simply copy from the java/spring world to Flex. But for me is clear that many improvements in the upcoming months could be done with frameworks like Pranaq 2007/4/20, Brian Lesser [EMAIL PROTECTED]: Hi Carlos, et al, I have a question regarding the need for an ioc container for Flex as opposed to a pure AS3 or Flash project. Flex already provides a hierarchy of containers that contain controls and service proxies. The containers are usually responsible for setting the dependencies between controls and proxies. Setting dependencies can be done with databinding, simple assignment, or by setting up listeners. This is a very different situation from what a Java developer faces without an IOC container when writing servlets or JSP pages. In fact in Flex the built in visual state mechanism means we can set up dependencies and tear them down when states are entered and left. So, here's my question: what would an IOC container add that Flex doesn't provide and how would it improve our work or what we could do? Are you primarily thinking about aspects? Yours truly, -Brian Carlos Rovira wrote: Looks very promising :) Great! C. PD:mmm... no body else seems to be interested in this proyect? people know about the benefits of a IoC container? 19 Apr 2007 04:03:30 -0700, Christophe Herreman [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] lists%40herrodius.com: Hi Carlos, I don't really have an official roadmap, but here are some of the things I'd like to achieve: - IoC container - IoC utils for frameworks like Cairngorm and ARP - AOP framework - Mock Objects for FlexUnit - Reflection API - general utilities Reading this myself, it looks very optimistic ;-) but the motivation is there so, what the heck. A first version of the Reflection API has just been added to the SVN repo BTW. regards, Christophe -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] blesser%40ryerson.ca (Enter through LB99) Web: http://www.ryerson.ca/~blesserhttp://www.ryerson.ca/%7Eblesser __ -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD B-66-C E-mail: [EMAIL PROTECTED] (Enter through LIB-B99)Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Prana: IoC container for AS3
Hi Carlos, et al, I have a question regarding the need for an ioc container for Flex as opposed to a pure AS3 or Flash project. Flex already provides a hierarchy of containers that contain controls and service proxies. The containers are usually responsible for setting the dependencies between controls and proxies. Setting dependencies can be done with databinding, simple assignment, or by setting up listeners. This is a very different situation from what a Java developer faces without an IOC container when writing servlets or JSP pages. In fact in Flex the built in visual state mechanism means we can set up dependencies and tear them down when states are entered and left. So, here's my question: what would an IOC container add that Flex doesn't provide and how would it improve our work or what we could do? Are you primarily thinking about aspects? Yours truly, -Brian Carlos Rovira wrote: Looks very promising :) Great! C. PD:mmm... no body else seems to be interested in this proyect? people know about the benefits of a IoC container? 19 Apr 2007 04:03:30 -0700, Christophe Herreman [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED]: Hi Carlos, I don't really have an official roadmap, but here are some of the things I'd like to achieve: - IoC container - IoC utils for frameworks like Cairngorm and ARP - AOP framework - Mock Objects for FlexUnit - Reflection API - general utilities Reading this myself, it looks very optimistic ;-) but the motivation is there so, what the heck. A first version of the Reflection API has just been added to the SVN repo BTW. regards, Christophe -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Hi Scott, I don't understand what you are trying to say. Is there something on a Microsoft page that can help me? You seem to say that Silverlight and Flash are very different and I think you are implying that they don't really compete with each other. Or maybe that the feature or technology overlap between them is not as large as some people assume it is? When I look at Silverlight from a high level (assuming the clr is implemented) it does seem to me to overlap a great deal with Flash. I understand the workflow is different and the codecs are different but from a 9000 foot high perspective they seem to overlap a great deal. At any rate, this is a Flex discussion list, and I really don't want to prolong this thread needlessly. So, if you could could just point me at something written by Microsoft about how Silverlight is very different (at a high level) in what it enables a developer to do, or for an end user, from Flash I would appreciate it. Yours truly, -Brian Scott Barnes wrote: Hell no :) (Not while I have breathe and draw pay at Microsoft). SilverLight = Apple Flash = Orange Both eatable, but personally I'm an Orange man on Mon-Wed and Apple man Thu-Sun... If you read FUD crap, ignore it on both sides and just be opened to the idea that theres yet another channel of delivery in rich interactive applications. Keep moving forward :) - Scott Barnes Developer Evangelist Microsoft - FUD is a common word abbrevation lately, what's with that? On 16 Apr 2007 18:04:35 -0700, *helihobby* [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] wrote: Please comment after you ready and see this: http://blogs. msdn.com/ tims/archive/ 2007/04/15/ introducing- microsoft- http://blogs.msdn.com/tims/archive/2007/04/15/introducing-microsoft- silverlight. aspx http://www.microsof t.com/silverligh t/default_ 01.aspx http://www.microsoft.com/silverlight/default_01.aspx Sean - [URL=http://www.HeliHobb y.com http://www.helihobby.com/]HeliHobby.com[ /URL] -- Regards, Scott Barnes http://www.mossyblo g.com http://www.mossyblog.com -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Hi Scott, I'm just looking for information I can use that will help me understand why you seem to be saying the two plugins and everything wrapped around them are so different. If you can't do that until after MIX that's OK. And, if it helps you, I'm not interested in FUD or marketing stuff, and I'm not part of some mob of you guys. I'm just one person reading a very large Flex mailing list that appreciates low noise informative posts that get to useful specifics. So when you can, please point me to something that will help me understand the differences? Thanks, -Brian Scott Barnes wrote: Yup, different is the word. -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD B-66-C E-mail: [EMAIL PROTECTED] (Enter through LIB-B99)Web: http://www.ryerson.ca/~blesser __
[flexcoders] Using an object reference as a value in SetProperty?
Hi, I would like to do something like this: mx:SetProperty target={accessManager} name=webApplication value={webApplication} / In other words when I change state and create an accessManager component I'd like to use SetProperty to accomplish this: accessManager.webApplication = webApplication; But accessManager.webApplication always ends up as null even though webApplication is created before the state change. I guess this is because accessManager isn't fully initialized yet?? So instead I did this which works: mx:State name=ManageAccess mx:AddChild position=lastChild manageAccess:AccessManager id=accessManager creationComplete=initAccessManager()/ /mx:AddChild /mx:State mx:Script ![CDATA[ private function initAccessManager():void { accessManager.webApplication = webApplication; } ]] /mx:Script But that is a lot less descriptive and much more verbose! Does anyone know if SetProperty can assign a reference? Am I missing something simple? Yours truly, -Brian -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
Re: [flexcoders] Is it possible to build an actionscript only app that uses FDS remoting?
Hi Hank, I'm not using FDS, but do you mean like this: http://www.mikenimer.com/index.cfm/2007/1/10/Bye-bye-services Yours truly, -Brian hank williams wrote: I want to do java remoting, and I am currently using FDS. I would like to build an actionscript project that uses java remoting via remoteObject. When you configure a flex project for remoting you indicate in the project settings where the flex server is, but these options are not available for an actionscript project. This would suggest that you cannot (or should not) do actionscript only projects that do FDS based remoting. My guess is that I am supposed to do this with a flex project but it does seem wierd that an actionscript project is not supposed to be used for remoting. Any insight appreciated. Hank -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
[flexcoders] invalidateList() problem
For performance reasons I would like to use Array methods to directly manipulate an array acting as a List component's dataProvider. After manipulating the array I assumed calling list.invalidateList(); should refresh the list with the new data. However, when I do that, the first item is never refreshed unless the list also scrolls. Scrolling the list will force the first item to redraw correctly. Here is a code snippet that updates the list: private function changeArray_invalidateList():void{ startTime = flash.utils.getTimer(); dataArray.length = 0; for (var i:Number = 0; i testIterations; i++){ dataArray.push(A + i ); } list.invalidateList(); stopTime = flash.utils.getTimer(); writeln(changeArray_invalidateList time: + (stopTime - startTime)); } Am I right in assuming this should work? Also, resetting the dataProvider with the array works. Instead of: list.invalidateList(); this works: list.dataProvider = dataArray and still performs much better than using the IList methods. Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Can't pass objects in NetConnection.call(rtmp.., {name: value});
Hi, I think there is a bug in the NetConnection.connect() method. I should be able to pass an object as a parameter following the address. For example when connecting to the Flash Media Server: nc.connect(rtmp:/flex2FMS_Lobby_01, {email: blesser} ); However, the object is not received in the application.onConnect method on the server. When I pass a string it works: nc.connect(rtmp:/flex2FMS_Lobby_01, blesser); The string is received in the server's onConnect method. I had this problem earlier and think I filed a bug. Before I retest and refile, has anyone else seen this or got it working? Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 2 FMS problems solved and a short article
Hi Folks, I've been playing with Flex 2 beta 3 and Flash Media Server 2.0.1. In the short time I've had to test, I've found that all the FMS related bugs from the previous Flex betas are gone. Remote SharedObjects, NetStream.soundTransform, Microphone.gain, proper handling of default Microphone and Camera changes etc all seem to work as advertised. Its great to see and thank you to the people who worked on it! I've also updated the short flex2FMS article I posted earlier to work with beta 3: http://flash-communications.net/technotes/fms2/flex2FMS/index.html It's only a trivial test application, but if you are looking for some of the key differences in how the NetConnection, Video, NetStream, and remote SharedObject classes work you might find a few useful things there. Yours truly, -Brian __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] var camera:Camera = Camera.getCamera(); not working
Hi Dominick, You have to attempt to access the video stream from the camera using an attachCamera() method before you get the popup settings dialog. For example: _camera = Camera.getCamera(); if(_camera){ _outStream.attachCamera(_camera); _video.attachCamera(_camera); } So as soon as _outStream.attachCamera(_camera); is called the dialog will pop up. If you removed the _outStream.attachCamera(_camera); call, then _video.attachCamera(_camera); would also make the popup appear. Yours truly, -Brian Dominick Accattato wrote: Beta2 I can't get the dialog box to pop up asking if I want to access my camera. Is this known? -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] var camera:Camera = Camera.getCamera(); not working
Hi Dominick, I ran a test swf from the desktop and got the allow dialog. Is it possible you have the Remember box checked in the Settings Privacy dialog? If you can get video from the camera and publish it on a stream or display it in a video area without getting the allow dialog and you don't have the remember box checked then it sounds like a bug. Yours truly, -Brian Dominick Accattato wrote: Brian: no i had it all setup correctly, but after reading that its supposed to work, i started to bang away more. I realized that the you don't get prompted for security at all if you are testing from the local filesystem, only from an http address did it work propery. Not sure if this intended. What do you think? On 5/7/06, Brian Lesser [EMAIL PROTECTED] wrote: Hi Dominick, You have to attempt to access the video stream from the camera using an attachCamera() method before you get the popup settings dialog. For example: _camera = Camera.getCamera(); if(_camera){ _outStream.attachCamera(_camera); _video.attachCamera(_camera); } So as soon as _outStream.attachCamera(_camera); is called the dialog will pop up. If you removed the _outStream.attachCamera(_camera); call, then _video.attachCamera(_camera); would also make the popup appear. Yours truly, -Brian Dominick Accattato wrote: Beta2 I can't get the dialog box to pop up asking if I want to access my camera. Is this known? -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3 Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Component Framework RSL cached by the player – is that reasonab le?
Hi, After Sho’s talk at FITC, I’ve been thinking a little more about runtime shared libraries. They are a great idea but the first time someone loads something from a site they have to download each RSL. If they visit different sites that use Flex they will be forced to download much of the same component framework each time. In other words users will be downloading a lot of duplicate code over and over and over again. Each time they do that they will watch the progress bar. Not a good experience. In a post after MIX 06 Branden Hall mentions that the WPF/E plugin will have a limited set of components baked into the plugin: http://www.waxpraxis.org/article/2/we-finally-see-the-flash-killer-from-microsoft It makes me wonder how MS plans to update those components/containers? But the idea has some merit. Now, let’s say that the Flash 9 (or Flash 10) player could download from Adobe and cache each release of the component framework as an RSL. If there was a compiler setting you could use to tell the compiler: “get version 1.2.2 of the framework from adobe.com” you would be set. When your SWF loaded the player would check its cache to see if it already had the framework 1.2.2 RSL. If not it would get it from Adobe. The next time someone needed that version of the framework. The user wouldn’t have to wait for it to load. Does that make sense? It’s obviously too close to Flex 2’s release to seriously request it version 2.0, but maybe it is reasonable to propose it for a later release? I’m curious if people think a scheme like that is workable and beneficial. My apologies if this has already been discussed or is obviously stupid. Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2 and FMS 2 for audio conferencing application
Yes, audio and video streaming seem to work. For example to play a stream: private function play():void{ if(_inStream) _inStream.close(); // Create the stream: _inStream = new NetStream(_nc); // Setup the listeners: _inStream.addEventListener(NetStatusEvent.NET_STATUS, netStatus); _inStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError); // Play the stream and show the video: _inStream.play(_streamName); _video.attachNetStream(_inStream); } And to publish a stream: private function publish():void{ if (_outStream ) _outStream.close(); _outStream = new NetStream(_nc); _outStream.addEventListener(NetStatusEvent.NET_STATUS, netStatus); _outStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError); // Capture video and publish it _camera = Camera.getCamera(); if(_camera){ _camera.setMode(160, 120, 6, true); _outStream.attachCamera(_camera); _video.attachCamera(_camera); } _microphone = Microphone.getMicrophone(); if(_microphone){ _outStream.attachAudio(_microphone); } } Yours truly, -Brian pk_wasp wrote: I want to build a simple audio conferencing Flex 2 (Beta 2) application (just people using their microphone) with Flash Media Server 2 Does anyone have any examples/links/documentation to do this sort of thing? (if its possible) and is the microphone working with this Flash Player 8.5 now? searching through the archive found this: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19222.html thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2 and FMS 2 for audio conferencing application
Hi Dos, Well, you could use Flash or Flex to make a simple IP-based audio system. Ofcourse, it will not be truly point-to-point in the sense that there are no swf-to-swf connections. All communications run through the Flash Media Server: swf-fms-swf. Consequently you still must pay the bandwidth costs used by all those connections and the audio flowing over them from/to the server. For a reasonably secure system you will need to authenticate users attempting to connect to the server. Yours truly, -Brian dos dedos wrote: Is it realistic to suggest that Flex 2 could be used (with minimal server side processing [e.g. just to work around flash-to-flash security restriction]) to build a point-to-point VoIP application? That would be nice to try one day ... Brian Lesser [EMAIL PROTECTED] wrote:Yes, audio and video streaming seem to work. For example to play a stream: private function play():void{ if(_inStream) _inStream.close(); // Create the stream: _inStream = new NetStream(_nc); // Setup the listeners: _inStream.addEventListener(NetStatusEvent.NET_STATUS, netStatus); _inStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError); // Play the stream and show the video: _inStream.play(_streamName); _video.attachNetStream(_inStream); } And to publish a stream: private function publish():void{ if (_outStream ) _outStream.close(); _outStream = new NetStream(_nc); _outStream.addEventListener(NetStatusEvent.NET_STATUS, netStatus); _outStream.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError); // Capture video and publish it _camera = Camera.getCamera(); if(_camera){ _camera.setMode(160, 120, 6, true); _outStream.attachCamera(_camera); _video.attachCamera(_camera); } _microphone = Microphone.getMicrophone(); if(_microphone){ _outStream.attachAudio(_microphone); } } Yours truly, -Brian pk_wasp wrote: I want to build a simple audio conferencing Flex 2 (Beta 2) application (just people using their microphone) with Flash Media Server 2 Does anyone have any examples/links/documentation to do this sort of thing? (if its possible) and is the microphone working with this Flash Player 8.5 now? searching through the archive found this: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19222.html thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com - YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. - __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flash Player public beta
Don't know... I uninstalled my 8.5 player that came with Flex 2 beta 1 and installed the beta 8.5 player and now when I publish to my default browser (Mozilla) my SWFs load but do nothing... (grey/blue screen and that's all I see). Anyone else have FMS related info to share? Yours truly, -Brian Dominick Accattato wrote: Does this mean that remote shared objects, and flash paper are working now with Flex2? -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] mx:TitleWindow -- SizeGrip?
Hi Sascha, Sorry, I haven't done it so can't help. But I did file a feature request for that and a more flexible window title bar here: http://www.macromedia.com/cfusion/mmform/index.cfm?name=wishform I'd like to encourage anyone who thinks a more advanced window component would be useful to file a feature request too. And thinking about this some more I'm not sure why creating a custom window with a more flexible title bar and resize grip should be any more complicated than creating a custom component this way: ?xml version=1.0 encoding=utf-8? mx:XWindow xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* resizeGripBottomRight=true mx:XWindowControlBar backgroundColor=#EE mx:Button label=menu/ mx:Label text=My More Advanced Window/ /mx:XWindowControlBar mx:TextArea text=Just a Place holder component/ /mx:XWindow Of course this is just made up to show what I would like to be able to do and doesn't work. I imagine Flex 2 will be used to create a number of full-screen applications where a more full-featured pop-up window would be really useful. I hope the Adobe crew have the time and interest to add one. Yours truly, -Brian sigges25 wrote: Hi! Does anybody know how to add a size-grip to Title-Windows? I want the user to be able to resize a window like in other windowing-systems. Regards Sascha Sigges -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
re: [flexcoders] Handling NetStream Runtime Errors..?
Hi, Just following up on my own note. It turns out this was my bug and not Flex 2's! I had a couple streams and removed the addEventListener from the wrong one while testing. :-( Sorry for the noise. Mea culpa, -Brian Hi, I have created a NetStream object that publishes video/audio via a NetConnection to Flash Media Server (Flex beta 1). I have setup a netStatus listener but find that some errors are reported as run-time errors and are not delivered to my netStatus handler. For example: Error #2044: Unhandled NetStatusEvent: level=error, code=NetStream.Publish.BadName at flex2FMS_1/flex2FMS_1::netStatus() Is there something I can do to receive this event in an event handler? Is there something I can do to stop the run-time error popup from appearing? Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Use TextArea as application console - How to automatically scroll to bottom?
See: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg19784.html Cheers, -Brian codability wrote: I am using a TextArea to display a console like console :-) inside a Flex app. I am adding text via textArea.text = textArea.text + currentMessage; I want the textArea to scroll down and always show the latest added message. Any hints? -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Handling NetStream Runtime Errors..?
Hi, I have created a NetStream object that publishes video/audio via a NetConnection to Flash Media Server (Flex beta 1). I have setup a netStatus listener but find that some errors are reported as run-time errors and are not delivered to my netStatus handler. For example: Error #2044: Unhandled NetStatusEvent: level=error, code=NetStream.Publish.BadName at flex2FMS_1/flex2FMS_1::netStatus() Is there something I can do to receive this event in an event handler? Is there something I can do to stop the run-time error popup from appearing? Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Thanks Matt, It's much appreciated. I'm filing bugs on problems I find with NetConnection/AMF0 gateways/FCS/FMS so that might help minimize the work on legacy gateways while getting the essential bits done. Yours truly, -Brian Matt Chotin wrote: Pete and I discussed it the other day. He was working on getting it in soon, not sure if it will be method-for-method compatible but the goal is for it to provide the same functionality. I don't know what the status will be of connecting it to a legacy gateway though, that has not been an overriding concern of Flex 2. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 11, 2006 8:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex2 and Amfphp is it possible ? Hi Peter, Any word on bug/feature request #154595? I've had a look in beta 1 and didn't see anything there but I could easily have missed something. Also I'm glad to see addHeader has returned to the NetConnection object even though I can't get it to pass credentials to a legacy CFMX remoting gateway yet. I filed a bug on that and related problems. Anyway if RecordSet or something similar that will be compatible with legacy apps has been added it would be great to know. Yours truly, -Brian Peter Farland wrote: If mx.remoting.RecordSet is ported to AS3 and made to extend something like mx.collections.ListCollectionView things would start to look better for legacy data interacting with new components. I think this is a reasonable request for legacy application support - I logged an enhancement request as bug #154595. Not that this is a consolation to your situation, but note that we have new, more advanced and very flexible frameworks for managing remote data in Flex Enterprise Services 2 - keep an eye out for a Beta of this soon. __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Benefits of Flash Security Model and crossdomain.xml
Hi Eric, Consider the case where a company has servers protected by a gateway firewall. The servers should not be visible from the public Internet at all - only from within the corporate network. Now someone downloads a Flash movie onto a workstation inside the firewall. If Flash allowed you to try to connect to any IP/Port, regardless of where the movie came from, then the Flash movie could act as a behind-the-firewall proxy to try to retrieve information that should never leave the corporation. If Flash allowed that it would banned in more places than it already is. Yours truly, -Brian Eric Raymond wrote: I must be missing something, but I'm a bit confused as to the design of the Flash Security Model and crossdomain.xml. My main question is who is this model intended to protect? As I undestand it, this protects third party servers from disclosing their data to flash clients. That is, if you do not have a cross domain file on a third party server, a flash program cannot access the data. But, any other program (e.g. ,a web browser, socket program, etc) could easily access this data. It's up to the client to recuse itself (and only flash clients recuse themselves). It would seem for a server to protect itself, it would have to enforce the protection, not the client. My expectation was that this was more like a Java sandbox which prevented a program from accessing other sites for the protection of the client, not the server. In such a scheme one might expect the crossdomain.xml file to be controlled by the server which served the flash application (not the 3rd party server) ... a chain of trust. If it's controlled by the 3rd party, then there's not a huge amount of protection. So I can't see any benefit of letting the thrid party server be in control of this file. If the crossdmain.xml file is to protect the server, then it misses the case where non-flash clients can access the server. If it is to protect the client from a malicious thrid party, the third party can simply add a crossdomain.xml file to their site. Perhaps this is to avoid DOS'ing a third party site from a flash app, but attempting to grab the crossdomain.xml file could be a form of attack (although arguably less intensive). So what am I missing here? Perhaps there are use cases that I don't see that this model affords protection either to the client or the server. -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Hi Peter, Any word on bug/feature request #154595? I've had a look in beta 1 and didn't see anything there but I could easily have missed something. Also I'm glad to see addHeader has returned to the NetConnection object even though I can't get it to pass credentials to a legacy CFMX remoting gateway yet. I filed a bug on that and related problems. Anyway if RecordSet or something similar that will be compatible with legacy apps has been added it would be great to know. Yours truly, -Brian Peter Farland wrote: I can tell you, however, that Flex 2 Data Provider API is considerably different. I believe the mx.remoting.RecordSet API as it stands in Flex 1.5 is an inadequate data provider for Flex 2 components. How can plain old web services, which are totally generic, be adequate but not recordsets? [Pete] Sorry, I should have explained further. Flex 2 components use mx.collections.ICollectionView to manage data that may have also come from a remote location (implying that users might have to consider paging concerns when all of the data is not present on the client). If mx.remoting.RecordSet is ported to AS3 and made to extend something like mx.collections.ListCollectionView things would start to look better for legacy data interacting with new components. I think this is a reasonable request for legacy application support - I logged an enhancement request as bug #154595. Not that this is a consolation to your situation, but note that we have new, more advanced and very flexible frameworks for managing remote data in Flex Enterprise Services 2 - keep an eye out for a Beta of this soon. Also, how were you constructing these on the server? CF Query objects? Brians story is different from mine which I am sure is different for php users. But I construct all of my recordsets with JDBC resultsets. Cached rowsets to be exact. I suck lots of complex queries right out of the database and send them to flash. The data never becomes serialized POJOs. [Pete] Very cool. The format of a JDBC resultset (well, cached rowset as you accurately state), and a CF Query were the same over the wire according to Flash / Flex. The structure is pretty simple. Did you make use of paging by any chance? __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] NetConnection.connect parameters not being passed to FMS correctly
Hi, I've been trying to connect to FMS with additional parameters in the nc.connect() call. However, I cannot pass an object as a second parameter. Instead of an object, FMS receives a string containing the nc.uri as a second parameter. For example: nc.connect(rtmp:/flex2FMSTest, {userName:blesser, password:bigSecret}); I don't receive the object within FMS. Here is some server-side test code: application.onConnect = function(client){ trace(client connecting client: + client); trace(Number of arguments to onConnect: + arguments.length); for (var p=0; p arguments.length; p++) { trace(arguments. + p + : + arguments[p]); trace(typeof + p + : + typeof arguments[p]); } return true; } And here's its output: client connecting client: [object Client] Number of arguments to onConnect: 3 arguments.0: [object Client] typeof 0: object arguments.1: rtmp:/flex2FMSTest typeof 1: string arguments.2: undefined typeof 2: undefined I have already set: NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; Before I file a bug, has anyone got this working? Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] NetConnection.connect parameters not being passed to FMS correctly
Just an FYI. I filed a bug on this. Also this works: nc.connect(rtmp:/flex2FMS_AMF0Test, blesser, bigSecret); But this does not: nc.connect(rtmp:/flex2FMS_AMF0Test, {userName:blesser, password:bigSecret}); Yours truly, -Brian Brian Lesser wrote: Hi, I've been trying to connect to FMS with additional parameters in the nc.connect() call. However, I cannot pass an object as a second parameter. Instead of an object, FMS receives a string containing the nc.uri as a second parameter. For example: nc.connect(rtmp:/flex2FMSTest, {userName:blesser, password:bigSecret}); I don't receive the object within FMS. Here is some server-side test code: application.onConnect = function(client){ trace(client connecting client: + client); trace(Number of arguments to onConnect: + arguments.length); for (var p=0; p arguments.length; p++) { trace(arguments. + p + : + arguments[p]); trace(typeof + p + : + typeof arguments[p]); } return true; } And here's its output: client connecting client: [object Client] Number of arguments to onConnect: 3 arguments.0: [object Client] typeof 0: object arguments.1: rtmp:/flex2FMSTest typeof 1: string arguments.2: undefined typeof 2: undefined I have already set: NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; Before I file a bug, has anyone got this working? Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
Hi Dominick, Just a guess but Flash Media Server uses AMF0 to send/receive ActionScript data. DataServices uses AMF3. So I would guess that getRemote is only broken for AMF0??? Maybe someone at Adobe could say more though as there might be a lot more to it. Yours truly, -Brian Dominick Accattato wrote: if remote sharedObjects aren't working, how does DataServices work. On 2/9/06, Philippe Maegerman [EMAIL PROTECTED] wrote: I haven't played with flex 2 yet, but from what I read here, there are already 2 frustrating limitations to me: -You can connect to FMS but can't use remote Shared Objects -You can embed Flash8 movies but you can't access their methods Philippe From: flexcoders@yahoogroups.com on behalf of Brian Lesser Sent: Wed 2/8/2006 22:43 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Hi Philippe, I went back and tried creating the SharedObject on the server side first. It didn't make any difference. Since SharedObject.getRemote() returns null al the time I can't check the data property on the client side. I've checked and the server is doing what it should. Yours truly, -Brian Philippe Maegerman wrote: Have you tried creating the SO server side first? in the applicationStart handler maybe, and see if it make any difference? Maybe also try to check SO.data.length. Philippe From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Mon 2/6/2006 6:45 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 http://www.macromedia.com/go/wish. I'm not sure how much testing has been done yet with AS3 and FMS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http
Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
Hi Philippe, I went back and tried creating the SharedObject on the server side first. It didn't make any difference. Since SharedObject.getRemote() returns null al the time I can't check the data property on the client side. I've checked and the server is doing what it should. Yours truly, -Brian Philippe Maegerman wrote: Have you tried creating the SO server side first? in the applicationStart handler maybe, and see if it make any difference? Maybe also try to check SO.data.length. Philippe From: flexcoders@yahoogroups.com on behalf of Matt Chotin Sent: Mon 2/6/2006 6:45 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 http://www.macromedia.com/go/wish. I'm not sure how much testing has been done yet with AS3 and FMS. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Saturday, February 04, 2006 8:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3 Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] AS2: is it Pass By Reference?
Hi, Technically all values are passed by value. However, objects and array values are references. So when you pass an object or array the reference value is copied into the local variable. Yours truly, -Brian JesterXL wrote: Primitives are pass by val, whereas all complex types are pass by ref. String Number == pass by val Date, Array, Object, etc. == pass by ref When in doubt, assume by ref. - Original Message - From: Sauro, Nick To: flexcoders@yahoogroups.com Sent: Tuesday, February 07, 2006 3:06 PM Subject: [flexcoders] AS2: is it Pass By Reference? Does anyone know? From what I've seen, it seems not, but am I wrong? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Scrolling a TextArea to the bottom?
Hi Gordon, OK, I've found a few more serious problems with scrolling and filed a bug. There are two larger problems 1. scrolling to the bottom doesn't work when it's done in a for loop 2. after scrolling down, when you use the scrollbar to scroll up all the text above the last line is automatically selected even though the user didn't select it. Just in case the app sample didn't come through in the bug report here it is: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=vertical childrenCreated=showProblem() mx:TextArea width=200 height=120 id=traceArea/ mx:Button label=Add another Line click=addLine();/ mx:Script ![CDATA[ private function writeln(msg:String){ traceArea.text += msg + \n; traceArea.validateNow(); traceArea.vPosition = traceArea.maxVPosition; } private function showProblem(){ for (var i:Number = 0; i 20; i++){ writeln(i + : + test line); } } private function addLine(){ writeln(another line...); } ]] /mx:Script /mx:Application Yours truly, -Brian Gordon Smith wrote: Please file a bug on the minor problem you're seeing. This will be a common thing to want to do. - Gordon -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] SetEventHandler Limitations?
Hi, I'm having a problem with using SetEventHandler in Flex 2 beta. Maybe it doesn't do what I would like? Within a State tag I create a component and class. I'd like the class to listen for connect events from the component. I can do that in a few ways, but have not been able to set it up so that I receive the actual event from the component. A code snippet is below. In it I create an Event but that's not what I want. I want the event the signOnForm component is broadcasting... My apologies if I have missed the answer in the docs. I have tried things like mx:SetEventHandler event=connect target={signOnForm} handler={connector}/ and mx:SetEventHandler event=connect target={signOnForm} handler={connector.connect}/ without success. Yours truly, -Brian mx:states mx:State name=SignOn mx:AddChilduic:SignOnForm id=signOnForm//mx:AddChild mx:AddChildfmsc:FMSConnector id=connector //mx:AddChild mx:SetEventHandler event=connect target={signOnForm} handler=connector.connect(new Event('connect'))/ /mx:State mx:State name=Main /mx:State /mx:states -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] SetEventHandler Limitations?
FYI, I now can do what I want this way without using SetEventHandler: mx:states mx:State name=SignOn mx:AddChildfmsc:FMSConnector id=connector //mx:AddChild mx:AddChilduic:SignOnForm id=signOnForm connect=connector.connect(event)//mx:AddChild /mx:State mx:State name=Main /mx:State /mx:states Which is simpler. Still I'm a little surprised I couldn't do that with SetEventHandler. For example one of the things I tried: mx:SetEventHandler event=connect target={signOnForm} handler=connector.connect(event)/ gives the error: Implicit coercion of a value with static type 'Object' to a possibly unrelated type 'flash.events:Event' Yours truly, -Brian Brian Lesser wrote: Hi, I'm having a problem with using SetEventHandler in Flex 2 beta. Maybe it doesn't do what I would like? Within a State tag I create a component and class. I'd like the class to listen for connect events from the component. I can do that in a few ways, but have not been able to set it up so that I receive the actual event from the component. A code snippet is below. In it I create an Event but that's not what I want. I want the event the signOnForm component is broadcasting... My apologies if I have missed the answer in the docs. I have tried things like mx:SetEventHandler event=connect target={signOnForm} handler={connector}/ and mx:SetEventHandler event=connect target={signOnForm} handler={connector.connect}/ without success. Yours truly, -Brian mx:states mx:State name=SignOn mx:AddChilduic:SignOnForm id=signOnForm//mx:AddChild mx:AddChildfmsc:FMSConnector id=connector //mx:AddChild mx:SetEventHandler event=connect target={signOnForm} handler=connector.connect(new Event('connect'))/ /mx:State mx:State name=Main /mx:State /mx:states -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] SetEventHandler Limitations?
Hi Jeremy, Well, first of all this does work: uic:SignOnForm id=signOnForm connect=connector.connect(event)/ But this doesn't work: mx:SetEventHandler event=connect target={signOnForm} handler=connector.connect(event)/ ...which is what confuses me. Anyway, below is the package/class with the connect method that expects an Event object as a parameter. Yours truly, -Brian package FMSComponents { import flash.events.Event; import mx.controls.*; public class FMSConnector extends flash.events.EventDispatcher{ public function FMSConnector(){ } public function connect(ev:Event):void{ Alert.show(Time to connect! from: + ev.target); } } } jeremy lu wrote: hi Brian, seems like this line is where the problem is : handler=connector.connect(event) connect() is expecting an Object but what get passed in is an Event. what's inside the connect() method ? On 2/6/06, Brian Lesser [EMAIL PROTECTED] wrote: FYI, I now can do what I want this way without using SetEventHandler: mx:states mx:State name=SignOn mx:AddChildfmsc:FMSConnector id=connector //mx:AddChild mx:AddChilduic:SignOnForm id=signOnForm connect=connector.connect(event)//mx:AddChild /mx:State mx:State name=Main /mx:State /mx:states Which is simpler. Still I'm a little surprised I couldn't do that with SetEventHandler. For example one of the things I tried: mx:SetEventHandler event=connect target={signOnForm} handler=connector.connect(event)/ gives the error: Implicit coercion of a value with static type 'Object' to a possibly unrelated type 'flash.events:Event' Yours truly, -Brian Brian Lesser wrote: Hi, I'm having a problem with using SetEventHandler in Flex 2 beta. Maybe it doesn't do what I would like? Within a State tag I create a component and class. I'd like the class to listen for connect events from the component. I can do that in a few ways, but have not been able to set it up so that I receive the actual event from the component. A code snippet is below. In it I create an Event but that's not what I want. I want the event the signOnForm component is broadcasting... My apologies if I have missed the answer in the docs. I have tried things like mx:SetEventHandler event=connect target={signOnForm} handler={connector}/ and mx:SetEventHandler event=connect target={signOnForm} handler={connector.connect}/ without success. Yours truly, -Brian mx:states mx:State name=SignOn mx:AddChilduic:SignOnForm id=signOnForm//mx:AddChild mx:AddChildfmsc:FMSConnector id=connector //mx:AddChild mx:SetEventHandler event=connect target={signOnForm} handler=connector.connect(new Event('connect'))/ /mx:State mx:State name=Main /mx:State /mx:states -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: How to use SharedObject.getRemote with Flex 2 / AS3
Yeah, It looks broken to me too. I went and tried a simple test and got the following error: TypeError: Error #1009: null has no properties. at flex2FMS/flex2FMS::netStatus() Where do we file bug reports again? Yours truly, -Brian flexargg wrote: Hi Brian, After adding your three lines, SharedObject.getRemote return NULL again !!! --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: Totally wild guess, but trying adding these three lines after your import statements: NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; NetStream.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; For what it's worth I posted a small sample app that does a some basic NetConnection and NetStream stuff here: http://flash-communications.net/technotes/fms2/flex2FMS/index.html It does not include SharedObject code. Yours truly, -Brian flexargg wrote: I have written the following code and SharedObject.getRemote return NULL !!! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; width=100% height=100% creationComplete=initApp() mx:Script ![CDATA[ import flash.media.*; import flash.net.*; import mx.controls.Alert; public var nc_client:NetConnection; public var so:SharedObject; public function initApp():void { nc_client=new NetConnection(); nc_client.connect(rtmp://localhost/testAS3,); nc_client.addEventListener (NetStatusEvent.NET_STATUS,netStatusHandler); } public function netStatusHandler(event:NetStatusEvent):void { var info:Object = event.info; if (info.code == NetConnection.Connect.Success) { so=SharedObject.getRemote(so, nc_client.uri, false); if (so==null) mx.controls.Alert.show('SharedObject.getRemote return NULL'); } } ]] /mx:Script /mx:Application -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to use SharedObject.getRemote with Flex 2 / AS3
Totally wild guess, but trying adding these three lines after your import statements: NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; NetStream.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; SharedObject.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; For what it's worth I posted a small sample app that does a some basic NetConnection and NetStream stuff here: http://flash-communications.net/technotes/fms2/flex2FMS/index.html It does not include SharedObject code. Yours truly, -Brian flexargg wrote: I have written the following code and SharedObject.getRemote return NULL !!! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; width=100% height=100% creationComplete=initApp() mx:Script ![CDATA[ import flash.media.*; import flash.net.*; import mx.controls.Alert; public var nc_client:NetConnection; public var so:SharedObject; public function initApp():void { nc_client=new NetConnection(); nc_client.connect(rtmp://localhost/testAS3,); nc_client.addEventListener (NetStatusEvent.NET_STATUS,netStatusHandler); } public function netStatusHandler(event:NetStatusEvent):void { var info:Object = event.info; if (info.code == NetConnection.Connect.Success) { so=SharedObject.getRemote(so, nc_client.uri, false); if (so==null) mx.controls.Alert.show('SharedObject.getRemote return NULL'); } } ]] /mx:Script /mx:Application -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Scrolling a TextArea to the bottom?
Hi Gordon, Thanks for the suggestion, even though I couldn't get it to work, I really appreciate your taking the time to explain how things work. It's good to know that stuff. Here's what I tried that didn't work: public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.vPosition = traceArea.maxVPosition; traceArea.validateNow(); } Earlier Jesse suggested the line below but I have no idea (being new to Flex) how to incorporate that into a function: mx:TextArea id=my_ta change=my_ta.vPosition = my_ta.maxVPosition / Any ideas how I could get reliable scrolling to the bottom of a text area with the least amount of code/complexity? Yours truly, -Brian Gordon Smith wrote: Try calling traceArea.validateNow() after setting the text. Here is some background about this... Flex relies heavily on invalidation: you set a property but it doesn't take effect until later. That allows you, for example, to set a bunch of properties and have a component only redraw once, instead of redrawing after each property is changed. There are three invalidation APIs on a UIComponent invalidateProperties(); invalidateSize(); invalidateDisplayList(); and most property setters call one or more of these. For example, the setter for the 'text' property of a TextArea calls invalidateProperties() and invalidateDisplayList(). These APIs push the component onto various queues that the LayoutManager maintains. When the Flash Player is about to render the tree of DisplayObjects onto the screen, we validate the components in these queues by calling three validation APIs, which bring the component up-to-date: validateProperties() - commitProperties() validateSize()- measure() validateDisplayList() - updateDisplayList() The call to commitProperties() pushes the text into the underlying Flash TextField. You can cause these three methods to be called prematurely (i.e., before the player is about to render) by calling validateNow() on the component. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Wednesday, February 01, 2006 9:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Scrolling a TextArea to the bottom? Thanks Mac, You know, I just assumed it would work in Flex. In Flash I used to be able to call redraw() right after setting the vPosition property and it would work ok. I don't suppose there is a simple one liner that does the job in Flex?? Yours truly, -Brian vardpenguin wrote: You're doing it correctly, the problem is that when you set the vPosition, the 'msg' string has not been fully loaded into the textArea yet. You need to do some sort of check to make sure the textArea content change has been completed, or wait a few moments before you set vPosition. -Mac --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: Possibly really dumb question but shouldn't this scroll a TextArea to the bottom: public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.vPosition = traceArea.maxVPosition; } Where traceArea is a TextArea. It doesn't seem to work for me in Flex Beta 1. Yours truly, -Brian -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Scrolling a TextArea to the bottom?
Hi Gordon, I wrote too soon! This DOES work (with a really minor rendering problem) : public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.validateNow(); traceArea.vPosition = traceArea.maxVPosition; } The minor problem is that the first time I ran the app and the TextArea scrolled to the bottom, the scroll bar elevator appeared briefly well below the a scroll bar area. I can't make it do it all the time either so I'm much further ahead. Thanks again, -Brian Brian Lesser wrote: Hi Gordon, Thanks for the suggestion, even though I couldn't get it to work, I really appreciate your taking the time to explain how things work. It's good to know that stuff. Here's what I tried that didn't work: public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.vPosition = traceArea.maxVPosition; traceArea.validateNow(); } Earlier Jesse suggested the line below but I have no idea (being new to Flex) how to incorporate that into a function: mx:TextArea id=my_ta change=my_ta.vPosition = my_ta.maxVPosition / Any ideas how I could get reliable scrolling to the bottom of a text area with the least amount of code/complexity? Yours truly, -Brian Gordon Smith wrote: Try calling traceArea.validateNow() after setting the text. Here is some background about this... Flex relies heavily on invalidation: you set a property but it doesn't take effect until later. That allows you, for example, to set a bunch of properties and have a component only redraw once, instead of redrawing after each property is changed. There are three invalidation APIs on a UIComponent invalidateProperties(); invalidateSize(); invalidateDisplayList(); and most property setters call one or more of these. For example, the setter for the 'text' property of a TextArea calls invalidateProperties() and invalidateDisplayList(). These APIs push the component onto various queues that the LayoutManager maintains. When the Flash Player is about to render the tree of DisplayObjects onto the screen, we validate the components in these queues by calling three validation APIs, which bring the component up-to-date: validateProperties() - commitProperties() validateSize()- measure() validateDisplayList() - updateDisplayList() The call to commitProperties() pushes the text into the underlying Flash TextField. You can cause these three methods to be called prematurely (i.e., before the player is about to render) by calling validateNow() on the component. - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Wednesday, February 01, 2006 9:24 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Scrolling a TextArea to the bottom? Thanks Mac, You know, I just assumed it would work in Flex. In Flash I used to be able to call redraw() right after setting the vPosition property and it would work ok. I don't suppose there is a simple one liner that does the job in Flex?? Yours truly, -Brian vardpenguin wrote: You're doing it correctly, the problem is that when you set the vPosition, the 'msg' string has not been fully loaded into the textArea yet. You need to do some sort of check to make sure the textArea content change has been completed, or wait a few moments before you set vPosition. -Mac --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: Possibly really dumb question but shouldn't this scroll a TextArea to the bottom: public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.vPosition = traceArea.maxVPosition; } Where traceArea is a TextArea. It doesn't seem to work for me in Flex Beta 1. Yours truly, -Brian -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders
[flexcoders] Flex / OOP custom component coding question
Hi, In Flash I can create a class that is associated with a Movie Clip in the library. The clip can contain UI Components and acts as a form within the application. To refer to the form elements within the clip I just need to declare them in the class. It seems cleaner than placing functions on the clip's timeline. When I create a new form-like component in Flex is there a way to do something similar without including all the code in a script tag AND still get the benefit of using MXML to provide all the subcomponents like TextInputs and Buttons? Primarily, I want the class to play the role of Mediator within the form. (Mediator pattern.) My apologies if this is in the docs or I missed it looking back through the mailing list posts. Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex / OOP custom component coding question
Hi Dirk, I thought something like that was going to be the answer, but it's great to have it laid out step by step - thanks! I guess if I was trying to formulate a feature request for a later release it might be that we could edit the class code that Flex generates from an MXML file... kind of a round trip feature... Thanks again, -Brian Dirk Eismann wrote: Hi Brian, not directly, but you could solve it this way: 1) Define a MXML component that describes the layout etc. (MyComponent.mxml) 2) Create your a Mediator (or Helper) class in ActionScript (MyComponentHelper.as) 3) define a public var view of type MyComponent inside MyComponentHelper (or use interfaces to make it more generic) 3) instantiate MyComponentHelper inside MyComponent and pass a reference to MyComponent to it -- pseudo code for MyComponent -- mx:HBox helper:MyComponentHelper view={this} / mx:Button id=button label=Hello/ ... /mx:HBox 4) because view is just a reference to MyComponent you are save to do view.button.label = Yo! from inside MyComponentHelper Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: Thursday, February 02, 2006 1:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex / OOP custom component coding question Hi, In Flash I can create a class that is associated with a Movie Clip in the library. The clip can contain UI Components and acts as a form within the application. To refer to the form elements within the clip I just need to declare them in the class. It seems cleaner than placing functions on the clip's timeline. When I create a new form-like component in Flex is there a way to do something similar without including all the code in a script tag AND still get the benefit of using MXML to provide all the subcomponents like TextInputs and Buttons? Primarily, I want the class to play the role of Mediator within the form. (Mediator pattern.) My apologies if this is in the docs or I missed it looking back through the mailing list posts. Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex / OOP custom component coding question
Hi Jesse, Thanks for your posts on both threads. That's really helpful and puts things together that I hadn't fully connected. Much appreciated! Cheers, -Brian JesterXL wrote: There are a few ways. Dirk mentioned one, there are 3 others I've read about. One way is to create your MXML as pure tags form elements with ID's. Then, you create your associated ActionScript that contains only logic (no creation of GUI stuff). You link to this .as file via your mx:Script tag's source property. The plus is your MXML has nothing but GUI components (doesn't have to, but usually). The downside is, your AS must: - use imports even though your MXML already imported them - you must define the controls you are using as variables of your class even though your MXML already has them defined - you have to write out the code as a class Because of those first 2 reasons, I stopped doing it. Yeah, sure, it's a better practice, but it's a duplication of efforts and I'm not wasiting time when I don't have to. Cairngorm takes this a step further via a ViewHelper. It kind of works like Dirk's example, except you can access it via a string name, and it has a reference to the view as a class property without the need to define all the stuff I mentioned. You can get it via a ViewLocator which acts like a Singleton to hold all View's. - Original Message - From: Brian Lesser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 02, 2006 7:48 AM Subject: [flexcoders] Flex / OOP custom component coding question Hi, In Flash I can create a class that is associated with a Movie Clip in the library. The clip can contain UI Components and acts as a form within the application. To refer to the form elements within the clip I just need to declare them in the class. It seems cleaner than placing functions on the clip's timeline. When I create a new form-like component in Flex is there a way to do something similar without including all the code in a script tag AND still get the benefit of using MXML to provide all the subcomponents like TextInputs and Buttons? Primarily, I want the class to play the role of Mediator within the form. (Mediator pattern.) My apologies if this is in the docs or I missed it looking back through the mailing list posts. Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex 2 AMF0 Remoting and Application.cfm abort
Hi, When I use nc.call to call a cfc on an old Colfusion 7 remoting gateway everything works fine (so far). But when I protect the cfc with an Appplication.cfm file with just an abort/ in it I get the following runtime error: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to flash.events.Event Not sure what, if anything, I should do about this. Test Flex code is below. Yours truly, -Brian ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=vertical childrenCreated=init() mx:Form mx:FormHeading label=Remoting Test textAlign=left/ mx:TextArea width=477 height=138 id=traceArea / mx:FormItem label=Text to send: mx:TextInput width=380 id=message text=Test!/ /mx:FormItem mx:Button label=Send id=sendButton click=send()/ /mx:Form mx:Script ![CDATA[ import mx.rpc; import flash.net; NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; public var nc:NetConnection; public var echoResponder:Responder; //writeln to a text area instead of trace. public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.validateNow(); traceArea.vPosition = traceArea.maxVPosition; } private function send():void{ writeln(sending: + message.text); nc.call(flexRemotingTests.mirror.echo, echoResponder, message.text); } private function init():void{ echoResponder = new Responder(echoResult, echoStatus); nc = new NetConnection(); nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus); nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError); nc.connect(http://localhost/flashservices/gateway;); } private function netStatus(event:NetStatusEvent):void { writeln(netStatus: + event); var info:Object = event.info; for(var p:String in info) { writeln(p + : + info[p]); } } private function netSecurityError(event:SecurityErrorEvent):void { writeln(netSecurityError: + event); } private function echoResult(msg:String){ writeln(echoResult: + msg + \n); } private function echoStatus(event:Event){ writeln(echoStatus: + event); } ]] /mx:Script /mx:Application -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Scrolling a TextArea to the bottom?
Possibly really dumb question but shouldn't this scroll a TextArea to the bottom: public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.vPosition = traceArea.maxVPosition; } Where traceArea is a TextArea. It doesn't seem to work for me in Flex Beta 1. Yours truly, -Brian -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Scrolling a TextArea to the bottom?
Thanks Mac, You know, I just assumed it would work in Flex. In Flash I used to be able to call redraw() right after setting the vPosition property and it would work ok. I don't suppose there is a simple one liner that does the job in Flex?? Yours truly, -Brian vardpenguin wrote: You're doing it correctly, the problem is that when you set the vPosition, the 'msg' string has not been fully loaded into the textArea yet. You need to do some sort of check to make sure the textArea content change has been completed, or wait a few moments before you set vPosition. -Mac --- In flexcoders@yahoogroups.com, Brian Lesser [EMAIL PROTECTED] wrote: Possibly really dumb question but shouldn't this scroll a TextArea to the bottom: public function writeln(msg:String):void{ traceArea.text += msg + \n; traceArea.vPosition = traceArea.maxVPosition; } Where traceArea is a TextArea. It doesn't seem to work for me in Flex Beta 1. Yours truly, -Brian -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Hi Peter, I was very pleased to read that you have logged an enhancement request for legacy application support. If, by the time Adobe ships Flex 2, standalone Flex 2 can be made (with a little effort) to work against existing Flash Remoting applications then I think Adobe will have done very well. I realise this may not seem like an important strategic necessity given all the ambitious goals of Flex 2. However, from my perspective the mark of a good platform vendor is that they work hard to provide sensible migration paths that lower the cost of incremental adoption. The more Adobe does to make standalone Flex 2 work on its own the better. I'm sure the new features in FDS will sell themselves and Adobe's customers will be happier if they don't feel they are being forced to switch. By the way, I see an E-mail I sent in response to Dave's earlier post on Thursday arrived in my inbox late Friday. From the mail header, it looks like it spent the better part of a day queued on a Yahoo server. So, if you read my response to Dave on Friday you might be wondering about my ability to take part in a conversation in a rational manner. After all, Dave has already clarified what he was saying, and Matt corrected me that addHeader() was never a public method in Flash. So some of that E-mail was wrong or beside the point by the time it arrived. And who knows when Yahoo will deliver this one? Yours truly, -Brian Peter Farland wrote: [Pete] Sorry, I should have explained further. Flex 2 components use mx.collections.ICollectionView to manage data that may have also come from a remote location (implying that users might have to consider paging concerns when all of the data is not present on the client). If mx.remoting.RecordSet is ported to AS3 and made to extend something like mx.collections.ListCollectionView things would start to look better for legacy data interacting with new components. I think this is a reasonable request for legacy application support - I logged an enhancement request as bug #154595. -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Hi Dave, This thread started with a query regarding using the open source AMF PHP software that a number of people have been using for some time to build Flash/AMF/PHP based applications. Developers in that space naturally want to continue to use the server-side code base (in PHP) they have been building out along with the new standalone Flex 2 IDE and AS3. However, it appears from the Alpha, and from what I gather Mike has been saying, that this will not be possible without reinventing a number of AS3 classes such as RecordSet from scratch. Perhaps worse, though I am not into PHP, is that it may not be possible at all if any code relied on the NetConnection.addHeader() method. This useful, public, and documented method of the NetConnection class has not been implemented and is still under discussion within Adobe. So, unless I'm missing something in what you wrote, I don't think it is reasonable to suggest PHP developers simply switch to using Web services and Java POJOs. I always understood that something like AS3 would to some degree have to break AS2 and AS1 code and that at some point a new document object model might break many APIs. But I do not believe Adobe has to completely break everyone's Flash Remoting applications from end to end. I sincerely hope that NetConnection.addHeader reappears in the beta. I also hope that if Adobe doesn't do it, someone else will come up with a solid AS3 RecordSet implementation that works flawlessly. I wish I knew for certain if that was even possible. I also think this discussion should give everyone pause. Imagine it is 20 months from now. Perhaps, like the ill fated Flash Remoting Gateway Servlet MM tried to sell at $999/CPU, the essential parts of Flex Data Services will be reverse engineered and available as open source for a number of different server-side technologies. Will Adobe once again rewrite everything to make it better and in the process break all its public APIs? Will every Java developer be left wondering if Adobe is just trying to remonetize AMF or if they just don't have the financial/developer resources to retire an API gracefully? In any case, some caution about breaking third party developer's applications from end to end seems appropriate. Yours truly, -Brian Dave Wolf wrote: I don't understand why you can't simply use mx:WebService/ to replace mx:RemoteObject in most cases. Using AXIS you can use the exact same POJO you might have used in a mx:RemoteObject/ and do so without the need for any gateway. - Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote: As far as I know there is not yet. There was some discussion about this on the flashcoders list when flex2 came out. I made a pretty big deal about the fact that the docs seem to indicate that standard remoting will not be something that is supported. Mike Chambers (a MM employee) indicated that it was supported. But what he meant was that it was supported at a super low level and you would essentially have to write all the low level remoting code for this. It seemed pretty clear to me that their intent was to, ahem, **encourage** remoting users to buy cold fusion or Flex Data Services, in order to do painless remoting, and that they were essentially orphaning anyone who was not doing remoting with one of their pricey gateways. Now, perhaps this post will bring adobe employees out of the woodwork crying foul and saying I am wrong. But the fact that there is any ambiguity about this isssue, is, in and of itself, a real problem. The fact that that there is not some strong statement of continued **full** support for traditional remoting is, to me, shameful. Regards Hank On 12/15/05, Flapflap [EMAIL PROTECTED] wrote: Hi there, Because RemoteObject isn't available on Alpha is there a way to use flex 2 with amf php ? Thanks... By the way : Hello World ! I'm new to this list. -- Flapflap -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Thanks Matt, You know I just assumed addHeader was a public function because it showed up in the Flash Help. But of course you're right. It only does that because I've installed the Flash Communication Server and the entry is only in the server-side ASD. When the Remoting classes were completely changed after Flash 7 shipped I didn't bother with them. I just started using the NetConnection directly - it worked fine and actually reduced my swf size a little. It wasn't hard to figure out how to set credentials from the remoting code: public function setCredentials(userId:String, password:String ):Void { addHeader(Credentials, false, {userid: userId, password: password}); } And then all I had to do was load the RecordSet class. Aside from a small saving in file size it saved me a ton of work. At any rate since you folks have gone to the trouble of implementing: gateway_conn.objectEncoding = flash.net.ObjectEncoding.AMF0 I do feel you should complete the job and implement everything required to fully support existing implementations of AMF0 including authentication via http headers. I understand you are really busy and want to say thanks for looking into this. Yours truly, -Brian Matt Chotin wrote: I'm hoping that someone from product management might have a chance to address this but we've been awfully busy. Please be assured that there are active discussions internally about the right way to release this functionality to the public and we are not going into this with the goal of screwing over your existing workflow. We're still in alpha and figuring things out. More details will be coming. Also for what it's worth I do see in our internal class definition NetConnect.addHeader, but it is considered an undocumented function for the general Flex release since it is meant for Flashcom. If you check the Flash MX 2004 docs you'll notice NetConnection has very few documented functions, the additional functionality is in the Flashcom docs which we are not duplicating. Matt -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Thanks Jeff, Please see below: Jeff Tapper wrote: As Renaun pointed out, you can still use AMF1 with ColdFusion. You just dont use the built in RemoteObject tag. His solution is a total of 5 lines of code, so that doesnt really strike me as all that difficult. Well, I'm with Renaun in terms of making a connection to the gateway and calling a remote method. No problem. I can use NetConnection.call to call a remote method in Coldfusion without any problems if: 1. I don't authenticate against an Application.cfm file. Authentication doesn't work because NetConnection.addHeader() is not available. So that's a show stopper right now for using my remoting gateway as is. I hope they do decide to implement addHeader() eventually. 2. There doesn't seem to be a RecordSet class in the Flex 2 Alpha I can register as a class to correctly handle a query returned by Coldfusion. For now this is a show stopper as most of my CFCs return a query. I have to admit I have not invested the time to try to port the RecordSet class from Flash 8 to Flex 2 alpha. If I persist with Flex 2 I may end up trying to do that. If you want to use the Flex 2 RemoteObject tag, all you need to do is install the CFAdapter on the server. Yes, it looks that way, but I have a lot of testing to do before I know if that is a safe path. If it breaks the existing Remoting Gateway at all or causes subtle side effects in CFCs called from Flex 2, Flash via AMF 1, and Flash Communication Server, then I'm in big trouble with my existing apps. If it coexists happily I might end up a happy camper. I understand some may be change adverse, so I suggest to those, they should not get involved with alpha software. Changes happen all the time. Chances are alot of code we write against the alpha will need to be changed when the beta is released. That is just the nature of product development. I don't expect alpha's to be all neat and polished and complete. In fact I'm amazed at just how good the docs and everything are for Flex 2. It is really really impressive! But I have an aversion to API churn which is a different thing than changes in new software. I accept that AS3 is going to break some things in AS2 and AS1 and understand the value of a new document object model after all these years. I'm less enthusiastic when I don't see backward compatibility at the network protocol level. Well, I'll say it plainly. I'm a little shocked anyone would consider not implementing NetConnction.addHeader(). But, then again, maybe I'm missing something... Again, if anyone can shed more light on all of this I'd really love to read about it. Yours truly, -Brian __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: php flex-2 standalone
Hi Renaun, Have you got this working so that a DataGrid can display a query returned by CFMS in Flex 2 standalone? I tried doing this: _recordResponder = new Responder(handleRecordResult, handleRecordStatus); _nc = new NetConnection(); _nc.objectEncoding = flash.net.ObjectEncoding.AMF0; _nc.addEventListener(NetStatusEventType.NET_STATUS, onNetStatus); _nc.addEventListener(SecurityErrorEventType.SECURITY_ERROR, onSecurityError); _nc.connect(http://localhost/flashservices/gateway;); _nc.call(blesser.mirror.getRecords, _recordResponder); Followed later by: function handleRecordResult(result){ grid.dataProvider = result; } But of course I don't see the record set in the grid. It just has one column named serverInfo. I came across this post: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1081224enterthread=y which seems to indicate it likely won't work. Any light you can throw on getting back a record set would be most welcome. Yours truly, -Brian Renaun Erickson wrote: You can always connect using the NetConnection code as you do in Flash and AS 2.0. The Flex mxml tags are just nice wrappers that handle a lot stuff for you. I used the AS NetConnection class to connect a Flex 2 app to the current AMF ColdFusion format just fine. The newer RemoteObject component in Flex uses the newer AMF3 format. (There are 3 versions now, check out the google link below on the AMF3). Semi-Related Links: http://www.communitymx.com/content/article.cfm?cid=EE7CA AMFPHP's webpage has some AS classes that can be used also. http://www.google.com/search?hl=enlr=client=firefox-arls=org.mozilla%3Aen-US%3Aofficialq=flash.net.ObjectEncoding.AMF3btnG=Search Main thing to remember is with Flex2 there is a new AMF format (version 3) so beware of compability problems in the future. I assume they are not going to get rid of the first two AMF formats but just be ware that you do not try and mix gateway and connections up. Renaun --- In flexcoders@yahoogroups.com, JIGNESH M. DODIYA [EMAIL PROTECTED] wrote: hi, do anybody know any alternet way to use php and felx-2 standalone together?? i know that remote object can't work with standalone or need CF adepter plug-in and only work with flex- enterpriese edition but still any idea to club php with flex-2 standalone edition?? regards, jignesh -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] php flex-2 standalone
Hi Jignesh, I've been experimenting a little to see if I could do the same thing with Coldfusion's Remoting gateway and Flex 2. As I understand it Remoting was based on the NetConnection object's call method. You could call a remote method, include parameters and get any type of ActionScript object back. If you included or imported and instantiated a RecordSet object in your Flash movie, you would get a RecordSet back from a query and could simply assign it to a DataGrid's dataProvider property. In Flex 2 DataProvider is deprecated and I don't think there is a RecordSet class. The NetConnection.call method does seem to work but I don't see anyway to cast the returned object into a RecordSet or equivalent. So as far as I can see (with the limited work I've done so far) you would have to do a lot of work to be able to use NetConnection.call and get usable results from an existing Flash Remoting Gateway. Since I have a bunch of apps that use the current Coldfusion Flash Remoting Gateway and don't want to be forced to use DataServices, I'm not sure how much I should be interested in Flex 2. I also discovered that NetConnection.addHeader does not work in Alpha 1 and Matt Chotin was kind enough to say it is still under discussion. I think I would need that for authentication against my current Coldfusion apps via Flash Remoting. I am concerned that Flex 2 standalone will not allow me to work directly with server-side applications that use the existing Coldfusion Gateway or that it will require extensive hacking on the Flex 2 client side to make it work. Yours truly, -Brian JIGNESH M. DODIYA wrote: hi, do anybody know any alternet way to use php and felx-2 standalone together?? i know that remote object can't work with standalone or need CF adepter plug-in and only work with flex- enterpriese edition but still any idea to club php with flex-2 standalone edition?? regards, jignesh -- 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 -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: setUsernamePassword on RemoteObject
Picking up on an old thread from back in July, where calling addHeader on a NetConnection object got authentication working with Coldfusion when I try to do the same thing in Flex 2 Alpha 1, I get: code: NetConnection.Call.Failed and description: HTTP: Failed Does anyone know if addHeader is still supposed to be available, if its a bug, or if the parameters have changed? Yours truly, -Brian Credentials sent in custom manner are never sent using HTTP Headers. The information is contained within the AMF/HTTP POST body. The Flex-only API, setUsernamePassword, works on a per request basis and sends credential information inside a special Flex Envelope type which can have per-request headers. The legacy Flash Remoting setCredentials API worked on a per AMF packet basis (which potentially contained a batch of several requests as per NetConnection) and was sent as an AMF Header. Either way, you can only have one J2EE or CF session per connection, and connections are pooled on endpoint URI in Flex. So it should be fine for you to use the old setCredentials() API in most cases. You could just call setCredentials() on the RemoteObject connection property yourself... it simply sets an AMF Header on the underlying NetConnection with an anonymous object that has two properties 'userid' and 'password'. addHeader(Credentials, false, {userid: userId, password: password}); -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED] On Behalf Of Andrew Spaulding Sent: Tuesday, July 05, 2005 3:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: setUsernamePassword on RemoteObject Thanks Vinny, Im assuming theres no workaround for this? Im probably just gonna pass the username and password as variables with each call then. Im using the cairngorm framework and I have a delegate super class so I can hide it all in there ;) cheers, Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, Vinny Timmermans [EMAIL PROTECTED] wrote: This is a known bug in Flex 1.5. The setUsernamePassword API is not connected to CFLOGIN. Hope they will fix it in Flex 2. Vinny -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED] On Behalf Of Andrew Spaulding Sent: dinsdag 5 juli 2005 04:38 To: flexcoders@yahoogroups.com Subject: [flexcoders] setUsernamePassword on RemoteObject Hi, I'm trying to use the flash remoting setCredentials equivalent in flex to send a username and password with my remote object requests. I can see the Credentials being set in the header when i view the traffic in the netConnectionDebugger, but nothing seems to be in the http header, and hence is not picked up in cflogin Any ideas? Andrew Spaulding www.flexdaddy.info __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: setUsernamePassword on RemoteObject
Thanks Ian, I'm trying to make remoting calls without the adapter and other classes. I think I should be able to do this with NetConnection alone but have not been able to make addHeader work for authentication to Coldfusion from Flex 2. Yours truly, -Brian Ian Welsh wrote: If you are using the new Flex 2 Coldfusion Adapter and CF7, use remoteObjectID.setUsernamePassword(username, password) and in CF you'll see them in the cflogin scope #cflogin.name# #cflogin.password# Hope this helps Ian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: 14 November 2005 15:44 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword on RemoteObject Picking up on an old thread from back in July, where calling addHeader on a NetConnection object got authentication working with Coldfusion when I try to do the same thing in Flex 2 Alpha 1, I get: code: NetConnection.Call.Failed and description: HTTP: Failed Does anyone know if addHeader is still supposed to be available, if its a bug, or if the parameters have changed? Yours truly, -Brian Credentials sent in custom manner are never sent using HTTP Headers. The information is contained within the AMF/HTTP POST body. The Flex-only API, setUsernamePassword, works on a per request basis and sends credential information inside a special Flex Envelope type which can have per-request headers. The legacy Flash Remoting setCredentials API worked on a per AMF packet basis (which potentially contained a batch of several requests as per NetConnection) and was sent as an AMF Header. Either way, you can only have one J2EE or CF session per connection, and connections are pooled on endpoint URI in Flex. So it should be fine for you to use the old setCredentials() API in most cases. You could just call setCredentials() on the RemoteObject connection property yourself... it simply sets an AMF Header on the underlying NetConnection with an anonymous object that has two properties 'userid' and 'password'. addHeader(Credentials, false, {userid: userId, password: password}); -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED] On Behalf Of Andrew Spaulding Sent: Tuesday, July 05, 2005 3:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: setUsernamePassword on RemoteObject Thanks Vinny, Im assuming theres no workaround for this? Im probably just gonna pass the username and password as variables with each call then. Im using the cairngorm framework and I have a delegate super class so I can hide it all in there ;) cheers, Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, Vinny Timmermans [EMAIL PROTECTED] wrote: This is a known bug in Flex 1.5. The setUsernamePassword API is not connected to CFLOGIN. Hope they will fix it in Flex 2. Vinny -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL mailto:%5BEMAIL PROTECTED] On Behalf Of Andrew Spaulding Sent: dinsdag 5 juli 2005 04:38 To: flexcoders@yahoogroups.com Subject: [flexcoders] setUsernamePassword on RemoteObject Hi, I'm trying to use the flash remoting setCredentials equivalent in flex to send a username and password with my remote object requests. I can see the Credentials being set in the header when i view the traffic in the netConnectionDebugger, but nothing seems to be in the http header, and hence is not picked up in cflogin Any ideas? Andrew Spaulding www.flexdaddy.info __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services
Re: [flexcoders] Re: setUsernamePassword on RemoteObject
Thanks Matt, For what it might be worth, I have applications where I've used the NetConnection and RecordSet classes and little else. This has saved me from worrying about changes in the remoting classes and components in the past. The easiest Flex adoption path for me is if I can bolt new standalone based clients on to existing Flash/Coldfusion applications. I was hoping to port a couple apps to Flex 2 this way. Yours truly, -Brian m_chotin wrote: For now it's either the CF adapter or enterprise, we're still figuring out the story... --- In flexcoders@yahoogroups.com, Ian Welsh [EMAIL PROTECTED] wrote: I *think* you will be out of luck with Flex2 as I think they have made changes to remoteobject/AMF which require the new CF adapter (if you use Coldfusion) or Flex Enterprise Services. In essence, with Flex 2, it seems that remoteobject and the associated speed enhancements of AMF are only available to 'Enterprise' users and/or us CF'ers. Maybe someone from MM can clarify but I think you will have to look at 'ordinary' web services if you must use Flex2 without the CF Adapter and CF7. Regards Ian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Lesser Sent: 14 November 2005 17:44 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: setUsernamePassword on RemoteObject Thanks Ian, I'm trying to make remoting calls without the adapter and other classes. I think I should be able to do this with NetConnection alone but have not been able to make addHeader work for authentication to Coldfusion from Flex 2. Yours truly, -Brian -- __ Brian Lesser Assistant Director, Teaching and Technology Support Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: AB48D E-mail: [EMAIL PROTECTED] (Enter through LB66) Web: http://www.ryerson.ca/~blesser __ Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/