[flexcoders] Re: Response not resolvable with Flex 2.0 and ASP.NET 2.0 Web Service
--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Can you send us the WSDL please? I don't have .NET 2.0 set up. Matt Hi Matt I've kind of hijacked this thread so Tony (syndrake7) please don't hesitate to show your wsdl as well. Below is my wsdl and flex 2.0 code. i'm using a call object btw. flex 2.0 code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; mx:Script ![CDATA[ import mx.controls.Alert; private function getDataSet():void { var call:Object = service1.GetDataSet(); call.onResult = returnWebService; } private function returnWebService(result:Object):void { dg.dataProvider = result.diffgram.NewDataSet.Table; } ]] /mx:Script mx:WebService id=service1 wsdl=http://localhost/FlexTestWebService/Service1.asmx?wsdl; showBusyCursor=true fault=mx.controls.Alert.show (event.fault.faultstring, 'WebService')/ mx:Button label=populate DG click=getDataSet() / mx:DataGrid id=dg mx:columns mx:Array mx:DataGridColumn columnName=CODE headerText=Code/ mx:DataGridColumn columnName=STATUS headerText=Status/ mx:DataGridColumn columnName=DESC headerText=Description/ mx:DataGridColumn columnName=SHORT headerText=Short/ /mx:Array /mx:columns /mx:DataGrid /mx:Application wsdl - btw its not .net 2.0, but i'm getting the same error ?xml version=1.0 encoding=utf-8 ? wsdl:definitions xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:tns=http://tempuri.org/; xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; targetNamespace=http://tempuri.org/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://tempuri.org/; s:import namespace=http://www.w3.org/2001/XMLSchema; / s:element name=GetDataSet s:complexType / /s:element s:element name=GetDataSetResponse s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=GetDataSetResult s:complexType s:sequence s:element ref=s:schema / s:any / /s:sequence /s:complexType /s:element /s:sequence /s:complexType /s:element s:element name=HelloWorld s:complexType / /s:element s:element name=HelloWorldResponse s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=HelloWorldResult type=s:string / /s:sequence /s:complexType /s:element /s:schema /wsdl:types wsdl:message name=GetDataSetSoapIn wsdl:part name=parameters element=tns:GetDataSet / /wsdl:message wsdl:message name=GetDataSetSoapOut wsdl:part name=parameters element=tns:GetDataSetResponse / /wsdl:message wsdl:message name=HelloWorldSoapIn wsdl:part name=parameters element=tns:HelloWorld / /wsdl:message wsdl:message name=HelloWorldSoapOut wsdl:part name=parameters element=tns:HelloWorldResponse / /wsdl:message wsdl:portType name=Service1Soap wsdl:operation name=GetDataSet wsdl:input message=tns:GetDataSetSoapIn / wsdl:output message=tns:GetDataSetSoapOut / /wsdl:operation wsdl:operation name=HelloWorld wsdl:input message=tns:HelloWorldSoapIn / wsdl:output message=tns:HelloWorldSoapOut / /wsdl:operation /wsdl:portType wsdl:binding name=Service1Soap type=tns:Service1Soap soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document / wsdl:operation name=GetDataSet soap:operation soapAction=http://tempuri.org/GetDataSet; style=document / wsdl:input soap:body use=literal / /wsdl:input wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation wsdl:operation name=HelloWorld soap:operation soapAction=http://tempuri.org/HelloWorld; style=document / wsdl:input soap:body use=literal / /wsdl:input wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=Service1 documentation xmlns=http://schemas.xmlsoap.org/wsdl/; / wsdl:port name=Service1Soap binding=tns:Service1Soap soap:address location=http://localhost/FlexTestWebService/Service1.asmx; / /wsdl:port /wsdl:service /wsdl:definitions -- 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: mx.rpc.xml::NamespaceUtil$/getLocalName() ERROR in flex 2
I have a closing tag how you mean take hyphens out? --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: So what you sent me has the hyphens in the XML from where you viewed it in IE probably. Take those out and the error went away for me. Also add the closing /helakatalog. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Thursday, February 16, 2006 12:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.xml::NamespaceUtil$/getLocalName() ERROR in flex 2 Here is the beginning of the xml output ?xml version=1.0 encoding=utf-8 ? - helakatalog - katalog id109/id title100 Girls/title year2000/year publisherMiramax/publisher genresKomedi/genres image07m.jpg/image infoSelf-described tragically glib college freshman Jonathan Tucker finds true love in a girls' dorm elevator during a blackout, but when he forgets to get her name he has 100 suspects to sift through, one by one! It may sound like the premise of just another teen sex farce, but writer-director Michael Davis makes it the starting point of the boy's getting of wisdom. Amiable young star Tucker brings an excited and endearing innocence to his journey, and Emmanuelle Chriqui is a delight as the promiscuous girl who teaches him a thing or three about crippling stereotypes. Larisa Oleynik, Jaime Pressly, Marissa Ribisi, and Katherine Heigl are just a few of the other girls who help him along. 100 Girls is a refreshingly frank, funny, and sexy exploration of the dynamics of young men and women and the power of first impressions, reputations, and expectations./info link100.Girls.DVDRip//link rate0/rate /katalog - katalog id139/id title100 Women/title year2002/year publisherLions Gate Film/publisher genresKomedi/genres image16m.jpg/image infoA very bright and likable student is on a mission to find a girl he met in a blackout. His problem; he doesn't know who she is or what she looks like! He leaves no stone unturned in his effort to find that girl, the girl of his dreams. In the process, a co-ed friend talks him into cross-dressing to understand what a women experience. This experience actually helps him mature in a college way, and develops respect for women realizing how men can be so primitive. Shame on males for being so primitive acting the way they do! Like we needed another movie to confirm what we already know. 100 Women is another movie about college kids experiencing their liberation from parents. However, this movie unlike similar movies works. 100 Women is worth watching. There are many memorable one- liners will keep you laughing. This movie is worthy of it R rating and parental guidance is strongly advised./info link100 Women/link rate0/rate /katalog --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: Can you post some example XML from it? Clearly the parser didn't like it... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Wednesday, February 15, 2006 1:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.xml::NamespaceUtil$/getLocalName () ERROR in flex 2 I'm using PHP to make an xml output so i've changed my HTTPService to http://192.168.0.200/PHP/katalog.php and i'm sure it works cause i have a flex 1.5 application running with that Service... --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: Well, how did you change the HTTPService? Are you sure it's successfully downloading the file? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Tuesday, February 14, 2006 10:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx.rpc.xml::NamespaceUtil$/getLocalName () ERROR in flex 2 I keep on getting this error in flex: 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.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() I cannot find a
[flexcoders] Evaluation period for Flex 2 Developer Beta 1 is wrongly ended at multiple our machines
Hello flexcoders, Yesterday the evaluation period for Flex 2 Developer Beta 1 is wrongly had elapsed yesterday at 4 different our PCs. Is this a deliberate end of the evaluation period for Flex 2 Developer Beta 1 or this was caused by an error, probably connected with the end of evaluation period of Flex 2 Public Alpha release? -- Best regards, Andriy mailto:[EMAIL PROTECTED] -- 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] String cann't create dynamic Class without instance!
Why flash.util.getClassByName(param:String):Class This method counld not load when this class has no instance. But It has pre-creation instance, it can load. // Sample codes public function load(param:String):Object { var ClassRef:Class = getClassByName(param); var instance:Object = ClassRef(); return instance; } var myControl:MyControl = mytester.load(com.test.MyControl); How to fix it or has another method for dynamic class creation? -- 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] Cairngorm2 reusable commands
Hi all, In Cairngorm commands, I always define statically where I want some results to be sent (normally a custom function in component that extends ViewHelper). This updates my view and works fine. But... How can I make that command Class to send some results to whatever asked for them (who dispatched the event that threw that command)? Eg: foobar1.mxml and foobar2.mxml .. public function setResults(someResults):void { //update my controls } public function getResults():void { dispatchEvent(askForResults); } foobar1 and foobar2 dispatch the same event and the command needs to know where to send back the results and run setResults on the corresponding caller. How can I achieve this? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- 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] Cairngorm2 reusable commands
Alberto, In my opinion commands shouldn't be aware of the views. It's not what cairngorm is made for. Dispatch your event and set the result to some variable in your ModelLocator. Then if foobar1 and foobar2 need that info, use bindings and bind them to that variable ... Do you need to transform that information in a different way for each one? Fine, use the Foobar1ViewHelper and Foobar2ViewHelper to do it. Example: Foobar1.mxml mx:Script ![CDATA[ Import your.model.locator.path.ModelLocator; [Bindable] public var model:ModelLocator = ModelLocator.getInstance(); ]] /mx:Script mx:Combobox dataProvider={Foobar1ViewHelper.formatMyModel(model.myVar)}/ Foobar2.mxml mx:Combobox dataProvider={Foobar2ViewHelper.formatDifferentlyMyModel(model.myVar)}/ João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: sexta-feira, 17 de Fevereiro de 2006 11:45 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm2 reusable commands Hi all, In Cairngorm commands, I always define statically where I want some results to be sent (normally a custom function in component that extends ViewHelper). This updates my view and works fine. But... How can I make that command Class to send some results to whatever asked for them (who dispatched the event that threw that command)? Eg: foobar1.mxml and foobar2.mxml .. public function setResults(someResults):void { //update my controls } public function getResults():void { dispatchEvent(askForResults); } foobar1 and foobar2 dispatch the same event and the command needs to know where to send back the results and run setResults on the corresponding caller. How can I achieve this? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- 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 Enterprise Services (Messaging problem)
Well , The flex.log file just has this entries: 02/17 11:11:07 DEBUG configuration service started. 02/17 11:11:07 DEBUG logger services started. 02/17 11:11:07 INFO License Service: Flex 2.0 Trial Edition enabled (beta period ends May 1, 2006) 02/17 11:11:07 DEBUG Flex: License services started. 02/17 11:11:14 DEBUG Initial setup: 453ms 02/17 11:11:17 DEBUG Loaded 8 SWCs: 2438ms 02/17 11:11:17 DEBUG License Service: Flex 2.0 Developer Edition enabled (beta period ends May 1, 2006) 02/17 11:11:17 DEBUG Compiling... 02/17 11:11:48 DEBUG Files: 626 Time: 31452ms 02/17 11:11:49 DEBUG Linking... 297ms 02/17 11:11:54 DEBUG Optimizing... 5484ms 02/17 11:11:55 DEBUG SWF Encoding... 500ms In the server-out.log is growing, even if the samples dont update. (2 last calls, they are all the same) [Flex] Executed command: service=message-service commandMessage: Flex Message (flex.messaging.messages.CommandMessage) operation: poll messageRefType: flex.messaging.messages.AsyncMessage clientId: 1D421B33-9F0C-0EDC-A925-02830F909A2B correlationId: destination: chat-topic-jms messageId: F71EBDE9-8A26-43B2-68225C11 timestamp: 1140177214653 timeToLive: 0 body: {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId: 1D421B33-9F0C-0EDC-A925-02830F909A2B correlationId: F71EBDE9-8A26-43B2-68225C11 destination: null messageId: 1DD977C7-DA1D-83A2-5AAA-2B26D07C5CD0 timestamp: 1140178779770 timeToLive: 0 body: null [Flex] Executed command: service=message-service commandMessage: Flex Message (flex.messaging.messages.CommandMessage) operation: poll messageRefType: flex.messaging.messages.AsyncMessage clientId: 1D421B33-9F0C-0EDC-A925-02830F909A2B correlationId: destination: chat-topic-jms messageId: BC8D80AA-C434-6822-512DB570 timestamp: 1140177214653 timeToLive: 0 body: {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId: 1D421B33-9F0C-0EDC-A925-02830F909A2B correlationId: BC8D80AA-C434-6822-512DB570 destination: null messageId: 1DD993F1-5310-9525-FF55-E99AC66A735B timestamp: 1140178782723 timeToLive: 0 body: null BTW, my java.args are java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m -XX:+UseParallelGC -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Dcoldfusion.rootDir={application.home}/ -Djmx.invoke.getters=true João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: quinta-feira, 16 de Fevereiro de 2006 21:15 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex Enterprise Services (Messaging problem) May be a heap problem, can you try turning on some of the debug logging in flex-enterprise-services.xml and see if anything comes out when you hit it after he idle? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dustin Mercer Sent: Thursday, February 16, 2006 1:14 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex Enterprise Services (Messaging problem) Sounds like a memory issue possibly we were seeing the same types of odd issues until we bumped the heap size up. Give that a try and see if it helps J Dustin Mercer From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of João Fernandes Sent: Thursday, February 16, 2006 9:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Enterprise Services (Messaging problem) Hi there, I have deployed samples apps in a J2EE server instance (/samples, /flex and /flex-admin). I opened the samples with no problem but after some idle time, all the apps stopped to work. For example the dashboard, after this idle time (+- 30 min) no message was sent.. Even if I refresh the application, its not working. I have to restart the server instance to have them to work again. Is this a known issue? Regards, João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] -- 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] Cairngorm2 reusable commands
Hi Joao, I dont agree at all hehe For me, it is ok that commands know about views (or whatever dispatches the event that started that command) Imagine this situation: You have a screen where 2 components ask for the weather on a zip code, so I can see weather on 2 locations at the same time. What I say is: I need both components to dispatch the same event(getWeather) but with different parameter (zip code) and get the results back to them using the same command. I dont want to use a single application pool to store my results. Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática João Fernandes escribió: Alberto, In my opinion commands shouldn't be aware of the views. It's not what cairngorm is made for. Dispatch your event and set the result to some variable in your ModelLocator. Then if foobar1 and foobar2 need that info, use bindings and bind them to that variable ... Do you need to transform that information in a different way for each one? Fine, use the Foobar1ViewHelper and Foobar2ViewHelper to do it. Example: Foobar1.mxml mx:Script ![CDATA[ Import your.model.locator.path.ModelLocator; [Bindable] public var model:ModelLocator = ModelLocator.getInstance(); ]] /mx:Script mx:Combobox dataProvider={Foobar1ViewHelper.formatMyModel(model.myVar)}/ Foobar2.mxml mx:Combobox dataProvider={Foobar2ViewHelper.formatDifferentlyMyModel(model.myVar)}/ João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: sexta-feira, 17 de Fevereiro de 2006 11:45 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm2 reusable commands Hi all, In Cairngorm commands, I always define statically where I want some results to be sent (normally a custom function in component that extends ViewHelper). This updates my view and works fine. But... How can I make that command Class to send some results to whatever asked for them (who dispatched the event that threw that command)? Eg: foobar1.mxml and foobar2.mxml .. public function setResults(someResults):void { //update my controls } public function getResults():void { dispatchEvent(askForResults); } foobar1 and foobar2 dispatch the same event and the command needs to know where to send back the results and run setResults on the corresponding caller. How can I achieve this? 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] Re: Cairngorm2 reusable commands
Alberto, I'm not a MVC guru (far from that), I used Cairngorm for almost a year now and the benifit of using it, is that you can separate views from commands (and other stuff of course), that's what cairngorm is for. IMO, if you want to make commands aware of specific views, you don't want to use a single application pool (ModelLocator), I don't understand why you use cairngorm. Cairngorm is not just for nice organized applications files (that's how I see your view of cairngorm). BTW, for your concern about the different zip codes, you could store your results in an ArrayCollection (in the ModelLocator) and for each component you could filter that ArrayCollection and get the right row for that instance Zip-code. You could then have not 2 but N instances of foobar.mxml. My 0.02. João Fernandes --- In flexcoders@yahoogroups.com, Alberto Albericio Salvador [EMAIL PROTECTED] wrote: Hi Joao, I dont agree at all hehe For me, it is ok that commands know about views (or whatever dispatches the event that started that command) Imagine this situation: You have a screen where 2 components ask for the weather on a zip code, so I can see weather on 2 locations at the same time. What I say is: I need both components to dispatch the same event(getWeather) but with different parameter (zip code) and get the results back to them using the same command. I dont want to use a single application pool to store my results. Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática João Fernandes escribió: Alberto, In my opinion commands shouldn't be aware of the views. It's not what cairngorm is made for. Dispatch your event and set the result to some variable in your ModelLocator. Then if foobar1 and foobar2 need that info, use bindings and bind them to that variable ... Do you need to transform that information in a different way for each one? Fine, use the Foobar1ViewHelper and Foobar2ViewHelper to do it. Example: Foobar1.mxml mx:Script ![CDATA[ Import your.model.locator.path.ModelLocator; [Bindable] public var model:ModelLocator = ModelLocator.getInstance(); ]] /mx:Script mx:Combobox dataProvider={Foobar1ViewHelper.formatMyModel(model.myVar)}/ Foobar2.mxml mx:Combobox dataProvider={Foobar2ViewHelper.formatDifferentlyMyModel(model.myVar)}/ João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: sexta-feira, 17 de Fevereiro de 2006 11:45 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm2 reusable commands Hi all, In Cairngorm commands, I always define statically where I want some results to be sent (normally a custom function in component that extends ViewHelper). This updates my view and works fine. But... How can I make that command Class to send some results to whatever asked for them (who dispatched the event that threw that command)? Eg: foobar1.mxml and foobar2.mxml .. public function setResults(someResults):void { //update my controls } public function getResults():void { dispatchEvent(askForResults); } foobar1 and foobar2 dispatch the same event and the command needs to know where to send back the results and run setResults on the corresponding caller. How can I achieve this? 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/
RE: [flexcoders] Cairngorm2 reusable commands
I'll second this approach : 1. use as much as possible the Model Locator and bindings to avoid commandsviews dependencies, 2. when not sufficient or not elegant, use a viewhelper. Benoit Hediard (which was using too much viewhelpers at the begining ;) ) -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de João Fernandes Envoyé : vendredi 17 février 2006 13:08 À : flexcoders@yahoogroups.com Objet : RE: [flexcoders] Cairngorm2 reusable commands Alberto, In my opinion commands shouldn't be aware of the views. It's not what cairngorm is made for. Dispatch your event and set the result to some variable in your ModelLocator. Then if foobar1 and foobar2 need that info, use bindings and bind them to that variable ... Do you need to transform that information in a different way for each one? Fine, use the Foobar1ViewHelper and Foobar2ViewHelper to do it. Example: Foobar1.mxml mx:Script ![CDATA[ Import your.model.locator.path.ModelLocator; [Bindable] public var model:ModelLocator = ModelLocator.getInstance(); ]] /mx:Script mx:Combobox dataProvider={Foobar1ViewHelper.formatMyModel(model.myVar)}/ Foobar2.mxml mx:Combobox dataProvider={Foobar2ViewHelper.formatDifferentlyMyModel(model.myVar)}/ João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: sexta-feira, 17 de Fevereiro de 2006 11:45 To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm2 reusable commands Hi all, In Cairngorm commands, I always define statically where I want some results to be sent (normally a custom function in component that extends ViewHelper). This updates my view and works fine. But... How can I make that command Class to send some results to whatever asked for them (who dispatched the event that threw that command)? Eg: foobar1.mxml and foobar2.mxml .. public function setResults(someResults):void { //update my controls } public function getResults():void { dispatchEvent(askForResults); } foobar1 and foobar2 dispatch the same event and the command needs to know where to send back the results and run setResults on the corresponding caller. How can I achieve this? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- 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] ComboBox in a Repeater
Hi all, Has anyone here used a ComboBox within a Repeater? I'm successfully populating the ComboBoxes in my Repeater; but each ComboBox, while populated from the same dataProvider, will have a different default (selectedItem), and I haven't yet figured out how to accomplish that. The following does not work: mx:ComboBox id=statusComboBox dataProvider={viewHelper.statusComboBoxData} selectedItem={repeater.currentItem.sample_status}/ However when I put a Button next to each ComboBox for debugging purposes, the pop-up displays the correct information: mx:Button click=mx.controls.Alert.show(event.target.getRepeaterItem().sample_status);/ If anyone has dealt with this and can offer a suggestion, I'd greatly appreciate it. Thanks, YJ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce)
Sorry for the late response Does this process only work if we try to access a restricted resource? That is, if the first screen in my Flex app is the login page, can I post the form to one of my own services (remote object), manually do the handler/loginContext process as described in login.jsp below? Or does it need to be posted to this j_security_check? You need to access a secure resource. The container will respond with a redirect to your login page where you have a form that submits to j_security_check. If this login module/context succeeds (login/commit), does it matter whether this was called through my own code or from this mysterious j_security_check? (BTW, what is j_security_check? A jsp, url to servlet handled by container, I can do the search on this myself, but if you want to answer, I'd certainly read it :-)) After a successful login, the server will redirect the user to the originally requested secure resource. j_security_check is a token in J2EE web applications that represents the server's page for processing a form based authentication request. It's not something you write. When the server gets a request for it, it gets the value for j_username and j_password and attempts to authenticate the user based on whatever authentication scheme you have configured for the server/web app. Is there some standard way of handling an app that requires the user to login prior to doing anything? For example, I see the app being launched from a link/button on our web site. I want the login page to display. Do we have this link/button point to some fake (or real) protected resource to kick off the auth process? That's exactly correct. The login link points to a secure page. In the case of an unauthenticated session, the user will get the login form. In the case of a previously authenticated session, the user will be taken right to the page. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Schneider Sent: Wednesday, February 15, 2006 11:28 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Thanks for the info. First, let me clarify that this is not how we intend to do login/auth. I was merely trying to get the LoginModule to fire without going through any server-side/flex/proxy. Does this process only work if we try to access a restricted resource? That is, if the first screen in my Flex app is the login page, can I post the form to one of my own services (remote object), manually do the handler/loginContext process as described in login.jsp below? Or does it need to be posted to this j_security_check? If this login module/context succeeds (login/commit), does it matter whether this was called through my own code or from this mysterious j_security_check? (BTW, what is j_security_check? A jsp, url to servlet handled by container, I can do the search on this myself, but if you want to answer, I'd certainly read it :-)) Is there some standard way of handling an app that requires the user to login prior to doing anything? For example, I see the app being launched from a link/button on our web site. I want the login page to display. Do we have this link/button point to some fake (or real) protected resource to kick off the auth process? As always, thanks for the education. Jim - Jim Schneider KJ Interactive, Inc. 1-877-370-6906 1-612-605-5399 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson Hager Sent: Wednesday, February 15, 2006 12:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: setUsernamePassword and J2EE login (bounce) Actually, this doesn't look correct at all. You're trying to go about this manually and that is not how J2EE security works. For this to work, you have to integrate with the container which means configuring your servlet container to delegate all J2EE authentication/authorization to your JAAS module. After that, you then have to secure resources within your web application however that's done in your container. For things like Tomcat, this is done directly in web.xml. Your situation here will likely be different. If you are using form auth, you then point your flex form to post to j_security_check passing in j_username and j_password. If you are using basic auth, you will simply be prompted by the browser for userid/password. Regardless of which you choose, the order of operations in the J2EE world is the following. 1. User requests a secure resource 2. Server responds with either the page you have configured for credentials (Form auth) or with a request to the client(browser) to garner then login information (Basic auth).
[flexcoders] Re: mx.rpc.xml::NamespaceUtil$/getLocalName() ERROR in flex 2
Please look at this Hi I have the same problem, in my examples that run ok in ALPHA, but not in Beta. One of the example is in Blog: Flex Data Binding - Nodes or Attributes? http://www.evilfree.com/adam/blog/2005/11/flex_data_binding_nodes_or_ att.html Three diferent xml files one with only attributes the second with attributes and nodes and the last 3 with only nodes. ONLY the first one with only attributes in xml file run. Another example that i have run in ALPHA and FLASH that is the tutorial of FLASH and PHP: Business Directory Sample: Flash MX 2004 Professional with PHP and MySQL http://www.macromedia.com/devnet/flash/articles/flash_xmlphp.html Now in BETA give the same error. Another example that give me that error is: http://blogs.adobe.com/mikepotter/2006/02/flex_and_php_a_1.html Never run ok with me give the error but save the database because i see one more record on database. Thanks if any reply give me a ligth. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: So what you sent me has the hyphens in the XML from where you viewed it in IE probably. Take those out and the error went away for me. Also add the closing /helakatalog. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Thursday, February 16, 2006 12:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.xml::NamespaceUtil$/getLocalName() ERROR in flex 2 Here is the beginning of the xml output ?xml version=1.0 encoding=utf-8 ? - helakatalog - katalog id109/id title100 Girls/title year2000/year publisherMiramax/publisher genresKomedi/genres image07m.jpg/image infoSelf-described tragically glib college freshman Jonathan Tucker finds true love in a girls' dorm elevator during a blackout, but when he forgets to get her name he has 100 suspects to sift through, one by one! It may sound like the premise of just another teen sex farce, but writer-director Michael Davis makes it the starting point of the boy's getting of wisdom. Amiable young star Tucker brings an excited and endearing innocence to his journey, and Emmanuelle Chriqui is a delight as the promiscuous girl who teaches him a thing or three about crippling stereotypes. Larisa Oleynik, Jaime Pressly, Marissa Ribisi, and Katherine Heigl are just a few of the other girls who help him along. 100 Girls is a refreshingly frank, funny, and sexy exploration of the dynamics of young men and women and the power of first impressions, reputations, and expectations./info link100.Girls.DVDRip//link rate0/rate /katalog - katalog id139/id title100 Women/title year2002/year publisherLions Gate Film/publisher genresKomedi/genres image16m.jpg/image infoA very bright and likable student is on a mission to find a girl he met in a blackout. His problem; he doesn't know who she is or what she looks like! He leaves no stone unturned in his effort to find that girl, the girl of his dreams. In the process, a co-ed friend talks him into cross-dressing to understand what a women experience. This experience actually helps him mature in a college way, and develops respect for women realizing how men can be so primitive. Shame on males for being so primitive acting the way they do! Like we needed another movie to confirm what we already know. 100 Women is another movie about college kids experiencing their liberation from parents. However, this movie unlike similar movies works. 100 Women is worth watching. There are many memorable one- liners will keep you laughing. This movie is worthy of it R rating and parental guidance is strongly advised./info link100 Women/link rate0/rate /katalog --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: Can you post some example XML from it? Clearly the parser didn't like it... -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Wednesday, February 15, 2006 1:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: mx.rpc.xml::NamespaceUtil$/getLocalName () ERROR in flex 2 I'm using PHP to make an xml output so i've changed my HTTPService to http://192.168.0.200/PHP/katalog.php and i'm sure it works cause i have a flex 1.5 application running with that Service... --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: Well, how did you change the HTTPService? Are you sure it's successfully downloading the file? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pioplacz Sent: Tuesday, February 14, 2006 10:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx.rpc.xml::NamespaceUtil$/getLocalName () ERROR in flex 2 I keep on getting this error
[flexcoders] Compiler bug?
I have a LineSeries with the following line of code: displayName=4 Week Average - {cf.format(theTotal[5])} -cf is a currencyFormat -theTotal is an array of numbers what is wrong with this statement? I keep getting Expecting rightbracket before .5and yet the following line variation work fine. Is it actually trying to subtract the 2? Its just a string of Average - $200.85 and the following line works and puts out 1/01/05 - $200.85. If I take out the 4 week average text, it works finebut if I put them together it breaks. Ideas? displayName={theDate[4]} - {cf.format(theTotal[5])} works fine 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 Application with several Forms
hi Roger, I'm interested in partitioning your application into multiple separately downloadable modules, can you elaborate it ?can we do it now in flex 2 beta 1 ?thanks.rita. On 2/17/06, Johannes Nel [EMAIL PROTECTED] wrote: one problem with viewstacks is that if the creationpolicy is set to auto it creates all the children in it. (i take it thats why you say large full viewstacks are bad). so when building your app that has a lot of forms, make certain that you control creationPolicy from the word go so you don't have to retrofit it.On 2/16/06, JesterXL [EMAIL PROTECTED] wrote: Large SWF's aren't bad.Large, full ViewStacks are.1. You can use createChild to load them on demand, or pre-compile to theirown SWF's and load via a Loader.2. I like ViewStacks.You can put a bunch of forms in them, and toggle their visibility.- Original Message -From: mvbaffa [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 16, 2006 4:34 PMSubject: [flexcoders] Flex Application with several FormsI am new to Flex and I want to convert a .NET/Delphi Application toFlex. This application has a lot of forms and if I include all the forms in one Flex Application I will have a huge swf.I have two questions:1. How can I construct an application in Flex with several forms andload them on demand 2. If I decide to put all forms in one application how can I show them, for instance when a menu item is selected. Maybe this is a verysimple problem, but I could not find a way to Show a form, like we doin Delphi and dismiss it from the screen when it is not needed. Thanks in advance--Flexcoders Mailing ListFAQ: 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.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 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] Compiler bug?
Yeah, this has to be a bug. The following works. [Bindable] var currentString:String = 4 Week Average; displayName={currentString} - {cf.format(theTotal[5])} but this doesnt displayName=4 Week Average - {cf.format(theTotal[5])} _ 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 17, 2006 8:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Compiler bug? I have a LineSeries with the following line of code: displayName=4 Week Average - {cf.format(theTotal[5])} -cf is a currencyFormat -theTotal is an array of numbers what is wrong with this statement? I keep getting Expecting rightbracket before .5and yet the following line variation work fine. Is it actually trying to subtract the 2? Its just a string of Average - $200.85 and the following line works and puts out 1/01/05 - $200.85. If I take out the 4 week average text, it works finebut if I put them together it breaks. Ideas? displayName={theDate[4]} - {cf.format(theTotal[5])} works fine 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] Re: Cairngorm2 reusable commands
My Experience is what Benoit outlined. Direct interaction between Commands and Views objects causes heavy coupling that limits the reuse off your view. Granted coupling is needed in a design, but this is where the ViewHelper comes in. Define your API/Features for your View in the mind set that its generic enough that any Command could call it then create that specific API method in ViewHelper. Renaun --- In flexcoders@yahoogroups.com, Benoit Hediard [EMAIL PROTECTED] wrote: I'll second this approach : 1. use as much as possible the Model Locator and bindings to avoid commandsviews dependencies, 2. when not sufficient or not elegant, use a viewhelper. Benoit Hediard (which was using too much viewhelpers at the begining ;) ) -- 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] Effect Listener
I have declared an effect actionscript: var e = new mx.effects.Resize(ReportContainer); e.addEventListener(resizeEndEffect,Delegate.create(eend)) e.widthFrom = 0; e.widthTo = 800; e.duration=500; e.playEffect(); I want to be able to set up a listener for this effect, namely for the END of the effect, then execute some logic. I tried the following: e.addEventListener(effectEnd,Delegate.create(this, doSomething)) but no luck please 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 Application with several Forms
Yes, although its painful, and requires some fairly complex AS code that requires deep knowledge of how Flash runs a SWF. I'm working on some code to post to Labs that will make it much easier, stay tuned! (Quick summary: Flash 8.5 SWFs have a root class that corresponds to the entire movie. In a normal MXML application, this is a subclass of SystemManager. In order to start code execution before the entire application is downloaded, we partition the application into multiple frames, where the first frame contains SystemManager and the preloader and download progress bar. It then watches the rest of the application stream in, and hands off control to what you think of as your application class once its ready. By implementing a different root class other than SystemManager, its possible to create other sorts of SWFs that aren't quite full-fledged applications... I call them modules. Mix in the externs/external-library-path/load-externs functionality, and you can build some code that expects the main app to provide services. Then, use loaders (read up on ApplicationDomain) to pull these module SWFs on demand. Ok, so that wasn't so quick.) -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rita Lee Sent: Friday, February 17, 2006 7:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Application with several Forms hi Roger, I'm interested in partitioning your application into multiple separately downloadable modules, can you elaborate it ? can we do it now in flex 2 beta 1 ? thanks. rita. On 2/17/06, Johannes Nel [EMAIL PROTECTED] wrote: one problem with viewstacks is that if the creationpolicy is set to auto it creates all the children in it. (i take it thats why you say large full viewstacks are bad). so when building your app that has a lot of forms, make certain that you control creationPolicy from the word go so you don't have to retrofit it. On 2/16/06, JesterXL [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Large SWF's aren't bad. Large, full ViewStacks are. 1. You can use createChild to load them on demand, or pre-compile to their own SWF's and load via a Loader. 2. I like ViewStacks. You can put a bunch of forms in them, and toggle their visibility. - Original Message - From: mvbaffa [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 16, 2006 4:34 PM Subject: [flexcoders] Flex Application with several Forms I am new to Flex and I want to convert a .NET/Delphi Application to Flex. This application has a lot of forms and if I include all the forms in one Flex Application I will have a huge swf. I have two questions: 1. How can I construct an application in Flex with several forms and load them on demand 2. If I decide to put all forms in one application how can I show them, for instance when a menu item is selected. Maybe this is a very simple problem, but I could not find a way to Show a form, like we do in Delphi and dismiss it from the screen when it is not needed. Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.t xt 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 http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links http://groups.yahoo.com/group/flexcoders/ -- 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
[flexcoders] Re: Effect Listener
Flex 1.5? Instead of e.addEventListener(), use: e.listener = this; and then include an onEffectEnd method: public function onEffectEnd(event: Object) : Void { mx.controls.Alert.show(Effect ended); } Doug --- In flexcoders@yahoogroups.com, gevgelija50 [EMAIL PROTECTED] wrote: I have declared an effect actionscript: var e = new mx.effects.Resize(ReportContainer); e.addEventListener(resizeEndEffect,Delegate.create(eend)) e.widthFrom = 0; e.widthTo = 800; e.duration=500; e.playEffect(); I want to be able to set up a listener for this effect, namely for the END of the effect, then execute some logic. I tried the following: e.addEventListener(effectEnd,Delegate.create(this, doSomething)) but no luck please 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/
[flexcoders] Re: Effect Listener
Doug, yes, this is in Flex 1.5. I used your example and it worked great! Thanks! --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Flex 1.5? Instead of e.addEventListener(), use: e.listener = this; and then include an onEffectEnd method: public function onEffectEnd(event: Object) : Void { mx.controls.Alert.show(Effect ended); } Doug --- In flexcoders@yahoogroups.com, gevgelija50 gevgelija50@ wrote: I have declared an effect actionscript: var e = new mx.effects.Resize(ReportContainer); e.addEventListener(resizeEndEffect,Delegate.create(eend)) e.widthFrom = 0; e.widthTo = 800; e.duration=500; e.playEffect(); I want to be able to set up a listener for this effect, namely for the END of the effect, then execute some logic. I tried the following: e.addEventListener(effectEnd,Delegate.create(this, doSomething)) but no luck please 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 Application with several Forms
thanks for the quick reply, but it would be better if there's an example, really expecting your article on the Lab.On 2/18/06, Roger Gonzalez [EMAIL PROTECTED] wrote:Yes, although its painful, and requires some fairly complex AS code that requires deep knowledge of how Flash runs a SWF.I'm working on somecode to post to Labs that will make it much easier, stay tuned!(Quick summary: Flash 8.5 SWFs have a root class that corresponds to the entire movie.In a normal MXML application, this is a subclass ofSystemManager.In order to start code execution before the entireapplication is downloaded, we partition the application into multiple frames, where the first frame contains SystemManager and the preloaderand download progress bar.It then watches the rest of the applicationstream in, and hands off control to what you think of as your application class once its ready.By implementing a different rootclass other than SystemManager, its possible to create other sorts ofSWFs that aren't quite full-fledged applications... I call themmodules.Mix in the externs/external-library-path/load-externs functionality, and you can build some code that expects the main app toprovide services.Then, use loaders (read up on ApplicationDomain) topull these module SWFs on demand.Ok, so that wasn't so quick.) -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 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: Effect Listener
Doug, Can I point the listener to a custom function instead? e.listener = myFunction; --- In flexcoders@yahoogroups.com, gevgelija50 [EMAIL PROTECTED] wrote: Doug, yes, this is in Flex 1.5. I used your example and it worked great! Thanks! --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Flex 1.5? Instead of e.addEventListener(), use: e.listener = this; and then include an onEffectEnd method: public function onEffectEnd(event: Object) : Void { mx.controls.Alert.show(Effect ended); } Doug --- In flexcoders@yahoogroups.com, gevgelija50 gevgelija50@ wrote: I have declared an effect actionscript: var e = new mx.effects.Resize(ReportContainer); e.addEventListener(resizeEndEffect,Delegate.create(eend)) e.widthFrom = 0; e.widthTo = 800; e.duration=500; e.playEffect(); I want to be able to set up a listener for this effect, namely for the END of the effect, then execute some logic. I tried the following: e.addEventListener(effectEnd,Delegate.create(this, doSomething)) but no luck please 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/
[flexcoders] Re: Effect Listener
Great! And technically, onEffectEnd(event) should be something more like onEffectEnd(effect: mx.effects.Effect), since this method gets passed the effect object, not an event. --- In flexcoders@yahoogroups.com, gevgelija50 [EMAIL PROTECTED] wrote: Doug, yes, this is in Flex 1.5. I used your example and it worked great! Thanks! --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Flex 1.5? Instead of e.addEventListener(), use: e.listener = this; and then include an onEffectEnd method: public function onEffectEnd(event: Object) : Void { mx.controls.Alert.show(Effect ended); } Doug --- In flexcoders@yahoogroups.com, gevgelija50 gevgelija50@ wrote: I have declared an effect actionscript: var e = new mx.effects.Resize(ReportContainer); e.addEventListener(resizeEndEffect,Delegate.create(eend)) e.widthFrom = 0; e.widthTo = 800; e.duration=500; e.playEffect(); I want to be able to set up a listener for this effect, namely for the END of the effect, then execute some logic. I tried the following: e.addEventListener(effectEnd,Delegate.create(this, doSomething)) but no luck please 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/
[flexcoders] flex-2 with FES + AMF PHP refference
hi, have anybody did good work on the combining Flex-2 beta (with or without FES-2) with AMFPHP through PHP code. hope here i will get the solution, thanx jignesh -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * 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: Effect Listener
No, the listener needs to be an object that receives the effectEnded notification (listener is a property of mx.effects.Effect). http://livedocs.macromedia.com/flex/15/asdocs_en/mx/effects/Effect.ht ml#listener What you can do is put some logic into onEffectEnd that looks at the effect and its properties in order to decide what action to take (like executing a custom function). And see my last post about the parameter not being an event object. Doug --- In flexcoders@yahoogroups.com, gevgelija50 [EMAIL PROTECTED] wrote: Doug, Can I point the listener to a custom function instead? e.listener = myFunction; --- In flexcoders@yahoogroups.com, gevgelija50 gevgelija50@ wrote: Doug, yes, this is in Flex 1.5. I used your example and it worked great! Thanks! --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Flex 1.5? Instead of e.addEventListener(), use: e.listener = this; and then include an onEffectEnd method: public function onEffectEnd(event: Object) : Void { mx.controls.Alert.show(Effect ended); } Doug --- In flexcoders@yahoogroups.com, gevgelija50 gevgelija50@ wrote: I have declared an effect actionscript: var e = new mx.effects.Resize(ReportContainer); e.addEventListener(resizeEndEffect,Delegate.create (eend)) e.widthFrom = 0; e.widthTo = 800; e.duration=500; e.playEffect(); I want to be able to set up a listener for this effect, namely for the END of the effect, then execute some logic. I tried the following: e.addEventListener(effectEnd,Delegate.create(this, doSomething)) but no luck please 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/
[flexcoders] Flex 2: popup window drag function
Does anyone know if there's an event that the PopupManager is listening for, that triggers the dragging functionality?I'm trying to create custom buttons in the title area of a TitleWindow, that trigger custom events. However, when I use a skin to place buttons on top of the TitleWindow, they're getting covered by whatever hidden button flex uses to trigger that drag functionality. Therefore, I'd like to create my own window, that triggers that secret event I'm looking for. If anyone has a better solution, please let me know!Here's my popup code:private var p1:DisplayObject; private function init() { p1 = DisplayObject(PopUpManager.createPopUp(this, comps.TestPanel, false));}here's the TestPanel code, where TitleSkin is just an HBox with buttons: ?xml version=1.0 encoding=utf-8?mx:TitleWindow xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* width=438height=300 layout=absolutebackgroundAlpha=1panelAlpha=1 marginTop=10 marginBottom=10 marginLeft=10 marginRight=10 mouseDown=click() mouseMove=drag()mouseUp=msUp() titleBackgroundSkin=TitleSkintitle=Default Title mx:Script ![CDATA[import mx.controls.Alert;public var msDown:Boolean;private function click() { msDown = true; dispatchEvent(new Event('click'));}private function drag() { //Alert.show(click()); if(msDown) { this.alpha = .2; }}public function msUp() { msDown = false; this.alpha = 1;} ]] /mx:Scriptmx:ControlBar width=100% mx:Label text=Quantity/ mx:NumericStepper id=myNS/ !-- Use Spacer to push Button control to the right. -- mx:Spacer width=100%/ mx:Button label=Add to Cart / /mx:ControlBar /mx:TitleWindow: : ) 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.
[flexcoders] Re: problem with cell renderer in ComboBox
Y'know I just did a blind copypaste from some other guy in this group. But yeah, I don't see no getDropdown() method in the api docs. Just the dropdown property. I did try your setting it to the property and it still didn't work :( thanx, george --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Hi, I'm not familiar with getDropdown(). Is getDropdown() a valid method of your combobox? If not, try event.target.dropdown. instead of event.target.getDropdown().. Doug --- In flexcoders@yahoogroups.com, george_lui george_lui@ wrote: Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.FullNameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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 cell renderer in ComboBox
good call, but it didn't work. Really weird. Do you think I still need the labelField attribute? TIA, George --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: What if you take out the quotes around the renderer? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of george_lui Sent: Thursday, February 16, 2006 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem with cell renderer in ComboBox Hi, I had a cellrenderer that was originally used in datagrid cell. I've since replaced the datagrid with a comboBox. I'm trying to reuse the same cellrenderer in the combo using the code below. mx:ComboBox id=employeeComboBox creationComplete= event.target.getDropdown().cellRenderer='com.sf.sfv4.view.sharkfin.Full NameRenderer'; event.target.getDropdown().variableRowHeight=true rowCount=10 mx:dataProvider { ModelLocator.employees } /mx:dataProvider /mx:ComboBox The FullNameRenderer cellrenderer I have just takes the first and last name of a user vo and concatenates it. However this isn't working for the combobox. I get and set the cellrenderer of the combobox's dropdown property as stated in this group by another member, but it doesn't work. Instead I get the user vo object displayed. I'm confused, I'm using the same dataProvider and cellrenderer in the combobox as I did in the datagrid. I think there's a difference between the two widgets, but I just don't know what it is. Please advise... TIA, George -- 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] jrun hot deployment of web-inf/classes ??
Hi all, Is there any way to make jrun autodetect changes to the classes in the web-inf/classes dir? I use ant in eclipse to copy them after an autobuild... and then to restart the server. but this takes way too long. any suggestions? perhaps a way to clean things up and speed up the startup process. BTW, I'm using FES2. Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] jrun hot deployment of web-inf/classes ??
AFAIK, hot deploy is for JARs only...be nice if someone could correct me :) DK On 2/17/06, Aldo Bucchi [EMAIL PROTECTED] wrote: Hi all, Is there any way to make jrun autodetect changes to the classes in the web-inf/classes dir? I use ant in eclipse to copy them after an autobuild... and then to restart the server. but this takes way too long. any suggestions? perhaps a way to clean things up and speed up the startup process. BTW, I'm using FES2. Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this 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 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]Combobox feature?
Yes that happens to me. I totally wrote that off to be a bug. Personally, I dont consider that much of a feature Since when do selections and de-selections change the visualization of the label to make it invisible? Shouldnt that be best left to the work of a renderer? Unless someone can explain the immediate benefits to me and make me see the light, I still consider it more of a bug than a feature. De-selection should be visualized, but surely not by making it impossible to read or identify what the item is. My two cents. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stanislav Zayarsky Sent: Friday, February 17, 2006 2:31 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]Combobox feature? Stacey, I mean empty that label dissapears. I haven't checked if selectedIndex returns -1. Ok, thanks for the answer Deepa! On 2/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do you mean empty as in the label disappears? Or empty as in the selectedIndex returns -1? This is a feature. The List-based components, of which ComboBox is one, allow de-selection by Ctrl+click on a selected item. There are a few ways to workaround this (subclass the component, perhaps). One that comes to mind is to capture keyboard event and cross-track that with the selectedItem to decipher when Ctrl+click on the currently selectedItem has occurred. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stanislav Zayarsky Sent: Thursday, February 16, 2006 7:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]Combobox feature? Hello All, Try next: 1. Create combobox with some data inside 2. Run app 3. Choose any item inside in combobox 4. Open combobox again and CTRL+click on the same item. Result: Empty selected value in combobox. Question: Is this feature or the bug? If feature, how I can remove it? Best regards Stanislav -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS nbsp;Visit your group flexcoders on the web.nbsp; nbsp;To unsubscribe from this group, send an email to:nbsp;[EMAIL PROTECTED]nbsp; nbsp;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 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 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] Dynamically creating an Accordian
Hi,you can use createchild function to add accordian dynamicallyashish grover On Fri, Feb 17, 2006 at 5:48 AM, Johannes Nel wrote:i suspect you will find that example has moved to www.ifbin.com. On 2/16/06, augie [EMAIL PROTECTED] wrote: Hello, Does anyone have sample code they can post or send me to dynamically create an acccordion based on the data within an XML document like this link below demonstrates? http://www.powersdk.com/ted/2005/05/flex-example-accordion-repeater.phpUnfortunately they have taken down their sample code from their website, and it is exactly what I'm looking for. Thanks in advance for all your help, -Augie Marcello III -- Flexcoders Mailing List FAQ: 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.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED 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] • Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . ___-- Sent using Laszlo Mail. Try it yourself.http://www.laszlomail.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] Dynamically generating tabs:: using the createTab() Method
ok, i didn't worked on flex2, createchild is available in 1.5-ashish On Fri, Feb 17, 2006 at 6:44 AM, Gordon Smith wrote:createChild() was from Flex 1.X. In Flex 2.0 you would do var vbox:VBox = new VBox(); vbox.label = ...; tabs.addChild(vbox); - Gordon ___From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] On Behalf Of Daniel Nelson Sent: Thursday, February 16, 2006 2:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Dynamically generating tabs:: using the createTab() Method ashish, I can't seem to find createChild in the flex api? Where are you getting this method from? I only see addChild(). -Dan On 2/15/06, ashish [EMAIL PROTECTED] wrote: function addtab(){ tabs.createChild(mx.containers.VBox , undefined, {label:'newBtn',id:'secondOne', mouseDown:'doSomething()'}); //tabs is tabnavigator name and this addtab button has to call on some event } regards, Ashish Grover On Wed, Feb 15, 2006 at 11:33 PM, augie wrote: Hello, Does anyone have an example of Dynamically generating tabs and its content in a Tab Navigator say by clicking a button for example. Thanks in advance for all your help, -Augie Marcello III -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent using Laszlo Mail. Try it yourself. http://www.laszlomail.com http://www.laszlomail.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msamp;k=Web+site+design+developmentamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msamp;k=Computer+software+developmentamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msamp;k=Software+design+and+developmentamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msamp;k=Macromedia+flexamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msamp;k=Software+development+best+practiceamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.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] • 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.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED 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
[flexcoders] Plz help in this error (Branch between 6080 and 38887 around line 0 exceeds 32K span)???????
Hello Sir These type of error generated when mxml file run in internet explorer. Error Branch between 6080 and 38887 around line 0 exceeds 32K span.?? 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] Dynamically generating tabs:: using the createTab() Method
Hi,I have tried it its available, you can createchild of any container in flex.-ashish grover On Fri, Feb 17, 2006 at 4:06 AM, Daniel Nelson wrote:ashish, I can't seem to find createChild in the flex api? Where are you getting this method from? I only see addChild(). -Dan On 2/15/06, ashish [EMAIL PROTECTED] wrote: function addtab(){ tabs.createChild(mx.containers.VBox , undefined, {label:'newBtn',id:'secondOne', mouseDown:'doSomething()'}); //tabs is tabnavigator name and this addtab button has to call on some event } regards, Ashish Grover On Wed, Feb 15, 2006 at 11:33 PM, augie wrote: Hello, Does anyone have an example of Dynamically generating tabs and its content in a Tab Navigator say by clicking a button for example. Thanks in advance for all your help, -Augie Marcello III -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent using Laszlo Mail. Try it yourself. http://www.laszlomail.com http://www.laszlomail.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msamp;k=Web+site+design+developmentamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msamp;k=Computer+software+developmentamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msamp;k=Software+design+and+developmentamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msamp;k=Macromedia+flexamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msamp;k=Software+development+best+practiceamp;w1=Web+site+design+developmentamp;w2=Computer+software+developmentamp;w3=Software+design+and+developmentamp;w4=Macromedia+flexamp;w5=Software+development+best+practiceamp;c=5amp;s=166amp;.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] • 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.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED 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] •
[flexcoders] Flex Enterprise Services - Adapters
Are there some tutorials related to hibernate adapter and creation of new data adapters? -- 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: Response not resolvable with Flex 2.0 and ASP.NET 2.0 Web Service
--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Can you send us the WSDL please? I don't have .NET 2.0 set up. Matt Here is my WSDL, too. Thanks for checking this, Matt. -Tony = ?xml version=1.0 encoding=utf-8 ? - wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:tns=http://test.iu.edu/; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; targetNamespace=http://test.iu.edu/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; - wsdl:types - s:schema elementFormDefault=qualified targetNamespace=http://test.iu.edu/; - s:element name=HelloWorld s:complexType / /s:element - s:element name=HelloWorldResponse - s:complexType - s:sequence s:element minOccurs=0 maxOccurs=1 name=HelloWorldResult type=s:string / /s:sequence /s:complexType /s:element - s:element name=SendText - s:complexType - s:sequence s:element minOccurs=0 maxOccurs=1 name=strText type=s:string / /s:sequence /s:complexType /s:element - s:element name=SendTextResponse - s:complexType - s:sequence s:element minOccurs=0 maxOccurs=1 name=SendTextResult type=s:string / /s:sequence /s:complexType /s:element - s:element name=GetAuthors s:complexType / /s:element - s:element name=GetAuthorsResponse - s:complexType - s:sequence - s:element minOccurs=0 maxOccurs=1 name=GetAuthorsResult - s:complexType - s:sequence s:element ref=s:schema / s:any / /s:sequence /s:complexType /s:element /s:sequence /s:complexType /s:element /s:schema /wsdl:types - wsdl:message name=HelloWorldSoapIn wsdl:part name=parameters element=tns:HelloWorld / /wsdl:message - wsdl:message name=HelloWorldSoapOut wsdl:part name=parameters element=tns:HelloWorldResponse / /wsdl:message - wsdl:message name=SendTextSoapIn wsdl:part name=parameters element=tns:SendText / /wsdl:message - wsdl:message name=SendTextSoapOut wsdl:part name=parameters element=tns:SendTextResponse / /wsdl:message - wsdl:message name=GetAuthorsSoapIn wsdl:part name=parameters element=tns:GetAuthors / /wsdl:message - wsdl:message name=GetAuthorsSoapOut wsdl:part name=parameters element=tns:GetAuthorsResponse / /wsdl:message - wsdl:portType name=WebService1Soap - wsdl:operation name=HelloWorld wsdl:input message=tns:HelloWorldSoapIn / wsdl:output message=tns:HelloWorldSoapOut / /wsdl:operation - wsdl:operation name=SendText wsdl:input message=tns:SendTextSoapIn / wsdl:output message=tns:SendTextSoapOut / /wsdl:operation - wsdl:operation name=GetAuthors wsdl:input message=tns:GetAuthorsSoapIn / wsdl:output message=tns:GetAuthorsSoapOut / /wsdl:operation /wsdl:portType - wsdl:binding name=WebService1Soap type=tns:WebService1Soap soap:binding transport=http://schemas.xmlsoap.org/soap/http; / - wsdl:operation name=HelloWorld soap:operation soapAction=http://test.iu.edu/HelloWorld; style=document / - wsdl:input soap:body use=literal / /wsdl:input - wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation - wsdl:operation name=SendText soap:operation soapAction=http://test.iu.edu/SendText; style=document / - wsdl:input soap:body use=literal / /wsdl:input - wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation - wsdl:operation name=GetAuthors soap:operation soapAction=http://test.iu.edu/GetAuthors; style=document / - wsdl:input soap:body use=literal / /wsdl:input - wsdl:output soap:body use=literal / /wsdl:output /wsdl:operation /wsdl:binding - wsdl:binding name=WebService1Soap12 type=tns:WebService1Soap soap12:binding transport=http://schemas.xmlsoap.org/soap/http; / - wsdl:operation name=HelloWorld soap12:operation soapAction=http://test.iu.edu/HelloWorld; style=document / - wsdl:input soap12:body use=literal / /wsdl:input - wsdl:output soap12:body use=literal / /wsdl:output /wsdl:operation - wsdl:operation name=SendText soap12:operation soapAction=http://test.iu.edu/SendText; style=document / - wsdl:input soap12:body use=literal / /wsdl:input - wsdl:output soap12:body use=literal / /wsdl:output /wsdl:operation - wsdl:operation name=GetAuthors soap12:operation soapAction=http://test.iu.edu/GetAuthors; style=document / - wsdl:input soap12:body use=literal / /wsdl:input - wsdl:output soap12:body use=literal / /wsdl:output /wsdl:operation /wsdl:binding - wsdl:service name=WebService1 - wsdl:port name=WebService1Soap binding=tns:WebService1Soap soap:address location=http://localhost/flextest1/webservice1.asmx; / /wsdl:port - wsdl:port name=WebService1Soap12 binding=tns:WebService1Soap12 soap12:address location=http://localhost/flextest1/webservice1.asmx; /
[flexcoders] Re: LINK PROBLEM
Hi Deepa, well, i tried in several ways, what i am trying to achieve is that the link should be sucked from the [EMAIL PROTECTED] istruction, logically should be: mx:Link [EMAIL PROTECTED] click=navigateToURL(new URLRequest([EMAIL PROTECTED]))/ but it doesnt work... any suggestion? Best Regards, Max --- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED] wrote: Are you sure you're setting the label property on Link? mx:Link [EMAIL PROTECTED] click=navigateToURL(new URLRequest(...))/ -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of motareal Sent: Thursday, February 16, 2006 5:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LINK PROBLEM Hi, i have a flex application, which is basically composed by a divided box, on the left theres a tree navigation created by an xml file thru an asp file, on the right there are the results that appears if you click on the tree sections. This results are into a database, and are called through the function SelectedNode.@ As you can see from the code attached down here, results are divided in a serie of Label and 2 TextInput, this last two, should contain a link, that is also took from the database file, but it doesnt work, i tried several way, and i dont know how to do it, some of you have any idea please? It should be linked: [EMAIL PROTECTED] and: [EMAIL PROTECTED] I appreciated... Max ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; creationComplete=srv.send() width=580 horizontalAlign=center height=379 borderStyle=solid backgroundColor=#527FC1 mx:Script ![CDATA[ [Bindable] public var selectedNode:Object; [Bindable] public var XLC:XML; public function initList(event:Event) { XLC = event.target.result; } public function treeChanged(event:Event) { selectedNode=Tree(event.target).selectedNode; } ]] /mx:Script mx:HTTPService id=srv url=../bin/tree.asp resultFormat=e4x result=initList(event)/ mx:HDividedBox width=100% height=320 mx:Tree id=myTree width=266 height=320 labelField=@label rootVisible=false dataProvider={XLC} change=treeChanged (event)/ mx:VBox width=234 textAlign=center height=320 verticalAlign=middle mx:Label text=[EMAIL PROTECTED] fontFamily=Verdana fontSize=14 fontWeight=bold textAlign=center width=250 color=#ff/ mx:Label text=[EMAIL PROTECTED] textAlign=center width=250 color=#ff fontWeight=bold fontSize=11/ mx:Label text=[EMAIL PROTECTED] textAlign=center width=250 color=#ff fontWeight=bold fontSize=11/ mx:Label text=[EMAIL PROTECTED] width=250 fontWeight=bold fontSize=14 color=#00/ mx:Label text=[EMAIL PROTECTED] width=250 fontWeight=bold color=#ff fontSize=12/ mx:Label text=[EMAIL PROTECTED] width=250 fontWeight=bold color=#ff fontSize=12/ mx:TextInput text=[EMAIL PROTECTED] editable=true width=250 fontWeight=bold backgroundColor=#527FC1 color=#ff fontSize=11/ mx:TextInput text=[EMAIL PROTECTED] editable=true width=250 fontWeight=bold backgroundColor=#527FC1 color=#ff fontSize=11/ /mx:VBox /mx:HDividedBox /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 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 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] Cairngorm2 reusable commands
u can extends the event,add a source attribute to iteg:public class SourceEvent extends CairngormEvent{ public SourceEvent(type:String,source:Object){ super(type);this.source=source ; }public var source:Object;}then inner the viewHelper: public function getResults():void { var event:SourceEvent=new SourceEvent(askForResult,this.view); dispatchEvent(event); } last,the command is knowed the events.source now! event.source.setResult... 2006/2/17, Alberto Albericio Salvador [EMAIL PROTECTED]: Hi all, In Cairngorm commands, I always define statically where I want some results to be sent (normally a custom function in component that extends ViewHelper). This updates my view and works fine. But... How can I make that command Class to send some results to whatever asked for them (who dispatched the event that threw that command)? Eg: foobar1.mxml and foobar2.mxml .. public function setResults(someResults):void { //update my controls } public function getResults():void { dispatchEvent(askForResults); } foobar1 and foobar2 dispatch the same event and the command needs to know where to send back the results and run setResults on the corresponding caller. How can I achieve this? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- 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: Column Chart coloring
Is this the best approach? I have been doing something similiar with the WedgeSkin recently for the Pie Chart. The problem I found with creating a programmatic skin was that you couldn't subclass the existing skin and change the fill. As such I ended up copying the skin and therefore all the logic used to draw the chart item (not very OO). I found a neater solution was to subclass the series (PieSeries in my case) and override updateDisplayList e.g. override protected function updateDisplayList( unscaledWidth : Number, unscaledHeight : Number ) : void { super.updateDisplayList( unscaledWidth, unscaledHeight ); // Set the fill colour for all items in the series. var data : Object = transitionRenderData; if ( transitionRenderData == null ) { data = renderData; } setFills( data ); } --- In flexcoders@yahoogroups.com, Jonathan Miranda [EMAIL PROTECTED] wrote: Ely, I can't thank you enough :-) I was about to just give up for today and you helped me get it working :-) For those at home wondering the important code now (there's no rectangle Ely :-)): override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var g:Graphics = graphics; g.clear(); g.beginFill(colors[(_chartItem == null)? 0:_chartItem.index]); g.drawRect(0, 0, unscaledWidth, unscaledHeight); g.endFill(); } And for your viewing pleasure...1 Dashboard down stat! ( a lot like the demo but hey, it's customized for my client's needs ) _ 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 Ely Greenfield Sent: Thursday, February 16, 2006 2:02 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Column Chart coloring A. You using Flex 2! Then I have a very, very different answer for you. Flex 2 has moved to a model more like datagrid's item renderers. In flex 2, you can specify an itemSkin class for a column series, and it will create one for every column on the chart. You want to define a custom skin class, and assign it to the series as so: mx:ColumnSeries itemSkin=CycleSkin / item skins are instantiated for each item in the data provider, and each one is passed an instance of mx.charts.ChartItem. The chart item knows the item from the dataProvider it represents, and what its index was in the dataProvider. Here's a sample skin that should cycle colors: import mx.charts.series.items.ColumnSeriesItem; import mx.skins.ProgrammaticSkin; import mx.core.IDataObject; public class CycleSkin extends mx.skins.ProgrammaticSkin implements IDataObject { private var colors:Array = [0xFF,0x00FF00,0xFF]; public function CycleSkin() { } private var _chartItem:ColumnSeriesItem; public function get data():Object {return _chartItem;} public function set data(value:Object):void { _chartItem = value as ColumnSeriesItem; invalidateDisplayList(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var g:Graphics = graphics; g.clear(); g.moveTo(rc.left,rc.top); g.beginFill(colors[(_chartItem == null)? 0:_chartItem.index]); g.lineTo(rc.right,rc.top); g.lineTo(rc.right,rc.bottom); g.lineTo(rc.left,rc.bottom); g.lineTo(rc.left,rc.top); g.endFill(); } } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Thursday, February 16, 2006 10:54 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Column Chart coloring So close, I got it all to compile but the following. I can't figure out how to do these functions on target because it's a IFlexDisplayObject, and all those functions are from the graphics class and take an Object. How can I use these functions on the target if it's not an Object? Extend it somehow or create an object? public function draw(target:IFlexDisplayObject, rc:Rectangle):void { target.beginFill( fills[count] ); target.moveTo(rc.left,rc.top); target.lineTo(rc.right,rc.top);
[flexcoders] Opening a Word Document in a Flex Container
I am not sure if this is even feasible. Is there a way to open Microsoft office documents like Word and Excel in a Flex Panel ? -- 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] Is EventType gone?
The latest beta of Flex 2.0 seems to no longer know EventType.CLOSE (and others). This line addEventListener(EventType.CLOSE, onClose); create an Access of undefined property 'EventType' error even though import flash.events.*; has been included into the class package. Any idea? -- 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] String cann't create dynamic Class without instance!
hi: As3 can not load class dynamic your code work ok because you create a instance,that make the compile the class into swf,so you can loadClass(someClass).2006/2/17, flexhtoo [EMAIL PROTECTED]: Why flash.util.getClassByName(param:String):Class This method counld not load when this class has no instance. But It has pre-creation instance, it can load. // Sample codes public function load(param:String):Object { var ClassRef:Class = getClassByName(param); var instance:Object = ClassRef(); return instance; } var myControl:MyControl = mytester.load(com.test.MyControl); How to fix it or has another method for dynamic class creation? -- 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] Deliver compiled actionscript
The flex application that we are delivering to a third party contains some propriatary actionscript. Is there a way to compile the actionscript or convert it to a format that can not be reverse engineered? 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 * 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] Is EventType gone?
its been moved on to the Event classOn 2/17/06, codability [EMAIL PROTECTED] wrote: The latest beta of Flex 2.0 seems to no longer know EventType.CLOSE(and others). This lineaddEventListener(EventType.CLOSE, onClose);create anAccess of undefined property 'EventType'error even though import flash.events.*; has been included into theclass package.Any idea?--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] mac debug installer
Looks like the links for the Mac Debug installer were missing. It's here: http://download.macromedia.com/pub/labs/flex2/Player8.5Dbg_A3_OSX_01-30. dmg Some links have been updated within the Wiki for Flash Player and on the FlexBuilder download page. Matt -- 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] mac debug installer
thanks for this... makes working with flex 2 on a mac a whole lot easier :)On 17 Feb 2006, at 20:21, Matt Chotin wrote: Looks like the links for the Mac Debug installer were missing. It's here: http://download.macromedia.com/pub/labs/flex2/Player8.5Dbg_A3_OSX_01-30. dmg Some links have been updated within the Wiki for Flash Player and on the FlexBuilder download page. Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED 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.
RE: [flexcoders] Deliver compiled actionscript
The flex application that we are delivering to a third party contains some propriatary actionscript. Is there a way to compile the actionscript or convert it to a format that can not be reverse engineered? Thanks. Which version of Flex? You could do some mild obfuscation in 1.5, but not easily. There are no tools out yet for reverse engineering Flash 8.5 applications. Its a rather more difficult process. Still possible, though. You could fairly easily encrypt your proprietary executable code in a SWF, then load it on the client as an opaque blob of binary data, decrypt it on the client, then call Loader.loadBytes to run it. Since the decryption code would be in the client in the clear, you'd need to send the key over SSL or something. They could still intercept things, but it would be much much more difficult. Sadly, you've got a bunch of code to write to do this, we don't supply a code encryptor. The bits are in the client's hands, and they need some way of decrypting them to run the bits, so fundamentally, no matter how many levels of encoding you add, you're just looking at obfuscation. -rg -- 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: flex-2 with FES + AMF PHP refference
You have to use the underlying NetConnection code to get it to work. You will not have all the features of the RemoteObject component. Here is my blog about it: http://renaun.com/blog/?p=8 Some more information has been posted on the AMFPHP list. Renaun --- In flexcoders@yahoogroups.com, Jignesh M. Dodiya [EMAIL PROTECTED] wrote: hi, have anybody did good work on the combining Flex-2 beta (with or without FES-2) with AMFPHP through PHP code. hope here i will get the solution, thanx jignesh -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * 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: Dynamically creating an Accordian
The content for each child of the accordion I'll leave up to you, but basically it would go something like this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; width=100% height=100% mx:Model id=myXml source=myData.xml/ mx:Accordion height=300 width=200 mx:Repeater id=rp dataProvider={myXml.header} mx:Canvas height=100% width=100% label={rp.currentItem.label}/ /mx:Repeater /mx:Accordion /mx:Application myData.xml: --- xml header label=Header 1 / header label=Header 2 / header label=Header 3 / header label=Header 4 / /xml --- In flexcoders@yahoogroups.com, augie [EMAIL PROTECTED] wrote: Hello, Does anyone have sample code they can post or send me to dynamically create an acccordion based on the data within an XML document like this link below demonstrates? http://www.powersdk.com/ted/2005/05/flex-example-accordion- repeater.php Unfortunately they have taken down their sample code from their website, and it is exactly what I'm looking for. Thanks in advance for all your help, -Augie Marcello III -- 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] calling a cfc from flex
I am new to flex and working on calling a cfc that has a simple query in it. I want my query to populate a datgrid with all pertinant information. I am having a hard time converting from an array to a string to populate the DG. Any help in what I am missing would be great, or if there is an easier way to call a query and return data would be great! getPersonnel.cfc cfcomponent displayname=getPersonnel cffunction name=getPersonnel access=remote returntype=string cfset var arrayResult = ArrayNew(1)/ cfquery name=getAllPersonnel datasource=spotDB SELECT * FROM dbo.ItemsInvolvedLOV /cfquery cfoutput query=getAllPersonnel cfset structPersonnel = StructNew()/ cfset structPersonnel[ItemId] = #getAllPersonnel.ItemId# cfset structPersonnel[ItemType] = #getAllPersonnel.ItemType# cfset structPersonnel[ItemName] = #getAllPersonnel.ItemName# cfset arrayAppend(arrayResult,structPersonnel)/ /cfoutput !--- Return Array to Flex--- cfreturn getAllPersonnel /cffunction /cfcomponent personnelNeeded.MXML ActionScript: private function doResult(result:Array):Void { var personnelObject:Object = new Object(); object var personnelResult:Array = new Array(); for(var i=0; i result.length; i++){ personnelObject = result[i]; personnelResult.push(personnelObject); } dgPersonnelNeeded.dataProvider = personnelResult; } Remote Object mx:RemoteObject id=ro endpoint=http://10.95.20.39:8500/flashservices/gateway; source=cfdocs.components.getPersonnel fault=mx.controls.Alert.show (event.fault.faultstring, 'Error') showBusyCursor=true mx:method name=getPersonnel result=doResult(event.result)/ /mx:RemoteObject Datagrid mx:DataGrid id=dgPersonnelNeeded headerColor=#00CC33 height=300 textAlign=left width=100% wordWrap=true editable=true mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=name width=225 / mx:DataGridColumn headerText=Title columnName=title width=650/ mx:DataGridColumn headerText=Date columnName=date width=100 / /mx:Array /mx:columns /mx:DataGrid Click event button mx:Button label=Get Records textAlign=center width=100 click={ro.getPersonnel()}/ -- 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] calling a cfc from flex
Welcome first of all, I don't know if you are aware that you can return directly a query from the CFC. In flex side it will be available as event.result._items and you are able to bind it directly as an Array. In your sample you could say in cfc: cfreturn getAllPersonnel in your mxml file you could have some public var dp:Array; private function doResult(result:Array):Void { dp = result; } in the Datagrid set the property dataProvider={dp} and just replace your remote object result to result=doResult(event.result._items) I think, if I'm not mistaken, your datagridcolumns should have columnName in upper case when dealing with CFC structures. Regards, João Fernandes -Original Message- From: flexcoders@yahoogroups.com on behalf of rgwilson26 Sent: Fri 17-Feb-06 6:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] calling a cfc from flex I am new to flex and working on calling a cfc that has a simple query in it. I want my query to populate a datgrid with all pertinant information. I am having a hard time converting from an array to a string to populate the DG. Any help in what I am missing would be great, or if there is an easier way to call a query and return data would be great! getPersonnel.cfc cfcomponent displayname=getPersonnel cffunction name=getPersonnel access=remote returntype=string cfset var arrayResult = ArrayNew(1)/ cfquery name=getAllPersonnel datasource=spotDB SELECT * FROM dbo.ItemsInvolvedLOV /cfquery cfoutput query=getAllPersonnel cfset structPersonnel = StructNew()/ cfset structPersonnel[ItemId] = #getAllPersonnel.ItemId# cfset structPersonnel[ItemType] = #getAllPersonnel.ItemType# cfset structPersonnel[ItemName] = #getAllPersonnel.ItemName# cfset arrayAppend(arrayResult,structPersonnel)/ /cfoutput !--- Return Array to Flex--- cfreturn getAllPersonnel /cffunction /cfcomponent personnelNeeded.MXML ActionScript: private function doResult(result:Array):Void { var personnelObject:Object = new Object(); object var personnelResult:Array = new Array(); for(var i=0; i result.length; i++){ personnelObject = result[i]; personnelResult.push(personnelObject); } dgPersonnelNeeded.dataProvider = personnelResult; } Remote Object mx:RemoteObject id=ro endpoint=http://10.95.20.39:8500/flashservices/gateway; source=cfdocs.components.getPersonnel fault=mx.controls.Alert.show (event.fault.faultstring, 'Error') showBusyCursor=true mx:method name=getPersonnel result=doResult(event.result)/ /mx:RemoteObject Datagrid mx:DataGrid id=dgPersonnelNeeded headerColor=#00CC33 height=300 textAlign=left width=100% wordWrap=true editable=true mx:columns mx:Array mx:DataGridColumn headerText=Name columnName=name width=225 / mx:DataGridColumn headerText=Title columnName=title width=650/ mx:DataGridColumn headerText=Date columnName=date width=100 / /mx:Array /mx:columns /mx:DataGrid Click event button mx:Button label=Get Records textAlign=center width=100 click={ro.getPersonnel()}/ -- 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/ winmail.dat
Re: [flexcoders] Evaluation period for Flex 2 Developer Beta 1 is wrongly ended at multiple our machines
Andriy Panas wrote: Hello flexcoders, Yesterday the evaluation period for Flex 2 Developer Beta 1 is wrongly had elapsed yesterday at 4 different our PCs. Is this a deliberate end of the evaluation period for Flex 2 Developer Beta 1 or this was caused by an error, probably connected with the end of evaluation period of Flex 2 Public Alpha release? i had similar problem a couple of days ago. to resolve it I uninstalled all the alpha1 files and re-installed beta 1. all is working fine now. -- 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] Having Column chart problem
Hey guys, I'm having a problem I think may be a bug.. It has to do with the category axis on a column chart when using XMLListCollection as a dataProvider. Basically what I see is that if I use an actual data set (one of the data providers from a series) as the category Axis dataProvider, the labels show correctly. However if I pass an XMLList containing a list of Simple elements containing the strings (or even just an array of strings) for the category axis dataProvider, the labels don't show at all. The documentation for CategoryAxis says: The dataProvider property can accept either an array of strings or an array of records (objects) with a property specifying the category name. If you specify a categoryField property, the CategoryAxis assumes the dataProvider is an array of Objects. If cateogryField is null, the CategoryAxis assumes dataProvider is an array of Strings. It seems like this should work. I cannot seem to make it work. Below you can find a sample application and populateChart function which demonstrates the problem. I have commented out the working two lines, and the other two lines which exibit the problem are below it. Thanks in advance, Thunder __ ?xml version=1.0 encoding=utf-8? mx:Application width=100% height=100% xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns:root=* mx:ColumnChart id=mainChart width=403 height=232 / mx:Button label=Fetch click=populateStaticChart()/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.collections.XMLListCollection; import mx.charts.series.ColumnSeries; import mx.charts.CategoryAxis; public function populateStaticChart():void { var oData:XMLList = null; var oXML:XML = data row PlatformConvergence/Platform Year2005/Year PageConvergenceMSMUnits3.654/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2006/Year PageConvergenceMSMUnits4.3/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2007/Year PageConvergenceMSMUnits4.972/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2008/Year PageConvergenceMSMUnits16.117/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2009/Year PageConvergenceMSMUnits27.248/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2010/Year PageConvergenceMSMUnits29.56/PageConvergenceMSMUnits /row /data; oData = oXML.row; var oXMLCol:XMLListCollection = new XMLListCollection(oData); var aYears:Array = [ 2005,2006,2007,2008,2009,2010 ]; // add the category axis to the chart var hAxis:CategoryAxis = new CategoryAxis(); // * this works * //hAxis.categoryField= Year ; //hAxis.dataProvider = oXMLCol; // * this doesn't * hAxis.categoryField= null ; hAxis.dataProvider = aYears; hAxis.name = Year ; mainChart.horizontalAxis= hAxis; // add a series to the chart and try to use the XMLListCollection as the DP var sa:Array = mainChart.series var cSeries:ColumnSeries = new ColumnSeries(); cSeries.yField= PageConvergenceMSMUnits ; cSeries.name = Convergence; cSeries.dataProvider = oXMLCol; // cSeries.stackField = PageConvergenceMSMUnits; sa.push( cSeries ); mainChart.series = sa; } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * 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] Having Column chart problem
Thunder -- try setting categoryField to . (If that fixes it, then it's definintely a bug). Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Friday, February 17, 2006 3:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Having Column chart problem Hey guys, I'm having a problem I think may be a bug.. It has to do with the category axis on a column chart when using XMLListCollection as a dataProvider. Basically what I see is that if I use an actual data set (one of the data providers from a series) as the category Axis dataProvider, the labels show correctly. However if I pass an XMLList containing a list of Simple elements containing the strings (or even just an array of strings) for the category axis dataProvider, the labels don't show at all. The documentation for CategoryAxis says: The dataProvider property can accept either an array of strings or an array of records (objects) with a property specifying the category name. If you specify a categoryField property, the CategoryAxis assumes the dataProvider is an array of Objects. If cateogryField is null, the CategoryAxis assumes dataProvider is an array of Strings. It seems like this should work. I cannot seem to make it work. Below you can find a sample application and populateChart function which demonstrates the problem. I have commented out the working two lines, and the other two lines which exibit the problem are below it. Thanks in advance, Thunder __ ?xml version=1.0 encoding=utf-8? mx:Application width=100% height=100% xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns:root=* mx:ColumnChart id=mainChart width=403 height=232 / mx:Button label=Fetch click=populateStaticChart()/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.collections.XMLListCollection; import mx.charts.series.ColumnSeries; import mx.charts.CategoryAxis; public function populateStaticChart():void { var oData:XMLList = null; var oXML:XML = data row PlatformConvergence/Platform Year2005/Year PageConvergenceMSMUnits3.654/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2006/Year PageConvergenceMSMUnits4.3/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2007/Year PageConvergenceMSMUnits4.972/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2008/Year PageConvergenceMSMUnits16.117/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2009/Year PageConvergenceMSMUnits27.248/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2010/Year PageConvergenceMSMUnits29.56/PageConvergenceMSMUnits /row /data; oData = oXML.row; var oXMLCol:XMLListCollection = new XMLListCollection(oData); var aYears:Array = [ 2005,2006,2007,2008,2009,2010 ]; // add the category axis to the chart var hAxis:CategoryAxis = new CategoryAxis(); // * this works * //hAxis.categoryField= Year ; //hAxis.dataProvider = oXMLCol; // * this doesn't * hAxis.categoryField= null ; hAxis.dataProvider = aYears; hAxis.name = Year ; mainChart.horizontalAxis= hAxis; // add a series to the chart and try to use the XMLListCollection as the DP var sa:Array = mainChart.series var cSeries:ColumnSeries = new ColumnSeries(); cSeries.yField= PageConvergenceMSMUnits ; cSeries.name = Convergence; cSeries.dataProvider = oXMLCol; // cSeries.stackField = PageConvergenceMSMUnits; sa.push( cSeries ); mainChart.series = sa; } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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: multiple lines in a datagrid
Specify a specific width for your DataGridColumn(s), and then in your DataGrid add variableRowHeight=true. That should do it. Doug --- In flexcoders@yahoogroups.com, rgwilson26 [EMAIL PROTECTED] wrote: I would like to know if anyone has an example of a multi line column in a datagrid. I would like to have a datagrid with a fixed column width, where if the user inputs enough info the datagrid will allow for a word wrap effect in the column if necessary. 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 * 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] jrun hot deployment of web-inf/classes ??
Hi Douglas, mmmh tried it out, and jars placed in the web-inf/lib directory are not hot deployed either... perhaps wars are hot deployed... but that's not very useful in my architecture ( i have the server side part in a different project ). unless I use a very complex build of course. What is the recommended way to do this? (avoid restarting jrun with every change to the server side part of a FES app ) Does tomcat support hot deployment in lib/ or classes/ ? Thanks, Aldo On 2/17/06, Douglas Knudsen [EMAIL PROTECTED] wrote: AFAIK, hot deploy is for JARs only...be nice if someone could correct me :) DK On 2/17/06, Aldo Bucchi [EMAIL PROTECTED] wrote: Hi all, Is there any way to make jrun autodetect changes to the classes in the web-inf/classes dir? I use ant in eclipse to copy them after an autobuild... and then to restart the server. but this takes way too long. any suggestions? perhaps a way to clean things up and speed up the startup process. BTW, I'm using FES2. Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this 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 Yahoo! Groups Links -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Having Column chart problem
YES! you rock =) that fixed it right up. Thanks! Thunder BTW I got another one comin for ya in about 5 minutes =) --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Thunder -- try setting categoryField to . (If that fixes it, then it's definintely a bug). Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Friday, February 17, 2006 3:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Having Column chart problem Hey guys, I'm having a problem I think may be a bug.. It has to do with the category axis on a column chart when using XMLListCollection as a dataProvider. Basically what I see is that if I use an actual data set (one of the data providers from a series) as the category Axis dataProvider, the labels show correctly. However if I pass an XMLList containing a list of Simple elements containing the strings (or even just an array of strings) for the category axis dataProvider, the labels don't show at all. The documentation for CategoryAxis says: The dataProvider property can accept either an array of strings or an array of records (objects) with a property specifying the category name. If you specify a categoryField property, the CategoryAxis assumes the dataProvider is an array of Objects. If cateogryField is null, the CategoryAxis assumes dataProvider is an array of Strings. It seems like this should work. I cannot seem to make it work. Below you can find a sample application and populateChart function which demonstrates the problem. I have commented out the working two lines, and the other two lines which exibit the problem are below it. Thanks in advance, Thunder __ ?xml version=1.0 encoding=utf-8? mx:Application width=100% height=100% xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns:root=* mx:ColumnChart id=mainChart width=403 height=232 / mx:Button label=Fetch click=populateStaticChart()/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.collections.XMLListCollection; import mx.charts.series.ColumnSeries; import mx.charts.CategoryAxis; public function populateStaticChart():void { var oData:XMLList = null; var oXML:XML = data row PlatformConvergence/Platform Year2005/Year PageConvergenceMSMUnits3.654/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2006/Year PageConvergenceMSMUnits4.3/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2007/Year PageConvergenceMSMUnits4.972/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2008/Year PageConvergenceMSMUnits16.117/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2009/Year PageConvergenceMSMUnits27.248/PageConvergenceMSMUnits /row row PlatformConvergence/Platform Year2010/Year PageConvergenceMSMUnits29.56/PageConvergenceMSMUnits /row /data; oData = oXML.row; var oXMLCol:XMLListCollection = new XMLListCollection(oData); var aYears:Array = [ 2005,2006,2007,2008,2009,2010 ]; // add the category axis to the chart var hAxis:CategoryAxis = new CategoryAxis(); // * this works * //hAxis.categoryField= Year ; //hAxis.dataProvider = oXMLCol; // * this doesn't * hAxis.categoryField= null ; hAxis.dataProvider = aYears; hAxis.name = Year ; mainChart.horizontalAxis= hAxis; // add a series to the chart and try to use the XMLListCollection as the DP var sa:Array = mainChart.series var cSeries:ColumnSeries = new ColumnSeries(); cSeries.yField= PageConvergenceMSMUnits ; cSeries.name = Convergence; cSeries.dataProvider = oXMLCol; // cSeries.stackField = PageConvergenceMSMUnits; sa.push( cSeries ); mainChart.series = sa; } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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:
[flexcoders] Re: Deliver compiled actionscript
--- In flexcoders@yahoogroups.com, Roger Gonzalez [EMAIL PROTECTED] wrote: The flex application that we are delivering to a third party contains some propriatary actionscript. Is there a way to compile the actionscript or convert it to a format that can not be reverse engineered? Thanks. Which version of Flex? You could do some mild obfuscation in 1.5, but not easily. There are no tools out yet for reverse engineering Flash 8.5 applications. Its a rather more difficult process. Still possible, though. You could fairly easily encrypt your proprietary executable code in a SWF, then load it on the client as an opaque blob of binary data, decrypt it on the client, then call Loader.loadBytes to run it. Since the decryption code would be in the client in the clear, you'd need to send the key over SSL or something. They could still intercept things, but it would be much much more difficult. Sadly, you've got a bunch of code to write to do this, we don't supply a code encryptor. The bits are in the client's hands, and they need some way of decrypting them to run the bits, so fundamentally, no matter how many levels of encoding you add, you're just looking at obfuscation. -rg Hmmm Not the answer I was looking for, but similar to what I was thinking. BTW, We're using Flex 1.5. You mentioned some ways of obfuscating the code -- 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] Flash 8 swf in Flex 2.0 App?
I am trying to figure out how to embed a Flash 8 swf into Flex and read any properties from it. From the couple posts I have found while searching the archives and the limited documentation in Flex, it would appear that you can only embed the file, but you cannot access its properties and MovieClips. I was hoping I could build my next application andframework into Flex, but would need to embed other Flash content on occasion, not created by me. The idea was that if the other movie had a text field or a combobox, I would be able to listen to change events and possibly grab the new values of these components from the Flash 8 file within my Flex application. Thanks for any insight on this. Steve -- 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] ColumnChart problem x2.. MOUSE_OVER_DATA event seems wonky (2.0b1).
Hi again. Eli I hope you're reading this! =) I'm getting really sporatic responses from a listener to the ChartMouseEvent.MOUSE_OVER_DATA Note it wasn't this way in the alpha. Only significant differences on my part is the use of XMLListCollecitons as data providers. see the sample app below. Thanks, Thunder ___ ?xml version=1.0 encoding=utf-8? mx:Application width=100% height=100% xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns:root=* mx:ColumnChart id=mainChart width=403 height=232 / mx:Button label=Fetch click=populateStaticChart()/ mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.collections.XMLListCollection; import mx.charts.series.ColumnSeries; import mx.charts.CategoryAxis; import mx.charts.events.ChartMouseEvent; public function populateStaticChart():void { var oData:XMLList = null; var oXML:XML = data row Year2005/Year PageConvergenceMSMUnits6.654/PageConvergenceMSMUnits PageMultimediaMSMUnits4.3/PageMultimediaMSMUnits PageEnhancedMSMUnits4.972/PageEnhancedMSMUnits PageValueMSMUnits6.117/PageValueMSMUnits /row /data; oData = oXML.row; var oXMLCol:XMLListCollection = new XMLListCollection(oData); var aYears:Array = [ 2005 ]; var aTypes:Array = [ Enhanced, Convergence, Multimedia, Value ]; // mainChart.type = stacked; mainChart.addEventListener(ChartMouseEvent.MOUSE_OVER_DATA, hoverChartData); // add the category axis to the chart var hAxis:CategoryAxis = new CategoryAxis(); // this works! Thanks! hAxis.categoryField= ; hAxis.dataProvider = aYears; hAxis.name= Year ; mainChart.horizontalAxis= hAxis; // add the series to the chart var sa:Array = mainChart.series for each (var sName:String in aTypes) { var cSeries:ColumnSeries = new ColumnSeries(); cSeries.yField = Page + sName + MSMUnits ; cSeries.name = sName; cSeries.dataProvider = oXMLCol; sa.push( cSeries ); } mainChart.series = sa; } public function hoverChartData(event:ChartMouseEvent):void { var oItem:Object = null; oItem = event.hitData.item; log.text += \n + event.hitData.element.name; } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * 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] jrun hot deployment of web-inf/classes ??
On 2/17/06, Aldo Bucchi [EMAIL PROTECTED] wrote: Hi Douglas, mmmh tried it out, and jars placed in the web-inf/lib directory are not hot deployed either... perhaps wars are hot deployed... but that's not very useful in my architecture ( i have the server side part in a different project ). unless I use a very complex build of course. What is the recommended way to do this? (avoid restarting jrun with every change to the server side part of a FES app ) Does tomcat support hot deployment in lib/ or classes/ ? Aldo, did you set the compile and reload tags in the JRun instance you tried to true in teh WEB-INF/jrun-web.xml file before testing? They are false by default, so you won't get out of the box hot deployment. I think it's only for jar files, but that might be why you didn't see anything working. Regards, Dave. -- 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: jrun hot deployment of web-inf/classes ??
With Tomcat you have a handful of options with regards to hot deployment. Tomcat supports two main kinds of hot deployments. Automatic Hot Deployment By default tomcat will hot deploy WAR archives as they are noticed by the container. Usually you will see tomcat notice a new WAR dropped into /webapps within a few seconds. Tomcat will also hot deploy static resources such as web.xml and context.xml if they get modified. You can also specify any filename in the context.xml and tomcat will add that to its list of watched resources to be hot deployed. Explicit Hot Deployment You can copy JAR and class files into the class loader space and force a reload via the tomcat manager web app (or ANT task). This is explicit for a very good reason. It would be rare that copying a single file would suffice in a production system, so why reload only a partial update. For this reason Tomcat waits to reload the classes until you explicitly list them off. There is actually one other reason. The way most containers reload already loaded classes is to actually leak the loader. You dont want that happening too many times ;) -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Aldo Bucchi [EMAIL PROTECTED] wrote: Hi Douglas, mmmh tried it out, and jars placed in the web-inf/lib directory are not hot deployed either... perhaps wars are hot deployed... but that's not very useful in my architecture ( i have the server side part in a different project ). unless I use a very complex build of course. What is the recommended way to do this? (avoid restarting jrun with every change to the server side part of a FES app ) Does tomcat support hot deployment in lib/ or classes/ ? Thanks, Aldo On 2/17/06, Douglas Knudsen [EMAIL PROTECTED] wrote: AFAIK, hot deploy is for JARs only...be nice if someone could correct me :) DK On 2/17/06, Aldo Bucchi [EMAIL PROTECTED] wrote: Hi all, Is there any way to make jrun autodetect changes to the classes in the web-inf/classes dir? I use ant in eclipse to copy them after an autobuild... and then to restart the server. but this takes way too long. any suggestions? perhaps a way to clean things up and speed up the startup process. BTW, I'm using FES2. Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this 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 Yahoo! Groups Links -- : Aldo Bucchi : mobile (56) 8 429 8300 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flash 8 swf in Flex 2.0 App?
You need to use LocalConnection. If you can't modify the FP8 SWF, you need to build a wrapper SWF in Flash 8 that acts as a proxy. -rg -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Polk Sent: Friday, February 17, 2006 4:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash 8 swf in Flex 2.0 App? I am trying to figure out how to embed a Flash 8 swf into Flex and read any properties from it. From the couple posts I have found while searching the archives and the limited documentation in Flex, it would appear that you can only embed the file, but you cannot access its properties and MovieClips. I was hoping I could build my next application and framework into Flex, but would need to embed other Flash content on occasion, not created by me. The idea was that if the other movie had a text field or a combobox, I would be able to listen to change events and possibly grab the new values of these components from the Flash 8 file within my Flex application. Thanks for any insight on this. Steve -- 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+flexw 5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDf WudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+devel opmentw1=Web+site+design+developmentw2=Computer+software+dev elopmentw3=Software+design+and+developmentw4=Macromedia+flexw5 =Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJ buU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+si te+design+developmentw2=Computer+software+developmentw3 =Software+design+and+developmentw4=Macromedia+flexw5=Softwar e+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=f89quyyulID snABLD6IXIw 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] Re: Deliver compiled actionscript
The bits are in the client's hands, and they need some way of decrypting them to run the bits, so fundamentally, no matter how many levels of encoding you add, you're just looking at obfuscation. -rg Hmmm Not the answer I was looking for, but similar to what I was thinking. BTW, We're using Flex 1.5. You mentioned some ways of obfuscating the code Google for actionscript obfuscator. -rg -- 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] Actionscript-based Applications with Flex 2
I am interested in writing an all Actionscript application (i.e. using the Actionscript project option within the Eclipse-based Flex Builder) that combines both Flex-based and traditional Flash-based components. For example, I want to define a Canvas on one side of the screen and populate it with the traditional Flex-based components then create things like DisplayObjects, Sprites, whatever on the other side while having events from both sides intermingled (for lack of a better word) using events and listeners. I am fine going with a strictly Flash 8.5 diet (that is the future after all, right?). Everything I read seems to imply that these must be in different SWFs and that there is a fair bit of gymnastics involved in achieving even nominal interoperation between the two paradigms. Am I missing something? Are there any simple examples out there to illustrate how this might work? (Preferably ones that dont require CF like the FileUpload example on the Macromedia site, dont try to get fancy with MovieClips and animation, etc.) The ideal scenario would be an application where, on the Flex side I could pick square from a pull-down list of a few standard shapes, press a button, and something vaguely resembling that description would appear using flash components. Then, when that component was clicked/moved, perhaps it could make the name of the event that fired show up in a Flex label. Effectively the Hello World of the new and improved Actionscript. Does anyone have anything like that? -Mark -- 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] Actionscript-based Applications with Flex 2
If you are looking for a HelloWorld, see the bottom of this email. Here's the quick(?) skizzy on the various technologies. Don't have time? Read to the # to skip the background. Flash Player 8.5 is engineered to work with the improved ActionScript 3 language, and have pimp new features. ActionScript 3 is a clean-up of ActionScript 2, a stricter adherence to ECMA (depending on who you talk to), and organized around the new package organization structure with additional constructs added in. Can you create applications alone with those 2 technologies? Yes. Would I personally want to? Hell no. If you paid me too? Nope, because I'd inform you that you are over-paying. Flex Framework 2 is the creation of a set of compoents and framework classes to do all the things needed to create applications. Your buttons, and dropdowns and datagrids, your data classes that expose server operations in a clean and easy to use API. Your modality, focus management, binding, etc. The same reason you use the Flex Framework 2 to create applications instead of pure ActionScript 3 is the same reason you use Rails for Ruby, ActionStep for C, Cake for PHP... common problems, tasks, and needs are solved by well written and proven application component frameworks. Re-inventing the wheel, while cool from a developer's standpoint, is not cost-effective business. On the flip-side, there are many who will never use the Flex 2 framework. For example, I currently cannot use it's pre-decessor, the v2 component framework for Flash 7 on my cell phone; I have to resort to pure ActionScript 2 and modified-Flash Player 7 technology. I have no choice, the CPU and RAM requirements of the phone force me to do so. Naturally, 2 things happen; the scope of my work is greatly limited, and I still make at least a lean set, enough to get me to an acceptable level (buttons, labels, image loaders, etc.). Now, Flex is unique in that mxmlc, the commandline compiler, actually knows about things like MXML as well as ActionScript files, and compile both into a SWF. This is further expanded upon because the mxmlc and the Flex Framework were built in tandem, allowing certain compilation features and framework features to be mutually exclusive in benefit. Therefore, while there is no reason someone couldn't port the ActionStep framework to ActionScript (they are actually...), Flex Framework has an advantage out of the starting gate because it takes advantage of some of the new features mxmlc has in regards to creating SWF's. Bottom line, while you can do this: var a:Sprite = new Sprite(); addChild(a); a.addEventListener(Event.CLICK, onPress); var g:Graphics = graphics; a.beginFill(0x00); a.lineTo(100, 0); a.lineTo(100, 22); a.lineTo(0, 22); a.lineTo(0, 0); a.endFill(); ...using the framework, you can do this instead: mx:Button click="onPress" / Beyond the portability of the code, let-alone readability, it's approachability from those with an HTML background, it has many other benefits not so easily visible. - built-in focus management - already looks like a button - has an optional label - has rounded corners looking more like a button than a box - is in the MX namespace, allowing other buttons to be differentiated - has rollover states ... I could go on all night. Yes, there is more overhead, but it is negligible, ecspecially with the speed improvements made in Flash Player 8.5. At this point in the software industry, there is little point to do these things in code when months of development consisting of dozens of developers, qa, managers, etc. has already been done for you.. and it's free I might add. ...unless of course you are developing for a phone, set-top box, XBox, or some other low-resource environ, where I'd concur it is a wise decision to abandon the framework. Of course, we aren't there yet. # Bottom line, if you create a Flex project, you have to use Flex components (at least at the forefront) as shown here: http://www.helpqlodhelp.com/blog/archives/000140.html - Original Message - From: Mark Wales To: flexcoders@yahoogroups.com Sent: Saturday, February 18, 2006 12:14 AM Subject: [flexcoders] Actionscript-based Applications with Flex 2 I am interested in writing an all Actionscript application (i.e. using the Actionscript project option within the Eclipse-based Flex Builder) that combines both Flex-based and traditional Flash-based components. For example, I want to define a Canvas on one side of the screen and populate it with the traditional Flex-based components then create things like DisplayObjects, Sprites, whatever on the other side while having events from both sides intermingled (for lack of a better word) using events and listeners. I am fine going with a strictly Flash 8.5 diet (that is the future after all, right?). Everything I read seems to imply that these must be in different SWFs and that there is a fair
Re: [flexcoders] Re: Deliver compiled actionscript
look at flasmOn 2/17/06, Roger Gonzalez [EMAIL PROTECTED] wrote: The bits are in the client's hands, and they need some way of decrypting them to run the bits, so fundamentally, no matter how many levels of encoding you add, you're just looking at obfuscation. -rg HmmmNot the answer I was looking for, but similar to what I was thinking. BTW, We're using Flex 1.5.You mentioned some ways of obfuscating the codeGoogle for actionscript obfuscator.-rg--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.