RE: [flexcoders] Re: e4x XML question - possible bug?
I haven't tried it, but I think you should be able to use predicate filtering with a variable. XML and XMLList instances have child(name) and attribute(name) methods for accessing a child element or an attribute whose name may not be known until runtime. In other words, x.employee.(name == McGee) should be the same as x.employee.(child(name) == McGee) so instead of x.employee.([whichProperty] == whichValue) try x.employee.(child(whichProperty) == whichValue) - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, February 09, 2006 11:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: e4x XML question - possible bug? I'm not sure the filtering predicate operator will work for a variable. I think you're going to need to do this instead: var matches:XMLList = new XMLList(); var i:int = 0; for each (var emp:XML in x.employee) { if (emp[testVar] == testValue) { matches[i++] = emp; } } The e4x compiler is going to generate code similar to this, so I don't think we're doing anything too inefficient here. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Thursday, February 09, 2006 9:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: e4x XML question - possible bug? Good thought, and I saw this suggestion in another related post, however this always returns an empty list. Is this possibly a bug? Do you know that this should in fact work? I have not seen any documentation stating that it should or shouldn't. thanks, Thunder --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 2/8/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: x.employee.(lastName == McGee) // nodes with lastName McGee I need to do this dynamically.. what if I don't know the element name (the 'lastName' portion above) ? How can I substitute a String variable for the 'lastName' ? Try this: x.employee.([variable] == McGee) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. I think the rule we ended up with is that constructors must be public, rather than matching the access specifier of their class. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Thursday, February 09, 2006 11:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS3 class constructors can't be private? Abstract classes? You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Select all functionality in datagrid
Hi all, I have a datagrid with 2 columns of which the first one has a checkbox as the cell renderer. The checkbox is inside a separate component. I have used the same component as the headerRenderer too. Can anyone help me out in implementing the Select all feature found in most mail clients? Thanks in advance. -- 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] A little function for getting the host [Flex 2.0 beta]
Just wanted to share this "as" for getting the host. Itcan be a little pain when working between running local, inside flex, or on a server. So if your usingservices this may or may not benefit you. I use it in my main application container. Us it however you wish. If anyone has a better way to do this then please share. If in your main app the you can get at it vie Applicatio.application.g_HostString. Also ready to bind. [Bindable][Inspectable]public var g_HostString:String;private function initComponent(){//parse the host url into a usable value for services etc...var baseurl:String =Application.application.url;var pattern1:RegExp = new RegExp("http://[^/]*/");if (pattern1.test(baseurl) ==true){g_HostString = pattern1.exec(baseurl).toString();}else{g_HostString = "http://localhost/"}} Jason -- 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] Learning AC for Flex 2.0 from scratch: best bet?
http://moock.org/eas2/ excellent one Pim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: vendredi 10 février 2006 1:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? Site (AS2) http://www.debreuil.com/docs/ It's how I learned. - Original Message - From: Stephane B. To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 4:21 PM Subject: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? I'm trying to define the best way to learn ActionScript with Flex in mind and nopriorprogramming experience. Book or low cost e-learning recommendation anyone? Steph -- 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. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
[flexcoders] Re: Select all functionality in datagrid
if you want to select all rows. try something like this. relevant bits of code - mx:DataGrid id=dg multipleSelection=true/ mx:Button click=selectAll(event)/ function selectAll(event)//strongly type if its flex2 beta { var array1:Array = new Array(); for (var i=0; idg.dataProvider.length;i++) { array1.push(i); } dg.selectedIndices = array1; } --- In flexcoders@yahoogroups.com, Robs [EMAIL PROTECTED] wrote: Hi all, I have a datagrid with 2 columns of which the first one has a checkbox as the cell renderer. The checkbox is inside a separate component. I have used the same component as the headerRenderer too. Can anyone help me out in implementing the Select all feature found in most mail clients? Thanks in advance. -- 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]How to create Heavy interface properly?
Hello Flex Developers, I have next problem: Context of the problem: In my application I have little main page with text info, and after mouse click user goes to next page where is accordion placed with 5 childrens inside and every of this children load some data from server and then show it, using different components(dataGrid, List, etc...) this childrens are quite heavy. I know it is possible to optimize them, but let's assume that they are optimized to maximum. Problem: When user goes to accordeon, he needs to wait some time(1-3 sec) before accordeon child initializes, load data and finally show it. First aspect of the RIA is Seamless, and it doesn't work here! Solutions: 1. I tried to use creationPolicy=auto on accordion and it works, but still user need to wait while active child initializing and load data. 2. creationPolicy=queed, but in Accordion it didn't work properly, it creates just top container of the childrens and that's all. 3. Using creationPolicy=none, I developed my own little solution and now childs initializes one by one properly, i.e like creationPolicy=queed should work. BUT... the application freezes, while other childs initializing in the meantime and load data, so user can't interact with interface. Ideal WorkFlow: User read data on first page, in the meantime accordion initializes, load data and place it properly. And application doesn't freeze! When user goes next screen everything is working without delays. So the question is: How I can achieve this Ideal Workflow and especially how I can avoid freezing application? Thanks in advance. Best regards Stanislav -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: datagrid.selectedIndex not correct in cellPress - flex2
some feedback mx:DataGrid cellPress=cellPressEvt(event); event is of type DataGridEvent. i tried mx:DataGrid cellPress=cellPressEvt(event:mx.events.DataGridEvent) but flexbuilder 2 comes up with a compile error Expecting right parenthesis after colon I actually have yet to see an example in livedocs/demos/etc where the event argument is strongly typed. Shouldn't ALL the code be strongly typed if we are going to get the best performance from flashplayer 8.5. -- 2) i want dg.focusedCell = {rowIndex:2, columnIndex:2} no matter where the user clicks on the editable datagrid. any ideas? I think you'll have to dispatch your own event. Actually, i was trying to migrate some flex 1.5 datagrid code but now that i've been playing around with flex 2 dg , I notice alot of the functionality i'm looking for has been added. So great job adobe. regards bod -- 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: datagrid.selectedIndex not correct in cellPress - flex2
On 2/10/06, bhaq1972 [EMAIL PROTECTED] wrote: mx:DataGrid cellPress=cellPressEvt(event); event is of type DataGridEvent. i tried mx:DataGrid cellPress=cellPressEvt(event:mx.events.DataGridEvent) but flexbuilder 2 comes up with a compile error Expecting right parenthesis after colon event *is* of type DataGridEvent already. See the generated AS code. What you want instead is to type the argument to the cellPressEvt method as DataGridEvent: mx:DataGrid cellPress=cellPressEvt(event) private function cellPressEvt(event:DataGridEvent):void { ... } -- 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] Array serialization for Webservice
Matt, Thanks for your reply. Could you explain me a bit of how this 'literal request format' would work? Thanks in advance, Pablo Apanasionek -Mensaje original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Matt Chotin Enviado el: Viernes, 10 de Febrero de 2006 04:36 Para: flexcoders@yahoogroups.com Asunto: RE: [flexcoders] Array serialization for Webservice Unfortunately I think this may be a known bug. I believe you're going to need to do a literal request format and pass the information in XML yourself to make it work. I don't remember if we may have fixed this in a hotfix, if you have a support contract you may want to ask your rep. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pablo Apanasionek Sent: Thursday, February 09, 2006 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Array serialization for Webservice I tried many things without results, so I decided to ask for help. I'm using Flex 1.5 and some Java Webservices. I have an object that is passed as a parameter to a webservice. The Object goes something like this: SomeObject(code:String, ranges:Array) The ranges array contains 1 or more instances of some other object, which has a String and two Numbers. So far, so good. And here comes the problem: When I complete my paramObject with a code and ONE range in the ranges array (which I decided to declare as Object = code:AAA, ranges:(D,200,300)), it serializes like this: codeAAA/code ranges scopeX/scope from200/from to300/to ranges Its values are passed like this: someService.addType.request.code = 'AAA'; someService.addType.request.ranges.scope = 'X'; someService.addType.request.ranges.from = 200; someService.addType.request.ranges.to = 300; This format posts well to the webservice, and it results OK. But, if I add a range (in the array), so it holds two ranges, I step into two problems: 1) If I stick to declaring ranges as an Object, I can't add another instance of it. 2) If I convert ranges into an Array, and add the two complete objects, although the Flex Network Monitor and Trace Panel show it right, it gets serialized like this: codeAAA/code ranges/ item scopeX/scope from200/from to300/to item item scopeZ/scope from400/from to500/to item Resulting in a fault event of the webservice, because of the unrecognized property item. Is there a way to change the serialization of array (as I would need to name each item as ranges and not as item) or some other way to fix this? Thanks in advance, Pablo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * 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] Learning AC for Flex 2.0 from scratch: best bet?
iteration::two Developing Rich Clients For Macromedia Flex is a very good book to learn about AS and Flex.2006/2/10, Stephane B. [EMAIL PROTECTED]: Thanks! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXLSent: Thursday, February 09, 2006 4:14 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? Site (AS2) http://www.debreuil.com/docs/ It's how I learned. - Original Message - From: Stephane B. To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 4:21 PM Subject: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? I'm trying to define the best way to learn ActionScript with Flex in mind and nopriorprogramming experience. Book or low cost e-learning recommendation anyone? Steph -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Select all functionality in datagrid
Hi robs, Ive done something like that. Var myCheckBoxColumn:String = select; var numRows:Number = userGrid.dataProvider.length; for(var i:Number = 0; i numRows; i++){ userGrid.editField(i,myCheckBoxColumn,true); } I hope you can use it -martin From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robs Sent: 10. februar 2006 10:33 To: flexcoders@yahoogroups.com Subject: [flexcoders] Select all functionality in datagrid Hi all, I have a datagrid with 2 columns of which the first one has a checkbox as the cell renderer. The checkbox is inside a separate component. I have used the same component as the headerRenderer too. Can anyone help me out in implementing the Select all feature found in most mail clients? Thanks in advance. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
if you have this feature in AS2, why not in AS3? that's a step backwards although there's other solutions because I shouldn't (if a come from Java) read any books to make a singleton in the right way. 2006/2/10, Michael Hansen [EMAIL PROTECTED]: AS3 has some pretty interesting constructs, and private constructors is not one of them. Don't be fooled - it's not java. I can recommend reading up on the as3 pdf. A couple of months ago I hit that same stumbling block, i.e. what! no private constructors?!I what follows is a response from zwetan posted on the Adobe labs forum:zwetan writes: here are common cases where *other* languages need private constructors: - classes containing only static utility methods- classes containing only constants- type safe enumerations- singletons in AS3 with the actual implementation of the ECMAScript 4 specyou don't need private constructors to implement all that for cases:- classes containing only static utility methods- classes containing only constants package foobar{class blah{function blah() //internal {}public const test:String = test;public static function utility():String{return hello world; }}}the constructor blah is by default internal to the package,you can not instanciate it outside of the packagebut by declaring the constant and/or static members public you can access them outside from the package. (you don't even need to define a constructor )check the prog_actionscript3.pdf page 43class ConstExample{static const EXAMPLE_STATIC:String = Global access; public const EXAMPLE_PUBLIC:String = Public access; private const EXAMPLE_PRIVATE:String = Class access;}for the singletons case it's almost the same,especially if you want to have a constructor to initialize it --- package foobar{class Singleton() //internal{function Singleton() //package scope internal constructor{} public var someProperty:String = someProperty;public function someMethod():String {return someMethod}} }---package foobar{public const MySingleton:Singleton = new Singleton();}---you can only instanciate the Singleton constructor inside its package, not outside because it IS internal,and making it const and public you're sure it gonna beglobally accessible and instancied only once.You don't need private constructor in prototype-based languagebecause you can directly have an object http://en.wikipedia.org/wiki/Singleton_pattern In a prototype-based programming language, where objects but not classes are used, a singleton simply refers to an object without copies or that isnot used as the prototype for any other object.zwetan On 2/10/06, Johannes Nel [EMAIL PROTECTED] wrote: abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi,I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes?Thanks in advance.-- ::| Carlos Rovira::| http://www.carlosrovira.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- j:pn --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:
RE: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet?
I remember that site as well J when I was learning Best tip is to think of something youre interesting building and go for it. It will sink in better when your using it From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephane B. Sent: Friday, 10 February 2006 1:17 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? Thanks! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Thursday, February 09, 2006 4:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? Site (AS2) http://www.debreuil.com/docs/ It's how I learned. - Original Message - From: Stephane B. To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 4:21 PM Subject: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? I'm trying to define the best way to learn ActionScript with Flex in mind and nopriorprogramming experience. Book or low cost e-learning recommendation anyone? Steph -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Array serialization for Webservice
I'm using named services, so the WSDL is defined on my flex-config.xml file. During some other tests I've been doing, I noticed that an array inside another array is serialized on the same level that its parent (at least in the SOAP message view of the Flex Network Monitor). Ie. someService.someOp.request.types = new Array(someArray); Turns into: someParamvalue/someParam types/ item/ item param1AAA/param1 param2AAA/param2 /item Is this by design (either Flex's or SOAP's) ? Thanks, Pablo Apanasionek -Mensaje original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Dmitry Miller Enviado el: Jueves, 09 de Febrero de 2006 19:31 Para: flexcoders@yahoogroups.com Asunto: [flexcoders] Re: Array serialization for Webservice Hmmm... I have noticed that WebService Tag has a wsdl attribute. You try specifying [web service URL]?wsdl for this attribute ie. mx:WebService wsdl=[your WS URL ]?wsdl ... Let me know if that works --- Dmitry --- In flexcoders@yahoogroups.com, Pablo Apanasionek [EMAIL PROTECTED] wrote: Is there a way to change the item label of the resultant serialized items of the array? Or add more than one instance of an object with the same name to the main parameter object? Thanks, Pablo Apanasionek -Mensaje original- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Dmitry Miller Enviado el: Jueves, 09 de Febrero de 2006 16:50 Para: flexcoders@yahoogroups.com Asunto: [flexcoders] Re: Array serialization for Webservice I am not sure if you can customize Flex serialization. I assume you are using Axis. If that's the case, you need to go and modify your service descriptor in services.wsdd (Don't remember on top of my header where it is located in JRun) file where you explicitly map your ranges member of the return Object to type Array. Please, visit http://ws.apache.org/axis/java/index.ht ml on how to do that. Good luck, --- Dmitry -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Image loader from thumbnail repeater
It is working like a charm, thanks for helping! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish JethaniSent: Thursday, February 09, 2006 7:34 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Image loader from thumbnail repeater On 2/9/06, Stephane B. [EMAIL PROTECTED] wrote: Looks like the right solution, but I get the following error: ReferenceError: Error #1069: Property repeaterIndex not found on flash.display.Loader and there is no default value at ProductDetails/___Image2_click()Change "event.target" to "event.currentTarget" -- 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] Data Service : Tutorials.zip file Cairngorm help for beginner
Hi, I have two questions : 01) Where do I download the Tutorials.zip file mentioned in the Enterprise: Use the Data Service (Chapter 21) documentation file. 02) Is the there a Cairngorm for dummies document? I am new to Flex and I hear that it would be best practice to use Cairngorm, but I cannot find a starter guide to Cairngorm or some type of documentation for a beginner. Thanks Sugan -- 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] How to declare array class in flex???????Urgently needed
Hello Sir I have some problem, the description is:- JAVA Flex Int age; var age:number; Private Workgroups []workgroups; publc? Question:- In java we can specify the int age and in flex we declare it by var age:number; In what way we can declare java private Workroups []workroups; in flex. Plz help me. Regards Anil kumar [EMAIL PROTECTED] Software Engineer , Software Division Vanguard Info-Solutions Limited 78, JIL Tower-II, Sector-18, Gurgaon-122001 (INDIA) -- 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. -- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" --
RE: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet?
and the famous http://www.gotoandlearn.com/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn SchultheissSent: vendredi 10 février 2006 4:51To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? I remember that site as well J when I was learning Best tip is to think of something you're interesting building and go for it. It will sink in better when your using it From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephane B.Sent: Friday, 10 February 2006 1:17 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? Thanks! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: Thursday, February 09, 2006 4:14 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? Site (AS2) http://www.debreuil.com/docs/ It's how I learned. - Original Message - From: Stephane B. To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 4:21 PM Subject: [flexcoders] Learning AC for Flex 2.0 from scratch: best bet? I'm trying to define the best way to learn ActionScript with Flex in mind and nopriorprogramming experience. Book or low cost e-learning recommendation anyone? Steph -- 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. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
[flexcoders] State data is not changing my datagrid-embedded combobox...
I'm passing in selIdx and selState variables from another mxml not shown here, but suffice to say my alert is showing the correct data for the index of the state and the state's data. For some reason (must be my code :-) the datagrid-embedded combobox is not changing the state that's coming in from my data. Suggestions? Grid.mxml: mx:Script ![CDATA[ function updateStateCbx(selIdx,selState): { mx.controls.Alert.show(selIdx + ': ' + selState); dgLocationInfo.selectedItem.LocState.editField(selIdx, data, selState); } ]] /mx:Script mx:DataGrid id=dgLocationInfo width=90% editable=true dataProvider={aryLoc} rowCount=5 change=updateGridRowModel(dgLocationInfo.selectedItem.LocNum,dgLocationInfo.selectedItem.LocAddr,dgLocationInfo.selectedItem.LocZip,dgLocationInfo.selectedItem.LocCity,dgLocationInfo.selectedItem.LocState) mx:columns mx:Array mx:DataGridColumn headerText=State columnName=LocState editable=false cellRenderer=StateRenderer width=120/ /mx:Array /mx:DataGrid StateRenderer: import mx.controls.ComboBox; class StateRenderer extends mx.core.UIComponent { var comboDP:Array = [{label:Alabama, data:AL}, {label:Alaska, data:AK}, {label:Arizona, data:AZ}, {label:Arkansas, data:AR}, {label:California, data:CA}, {label:Colorado, data:CO}, {label:Connecticut, data:CT}, {label:Delaware, data:DE}, {label:Florida, data:FL}, {label:Georgia, data:GA}, {label:Hawaii, data:HI}, {label:Idaho, data:ID}, {label:Illinois, data:IL}, {label:Indiana, data:IN}, {label:Iowa, data:IA}, {label:Kansas, data:KS}, {label:Kentucky, data:KY}, {label:Louisiana, data:LA}, {label:Maine, data:ME}, {label:Maryland, data:MD}, {label:Massachusetts, data:MA}, {label:Michigan, data:MI}, {label:Minnesota, data:MN}, {label:Mississippi, data:MS}, {label:Missouri, data:MO}, {label:Montana, data:MT}, {label:Nebraska, data:NE}, {label:Nevada, data:NV}, {label:New Hampshire, data:NH}, {label:New Jersey, data:NJ}, {label:New Mexico, data:NM}, {label:New York, data:NY}, {label:North Carolina, data:NC}, {label:North Dakota, data:ND}, {label:Ohio, data:OH}, {label:Oklahoma, data:OK}, {label:Oregon, data:OR}, {label:Pennsylvania, data:PA}, {label:Rhode Island, data:RI}, {label:South Carolina, data:SC}, {label:South Dakota, data:SD}, {label:Tennessee, data:TN}, {label:Texas, data:TX}, {label:Utah, data:UT}, {label:Vermont, data:VT}, {label:Virginia, data:VA}, {label:Washington, data:WA} ]; var combo; var listOwner : MovieClip; var getCellIndex : Function; var getDataLabel : Function; function createChildren(Void) : Void { combo = createClassObject( ComboBox, combo, 1, {owner:this, _x:1}); combo.dataProvider = comboDP; combo.addEventListener(change, this); } function getPreferredHeight(Void) : Number{ return combo != undefined ? 18:0; } function getPreferredWidth(Void) : Number{ return combo != undefined ? 100:0; } function setValue(str:String, item:Object) { var val = item.state; for(var i = 0; i combo.dataProvider.length; i++) { combo.dataProvider[i].data == val ? combo.selectedIndex = i : ''; } } function change() { listOwner.editField(getCellIndex().itemIndex, getDataLabel(), combo.selectedItem.data); listOwner.selectedIndex = getCellIndex().itemIndex; } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: datagrid.selectedIndex not correct in cellPress - flex2
thanks. i realize my mistake. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 2/10/06, bhaq1972 [EMAIL PROTECTED] wrote: mx:DataGrid cellPress=cellPressEvt(event); event is of type DataGridEvent. i tried mx:DataGrid cellPress=cellPressEvt (event:mx.events.DataGridEvent) but flexbuilder 2 comes up with a compile error Expecting right parenthesis after colon event *is* of type DataGridEvent already. See the generated AS code. What you want instead is to type the argument to the cellPressEvt method as DataGridEvent: mx:DataGrid cellPress=cellPressEvt(event) private function cellPressEvt(event:DataGridEvent):void { ... } -- 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] Filters, Contributing
Yeah, that's the problem. I can't find an interface as a guide to designing the class and even though I can extend from BitmapFilter there isn't any information to be had. I believe that the classes have a specific structure and the DisplayObject calls certain functions in the same manner that methods like createChildren() or updateDisplayList() is called, but I can't find any info. So I was hoping that someone with more knowledge about the internals of those classes would step forward, should I even hope for a Flex engineer to see this? -Trey JesterXL wrote: Ohhh, you want to actually have it be a filter vs. using another one. Sorry about that; I reckon if your class doesn't extend at least a class in the flash.filters.* package, it won't work. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 5:15 PM Subject: Re: [flexcoders] Filters, Contributing I read through that, from what I understand it didn't exactly cover what I wanted to do. I was hoping to do something like the following: MyNewFilter would extend from the BitMapFilter class: var f:MyNewFilter = new MyNewFilter(); var filtsCopy:Array = DisplayObject.filters; filtsCopy.push(MyNewFilter); DisplayObject.filters = filtsCopy; If that was covered in there, please correct me. It's possible that I missed something. -Trey JesterXL wrote: Here is the 1.5 way; 2 shouldn't be that different: http://www.jessewarden.com/archives/2006/01/how_to_use_the.html - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 1:54 PM Subject: [flexcoders] Filters, Contributing I created my own bitmap filter from scratch. I was hoping that I could follow the MM framework on this one but there is no info in the API nor is there an interface that I can follow. If any Adobe / MM guys have any advice on this one please let me know. I would like to just use it in the same way that standard Flex filters are used. I also wouldn't mind contributing the filter if it pleases anyone. -Trey Standard way filters are used to me is the following: Copy filters array out of DisplayObject, push filter on array, set back to filters array of display object. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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 declare array class in flex???????Urgently needed
var workgroups:Array = new Array(); workgroups[0] = new WorkGroups(); workgroups[1] = new WorkGroups(); // etc Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au -- 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 declare array class in flex???????Urgently needed
http://livedocs.macromedia.com/flex/15/flex_docs_en/1191.htmOn 2/10/06, anil thakur [EMAIL PROTECTED] wrote: Hello Sir I have some problem, the description is:- JAVA Flex Int age; var age:number; Private Workgroups []workgroups; publc……? Question:- In java we can specify the int age and in flex we declare it by var age:number; In what way we can declare java private Workroups []workroups; in flex. Plz help me. Regards Anil kumar [EMAIL PROTECTED] Software Engineer , Software Division Vanguard Info-Solutions Limited 78, JIL Tower-II, Sector-18, Gurgaon-122001 (INDIA) -- 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 . -- The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices. This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted -- -- 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] Data Service : Tutorials.zip file Cairngorm help for beginner
I second this whats the best way to start using Cairngorm if youve never used it before? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sugannaicker Sent: Friday, February 10, 2006 5:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Data Service : Tutorials.zip file Cairngorm help for beginner Hi, I have two questions : 01) Where do I download the Tutorials.zip file mentioned in the Enterprise: Use the Data Service (Chapter 21) documentation file. 02) Is the there a Cairngorm for dummies document? I am new to Flex and I hear that it would be best practice to use Cairngorm, but I cannot find a starter guide to Cairngorm or some type of documentation for a beginner. Thanks Sugan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
AS3 is not a prototype languageOn 2/9/06, Michael Hansen [EMAIL PROTECTED] wrote: AS3 has some pretty interesting constructs, and private constructors is not one of them. Don't be fooled - it's not java. I can recommend reading up on the as3 pdf.A couple of months ago I hit that same stumbling block, i.e. what! no private constructors?!I what follows is a response from zwetan posted on the Adobe labs forum:zwetan writes:here are common cases where *other* languages need private constructors: - classes containing only static utility methods- classes containing only constants- type safe enumerations- singletonsin AS3 with the actual implementation of the ECMAScript 4 specyou don't need private constructors to implement all that for cases:- classes containing only static utility methods- classes containing only constantspackage foobar { class blah { function blah() //internal { } public const test:String = test;public static function utility():String { return hello world; } } }the constructor blah is by default internal to the package,you can not instanciate it outside of the packagebut by declaring the constant and/or static members public you can access them outside from the package.(you don't even need to define a constructor )check the prog_actionscript3.pdf page 43class ConstExample{ static const EXAMPLE_STATIC:String = Global access; public const EXAMPLE_PUBLIC:String = Public access; private const EXAMPLE_PRIVATE:String = Class access;}for the singletons case it's almost the same,especially if you want to have a constructor to initialize it ---package foobar { class Singleton() //internal{ function Singleton() //package scope internal constructor { } public var someProperty:String = someProperty; public function someMethod():String { return someMethod }} }---package foobar { public const MySingleton:Singleton = new Singleton(); }---you can only instanciate the Singleton constructor inside its package, not outside because it IS internal,and making it const and public you're sure it gonna beglobally accessible and instancied only once.You don't need private constructor in prototype-based language because you can directly have an object http://en.wikipedia.org/wiki/Singleton_pattern In a prototype-based programming language, where objects but not classes are used, a singleton simply refers to an object without copies or that isnot used as the prototype for any other object.zwetan On 2/10/06, Johannes Nel [EMAIL PROTECTED] wrote: abstract classes i am not expecting, private constructers i certainly hope forOn 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi,I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes?Thanks in advance.-- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL
[flexcoders] Bind Datagrid to model
Hello, I have two datagrids, dg1 and dg2,in my flex 1.5 application. The source for dg1 is an xml file. I have dragdrop feature between the dg1 and dg2. After I populate dg2 with the items the user likes from dg1, how do Ibind the contents of dg2 (which is a subset of dg1) to a model or xml and use it in a dataservice? Can anyone please help. Thanks Venkat Make FREE PC-to-PC calls with MSN Messenger. Get it now! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] AS3 class constructors can't be private? Abstract classes?
so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Data Service : Tutorials.zip file Cairngorm help for beginner
download it, follow the instructions in the readme files to install, read through the example apps, then start coding. Maybe a stop for coffee( java and beans :) ) in between one of those steps. DK On 2/10/06, Jonathan Miranda [EMAIL PROTECTED] wrote: I second this – what's the best way to start using Cairngorm if you've never used it before? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sugannaicker Sent: Friday, February 10, 2006 5:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Data Service : Tutorials.zip file Cairngorm help for beginner Hi, I have two questions : 01) Where do I download the Tutorials.zip file mentioned in the Enterprise: Use the Data Service (Chapter 21) documentation file. 02) Is the there a Cairngorm for dummies document? I am new to Flex and I hear that it would be best practice to use Cairngorm, but I cannot find a starter guide to Cairngorm or some type of documentation for a beginner. Thanks Sugan -- 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 . -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? -- 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] Data Service : Tutorials.zip file Cairngorm help for beginner
Steven Webster's site has a lot of Cairngorn info:http://www.richinternetapps.com/archives/cat_cairngorm.htmlhth,Mike -- 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] embed a movieclip
Roger, I just want to point out again that LocalConnection doesn't quite cut it, because it means you have to pass some sort of unique connection ID into an FP8 movie in order to distinguish it from other loaded instances of the same movie. The only sanctioned way to do this is via a URL parameter, which defeats browser caching. So we'd wind up performing a separate HTTP request for every loaded instance of the same FP8 movie. That's not going to work. And using a proxy just squeezes the caching problem into a different part of the balloon. This may sound a bit pedantic, but it's not an arcane use case -- it's a serious problem that will hold us back from launching on Flex 2 until Flash plays catch-up. It's not about falling in love with the limited getter/setter communication into FP8 movies. There's nothing much there to love; it looks to me like a false start at AVM interop that was cut off after it ran into trouble. It's just that a) it does work in its limited way, and b) it provides a way out of the corner that Adobe has painted us into with the Flex/Flash release schedule. If Adobe can commit to keeping it alive in its current form until Flash 9 comes out, that would solve a lot of problems. And it would shut me up. On this topic, anyway :) ... . .. .j Roger Gonzalez wrote: LocalConnection, probably with a FP8-built proxy if you didn't design the FP8 movie for it ahead of time. There are limitations, but its the only safe approach I know of at the moment. -rg *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Jason Y. Kwong *Sent:* Thursday, February 09, 2006 3:54 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] embed a movieclip No, no love here. However, it does bring up the question: What are our options if we want to be able to script a Flash 8 swf inside a Flex2 app? On 2/9/06, *Roger Gonzalez* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Um, so don't fall in love with any of this. Just sayin'. -rg -- 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://docs.yahoo.com/info/terms/. -- 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] embed a movieclip
What seems more serious is that Loader seemed to be broken in beta 1. If you try toload flex 2 application inSWF it would load, but would not initialize/made available for calls. The same would be with any Flex 2 class. That functionality used to work perfectly on 1.5 and allowed us to load code on demand/switch implementations. If the bug perists in the final release it would seriously undermine enterprise version benefits as the benefits of dynamic code loading/ad-hoc server side compilation would be impossible to use. Removing both "eval" and ad-hoc compilation of theexpressionsis going to be serious handicap for financial applications for our clients - to the extent they would use AJAX solutions. Thank you, Anatole - Original Message - From: Joe Berkovitz To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 9:59 AM Subject: Re: [flexcoders] embed a movieclip I have to say, I think you have all missed my point.OK, we've found something clever and we're pleased that it works. That is not the end of the story. Don't just go away and assume that this is going to keep working, because it is totally undocumented and unsupported. If you want it, then ask Adobe, very loudly, to preserve this behavior!By the way, it's much easier to just do this in your movie's main timeline script to expose some code as a setter/getter function: this.addProperty("someProperty", function() { ... }, function(value) { ... });That way, you don't need to call getChildByName() from AS3 (one more undocumented thing that can break) or fuss with making a dummy movie clip whose only purpose is to expose setters and getters . . . . jnacho wrote: perfect thanks for all it's exactly what i need now let's play with flex, it's great On 2/9/06, *Jason Y. Kwong* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: For what it's worth, here's a quick little example: http://corefile.net/LoadSimpleSWF.zip -- 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://docs.yahoo.com/info/terms/ . -- // nacho -- 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
[flexcoders] Type annotation is not a compile-time constant
I am working in Flex Builder 2, trying to work through some tutorials that are in AC 2. I can't seem to find the problem with this AC 2 code that prevents it from compiling in AC 3. Any suggestions? mx:Script ![CDATA[ function addToCart():Void { cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data); } ]] /mx:Script -- 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] AS3 class constructors can't be private? Abstract classes?
Patterns are not meant to be language specific. The way you implement a singleton may vary from language to language, but the abstraction is the same. That's the point. So you may expect to do it differently in AS3. It's a new language with new features which hopefully will make us much more productive than with the old Java style stuff. Cheer up guys! This is exciting stuff. :) Also some people would argue that singleton is a 'dead' pattern. :)AS3 is not a prototype language - yes it is.cheers-michaelOn 2/10/06, Johannes Nel [EMAIL PROTECTED] wrote: so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- 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
Re: [flexcoders] Type annotation is not a compile-time constant
show all your code. that error is thrown when a type you are using is not imported (at least thats when i have seen it)On 2/10/06, sam5654295 [EMAIL PROTECTED] wrote:I am working in Flex Builder 2, trying to work through some tutorials that are in AC 2.I can't seem to find the problem with this AC 2code that prevents it from compiling in AC 3.Any suggestions?mx:Script![CDATA[ function addToCart():Void {cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data);}]]/mx:Script-- Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex and SQLXML
Hi there, is there anyone using SQLXML for database connection? If so are there any resources out there? Cheers David -- 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] Type annotation is not a compile-time constant
'Void' is now 'void'; lowercase. function addToCart () : void { /* */ } -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sam5654295 Sent: Friday, February 10, 2006 10:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Type annotation is not a compile-time constant I am working in Flex Builder 2, trying to work through some tutorials that are in AC 2. I can't seem to find the problem with this AC 2 code that prevents it from compiling in AC 3. Any suggestions? mx:Script ![CDATA[ function addToCart():Void { cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data); } ]] /mx:Script -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: HTTPService
Hi Matt Thanks for your reply For me this example that I talk about is Important because have .xml in three diferent ways: the first Only Atributes the second only nodes and the 3º Atributes and Nodes, in Browser the files run OK, in Alpha Flash Player run ok to, but in Beta only the file with Nodes XML run the others give that error. The example runs where with Alpha Player: http://www.evilfree.com/adam/blog/2005/11/flex_data_binding_nodes_or_ att.html What you write about if QA reproduces I dont understand sorry. For me is Important one feedback tell if have changes in Beta, or is a Bug or I make some wrong and have to make diferent. Thanks --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I haven't confirmed this behavior but I've filed a bug pointing to the two XML files. We'll see if QA reproduces. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of José aldanha Sent: Thursday, February 09, 2006 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService Hi Some ex. that I have and use .xml file and mysql PHP data, Flash Player give me that error: TypeError: Error #1009: null has no properties. at mx.rpc.xml::NamespaceUtil$/getLocalName() at mx.rpc.xml::SimpleXMLDecoder/decodeXML() at mx.rpc.xml::SimpleXMLDecoder/decodeXML() at mx.rpc.xml::SimpleXMLDecoder/decodeXML() at mx.rpc.http::HTTPService/http://www.macromedia.com/2005/flex/mx/inter nal::processResult() at mx.rpc::AbstractInvoker/http://www.macromedia.com/2005/flex/mx/intern al::resultHandler() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::Producer/acknowledge() at C:\dev\enterprise_beta1\frameworks\libs\framework.swc (mx/validators/Validator) $132::DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() In one ex (in http://www.evilfree.com/adam/blog/2005/11/flex_data_binding_nodes_or_ att.html ) Flex Data Binding - Nodes or Attributes? I have 3 diferent .xml files on first Load Attribute XML no error, but in Load Node XML file give that error and Load Node XML w Attributes give the error to, in Flex ALPHA all the ex work fine but now? What I whant to know is: If in Beta make the ex. I have to code in diferent way, or is a bug or What is it? If anyone have the same error please feedback and how to fix that. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * 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 and SQLXML
I looked at it and decided thatweb services would be better for a consumer internetapplication. If it's only intranet then sql xml should work fine. Once you create your root for the templates etc.. Just use a http service call to specify the template url. I did find resources but not pertaining to Flex. Once you get the data into flex it's rather simple to manipulate. If you need more help just ask in this thread. jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de brownd_92Envoyé: vendredi 10 février 2006 16:50À: flexcoders@yahoogroups.comObjet: [flexcoders] Flex and SQLXMLHi there,is there anyone using SQLXML for database connection? If so are there any resources out there?CheersDavid -- 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] Re: e4x XML question - possible bug?
Dang! I thought for sure this would work... such a good idea. Unfortunately with this syntax the compiler throws an error: Call to a possibly undefined method 'child' Note the first thing I did was make sure I was in fact using an XMLList variable, and that the child method was defined.. Darn... I guess for now its just going to take a custom filtering function. Maybe someday later we can use the predicate filtering syntax with a variable. Thanks guys for trying! Thunder --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: I haven't tried it, but I think you should be able to use predicate filtering with a variable. XML and XMLList instances have child(name) and attribute(name) methods for accessing a child element or an attribute whose name may not be known until runtime. In other words, x.employee.(name == McGee) should be the same as x.employee.(child(name) == McGee) so instead of x.employee.([whichProperty] == whichValue) try x.employee.(child(whichProperty) == whichValue) - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Thursday, February 09, 2006 11:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: e4x XML question - possible bug? I'm not sure the filtering predicate operator will work for a variable. I think you're going to need to do this instead: var matches:XMLList = new XMLList(); var i:int = 0; for each (var emp:XML in x.employee) { if (emp[testVar] == testValue) { matches[i++] = emp; } } The e4x compiler is going to generate code similar to this, so I don't think we're doing anything too inefficient here. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Thursday, February 09, 2006 9:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: e4x XML question - possible bug? Good thought, and I saw this suggestion in another related post, however this always returns an empty list. Is this possibly a bug? Do you know that this should in fact work? I have not seen any documentation stating that it should or shouldn't. thanks, Thunder --- In flexcoders@yahoogroups.com, Manish Jethani manish.jethani@ wrote: On 2/8/06, thunderstumpgesatwork thunder.stumpges@ wrote: x.employee.(lastName == McGee) // nodes with lastName McGee I need to do this dynamically.. what if I don't know the element name (the 'lastName' portion above) ? How can I substitute a String variable for the 'lastName' ? Try this: x.employee.([variable] == McGee) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Type annotation is not a compile-time constant
Thanks for the advise. I see that Void should be lowercase void. --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: show all your code. that error is thrown when a type you are using is not imported (at least thats when i have seen it) On 2/10/06, sam5654295 [EMAIL PROTECTED] wrote: I am working in Flex Builder 2, trying to work through some tutorials that are in AC 2. I can't seem to find the problem with this AC 2 code that prevents it from compiling in AC 3. Any suggestions? mx:Script ![CDATA[ function addToCart():Void { cart.addItem(coffeeCombo.selectedItem.label,coffeeCombo.selectedItem.data ); } ]] /mx:Script -- 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 -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] AS3 class constructors can't be private? Abstract classes?
class in AS3 have a prototype property but unlike as2/as1 creating a method on the prototype does not create that function on all instances that extend that class.create a class, declare a method on the prototype and try to access that method, its not availible in the instance of the class at all (throws a runtime exception). in a prototyped language if i don't find a function on this instance i walk up the proto chain till i find that function. this does not work in AS3.hence me saying it ain't prototyped On 2/10/06, Michael Hansen [EMAIL PROTECTED] wrote: Patterns are not meant to be language specific. The way you implement a singleton may vary from language to language, but the abstraction is the same. That's the point. So you may expect to do it differently in AS3. It's a new language with new features which hopefully will make us much more productive than with the old Java style stuff. Cheer up guys! This is exciting stuff. :) Also some people would argue that singleton is a 'dead' pattern. :)AS3 is not a prototype language - yes it is.cheers-michael On 2/10/06, Johannes Nel [EMAIL PROTECTED] wrote: so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group,
Re: [flexcoders] Filters, Contributing
Hey Trey, I saw your effect posted on Drisgill, how did you get it to work? She looks hot! - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 9:14 AM Subject: Re: [flexcoders] Filters, Contributing Yeah, that's the problem. I can't find an interface as a guide to designing the class and even though I can extend from BitmapFilter there isn't any information to be had. I believe that the classes have a specific structure and the DisplayObject calls certain functions in the same manner that methods like createChildren() or updateDisplayList() is called, but I can't find any info. So I was hoping that someone with more knowledge about the internals of those classes would step forward, should I even hope for a Flex engineer to see this? -Trey JesterXL wrote: Ohhh, you want to actually have it be a filter vs. using another one. Sorry about that; I reckon if your class doesn't extend at least a class in the flash.filters.* package, it won't work. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 5:15 PM Subject: Re: [flexcoders] Filters, Contributing I read through that, from what I understand it didn't exactly cover what I wanted to do. I was hoping to do something like the following: MyNewFilter would extend from the BitMapFilter class: var f:MyNewFilter = new MyNewFilter(); var filtsCopy:Array = DisplayObject.filters; filtsCopy.push(MyNewFilter); DisplayObject.filters = filtsCopy; If that was covered in there, please correct me. It's possible that I missed something. -Trey JesterXL wrote: Here is the 1.5 way; 2 shouldn't be that different: http://www.jessewarden.com/archives/2006/01/how_to_use_the.html - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 1:54 PM Subject: [flexcoders] Filters, Contributing I created my own bitmap filter from scratch. I was hoping that I could follow the MM framework on this one but there is no info in the API nor is there an interface that I can follow. If any Adobe / MM guys have any advice on this one please let me know. I would like to just use it in the same way that standard Flex filters are used. I also wouldn't mind contributing the filter if it pleases anyone. -Trey Standard way filters are used to me is the following: Copy filters array out of DisplayObject, push filter on array, set back to filters array of display object. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] RE: thanks........... question about exception handling
Hello sir Thanks sir How we can catch exceptions of java in mxml display it in mxml screens. Some example regarding excetion handling . Regards Anil kumar [EMAIL PROTECTED] Software Engineer , Software Division Vanguard Info-Solutions Limited 78, JIL Tower-II, Sector-18, Gurgaon-122001 (INDIA) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Friday, February 10, 2006 8:05 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to declare array class in flex???Urgently needed var workgroups:Array = new Array(); workgroups[0] = new WorkGroups(); workgroups[1] = new WorkGroups(); // etc Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au -- 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 -- The information in this e-mail is the property of VanGuard Info-Solution Ltd. and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately forward a copy of this e-mail to [EMAIL PROTECTED] .An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices .This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted -- -- 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] AS3 class constructors can't be private? Abstract classes?
I was supposing that don't have private constructors was due to the alpha state of the player, but it seems like is something deliberated. IMHO, I don't agree with this design languaje issue cause patterns like singletons are widely used and people expect to use in the standard way. I don't want to argue but would like the guys behind this responsability to think about it a bit and think about what their users expect to find when deal with the languaje. Thanks for listening :) 2006/2/10, Johannes Nel [EMAIL PROTECTED]: so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- ::| Carlos Rovira::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development
[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] Singleton inline initialization problem?
Sorry, but probably it's mine failure. It doesn't work when I use logger within. It seems like logger corrupt static properties in someway while going through the logged class. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Friday, February 10, 2006 9:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Singleton inline initialization problem? Hmm, I believe this should work. Can you put together a case that fails regularly? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov Sent: Thursday, February 09, 2006 1:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Singleton inline initialization problem? Hi All! Sometimes application doesn't work correctly when I initialize singleton inline like this: private static var authenticationManager : AuthenticationManager = AuthenticationManager.getInstance(); And then use authenticationManager in class instead of AuthenticationManager.getInstance(). Could you please tell whether I deal with some kind of Flex/Flash bug/feature or such an inline initialization is a mistake by its nature? Thank you in advance! Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex2 Tree
I have noticed that the following two lines are not equivalent: dataProvider = classpaths label=Class Paths/classpaths; dataProvider = XMLList(classpaths label=Class Paths/classpaths);The first results in an ArrayCollection dataProvider while the second one results in an XMLListCollection. Strange things happen with an ArrayCollection. Using the second way, I didn't get the undefined error. Good luck. On 2/9/06, Teoti Graphix [EMAIL PROTECTED] wrote: Hello, I am writting this more as a comment then question. I have spent 2 days experimenting with the mx.collections classes and it has been fun. Now, I have a project where I need the tree's root to be; ClassPaths - c:/classes - dir structure - c:/mm/classes ... - dir structure.. I am loading all the xml tree structure form php fine. What is the method for creating the root now ClassPaths ONCE, then on each new 'loadCLassPath() call, add the new xml to the CLassPaths root node. I have almost got it but, the tree gives me node opne errors after I get 2 nodes inserted. Am I doing something wrong? protected function loadDir(evt:ResultEvent):void { var newList:XMLList = new XMLList(evt.result); if (dataProvider == null) { dataProvider = classpaths label=Class Paths/classpaths; } dataProvider.source[0].appendChild(newList); } Peace, Mike PS the error when click to open the root node is... TypeError: Error #1010: undefined has no properties. at mx.controls::Tree/setIsOpen() at mx.controls.treeclasses::TreeCellRenderer/disclosurePress() -- 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 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] Re: Tilelist event question
Hi Manish, Thanks for your reply. The mistake I made was to forget to set the bubbling argument in the Thumbnail.mxml so it wasn't bubbling up to the parent form --Too much time in front of the code can make one myopic. this.dispatchEvent(new Event('thumbClicked',true)); // bubbles set to true Cheers, Tim --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 2/9/06, sufibaba [EMAIL PROTECTED] wrote: Yes, I meant to say object reference. The cell renderer can dispatch an event that would bubble up to the Form1.mxml component. The component can catch the event and get a reference to the object using event.target. What would be the code in Form1.mxml be in order to catch the bubling event from the Thumbnail. this.addEventListener(bubblingEvent, handleBubblingEvent); function handleBubblingEvent(event) { ... // event.target is the cell renderer } -- 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] Filters, Contributing
Thanks, thats actually Drisgill's wife, you should leave a comment about it :) I didn't get the part I am talking about here to work. I simple gave the class a method which returns a bitmap. It's a lowbrow way to use a filter but until Macromedia / Adobe responds I think it's the only way I can go. -Trey JesterXL wrote: Hey Trey, I saw your effect posted on Drisgill, how did you get it to work? She looks hot! - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 9:14 AM Subject: Re: [flexcoders] Filters, Contributing Yeah, that's the problem. I can't find an interface as a guide to designing the class and even though I can extend from BitmapFilter there isn't any information to be had. I believe that the classes have a specific structure and the DisplayObject calls certain functions in the same manner that methods like createChildren() or updateDisplayList() is called, but I can't find any info. So I was hoping that someone with more knowledge about the internals of those classes would step forward, should I even hope for a Flex engineer to see this? -Trey JesterXL wrote: Ohhh, you want to actually have it be a filter vs. using another one. Sorry about that; I reckon if your class doesn't extend at least a class in the flash.filters.* package, it won't work. - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 5:15 PM Subject: Re: [flexcoders] Filters, Contributing I read through that, from what I understand it didn't exactly cover what I wanted to do. I was hoping to do something like the following: MyNewFilter would extend from the BitMapFilter class: var f:MyNewFilter = new MyNewFilter(); var filtsCopy:Array = DisplayObject.filters; filtsCopy.push(MyNewFilter); DisplayObject.filters = filtsCopy; If that was covered in there, please correct me. It's possible that I missed something. -Trey JesterXL wrote: Here is the 1.5 way; 2 shouldn't be that different: http://www.jessewarden.com/archives/2006/01/how_to_use_the.html - Original Message - From: Trey Long [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 09, 2006 1:54 PM Subject: [flexcoders] Filters, Contributing I created my own bitmap filter from scratch. I was hoping that I could follow the MM framework on this one but there is no info in the API nor is there an interface that I can follow. If any Adobe / MM guys have any advice on this one please let me know. I would like to just use it in the same way that standard Flex filters are used. I also wouldn't mind contributing the filter if it pleases anyone. -Trey Standard way filters are used to me is the following: Copy filters array out of DisplayObject, push filter on array, set back to filters array of display object. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Filters, Contributing
he JesterXLhere is my hack at it not cleaned or optimised just you get the idea.. You can apply the same technique to any display object (untested). Change the pics play around with this. Hopfully he will post his so we can see how his works... Remember not cleaned up or corrected. But works mostly :) SNIP ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:Local="*" xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"mx:Script //import flash.display.*;import flash.geom.*;//import mx.controls.Loader;import flash.display.*;import mx.controls.Image;import flash.events.*;import flash.filters.*;public var loaderx:Loader = new Loader(); //import flash.display.Loader; [Bindable]public var currImage:String= "RSS_news.png";public var OriginalBMP:BitmapData;public function ReflectObject() {imageContainer.removeAllChildren();var imgMain:Image = new Image();imgMain.width=imageContainer.width-100;imgMain.height=imageContainer.height-100;imgMain.id="Main";imageContainer.addChild(imgMain);//Create the final bitmap to draw outvar finalBMP:Bitmap = new Bitmap(OriginalBMP,"auto",false);finalBMP.bitmapData=OriginalBMP;//Create the reflectionvar finalBMP1:Bitmap = new Bitmap(finalBMP.bitmapData.clone(),"auto",false);finalBMP1.bitmapData=finalBMP.bitmapData.clone();var matr:Matrix = new Matrix();matr.createBox(-1,1,(90/180)*Math.PI*2,0, finalBMP.height*2+ReflectionDistance.value)finalBMP1.transform.matrix = matr;//create the gradient maskvar fillType:String = GradientType.LINEAR;var colors:Array = [0xFF, 0xFF];var alphas:Array = [ReflectionAlpha.value,ReflectionAlpha2.value];var ratios:Array = [ReflectionRation1.value,ReflectionRation2.value ];//ratio];var matr:Matrix = new Matrix();matr.createGradientBox(finalBMP1.bitmapData.width, finalBMP1.bitmapData.height, 0, Maskx.value, finalBMP1.bitmapData.height);matr.rotate((90/180)*Math.PI)var spreadMethod:String = SpreadMethod.PAD;var child:Sprite = new Sprite();child.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr,spreadMethod);child.graphics.drawRect(finalBMP1.x,finalBMP1.bitmapData.height,finalBMP1.bitmapData.width,finalBMP1.bitmapData.height);child.cacheAsBitmap=true;finalBMP.cacheAsBitmap=true;finalBMP1.cacheAsBitmap=true; finalBMP1.mask=childimgMain.addChild(finalBMP);imgMain.addChild(finalBMP1);imgMain.addChild(child);} public function Clear(){//Main.graphics.clear();}public function DoLoad(){//var loaderx:Loader = new Loader();loaderx.addEventListener("complete", loadHandler); var request:URLRequest = new URLRequest(currImage);loaderx.x = 0;loaderx.load(request);}public function loadHandler(event:Event){ReflectionAlpha.value=.5;ReflectionAlpha2.value=0;ReflectionRation1.value=0;ReflectionRation2.value =255;ReflectionDistance.value=0;Maskx.value=100;OriginalBMP=event.currentTarget.content.bitmapDataReflectObject();} /mx:Scriptmx:HBox mx:ComboBox id="ImageSelection" change="currImage=event.target.text" mx:dataProvider mx:ArrayCollection mx:source mx:Object label="DSC00775.jpg" data=""/ mx:Object label="DSC007752.jpg" data=""/ mx:Object label="DSC01139.jpg" data=""/ mx:Object label="DSC011392.jpg" data=""/ mx:Object label="leaves.jpg" data=""/ mx:Object label="RSS_news.png" data=""/ mx:Object label="DSC01149.JPG" data=""/ /mx:source /mx:ArrayCollection /mx:dataProvider/mx:ComboBoxmx:Button click="DoLoad();" label="Load Selected" / /mx:HBox mx:HDividedBox backgroundColor="{BackColor.selectedColor}" width="100%" height="100%"mx:VBox verticalAlign="middle" horizontalAlign="center" width="100%" height="100%" id="imageContainer"!--mx:Image width="50%" height="100%" id="Main" /--/mx:VBoxmx:VBox width="50%" height="100%"mx:Form backgroundColor="#808080"mx:FormItem label="Reflection Distance"mx:HSlider liveDragging="true" change="ReflectObject();" value="0" id="ReflectionDistance" maximum="20" minimum="0" allowTrackClick="true" tickInterval="1" /mx:Label text="{ReflectionDistance.value}"//mx:FormItemmx:FormItem label="Reflection Alpha (1)"mx:HSlider liveDragging="true" change="ReflectObject();" value=".5" id="ReflectionAlpha" maximum="1" minimum="0" allowTrackClick="true" tickInterval=".1" /mx:Label text="{ReflectionAlpha.value}"//mx:FormItemmx:FormItem label="Reflection Alpha (2)"mx:HSlider liveDragging="true" change="ReflectObject();" value="0" id="ReflectionAlpha2" maximum="1" minimum="0" allowTrackClick="true" tickInterval=".1" /mx:Label text="{ReflectionAlpha2.value}"//mx:FormItemmx:FormItem label="Reflection Ratio (1)"mx:HSlider liveDragging="true" change="ReflectObject();" value="0" id="ReflectionRation1" maximum="255" minimum="0" allowTrackClick="true" tickInterval="10" /mx:Label text="{ReflectionRation1.value}"//mx:FormItemmx:FormItem label="Reflection Ratio (2)"mx:HSlider liveDragging="true" change="ReflectObject();" value="255" id="ReflectionRation2" maximum="255" minimum="0" allowTrackClick="true" tickInterval="10"
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
They did, we discussed ad infinitum, this is what we came up with. Maybe we can improve it later but this is what were getting for now. Trust us that we spent a long time discussing internally. Re the package stuff, its about the file not the package. MySingleton.as package whatever { public class MySingleton { public function MySingleton(singletonEnforcer:MySingletonEnforcer) { } private static var instance:MySingleton; pubic function getInstance():MySingleton { if (instance == null) instance = new MySingleton(new MySingletonEnforcer()); return instance; } } } //this is in MySingleton.as but is outside the package block class MySingletonEnforcer {} And thats it. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Rovira Sent: Friday, February 10, 2006 7:47 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? I was supposing that don't have private constructors was due to the alpha state of the player, but it seems like is something deliberated. IMHO, I don't agree with this design languaje issue cause patterns like singletons are widely used and people expect to use in the standard way. I don't want to argue but would like the guys behind this responsability to think about it a bit and think about what their users expect to find when deal with the languaje. Thanks for listening :) 2006/2/10, Johannes Nel [EMAIL PROTECTED]: so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the
Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem
So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott LangebergSent: Thursday, February 09, 2006 10:54 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I can't get the following keyboardevent to fire, unless you click into the textarea on the stage. Any ideas why that would be?Note: I've tried adding the listener to: application, Application.application, the canvas on the stage, etc... ?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute creationComplete=init() mx:Script ![CDATA[ import com.imagetrend.containers.debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + / + String(e.keyCode); Debugger.show(); Alert.show(trapKeys()); } ]] /mx:Script mx:Canvas id=mainCanvas width=100% height=100% mx:TextArea id=textArea width=236 height=196 /mx:TextArea /mx:Canvas /mx:Application-- : : ) Scott -- 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 . -- : : ) Scott -- 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] How to handle this DataGrid request
Once again Jester, awesome help.but Im in Flex2 Beta ;) _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, February 10, 2006 10:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to handle this DataGrid request setValue in 1.5 actually sends you the selected state of the row. You can thus do: if ( selected != selected) { yourCH.selected = false; } else { yourCH.selected = true; } And, in your cellRenderer, you can access the grid via listOwner property. yourCH.addEventListener(click, Delegate.create(this, onClick)); function click() { if(yourCH.selected == false) return; var a:Array =listOwner.selectedIndices; if(a == null) a = []; a.push(getCellIndex().itemIndex); } - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 11:40 AM Subject: [flexcoders] How to handle this DataGrid request Ive a tricky job with a datagrid request from an employer and wondering how I should tackle this. They want a datagrid that can do multiple selections by a checkbox in a row not your normal shift-click. So you click on 3 checkboxes for 3 rows, and all 3 get selected. How can I bind the checkbox click to the datagrid selectedIndices is there an easy way to reference the datagrid through the cellrenderer dataObject? Having a hard enough time getting the checkbox to correctly sort and be remembered. Im considering trying to cheat and make it so when you click anywhere in the row, it selects that row and checks/unchecks the checkbox but even this is stumping me how I can bind the cell-renderer checkbox to the selectedindices array or something similar. Ive actually ran this by and theyre fine with that, so how can I bind selecting a row in a datagrid to checking that rows checkboxand allowing normal clicks toggle whats selected (not shift-click). Any of you Flex gurus got an idea on how to tackle this? Its a Friday and my thinking process is thinking weekends. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- 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] Another bug to log
When I add a change property to my DataGrid, it now allows the Datagrid to scroll up and down when the mouse is moved off the top or bottom of the datagrid. Very weird, but try it. Ive got a Datagrid of 50 records with one custom cellrenderer (nothing special), and now moving the mouse off the top or bottom of the datagrid scrolls it. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
I had seen that before and didnt like it because you could just use: var _singleton:MySingleton = new MySingleton (null); In any case, for anyone interested, I ended up doing something similar to the code below: package whatever { public class SingletonClass { public function SingletonClass () { if (Instantiation.locked) throw new Error (Singleton class cannot be instantiated using the constructor.); } private static var __instance:SingletonClass; public static function get instance ():SingletonClass { if (!__instance) { Instantiation.locked = false; __instance = new SingletonClass (); Instantiation.locked = true; } return __instance; } } } class Instantiation { public static var locked:Boolean = true; } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Friday, February 10, 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS3 class constructors can't be private? Abstract classes? They did, we discussed ad infinitum, this is what we came up with. Maybe we can improve it later but this is what were getting for now. Trust us that we spent a long time discussing internally. Re the package stuff, its about the file not the package. MySingleton.as package whatever { public class MySingleton { public function MySingleton(singletonEnforcer:MySingletonEnforcer) { } private static var instance:MySingleton; pubic function getInstance():MySingleton { if (instance == null) instance = new MySingleton(new MySingletonEnforcer()); return instance; } } } //this is in MySingleton.as but is outside the package block class MySingletonEnforcer {} And thats it. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carlos Rovira Sent: Friday, February 10, 2006 7:47 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? I was supposing that don't have private constructors was due to the alpha state of the player, but it seems like is something deliberated. IMHO, I don't agree with this design languaje issue cause patterns like singletons are widely used and people expect to use in the standard way. I don't want to argue but would like the guys behind this responsability to think about it a bit and think about what their users expect to find when deal with the languaje. Thanks for listening :) 2006/2/10, Johannes Nel [EMAIL PROTECTED]: so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem
It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott LangebergSent: Thursday, February 09, 2006 10:54 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I can't get the following keyboardevent to fire, unless you click into the textarea on the stage. Any ideas why that would be?Note: I've tried adding the listener to: application, Application.application, the canvas on the stage, etc... ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" layout="absolute" creationComplete="init()" mx:Script ![CDATA[ import com.imagetrend.containers.debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + "/" + String(e.keyCode); Debugger.show(); Alert.show("trapKeys()"); } ]] /mx:Script mx:Canvas id="mainCanvas" width="100%" height="100%" mx:TextArea id="textArea" width="236" height="196" /mx:TextArea /mx:Canvas /mx:Application-- : : ) Scott --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 . -- : : ) Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Well you could throw an Error if the parameter passed in was null too From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Williams Sent: Friday, February 10, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS3 class constructors can't be private? Abstract classes? I had seen that before and didnt like it because you could just use: var _singleton:MySingleton = new MySingleton (null); In any case, for anyone interested, I ended up doing something similar to the code below: package whatever { public class SingletonClass { public function SingletonClass () { if (Instantiation.locked) throw new Error (Singleton class cannot be instantiated using the constructor.); } private static var __instance:SingletonClass; public static function get instance ():SingletonClass { if (!__instance) { Instantiation.locked = false; __instance = new SingletonClass (); Instantiation.locked = true; } return __instance; } } } class Instantiation { public static var locked:Boolean = true; } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Friday, February 10, 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS3 class constructors can't be private? Abstract classes? They did, we discussed ad infinitum, this is what we came up with. Maybe we can improve it later but this is what were getting for now. Trust us that we spent a long time discussing internally. Re the package stuff, its about the file not the package. MySingleton.as package whatever { public class MySingleton { public function MySingleton(singletonEnforcer:MySingletonEnforcer) { } private static var instance:MySingleton; pubic function getInstance():MySingleton { if (instance == null) instance = new MySingleton(new MySingletonEnforcer()); return instance; } } } //this is in MySingleton.as but is outside the package block class MySingletonEnforcer {} And thats it. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Carlos Rovira Sent: Friday, February 10, 2006 7:47 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? I was supposing that don't have private constructors was due to the alpha state of the player, but it seems like is something deliberated. IMHO, I don't agree with this design languaje issue cause patterns like singletons are widely used and people expect to use in the standard way. I don't want to argue but would like the guys behind this responsability to think about it a bit and think about what their users expect to find when deal with the languaje. Thanks for listening :) 2006/2/10, Johannes Nel [EMAIL PROTECTED]: so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel Sent: Thursday, February 09, 2006 4:51 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Ya, that would work J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Friday, February 10, 2006 12:53 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS3 class constructors can't be private? Abstract classes? Well you could throw an Error if the parameter passed in was null too From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Geoffrey Williams Sent: Friday, February 10, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS3 class constructors can't be private? Abstract classes? I had seen that before and didnt like it because you could just use: var _singleton:MySingleton = new MySingleton (null); In any case, for anyone interested, I ended up doing something similar to the code below: package whatever { public class SingletonClass { public function SingletonClass () { if (Instantiation.locked) throw new Error (Singleton class cannot be instantiated using the constructor.); } private static var __instance:SingletonClass; public static function get instance ():SingletonClass { if (!__instance) { Instantiation.locked = false; __instance = new SingletonClass (); Instantiation.locked = true; } return __instance; } } } class Instantiation { public static var locked:Boolean = true; } From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Friday, February 10, 2006 12:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] AS3 class constructors can't be private? Abstract classes? They did, we discussed ad infinitum, this is what we came up with. Maybe we can improve it later but this is what were getting for now. Trust us that we spent a long time discussing internally. Re the package stuff, its about the file not the package. MySingleton.as package whatever { public class MySingleton { public function MySingleton(singletonEnforcer:MySingletonEnforcer) { } private static var instance:MySingleton; pubic function getInstance():MySingleton { if (instance == null) instance = new MySingleton(new MySingletonEnforcer()); return instance; } } } //this is in MySingleton.as but is outside the package block class MySingletonEnforcer {} And thats it. Matt -- 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] Flex 2 Beta - KeyboardEvent - Problem
Strange, but makes sense!Jester, how come you're always the one that figures out my problems? Isn't the Macromedia/Adobe staff on this list?;) Take care,ScottOn 2/10/06, JesterXL [EMAIL PROTECTED] wrote: It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Scott LangebergSent: Thursday, February 09, 2006 10:54 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I can't get the following keyboardevent to fire, unless you click into the textarea on the stage. Any ideas why that would be?Note: I've tried adding the listener to: application, Application.application, the canvas on the stage, etc... ?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute creationComplete=init() mx:Script ![CDATA[ import com.imagetrend.containers.debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + / + String(e.keyCode); Debugger.show(); Alert.show(trapKeys()); } ]] /mx:Script mx:Canvas id=mainCanvas width=100% height=100% mx:TextArea id=textArea width=236 height=196 /mx:TextArea /mx:Canvas /mx:Application-- : : ) Scott --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- : : ) Scott -- 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 . -- : : ) Scott -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
My preferred singleton/pseudo-private-ctor pattern is to use a static function facade: package { public class Manager { public static function x() { if (inner == null) inner = newManagerImpl(); inner.x(); } private static var inner:ManagerImpl = null; } } class ManagerImpl() { public function x() {..} } If the facade gets too porky, you can use interfaces; make a public IManager interface in its own file, and have a"public static function Manager.getManager():IManager" function. That way you can only get the "gateway" class, and file-external code can't create a ManagerImpl. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johannes NelSent: Friday, February 10, 2006 7:16 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? so even if i create a private class that is only accecible in that package (and then on package level declare a accesor for it) the only way i can be certain that class will only be created once is by having nothing else in that package. this does not seem right. On 2/10/06, Matt Chotin [EMAIL PROTECTED] wrote: You have to simulate private constructors by having the constructor take a class that is inaccessible to other classes (namely putting that class in the same file as the singleton outside of the package block). Unfortunately I believe the rule is that the constructor of the class has to have the same visibility as the class itself. So public classes need public constructors, internal classes get internal constructors, etc. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes NelSent: Thursday, February 09, 2006 4:51 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] AS3 class constructors can't be private? Abstract classes? abstract classes i am not expecting, private constructers i certainly hope for On 2/9/06, Carlos Rovira [EMAIL PROTECTED] wrote: Hi,I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors.and abstract classes?Thanks in advance.-- ::| Carlos Rovira::| http://www.carlosrovira.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- j:pn --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 . -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Another bug to log
On 2/10/06, Jonathan Miranda [EMAIL PROTECTED] wrote: When I add a change property to my DataGrid, it now allows the Datagrid to scroll up and down when the mouse is moved off the top or bottom of the datagrid. Very weird, but try it. I've got a Datagrid of 50 records with one custom cellrenderer (nothing special), and now moving the mouse off the top or bottom of the datagrid scrolls it. Can you give a simple example with the exact steps to reproduce the problem? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Problem with listItemRenderer and AddChild
I think I sorted out why you are not seeing the problem. In the file ItemRenderer.mxml, the top-level component tag (mx:VBox) has the height attribute set. Remove this attribute and run the application. --- In flexcoders@yahoogroups.com, Eric D Anderson [EMAIL PROTECTED] wrote: Hi, I tried this with the Flex 2 beta and I don't see any problem. Can you confirm you're using Flex 2 beta? Thanks Eric -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton Sent: Thursday, February 09, 2006 6:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with listItemRenderer and AddChild Hi again; This might be a bug. The code at the end of this message creates a list with a custom item renderer. The renderer handles clicks by changing the component's state, effectively adding a button. This works fine as long as the list property `variableRowHeight' is set to `false'. If it it set to true, very strange things happen. Clicking on the first row adds a button to the second row. Repeatedly clicking on the first row will add a button to the second row, remove it, add it to the first row and then remove it. Does anyone know a way to dynamically add and remove children from a custom list item renderer that allows variable height rows? Thanks. Tobias. Here's the code: - TestAddChild.mxml - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=absolute mx:ArrayCollection id=ac mx:Array mx:StringAlpha/mx:String mx:StringBeta/mx:String /mx:Array /mx:ArrayCollection mx:VBox id=vb width=300 mx:List variableRowHeight=true rowHeight=60 dataProvider={ac} listItemRenderer=ItemRenderer width=300/ /mx:VBox /mx:Application - ItemRenderer.mxml - ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* click=DoItemClick(event) height=60 mx:Script ![CDATA[ public function DoItemClick( event:MouseEvent ):void { currentState = ( currentState == null ) ? openState : null; } ]] /mx:Script mx:states mx:State name=openState mx:AddChild mx:Button label={dataObject}/ /mx:AddChild /mx:State /mx:states mx:Label text={dataObject}/ /mx:VBox -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Another bug to log
For some reason its not working anymore but I heavily changed my datagrid. It had a custom inline cellrenderer with a HBox and binded checkbox/Boolean. I then had a Change property that would go through the dataprovider then do dataprovider.selectedIndices = an array I created. If I removed the change property, it would stop that scrolling if I added it, itd return. The change function was only 4 lines with a for loop and setting the selectedIndices at the endso I think it has to do with using selectedindices and maybe multipleselection=true. Id go back but its further back in my history than it remembers and Im on a deadline with the project L Hope this helps though _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Friday, February 10, 2006 11:33 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Another bug to log On 2/10/06, Jonathan Miranda [EMAIL PROTECTED] wrote: When I add a change property to my DataGrid, it now allows the Datagrid to scroll up and down when the mouse is moved off the top or bottom of the datagrid. Very weird, but try it. I've got a Datagrid of 50 records with one custom cellrenderer (nothing special), and now moving the mouse off the top or bottom of the datagrid scrolls it. Can you give a simple example with the exact steps to reproduce the problem? -- 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] Flex 2 Beta - KeyboardEvent - Problem
Okay, spoke too soon.Apparently it isn't working the way I did it.It actually seems to be breaking worse now, with no event firing! I placed that line in my init(), which fires onCompletion:?xml version= 1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute creationComplete=init() mx:Script ![CDATA[ import com.imagetrend.containers.debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { stage.focus = this; this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) {textArea.text = String(e.charCode) + / + String(e.keyCode);Debugger.show(); Alert.show(trapKeys()); } ]] /mx:Script mx:Canvas id=mainCanvas width=100% height=100% mx:TextArea id=textArea width=236 height=196 /mx:TextArea /mx:Canvas /mx:ApplicationOn 2/10/06, Scott Langeberg [EMAIL PROTECTED] wrote:Strange, but makes sense! Jester, how come you're always the one that figures out my problems? Isn't the Macromedia/Adobe staff on this list?;) Take care,Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Scott LangebergSent: Thursday, February 09, 2006 10:54 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I can't get the following keyboardevent to fire, unless you click into the textarea on the stage. Any ideas why that would be?Note: I've tried adding the listener to: application, Application.application, the canvas on the stage, etc... ?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute creationComplete=init() mx:Script ![CDATA[ import com.imagetrend.containers.debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + / + String(e.keyCode); Debugger.show(); Alert.show(trapKeys()); } ]] /mx:Script mx:Canvas id=mainCanvas width=100% height=100% mx:TextArea id=textArea width=236 height=196 /mx:TextArea /mx:Canvas /mx:Application-- : : ) Scott --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- : : ) Scott -- 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
RE: [flexcoders] Re: help with Tree focusedCell
Did you try waiting a frame or two? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Schmitty Sent: Friday, February 10, 2006 9:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: help with Tree focusedCell 1 last bump.. sorry On 1/26/06, Rick Schmitty [EMAIL PROTECTED] wrote: Hi all, Trying to get focus and edit up on a newly added node in a tree. When I do the add node function, the selection changes, but it flips to the top level node for the edit for a split second, then goes back down and selects the new node at the bottom, but not editable anymore. Watch closely to see it. Here is some example code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Script ![CDATA[ function addNode(){ var tempNode=EmployeeTrace.addTreeNode(new employee); EmployeeTrace.selectedNode=tempNode; EmployeeTrace.focusedCell=undefined; EmployeeTrace.focusedCell=tempNode; } ]] /mx:Script !-- Simple example to demonstrate the Tree control -- mx:XML id=myxml Company label=Macromedia Branch label=Newton Department label=Flex Doc Title label=Intern Name label=Kapil Virdi/Name /Title /Department /Branch /Company /mx:XML mx:Panel id=treePanel title=Tree Trace Panel marginTop=10 mx:VBox mx:Tree id=EmployeeTrace width=285 height=196 editable=true mx:dataProvider {myxml} /mx:dataProvider /mx:Tree /mx:VBox mx:ControlBar mx:Button label=Add node click=addNode()/ /mx:ControlBar /mx:Panel /mx:Application Am I missing a step? I followed similar code for a data grid example I thought... Thanks, -Rick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] embed a movieclip
I hear you, but I haven't had time to think through your use case enough to convince myself that there isn't any way that by writing a FP8 facade that you couldn't do the multiplexing you need on the other side of the wall. You might be right. Not arguing on that basis. (Well, actually, you could probably implement a TCP/IP stack using the existence/absence of a hidden child graphic on the visual stack as your communications mechanism, so I am ever-so-slightly arguing that I bet there's a workaround, even if its gross.) I suspect that one of the big issues with supporting your request is simply that the current cross-VM communications might allow one to circumvent aspects of VM security. It might not, but fundamentally unless we can find the manpower to test it (and the testing matrix here is HUGE), its a question mark, and we can't ship with an open security question mark, because they bite you later. All features need to go through a full security audit, and need to be specced out such that we believe they will remain stable. Having anything indeterminate or flaky or with odd side effects is simply unacceptable, because we have an obligation to never, ever break old SWFs. There's no such thing as temporary. Given a choice between features and stability, we have to choose stability. -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joe Berkovitz Sent: Friday, February 10, 2006 7:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] embed a movieclip Roger, I just want to point out again that LocalConnection doesn't quite cut it, because it means you have to pass some sort of unique connection ID into an FP8 movie in order to distinguish it from other loaded instances of the same movie. The only sanctioned way to do this is via a URL parameter, which defeats browser caching. So we'd wind up performing a separate HTTP request for every loaded instance of the same FP8 movie. That's not going to work. And using a proxy just squeezes the caching problem into a different part of the balloon. This may sound a bit pedantic, but it's not an arcane use case -- it's a serious problem that will hold us back from launching on Flex 2 until Flash plays catch-up. It's not about falling in love with the limited getter/setter communication into FP8 movies. There's nothing much there to love; it looks to me like a false start at AVM interop that was cut off after it ran into trouble. It's just that a) it does work in its limited way, and b) it provides a way out of the corner that Adobe has painted us into with the Flex/Flash release schedule. If Adobe can commit to keeping it alive in its current form until Flash 9 comes out, that would solve a lot of problems. And it would shut me up. On this topic, anyway :) ... . .. .j Roger Gonzalez wrote: LocalConnection, probably with a FP8-built proxy if you didn't design the FP8 movie for it ahead of time. There are limitations, but its the only safe approach I know of at the moment. -rg -- -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Jason Y. Kwong *Sent:* Thursday, February 09, 2006 3:54 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] embed a movieclip No, no love here. However, it does bring up the question: What are our options if we want to be able to script a Flash 8 swf inside a Flex2 app? On 2/9/06, *Roger Gonzalez* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Um, so don't fall in love with any of this. Just sayin'. -rg -- 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+developme ntw1=Web+site+design+developmentw2=Computer+software+develop mentw3=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+develop mentw1=Web+site+design+developmentw2=Computer+software+devel opmentw3=Software+design+and+developmentw4=Macromedia+flexw5 =Software+development+best+practicec=5s=166.sig=lvQjSRfQDfW udJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+devel opmentw1=Web+site+design+developmentw2 =Computer+software+developmentw3=Software+design+and+developm
[flexcoders] Validator ErrorTip
Hey, is there anyway to get a validator errorTip to display when the validation fails instead of only on a mouseover? The red border around a TextInput just doesnt seem intuitive enough to tell a user that theres problem. It would be nice to have the ErrorTip pop-up right away without the mouseover. Thanks! Colin -- 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] How to handle this DataGrid request
:: guessing :: Maybe parent.selectedIndex? - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:46 PM Subject: RE: [flexcoders] How to handle this DataGrid request I am *super* close to getting this, but Im stuck on one thing. If I click the checkbox (custom cellrenderer), I dispatch an event which changing the value in my dataProvider by using selectedIndex. But I need to have set selectable=false for the dataProvider, so I need to somehow know what row the checkbox is in without using selectedIndex. Anything in the dataObject which says which row youre on? _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan MirandaSent: Friday, February 10, 2006 10:29 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] How to handle this DataGrid request Once again Jester, awesome help .but Im in Flex2 Beta ;) _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: Friday, February 10, 2006 10:00 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] How to handle this DataGrid request setValue in 1.5 actually sends you the selected state of the row. You can thus do: if ( selected != "selected") { yourCH.selected = false; } else { yourCH.selected = true; } And, in your cellRenderer, you can access the grid via listOwner property. yourCH.addEventListener("click", Delegate.create(this, onClick)); function click() { if(yourCH.selected == false) return; var a:Array =listOwner.selectedIndices; if(a == null) a = []; a.push(getCellIndex().itemIndex); } - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 11:40 AM Subject: [flexcoders] How to handle this DataGrid request Ive a tricky job with a datagrid request from an employer and wondering how I should tackle this. They want a datagrid that can do multiple selections by a checkbox in a row not your normal shift-click. So you click on 3 checkboxes for 3 rows, and all 3 get selected. How can I bind the checkbox click to the datagrid selectedIndices is there an easy way to reference the datagrid through the cellrenderer dataObject? Having a hard enough time getting the checkbox to correctly sort and be remembered. Im considering trying to cheat and make it so when you click anywhere in the row, it selects that row and checks/unchecks the checkbox but even this is stumping me how I can bind the cell-renderer checkbox to the selectedindices array or something similar. Ive actually ran this by and theyre fine with that, so how can I bind selecting a row in a datagrid to checking that rows checkbox and allowing normal clicks toggle whats selected (not shift-click).Any of you Flex gurus got an idea on how to tackle this? Its a Friday and my thinking process is thinking weekends. _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." -- 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] Flex 2 Beta - KeyboardEvent - Problem
You still have to click on the flash movie itself in the browser to give it focus (or modify the html-template to do a flash.setFocus in the onload handler in _javascript_). Additionally, have you tried screwing with the 3rd (or 4th?) parameter, setCapture? - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:47 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Okay, spoke too soon.Apparently it isn't working the way I did it.It actually seems to be breaking worse now, with no event firing! I placed that line in my init(), which fires onCompletion:?xml version=" 1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml " xmlns="*" layout="absolute" creationComplete="init()" mx:Script ![CDATA[ import com.imagetrend.containers .debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { stage.focus = this; this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + "/" + String(e.keyCode); Debugger.show(); Alert.show("trapKeys()"); } ]] /mx:Script mx:Canvas id="mainCanvas" width="100%" height="100%" mx:TextArea id="textArea" width="236" height="196" /mx:TextArea /mx:Canvas /mx:Application On 2/10/06, Scott Langeberg [EMAIL PROTECTED] wrote: Strange, but makes sense! Jester, how come you're always the one that figures out my problems? Isn't the Macromedia/Adobe staff on this list?;) Take care,Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Scott LangebergSent: Thursday, February 09, 2006 10:54 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I can't get the following keyboardevent to fire, unless you click into the textarea on the stage. Any ideas why that would be?Note: I've tried adding the listener to: application, Application.application, the canvas on the stage, etc... ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" layout="absolute" creationComplete="init()" mx:Script ![CDATA[ import com.imagetrend.containers.debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + "/" + String(e.keyCode); Debugger.show(); Alert.show("trapKeys()"); } ]] /mx:Script mx:Canvas id="mainCanvas" width="100%" height="100%" mx:TextArea id="textArea" width="236" height="196" /mx:TextArea /mx:Canvas /mx:Application-- : : ) Scott --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group,
[flexcoders] Flex -- -- Flash Projectors question??
Hi coders, yesterday I posted this question. I really need help on it. I want to become a professional Flex developer but I've been developing Flash projectors(.exe) for desktop content and i wouldn't like to loose my job. Can I run/compile my Flex projects and my Flash projectors together in a single DESKTOP aplication? Thanks for any help Jorge Díaz -- 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] declaring constants in an interface
i am trying to declare a constant in an interfacepackage com.company.airdale.model { import flash.events.IEventDispatcher; public interface IStream extends IEventDispatcher{ const UPDATED:String =streamUpdated; function getTotalAt(index:int):Number; function get streamLength():int; function get streamType():int; function get streamName():String; function set startTime(v:uint):void; function get startTime():uint; }}getting the error variable declarations are not permitted in interfaces. but a constant is not a variable, its set at compile time so why is this not allowed? -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Problem with listItemRenderer and AddChild
I think I sorted out why you are not seeing the problem. In the file ItemRenderer.mxml, the top-level component tag (mx:VBox) has the height attribute set. Remove this attribute and run the application. --- In flexcoders@yahoogroups.com, Eric D Anderson [EMAIL PROTECTED] wrote: Hi, I tried this with the Flex 2 beta and I don't see any problem. Can you confirm you're using Flex 2 beta? Thanks Eric -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton Sent: Thursday, February 09, 2006 6:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with listItemRenderer and AddChild Hi again; This might be a bug. The code at the end of this message creates a list with a custom item renderer. The renderer handles clicks by changing the component's state, effectively adding a button. This works fine as long as the list property `variableRowHeight' is set to `false'. If it it set to true, very strange things happen. Clicking on the first row adds a button to the second row. Repeatedly clicking on the first row will add a button to the second row, remove it, add it to the first row and then remove it. Does anyone know a way to dynamically add and remove children from a custom list item renderer that allows variable height rows? Thanks. Tobias. Here's the code: - TestAddChild.mxml - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=absolute mx:ArrayCollection id=ac mx:Array mx:StringAlpha/mx:String mx:StringBeta/mx:String /mx:Array /mx:ArrayCollection mx:VBox id=vb width=300 mx:List variableRowHeight=true rowHeight=60 dataProvider={ac} listItemRenderer=ItemRenderer width=300/ /mx:VBox /mx:Application - ItemRenderer.mxml - ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* click=DoItemClick(event) height=60 mx:Script ![CDATA[ public function DoItemClick( event:MouseEvent ):void { currentState = ( currentState == null ) ? openState : null; } ]] /mx:Script mx:states mx:State name=openState mx:AddChild mx:Button label={dataObject}/ /mx:AddChild /mx:State /mx:states mx:Label text={dataObject}/ /mx:VBox -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Problem with listItemRenderer and AddChild
On 2/10/06, tobiaspatton [EMAIL PROTECTED] wrote: I think I sorted out why you are not seeing the problem. In the file ItemRenderer.mxml, the top-level component tag (mx:VBox) has the height attribute set. Remove this attribute and run the application. Okay, this works: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* layout=absolute mx:ArrayCollection id=ac mx:Array mx:Object label=Alpha / mx:Object label=Beta / /mx:Array /mx:ArrayCollection mx:VBox id=vb width=300 mx:List labelField=label variableRowHeight=true rowHeight=60 dataProvider={ac} width=300 mx:listItemRenderer mx:Component mx:VBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* click=DoItemClick(event) currentState={dataObject.state} mx:Script ![CDATA[ public function DoItemClick( event:MouseEvent ):void { dataObject.state = ( currentState == null ) ? openState : null; // trigger binding dataObject = dataObject; } ]] /mx:Script mx:states mx:State name=openState mx:AddChild mx:Button label={dataObject.label}/ /mx:AddChild /mx:State /mx:states mx:Label text={dataObject.label}/ /mx:VBox /mx:Component /mx:listItemRenderer /mx:List /mx:VBox /mx:Application I'm using an inline renderer, but you can remove it outside (it was just for my convenience). So basically what was happening is that the List was reshuffling the cell renderer objects after the click - so the object you clicked on ended up in a new position. My solution is to save the state in the data provider instead and have it bound to the currentState property. Check it out. -- 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 -- -- Flash Projectors question??
Technically? Nope. mProject, SWFStudio, Screenweaver, etc. do not yet support the 8.5 format. Additionally, interop isn't going to work without a lot of upfront coding. Legally? Sure. Flex 1.5 requires a server, and while you can deploy from a server that does not have Flex 1.5 installed, you still need to require an internet connection so your SWF's can load dynamically into the shell. - Original Message - From: Jorge Antonio Diaz Gutierrez [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 2:53 PM Subject: [flexcoders] Flex -- -- Flash Projectors question?? Hi coders, yesterday I posted this question. I really need help on it. I want to become a professional Flex developer but I've been developing Flash projectors(.exe) for desktop content and i wouldn't like to loose my job. Can I run/compile my Flex projects and my Flash projectors together in a single DESKTOP aplication? Thanks for any help Jorge Díaz -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] declaring constants in an interface
On 2/10/06, Johannes Nel [EMAIL PROTECTED] wrote: public interface IStream extends IEventDispatcher{ const UPDATED:String =streamUpdated; [snip] getting the error variable declarations are not permitted in interfaces. but a constant is not a variable, its set at compile time so why is this not allowed? Does declaring it as static help? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem
On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: Just doing my part to help. Yeah, they are on this list, but it's not their job to answer questions, nor even be on this list; [snip] Thanks, Jesse :) All - none of the Macromedia/Adobe engineers are supposed to be on this list. In fact, most of us (who're busy coding and having a life) aren't. -- 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 Beta - KeyboardEvent - Problem
Hmm, yeah I was clicking on the movie, first.What does setCapture belong to?ScottOn 2/10/06, JesterXL [EMAIL PROTECTED] wrote: You still have to click on the flash movie itself in the browser to give it focus (or modify the html-template to do a flash.setFocus in the onload handler in _javascript_). Additionally, have you tried screwing with the 3rd (or 4th?) parameter, setCapture? - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:47 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Okay, spoke too soon.Apparently it isn't working the way I did it.It actually seems to be breaking worse now, with no event firing! I placed that line in my init(), which fires onCompletion:?xml version= 1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute creationComplete=init() mx:Script ![CDATA[ import com.imagetrend.containers .debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { stage.focus = this; this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + / + String(e.keyCode); Debugger.show(); Alert.show(trapKeys()); } ]] /mx:Script mx:Canvas id=mainCanvas width=100% height=100% mx:TextArea id=textArea width=236 height=196 /mx:TextArea /mx:Canvas /mx:Application On 2/10/06, Scott Langeberg [EMAIL PROTECTED] wrote: Strange, but makes sense! Jester, how come you're always the one that figures out my problems? Isn't the Macromedia/Adobe staff on this list?;) Take care,Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Scott LangebergSent: Thursday, February 09, 2006 10:54 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I can't get the following keyboardevent to fire, unless you click into the textarea on the stage. Any ideas why that would be?Note: I've tried adding the listener to: application, Application.application, the canvas on the stage, etc... ?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute creationComplete=init() mx:Script ![CDATA[ import com.imagetrend.containers.debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + / + String(e.keyCode); Debugger.show(); Alert.show(trapKeys()); } ]] /mx:Script mx:Canvas id=mainCanvas width=100% height=100% mx:TextArea id=textArea width=236 height=196 /mx:TextArea /mx:Canvas /mx:Application-- : : ) Scott --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS
[flexcoders] About Webservices and XML request format
Hi again! In my search for workarounds to my previous post "Array serialization in Webservices", I'm trying to overcome that array-to-item thing by entering an XML (well-formed) as a parameter to the WebService. Does anyone have an example on this one? So far, I've done this: 1) Changed the format of the request from "object" to "xml". 2) Mapped the object to XML (using some XMLTools.as I've found on one of the thousand sites I've looked so far). 3) Assigned the resulting XML to the request. This ends in: a) No result. b) Fault because of XML opening tags translated to lt;. If I use XML.parseXML in point 2, to "cast" the resulting string to XML and then inspect it with Trace Panel, the XML is well-formed. Any help? Thanks again! Pablo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Flex 2 Beta - KeyboardEvent - Problem
:: goes to look :: Ah, 3rd parameter, useCapture:Boolean. From the docs: useCapture:Boolean (default = false) Determines whether the listener will work in the capture phase or the target and bubbling phases. If useCapture is set to true, then the event listener will only process the event during the capture phase, and not in the target or bubbling phases. If false, then the event listener will only process the event during the target or bubbling phases. To listen for the event in all three phases, call addEventListener twice, once with useCapture set to true, then again with useCapture set to false. There was a bug in the alpha where if you didn't have something solid (like Application.backgroundColor or something drawn on _root), she didn't capture events period, even with useCapture). Just something to try, not sure if it'll solve it. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 2:27 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Hmm, yeah I was clicking on the movie, first.What does setCapture belong to?Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: You still have to click on the flash movie itself in the browser to give it focus (or modify the html-template to do a flash.setFocus in the onload handler in _javascript_). Additionally, have you tried screwing with the 3rd (or 4th?) parameter, setCapture? - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:47 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Okay, spoke too soon.Apparently it isn't working the way I did it.It actually seems to be breaking worse now, with no event firing! I placed that line in my init(), which fires onCompletion:?xml version=" 1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml " xmlns="*" layout="absolute" creationComplete="init()" mx:Script ![CDATA[ import com.imagetrend.containers .debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { stage.focus = this; this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + "/" + String(e.keyCode); Debugger.show(); Alert.show("trapKeys()"); } ]] /mx:Script mx:Canvas id="mainCanvas" width="100%" height="100%" mx:TextArea id="textArea" width="236" height="196" /mx:TextArea /mx:Canvas /mx:Application On 2/10/06, Scott Langeberg [EMAIL PROTECTED] wrote: Strange, but makes sense! Jester, how come you're always the one that figures out my problems? Isn't the Macromedia/Adobe staff on this list?;) Take care,Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Scott LangebergSent: Thursday, February 09, 2006 10:54 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I can't get the following keyboardevent to fire, unless you click into the textarea on the stage. Any ideas why that would be?Note: I've tried adding the listener to: application, Application.application, the canvas on the stage, etc... ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*" layout="absolute"
[flexcoders] Re: State data is not changing my datagrid-embedded combobox...
Hi, In function updateStateCbx(), try calling the following: dgLocationInfo.dataProvider.editField(selIdx, data, selState). The grid should notice the change to the dataprovider and cause your cell renderer to automatically update the combobox. Regards, Doug --- In flexcoders@yahoogroups.com, mrvinedit [EMAIL PROTECTED] wrote: I'm passing in selIdx and selState variables from another mxml not shown here, but suffice to say my alert is showing the correct data for the index of the state and the state's data. For some reason (must be my code :-) the datagrid-embedded combobox is not changing the state that's coming in from my data. Suggestions? Grid.mxml: mx:Script ![CDATA[ function updateStateCbx(selIdx,selState): { mx.controls.Alert.show(selIdx + ': ' + selState); dgLocationInfo.selectedItem.LocState.editField(selIdx, data, selState); } ]] /mx:Script mx:DataGrid id=dgLocationInfo width=90% editable=true dataProvider={aryLoc} rowCount=5 change=updateGridRowModel (dgLocationInfo.selectedItem.LocNum,dgLocationInfo.selectedItem.LocAd dr,dgLocationInfo.selectedItem.LocZip,dgLocationInfo.selectedItem.Loc City,dgLocationInfo.selectedItem.LocState) mx:columns mx:Array mx:DataGridColumn headerText=State columnName=LocState editable=false cellRenderer=StateRenderer width=120/ /mx:Array /mx:DataGrid StateRenderer: import mx.controls.ComboBox; class StateRenderer extends mx.core.UIComponent { var comboDP:Array = [{label:Alabama, data:AL}, {label:Alaska, data:AK}, {label:Arizona, data:AZ}, {label:Arkansas, data:AR}, {label:California, data:CA}, {label:Colorado, data:CO}, {label:Connecticut, data:CT}, {label:Delaware, data:DE}, {label:Florida, data:FL}, {label:Georgia, data:GA}, {label:Hawaii, data:HI}, {label:Idaho, data:ID}, {label:Illinois, data:IL}, {label:Indiana, data:IN}, {label:Iowa, data:IA}, {label:Kansas, data:KS}, {label:Kentucky, data:KY}, {label:Louisiana, data:LA}, {label:Maine, data:ME}, {label:Maryland, data:MD}, {label:Massachusetts, data:MA}, {label:Michigan, data:MI}, {label:Minnesota, data:MN}, {label:Mississippi, data:MS}, {label:Missouri, data:MO}, {label:Montana, data:MT}, {label:Nebraska, data:NE}, {label:Nevada, data:NV}, {label:New Hampshire, data:NH}, {label:New Jersey, data:NJ}, {label:New Mexico, data:NM}, {label:New York, data:NY}, {label:North Carolina, data:NC}, {label:North Dakota, data:ND}, {label:Ohio, data:OH}, {label:Oklahoma, data:OK}, {label:Oregon, data:OR}, {label:Pennsylvania, data:PA}, {label:Rhode Island, data:RI}, {label:South Carolina, data:SC}, {label:South Dakota, data:SD}, {label:Tennessee, data:TN}, {label:Texas, data:TX}, {label:Utah, data:UT}, {label:Vermont, data:VT}, {label:Virginia, data:VA}, {label:Washington, data:WA} ]; var combo; var listOwner : MovieClip; var getCellIndex : Function; var getDataLabel : Function; function createChildren(Void) : Void { combo = createClassObject( ComboBox, combo, 1, {owner:this, _x:1}); combo.dataProvider = comboDP; combo.addEventListener(change, this); } function getPreferredHeight(Void) : Number{ return combo != undefined ? 18:0; } function getPreferredWidth(Void) : Number{ return combo != undefined ? 100:0; } function setValue(str:String, item:Object) { var val = item.state; for(var i = 0; i combo.dataProvider.length; i++) { combo.dataProvider[i].data == val ? combo.selectedIndex = i : ''; } } function change() { listOwner.editField(getCellIndex().itemIndex, getDataLabel(), combo.selectedItem.data); listOwner.selectedIndex = getCellIndex().itemIndex; } } -- 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 handle this DataGrid request
Not going to workif you say selectable=false, the datagrid has no selectedIndex. I guess my question is how can a cellrenderer know what row its on, without using selectedIndex. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, February 10, 2006 11:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to handle this DataGrid request :: guessing :: Maybe parent.selectedIndex? - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:46 PM Subject: RE: [flexcoders] How to handle this DataGrid request I am *super* close to getting this, but Im stuck on one thing. If I click the checkbox (custom cellrenderer), I dispatch an event which changing the value in my dataProvider by using selectedIndex. But I need to have set selectable=false for the dataProvider, so I need to somehow know what row the checkbox is in without using selectedIndex. Anything in the dataObject which says which row youre on? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Friday, February 10, 2006 10:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to handle this DataGrid request Once again Jester, awesome help.but Im in Flex2 Beta ;) _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, February 10, 2006 10:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to handle this DataGrid request setValue in 1.5 actually sends you the selected state of the row. You can thus do: if ( selected != selected) { yourCH.selected = false; } else { yourCH.selected = true; } And, in your cellRenderer, you can access the grid via listOwner property. yourCH.addEventListener(click, Delegate.create(this, onClick)); function click() { if(yourCH.selected == false) return; var a:Array =listOwner.selectedIndices; if(a == null) a = []; a.push(getCellIndex().itemIndex); } - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 11:40 AM Subject: [flexcoders] How to handle this DataGrid request Ive a tricky job with a datagrid request from an employer and wondering how I should tackle this. They want a datagrid that can do multiple selections by a checkbox in a row not your normal shift-click. So you click on 3 checkboxes for 3 rows, and all 3 get selected. How can I bind the checkbox click to the datagrid selectedIndices is there an easy way to reference the datagrid through the cellrenderer dataObject? Having a hard enough time getting the checkbox to correctly sort and be remembered. Im considering trying to cheat and make it so when you click anywhere in the row, it selects that row and checks/unchecks the checkbox but even this is stumping me how I can bind the cell-renderer checkbox to the selectedindices array or something similar. Ive actually ran this by and theyre fine with that, so how can I bind selecting a row in a datagrid to checking that rows checkboxand allowing normal clicks toggle whats selected (not shift-click). Any of you Flex gurus got an idea on how to tackle this? Its a Friday and my thinking process is thinking weekends. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- 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!
[flexcoders] Hit Area Strategy
What's a good strategy for creating a hit area that's larger than the graphics in the Sprite or Display Object. For instance, if I have a concave shaped object and I want the hit area to be in the shape of a square, how can I best achieve this? -Trey -- 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 handle this DataGrid request
Check out the IDropInListItemRenderer interface. The listData object is your friend (of type BaseListData and then in other classes may be a subclass of that). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Friday, February 10, 2006 11:57 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to handle this DataGrid request Not going to workif you say selectable=false, the datagrid has no selectedIndex. I guess my question is how can a cellrenderer know what row its on, without using selectedIndex. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, February 10, 2006 11:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to handle this DataGrid request :: guessing :: Maybe parent.selectedIndex? - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:46 PM Subject: RE: [flexcoders] How to handle this DataGrid request I am *super* close to getting this, but Im stuck on one thing. If I click the checkbox (custom cellrenderer), I dispatch an event which changing the value in my dataProvider by using selectedIndex. But I need to have set selectable=false for the dataProvider, so I need to somehow know what row the checkbox is in without using selectedIndex. Anything in the dataObject which says which row youre on? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Friday, February 10, 2006 10:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to handle this DataGrid request Once again Jester, awesome help.but Im in Flex2 Beta ;) _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, February 10, 2006 10:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to handle this DataGrid request setValue in 1.5 actually sends you the selected state of the row. You can thus do: if ( selected != selected) { yourCH.selected = false; } else { yourCH.selected = true; } And, in your cellRenderer, you can access the grid via listOwner property. yourCH.addEventListener(click, Delegate.create(this, onClick)); function click() { if(yourCH.selected == false) return; var a:Array =listOwner.selectedIndices; if(a == null) a = []; a.push(getCellIndex().itemIndex); } - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 11:40 AM Subject: [flexcoders] How to handle this DataGrid request Ive a tricky job with a datagrid request from an employer and wondering how I should tackle this. They want a datagrid that can do multiple selections by a checkbox in a row not your normal shift-click. So you click on 3 checkboxes for 3 rows, and all 3 get selected. How can I bind the checkbox click to the datagrid selectedIndices is there an easy way to reference the datagrid through the cellrenderer dataObject? Having a hard enough time getting the checkbox to correctly sort and be remembered. Im considering trying to cheat and make it so when you click anywhere in the row, it selects that row and checks/unchecks the checkbox but even this is stumping me how I can bind the cell-renderer checkbox to the selectedindices array or something similar. Ive actually ran this by and theyre fine with that, so how can I bind selecting a row in a datagrid to checking that rows checkboxand allowing normal clicks toggle whats selected (not shift-click). Any of you Flex gurus got an idea on how to tackle this? Its a Friday and my thinking process is thinking weekends. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- 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
Re: [flexcoders] Hit Area Strategy
On 2/10/06, Trey Long [EMAIL PROTECTED] wrote: What's a good strategy for creating a hit area that's larger than the graphics in the Sprite or Display Object. For instance, if I have a concave shaped object and I want the hit area to be in the shape of a square, how can I best achieve this? How can you have a concave shape object? All objects are rectangular. -- 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] declaring constants in an interface
no access identifiers in interfaces give an error and then its the const that is the main errorOn 2/10/06, Manish Jethani [EMAIL PROTECTED] wrote:On 2/10/06, Johannes Nel [EMAIL PROTECTED] wrote: public interface IStreamextends IEventDispatcher{ const UPDATED:String =streamUpdated;[snip] getting the error variable declarations are not permitted in interfaces. but a constant is not a variable, its set at compile time so why is this not allowed? Does declaring it as static help?--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- j:pn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] 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] Flex 2 Beta - KeyboardEvent - Problem
Yeah, sorry; this guy: this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); Maybe try: this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys, true); - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 3:25 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem I'm guessing you're talking about the addEventListener()?;) Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: :: goes to look :: Ah, 3rd parameter, useCapture:Boolean. From the docs: useCapture: Boolean (default = false) — Determines whether the listener will work in the capture phase or the target and bubbling phases. If useCapture is set to true, then the event listener will only process the event during the capture phase, and not in the target or bubbling phases. If false, then the event listener will only process the event during the target or bubbling phases. To listen for the event in all three phases, call addEventListener twice, once with useCapture set to true, then again with useCapture set to false. There was a bug in the alpha where if you didn't have something solid (like Application.backgroundColor or something drawn on _root), she didn't capture events period, even with useCapture). Just something to try, not sure if it'll solve it. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 2:27 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Hmm, yeah I was clicking on the movie, first.What does setCapture belong to?Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: You still have to click on the flash movie itself in the browser to give it focus (or modify the html-template to do a flash.setFocus in the onload handler in _javascript_). Additionally, have you tried screwing with the 3rd (or 4th?) parameter, setCapture? - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:47 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Okay, spoke too soon.Apparently it isn't working the way I did it.It actually seems to be breaking worse now, with no event firing! I placed that line in my init(), which fires onCompletion:?xml version=" 1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml " xmlns="*" layout="absolute" creationComplete="init()" mx:Script ![CDATA[ import com.imagetrend.containers .debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { stage.focus = this; this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + "/" + String(e.keyCode); Debugger.show(); Alert.show("trapKeys()"); } ]] /mx:Script mx:Canvas id="mainCanvas" width="100%" height="100%" mx:TextArea id="textArea" width="236" height="196" /mx:TextArea /mx:Canvas /mx:Application On 2/10/06, Scott Langeberg [EMAIL PROTECTED] wrote: Strange, but makes sense! Jester, how come you're always the one that figures out my problems? Isn't the Macromedia/Adobe staff on this list?;) Take care,Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just that you provide focus to something in the app... maybe someone else can chime in with a reason why or a workaround. matt h
RE: [flexcoders] About Webservices and XML request format
Are you trying to send XML to the web service or receive the xml from the web service to flex? Is the web service .net or what platform are you using? -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Pablo ApanasionekEnvoy: vendredi 10 fvrier 2006 20:30: flexcoders@yahoogroups.comObjet: [flexcoders] About Webservices and XML request format Hi again! In my search for workarounds to my previous post "Array serialization in Webservices", I'm trying to overcome that array-to-item thing by entering an XML (well-formed) as a parameter to the WebService. Does anyone have an example on this one? So far, I've done this: 1) Changed the format of the request from "object" to "xml". 2) Mapped the object to XML (using some XMLTools.as I've found on one of the thousand sites I've looked so far). 3) Assigned the resulting XML to the request. This ends in: a) No result. b) Fault because of XML opening tags translated to lt;. If I use XML.parseXML in point 2, to "cast" the resulting string to XML and then inspect it with Trace Panel, the XML is well-formed. Any help? Thanks again! Pablo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] IFrame Example for Flex 2?
Manish - thanks for the reply. Does anyone out there have any HTML/Javascript-to-Flash/Flex examples they can share? -Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Thursday, February 09, 2006 1:36 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] IFrame Example for Flex 2? On 2/8/06, Mark Wales [EMAIL PROTECTED] wrote: Like a few before me I have tried to get the IFrame example that Christophe Coenraets put together for an earlier version of Flex. Has anyone been able to successfully port this to either the Alpha or Beta? Brian has: http://www.deitte.com/archives/2006/02/embedding_html.htm Also, as a conceptual question, might a working example of this allow Drag and Drop from the HTML pages that are loaded to Flex? I'm afraid I do not yet understand the Flex-HTML-Javascript combination well enough to grasp what is technically possible or not. There's on direct drag-n-drop between HTML and Flash, although it might be possible to implement it (primitive data like string/int can be exchanged between these environments). -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem
Screw this as crap, do this instead: mouseDown="tripKeys(event)" Put that in your application tag and take out the addEventListener stuff. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 3:44 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Still no luck. Even with background color. That's why i tried the canvas in the back, to see if that would capture focus. NADA.Is it me or did the Beta take some steps back from the Alpha? We're finding more problems than before. Except in the Design view! Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: :: goes to look :: Ah, 3rd parameter, useCapture:Boolean. From the docs: useCapture: Boolean (default = false) — Determines whether the listener will work in the capture phase or the target and bubbling phases. If useCapture is set to true, then the event listener will only process the event during the capture phase, and not in the target or bubbling phases. If false, then the event listener will only process the event during the target or bubbling phases. To listen for the event in all three phases, call addEventListener twice, once with useCapture set to true, then again with useCapture set to false. There was a bug in the alpha where if you didn't have something solid (like Application.backgroundColor or something drawn on _root), she didn't capture events period, even with useCapture). Just something to try, not sure if it'll solve it. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 2:27 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Hmm, yeah I was clicking on the movie, first.What does setCapture belong to?Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: You still have to click on the flash movie itself in the browser to give it focus (or modify the html-template to do a flash.setFocus in the onload handler in _javascript_). Additionally, have you tried screwing with the 3rd (or 4th?) parameter, setCapture? - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:47 PM Subject: Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem Okay, spoke too soon.Apparently it isn't working the way I did it.It actually seems to be breaking worse now, with no event firing! I placed that line in my init(), which fires onCompletion:?xml version=" 1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml " xmlns="*" layout="absolute" creationComplete="init()" mx:Script ![CDATA[ import com.imagetrend.containers .debug.*; import mx.core.Application ; import flash.events.KeyboardEvent; import mx.controls.Alert; private function init() { stage.focus = this; this.addEventListener(KeyboardEvent.KEY_DOWN, trapKeys); } private function trapKeys(e:KeyboardEvent) { textArea.text = String(e.charCode) + "/" + String(e.keyCode); Debugger.show(); Alert.show("trapKeys()"); } ]] /mx:Script mx:Canvas id="mainCanvas" width="100%" height="100%" mx:TextArea id="textArea" width="236" height="196" /mx:TextArea /mx:Canvas /mx:Application On 2/10/06, Scott Langeberg [EMAIL PROTECTED] wrote: Strange, but makes sense! Jester, how come you're always the one that figures out my problems? Isn't the Macromedia/Adobe staff on this list?;) Take care,Scott On 2/10/06, JesterXL [EMAIL PROTECTED] wrote: It's easy to fix; do: stage.focus = this; In your creationComplete event. - Original Message - From: Scott Langeberg To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 12:27 PM Subject: Fwd: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem So, can we safely call it a bug: Flex doesn't pick up keyboard events - unless there's component focus?Thanks,Scott-- Forwarded message --From: Matt Horn [EMAIL PROTECTED]Date: Feb 9, 2006 10:20 AMSubject: RE: [flexcoders] Flex 2 Beta - KeyboardEvent - ProblemTo: flexcoders@yahoogroups.com it seems to be something with having focus. when you first start the app, there's no focus on any control inside the app. I added a Button and click the Button. after that it works fine... so it doesn't appear torequire that you click on the TextArea, just
Re: [flexcoders] Flex 2 Beta - KeyboardEvent - Problem
On 2/10/06, Scott Langeberg [EMAIL PROTECTED] wrote: Still no luck. Even with background color. That's why i tried the canvas in the back, to see if that would capture focus. NADA. I think your problem is that the Flash movie does not have the focus when it starts up. Is that correct? -- 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] IFrame Example for Flex 2?
On 2/10/06, Mark Wales [EMAIL PROTECTED] wrote: Does anyone out there have any HTML/Javascript-to-Flash/Flex examples they can share? Can you elaborate on that? What do you mean by HTML/Javascript-to-Flash/Flex examples? -- 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] About Webservices and XML request format
I'm trying to send XML to the WS, and the WS is of the J2EE/Axis kind. ---Pablo Apanasionek De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Jason HawrylukEnviado el: Viernes, 10 de Febrero de 2006 17:43Para: flexcoders@yahoogroups.comAsunto: RE: [flexcoders] About Webservices and XML request format Are you trying to send XML to the web service or receive the xml from the web service to flex? Is the web service .net or what platform are you using? -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Pablo ApanasionekEnvoyé: vendredi 10 février 2006 20:30À: flexcoders@yahoogroups.comObjet: [flexcoders] About Webservices and XML request format Hi again! In my search for workarounds to my previous post "Array serialization in Webservices", I'm trying to overcome that array-to-item thing by entering an XML (well-formed) as a parameter to the WebService. Does anyone have an example on this one? So far, I've done this: 1) Changed the format of the request from "object" to "xml". 2) Mapped the object to XML (using some XMLTools.as I've found on one of the thousand sites I've looked so far). 3) Assigned the resulting XML to the request. This ends in: a) No result. b) Fault because of XML opening tags translated to lt;. If I use XML.parseXML in point 2, to "cast" the resulting string to XML and then inspect it with Trace Panel, the XML is well-formed. Any help? Thanks again! Pablo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] IFrame Example for Flex 2?
This might help: http://livedocs.macromedia.com/flex/20beta1/docs/1296.html Doesn't talk about iFrames, but it shows JavaScript-Flex and Flex-JavaScript interaction with the ExternalInterface API. Matt Horn -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Wales Sent: Friday, February 10, 2006 3:49 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] IFrame Example for Flex 2? Manish - thanks for the reply. Does anyone out there have any HTML/Javascript-to-Flash/Flex examples they can share? -Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Thursday, February 09, 2006 1:36 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] IFrame Example for Flex 2? On 2/8/06, Mark Wales [EMAIL PROTECTED] wrote: Like a few before me I have tried to get the IFrame example that Christophe Coenraets put together for an earlier version of Flex. Has anyone been able to successfully port this to either the Alpha or Beta? Brian has: http://www.deitte.com/archives/2006/02/embedding_html.htm Also, as a conceptual question, might a working example of this allow Drag and Drop from the HTML pages that are loaded to Flex? I'm afraid I do not yet understand the Flex-HTML-Javascript combination well enough to grasp what is technically possible or not. There's on direct drag-n-drop between HTML and Flash, although it might be possible to implement it (primitive data like string/int can be exchanged between these environments). -- 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 handle this DataGrid request
So close! Alright, Ive got it that I need to get to listData.rowIndex..now my event is dispatched for the click and in my function I can get to e.target (which is my ComboBox). Ive attempted. e.target.__listData (undefined) e.target.listData (null) ! e.target.dataObject.__listData (undefined) e.target.dataObject.listData (undefined) and more dealing with e.target.parent Since I am using a custom cellRenderer, Im not sure Im getting this right. Any help with this would be awesome Im so freaking close! Heres my custom cellRenderer that dispatches the event of clicking, and in my main application I grab the event and am messing around with event.target..(this renderer checks the box depending on the dataProvider) = checkboxRen.mxml = ?xml version=1.0? mx:HBox xmlns:mx=http://www.macromedia.com/2005/mxml horizontalAlign=center mx:Script ![CDATA[ override public function set dataObject(value:Object):void { if(value != null) { super.dataObject = value; if (value.compare == true) compare.selected = true; else compare.selected = false; } } public function toggleBtn(e:Event) { e.target.dispatchEvent(new Event('toggleCompare',true)); } ]] /mx:Script mx:CheckBox id=compare height=20 click=toggleBtn(event)/ /mx:HBox _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Friday, February 10, 2006 1:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to handle this DataGrid request Check out the IDropInListItemRenderer interface. The listData object is your friend (of type BaseListData and then in other classes may be a subclass of that). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Friday, February 10, 2006 11:57 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to handle this DataGrid request Not going to workif you say selectable=false, the datagrid has no selectedIndex. I guess my question is how can a cellrenderer know what row its on, without using selectedIndex. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, February 10, 2006 11:56 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to handle this DataGrid request :: guessing :: Maybe parent.selectedIndex? - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 1:46 PM Subject: RE: [flexcoders] How to handle this DataGrid request I am *super* close to getting this, but Im stuck on one thing. If I click the checkbox (custom cellrenderer), I dispatch an event which changing the value in my dataProvider by using selectedIndex. But I need to have set selectable=false for the dataProvider, so I need to somehow know what row the checkbox is in without using selectedIndex. Anything in the dataObject which says which row youre on? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Friday, February 10, 2006 10:29 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How to handle this DataGrid request Once again Jester, awesome help.but Im in Flex2 Beta ;) _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Friday, February 10, 2006 10:00 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to handle this DataGrid request setValue in 1.5 actually sends you the selected state of the row. You can thus do: if ( selected != selected) { yourCH.selected = false; } else { yourCH.selected = true; } And, in your cellRenderer, you can access the grid via listOwner property. yourCH.addEventListener(click, Delegate.create(this, onClick)); function click() { if(yourCH.selected == false) return; var a:Array =listOwner.selectedIndices; if(a == null) a = []; a.push(getCellIndex().itemIndex); } - Original Message - From: Jonathan Miranda To: flexcoders@yahoogroups.com Sent: Friday, February 10, 2006 11:40 AM Subject: [flexcoders] How to handle this
[flexcoders] Datagrid focusedCell issue.
Flexcoders- I have a datgrid where a user can enter a number in a field. After the user enters the number, I would like the same row to stay selected and the cell to be completely out of focus (just like when a row is normally selected). I have tried setting the datagrid.focusedCell=undefined and the dg.cellEditor = undefined and that does not work. here's an example of my code. In the 2nd column, if you enter any text and hit return, the same row is still selected but the cell is still in edit mode. If you hit the Escape key, the row is out of focus which is exactly what I want. My question is how does one replicate that? I couldn't find any docs anywhere on this forum or google. Thanks for any help! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Script ![CDATA[ var dp = [ { one:one, two:two, three:three }, { one:four, two:five, three:six }, { one:seven, two:eight, three:nine }]; function cellEditHandler(event:Object) : Void { var selecteditem = event.target.dataProvider.getItemAt(event.itemIndex); event.target.focusedCell = {itemIndex:event.itemIndex-1, columnIndex:event.columnIndex}; } ]] /mx:Script mx:DataGrid id=dg dataProvider={ dp } editable=true cellEdit=cellEditHandler(event) mx:columns mx:Array mx:DataGridColumn columnName=one editable=false/ mx:DataGridColumn columnName=two / mx:DataGridColumn columnName=three editable=false/ /mx:Array /mx:columns /mx:DataGrid /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 * 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] About Webservices and XML request format
Ahh, Not sure about j2ee but in .net i had to send it as a string thencast the result to an xml typein the web service (.net code). I also had to remove a little namespace stuff as well after casting but before saving to a file on the server for example. jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Pablo ApanasionekEnvoyé: vendredi 10 février 2006 21:48À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] About Webservices and XML request format I'm trying to send XML to the WS, and the WS is of the J2EE/Axis kind. ---Pablo Apanasionek De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Jason HawrylukEnviado el: Viernes, 10 de Febrero de 2006 17:43Para: flexcoders@yahoogroups.comAsunto: RE: [flexcoders] About Webservices and XML request format Are you trying to send XML to the web service or receive the xml from the web service to flex? Is the web service .net or what platform are you using? -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Pablo ApanasionekEnvoyé: vendredi 10 février 2006 20:30À: flexcoders@yahoogroups.comObjet: [flexcoders] About Webservices and XML request format Hi again! In my search for workarounds to my previous post "Array serialization in Webservices", I'm trying to overcome that array-to-item thing by entering an XML (well-formed) as a parameter to the WebService. Does anyone have an example on this one? So far, I've done this: 1) Changed the format of the request from "object" to "xml". 2) Mapped the object to XML (using some XMLTools.as I've found on one of the thousand sites I've looked so far). 3) Assigned the resulting XML to the request. This ends in: a) No result. b) Fault because of XML opening tags translated to lt;. If I use XML.parseXML in point 2, to "cast" the resulting string to XML and then inspect it with Trace Panel, the XML is well-formed. Any help? Thanks again! Pablo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] How to handle this DataGrid request
On 2/10/06, Jonathan Miranda [EMAIL PROTECTED] wrote: So close! Alright, I've got it that I need to get to listData.rowIndex…..now my event is dispatched for the click and in my function I can get to e.target (which is my ComboBox). e.target.listData (null) ! Because your renderer is not an IDropInListItemRenderer. Why not implement that interface? HBox implements=mx.controls.listclasses.IDropInListItemRenderer Script public funciton set listData(value) { /* save value */ } public funciton get listData() { /* return value */ } /Script /HBox -- 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] About Webservices and XML request format
In thiscase, the webservice is defined to do all the "magic". But it's expecting a VO instead of a string. Does anyone have an example of a webservice (including wsdl and mxml) sending an array of items to the server? This is killing me softly. ='( ---Pablo Gustavo Apanasionek De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Jason HawrylukEnviado el: Viernes, 10 de Febrero de 2006 18:01Para: flexcoders@yahoogroups.comAsunto: RE: [flexcoders] About Webservices and XML request format Ahh, Not sure about j2ee but in .net i had to send it as a string thencast the result to an xml typein the web service (.net code). I also had to remove a little namespace stuff as well after casting but before saving to a file on the server for example. jason -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Pablo ApanasionekEnvoyé: vendredi 10 février 2006 21:48À: flexcoders@yahoogroups.comObjet: RE: [flexcoders] About Webservices and XML request format I'm trying to send XML to the WS, and the WS is of the J2EE/Axis kind. ---Pablo Apanasionek De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Jason HawrylukEnviado el: Viernes, 10 de Febrero de 2006 17:43Para: flexcoders@yahoogroups.comAsunto: RE: [flexcoders] About Webservices and XML request format Are you trying to send XML to the web service or receive the xml from the web service to flex? Is the web service .net or what platform are you using? -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Pablo ApanasionekEnvoyé: vendredi 10 février 2006 20:30À: flexcoders@yahoogroups.comObjet: [flexcoders] About Webservices and XML request format Hi again! In my search for workarounds to my previous post "Array serialization in Webservices", I'm trying to overcome that array-to-item thing by entering an XML (well-formed) as a parameter to the WebService. Does anyone have an example on this one? So far, I've done this: 1) Changed the format of the request from "object" to "xml". 2) Mapped the object to XML (using some XMLTools.as I've found on one of the thousand sites I've looked so far). 3) Assigned the resulting XML to the request. This ends in: a) No result. b) Fault because of XML opening tags translated to lt;. If I use XML.parseXML in point 2, to "cast" the resulting string to XML and then inspect it with Trace Panel, the XML is well-formed. Any help? Thanks again! Pablo Apanasionek -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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.