[flexcoders] Combox box selected Index
Hi guys, I have a combo box whose data provider is an array collection. I don't want any of the items in the selected index at the time of load. How can I do this. Thanks, with regards, JJain - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] Combox box selected Index
set the prompt property to something like this prompt=Select On Feb 2, 2008 2:31 PM, jitendra jain [EMAIL PROTECTED] wrote: Hi guys, I have a combo box whose data provider is an array collection. I don't want any of the items in the selected index at the time of load. How can I do this. Thanks, with regards, JJain -- Looking for last minute shopping deals? Find them fast with Yahoo! Search.http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- Regards, Yogesh
[flexcoders] Re: Adobe Flex Application not working on Citrix
they have flash player 9 version installed The users are accessing this through citrix. The thin clients are linux based. Application is developed using flex and .net webservice it works fine when we use it from normal windows desktop using IE application is hosted on IIS 6.0 on windows 2003 server. I have used flex modules in developing this app. Thin client user only able to see the grey background of flex application no modules get loaded inspite of refreshing the browser while this is not the case with windows client. I hope i am able to convey u the exact issue. Thanks, Sameer --- In flexcoders@yahoogroups.com, Osvaldo Aufiero [EMAIL PROTECTED] wrote: Have you checked the flash player version on the thin clients? On Feb 1, 2008 6:32 AM, sameerb4k [EMAIL PROTECTED] wrote: Hi, I have developed application in flex using modules which works fine on windows system but when we try to run it from thin clients based on Linux using citrix it fails. Only the application grey canvas displays no modules loads. Please help!!! Thanks in advance for support.. Thanks, Sameer -- 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] Re: Adobe Flex Application not working on Citrix
The users are accessing this through citrix. The thin clients are linux based. Application is developed using flex and .net webservice it works fine when we use it from normal windows desktop using IE application is hosted on IIS 6.0 on windows 2003 server. I have used flex modules in developing this app. Thin client user only able to see the grey background of flex application no modules get loaded inspite of refreshing the browser while this is not the case with windows client. I hope i am able to convey u the exact issue. Thanks, Sameer --- In flexcoders@yahoogroups.com, Clinton D. Judy [EMAIL PROTECTED] wrote: A program I developed here is accessed at work through Citrix. We don't use Linux though. We had a problem with most of the servers because Flash wasn't installing correctly (users were trying to automatically install it). That would be the first thing you should check, is that as an administrator, do they all have the latest version of Flash 9? If not, you may need to uninstall Flash from the system completely (including taking out all registry keys, etc), booting into the server in safe mode, then installing Flash 9. When we did that here, it began working fine. Good luck! - Clinton From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sameerb4k Sent: Friday, February 01, 2008 4:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe Flex Application not working on Citrix Hi, I have developed application in flex using modules which works fine on windows system but when we try to run it from thin clients based on Linux using citrix it fails. Only the application grey canvas displays no modules loads. Please help!!! Thanks in advance for support.. Thanks, Sameer
[flexcoders] Validation approach
Hi all, Currently i am validating my form ( having 10-12 fields ) by using adobe's article. http://www.adobe.com/devnet/flex/quickstart/validating_data/ The form contains texInputs, comboboxes, numeric steppers etc. For small no of items, the above approach works, but as no of items n types of items increase, it becomes mess. The main issue i am facing that other than this is i have two password( one for confirmation) fields. I have separate validators for each of them. Plus i have additional function which validates if both are equal. My question is , is it possible to create validator which can validate two other validator? Or can we have validator having two sources ? Is there any other good example of complex validations? Regards, Yogesh
Re: [flexcoders] Validation approach
hi refer the below link hope it may help. http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=createvalidators_153_4.html Yogesh Jadhav-2 wrote: Hi all, Currently i am validating my form ( having 10-12 fields ) by using adobe's article. http://www.adobe.com/devnet/flex/quickstart/validating_data/ The form contains texInputs, comboboxes, numeric steppers etc. For small no of items, the above approach works, but as no of items n types of items increase, it becomes mess. The main issue i am facing that other than this is i have two password( one for confirmation) fields. I have separate validators for each of them. Plus i have additional function which validates if both are equal. My question is , is it possible to create validator which can validate two other validator? Or can we have validator having two sources ? Is there any other good example of complex validations? Regards, Yogesh -- View this message in context: http://www.nabble.com/Validation-approach-tp15241120p15241233.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: Adobe Flex Application not working on Citrix
Check if you've got hardware acceleration turned on for the Flash plug-in (or have software rendering enabled, however it's listed in the plug-in properties). If I remember correctly, Citrix can't cope with DirectX surfaces and I believe if you turn on hardware acceleration in the Flash plugin it uses DirectX surfaces. Troy. On Feb 2, 2008 3:13 AM, sameerb4k [EMAIL PROTECTED] wrote: The users are accessing this through citrix. The thin clients are linux based. Application is developed using flex and .net webservice it works fine when we use it from normal windows desktop using IE application is hosted on IIS 6.0 on windows 2003 server. I have used flex modules in developing this app. Thin client user only able to see the grey background of flex application no modules get loaded inspite of refreshing the browser while this is not the case with windows client. I hope i am able to convey u the exact issue. Thanks, Sameer --- In flexcoders@yahoogroups.com, Clinton D. Judy [EMAIL PROTECTED] wrote: A program I developed here is accessed at work through Citrix. We don't use Linux though. We had a problem with most of the servers because Flash wasn't installing correctly (users were trying to automatically install it). That would be the first thing you should check, is that as an administrator, do they all have the latest version of Flash 9? If not, you may need to uninstall Flash from the system completely (including taking out all registry keys, etc), booting into the server in safe mode, then installing Flash 9. When we did that here, it began working fine. Good luck! - Clinton From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sameerb4k Sent: Friday, February 01, 2008 4:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adobe Flex Application not working on Citrix Hi, I have developed application in flex using modules which works fine on windows system but when we try to run it from thin clients based on Linux using citrix it fails. Only the application grey canvas displays no modules loads. Please help!!! Thanks in advance for support.. Thanks, Sameer
Re: [flexcoders] Combox box selected Index
hi, please review the sample below it is tricky... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init(); mx:Script ![CDATA[ import mx.controls.*; import mx.core.UIComponent; public var indexCounter:int = 0; [Bindable] public var comboChat: Array = [ {label:A, data:0}, {label:B, data:1}, {label:C, data:2}, {label:D, data:3} ]; public function init():void{ chatAllCombo.addEventListener(MouseEvent.CLICK, comboclick); } public function comboclick(e:MouseEvent):void{ chatAllCombo.dataProvider = comboChat; openCombo(); chatAllCombo.removeEventListener(MouseEvent.CLICK, comboclick); } public function openCombo():void{ chatAllCombo.dataProvider = comboChat; chatAllCombo.open(); } ]] /mx:Script mx:ComboBox x=9 y=23 id=chatAllCombo width=180 cornerRadius=0/ /mx:Application Enjoy jitendra jain wrote: Hi guys, I have a combo box whose data provider is an array collection. I don't want any of the items in the selected index at the time of load. How can I do this. Thanks, with regards, JJain - Looking for last minute shopping deals? Find them fast with Yahoo! Search. -- View this message in context: http://www.nabble.com/Combox-box-selected-Index-tp15240917p15241408.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Combox box selected Index
hi, another simple trick is .. * select the combobox... * goto Flex Properties panel * select category view * under common category * just click inside the box next to prompt : * and just press a space using spacebar * hit enter * save and run u wil get what u want jitendra jain wrote: Hi guys, I have a combo box whose data provider is an array collection. I don't want any of the items in the selected index at the time of load. How can I do this. Thanks, with regards, JJain - Looking for last minute shopping deals? Find them fast with Yahoo! Search. -- View this message in context: http://www.nabble.com/Combox-box-selected-Index-tp15240917p15241458.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Generic showPopupWindow function
I am getting Error establishing a database connection when I ckick on the link. --- In flexcoders@yahoogroups.com, shrikant.patil [EMAIL PROTECTED] wrote: hi please refer the link below, u may get useful; http://blog.flexexamples.com/2007/08/20/creating-custom-dialog- boxes-using-the-popupmanager-and-titlewindow-classes/ markgoldin_2000 wrote: I am trying to create a generic showpoppup function: public function showPopupWindow(parent:DisplayObject, WhatToShow:String):void { var helpWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, true)); PopUpManager.centerPopUp(helpWindow); } But WhatToShow is a string and not taken by PopUpManager.createPopUp. How can I specify a class to show? Thanks -- View this message in context: http://www.nabble.com/Generic- showPopupWindow-function-tp15236288p15240076.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] AMFPHP1.9 problem
Hi all Why channel disconnected?what I was doing wrong.No errors on the PHP side.My services-config.xml ok. main.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:RemoteObject id=services destination=amfphp source=TestF.ServiceClass mx:method name=sendUserObjectToPHP result=sendUserObjectToPHP_resultHandler(event) fault=faultHandler(event)/ /mx:RemoteObject mx:Script ![CDATA[ import com.phiphou.application.User; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.controls.Alert; private function faultHandler(fault:FaultEvent):void { Alert.show(fault.fault.faultString, fault.fault.faultCode.toString()); } public function sendUserObjectToPHP() :void { var u:User = new User(); u.login = bob; u.pswd = 007 services.getOperation('sendUserObjectToPHP').send(u); } private function sendUserObjectToPHP_resultHandler(evt:ResultEvent) :void { var u:User = evt.result as User; infos.text = u.logged.toString(); //infos.text = evt.result.toString(); } ]] /mx:Script mx:TextArea x=10 y=10 id=infos height=72/ mx:Button x=10 y=90 label=sendObj click=sendUserObjectToPHP()/ /mx:Application php ServiceClass.php ?php require_once('com/test/application/User.php'); class ServiceClass { function sendUserObjectToPHP($u){ //settype($u, object); $u-logged=true; return $u; } } ? User.php ?php class User { var $_explicitType = com.test.application.User; var $login; var $pswd; var $logged; function User() { } } ? and User.as package com.test.application { [RemoteClass(alias=com.test.application.User)] [Bindable] public dynamic class User { public var login:String; public var pswd:String; public var logged:Boolean; public function User() { } } }
[flexcoders] is it possible to make a DateField's textInput invisible?
is it possible to make a DateField's textInput invisible? I set the width to 16 pixels but black dots border the icon. any way to set its internal textInput visible property to false? thanks
[flexcoders] amfphp and complex where clauses in queries
Hi, first post to this list - just really getting my groove on with Flex and amfphp and have a question (obviously): - I've built a PHP class (and amfphp service) containing a method used to generate a MySQL SELECT, returning the results to Flex via amfphp - The method has several optional parameters which are used to generate additional where clauses (each value representing a column to filter on) for the SELECT to refine the selected rows; - My initial method assumed the comparator for each of the columns is = but now I want to add additional comparators - for instance, search for rows whose colA 1 In other words Using a method like: function doQuery($colA,$colB,$colC) Calling it like: doQuery(1, g,biv) To generate a query such as: select * from tableName where (colA=1 and colB=g and colC=biv) Now I want to be able to optionally change the comparator for each parameter. I'm having an internal debate about how best to send the comparator(s) to my method for each comparison and see three obvious routes, none of which I like much, and wonder if there's a cleaner way: 1. pass the comparator as part of the value... just don't like this approach as I don't like mixing values and operators: doQuery(1, =g,=biv) 2. Add an extra parameter for each column to my method... just uglies things up quick: doQuery(, 1, =, g,=, biv) 3. Generate the whole darn SQL statement in Flex and pass it as a single parameter to my method (this is not something I would do, I'd go with either route above first - just putting it out there as an obvious option): doQuery(select * from tableName where (colA=1 and colB=g and colC=biv)) Thoughts? -Roger Howard
RE: [flexcoders] Re: Need IF Logic for Chart Data Provider
Ok, I have Sas Jacobs' book, Foundation Flex for Developers: Data Driven Applications with PHP, ASP.NET, ColdFusion, and LCDS. She has a chapter on working with XML using E4X. What works, for me in this case, is this: dataProvider={chartXML.lastResult.month[0].day} In fact just to see if it would work I declared public const JANUARY:int = 0; and then did dataProvider={chartXML.lastResult.month[JANUARY].day} This worked too. HOWEVER, I have been told that using brackets is too hard to debug. and that I should use a result handler to wrap the xmllist in an XMLListCollection instance variable and bind to that. Sas also covers that. I'll read up on that and let you know. OK, read it. I'm using the mx:HTTPService and, as far as I can tell from Sas' book, the HTTPService tag apparently takes care of creating an XMLListCollection for you.or maybe it just creats an XMLList. Can anybody shed some light on this? I also learned (from the book) that the following should work: dataProvider={chartXML.lastResult.month.(@month_name==01).day} However, it doesnt as I get the following error: Element Type mx:LineChart must be followed by either attribute specifications, or /. brad brad -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abyss Knight Sent: Friday, February 01, 2008 3:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Need IF Logic for Chart Data Provider One option would be to change the chart's viewable area, as in modify the start of the axes to only show the data you want to show. This would obviously put a strain on the client if there was far too much data loaded into an ArrayCollection though. The other option is to query the XML using e4x and use the result as the data provider: http://www.onflex. http://www.onflex.org/ted/2006/12/xmle4x-vs-amf.php org/ted/2006/12/xmle4x-vs-amf.php Hope that helps, -- William --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, Brad Bueche [EMAIL PROTECTED] wrote: The problem (in short): I need to be able to hook up my charts to dataproviders where month_name equals January. And only pull that. I dont need it to read every month in the hierarchy. Or month_name is January and day_name is '14'. In order to do this I need to do IF logic with the dataprovider it seems to me. My other post occurred because in leiu of being able to do IF month_name='January'. I have just gone in and changed the xml so that instead of month /month [...] it now says january /januaryfebruary/february etc. That sort of defeats the data description aspect of XML (it seems to me). The background (if you are interested): This problem has to do with me NOT wanting to write 100+ reports to generate 100+ separate xml files to access. I need to track the metrics of several internal groups over the year via charting. I want to drill down into individual months (by day) and -- maybe, days by hour. I also want to track into the sub groups per month and per day-in-month for each of these groups as well. The data is network event traffic and doing the queries live will just not work. Users wont use the slicing and dicing visualization affords if they have to wait every time the click an item. So, I know I can save myself a lot of reports by putting all the data into about 10 - 20 reports or so by using the XML as its supposed to be used (i.e. describing the data). I need to be able to hook the data provider to only a sub-node in the xml hierarchy and not have it read everything at that level. I need it to read only has long as month_name=January or month_name=January AND day_name='15'.
[flexcoders] BitmapData- the quality of image degrades when rotating bitmapImage
Dear list, Is there a way to rotate a Bitmap without having quality degraded? ( or least degraded) I load an external image and crop a part of the image (using bitmap data) to display in a container. From the design, the container needs to be rotated . Whether I rotate the container or add the cropped bitmapImage in the rotated container. The quality does degrade dramatically . Is there a solution for this? Any suggestion is appreciated! -- var _assetLoader:Loader; loadAsset(printable.swf); function loadAsset(src:String):void{ _assetLoader= new Loader(); _assetLoader.contentLoaderInfo.addEventListener(Event.INIT,doneLoadListener); _assetLoader.load(new URLRequest(src)); } function doneLoadListener(e:Event):void{ var assetW:Number=_assetLoader.content.width; var assetH:Number=_assetLoader.content.height; var bitmapData:BitmapData= new BitmapData(assetW/2,assetH/2,false,0xFF); var bitmapImage:Bitmap= new Bitmap(bitmapData); bitmapData.draw(_assetLoader); ctnMc.addChild(bitmapImage); ctnMc.rotation=60; } Thanks, Yoko Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
RE: [flexcoders] BitmapData- the quality of image degrades when rotating bitmapImage
You might try setting smoothing = true on the bitmap? I can't tell you if it will help offhand, but it's worth a go! -Original Message- From: flexcoders@yahoogroups.com on behalf of Yochikoh Haruomi Sent: Sat 02/02/2008 21:43 To: flexcoders@yahoogroups.com Subject: [flexcoders] BitmapData- the quality of image degrades when rotating bitmapImage Dear list, Is there a way to rotate a Bitmap without having quality degraded? ( or least degraded) I load an external image and crop a part of the image (using bitmap data) to display in a container. From the design, the container needs to be rotated . Whether I rotate the container or add the cropped bitmapImage in the rotated container. The quality does degrade dramatically . Is there a solution for this? Any suggestion is appreciated! -- var _assetLoader:Loader; loadAsset(printable.swf); function loadAsset(src:String):void{ _assetLoader= new Loader(); _assetLoader.contentLoaderInfo.addEventListener(Event.INIT,doneLoadListener); _assetLoader.load(new URLRequest(src)); } function doneLoadListener(e:Event):void{ var assetW:Number=_assetLoader.content.width; var assetH:Number=_assetLoader.content.height; var bitmapData:BitmapData= new BitmapData(assetW/2,assetH/2,false,0xFF); var bitmapImage:Bitmap= new Bitmap(bitmapData); bitmapData.draw(_assetLoader); ctnMc.addChild(bitmapImage); ctnMc.rotation=60; } Thanks, Yoko Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
[flexcoders] SWF sound continues to run after display object removed ??
Using FB2 - I am loading a SWFloader with swf file provided by various clients - since we have no control over how these are produced there is no option to use localConnection to control these SWF. These are simple animations, many with sound. I understand there are methods available if the files are Flash v9 but with v8 it seems the only controls available are load and removeChild. Obviously loading and removing is not a problem but the sound plays on until finished even though the display object has been removed. Do we have any options for stopping sound from a SWFloader for v8 SWF files short of a sledge hammer ?
Re: [flexcoders] BitmapData- the quality of image degrades when rotating bitmapImage
This isn't a Flex issue as much as it is a Flash embed issue. Add this to your html container: 'quality','best' This affects the quality rendered from the local Flash player. Your rotated bitmaps will thank you for it. (this assumes you are using AC_RunActiveContent.js to embed your flash file) - Original Message From: Yochikoh Haruomi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, February 2, 2008 4:43:22 PM Subject: [flexcoders] BitmapData- the quality of image degrades when rotating bitmapImage Dear list, Is there a way to rotate a Bitmap without having quality degraded? ( or least degraded) I load an external image and crop a part of the image (using bitmap data) to display in a container. From the design, the container needs to be rotated . Whether I rotate the container or add the cropped bitmapImage in the rotated container. The quality does degrade dramatically . Is there a solution for this? Any suggestion is appreciated! -- var _assetLoader: Loader; loadAsset(printabl e.swf); function loadAsset(src: String):void{ _assetLoader= new Loader(); _assetLoader. contentLoaderInf o.addEventListen er(Event. INIT,doneLoadLis tener); _assetLoader. load(new URLRequest(src) ); } function doneLoadListener( e:Event): void{ var assetW:Number= _assetLoader. content.width; var assetH:Number= _assetLoader. content.height; var bitmapData:BitmapDa ta= new BitmapData(assetW/ 2,assetH/ 2,false,0xFF ); var bitmapImage: Bitmap= new Bitmap(bitmapData) ; bitmapData.draw( _assetLoader) ; ctnMc.addChild( bitmapImage) ; ctnMc.rotation= 60; } Thanks, Yoko _ _ _ _ _ _ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile. yahoo.com/ ;_ylt=Ahu06i62sR 8HDtDypao8Wcj9tA cJ !-- #ygrp-mkp{ border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;} #ygrp-mkp hr{ border:1px solid #d8d8d8;} #ygrp-mkp #hd{ color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;} #ygrp-mkp #ads{ margin-bottom:10px;} #ygrp-mkp .ad{ padding:0 0;} #ygrp-mkp .ad a{ color:#ff;text-decoration:none;} -- !-- #ygrp-sponsor #ygrp-lc{ font-family:Arial;} #ygrp-sponsor #ygrp-lc #hd{ margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;} #ygrp-sponsor #ygrp-lc .ad{ margin-bottom:10px;padding:0 0;} -- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} ..bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a{ text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc{ background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o{font-size:0;} ..MsoNormal{ margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} ..replbq{margin:4;} --
[flexcoders] Event Propigation
Hi Everyone, I have been charged to architect a fairly large scale Flex application (first time doing so). I don't think that my issue warrants code samples however if needed I can provide. I have not worked with events too much, but I understand the default three phases it goes through (capture,target,bubble). The application will be comprised of an application which load a custom MXML component (basically an extended Canvas), which in turn loads modules based on user interaction. What I need to have happen, is when the root (parentApplication) has values that update, I would like for it to dispatch an event, which the Modules listen for, and then in response poll the parent for that data to get the new information. Based on everything I have read, events don't propigate in that direction (it climbs down the chain from the top, hits the target, and then climbs back up). However, is it possible to make it go the other way? Can children hear events of the parent? If this is impossible, does anyone have any thoughts or suggestions for an alternative to my particular problem? I appreciate any advice you can offer!
[flexcoders] flex, hibernate probs
Hi. I need help! Im using flex2 and trying to connect to an existing hibernate back end. Using tomcat5022,hibernate30. I have put all the flex jar files in the WEB-INF/lib of the web app. /~ flex-bootstrap.jar flex-messaging-common.jar flex-messaging.jar flex-messaging-opt.jar flex-messaging-req.jar flex-spring-factory.jar \ I have modified the web.xml file, but had to comment out the MessageBroker Servlet stuff coz it was giving an error on tomcat startup. This is the start of the stack trace with MessageBroker servlet enabled in web.xml: /~ java.lang.NullPointerException at flex.management.BaseControl.getObjectName(BaseControl.java:287) at flex.management.BaseControl.register(BaseControl.java:148) at flex.messaging.MessageBroker.init(MessageBroker.java:146) at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:84) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951) \ Im not able to get the connection to the database as yet. ~~~ I am using an mxml file that uses an mx:DataService : mx:DataService id=ds destination=hibernate-product autoCommit=false autoSyncEnabled=false fault=faultHandler(event) conflict=conflictHandler(event)/ The mx:Application has the following attribute: creationComplete=ds.fill(products, 'all.products', []) products is an ArrayCollection: mx:ArrayCollection id=products/ all.products is a named query in hibernate (from the hbm.xml file): query name=all.productsFrom Prod/query (Prod is my entity/dbtable) data-management-config.xml defines the default channels to be my-rtmp default-channels channel ref=my-rtmp/ /default-channels When I connect to the mxml file, the page loads ok but without data. (Obviously I have a table in the database with data in it) I have checked all the mappings and they seem to be ok... After trying to add a new record I get the following error: /~~ [FaultEvent fault=[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error undefined url:'rtmp://localhost:2038'] messageId=AA880209-D7B9-7D8C-EC6E-DC678411A552 type=fault bubbles=false cancelable=true eventPhase=2] \__ The page is viewable at: http://203.55.21.10:7070/testFlex/inventory.mxml Please help me troubleshoot this: I can send/post/attach any files that are needed... Kind regards. Luke Vanderfluit
Re: [flexcoders] amfphp and complex where clauses in queries
Hi, I don't know if it's a good approach, here how I would do: Use an array of objects, each containing column name, operator and value. The method doQuery can have only one argument, an array. Then you can build the statement based on values passed. If the array is null, it would mean select everything. -- Jhonny Everson
[flexcoders] Re: Event Propigation
It's possible. Main.mxml //script private function init():void{ child1.addEventListener(change, callBackFunction); } private function dispatchEventsToChildren():void{ //call this to dispatch an event dispatchEvent(new Event(change)); } //or do it this way private function controlChildren(event:ItemClickEvent):void{ child1.publicFunctionUpdateData(args); } //body com:child1 id=child1/ mx:DateField change=controlChildren(event)/ Child1.mxml Some component you have... --- In flexcoders@yahoogroups.com, brett.hitzel [EMAIL PROTECTED] wrote: Hi Everyone, I have been charged to architect a fairly large scale Flex application (first time doing so). I don't think that my issue warrants code samples however if needed I can provide. I have not worked with events too much, but I understand the default three phases it goes through (capture,target,bubble). The application will be comprised of an application which load a custom MXML component (basically an extended Canvas), which in turn loads modules based on user interaction. What I need to have happen, is when the root (parentApplication) has values that update, I would like for it to dispatch an event, which the Modules listen for, and then in response poll the parent for that data to get the new information. Based on everything I have read, events don't propigate in that direction (it climbs down the chain from the top, hits the target, and then climbs back up). However, is it possible to make it go the other way? Can children hear events of the parent? If this is impossible, does anyone have any thoughts or suggestions for an alternative to my particular problem? I appreciate any advice you can offer!
[flexcoders] Object is Null? How can it be if it's a component in main.mxml. No access ?
I have a toggle bar that's data provider is a viewstack. When I click on the toggle bar an event is dispatched that my controller is listening for. My controller can access com1, com2, but always gives me a null pointer exception on com3. All components are identical. I just wrote this off the top of my head. So syntax might be off a bit and I only included the core functionality stripped down to demonstrate my issue. Any thoughts? Main.mxml //script import CustomClass(); protected var controller:CustomClass; private function init():void{ controller = new CustomClass(); } //body togglebar click=controller.doSomething(event) dataprovider=vs1/ viewstack id=vs1 com1: id=com1/ com2: id=com2/ com3: id=com3/ /viewstack CustomClass.as //Controller public function doSomething(event:ItemClickEvent):void{ var indexHit:int = event.index; if(indexHit == 1){ Application.application.com1.getData(); }else if(indexHit==2){ Application.application.com2.getData(); }else if(indexHit==3){ //THIS FAILS Application.application.com3.getData(); }else{ //nothing } }
[flexcoders] Re: Object is Null? How can it be if it's a component in main.mxml. No access
I forgot to mention I have a fade effect when the components in the view stack are shown and hidden. When I put a timeout on the Application.application.com3.getData(); line of code below it worked. I took the fade off and removed the timeout and got the error again. --- In flexcoders@yahoogroups.com, phipzkillah [EMAIL PROTECTED] wrote: I have a toggle bar that's data provider is a viewstack. When I click on the toggle bar an event is dispatched that my controller is listening for. My controller can access com1, com2, but always gives me a null pointer exception on com3. All components are identical. I just wrote this off the top of my head. So syntax might be off a bit and I only included the core functionality stripped down to demonstrate my issue. Any thoughts? Main.mxml //script import CustomClass(); protected var controller:CustomClass; private function init():void{ controller = new CustomClass(); } //body togglebar click=controller.doSomething(event) dataprovider=vs1/ viewstack id=vs1 com1: id=com1/ com2: id=com2/ com3: id=com3/ /viewstack CustomClass.as //Controller public function doSomething(event:ItemClickEvent):void{ var indexHit:int = event.index; if(indexHit == 1){ Application.application.com1.getData(); }else if(indexHit==2){ Application.application.com2.getData(); }else if(indexHit==3){ //THIS FAILS Application.application.com3.getData(); }else{ //nothing } }
[flexcoders] open source TreeGrid, disclosure triangle
Anyone work with the open source treegrid component from sourceforge? (Not the flexlib version) If so, how can I change the disclosure icon from the + and - sign to a triangle?