[flexcoders] Re: Best Way To Implement tabnavigator switching
Thanks for the great response. --- In flexcoders@yahoogroups.com, jer_ela [EMAIL PROTECTED] wrote: There is no correct way of doing this. However it would make for better encapsulation if you instead called the getData method in each component's show method. That way the tabnavigator would need to know less about its children. --- In flexcoders@yahoogroups.com, iilsley iilsley@ wrote: I have a Tabnavigator with 3 customer components .. Each component has a 'getData' method which loads the data for that component . I currently have a change event handler on the tabnavigator which does a private function changeView(e:IndexChangedEvent):void { var o:Object = e.relatedObject; o.getData(); } This works but is this the 'correct' way todo it ?
[flexcoders] File Upload question
Hi, Does anyone tried implement a file upload to a server through servlet while the server is sit behind a proxy? Will the crossdomain issue becomes a problem? I have set up a serlvet with upload function which works perfect, however, when i deploy the servlet into another server, which i can only reached through a proxy, the upload failed. Is there any setting i need to take care of? Dan
[flexcoders] showing last child of vbox..
Hi all, I have a VBox, in which i keep on adding childs (of varying height) as an when some event is triggered... is there any why..to display the last child which is addedi mean to set the scrollbar position to the last by default. Thanks in advance PS
Re: [flexcoders] RichTextEditor without a Panel around it
ups.. that was easier than i thought :-). I just had a look at Flex's RTE component and it was using mxml instead of pure as3. So i just copied the component and changed the component's base from Panel to Vbox.. and that was pretty much it *g*. Nice... if everything in Flex would be that easy ;-). Greets, Max - Original Message From: m.frigge [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 27, 2007 10:03:16 PM Subject: [flexcoders] RichTextEditor without a Panel around it Hey there, I hope you all enjoyed your Christmas Days. I was trying to make use of the RichtTextEditor component, but i can't really implement it in my application because it is wrapped in a Panel?!? Is there any chance to let the Panel disappear, or does anyone know if there is a RichText control component that just offers the options to edit text? Cheers, Max !-- #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;} -- Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] RichTextEditor without a Panel around it
Hey there, I hope you all enjoyed your Christmas Days. I was trying to make use of the RichtTextEditor component, but i can't really implement it in my application because it is wrapped in a Panel?!? Is there any chance to let the Panel disappear, or does anyone know if there is a RichText control component that just offers the options to edit text? Cheers, Max
[flexcoders] Re: Conditional itemrenderer
--- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote: The ampersand oprator cannot be used inside XML tag. you can either use condition1 amp;amp; condition2 or pass the params to function which evaluates to Boolean. Also, take a look at this: http://www.herrodius.com/blog/17 Almog Kurtser, http://www.kaltura.com Many thanks. That helped a lot. best, Graham
Re[flexcoders] ading uploaded file
Hi, My requirement is like this: I need to select a csv or excel file, from the local machine,read a column from it and store all the strings of a particular column in a List of a object and store it in a database. I am using Flex to upload the file and trying to read the file from struts2,but in my action class i am unable to get the uploaded file.My code is as follows,it would be very very useful if somebody tries to help me out of this.Please let me know If I have gone wrong anywhere. 1)mxml file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import ImportData; import flash.net.FileReference; import flash.net.FileFilter; import flash.events.IOErrorEvent; [Bindable] var fileRef:FileReference = new FileReference(); private function openFileDialog():void{ fileRef.addEventListener(Event.SELECT, selectHandler); fileRef.addEventListener(Event.COMPLETE, completeHandler); fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA ,uploadCompleteHandler); fileRef.addEventListener(IOErrorEvent.IO_ERROR,onIOError); try{ var textTypes:FileFilter = new FileFilter(Text Files (*.txt,*.csv),*.txt;*.csv); var allTypes:Array = new Array(textTypes); //var success:Boolean = fileRef.browse(); var success:Boolean = fileRef.browse(allTypes); } catch(error:Error){ trace(Unable to browse for files.); } } private function onIOError(event:IOErrorEvent):void { trace(In here+event.text); trace(In here+event.toString()); } // when a file is selected you upload the file to the upload script on the server private function selectHandler(event:Event):void{ //var request:URLRequest = new URLRequest(/importAction); var request:URLRequest = new URLRequest( try { fileRef.upload(request); } catch (error:Error) { trace(Unable to upload file.); } } private function completeHandler(event:Event):void{ trace(uploaded); } // dispatched when file has been uploaded to the server script and a response is returned from the server // event.data contains the response returned by your server script public function uploadCompleteHandler(event:DataEvent):void { trace(uploaded... response from server: \n + String(event.data)); } ]] /mx:Script mx:Button label=Import id=importBtn click=openFileDialog() height=20 width=90 styleName=buttonsOnSearchBar/ mx:ComboBox x=23 y=44 borderColor=#ff themeColor=#ff/mx:ComboBox /mx:Application 2)struts.xml file struts package name=pack1 extends=struts-default,json-default global-results result name=error type=json/result /global-results global-exception-mappings exception-mapping result=error exception=java.lang.Throwable/ /global-exception-mappings action name=importAction class=routing.ImportAction interceptor-ref name=fileUpload/ interceptor-ref name=basicStack/ result name=success type=json/result /action /package /struts 3)Action Class import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.util.ArrayList; import java.util.StringTokenizer; import org.apache.log4j.Logger; import com.opensymphony.xwork2.ActionSupport; public class ImportAction extends ActionSupport{ private String contentType; private File upload; private String fileName; private String caption; private static final Logger logger = Logger.getLogger(ImportAction.class); @Override public String execute() throws Exception { /** * Read File Line by Line.. If the file has more than one word separated by comma * return error. * * */ ArrayListString symbolList = new ArrayListString(); try{ BufferedReader reader = new BufferedReader(new FileReader(upload)); String line =null; String symbol=null; while((line=reader.readLine())!=null){ StringTokenizer tokenizer = new StringTokenizer(line,\t); symbol = tokenizer.nextToken(); if(symbol!=null) symbol = symbol.trim(); if(symbol.length()0) symbolList.add(symbol); } }catch(FileNotFoundException fne){ if(logger.isDebugEnabled()) logger.debug(File NotFount , fne); } for(String symbol1:symbolList) System.out.print(symbol1+ ); return SUCCESS; } public String getUploadFileName() { return fileName; } public void setUploadFileName(String fileName) { this.fileName = fileName; } public String getUploadContentType() { return contentType; } public void setUploadContentType(String contentType) { this.contentType = contentType; } public File getUpload() { return upload; } public void setUpload(File upload) { this.upload = upload; } public String getCaption() { return caption; } public void setCaption(String caption) { this.caption = caption; } public String input() throws Exception { return SUCCESS; } public String upload() throws Exception { return SUCCESS; } } -- View this message in context: http://www.nabble.com/Reading-uploaded-file-tp14501548p14501548.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Progressive FLV's and browser cache
Hey All, I'm running into a slight issue. I'm working with FLV's, and preloading. Initially about 5 FLV's are preloaded, then eventually played. I can see in Charles that the FLV's preload, but when they are played, they are downloaded completely again. I'm using a URLLoading as binary format to load the FLV's. Whey would the browser not be caching the FLV's? Would preloading with a netConnection/netStream cause the cache to be used correctly?? Thanks -A
[flexcoders] Re: Progressive FLV's and browser cache
nevermind. seems it is my browser acting funny. On Dec 27, 2007 1:36 AM, aaron smith [EMAIL PROTECTED] wrote: Hey All, I'm running into a slight issue. I'm working with FLV's, and preloading. Initially about 5 FLV's are preloaded, then eventually played. I can see in Charles that the FLV's preload, but when they are played, they are downloaded completely again. I'm using a URLLoading as binary format to load the FLV's. Whey would the browser not be caching the FLV's? Would preloading with a netConnection/netStream cause the cache to be used correctly?? Thanks -A
Re: [flexcoders] Timer running fast in Firefox than in IE with same time interval?
I've run into the same problem recently while trying to make a timer for a video player. Timer is not accurate at all and can vary greatly depending on the interval. I agree with Fredreico, the ENTER_FRAME event is far more reliable at producing accurate time intervals. Jamie On Dec 26, 2007 4:05 AM, Frederico Garcia [EMAIL PROTECTED] wrote: arpan srivastava escreveu: Hi All, I have a list with many items which moves automatically by using a timer. Timer is set to 10 ms i.e. after every 10 ms second it fires an event which moves the items in the list by some distance. In IE it runs fine but in Firefox it runs very fast, i am not getting how can a timer change it's time in firfox. thanks arpan -- Chat on a cool, new interface. No download required. Click here. http://in.rd.yahoo.com/tagline_webmessenger_10/*http://in.messenger.yahoo.com/webmessengerpromo.php __ NOD32 2745 (20071224) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com The Timer is not exact, especially if fired on small intervals. If the VM is not able to execute the code it jumps (like flash jumpes frames). If you are trying to emulate the time frame Timer is not the best method. Instead create a class extending MovieClip and use onEnterFrame... something like this: public class Effect extends MovieClip { private var _currentFrame:uint = 0; private function onEnterFrame(event:Event):void { _currentFrame++; //ADD YOUR CODE HERE } public function start():void { this.addEventListener(Event.ENTER_FRAME,onEnterFrame); } public function end():void { this.removeEventListener(Event.ENTER_FRAME,onEnterFrame); } } Hope this helps. Regards Frederico
[flexcoders] HTTPService call using a private SSL cert PEM
I have a REST web services call that uses a private SSL cert to authenticate communication. It works in PHP and command line cUrl, but I don't know how to pass the PEM file in the Flex 3 / Actionscript 3.0 HTTPService call. Is it possible? Below I give my PHP and cUrl snippets that work now, and followed by the beginning of my Flex service call. How do I pass the PEM to that Flex call so Flex can securely talk to the REST web service over this private SSL cert? - PHP - This worked in PHP where $cert contained the path to the PEM file. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSLCERT, $cert); - cUrl (command line) - This worked in command line cUrl, where client.pem contains a private PEM file for privatesslcerthost.com. curl ... --cert-type PEM --cert client.pem --- Flex code --- This needs to pass the PEM in the HTTPService call. How do I do it? service = new HTTPService(); service.contentType = text/xml; service.resultFormat = e4x; service.useProxy = false; service.method = POST; service.addEventListener(ResultEvent.RESULT, onRestCallResult); service.addEventListener(FaultEvent.FAULT, onRestCallFault); service.url = https://privatesslcerthost.com/; + path; service.send(params);
[flexcoders] Flex Dot Net
We need a complete guide to Flex with .Net Can anyone can help me plz ?
Re: [flexcoders] Sorting nested collections in Value Objects? (DataServices or RemoteObject fills)
The true advantage of a rich client is it's ability to handle these kinds of tasks without having to burden the server so by all means, do the sort on the client. As for which part of an MVC framework should do the work (your question implied you are using MVC... right?), I think it could be debated but I would think the View would be the appropriate place to do the sort if the sort is just for the benefit of the end user. In other words if you are sorting items i a table to make it easier for the user to see the contents then I would think this is just another interpretation of the data and therefore should be left to the View. Nested collections of data is another issue but again i would think everything about how that data is represented should be handled by the View. Jamie On Dec 25, 2007 5:10 PM, Kevin [EMAIL PROTECTED] wrote: I am wondering what the best practice is for sorting nesting collections in data managed or remote objects? Sort on the server? It is not hard for us to create SortedSet's (via Java) on the server objects and then send those back. The only problem we have run into with this is that it seems that the sort order is not updated when new objects are persisted via Flex. For example, the initial fill comes in sorted, however when we then use addItem to a data managed, nested collection, the object is persisted in the database, but the full set is not returned to flex and thus the new sort order is not updated. It seems that because of this there is no reason to do any sorting on the server except for objects that are not data managed. Does this make sense? Sort on the client? It is easy enough to add sorts to ListCollections. however when the ListCollections are nested inside other objects where is the best place to add these sorts? In the constructor of the value object? In the view which binds it? In some collection listener? With the simplicity of data binding it seems that there is no great place to add a default sort to a collection. Am I missing something obvious? Sort in the destination config? Is there a way to add a default sort to a data-management-config destination? It seems like this might be an appropriate place to add a default sort declaration... I would love to hear how others have addressed this situation? Happy Holidays, Kevin
Re: [flexcoders] function binding toString !! Additional information
yigit escreveu: i think i'm misunderstood; because your solution suggestions does not fit my problem. first of all, functions can be binded. (with an event driven architecture that triggers the function to be executed and all bindable references be updated) to see how it is done, take a look at the article in flex api : http://127.0.0.1:64744/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html (or search for [Bindable] function then click the second result) after this quick information, i want to refigure my problem. assume: myInstance:MyClass; //MyClass implements a bindable toString method my problem has two parts: 1st; when i use function biding (textInput text={myInstance.toString()}/) , function binding works fine except the itemRenderer (textInput text={data.toString()}/) why? what is the problem? can't the VM detect the binding mechanism? (by the way there isn't any compile time warnings about the binding will not be able to run properly) 2nd: if i do not write toString (textInput text={myINstance}/), although it calls toString method to find the text value, function binding does never work (neither in itemRenderers nor normal usage). why? why cant the compiler detect the binding? thnks in advance. Frederico Garcia wrote On 12/26/2007 05:38 PM: Jhonny Everson escreveu: I guess that your solution has a problem, the circular reference to toString. it could be something like: [Bindable] public var stringValue:String = ; public function toString():String { ... ( some processing that results in a string var 'string1') stringValue= string1; return stringValue; } On 12/26/07, * Frederico Garcia* [EMAIL PROTECTED] mailto:fmotagarcia%40kemelyon.com mailto:[EMAIL PROTECTED] mailto:fmotagarcia%40kemelyon.com wrote: yigit escreveu: hi all; i have a custom class which has a toString method; so i can directly use it as a source to textInput's text field. i want to make binding work, i mean when the result of the toString changes, i want the view to update itself automatically. nameID field of roleRef is an instance of my class that implements toString with function biding. when i use this way: mx:Label id=lbl text={roleRef.nameID}/ function binding on toString does not work when i use this way: mx:Label id=lbl text={roleRef.nameID.toString()}/ function biding on toString works, but inside an item renderer, it does not work. mx:Label id=lbl text={data.nameID.toString()}/ is this a compiler bug or is this the normal behavior? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __ NOD32 2747 (20071225) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com http://www.eset.com I believe you can only bind vars and setters. By binding a function i think it will only execute the function once. An easy workaround is to have a var containg the result of the toString function and bind the property to that var. Something like: [Bindable] public var stringValue:String = ; public function toString():String { stringValue= this.toString(); return stringValue; } mx:Label id=lbl text={data.nameID.stringValue}/ Regards Frederico Garcia -- Jhonny Everson __ NOD32 2747 (20071225) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com http://www.eset.com Yes, indeed there was a circular reference to toString. Thanks for the correction. The general concept is the same though, and I think it's the best way to solve the bind to function problem. Regards Frederico Garcia __ NOD32 2747 (20071225) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, Functions are indeed bindable, but only special function are: getters and setters. If you look carefully in the help topic you siggested the example there is: |* [Bindable(event=maxFontSizeChanged)]*| // Define public getter method. |* public function get maxFontSize():Number {*| return _maxFontSize; } This, however is not what you want, since getters and setters work the same way as vars, only they execute some code. Using getters you could do something like: [Bindable(event=changeEvent)] public function get asString():String { ... ( some processing that results in a string var 'string1') return string1; } every time you change the
Re: [flexcoders] How to check if a file exist in the server?
Try loading it, and if you get an IOError, the file does not exist. There could be other reasons you may get an IOError, but it's useful for specifically that purpose. http://www.joeflash.ca/blog/2007/11/ioerror-2044-solution.html ___ Joseph Balderson, Flash Platform Developer | http://joeflash.ca Writing partner, Community MX | http://www.communitymx.com Abobe Certified Developer Trainer Anzer wrote: How to check if a file exist or not in the server? Currently am doing it with HTTPService, but I need to know if there is any better mechanism since I want to check files with big sizes and I think HTTPService will load the actual file into memory (not sure if that’s correct, let me know if not). Thanks www.FlickrMailer.com http://www.flickrmailer.com/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Monitoring Webservice data flow with TCPMon
Hello folks, Has anyone played with TCPMon to monitor data exchange between Adobe Flex and a WebService? Can someone give me a hint on how to configure tcpmon to sniff the data? Thanks in advance, Fidel.
[flexcoders] Centering an Application
Hello Folks! Hope you guys have had a nice christmas. I am trying to solve something I hope you guys can help me with. I have looked all over the web and did not find any answer. What I want is to center my Application Canvas. So, if I maximize the application window (if using adobe air) or the browser (if using flex), the Canvas is always at the center. Can someone give me some hints? I have tried the horizontalAlign and verticalAlign, which I thought would solve my problem. I have opened the generated swf with the Flash Player and when I maximize the Flash Player, my Canvas stays at the top left corner. I would like to center it. Thanks in advance, Fidel.
[flexcoders] Re: tileList displaying items order other than that represented by dataProvider
Thanks for the tip From your blog entry I read Recycle to mean that I need an else clause wherever I have an if to ensure that the 'unhandled' condition is handled and some value for an attribute is always set. The renderer I have coded either always returns a value from its methods (i.e., no conditional statements) or where there IS an if clause there also needs to be an else to ensure that a value for the desired attribute is always provided. If my interpretation of 'recycle' is not correct please let me know. Thanks! Alex --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Are you using a custom renderer? Sounds like it doesn't know how to be recycled. More about renderer recycling on my blog (blogs.adobe.com/aharui) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Sent: Friday, December 21, 2007 2:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] tileList displaying items order other than that represented by dataProvider I have a problem with a viewStack that has 2 views, a dataGrid and a tileList view both of which which share a common dataProvider. - The tileList uses an itemRenderer to draw an icon/name for each item. - The datagrid affords the ability to sort the displayed items by clicking on the column headers. The initial display of both views is as expected, the sort order in the tileList view matches that of the items in the dataGrid view. A trace of the data items in the dataProvider invoked whenever I switch between views [via trace(datagrid.dataProvider) and trace(tilelist.dataProvider)] both show the items in the list in the order expected regardless of how many times I switch views back and forth. The items (a ListCollectionView of items of type Foo) listed by the trace as expected reflect the format of the toString function in the Foo class. Now the problem... 1) When I click a header in the dataGrid view to re-sort the data subsequent trace output of the dataProvider's list of objects changes to another format: (Array)#0 [0] (com.emc.sspg.cem.data::Foo)#1 attribute1_name = value1 attribute2_name = value2 [1] (com.emc.sspg.cem.data::Foo)#1 etc. I'm not sure why this happens.. 2) The array elements in the trace output are reordered to reflect the expected sort order as displayed in the dataGrid view AND the tileList view BUT the order of the actual icons drawn in the tileList view does not match the order of the items traced. (In fact I've yet to be able to discern what order they are now drawn in, its not the original pre-sorted order either.) - Another subtlety my trace statements have pointed out is that only the 1st time the icon view is drawn do the item renderers get called to actually get the icon and name to display. Solution-wise, while not a great solution I've tried to insert various functions to invalidate the drawing such that subsequent views of the icon view would re-call the renderers to prove to me that they are being drawn in the order that I'm seeing them left-to-right, top-to-bottom in the tileList but none of the following cause that to occur. tilelist.invalidateDisplayList(); tilelist.invalidateList(); tilelist.invalidateProperties(); tilelist.dataProvider.refresh(); Any thoughts regarding this would be appreciated. Thanks
[flexcoders] Re: Flex Dot Net
If you want to build simple XML-based services with your server code it really doesn't make much difference to Flex. You can even use SOAP web services and Flex has a way to interact with them although I wouldn't suggest starting off using SOAP unless mandated but that is a different issue. Flex is truly just a 'front-end' builder that can stay loosely coupled to your server code. If you want tighter integration with smaller data transfer you will want to look into using AMF. This will have a server specific component to it. Unfortunately I use Java for my server code so I am not sure what you would need to look into for AMF on a .NET server. Probably should start simple, with XML services first. We used the 'Training from the Source... book to get started in general. Good luck! - Todd --- In flexcoders@yahoogroups.com, NileAge, Mail [EMAIL PROTECTED] wrote: We need a complete guide to Flex with .Net Can anyone can help me plz ?
[flexcoders] Re: tileList displaying items order other than that represented by dataProvider
Unfortunatly the code is part of a large, complex application. If I cannot figure out what's going on with this I may have to extract the code at issue into a smaller application that I can post. FYI: A previous iteration of the application works correctly, the difference is that I'm segregating the code which provides the capability to have several views of the same dataset into a reusable component. I will continue to examine the differences between the two applications to see what differences might be significant in causing this issue. Maybe its an order of execution or timing issue, I'm not sure. Thanks --- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote: Hey, sorting the grid should definitely update the tilelist if you are using the same dataprovider. I have a working sample for this scenario too. Can you post some code so we can take a look and see whats wrong in there. - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, Alex mcleod_alex@ wrote: I have a problem with a viewStack that has 2 views, a dataGrid and a tileList view both of which which share a common dataProvider. - The tileList uses an itemRenderer to draw an icon/name for each item. - The datagrid affords the ability to sort the displayed items by clicking on the column headers. The initial display of both views is as expected, the sort order in the tileList view matches that of the items in the dataGrid view. A trace of the data items in the dataProvider invoked whenever I switch between views [via trace(datagrid.dataProvider) and trace(tilelist.dataProvider)] both show the items in the list in the order expected regardless of how many times I switch views back and forth. The items (a ListCollectionView of items of type Foo) listed by the trace as expected reflect the format of the toString function in the Foo class. Now the problem... 1) When I click a header in the dataGrid view to re-sort the data subsequent trace output of the dataProvider's list of objects changes to another format: (Array)#0 [0] (com.emc.sspg.cem.data::Foo)#1 attribute1_name = value1 attribute2_name = value2 [1] (com.emc.sspg.cem.data::Foo)#1 etc. I'm not sure why this happens.. 2) The array elements in the trace output are reordered to reflect the expected sort order as displayed in the dataGrid view AND the tileList view BUT the order of the actual icons drawn in the tileList view does not match the order of the items traced. (In fact I've yet to be able to discern what order they are now drawn in, its not the original pre-sorted order either.) - Another subtlety my trace statements have pointed out is that only the 1st time the icon view is drawn do the item renderers get called to actually get the icon and name to display. Solution-wise, while not a great solution I've tried to insert various functions to invalidate the drawing such that subsequent views of the icon view would re-call the renderers to prove to me that they are being drawn in the order that I'm seeing them left-to-right, top-to-bottom in the tileList but none of the following cause that to occur. tilelist.invalidateDisplayList(); tilelist.invalidateList(); tilelist.invalidateProperties(); tilelist.dataProvider.refresh(); Any thoughts regarding this would be appreciated. Thanks
[flexcoders] Re: How do YOU do functional testing and automation package questions
I wish this tool was planned for platforms other than Windows. --- In flexcoders@yahoogroups.com, tnajaryan [EMAIL PROTECTED] wrote: AFAIK, there are two tools that you can currently use for Flex GUI testing: Mercury QTP and TestComplete (which is not using mx.automation and thus is of limited use). You might also want to have a look at the upcoming GUI testing tool specifically designed for Flex at http://riatest.com Disclosure: I am a RIATest developer. --- In flexcoders@yahoogroups.com, Neil Curzon neil.curzon@ wrote: Hi all. I've been trying to add some automated functional testing to our flex app. I found FunFX, a functional test framework for flex built in ruby. This page (http://peternic.blogspot.com/2007/11/funfx-getting-started.html) directed me to install the automation package, which claims that you can use it with LCDS or Express LCDS. However, it demands a license key to install, and the Express version of LCDS seems to just install by not entering a key. (ie if you have only Express LCDS, it seems you can't actually install the automation package). Any suggestions? We are in the process of upgrading to Flex 3, but in the short term this isn't an option. I'm curious as to what other people are using for functional testing their Flex apps. Some searching reveals that Selenium can be extended fairly easily for Flex testing, and google indicates that several people have in-house Selenium extensions, but none of these appear to have been contributed back yet. I'm partway through a proof of concept for selenium testing (I have JavaScript finding buttons in my Flex app), but this FunFX seems to have a lot of work done that I'd have to repeat. Any pointers would be appreciated! Thanks Neil
[flexcoders] Re: How do YOU do functional testing and automation package questions
I am actually a ways into developing an in house extension to Flex for Selenium. I looked for others doing the same a couple months back (Sept/Oct) and found none. Can you direct me to the others you have found doing this? We are going to approach this with management again after the New Year but I am not sure how much support we will get to open sourcing our work. The ruby stuff looks cool but if would definitely require the Flex Builder 3 or Flex 3 SDK as in 2.0.1 of the past, the automation package is not 'free' and requires a license. Sounds like the 2.0.2 SDK in Flex Builder 3 has the automation package available for free which is interesting but a couple months back I couldn't find enough information to do much with the automation package so I went a different route. Thanks, - Todd --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Note that you can get the automation extensions for 2.0.1 by downloaded the Flex Builder 3 beta (they're included in the 2.0.1 SDK). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Neil Curzon Sent: Monday, December 10, 2007 6:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do YOU do functional testing and automation package questions Hi all. I've been trying to add some automated functional testing to our flex app. I found FunFX, a functional test framework for flex built in ruby. This page ( http://peternic.blogspot.com/2007/11/funfx-getting-started.html http://peternic.blogspot.com/2007/11/funfx-getting-started.html ) directed me to install the automation package, which claims that you can use it with LCDS or Express LCDS. However, it demands a license key to install, and the Express version of LCDS seems to just install by not entering a key. (ie if you have only Express LCDS, it seems you can't actually install the automation package). Any suggestions? We are in the process of upgrading to Flex 3, but in the short term this isn't an option. I'm curious as to what other people are using for functional testing their Flex apps. Some searching reveals that Selenium can be extended fairly easily for Flex testing, and google indicates that several people have in-house Selenium extensions, but none of these appear to have been contributed back yet. I'm partway through a proof of concept for selenium testing (I have JavaScript finding buttons in my Flex app), but this FunFX seems to have a lot of work done that I'd have to repeat. Any pointers would be appreciated! Thanks Neil
[flexcoders] Re: showing last child of vbox..
This is probably considered a 'hack' but you can always get the y value of the child and then move the vertical scroll position to the location manually... var newPosition:int = child.y; vbox.verticalScrollPosition = newPosition; Now this of course assumes that your vbox is the first or only container. You may need to scale the verticalScrollPosition if the vbox is down your screen a bit following other Box containers. --- In flexcoders@yahoogroups.com, learner [EMAIL PROTECTED] wrote: Hi all, I have a VBox, in which i keep on adding childs (of varying height) as an when some event is triggered... is there any why..to display the last child which is addedi mean to set the scrollbar position to the last by default. Thanks in advance PS
[flexcoders] Re: How do YOU do functional testing and automation package questions
I am actually a ways into developing an in house extension to Flex for Selenium. I looked for others doing the same a couple months back (Sept/Oct) and found none. Can you direct me to the others you have found doing this? We are going to approach this with management again after the New Year but I am not sure how much support we will get to open sourcing our work. The ruby stuff looks cool but if would definitely require the Flex Builder 3 or Flex 3 SDK as in 2.0.1 of the past, the automation package is not 'free' and requires a license. Sounds like the 2.0.2 SDK in Flex Builder 3 has the automation package available for free which is interesting but a couple months back I couldn't find enough information to do much with the automation package so I went a different route. Thanks, - Todd --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Note that you can get the automation extensions for 2.0.1 by downloaded the Flex Builder 3 beta (they're included in the 2.0.1 SDK). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Neil Curzon Sent: Monday, December 10, 2007 6:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do YOU do functional testing and automation package questions Hi all. I've been trying to add some automated functional testing to our flex app. I found FunFX, a functional test framework for flex built in ruby. This page ( http://peternic.blogspot.com/2007/11/funfx-getting-started.html http://peternic.blogspot.com/2007/11/funfx-getting-started.html ) directed me to install the automation package, which claims that you can use it with LCDS or Express LCDS. However, it demands a license key to install, and the Express version of LCDS seems to just install by not entering a key. (ie if you have only Express LCDS, it seems you can't actually install the automation package). Any suggestions? We are in the process of upgrading to Flex 3, but in the short term this isn't an option. I'm curious as to what other people are using for functional testing their Flex apps. Some searching reveals that Selenium can be extended fairly easily for Flex testing, and google indicates that several people have in-house Selenium extensions, but none of these appear to have been contributed back yet. I'm partway through a proof of concept for selenium testing (I have JavaScript finding buttons in my Flex app), but this FunFX seems to have a lot of work done that I'd have to repeat. Any pointers would be appreciated! Thanks Neil
[flexcoders] What event to catch
My Grids has an ability to add a new record when a user presses down key being at the last record. But I also want to remove that record if he navigates away from that record while nothig was entered into any cell. What even do I catch to remove this record? Also when I add a new record I want to highlight it and have a mouse pointer in one of the cells. Is that possible to do? Thanks for help.
Re: [flexcoders] Flex Dot Net
RemoteObjects: The articles at http://www.adobe.com/devnet/flex/flex_net.html are good. WebServices: The Dev guide explains the flex side. On the dot net side simply create an ASP.NET Webservice project. HTPPServices: Again, see the Dev guide should explain everything. You might need to port some server side code, but there's no conceptual differences using different server side languages. - Dan Freiman On Dec 26, 2007 3:10 PM, NileAge, Mail [EMAIL PROTECTED] wrote: We need a complete guide to Flex with .Net Can anyone can help me plz ?
RE: [flexcoders] HTTPService call using a private SSL cert PEM
What does the AS3 params variable look like, is it of type XML? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of robbarreca Sent: Tuesday, December 25, 2007 6:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService call using a private SSL cert PEM I have a REST web services call that uses a private SSL cert to authenticate communication. It works in PHP and command line cUrl, but I don't know how to pass the PEM file in the Flex 3 / Actionscript 3.0 HTTPService call. Is it possible? Below I give my PHP and cUrl snippets that work now, and followed by the beginning of my Flex service call. How do I pass the PEM to that Flex call so Flex can securely talk to the REST web service over this private SSL cert? - PHP - This worked in PHP where $cert contained the path to the PEM file. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSLCERT, $cert); - cUrl (command line) - This worked in command line cUrl, where client.pem contains a private PEM file for privatesslcerthost.com. curl ... --cert-type PEM --cert client.pem --- Flex code --- This needs to pass the PEM in the HTTPService call. How do I do it? service = new HTTPService(); service.contentType = text/xml; service.resultFormat = e4x; service.useProxy = false; service.method = POST; service.addEventListener(ResultEvent.RESULT, onRestCallResult); service.addEventListener(FaultEvent.FAULT, onRestCallFault); service.url = https://privatesslcerthost.com/; + path; service.send(params); -- 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: Unknown Item is declared as the root....
I am getting that too. ANy idea what a fix might be? --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: Has anyone seen this error? An unknown item is declared as the root of your MXML document. Switch to source mode to correct it I've got Flex 2 installed on Tomcat 5.5 server. We have our code in CVS. If I delete the local project and then create a new one by checking it out in CVS and choose Flex Data Services all is okay until I shut down Flex Builder. When I load it back up... same issue.. can't open mxml files in Design view.. Also only very few options appear in the dropdown when I type in mx: only things like Array, Binding, String show.. no Label, Button, Text or anything... Code it just this for now... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx: (this is where I only see the Binding, Array, String) /mx:Application Any ideas on things I can try to correct this? Thanks!
[flexcoders] Flex 2.01 type declaration
Within a function I have: var tempInactivePriceListArray:ArrayCollection = new ArrayCollection(mySQLServer.executeQuery(inactiveSql)); However, the Flex compiler complains with: 1008: var 'tempInActivePriceList Array has no type declaration' I can't see why this should be. Any pointers most welcome.
[flexcoders] Detecting Video presence on NetStream
Hi all, I want to know how to detect if there is video coming from ( FMS) server attached to a netstream? Is there somethin like Buffer.Empty? Is that of use if i am using same stream for multiple things like video, sound, text etc? -- There is no point in knocking the closed Windows when the door is Open. Open your eyes, use open source software. Regards, Yogesh
Re: [flexcoders] File Upload question
Dan escreveu: Hi, Does anyone tried implement a file upload to a server through servlet while the server is sit behind a proxy? Will the crossdomain issue becomes a problem? I have set up a serlvet with upload function which works perfect, however, when i deploy the servlet into another server, which i can only reached through a proxy, the upload failed. Is there any setting i need to take care of? Dan -- 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 __ NOD32 2747 (20071225) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com You must have a file .htaccess inside public_html containing: SecFilterEngine Off SecFilterScanPOST Off If this doesn't work install ethereal and check for the error code you're getting from the server. Hope this helps, Frederico Garcia
[flexcoders] Re: Conditional itemrenderer
The ampersand oprator cannot be used inside XML tag. you can either use condition1 amp;amp; condition2 or pass the params to function which evaluates to Boolean. Also, take a look at this: http://www.herrodius.com/blog/17 Almog Kurtser, http://www.kaltura.com --- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote: I have a clickable image inside a datagrid column which is only enabled if datagridcolumn 'code' contains data using: mx:DataGridColumn headerText=M width=26 textAlign=center editable = false mx:itemRenderer mx:Component mx:HBox horizontalAlign=center click=outerDocument.moveToInactive(); enabled = {data.code != ''} mx:Image height=16 width=16 source=@Embed('/images/forwardicon.png') toolTip=Click to make 'Inactive' visible={data.code != ''} /mx:Image /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn However, I need to expand the condition so that the clickable image operates only if more than one column contains data. I tried: enabled ={data.code != '' data.sub_category != '' data.retail != ''} without success. Any ideas please guys?
Re: [flexcoders] Centering an Application
javaguru_uk escreveu: Hello Folks! Hope you guys have had a nice christmas. I am trying to solve something I hope you guys can help me with. I have looked all over the web and did not find any answer. What I want is to center my Application Canvas. So, if I maximize the application window (if using adobe air) or the browser (if using flex), the Canvas is always at the center. Can someone give me some hints? I have tried the horizontalAlign and verticalAlign, which I thought would solve my problem. I have opened the generated swf with the Flash Player and when I maximize the Flash Player, my Canvas stays at the top left corner. I would like to center it. Thanks in advance, Fidel. -- 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 __ NOD32 2749 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Have a VBox as the top level container (top=0;bottom=0;left=0;right=0). Insert one empty Canvas, then an HBox, then another empty Canvas. The two Canvas' having width and height of 100% and the HBox the same height as your Application Canvas. Now, inside the Hbox have one empty canvas, your Application Canvas and finally another empty canvas. The empty Canvas' with width=100% and height=100%; The outline tree would look like: Applicaton |-- VBox |-- Canvas top |-- HBox | |-- Canvas centerLeft | |-- Canvas main | |-- Canvas centerRight |-- Canvas bottom I'd only advise you to do this if you want alot of flexibility in your layout. (I did this for http://www.sizemodels.com) For the most cases it would be enough to have all your content inside a Canvas, and set it's verticalCenter = 0 and horizontalCenter = 0.
[flexcoders] Re: FLEX 2 do not support mx:Loader,why?
Loader is a direct subclass of DispalyObjectContainer. The only flex container that can host non IUIComponent objects is UIComponent, which is an abstract container. Instead of using the Loader, use the SWFLoader or Image. --- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] wrote: Hi, I do know why flex 2 doesn't work with the following code mx:Loader id=loader_1 contentPath=http://localhost/guidelines.swf; / other component do the same job?Thanks Mark
[flexcoders] Cannot connect to debugger anymore
I'm on a Mac, OS X 10.5, and Flash Player was just updated to 9,0,115,0, not by choice... I didn't see it in the list of updates that were packaged in an Apple Update. Anyway, I had to go and get the debug version and install that but still no dice. Flex Builder cannot connect, it doesn't even look like the debugger is getting started. I've tried uninstalling and installing again, installing an older version of the debug player, i've even tried to reinstall flex Builder nothing works. what is going on here?? I've been pounding on this for about a week now, I have deadlines looming and I'm losing money every second that this does not work. I'm desperate, very unhappy and just about to blow up. Paul
[flexcoders] Lost intellisense
I have lost all intellisense in my project. Please help. Thanks
[flexcoders] FLEX 2 do not support mx:Loader,why?
Hi, I do know why flex 2 doesn't work with the following code mx:Loader id=loader_1 contentPath=http://localhost/guidelines.swf; / other component do the same job?Thanks Mark
[flexcoders] Re: Flex 2.01 type declaration [SOLVED}
--- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote: Within a function I have: var tempInactivePriceListArray:ArrayCollection = new ArrayCollection(mySQLServer.executeQuery(inactiveSql)); However, the Flex compiler complains with: 1008: var 'tempInActivePriceList Array has no type declaration' I can't see why this should be. Any pointers most welcome. 'Clean'ing the project fixed it. Some sort of bug I guess.
[flexcoders] Re: Lost intellisense - Solved
Had to close project and reopen it again. --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: I have lost all intellisense in my project. Please help. Thanks
Re: [flexcoders] Cannot connect to debugger anymore
I don't have Antivirus, and from what I can tell the firewall is not on. I'll look again. On Dec 27, 2007, at 10:58 AM, Sheriff wrote: I had the same problem too, If you look at around 12/25 messages and 12/26. It turns out that my firewall/Anitvirus was blocking the port for the flash debugger so it would not connect. The port that u need to unblock is 7935 - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 27, 2007 9:42:13 AM Subject: [flexcoders] Cannot connect to debugger anymore I'm on a Mac, OS X 10.5, and Flash Player was just updated to 9,0,115,0, not by choice... I didn't see it in the list of updates that were packaged in an Apple Update. Anyway, I had to go and get the debug version and install that but still no dice. Flex Builder cannot connect, it doesn't even look like the debugger is getting started. I've tried uninstalling and installing again, installing an older version of the debug player, i've even tried to reinstall flex Builder nothing works. what is going on here?? I've been pounding on this for about a week now, I have deadlines looming and I'm losing money every second that this does not work. I'm desperate, very unhappy and just about to blow up. Paul Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: [flexcoders] Cannot connect to debugger anymore
I had the same problem too, If you look at around 12/25 messages and 12/26. It turns out that my firewall/Anitvirus was blocking the port for the flash debugger so it would not connect. The port that u need to unblock is 7935 - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 27, 2007 9:42:13 AM Subject: [flexcoders] Cannot connect to debugger anymore I'm on a Mac, OS X 10.5, and Flash Player was just updated to 9,0,115,0, not by choice... I didn't see it in the list of updates that were packaged in an Apple Update. Anyway, I had to go and get the debug version and install that but still no dice. Flex Builder cannot connect, it doesn't even look like the debugger is getting started. I've tried uninstalling and installing again, installing an older version of the debug player, i've even tried to reinstall flex Builder nothing works. what is going on here?? I've been pounding on this for about a week now, I have deadlines looming and I'm losing money every second that this does not work. I'm desperate, very unhappy and just about to blow up. Paul Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] Repeating a Custom Component (VBox)
Hello All If anyone can help me with this. I am using repeater and repeated item should be a Custom VBOX. Repeater do not have itemRenderer property. How can i use it? if i simply place a custom component in Repeater it doesn't work. I need to use extensive binding Moreover i need to change the background color of repeated custom component e.g. White for each odd index and Grey for each Even index. How can is do it while repeating -- Regards, Nadeem Manzoor
RE: [flexcoders] Repeating a Custom Component (VBox)
Repeating custom components works great. When you say, I need to use extensive binding, what exactly do you mean? What do you want to happen? If you dataProvider is an xmlListCollection or an ArrayCollection, you can use getItemIndex() to return the index of the item. Pass a reference to both the entire dataprovider and the specific item (using {repeater.currentItem}) into the component. Then use getItemIndex() to get the index, and decide how to handle it. Below are some snippets showing simple use of a custom component in a repeater. Tracy Goal: Display a list of items using a complex display for each item, and have each of those items behave like a menu element and respond to a click anywhere on the item by running a handler function. One solution is to use a Repeater with a custom component In the main app or component, declare the Repeater, and the click handler function. mx:Application ... mx:Script![CDATA[ import MyRepeaterItem; ... private function onRPItemClick(oEvent:Event):void { var xmlItem:XML = XML(oEvent.target); }//onRPItemClick ]]/mx:Script mx:VBox ... mx:Repeater id=rp dataProvider={_xmlData} ... !-- Note we pass in the entire currentItem, and define a click handler -- MyRepeaterItem xmlItem={rp.currentItem} itemClick=onRPItemClick(event) .../ /mx:Repeater /mx:VBox /mx:Application And in the component, MyRepeaterItem.mxml: ?xml version=1.0 encoding=utf-8? mx:HBox mouseChildren=false buttonMode=true click=onClick(event) !-- The metadata tag below allows us to define an itemClick handler in mxml, as in the code above -- mx:Metadata [Event(name=itemClick, type=flash.events.Event)] /mx:Metadata mx:Script![CDATA[ [Bindable]private var _xmlItem:XML; /** Setter function */ public function set xmlItem(xml:XML):void { _xmlItem = xml; //do any special, non-bound ui stuff you want }//set xmlItem /** Getter function */ public function get xmlItem():XML { return _xmlItem; }//get xmlItem /** Outer VBox Click handler function */ private function onClick():void { dispatchEvent(new Event(itemClick,false); //we do not need/want this event to bubble }//onClick ]]/mx:Script !-- Now declare the Item UI -- mx:Text id=lbDescription text=[EMAIL PROTECTED] width=100% height=100% / /mx:HBox From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nadeem Manzoor Sent: Thursday, December 27, 2007 12:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Repeating a Custom Component (VBox) Hello All If anyone can help me with this. I am using repeater and repeated item should be a Custom VBOX. Repeater do not have itemRenderer property. How can i use it? if i simply place a custom component in Repeater it doesn't work. I need to use extensive binding Moreover i need to change the background color of repeated custom component e.g. White for each odd index and Grey for each Even index. How can is do it while repeating -- Regards, Nadeem Manzoor
[flexcoders] Icon for Button
I want to have a button in one of columns in the DataGrid. This button will delete rows on its click. I am adding the button to dataGrid as a itemRenderer. I am extending class Button: public class deleteRowGrid extends Button { public function deleteRowGrid() { super(); styleName = DeleteRow; } } I am using styleName to set an icon for the button. DeleteRow style is declared in the main application. When I run my code I have a button in the column but with no icon. Any idea why? Thanks
Re: [flexcoders] Cannot connect to debugger anymore
well see if the debugger is installed http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507 if it is then most likely the port is blocked. - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 27, 2007 11:13:20 AM Subject: Re: [flexcoders] Cannot connect to debugger anymore I don't have Antivirus, and from what I can tell the firewall is not on. I'll look again. On Dec 27, 2007, at 10:58 AM, Sheriff wrote: I had the same problem too, If you look at around 12/25 messages and 12/26. It turns out that my firewall/Anitvirus was blocking the port for the flash debugger so it would not connect. The port that u need to unblock is 7935 - Original Message From: Paul Decoursey [EMAIL PROTECTED] net To: [EMAIL PROTECTED] ups.com Sent: Thursday, December 27, 2007 9:42:13 AM Subject: [flexcoders] Cannot connect to debugger anymore I'm on a Mac, OS X 10.5, and Flash Player was just updated to 9,0,115,0, not by choice... I didn't see it in the list of updates that were packaged in an Apple Update. Anyway, I had to go and get the debug version and install that but still no dice. Flex Builder cannot connect, it doesn't even look like the debugger is getting started. I've tried uninstalling and installing again, installing an older version of the debug player, i've even tried to reinstall flex Builder nothing works. what is going on here?? I've been pounding on this for about a week now, I have deadlines looming and I'm losing money every second that this does not work. I'm desperate, very unhappy and just about to blow up. Paul Looking for last minute shopping deals? Find them fast with Yahoo! Search. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] mx:Image loading swf from URL not working consistently on OS X.
Hello, I have an application that runs on every Windows based browser I've tested so far and even on Mac OS X up to version 9.0.47 of the flash player plugin. Recently a security update to 9.0.115 on Mac has caused an app to break. I broke it down to a simple test case. mx:Application . . . mx:Canvas . . . mx:Image source=swfUrl / /mx:Canvas . . . /mx:Application . . . The first time the main app loads the SWF loaded by the mx:Image tag does the right thing. The swf is pulled from the web, it runs and works as desired. Subsequent refresh of the web page will not show the swf. The SWF being loaded by the mx:Image tag is only a simple short flash movie. The main application does in fact run but this loading swf doesn't show on subsequent loads of the page on OS X. I have a timer in the main application that governs the time the Image SWF is shown and then runs the main logic. The main logic always runs and works fine. Have any of you seen any behavior like this? One more note is that the source for the Image can be a SWF that is embedded in the main application. This ALWAYS works fine when specified. The only issue is loading the SWF over http and only after the first load following a cache clear (Safari and Firefox on Max OS X show the same behavior). The external swf is specified with a url parameter passed into the main app. If this parameter is not present the app loads the embedded swf for the splash. I run the app on Windows on IE, FF, and Safari and no problem. Any hints? Thanks in advance.
Re: [flexcoders] Cannot connect to debugger anymore
Found the issue, my html template was overwritten. Just a coincidence that the Flash update also happened that day. On Dec 27, 2007, at 12:01 PM, Sheriff wrote: well see if the debugger is installed http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507 if it is then most likely the port is blocked. - Original Message From: Paul Decoursey [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 27, 2007 11:13:20 AM Subject: Re: [flexcoders] Cannot connect to debugger anymore I don't have Antivirus, and from what I can tell the firewall is not on. I'll look again. On Dec 27, 2007, at 10:58 AM, Sheriff wrote: I had the same problem too, If you look at around 12/25 messages and 12/26. It turns out that my firewall/Anitvirus was blocking the port for the flash debugger so it would not connect. The port that u need to unblock is 7935 - Original Message From: Paul Decoursey [EMAIL PROTECTED] net To: [EMAIL PROTECTED] ups.com Sent: Thursday, December 27, 2007 9:42:13 AM Subject: [flexcoders] Cannot connect to debugger anymore I'm on a Mac, OS X 10.5, and Flash Player was just updated to 9,0,115,0, not by choice... I didn't see it in the list of updates that were packaged in an Apple Update. Anyway, I had to go and get the debug version and install that but still no dice. Flex Builder cannot connect, it doesn't even look like the debugger is getting started. I've tried uninstalling and installing again, installing an older version of the debug player, i've even tried to reinstall flex Builder nothing works. what is going on here?? I've been pounding on this for about a week now, I have deadlines looming and I'm losing money every second that this does not work. I'm desperate, very unhappy and just about to blow up. Paul Looking for last minute shopping deals? Find them fast with Yahoo! Search. Looking for last minute shopping deals? Find them fast with Yahoo! Search.
[flexcoders] Custom validators in DataGrid
Anyone can show a sample code of doing custom validators in DataGrid? Specifically assigning validators in AS code. Thanks
[flexcoders] MessageBrokerServlet unavailable
I have upgraded to LCDS 2.5 and FlexBuilder 2.0.1 Hotfix 2 (this was from FDS and Hotfix 1). I am having some real difficulty getting the MessageBroker to respond. I have checked the logs to see the the MessageBroker seems to startup without any issues. However, when I try to access it via (webapp)/messagebroker/amf I get an error the the MessageBrokerServlet is unavailable. I have gone through all the configuration files to simplify as much as possible and checked them with the config files that come with LCDS for variances. They all seem to be in sync. There are no messages in the logs (I have DEBUG turned on) when I try to access the messagebroker. I find that surprising. Should there be even if it fails?? Anyway, I all out of ideas on how to get this working. I would appreciate any suggestions from those of you who might have had any similar experiences. I am posting part of the startup log below. [Flex] 12/27/2007 11:38:45.500 [INFO] [Configuration] Starting Adobe LiveCycle Data Services 2 Express [Flex] 12/27/2007 11:38:45.500 [INFO] [Configuration] Adobe Flex Data Services Build: 166921 [Flex] 12/27/2007 11:38:45.578 [INFO] [Configuration] Endpoint my-http created with security: None at URL: http://{server.name}:{server.port}/{context.root}/messagebroker/http [Flex] 12/27/2007 11:38:45.578 [INFO] [Configuration] Endpoint ms-rtmp created with security: None at URL: rtmp://{server.name}:2035 [Flex] 12/27/2007 11:38:45.594 [INFO] [Configuration] Endpoint ms-amf created with security: None at URL: http://{server.name}:{server.port}/{context.root}/messagebroker/amf [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.MessageBroker] MessageBroker with id '__default__' is starting. [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Configuration] MessageBroker id: __default__ classLoader is: the MessageBroker's class loader and the context class loader (classLoader hashCode: 6151022 (parent hashCode: 11085148 (parent hashCode: 25142878 (parent system))) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Service] Service with id 'authentication-service' is starting. [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Service] Service with id 'authentication-service' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Service] Service with id 'remoting-service' is starting. [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'inventoryService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'vendorService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'productService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'purchaseOrderService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'adminService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'userService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'loginService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'startupService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'queryService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'accountsService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'shipmentService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'buyoutProductService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'changeService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'productInventoryService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'roleService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'orderService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'customerService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.672 [DEBUG] [Startup.Destination] Destination with id 'reportService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.687 [DEBUG] [Startup.Destination] Destination with id 'queueService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.687 [DEBUG] [Startup.Destination] Destination with id 'quickbooksService' is ready (startup time: '0' ms) [Flex] 12/27/2007 11:38:45.687 [DEBUG] [Startup.Service] Service
[flexcoders] Alternatives to LCDS
Hi guys, I'm starting a project and was wondering on using an alternative for LCDS for remoting. I came across things like WebORB, GraniteDS or directly BlazeDS. I thought it would be wise to ask here for experiencies, suggestions, etc. Any leads on good alternatives? Thanks in advance! Guido.
[flexcoders] Re: Alternatives to LCDS
I've taken a look at WebORB, and was quite impressed with the PHP class structure as well as portability. What I can say is that the latter two options will require you to use J2EE (if I'm not mistaken) while WebORB has options for most popular languages such as .NET, Java, and PHP. It all depends on what your development team is comfortable with. That said, a lot of the particulars will depend on the nature of your application. What kind of data are you looking to remote? -- William --- In flexcoders@yahoogroups.com, Guido [EMAIL PROTECTED] wrote: Hi guys, I'm starting a project and was wondering on using an alternative for LCDS for remoting. I came across things like WebORB, GraniteDS or directly BlazeDS. I thought it would be wise to ask here for experiencies, suggestions, etc. Any leads on good alternatives? Thanks in advance! Guido.
[flexcoders] Re: tileList displaying items order other than that represented by dataProvider
interestingly I find that any if the itemRenderer's methods to retreive data as part of drawing the items is only called the 1st time the item is rendered. Switching views, even resorting in grid view and re-displaying the view stacks' tile view (where the renderer is drawing the icon representation of the tiled items) does NOT result in the item renderer being called on any of the subsequent displays of the tile/icon view. In a reply to the other response to my initial posting I suggested that I had 2 instances of this viewstack in my application, an 'old' one and a new one in which I'm attempting to component-ize the viewstack with 'N' views of the same dataset. The old implementation works, the new doesn't. In both implementations the above behavior of only calling the itemRenderer the 1st time each tile is rendered is observed so that in and of itself is not an issue apparently. --- In flexcoders@yahoogroups.com, Alex [EMAIL PROTECTED] wrote: Thanks for the tip From your blog entry I read Recycle to mean that I need an else clause wherever I have an if to ensure that the 'unhandled' condition is handled and some value for an attribute is always set. The renderer I have coded either always returns a value from its methods (i.e., no conditional statements) or where there IS an if clause there also needs to be an else to ensure that a value for the desired attribute is always provided. If my interpretation of 'recycle' is not correct please let me know. Thanks! Alex --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Are you using a custom renderer? Sounds like it doesn't know how to be recycled. More about renderer recycling on my blog (blogs.adobe.com/aharui) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Sent: Friday, December 21, 2007 2:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] tileList displaying items order other than that represented by dataProvider I have a problem with a viewStack that has 2 views, a dataGrid and a tileList view both of which which share a common dataProvider. - The tileList uses an itemRenderer to draw an icon/name for each item. - The datagrid affords the ability to sort the displayed items by clicking on the column headers. The initial display of both views is as expected, the sort order in the tileList view matches that of the items in the dataGrid view. A trace of the data items in the dataProvider invoked whenever I switch between views [via trace(datagrid.dataProvider) and trace(tilelist.dataProvider)] both show the items in the list in the order expected regardless of how many times I switch views back and forth. The items (a ListCollectionView of items of type Foo) listed by the trace as expected reflect the format of the toString function in the Foo class. Now the problem... 1) When I click a header in the dataGrid view to re-sort the data subsequent trace output of the dataProvider's list of objects changes to another format: (Array)#0 [0] (com.emc.sspg.cem.data::Foo)#1 attribute1_name = value1 attribute2_name = value2 [1] (com.emc.sspg.cem.data::Foo)#1 etc. I'm not sure why this happens.. 2) The array elements in the trace output are reordered to reflect the expected sort order as displayed in the dataGrid view AND the tileList view BUT the order of the actual icons drawn in the tileList view does not match the order of the items traced. (In fact I've yet to be able to discern what order they are now drawn in, its not the original pre-sorted order either.) - Another subtlety my trace statements have pointed out is that only the 1st time the icon view is drawn do the item renderers get called to actually get the icon and name to display. Solution-wise, while not a great solution I've tried to insert various functions to invalidate the drawing such that subsequent views of the icon view would re-call the renderers to prove to me that they are being drawn in the order that I'm seeing them left-to-right, top-to-bottom in the tileList but none of the following cause that to occur. tilelist.invalidateDisplayList(); tilelist.invalidateList(); tilelist.invalidateProperties(); tilelist.dataProvider.refresh(); Any thoughts regarding this would be appreciated. Thanks
[flexcoders] Configuration confusion
Hi everybody! I'm developing a java-flex based application, with Hibernate on the persitence layer, LifeCycle Data Services for the data management bridge, Flex 3 and Tomcat. I'm having the following problem: I configured the data-management-config.xml for using hibernate, as it look like this: ?xml version=1.0 encoding=UTF-8? service id=data-service class=flex.data.DataService adapters adapter-definition id=actionscript class=flex.data.adapters.ASObjectAdapter default=true/ adapter-definition id=java-dao class=flex.data.adapters.JavaAdapter/ /adapters default-channels channel ref=my-rtmp/ /default-channels destination id=cliente.hibernate adapter ref=java-dao / properties use-transactionstrue/use-transactions sourceflex.data.assemblers.HibernateAssembler/source scopeapplication/scope metadata !--This is the unique identifier from the hibernate-entity bean -- identity property=id/ /metadata network session-timeout20/session-timeout paging enabled=false pageSize=10 / throttle-inbound policy=ERROR max-frequency=500/ throttle-outbound policy=REPLACE max-frequency=500/ /network server hibernate-entityCliente/hibernate-entity fill-method namefill/name paramsjava.util.List/params /fill-method fill-configuration use-query-cachefalse/use-query-cache allow-hql-queriestrue/allow-hql-queries /fill-configuration /server /properties /destination /service and on my main application file, I configured my Data Service like this: mx:DataService id=hibernate destination=cliente.hibernate fault=handleFault(event) autoCommit=true / When I run the app, I get the following error: (mx.messaging.messages::ErrorMessage)#0 body = (null) clientId = 88A7286C-B62A-6234-34EB-1D36CD867103 correlationId = 8957022A-3A2D-A41D-8E54-1D36CEBE9CEC destination = cliente.hibernate extendedData = (null) faultCode = Server.Processing faultDetail = (null) faultString = No destination with id 'cliente.hibernate' is registered with any service. headers = (Object)#1 messageId = 6E52CF57-AD38-379D-43E8-A96E55258626 rootCause = (null) timestamp = 1198786006781 timeToLive = 0 Trying to do some test, I realized that if I change the destination on the mxml, pointing to something that doesn't exists, I get this error: [MessagingError message='Destination 'clienteT.hibernate' has no channels defined and the application does not define any default channels.'][...](and all the stack trace) It appears like they are linked, but there's something missing. Any ideas?
[flexcoders] Custom HTTP Headers broken?
With the latest Flex 3 beta release, I can't get any custom headers to be sent without: 1) The method being POST (e.g. URLRequestMethod.POST) 2) Some data sent (e.g. request.data = new URLVariables(name=John+Doe);) This is on OS X using Safari or Firefox. Search the archives seems to indicate I should be able to add a custom header even with a simple HTTP GET, but the documentation is vague enough I thought I'd post here first to check before filing a bug. Thanks
[flexcoders] why frontcontroller doesn't work?
Hi, After add the statement to FrontController this.addCommand(LoginEvent.PROCESSES, LoginCommand); LoginCommand never happen when LoginEvent active.why? Thanks Mark
RE: [flexcoders] Re: tileList displaying items order other than that represented by dataProvider
Alex, recycle means that in a list based component, item renderer instances are only created for the visible rows, plus a few more for buffering. When the underlying dataProvider of the list is changed, or sorted, or really touched in any most any way, or when the list is scrolled, the framework re-sets the data property of each renderer, passing in the dataProvider item. (and calls invalidateProperties()) So any visual aspect of the renderer that depends on the underlying data item must be re-calculated and re-displayed whenever that 'data property changes. (really a bit later, see Alex H's blog ) You can not do it in the initialize, or creationComplete events, because those get called once, when the component first instantiates. I can't tell from your posting how you are handling this. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Sent: Thursday, December 27, 2007 2:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: tileList displaying items order other than that represented by dataProvider interestingly I find that any if the itemRenderer's methods to retreive data as part of drawing the items is only called the 1st time the item is rendered. Switching views, even resorting in grid view and re-displaying the view stacks' tile view (where the renderer is drawing the icon representation of the tiled items) does NOT result in the item renderer being called on any of the subsequent displays of the tile/icon view. In a reply to the other response to my initial posting I suggested that I had 2 instances of this viewstack in my application, an 'old' one and a new one in which I'm attempting to component-ize the viewstack with 'N' views of the same dataset. The old implementation works, the new doesn't. In both implementations the above behavior of only calling the itemRenderer the 1st time each tile is rendered is observed so that in and of itself is not an issue apparently. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex [EMAIL PROTECTED] wrote: Thanks for the tip From your blog entry I read Recycle to mean that I need an else clause wherever I have an if to ensure that the 'unhandled' condition is handled and some value for an attribute is always set. The renderer I have coded either always returns a value from its methods (i.e., no conditional statements) or where there IS an if clause there also needs to be an else to ensure that a value for the desired attribute is always provided. If my interpretation of 'recycle' is not correct please let me know. Thanks! Alex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Are you using a custom renderer? Sounds like it doesn't know how to be recycled. More about renderer recycling on my blog (blogs.adobe.com/aharui) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Alex Sent: Friday, December 21, 2007 2:11 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] tileList displaying items order other than that represented by dataProvider I have a problem with a viewStack that has 2 views, a dataGrid and a tileList view both of which which share a common dataProvider. - The tileList uses an itemRenderer to draw an icon/name for each item. - The datagrid affords the ability to sort the displayed items by clicking on the column headers. The initial display of both views is as expected, the sort order in the tileList view matches that of the items in the dataGrid view. A trace of the data items in the dataProvider invoked whenever I switch between views [via trace(datagrid.dataProvider) and trace(tilelist.dataProvider)] both show the items in the list in the order expected regardless of how many times I switch views back and forth. The items (a ListCollectionView of items of type Foo) listed by the trace as expected reflect the format of the toString function in the Foo class. Now the problem... 1) When I click a header in the dataGrid view to re-sort the data subsequent trace output of the dataProvider's list of objects changes to another format: (Array)#0 [0] (com.emc.sspg.cem.data::Foo)#1 attribute1_name = value1 attribute2_name = value2 [1] (com.emc.sspg.cem.data::Foo)#1 etc. I'm not sure why this happens.. 2) The array elements in the trace output are reordered to reflect the expected sort order as displayed in the dataGrid view AND the tileList view BUT the order of the actual icons drawn in the tileList view does not match the order of the items traced. (In fact I've yet to be able to discern what order they are now drawn in, its not the original
Re: [flexcoders] Re: Different DataTips for multiple series in one chart.
I was afraid I'd have to go that way... I wanted to have a more polymorphic solution to this, but well, it seems that Flex and AS still have some maturing to do in that direction. Thanks jer_ela! :) On Dec 26, 2007 12:30 PM, jer_ela [EMAIL PROTECTED] wrote: dataTipFunction is a property of the chart, not the series, so you will have to have a single function that looks at the hitData to determine which series the mouse is over. The hitData.element property will give you access to the properties of the series that the mouse is over. If you give the series ids, you can then have your datatip function call your series specific function based on the element id. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Guido [EMAIL PROTECTED] wrote: any clues on this one guys? On Dec 13, 2007 3:20 PM, Guido [EMAIL PROTECTED] wrote: Oh, I forgot: I'm using Flex 2.0.1 On Dec 13, 2007 3:20 PM, Guido [EMAIL PROTECTED] wrote: Hi, people. I have a LineChart with multiple series in it, and I'd like to have a custom data tip function for each series, and not one for the whole chart. I've thought of a couple of ways of doing this, but none of them are what you'd call 'tidy'. I'd like to know if there's a reasonably declarative fashion (that is, without using an if ... then ... else statement and comparing to a given property on the hit data on my data tip function) of specifying a custom data tip function for a specific series in the chart, instead of using one single data tip function for all series in the chart. Any ideas on this one? Here's my code (I know there's no dataTipFunction specified on the chart right now, since it makes data tips for all series the same): mx:LineChart id=lineChart height=100% showDataTips=true width=100% mx:horizontalAxis mx:CategoryAxis displayName=Muestra categoryField={ClinicalStudy.xField} dataProvider={selectedStudy.results}/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis alignLabelsToInterval=false autoAdjust=false baseAtZero=false displayName=Valor maximum={maxVerticalAxis} minimum={minVerticalAxis}/ /mx:verticalAxis mx:series mx:LineSeries dataProvider={selectedStudy.results} displayName={ selectedStudy.name} yField={ClinicalStudy.yField} mx:lineStroke mx:Stroke alpha=0.8 color=#F5821F weight=4/ /mx:lineStroke /mx:LineSeries mx:LineSeries dataProvider={selectedStudy.averageDataProvider} displayName=Media yField={ClinicalStudy.yField} mx:lineStroke mx:Stroke alpha=0.8 color=#499615 weight=2/ /mx:lineStroke /mx:LineSeries /mx:series /mx:LineChart Thanks in advance, Guido.
Re: [flexcoders] Alternatives to LCDS
Guido escreveu: Hi guys, I'm starting a project and was wondering on using an alternative for LCDS for remoting. I came across things like WebORB, GraniteDS or directly BlazeDS. I thought it would be wise to ask here for experiencies, suggestions, etc. Any leads on good alternatives? Thanks in advance! Guido. __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com I've been using amfphp and graniteds. Both are quite easy to use. Granite doesn't need J2EE, (see the POJO sections) but it requires Tomcat or JBoss to deploy. amfphp as the advantage of being PHP wich is much easier to find hosting for. Soon I'll be posting a tutorial on preparing FB to better develop in Java based Remoting frameworks. I can't help you with Blaze since I've been too busy to experiment with it, but the possibility of messaging (the ability to do callbacks) FOR FREE in Flash is one of it's coolest features. Hope I was helpful, Frederico Garcia
Re: [flexcoders] why frontcontroller doesn't work?
Are you instantiating the controller? Cheers Ralf. On Dec 27, 2007 10:32 PM, markflex2007 [EMAIL PROTECTED] wrote: Hi, After add the statement to FrontController this.addCommand(LoginEvent.PROCESSES, LoginCommand); LoginCommand never happen when LoginEvent active.why?
Re: [flexcoders] Alternatives to LCDS
Thanks For the feedback! We're planning on using a Java backend running on a simple Tomcat server, since the app will not be massivelly intended. I guess the wise choice would be either WebORB for Java or LCDS Express. Do you have any commens on any of these technologies? Thanks, Guido. On Dec 27, 2007 5:42 PM, Frederico Garcia [EMAIL PROTECTED] wrote: Guido escreveu: Hi guys, I'm starting a project and was wondering on using an alternative for LCDS for remoting. I came across things like WebORB, GraniteDS or directly BlazeDS. I thought it would be wise to ask here for experiencies, suggestions, etc. Any leads on good alternatives? Thanks in advance! Guido. __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com I've been using amfphp and graniteds. Both are quite easy to use. Granite doesn't need J2EE, (see the POJO sections) but it requires Tomcat or JBoss to deploy. amfphp as the advantage of being PHP wich is much easier to find hosting for. Soon I'll be posting a tutorial on preparing FB to better develop in Java based Remoting frameworks. I can't help you with Blaze since I've been too busy to experiment with it, but the possibility of messaging (the ability to do callbacks) FOR FREE in Flash is one of it's coolest features. Hope I was helpful, Frederico Garcia
[flexcoders] Solid state harddrive to speed up flexbuilder?
I wonder if someone has tested solid state harddrives with Flexbuilder. Should give some performance boost, or? Cheers Ralf.
[flexcoders] Re: how to Avoid - Compbo box fills up the first item when databinding is used
you can add the following attribute: prompt=Please select... That will be the first option in your combo. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: What do you want to happen? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of srikanth_reddy_007 Sent: Wednesday, November 14, 2007 8:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to Avoid - Compbo box fills up the first item when databinding is used About Combobox filling up the first item by default when we databinding I don't get what you mean to say ... I have the code like this mx:ComboBox id=txtFamilyName y=24 left=10 right=10 editable=true focusIn=fetchAutoCompleteData(event, 'Family') dataProvider={modelLocator.searchModel.family} focusOut=foucusOutHandler()/ in fetchAutoCompleteData function i will connect to database and update modelLocator.searchModel.family variable which has a databinding to ComboBox dataprovider. then the combobox will get populated with the first item of modelLocator.searchModel.family array . How can i avoid this? and secondly the combobox grows its size to the max item fetched in the array. how can i avoid that too. Thanks, Srikanth
[flexcoders]Setting DataGrid header to transparent
Is there a way to set the Datagrid header to transparent? I want to set the header background fill to transparent and show a border along the bottom of the column headers. Currently the CSS Design View does not let me change the Datagrid header fill alpha. Here is the code I am using: mx:XML id=xmlData format=e4x XML1 items item name=item 1 enabled=true column1=8:00PM / /items /XML1 /mx:XML mx:DataGrid x=10 y=71 dataProvider={xmlData.items.item} mx:columns mx:DataGridColumn headerText=Name dataField=@name/ mx:DataGridColumn headerText=Column 1 dataField=@column1/ mx:DataGridColumn headerText=Edit dataField=edit/ mx:DataGridColumn headerText=Enabled dataField=@enabled/ /mx:columns /mx:DataGrid
RE: [flexcoders] Re: how to Avoid - Compbo box fills up the first item when databinding is used
You can also set the selectedIndex to -1. That will not select anything. When I'm using data binding with the comboBox, and I'm using a value object, I usually set the initial values for the comboBoxes in the constructor for the value object class. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dallas Sent: Thursday, December 27, 2007 4:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: how to Avoid - Compbo box fills up the first item when databinding is used you can add the following attribute: prompt=Please select... That will be the first option in your combo. --- In HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED], Alex Harui [EMAIL PROTECTED] wrote: What do you want to happen? -_-_-__ From: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of srikanth_reddy_-007 Sent: Wednesday, November 14, 2007 8:01 AM To: HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] Subject: [flexcoders] how to Avoid - Compbo box fills up the first item when databinding is used About Combobox filling up the first item by default when we databinding I don't get what you mean to say ... I have the code like this mx:ComboBox id=txtFamilyName y=24 left=10 right=10 editable=true focusIn=fetchAutoC-ompleteData(-event, 'Family') dataProvider=-{modelLocator.-searchModel.-family} focusOut=foucusOut-Handler()-/ in fetchAutoCompleteDa-ta function i will connect to database and update modelLocator.-searchModel.-family variable which has a databinding to ComboBox dataprovider. then the combobox will get populated with the first item of modelLocator.-searchModel.-family array . How can i avoid this? and secondly the combobox grows its size to the max item fetched in the array. how can i avoid that too. Thanks, Srikanth No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.9/1198 - Release Date: 12/26/2007 5:26 PM
Re: [flexcoders] Alternatives to LCDS
Guido escreveu: Thanks For the feedback! We're planning on using a Java backend running on a simple Tomcat server, since the app will not be massivelly intended. I guess the wise choice would be either WebORB for Java or LCDS Express. Do you have any commens on any of these technologies? Thanks, Guido. On Dec 27, 2007 5:42 PM, Frederico Garcia [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Guido escreveu: Hi guys, I'm starting a project and was wondering on using an alternative for LCDS for remoting. I came across things like WebORB, GraniteDS or directly BlazeDS. I thought it would be wise to ask here for experiencies, suggestions, etc. Any leads on good alternatives? Thanks in advance! Guido. __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com http://www.eset.com/ I've been using amfphp and graniteds. Both are quite easy to use. Granite doesn't need J2EE, (see the POJO sections) but it requires Tomcat or JBoss to deploy. amfphp as the advantage of being PHP wich is much easier to find hosting for. Soon I'll be posting a tutorial on preparing FB to better develop in Java based Remoting frameworks. I can't help you with Blaze since I've been too busy to experiment with it, but the possibility of messaging (the ability to do callbacks) FOR FREE in Flash is one of it's coolest features. Hope I was helpful, Frederico Garcia __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Well, here's an article about WebOrb. I would go with BlazeDS though. It's based on LCDS, and is in my opinion what most Flex developer using Remoting were waiting for a long time. Regards, Frederico Garcia
Re: [flexcoders] Alternatives to LCDS
Frederico Garcia escreveu: Guido escreveu: Thanks For the feedback! We're planning on using a Java backend running on a simple Tomcat server, since the app will not be massivelly intended. I guess the wise choice would be either WebORB for Java or LCDS Express. Do you have any commens on any of these technologies? Thanks, Guido. On Dec 27, 2007 5:42 PM, Frederico Garcia [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Guido escreveu: Hi guys, I'm starting a project and was wondering on using an alternative for LCDS for remoting. I came across things like WebORB, GraniteDS or directly BlazeDS. I thought it would be wise to ask here for experiencies, suggestions, etc. Any leads on good alternatives? Thanks in advance! Guido. __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com http://www.eset.com/ I've been using amfphp and graniteds. Both are quite easy to use. Granite doesn't need J2EE, (see the POJO sections) but it requires Tomcat or JBoss to deploy. amfphp as the advantage of being PHP wich is much easier to find hosting for. Soon I'll be posting a tutorial on preparing FB to better develop in Java based Remoting frameworks. I can't help you with Blaze since I've been too busy to experiment with it, but the possibility of messaging (the ability to do callbacks) FOR FREE in Flash is one of it's coolest features. Hope I was helpful, Frederico Garcia __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Well, here's an article about WebOrb. I would go with BlazeDS though. It's based on LCDS, and is in my opinion what most Flex developer using Remoting were waiting for a long time. Regards, Frederico Garcia -- 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 __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Sorry, forgot the link to the article: http://flex.sys-con.com/read/474885.htm
[flexcoders] Re: File Upload question
Thanks Garcia, I will have a try on that! Happy New Year! Dan --- In flexcoders@yahoogroups.com, Frederico Garcia [EMAIL PROTECTED] wrote: Dan escreveu: Hi, Does anyone tried implement a file upload to a server through servlet while the server is sit behind a proxy? Will the crossdomain issue becomes a problem? I have set up a serlvet with upload function which works perfect, however, when i deploy the servlet into another server, which i can only reached through a proxy, the upload failed. Is there any setting i need to take care of? Dan -- 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 __ NOD32 2747 (20071225) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com You must have a file .htaccess inside public_html containing: SecFilterEngine Off SecFilterScanPOST Off If this doesn't work install ethereal and check for the error code you're getting from the server. Hope this helps, Frederico Garcia
RE: [flexcoders]Setting DataGrid header to transparent
Override drawHeaderBackground? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Thursday, December 27, 2007 3:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]Setting DataGrid header to transparent Is there a way to set the Datagrid header to transparent? I want to set the header background fill to transparent and show a border along the bottom of the column headers. Currently the CSS Design View does not let me change the Datagrid header fill alpha. Here is the code I am using: mx:XML id=xmlData format=e4x XML1 items item name=item 1 enabled=true column1=8:00PM / /items /XML1 /mx:XML mx:DataGrid x=10 y=71 dataProvider={xmlData.items.item} mx:columns mx:DataGridColumn headerText=Name dataField=@name/ mx:DataGridColumn headerText=Column 1 dataField=@column1/ mx:DataGridColumn headerText=Edit dataField=edit/ mx:DataGridColumn headerText=Enabled dataField=@enabled/ /mx:columns /mx:DataGrid
RE: [flexcoders] mx:Image loading swf from URL not working consistently on OS X.
Strip out your logic so it really is just an Image in an App and see if it does load. It might just take longer after a cache clear From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wdsnapper Sent: Thursday, December 27, 2007 10:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Image loading swf from URL not working consistently on OS X. Hello, I have an application that runs on every Windows based browser I've tested so far and even on Mac OS X up to version 9.0.47 of the flash player plugin. Recently a security update to 9.0.115 on Mac has caused an app to break. I broke it down to a simple test case. mx:Application . . . mx:Canvas . . . mx:Image source=swfUrl / /mx:Canvas . . . /mx:Application . . . The first time the main app loads the SWF loaded by the mx:Image tag does the right thing. The swf is pulled from the web, it runs and works as desired. Subsequent refresh of the web page will not show the swf. The SWF being loaded by the mx:Image tag is only a simple short flash movie. The main application does in fact run but this loading swf doesn't show on subsequent loads of the page on OS X. I have a timer in the main application that governs the time the Image SWF is shown and then runs the main logic. The main logic always runs and works fine. Have any of you seen any behavior like this? One more note is that the source for the Image can be a SWF that is embedded in the main application. This ALWAYS works fine when specified. The only issue is loading the SWF over http and only after the first load following a cache clear (Safari and Firefox on Max OS X show the same behavior). The external swf is specified with a url parameter passed into the main app. If this parameter is not present the app loads the embedded swf for the splash. I run the app on Windows on IE, FF, and Safari and no problem. Any hints? Thanks in advance.
RE: [flexcoders] Icon for Button
The styleName for all renderers is the column it belongs to. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icon for Button I want to have a button in one of columns in the DataGrid. This button will delete rows on its click. I am adding the button to dataGrid as a itemRenderer. I am extending class Button: public class deleteRowGrid extends Button { public function deleteRowGrid() { super(); styleName = DeleteRow; } } I am using styleName to set an icon for the button. DeleteRow style is declared in the main application. When I run my code I have a button in the column but with no icon. Any idea why? Thanks
RE: [flexcoders] What event to catch
focusOut From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 6:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] What event to catch My Grids has an ability to add a new record when a user presses down key being at the last record. But I also want to remove that record if he navigates away from that record while nothig was entered into any cell. What even do I catch to remove this record? Also when I add a new record I want to highlight it and have a mouse pointer in one of the cells. Is that possible to do? Thanks for help.
[flexcoders] Filter typing characters
I want to prevent some characters from being entered from the keyboard. I want to have a generic solution that I can reuse in every keyboard compitable UI: textInput, Combobox, and etc. Any tips? Thanks
Re: [flexcoders] Filter typing characters
markgoldin_2000 escreveu: I want to prevent some characters from being entered from the keyboard. I want to have a generic solution that I can reuse in every keyboard compitable UI: textInput, Combobox, and etc. Any tips? 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 __ NOD32 2751 (20071227) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com Hi, Check the source code of NumericStepper. If this doesn't help let me know. Frederico Garcia
Re: [flexcoders] flex rich edit control with image support
Please consider it. The Flex community could use it. If you don't have time maybe you could give your code to the community to finish? -Andy On Nov 21, 2007 11:34 PM, DreamCode [EMAIL PROTECTED] wrote: I started doing one a while back, but got too busy with other stuff and I never got back to it, I might consider it if there's enough demand from the community You can see a screenshot of how it looks in the skin i made at http://www.bimlab.net/allan/flexskin.jpg --a On Nov 20, 2007 5:39 PM, ohhmaagawd [EMAIL PROTECTED]phil.swenson%40gmail.com wrote: I was disappointed when I tried out the rich edit control in FB3. There appears to be no image support. A google search turned up nothing has anyone improved upon the standard Rich Text Control? I love the Yahoo Rich Edit control(http://developer.yahoo.com/yui/examples/editor/index.html ), it far surpasses the flex one... tab works like a rich edit tab should (it indents), nice keyboard shortcuts, excellent image support (with resize). I'm hoping something equivalent exists in flex-land. thanks for any thoughts phil
[flexcoders] Re: mx:Image loading swf from URL not working consistently on OS X.
I found a solution. This seemed to be caused by either the browser or flash player caching the movie being loaded. Why it wouldn't just run is beyond me. The solution I put in place is to append a query string with the date to the movie being loaded into the Image. This worked. Why did this pop up with the current release of the flash player? No idea. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Strip out your logic so it really is just an Image in an App and see if it does load. It might just take longer after a cache clear From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wdsnapper Sent: Thursday, December 27, 2007 10:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Image loading swf from URL not working consistently on OS X. Hello, I have an application that runs on every Windows based browser I've tested so far and even on Mac OS X up to version 9.0.47 of the flash player plugin. Recently a security update to 9.0.115 on Mac has caused an app to break. I broke it down to a simple test case. mx:Application . . . mx:Canvas . . . mx:Image source=swfUrl / /mx:Canvas . . . /mx:Application . . . The first time the main app loads the SWF loaded by the mx:Image tag does the right thing. The swf is pulled from the web, it runs and works as desired. Subsequent refresh of the web page will not show the swf. The SWF being loaded by the mx:Image tag is only a simple short flash movie. The main application does in fact run but this loading swf doesn't show on subsequent loads of the page on OS X. I have a timer in the main application that governs the time the Image SWF is shown and then runs the main logic. The main logic always runs and works fine. Have any of you seen any behavior like this? One more note is that the source for the Image can be a SWF that is embedded in the main application. This ALWAYS works fine when specified. The only issue is loading the SWF over http and only after the first load following a cache clear (Safari and Firefox on Max OS X show the same behavior). The external swf is specified with a url parameter passed into the main app. If this parameter is not present the app loads the embedded swf for the splash. I run the app on Windows on IE, FF, and Safari and no problem. Any hints? Thanks in advance.
RE: [flexcoders] What event to catch
Is there an applicable event at the Gird level? Alex Harui [EMAIL PROTECTED] wrote: focusOut - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 6:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] What event to catch My Grids has an ability to add a new record when a user presses down key being at the last record. But I also want to remove that record if he navigates away from that record while nothig was entered into any cell. What even do I catch to remove this record? Also when I add a new record I want to highlight it and have a mouse pointer in one of the cells. Is that possible to do? Thanks for help.
RE: [flexcoders] Filter typing characters
Most of our text components support the .restrict property (see TextField.restrict). You can also capture the textInput event From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 6:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Filter typing characters I want to prevent some characters from being entered from the keyboard. I want to have a generic solution that I can reuse in every keyboard compitable UI: textInput, Combobox, and etc. Any tips? Thanks
RE: [flexcoders] What event to catch
If you read the docs, you'll see that it bubbles From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, December 27, 2007 6:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] What event to catch Is there an applicable event at the Gird level? Alex Harui [EMAIL PROTECTED] wrote: focusOut From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 6:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] What event to catch My Grids has an ability to add a new record when a user presses down key being at the last record. But I also want to remove that record if he navigates away from that record while nothig was ent! ered into any cell. What even do I catch to remove this re! cord? Also when I add a new record I want to highlight it and have a mouse pointer in one of the cells. Is that possible to do? Thanks for help.
RE: [flexcoders] Icon for Button
And how are you using that style? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, December 27, 2007 6:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icon for Button I am using this code: var consistPersonnel1Delete:AdvancedDataGridColumn = Personnel1Grid.columns[3]; consistPersonnel1Delete.setStyle( image, DeleteRow); Still have no image. Alex Harui [EMAIL PROTECTED] wrote: The styleName for all renderers is the column it belongs to. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icon for Button I want to have a button in one of columns in the DataGrid. This button will delete rows on its click. I am adding the button to dataGrid as a itemRenderer. I am extending class Button: public class deleteRowGrid extends Button { public function deleteRowGrid() { super(); styleName = DeleteRow; } } I am using styleName to set an icon for the button. DeleteRow style is declared in the main application. When I run my code I have ! a button in the column but with no icon. Any idea why? Thanks
RE: [flexcoders] Icon for Button
My style is set in the main application: mx:Style .DeleteRow { icon:Embed(source='../assets/cut.png'); } /mx:Style I thought setting up style will show my image for every button in the column. Alex Harui [EMAIL PROTECTED] wrote: And how are you using that style? - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, December 27, 2007 6:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icon for Button I am using this code: var consistPersonnel1Delete:AdvancedDataGridColumn = Personnel1Grid.columns[3]; consistPersonnel1Delete.setStyle( image, DeleteRow); Still have no image. Alex Harui [EMAIL PROTECTED] wrote: The styleName for all renderers is the column it belongs to. - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icon for Button I want to have a button in one of columns in the DataGrid. This button will delete rows on its click. I am adding the button to dataGrid as a itemRenderer. I am extending class Button: public class deleteRowGrid extends Button { public function deleteRowGrid() { super(); styleName = DeleteRow; } } I am using styleName to set an icon for the button. DeleteRow style is declared in the main application. When I run my code I have ! a button in the column but with no icon. Any idea why? Thanks
Re: [flexcoders] Solid state harddrive to speed up flexbuilder?
Would really doubt it - RAM helps to certain extent, but you max out on transcoding and other operatins. Would move images, fonts, etc in separate project /RSL . On large project I would go with most of the code in RSLs and architecture that would minimize number of static links. Regards, Anatole PS. Nice work on DataGridItemRenderer last year, learned a few things there On 12/27/07, Ralf Bokelberg [EMAIL PROTECTED] wrote: I wonder if someone has tested solid state harddrives with Flexbuilder. Should give some performance boost, or? Cheers Ralf.
RE: [flexcoders] Icon for Button
.DeleteRow is a class selector and must be assigned via the styleName property, which you can't really do because in a DataGrid a styleName must point to the DataGridColumn. I think all you want to do is embed the icon to a class: [Embed(source=../assets/cut.png')] public var mark:Class; and then do: consistPersonnel1Delete.setStyle( icon, mark); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, December 27, 2007 7:24 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icon for Button My style is set in the main application: mx:Style .DeleteRow { icon:Embed(source='../assets/cut.png'); } /mx:Style I thought setting up style will show my image for every button in the column. Alex Harui [EMAIL PROTECTED] wrote: And how are you using that style? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mark goldin Sent: Thursday, December 27, 2007 6:48 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Icon for Button I am using this code: var consistPersonnel1Delete:AdvancedDataGridColumn = Personnel1Grid.columns[3]; consistPersonnel1Delete.setStyle( image, DeleteRow); Still have no image. Alex Harui [EMAIL PROTECTED] wrote: The styleName for all renderers is the column it belongs to. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Thursday, December 27, 2007 8:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icon for Button I want to have a button in one of columns in the DataGrid. This button will delete rows on its click. I am adding th! e button to dataGrid as a itemRenderer. I am extending class Button: public class deleteRowGrid extends Button { public function deleteRowGrid() { super(); styleName = DeleteRow; } } I am using styleName to set an icon for the button. DeleteRow style is declared in the main application. When I run my code I have ! a button in the column but with no icon. Any idea why? Thanks
Re: [flexcoders] Custom HTTP Headers broken?
custom headers function within the sand box security. have you read the docs and http sniffed a bit? On Dec 27, 2007 3:46 PM, scott.royston [EMAIL PROTECTED] wrote: With the latest Flex 3 beta release, I can't get any custom headers to be sent without: 1) The method being POST (e.g. URLRequestMethod.POST) 2) Some data sent (e.g. request.data = new URLVariables(name=John+Doe);) This is on OS X using Safari or Firefox. Search the archives seems to indicate I should be able to add a custom header even with a simple HTTP GET, but the documentation is vague enough I thought I'd post here first to check before filing a bug. Thanks -- j:pn \\no comment