[flexcoders] Re: wsdl path error
--- In flexcoders@yahoogroups.com, Jaganathan.K [EMAIL PROTECTED] wrote: Place the crossdomain.xml file on your server path so that you can access it at http://abc.com/crossdomain.xml Your xml file should contain the following code ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* / /cross-domain-policy OR There is an alternative, where you need to add -use-network=false to the additional compiler arguments of your project. You can right click on your project and click the properties, you can find additional compiler arguments in the flex compiler. Hope this helps... --- In flexcoders@yahoogroups.com, slash_n_rose slash_n_rose@ wrote: Hi, When I access data from server using webservice I have to specify the path of wsdl. There is a problem with that For example If I give the path as http://www.abc.com/service.asmx?WSDL, I cant access the html page containing that swf movie with out using www infront of the url. If I access the html page just like http://abc.com/test.html its throwing an error. The vice versa is also making problem.. If the service is in the same domain I can give relative path to avoid this problem, but how can we solve this problem if the service is in a different domain? Please help Jerry Thank you all
[flexcoders] List itemrenderer problem
Hi I m using a list with an item renderer(some labels). Items in the list shows some errors when i update an item in my dataprovider(array collection) . The item renderer's label donot shows the updated object's data.But the arraycollections is updated successfully..
RE: [flexcoders] Problem using a subclass of ComboBox in actionscript
That doesn't ring a bell. Can you post simple-as-possible versions of your subclass and an that shows the problem? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of johnknyc Sent: Thursday, April 26, 2007 7:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem using a subclass of ComboBox in actionscript Hi all, I created a AS subclass of ComboBox. I can use the subclass in MXML, however when I try to instantiate the subclass in AS, it comes up blank when I run the app. I tried running a trace in the subclass's constructor, and it seems the constructor is not even being called. Any ideas?
RE: [flexcoders] FF and Java sessions
Doing the same thing (Tomcat backend). Works fine with FF, IE and Opera (although I still think Flex/Flash should take care of this for me) _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Friday, April 27, 2007 5:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] FF and Java sessions I am doing a POST as well... this problem only happens with FireFox...works fine with IE. So just trying to see what ppl do for FF. Dimitrios Gianninas Developer Optimal Payments Inc. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Thursday, April 26, 2007 7:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FF and Java sessions Dimitrios, I actually get the same JSESSIONID value when i make an upload request to a servlet. Although i am making a POST request and send vars via the URLVariables object. example: var req:URLRequest = new URLRequest( config_model.userConfig.datasetUpPath + /upload ); var urlVars:URLVariables = new URLVariables(); urlVars.id = upload_model.fileID; urlVars.username = config_model.userConfig.username; urlVars.password = config_model.userConfig.password; req.data = urlVars; req.method = URLRequestMethod.POST; upload_model.artworkFileRef.upload( req ); Bjorn. On 27/04/2007, at 7:38 AM, Dimitrios Gianninas wrote: As some of you may already know, when performing a file upload with Flex to a Java servlet, a new session is created not matching the existing session the user has with the server when their Flex app actually loads. I've read some posts and see that ppl are appending the JSESSIONID to the url to get the same session to be used by the server when an upload request is sent by a Flex app. By doing: var req:URLRequest = new URLRequest(/billing/servlet/FileSvlt;JSESSIONID= + jSessionId); But this doesnt work for me any reason why? something I am doing wrong? Dimitrios Gianninas Developer Optimal Payments Inc. AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. Lexpéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou sil est retransmis sans son autorisation. Si vous nêtes pas le destinataire visé du présent message ou si vous lavez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser lexpéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. Regards, Bjorn Schultheiss Senior Developer QDC http://www.qdc.net.au/email/qdcsig.gif Personalised Communication Power Level 2, 31 Coventry St. South Melbourne 3205, VIC Australia T: +61 3 9674 7400 F: +61 3 9645 9160 W: http://www.qdc. http://www.qdc.net.au net.au ((This transmission is confidential and intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---))
Re: [flexcoders] Games in Flex / Apollo?
I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. On 4/27/07, Andrew [EMAIL PROTECTED] wrote: I'm working on a new blog that will center around game creation using Flex and Apollo. So far it seems that everyone has focused on traditional applications using Flex. I'm hoping to shake that up a bit with not only blogging about Flex-based games but helping to create some game libraries for Flex. I was wondering if anyone here is contemplating doing any game building using Flex/Apollo. -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
RE: [flexcoders] FF and Java sessions
Hmm... we use the same technique here and it works (it worked in IE anyway, this was needed for Firefox only). Not sure if this is relevant but we use Tomcat 5.5.20 Dirk. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, April 26, 2007 11:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FF and Java sessions As some of you may already know, when performing a file upload with Flex to a Java servlet, a new session is created not matching the existing session the user has with the server when their Flex app actually loads. I've read some posts and see that ppl are appending the JSESSIONID to the url to get the same session to be used by the server when an upload request is sent by a Flex app. By doing: var req:URLRequest = new URLRequest(/billing/servlet/FileSvlt;JSESSIONID= + jSessionId); But this doesnt work for me any reason why? something I am doing wrong? Dimitrios Gianninas Developer Optimal Payments Inc. AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender.
[flexcoders] Re: NetConnection.Connect.Failed
hello greg h Sorry to bother you again . I met the problem that I couldn't play flv file streaming from FMS server in browser. here is my codes: var nc:NetConnection ; public function connection():void{ if (Connect_btn.label == Connect ){ nc = new NetConnection(); nc.objectEncoding = flash.net.ObjectEncoding.AMF0; nc.addEventListener(NetStatusEvent.NET_STATUS, ncStatusHandler); nc.connect(rtmp:/videodisplay); Connect_btn.label = DisConnection; }else{ nc.close(); } } private function ncStatusHandler(event:NetStatusEvent):void{ var status :String = event.info.code; switch (status) { case NetConnection.Connect.Success: connectStream(); break; } } private function netStatusHandler(event:NetStatusEvent):void { var status :String = event.info.code; switch (status) { case NetStream.Play.StreamNotFound: result.text = Stream not found: ; break; case NetStream.Play.Reset: result.text = play reset ; break ; case NetStream.Play.Start: result.text = playing; break; } } private function connectStream():void { var stream:NetStream = new NetStream(nc); stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); var client:Object = new Object( ); client.onMetaData = function(metadata:Object):void { trace(metadata.duration); }; stream.client = client; stream.play(phone.flv); var video:Video = new Video(); video.height = 120; video.width = 200; video.attachNetStream(stream); canvas.addChild(video); } I placed phone.flv file in applications/videodisplay directory .When I debug this application , these codes caught all cases decleared in ncStatusHandler and netStatusHandler function .However , the surprisingthing is phone.flv couldn't be played .I saw phone.flv was loaded in View application tab of admin panel ,and type ,status of phone.flv was respectively Live ,Viewing.I totally confused where was wrong ? Thanks in advance.
[flexcoders] Howto dynamicly bind XML element to a TextInput component using BindingUtils?
The question is: Howto dynamicly bind XML element to a TextInput component using BindingUtils? Now I use following codes: !-- [Bindable] private var xml: XML = itemlabellist1/label/item; // initialize code for application's initialize event private function init(): void { BindingUtils.bindProperty(txtDemo, text, xml, label); } //click event private function test(): void { xml.label = something; // txtDemo.executeBindings(); // no use anymore } -- mx:TextInput id=txtDemo/ mx:Button label=Test click=test()/ //-- My really idea is when bindable xml property is changed, then the textinput will be updated as hoped. However, no update happens to me when I click the Test button. But, if I make codes like that: mx: TextInput id=txtDemo text={xml.label}/ the text will updated when xml changs. So, what happened, I indeed need the dynamicly bind to the textinput compont. Help me. thanks.
Re: [flexcoders] Games in Flex / Apollo?
On 4/27/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. (True, but Flash CS3 is $699 more than the cost of the Flex SDK.) e
[flexcoders] Reload detection of a flex application
Hi, Is there any reliable way to detect a full reload of a Flex app (after a browser reload button click or a back/return for example). It seems possible, with RemoteObject, to use the incremented response prefix on an AMF3 body (/1, /2, ..., /n, then /1... again after a reload). But is it really reliable ? The point is to know, on server side, that the client has lost all cached informations. Thanks for any hints, Franck.
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
At fitc Ted Patrick announced that Flex 3 will have platform-neutral support for data integration with .Net, Java, PHP, etc.. see Aral Balkan's notes from the keynote: http://aralbalkan. com/922 http://aralbalkan.com/922 /*I'm very excited about the back-end neutrality and the additional language intelligence in Flex Builder 3. Refactoring support is going to be a huge productivity booster and the integrated profiler should prove very useful.*/ I don't know exactly what that means - we'll have to wait and see. Cheers, -Brian mvbaffa wrote: I beleive that Adobe wants to increase its participation in the software development market. .NET is very good and its number of developers is huge. That's why they should not be fogotten. This at least is naive. Adobe has one thing that Microsoft does not have, FLASH. This is the key to success if it is well conducted. I do not care about politics. I really do not care which is the winner Microsoft or Adobe. The winner will be the one that can deploy good and affordable products. -- __ Brian Lesser Assistant Director, Application Development and Integration Computing and Communications Services Ryerson University 350 Victoria St. Toronto, Ontario Phone: (416) 979-5000 ext. 6835 M5B 2K3Fax: (416) 979-5220 Office: POD?? E-mail: [EMAIL PROTECTED] (Enter through LB99) Web: http://www.ryerson.ca/~blesser __
[flexcoders] Re: Customizing Chart Legend: Accessing DataProvider data
Well, if anyone is interested here's my hack to get this to work. I set a counter var and increment with each iteration of createChildren. I'm sure there's a more effecient or correct way, so if anyone knows please share. public class CpPiechartLegendItem extends LegendItem { public static var item_index:Number = 0; public function CpPiechartLegendItem() { super(); } override protected function measure():void { super.measure(); } override protected function createChildren():void { super.createChildren(); trace(super.source.dataProvider[item_index-1].myProperty;); } protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{ super.updateDisplayList(unscaledWidth, unscaledHeight); } }
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Ummm no IE does not work on the Mac, the last few versions were awful and barely worked. MS hasn't been developing it in at least 2 years, maybe three. They stopped supporting it over a year ago. Everybody uses Windows, almost all the workstations are windows. Macs have IE working OK. The better solution was a cross plataform solution, that's why I've been working with Flex.
[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
I think you are right that .NET support should be there, although I am not a .NET developer and probably never will be. I wonder if Microsoft could develop this solution? In theory they would have the best resources to understand .NET and enough people have figured out the protocols used in FDS that they should be able to develop this. Anyway, the big flaw in your argument is that Adobe doesn't need to built the solution when there is one on the market already. Paul --- In flexcoders@yahoogroups.com, mvbaffa [EMAIL PROTECTED] wrote: I beleive that Adobe wants to increase its participation in the software development market. .NET is very good and its number of developers is huge. That's why they should not be fogotten. This at least is naive. Adobe has one thing that Microsoft does not have, FLASH. This is the key to success if it is well conducted. I do not care about politics. I really do not care which is the winner Microsoft or Adobe. The winner will be the one that can deploy good and affordable products. --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: Think again. On 27/04/2007, at 11:26 AM, mvbaffa wrote: Everybody uses Windows, almost all the workstations are windows. Macs have IE working OK.
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Which department? Development. Creative. Windows does not have a monopoly. On 27/04/2007, at 12:34 PM, Jeffry Houser wrote: I think this is true for many enterprises. Not true for a lot of developers. At 09:41 PM 4/26/2007, Bjorn Schultheiss wrote: Think again. On 27/04/2007, at 11:26 AM, mvbaffa wrote: Everybody uses Windows, almost all the workstations are windows. Macs have IE working OK. -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com Regards, Bjorn Schultheiss Senior Developer Personalised Communication Power Level 2, 31 Coventry St. South Melbourne 3205, VIC Australia T: +61 3 9674 7400 F: +61 3 9645 9160 W: http://www.qdc.net.au ((This transmission is confidential and intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---))
Re: [flexcoders] Re: Alert Control Crashing App
Ok, I tried running your app. It seems, it gets into recursion somewhere and that's where Flash crashes.. -abdul On 4/26/07, Troy A. Binford [EMAIL PROTECTED] wrote: I updated to version 9.0.45.0 that was released april 12. The code still crashes to a large stack dump and an undefined error. Thanks for the suggestion, but this didn't seem to fix my problem. Anyone else have any suggestions? It would be much appreciated. Thanks, Troy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, rml__ [EMAIL PROTECTED] wrote: Update your flash player version, i had the same problem in IE, it was solved updating the flash player. rml - Mensaje original De: Manish Jethani [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Enviado: miércoles, 25 de abril, 2007 5:33:04 Asunto: Re: [flexcoders] Alert Control Crashing App Perhaps you can post a working example somewhere or at least a stack trace? That'll make it easier to follow. On 4/25/07, Troy A. Binford troy.binford@ gmail.com wrote: This is a little complex, but I'll try to describe what's going on to the best of my ability. 1. Create a new Flex Application. 2. Add a Canvas or whatever and give it an id. 3. Create a new Custom Control that is a DataGrid. 4. Make the DataGrid editable and give it a dataProvider and at least one column. 5. Add itemEditEnd event. 6. Have the listener method fire an Alert.show( test) 7. close the Custom Control. 8. Create a mx:Script section in the main app. 9. create a private var (x) that is an instance of the Custom Control. 10. Add initialize event. 11. Have the listener assign x = new Custom Control Name() 12. addChild(x) Run the program and edit a column (making itemEditEnd fire). If done correctly, the Alert.show() will result in a large stack dump and an undefined error. My question is: Is this my fault? What did I do wrong? -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com Yahoo! Groups Links !-- #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;} -- __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.yahoo.com.mx/
Re: [flexcoders] Re: Alert Control Crashing App
Yes, i can verify the crash with 9.0.45 netscape windows player The following script crashes the whole browser when you edit a cell and press return ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:DataGrid editable=true dataProvider={ [{a:1},{a:2}] } itemEditEnd=mx.controls.Alert.show('TEST') / mx:Label text={ flash.system.Capabilities.version } / /mx:Application Cheers Ralf. On 4/26/07, Troy A. Binford [EMAIL PROTECTED] wrote: I updated to version 9.0.45.0 that was released april 12. The code still crashes to a large stack dump and an undefined error. Thanks for the suggestion, but this didn't seem to fix my problem. Anyone else have any suggestions? It would be much appreciated. Thanks, Troy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, rml__ [EMAIL PROTECTED] wrote: Update your flash player version, i had the same problem in IE, it was solved updating the flash player. rml - Mensaje original De: Manish Jethani [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Enviado: miércoles, 25 de abril, 2007 5:33:04 Asunto: Re: [flexcoders] Alert Control Crashing App Perhaps you can post a working example somewhere or at least a stack trace? That'll make it easier to follow. On 4/25/07, Troy A. Binford troy.binford@ gmail.com wrote: This is a little complex, but I'll try to describe what's going on to the best of my ability. 1. Create a new Flex Application. 2. Add a Canvas or whatever and give it an id. 3. Create a new Custom Control that is a DataGrid. 4. Make the DataGrid editable and give it a dataProvider and at least one column. 5. Add itemEditEnd event. 6. Have the listener method fire an Alert.show( test) 7. close the Custom Control. 8. Create a mx:Script section in the main app. 9. create a private var (x) that is an instance of the Custom Control. 10. Add initialize event. 11. Have the listener assign x = new Custom Control Name() 12. addChild(x) Run the program and edit a column (making itemEditEnd fire). If done correctly, the Alert.show() will result in a large stack dump and an undefined error. My question is: Is this my fault? What did I do wrong? -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com Yahoo! Groups Links !-- #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;} -- __ Correo Yahoo! Espacio para todos tus mensajes,
[flexcoders] Constant curve using LineChart
Hi Folks! I have a LineChart graph and i need to add two constant curves to show when my data exceeds maximum and minimum values. My original curve is a function y=f(x) and what I want is to draw two adicional curves such as y=K1 y=K2 where K1 and K2 are constant. I want to avoid to repeat K1 and K2 in my data provider for each data in the original series. Best Regards Manuel Villarroel.
[flexcoders] Re: Reload detection of a flex application
Forgive me if I am wrong... But wouldn't the CreationComplete event be triggered on the application if a refresh or back/return has been done at the client side? If that is so, you would probably want to reload your cached information. Hope this helps Mark --- In flexcoders@yahoogroups.com, fwolff999 [EMAIL PROTECTED] wrote: Hi, Is there any reliable way to detect a full reload of a Flex app (after a browser reload button click or a back/return for example). It seems possible, with RemoteObject, to use the incremented response prefix on an AMF3 body (/1, /2, ..., /n, then /1... again after a reload). But is it really reliable ? The point is to know, on server side, that the client has lost all cached informations. Thanks for any hints, Franck.
[flexcoders] Selecting a Tree branch/leaf via actionscript
Hi All, In order to select a tree branch/leaf via actionscript only a) There is a need to recursively call expanditem() till the node containing the required branch/leaf is found b) setting the tree.selectedItem does not cause a change event! Is Manual dispatach of the event the only soln? Thanks Chandan
Re: [flexcoders] Re: Alert Control Crashing App
It seems, itemEditEnd event handler is getting invoked recursively, you might to look at it... -abdul On 4/27/07, Abdul Qabiz [EMAIL PROTECTED] wrote: Ok, I tried running your app. It seems, it gets into recursion somewhere and that's where Flash crashes.. -abdul On 4/26/07, Troy A. Binford [EMAIL PROTECTED] wrote: I updated to version 9.0.45.0 that was released april 12. The code still crashes to a large stack dump and an undefined error. Thanks for the suggestion, but this didn't seem to fix my problem. Anyone else have any suggestions? It would be much appreciated. Thanks, Troy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, rml__ [EMAIL PROTECTED] wrote: Update your flash player version, i had the same problem in IE, it was solved updating the flash player. rml - Mensaje original De: Manish Jethani [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Enviado: miércoles, 25 de abril, 2007 5:33:04 Asunto: Re: [flexcoders] Alert Control Crashing App Perhaps you can post a working example somewhere or at least a stack trace? That'll make it easier to follow. On 4/25/07, Troy A. Binford troy.binford@ gmail.com wrote: This is a little complex, but I'll try to describe what's going on to the best of my ability. 1. Create a new Flex Application. 2. Add a Canvas or whatever and give it an id. 3. Create a new Custom Control that is a DataGrid. 4. Make the DataGrid editable and give it a dataProvider and at least one column. 5. Add itemEditEnd event. 6. Have the listener method fire an Alert.show( test) 7. close the Custom Control. 8. Create a mx:Script section in the main app. 9. create a private var (x) that is an instance of the Custom Control. 10. Add initialize event. 11. Have the listener assign x = new Custom Control Name() 12. addChild(x) Run the program and edit a column (making itemEditEnd fire). If done correctly, the Alert.show() will result in a large stack dump and an undefined error. My question is: Is this my fault? What did I do wrong? -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com Yahoo! Groups Links !-- #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;} -- __ Correo
[flexcoders] Re: Recall :: Custom Serialization exception
I am facing the same issue. Any resolution? --- In flexcoders@yahoogroups.com,[EMAIL PROTECTED] wrote: Any Clues ? -- Forwarded message -- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Jan 15, 2007 4:57 PM Subject: Urgent :: Custom Serialization exception To: flexcoders@yahoogroups.com I am using Custom Serialization to serialize my Java Object (TreeNode class) recursively to ActionScript. But this fails giving the following exception: ArgumentError: Error #2004: One of the parameters is invalid. at flash.utils::ObjectInput/readObject() at com.flex.dao::TreeNode/readExternal() (mx.messaging.messages::ErrorMessage)#0 body = (Object)#1 clientId = (null) correlationId = 5D934A88-B385-627D-2445-258088A878CA destination = extendedData = (null) faultCode = Server.Acknowledge.Failed faultDetail = Was expecting mx.messaging.messages.AcknowledgeMessage, but received null faultString = Didn't receive an acknowledge message headers = (Object)#2 messageId = 983E8914-DDAC-1ECA-C02A-2580CCD4A40F rootCause = (null) timestamp = 0 timeToLive = 0 = The code of ActionScript and Java TreeNode classes is as under: === ActionScript package com.flex.dao { import mx.collections.ArrayCollection; import flash.utils.IExternalizable; import flash.utils.IDataInput; import flash.utils.IDataOutput; import mx.controls.Alert; [RemoteClass(alias= com.java.dao.TreeNode)] public class TreeNode implements IExternalizable { public var name : String; public var id : int; public var type : int; public var children : ArrayCollection; public var data : Object; public function readExternal(input:IDataInput) : void { id = input.readInt(); name = input.readUTF(); type = input.readInt(); var childCount : int = input.readInt(); if(childCount != 0) { children = new ArrayCollection(); for(var i:int = 0; ichildCount;i++) { var obj : Object = input.readObject(); children.addItem(obj); } } var hasData : int = input.readInt(); if(hasData != 0) data = input.readObject(); } public function writeExternal(output:IDataOutput) : void { output.writeInt(id); output.writeUTF(name); output.writeInt(type); if(children != null) { output.writeInt(children.length); for(var i:int = 0; ichildren.length ;i++) output.writeObject(TreeNode(children.getItemAt (i))); } else output.writeInt(0); if(data != null) { output.writeInt(1); output.writeObject(data); } else output.writeInt(0); } } } Java == public class TreeNode implements Externalizable { public List children; //list of TreeNode public Object data; public TreeNode() { } public TreeNode(int id, String name, int type) { super(id, name, type); children = new ArrayList(); } public void addChild(TreeNode child) { children.add(child); } public void writeExternal(ObjectOutput objectOutput) throws IOException { objectOutput.writeInt(id); objectOutput.writeUTF(name); objectOutput.writeInt(type); if(children != null children.size() 0) { System.out.println(name + :: +children.size()); objectOutput.writeInt(children.size()); for(int i = 0; i children.size();i++) objectOutput.writeObject(children.get (i)); } else objectOutput.writeInt(0); if(data != null) { objectOutput.writeInt(1); objectOutput.writeObject(data); } else objectOutput.writeInt(0); } public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException { id = objectInput.readInt(); name = objectInput.readUTF(); type = objectInput.readInt(); int childCount = objectInput.readInt(); if(childCount != 0) { children = new ArrayList(); for(int i=0; ichildCount; i++) children.add((TreeNode)objectInput.readObject()); } int hasData = objectInput.readInt(); if(hasData != 0) data = objectInput.readObject(); } }
[flexcoders] Re: Module GC question
Think I misread your post the first time. As for being sure you can see it unload the swf in console. Documentation wise I've seen it a couple places. One of them being here: http://www.gskinner.com/blog/archives/2006/08/as3_resource_ma_2.html It's said that you should only use it in testing. - Kyle
Re: [flexcoders] Error -1
Michael.. you were right. That was an encoding problem. I was using Primal Script 4 to edit the files. Thaaanks! On 4/25/07, Michael Wills [EMAIL PROTECTED] wrote: I haven't found out just yet but in the process I did find these lists: http://editthis.info/flexerrorcodes/Main_Page André Rodrigues Pena wrote: this error occur at compile time.. I dont actually come to validate anything. Do you know what does mean the -1 error? On 4/25/07, Michael Wills [EMAIL PROTECTED] wrote: I popped into FlexBuilder briefly and didn't have any trouble with it compiling. I instantiated it but I didn't use it to actually validate a number. Is the MXML file you are using UTF-8 encoded? I don't know what mxmlc would do with the accented text if it is not, unless there are some compiler commands to help it handle those correctly. That is just a wild guess though... Michael André Rodrigues Pena wrote: Hi all, I extended a mx:NumberValidator this way FILE ExtNumberValidator.mxml ?xml version=1.0 encoding=utf-8? mx:NumberValidator xmlns:mx=http://www.adobe.com/2006/mxml; allowNegative=false decimalPointCountError=Só pode haver um separador decimal decimalSeparator=. domain=real exceedsMaxError=O número é muito grande integerError=O número tem que ser inteiro invalidCharError=O campo possúi caracteres inválidos invalidFormatCharsError=Um dos parâmetros de formatação é inválido lowerThanMinError=O número é muito pequeno maxValue=NaN minValue=NaN negativeError=O número não pode ser negativo precision=-1 precisionError=O número tem muitos dígitos além do separador decimal separationError=O separador do milhar (,) precisa ser seguido por três dígitos thousandsSeparator=, / So I use this extended component inside the application. When I try to compile in mxmlc. It only shows the filename above and says Error -1. Any idea? -- André Rodrigues Pena -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
[flexcoders] Re: Launching a details window
Hi Rick, Is there any chance you can email a bit of your source about how you trigger the Window to Open? I have tried to do it but to no avail. Any help would be muchly appreciated Regards Mark --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: one you create the window instance, do: winRef.dataModel = eInfo; Where dataModel is a variable name on the TitleWindow Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Root Sent: Monday, November 06, 2006 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Launching a details window In my app, I'm looking up information on users within our database. the search results are loaded into a datagrid in the main application. When you click on one of those results, I'm using a popup title window component to show details about that user. the init function (via the creationcomplete event) loads all of the details about that user into an object and populates the overview screen. There are also 20+ windows that will contain all kinds of detailed information about the user - for example, addresses. Since I've already got the data completely loaded into an object in the overview window... How to I reference that object in the subsequent popup window? The overview window declares a private variable eInfo like this: private var eInfo:Object = null; A user can have more than one open overview window .. but the details windows will be modal. I'm launching the Details window like this: dataWindow = PopUpManager.createPopUp(tnDetails, DataSummary, true); In the details window (another titlewindow component, named DataSummary), I don't know how to properly access the eInfo object from the calling overview window. How do I connect the two? Rick -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] flex+fms: store vid/audio locally, then send to server (like youtube)
hello, i would like to know if there is a possibility in first recording and storing a video or audio locally, and after confirming, sending the recorded file to the fms server? because i was inspired by youtube and i also want people to first record then sending to server. what i was only able to do was, streaming the media while recording. but that would cause too much traffic! thank you, danny
[flexcoders] Re: Module GC question
Well as soon as I removed the call to force GC it started working. I cant be sure, but logically it would make sense.
[flexcoders] Re: Setting the $title field in index .template.html
Interesting, let me try that out... not sure if I need more or not. --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: You can set it via the pageTitle property of the Application tag. Are you specifically looking for something other than that? --- In flexcoders@yahoogroups.com, simonjpalmer simonjpalmer@ wrote: where do I set the field $title which is referred to at the top of the template filed used to generate index.html?
[flexcoders] Rotation transition - looking for help
Hi, I have a view stack with a bubble chart on one page and a set of controls (sliders etc) on another. At the moment I have a button which causes one or the other to be shown and the user can switch back and forth. What I am looking for is a sexy transition between the two. Ideally I would have the whole display rotate around a vertical line in the middle of the screen so that it apears that the user is looking at the back of the display when they are using the controls. Anyone care to give me a pointer about how I go about this? I have been looking at the rotate effect and transitions but am struggling to make head or tail of it. What I could do with is a good sample of something similar. I am hoping I don;t have to write a huge amount of custom effect code, although I will go there if necessary. Thanks Simon
[flexcoders] Re: Will Microsoft's new Sliverlight Player Kill our beloved Flex?
One person wrote: Everybody uses Windows, almost all the workstations are windows. Macs have IE working OK. Another responded: Think again. Think again? What kind of an argument is that? People keep brining up certain technlogies not working on Mac OS or Linux as a bad thing. Personally, I've never bought into the, that technology does not support obscure browser X or non-Windows operating system Y and therefore is doomed to fail argument. As much as I wish it were not true, Microsoft is one example of a company who has time and again developed solutions for Windows only and been quite successful at it. Not supporting Mac or Linux WILL hurt you a little, but it's still a Windows world (unfortunately) and thus there is a huge market there to tap. The world is changing, sure, but very very slowly in this regard. At the same time, I think Silverlight is coming out a little too late - the RIA runtime has already left the barn IMO. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team
[flexcoders] Can I lookup a div in the html page and hide it from within my Flex app?
Hello, Can someone tell me if it is possible to lookup DOM elements within the web page hosting a flex application? If so, can I manipulate the DOM element from within my application without relying on javascript to do it? The page I am placing my swf on does not allow you to add javascript. I want to show an item beneath my Flex app on pages that disallow scripting and restrict networking to internal. I want to hide the element on pages that have allowNetworking set to all. Can this be done and if so how? Thanks in advance.
[flexcoders] Programatic Icon
Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul
Re: [flexcoders] Programatic Icon
Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Cairngorm, is this suitable as Cairngorm event
Nice, tnx for the input. I think I am starting to get the hang of it... (Mind the 'starting' ;) ). Grt, Ben --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Imay be a little late here, but no, its not only for calling backend. Anytime you want encapsulate some UI logic, put it in a command. Even if it just to manipulate data, update the view or to call the server-side. Dimitrios Gianninas Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bnsmeets Sent: Wednesday, April 25, 2007 5:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm, is this suitable as Cairngorm event Hi all, Wondering if the Cairngorm events are supposed to be only events that need backend comunication. Situation now is that I have a Model, which contains e.g. SelectedObject. I use this var to store the selected object by users in the interface. No problems so far. But now I want to be able to let the user clear that selectedobject. I am tempted to just use AppModel.SelectedObject=null in a view. But the thought is running in my head that it might be neater to create a SelectedObjectClearedEvent and attach a command to that which contains the logic if it is possible to clear it. Question in the bigger picture is this: Are cairngorm events as is supposed to be used only when there is a I want to call backend- event? Or are View related events (or any other events in that matter) supposed to be Cairngorm events too? And on top of that, how do you (Cairngorm users out there) give your other events a place in your structure? For example, my model also dispatches a custom event which has nothing to do with the backend. I use it to listen to any changes in a Collection (Default ArrayCollection events didn't do the trick). Tx in advance, Ben -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re: Reload detection of a flex application
Yeah... when your app starts the client will know, just do the request then. --- In flexcoders@yahoogroups.com, mark_j_ellul [EMAIL PROTECTED] wrote: Forgive me if I am wrong... But wouldn't the CreationComplete event be triggered on the application if a refresh or back/return has been done at the client side? If that is so, you would probably want to reload your cached information. Hope this helps Mark --- In flexcoders@yahoogroups.com, fwolff999 franck.wolff@ wrote: Hi, Is there any reliable way to detect a full reload of a Flex app (after a browser reload button click or a back/return for example). It seems possible, with RemoteObject, to use the incremented response prefix on an AMF3 body (/1, /2, ..., /n, then /1... again after a reload). But is it really reliable ? The point is to know, on server side, that the client has lost all cached informations. Thanks for any hints, Franck.
[flexcoders] [OT] php framework
This is a bit off topic, but I know there are a lot of PHP developers on the list Which framework do you use if any? Zend, Cake, etc.. TIA
[flexcoders] Re: Module GC question
To be honest I couldn't tell you why it was causing the issue. As for your problem, all the documentation I have seen on using the GC hack says that it is just that a hack. You're not supposed to be able to trigger GC and as such that it should only be used as a tool in testing. My advice would be to step back for a min and find out what is actually causing the memory leak you're having. At best the GC hack would be a bandaid for the real issue at hand. I realize we all have deadlines to make, but if your memory leak is that bad it would seem to make sense that the greater good would be served by fixing what is causing the leak.
Re: [flexcoders] Games in Flex / Apollo?
Check out my blog, http://troygilbert.com/. I'm doing some *big* stuff with games and Flex. Troy. On 4/27/07, Erik Price [EMAIL PROTECTED] wrote: On 4/27/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. (True, but Flash CS3 is $699 more than the cost of the Flex SDK.) e
Re: [flexcoders] Can I lookup a div in the html page and hide it from within my Flex app?
use can invoke JavaScript function from Flex i.e. - write javascript function in the page hosting the flex app to manipulate div/ - invoke Javascript function from Flex. Refer to the documentation of flash.external.ExternalInterface. On Apr 27, 2007, at 7:18 PM, wdsnapper wrote: Hello, Can someone tell me if it is possible to lookup DOM elements within the web page hosting a flex application? If so, can I manipulate the DOM element from within my application without relying on javascript to do it? The page I am placing my swf on does not allow you to add javascript. I want to show an item beneath my Flex app on pages that disallow scripting and restrict networking to internal. I want to hide the element on pages that have allowNetworking set to all. Can this be done and if so how? Thanks in advance.
Re: [flexcoders] Find and replace wih regex?
On 4/26/07, b_alen [EMAIL PROTECTED] wrote: I have a huge XML file with complex DTD. Now I have to parse this into something more usable by stripping the redundant tags and modifying some of them. I see two options: 1. Recursivly visit all the nodes and handle them with if statements. 2. Use RegEx to do some sort of find and replace. The second options seems easier and faster if someone can point me in the right direction. Or maybe some other ideas? Just an idea - if your XML is coming from the server, perhaps running an XSL transformation on the document would be easier and faster. e
[flexcoders] wmode=transparent : any limitations to expect ?
I'm starting a big project relying on a transparent flex application (with some HTML stuff underneath)... and I was wondering wetherr I should expect bugs/limitations of the flash player in this mode?? I saw for instance that the mouse wheel is disabled ? Have you encountered any other bug ? Thank you, {Maz}
[flexcoders] Re: Can I lookup a div in the html page and hide it from within my Flex app?
No, you can't really do that without using javascript. Have you looked at CSS, it sounds like you want a css selector to set the display to none on objects @allowNetworking='all'... I think even to do that you'll need some javascript as I don't think all browsers support that kind of selector. --- In flexcoders@yahoogroups.com, wdsnapper [EMAIL PROTECTED] wrote: Hello, Can someone tell me if it is possible to lookup DOM elements within the web page hosting a flex application? If so, can I manipulate the DOM element from within my application without relying on javascript to do it? The page I am placing my swf on does not allow you to add javascript. I want to show an item beneath my Flex app on pages that disallow scripting and restrict networking to internal. I want to hide the element on pages that have allowNetworking set to all. Can this be done and if so how? Thanks in advance.
[flexcoders] Re: Games in Flex / Apollo?
How about a direct link to something for those of us who are too lazy to search through your blog? --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Check out my blog, http://troygilbert.com/. I'm doing some *big* stuff with games and Flex. Troy. On 4/27/07, Erik Price [EMAIL PROTECTED] wrote: On 4/27/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. (True, but Flash CS3 is $699 more than the cost of the Flex SDK.) e
Re: [flexcoders] Re: Tile Extra Space
Okay, here's the kludge I made to make it work. It very much is a kludge, but it seems to work. I'd really like this to just work in the original component, though. package nes { import mx.containers.Tile; import flash.display.DisplayObject; public class TileExt extends Tile { public var originalHeight:Number = NaN; override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if (initialized) { if (isNaN(originalHeight)) originalHeight = height; var lastChild:DisplayObject; var thisChild:DisplayObject; var rows:int = 1; for (var i:int = 0; i numChildren; i++) { thisChild = getChildAt(i); if (lastChild lastChild.x thisChild.x) rows++; lastChild = thisChild; } height = originalHeight * rows; } } } } On 4/26/07, Pan Troglodytes [EMAIL PROTECTED] wrote: Don't you hate it when you find someone asking your exact question but there's no answer? Even better, you find TWO people asking it. I'm having this same problem and it's frustrating. The whole point of the Tile was to manage the layout for me and flow it on the window resizing. Right now I'm experimenting with subclassing Tile and adding my own resize. If anyone has already done this, I'd love to see your solution. On 4/24/07, Alex [EMAIL PROTECTED] wrote: I'm having exactly the same problem. The Tile component grows taller than expected. It seems to allocate height for an extra row when there's no need to do so :S Did you already find a solution to this? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, joshua gatcke [EMAIL PROTECTED] wrote: I am trying to use a mx:Tile container to layout a set of application icons. I have set the tile container to a width of 100% and would like the icons to wrap to the line below if the browser is smaller or resized. The problem I am having is that the icons in my tile container are 60px tall and The tile container does not fit the height to the content, it looks like the tile container is double or triple the icon height, even when there is no need to wrap. I have no width or maxWidth etc attributes on the tile container. This is a real pain, I just want the tile container to fit the height to the content. Thanks in advance for your help Joshua Gatcke Design/ Development [EMAIL PROTECTED] P: 403.269.1020 C: 403.815.3265 -- - http://www.LaunchCMS.com - Simple intuitive content management software for the web. -- - -- Jason -- Jason
[flexcoders] Hiding Viewstack elements in a toggleButtonBar dataprovider
Good morning all, I am working on a project that requires some level permissions. I have a main viewstack that I call viewController and theres some elements in there. One of them in a Admin view that I would like to hide if the user doesnt have those permissions. I am struggling a little bit on how to do this, the visible property doesnt remove the viewstack element from the dataprovider when its set to false. Any suggestions that may lead me down the right path is appreciated. Thanks, Josh
Re: [flexcoders] Programatic Icon
I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul
Re: [flexcoders] Programatic Icon
From what I understand, you want to be able to change the icon based on the state of your window. You can do this by setting the titleIcon property every time your state changes. Internally, the old icon object will be discarded and a new one created from the class specified to the titleIcon property. As for the class, it just needs to implement the IFlexDisplayObject interface, as far as I can remember. On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul -- 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] Cairngorm 2.2 on Adobe Labs
Hi, I've just updated the content on Adobe Labs to announce the release of Cairngorm 2.2. This isn't a major release, with only a few minor additions and some productivity fixes. The major change is that dependancies on fds.swc have been externalised into a separate download, Cairngorm Enterprise. See the release notes page on Labs for more details, and for a link on where it can be downloaded . http://labs.adobe.com/wiki/index.php/Cairngorm:Cairngorm2.2:Release_Note s Thanks, Alistair Alistair McLeod Technical Practice Leader (Rich Internet Applications and LiveCycle) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6108 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] , http://weblogs.macromedia.com/amcleod http://weblogs.macromedia.com/amcleod Registered office: 151 St. Vincent Street, Glasgow G2 5NJ Company No. SC101089
Re: [flexcoders] Programatic Icon
Wow, I messed up. I need to rethink this, I was thinking about something else. IFlexDisplayObject is right. :) Peace, Mike On 4/27/07, Manish Jethani [EMAIL PROTECTED] wrote: From what I understand, you want to be able to change the icon based on the state of your window. You can do this by setting the titleIcon property every time your state changes. Internally, the old icon object will be discarded and a new one created from the class specified to the titleIcon property. As for the class, it just needs to implement the IFlexDisplayObject interface, as far as I can remember. On 4/27/07, Paul Whitelock [EMAIL PROTECTED] news%40modernminds.com wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul -- 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 -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Selecting a Tree branch/leaf via actionscript
A change event is generally dispatched only on user interaction. You might want to listen for the valueCommit event instead. On 4/26/07, chandan1980_2000 [EMAIL PROTECTED] wrote: Hi All, In order to select a tree branch/leaf via actionscript only a) There is a need to recursively call expanditem() till the node containing the required branch/leaf is found b) setting the tree.selectedItem does not cause a change event! Is Manual dispatach of the event the only soln? Thanks Chandan -- 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
Re: [flexcoders] Hiding Viewstack elements in a toggleButtonBar dataprovider
The only thing I can suggest is that you remove the admin view from the view stack. *Or* you can also disable it (and the button will be disabled). On 4/27/07, gotjosh819i [EMAIL PROTECTED] wrote: Good morning all, I am working on a project that requires some level permissions. I have a main viewstack that I call viewController and theres some elements in there. One of them in a Admin view that I would like to hide if the user doesnt have those permissions. I am struggling a little bit on how to do this, the visible property doesnt remove the viewstack element from the dataprovider when its set to false. Any suggestions that may lead me down the right path is appreciated. Thanks, Josh -- 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
RE: [flexcoders] Constant curve using LineChart
Manuel, Ely Greenfield's DataDrawingCanvas should help you. http://www.quietlyscheming.com/blog/charts/easy-custom-charts Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of manuel.villarroel Sent: Friday, April 27, 2007 3:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Constant curve using LineChart Hi Folks! I have a LineChart graph and i need to add two constant curves to show when my data exceeds maximum and minimum values. My original curve is a function y=f(x) and what I want is to draw two adicional curves such as y=K1 y=K2 where K1 and K2 are constant. I want to avoid to repeat K1 and K2 in my data provider for each data in the original series. Best Regards Manuel Villarroel.
Re: [flexcoders] Re: Tile Extra Space
I think it works much better if you set tileHeight and tileWidth (if you know these). On 4/24/07, Alex [EMAIL PROTECTED] wrote: I'm having exactly the same problem. The Tile component grows taller than expected. It seems to allocate height for an extra row when there's no need to do so :S Did you already find a solution to this? --- In flexcoders@yahoogroups.com, joshua gatcke [EMAIL PROTECTED] wrote: I am trying to use a mx:Tile container to layout a set of application icons. I have set the tile container to a width of 100% and would like the icons to wrap to the line below if the browser is smaller or resized. The problem I am having is that the icons in my tile container are 60px tall and The tile container does not fit the height to the content, it looks like the tile container is double or triple the icon height, even when there is no need to wrap. I have no width or maxWidth etc attributes on the tile container. This is a real pain, I just want the tile container to fit the height to the content. Thanks in advance for your help Joshua Gatcke Design/ Development [EMAIL PROTECTED] P: 403.269.1020 C: 403.815.3265 - http://www.LaunchCMS.com - Simple intuitive content management software for the web. - -- 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
Re: [flexcoders] Rotation transition - looking for help
I believe you're looking for the flip effect. http://weblogs.macromedia.com/auhlmann/archives/2007/03/distortion_effe.cfm On 4/27/07, simonjpalmer [EMAIL PROTECTED] wrote: Hi, I have a view stack with a bubble chart on one page and a set of controls (sliders etc) on another. At the moment I have a button which causes one or the other to be shown and the user can switch back and forth. What I am looking for is a sexy transition between the two. Ideally I would have the whole display rotate around a vertical line in the middle of the screen so that it apears that the user is looking at the back of the display when they are using the controls. Anyone care to give me a pointer about how I go about this? I have been looking at the rotate effect and transitions but am struggling to make head or tail of it. What I could do with is a good sample of something similar. I am hoping I don;t have to write a huge amount of custom effect code, although I will go there if necessary. Thanks Simon -- 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
Re: [flexcoders] wmode=transparent : any limitations to expect ?
You should know that transparent mode is not supported on all platforms. On 4/27/07, ecpmaz [EMAIL PROTECTED] wrote: I'm starting a big project relying on a transparent flex application (with some HTML stuff underneath)... and I was wondering wetherr I should expect bugs/limitations of the flash player in this mode?? I saw for instance that the mouse wheel is disabled ? Have you encountered any other bug ? Thank you, {Maz} -- 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
Re: [flexcoders] wmode=transparent : any limitations to expect ?
All mouse related events do not detect modifier keys. This was a painful issue because our app depended on being able to select multiple items from a list and that's not possible when control and shift are not registered on a mouse click. MSIE did not appear to have this limitation, but sometimes didn't register mouse events at all in some places in the app. I think that was because invisible html layers were obscuring them from the mouse event. In time we cleared those up by cleaning up the CSS for IE. No workarounds yet available for the mouse issues in other browsers. Other than that I didn't see any other issues. Paul ecpmaz wrote: I'm starting a big project relying on a transparent flex application (with some HTML stuff underneath)... and I was wondering wetherr I should expect bugs/limitations of the flash player in this mode?? I saw for instance that the mouse wheel is disabled ? Have you encountered any other bug ? Thank you, {Maz}
[flexcoders] Re: wmode=transparent : any limitations to expect ?
You should know that transparent mode is not supported on all platforms. Thank you for that, I did not know. Did you have any performance issues on big projects ? {Maz} I'm starting a big project relying on a transparent flex application (with some HTML stuff underneath)... and I was wondering wetherr I should expect bugs/limitations of the flash player in this mode?? I saw for instance that the mouse wheel is disabled ? Have you encountered any other bug ? Thank you, {Maz} -- 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
Re: [flexcoders] wmode=transparent : any limitations to expect ?
Where is this not supported? I have tested most and found it to work as expected. Mostly that html elements can appear over the flash component. Paul Manish Jethani wrote: You should know that transparent mode is not supported on all platforms. On 4/27/07, ecpmaz [EMAIL PROTECTED] wrote: I'm starting a big project relying on a transparent flex application (with some HTML stuff underneath)... and I was wondering wetherr I should expect bugs/limitations of the flash player in this mode?? I saw for instance that the mouse wheel is disabled ? Have you encountered any other bug ? Thank you, {Maz} -- 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] Channel.Polling.Error - Using DataService with AtuoCommit and AtutoSync
Hi I seem to be getting intermittent faults from my data service. Trying the same thing again seems to have it go away. Using DataService w/ HibernateAssembler. AutoSync and AutoCommit are enabled. Destination is configured with the default 'my-polling-amf' channel. see the fault below: [FaultEvent fault=[RPC Fault faultString=error faultCode=Channel.Polling.Error faultDetail=null] messageId=D716AD65-B6ED-EDDD-89A8-342B42108D28 type=fault bubbles=false cancelable=true eventPhase=2] Any ideas? Is there a way to retry the operation from the fault handler? thanks, Parker Whirlow
RE: [flexcoders] Problem using a subclass of ComboBox in actionscript
Make sure you have a non-zero height and width for the dynamically added child. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Thursday, April 26, 2007 11:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Problem using a subclass of ComboBox in actionscript That doesn't ring a bell. Can you post simple-as-possible versions of your subclass and an that shows the problem? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of johnknyc Sent: Thursday, April 26, 2007 7:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem using a subclass of ComboBox in actionscript Hi all, I created a AS subclass of ComboBox. I can use the subclass in MXML, however when I try to instantiate the subclass in AS, it comes up blank when I run the app. I tried running a trace in the subclass's constructor, and it seems the constructor is not even being called. Any ideas?
RE: [flexcoders] Hiding Viewstack elements in a toggleButtonBar dataprovider
Why do you need to remove it? You have to manually navigate a ViewStack, so build the navigation piece with the logic to exclude the admin view. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819i Sent: Friday, April 27, 2007 10:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding Viewstack elements in a toggleButtonBar dataprovider Good morning all, I am working on a project that requires some level permissions. I have a main viewstack that I call viewController and theres some elements in there. One of them in a Admin view that I would like to hide if the user doesnt have those permissions. I am struggling a little bit on how to do this, the visible property doesnt remove the viewstack element from the dataprovider when its set to false. Any suggestions that may lead me down the right path is appreciated. Thanks, Josh
RE: [flexcoders] problems with repeater
Create a custom component. Use XML as the dataProvider. Pass the xml node into the component, and have the logic there pull the correct subnode for the current items dataProvider. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tadas Ziemys Sent: Thursday, April 26, 2007 7:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] problems with repeater Hello! I'm trying to create forum, and the best solution i could think of was a repeater function. But i stuck with a little problem: When i create dynamically for example Accordions canvas and in it DataGrid i cant think of a way to assign every different DataGrid different dataProvider. Is it somehow possible? I can think a different solution to this problem: To have one source for all datagrids, but to form it every time i change Accordions canvas, but i dont know how to know which one is selected? Any tips or suggestions? :) Sincerely, Tadas
RE: [flexcoders] How do I load variables from a loaded swf?
Use the SWFLoader's content property to access public members of the loaded content. You'll need to listen for the applicationComplete event before you can access the content, though. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Johannes Boyne Sent: Thursday, April 26, 2007 8:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I load variables from a loaded swf? Hey, my problem is this: I have loaded a SWF(Flash9)-File in to my Flex App. Now I want to load some variables out of the SWF-File, but I haven't the faintest idea how to do this on an elegant and performance full way. Thanks! Johannes -- 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
Re: [flexcoders] Re: Games in Flex / Apollo?
(There is a nice little categories thing on the side that lists Flash, but what the heck, I'm feeling generous... ;-)): General commentary on the wonders of Flex: http://troygilbert.com/2007/01/18/flex-rhymes-with/ Creating a better game development framework (or what games can learn from web 2.0): http://troygilbert.com/2006/03/01/what-games-can-learn-from-web-20/ Okay, so not that much Flex-specific stuff... most of my work was originally in Flash, but have since moved it to Flex after drinking the kool-aid. But the conceptual stuff about GameDev 2.0, while not saying it directly, is all in Flex. So, I guess I should probably start posting some more, huh? But to whet your appetite, just think how easy it is to make RIA's with MXML, wouldn't it be nice if there was a whole set of MXML tags dedicated to games? (Or before I knew about MXML, what I referred to as using XAML for games.) Troy. On 4/27/07, Scott Hoff [EMAIL PROTECTED] wrote: How about a direct link to something for those of us who are too lazy to search through your blog? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Check out my blog, http://troygilbert.com/. I'm doing some *big* stuff with games and Flex. Troy. On 4/27/07, Erik Price [EMAIL PROTECTED] wrote: On 4/27/07, André Rodrigues Pena [EMAIL PROTECTED] wrote: I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. (True, but Flash CS3 is $699 more than the cost of the Flex SDK.) e
RE: [flexcoders] Datagrid with row number
If the dataProvider is XML, then loop through it and insert a rowNum attribute. You will have to do something manual as well for sorting. If it is not XML, I would create a custom item component with a rowNum property, then loop over the dataProvider, creating and populating the customItem objects. There may be other ways. You cannot use an itemRenderer for this because they are re-used when you scroll. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rid_b80 Sent: Wednesday, April 25, 2007 9:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid with row number Hi, Just wondering is there anyway to display the row number in the first column of the datagrid. So like. Item Group 1. Apple Fruit 2. Pear Fruit 3. Tissue Hygiene Cause at the momment i can't seem to display that number 1,2,3 without defining it in the data provider. Can anyone help please? Thanks in advance
[flexcoders] Re: Games in Flex / Apollo?
Yeah any examples, links or other descriptions would be great. Can't wait to see what you are working on. mx:Platformer mx:world level='mario001' mx:player id='mario'/ mx:enemy id='Koopa'/ /mx:world /mx:Platformer :) -Andrew --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: (There is a nice little categories thing on the side that lists Flash, but what the heck, I'm feeling generous... ;-)): General commentary on the wonders of Flex: http://troygilbert.com/2007/01/18/flex-rhymes-with/ Creating a better game development framework (or what games can learn from web 2.0): http://troygilbert.com/2006/03/01/what-games-can-learn-from-web-20/ Okay, so not that much Flex-specific stuff... most of my work was originally in Flash, but have since moved it to Flex after drinking the kool-aid. But the conceptual stuff about GameDev 2.0, while not saying it directly, is all in Flex. So, I guess I should probably start posting some more, huh? But to whet your appetite, just think how easy it is to make RIA's with MXML, wouldn't it be nice if there was a whole set of MXML tags dedicated to games? (Or before I knew about MXML, what I referred to as using XAML for games.) Troy. On 4/27/07, Scott Hoff [EMAIL PROTECTED] wrote: How about a direct link to something for those of us who are too lazy to search through your blog? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Troy Gilbert troy.gilbert@ wrote: Check out my blog, http://troygilbert.com/. I'm doing some *big* stuff with games and Flex. Troy. On 4/27/07, Erik Price erikprice@ wrote: On 4/27/07, André Rodrigues Pena andre.ufrj@ wrote: I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. (True, but Flash CS3 is $699 more than the cost of the Flex SDK.) e
[flexcoders] Re: Problem using a subclass of ComboBox in actionscript
Thanks for the help! I was able to figure it out. It was an issue in our base framework. Thanks again! --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Make sure you have a non-zero height and width for the dynamically added child. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Thursday, April 26, 2007 11:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Problem using a subclass of ComboBox in actionscript That doesn't ring a bell. Can you post simple-as-possible versions of your subclass and an that shows the problem? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of johnknyc Sent: Thursday, April 26, 2007 7:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem using a subclass of ComboBox in actionscript Hi all, I created a AS subclass of ComboBox. I can use the subclass in MXML, however when I try to instantiate the subclass in AS, it comes up blank when I run the app. I tried running a trace in the subclass's constructor, and it seems the constructor is not even being called. Any ideas?
[flexcoders] eWeek.com Lead Story: Adobe Flex Open-Source Move
fyi ... The lead story today at eWeek.com is: Adobe Flex Open-Source Move http://www.eweek.com/ (btw, eWeek.com leaves up their Friday lead story as the lead story throughout the weekend) This is GREAT BUZZ ! ! ! Note, the lead story has two parts! Following are permalinks on each: http://www.eweek.com/article2/0,1895,2123067,00.asp http://www.eweek.com/article2/0,1895,2123071,00.asp and, the print as a single page link: http://www.eweek.com/print_article2/0,1217,a=206269,00.asp The second part is the best part. Here are some excerpts from the second part: Mark Driver, an analyst with Gartner, called the move to open-source Flex a big deal, noting that it helps Adobe competitively against incursion by Microsoft. I think it will help head off Silverlight and remove concerns of proprietary nature of Flex in the Web world, he said. Open-source co-creation is a powerful way to build a strong development community, said James Governor, founder of the RedMonk market analysis firm. Adobe's decision to open-source the Flex SDK is a radical move which should attract a new class of developer to the platform. Richard Monson-Haefel, an analyst with Burton Group, says: Flex has been doing well in the market so this is not one of those occasions when a vendor throws their software out to open source as a last ditch effort to save it, he said. In this case, Adobe is being really smart because they know that as an open-source project the Flex SDK is going to evolve more quickly and probably in some directions they had not anticipated. Moreover, Monson-Haefel said Adobe sells an excellent IDE [integrated development environment] in Flex Builder 2. And this open-source move can only help bolster already healthy sales of that product as well as their Enterprise Data Server, he said. Monson-Haefel said that in addition, this move will help Adobe with their Apollo platform. The more people using the Flex framework, the more attractive the Apollo platform. I can't see a down side for Adobe or the development community at all. ... Jeffrey Hammond, an analyst with Forrester, said he sees the battle unfolding between Adobe with Apollo and Flex versus Microsoft with its Silverlight and XAML (Extensible Application markup Language). Additionally, Hammond said he believes the platform ubiquity of Microsoft's WPF (Windows Presentation Foundation) versus the potential ubiquity of open source should be a real test of classic models versus new business models in software. Hammond also said that until Adobe announced its open-source plans for Flex, it was one proprietary technology against another, so there was no reason for the standards-based crowd to join either side. Now, the standards crowd has some interesting reasons to join the Adobe camp.
[flexcoders] Re: Hiding Viewstack elements in a toggleButtonBar dataprovider
Well not sure how I would remove it with this current setup: mx:ApplicationControlBar id=viewAppControllBar width=100% height=31 styleName=viewControlBar mx:Canvas width=100% height=100% mx:Image id=synergyLogo source={viewAppControllBar.getStyle('synergyTextLogo')} left=0/ mx:ToggleButtonBar id=mainToggleBar height=100% dataProvider={viewController} styleName=viewButtonBar left=231/ /mx:Canvas /mx:ApplicationControlBar mx:ApplicationControlBar id=syncLoginBar width=100% height=25 styleName=loginBar paddingLeft=0 mx:Canvas width=100% height=100% mx:Label id=welcomeName text=User Logged In As: {model.user.user_fname + ' ' + model.user.user_lname} top=2 styleName=normalTenBold color=#ff width=230 x=3/ mx:LinkButton label=Logout top=2 id=btn_logout textAlign=right right=2/ /mx:Canvas /mx:ApplicationControlBar !-- viewStack Controller :: viewController -- mx:ViewStack id=viewController selectedIndex=0 width=100% height=600 view:Home id=homeView creationCompleteEffect=fadeIn showEffect=fadeIn hideEffect=fadeOut/ mx:Canvas label=Portfolio Center showEffect=fadeIn hideEffect=fadeOut/mx:Canvas view:Contact id=contactView showEffect=fadeIn hideEffect=fadeOut contactListDP={model.processContactsDP} contactCategoriesDP={model.contactCategoriesDP}/ view:Resources id=trainingHelpView showEffect=fadeIn hideEffect=fadeOut/ view:Community id=communityView showEffect=fadeIn hideEffect=fadeOut / view:RequestAccess id=requestAccessView showEffect=fadeIn hideEffect=fadeOut contactListDP={model.processContactsDP}/ view:Administration id=adminView showEffect=fadeIn hideEffect=fadeOut enabled=false/ /mx:ViewStack I am hoping there is a method or build some logic that will remove the admin view from the viewstack if the role permissions dont match the admin view. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: The only thing I can suggest is that you remove the admin view from the view stack. *Or* you can also disable it (and the button will be disabled). On 4/27/07, gotjosh819i [EMAIL PROTECTED] wrote: Good morning all, I am working on a project that requires some level permissions. I have a main viewstack that I call viewController and theres some elements in there. One of them in a Admin view that I would like to hide if the user doesnt have those permissions. I am struggling a little bit on how to do this, the visible property doesnt remove the viewstack element from the dataprovider when its set to false. Any suggestions that may lead me down the right path is appreciated. Thanks, Josh -- 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: Find and replace wih regex?
It's too early for XSLT as there are numerous redundant tags. Just to get an idea, there are about 400 tags with at least 3 attributes average, with some of them needed to be combined, smome of them split into several tags, some of them removed, etc. But I found the solution. I will do the initial cleaning with regex, casting the whole XML to String, which so powerfull and fast in AS3 that I couldn't believe it. And then create the final XML output with XML class, do some modifications, etc. Really, with regex what seemed to be a huge problem in the beginning is now a piece of cake. It is still a huge piece, but of cake. I'm basically creating my own XSLT which converts this XML into something that can be renderable in Flash/Flex. Cheers --- In flexcoders@yahoogroups.com, Erik Price [EMAIL PROTECTED] wrote: On 4/26/07, b_alen [EMAIL PROTECTED] wrote: I have a huge XML file with complex DTD. Now I have to parse this into something more usable by stripping the redundant tags and modifying some of them. I see two options: 1. Recursivly visit all the nodes and handle them with if statements. 2. Use RegEx to do some sort of find and replace. The second options seems easier and faster if someone can point me in the right direction. Or maybe some other ideas? Just an idea - if your XML is coming from the server, perhaps running an XSL transformation on the document would be easier and faster. e
[flexcoders] Re: Alert Control Crashing App
That's weird. Why would the program go into recursion at that point? Is the alert refiring the itemEditEnd? I've tried creating an object to invoke the alert indirectly from the itemEditEnd with the same result. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: It seems, itemEditEnd event handler is getting invoked recursively, you might to look at it... -abdul On 4/27/07, Abdul Qabiz [EMAIL PROTECTED] wrote: Ok, I tried running your app. It seems, it gets into recursion somewhere and that's where Flash crashes.. -abdul On 4/26/07, Troy A. Binford [EMAIL PROTECTED] wrote: I updated to version 9.0.45.0 that was released april 12. The code still crashes to a large stack dump and an undefined error. Thanks for the suggestion, but this didn't seem to fix my problem. Anyone else have any suggestions? It would be much appreciated. Thanks, Troy --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, rml__ rmlsystem@ wrote: Update your flash player version, i had the same problem in IE, it was solved updating the flash player. rml - Mensaje original De: Manish Jethani manish.jethani@ Para: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Enviado: miércoles, 25 de abril, 2007 5:33:04 Asunto: Re: [flexcoders] Alert Control Crashing App Perhaps you can post a working example somewhere or at least a stack trace? That'll make it easier to follow. On 4/25/07, Troy A. Binford troy.binford@ gmail.com wrote: This is a little complex, but I'll try to describe what's going on to the best of my ability. 1. Create a new Flex Application. 2. Add a Canvas or whatever and give it an id. 3. Create a new Custom Control that is a DataGrid. 4. Make the DataGrid editable and give it a dataProvider and at least one column. 5. Add itemEditEnd event. 6. Have the listener method fire an Alert.show( test) 7. close the Custom Control. 8. Create a mx:Script section in the main app. 9. create a private var (x) that is an instance of the Custom Control. 10. Add initialize event. 11. Have the listener assign x = new Custom Control Name() 12. addChild(x) Run the program and edit a column (making itemEditEnd fire). If done correctly, the Alert.show() will result in a large stack dump and an undefined error. My question is: Is this my fault? What did I do wrong? -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. com Yahoo! Groups Links !-- #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
[flexcoders]How does Flex work on Mobile devices
My boss asked, What options does Flex have for deploying to mobile devices?
Re: [flexcoders]How does Flex work on Mobile devices
none at this point as the player for devices is not able to run flex apps. On 4/27/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: My boss asked, What options does Flex have for deploying to mobile devices? -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
[flexcoders] Re: Programatic Icon
Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com, Paul J DeCoursey [EMAIL PROTECTED] wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul
[flexcoders] using XMLListCollection and it's filterFunction... how to filter children nodes?
Problem: Trying to filter a mx:Tree to show only things that I type when I filter, it filters the folders, and the main root items, but not any children, I'm using an xmlListCollection I don't know if you've done this with an xml list collection, it seems a lot of people are trying it with an array collection instead it still seems to be giving grief to some individuals though, I've never tried this before, so I usually fill a tree with xml, because xml is already hierarchical anyway, here is a link, the source is published Just right click to view it. http://axel.cfwebtools.com/Examples/filterATreeInFlex/bin/filterATreeInF\ lex.html http://axel.cfwebtools.com/Examples/filterATreeInFlex/bin/filterATreeIn\ Flex.html
Re: [flexcoders] Re: Programatic Icon
Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey [EMAIL PROTECTED] wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Re: Programatic Icon
Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey [EMAIL PROTECTED] wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the TitleWindow. The class would programatically create the icon (i.e., it would not use an embedded asset). Ideally the icon component should be able to be used for any component that accepts an icon. Any idea if this can be done and if so where I should start looking to create such a component? Thanks! Paul -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Tile Extra Space
I haven't found a solution to this at all. Seems to only happen when I set the width of the tile to 100%. I want the hight to fit the content, so I can't set to a number or percent. - joshua
Re: [flexcoders]How does Flex work on Mobile devices
dorkie dork from dorktown wrote: My boss asked, What options does Flex have for deploying to mobile devices? None at the moment, but I've heard that they are working on a way to compile Flex for Flash Lite which works on many mobile devices.
Re: [flexcoders] Re: Games in Flex / Apollo?
Well, more like this: game width=640 height=400 backgroundColor=#00 scene width=1 height=400 backgroundColor=blue tickRate=30 layer background=clouds.png scrollSpeedX=3 / layer instance objectRef=coin x=35 y=56 / instance objectRef=mario x=0 y=0 / instance objectRef=brick x=100 y=100 / /layer /scene object id=coin points=100 behavior type=collectMe / /object object id=mario points=0 spriteRef=marioSprite behavior type=run property name=speed value=10 / /behavior behavior type=jump property name=height value=100 / /behavior /object sprite id=marioSprite source=mario.png numFrames=12 frameWidth=32 frameHeight=32 / /game A quick toy example, but that's the basic look-n-feel of the XML right now. We're also developing an equivalent to the Flex Form Designer geared specifically toward level editing for lack of a better word. Oh, and while it's all built on Flex/Flash, it's not dependent on them (it's not literally MXML)... its a generic HTML for 2D games that can be served to any game browser. Just think of the mash-ups! ;-) Troy. On 4/27/07, Andrew [EMAIL PROTECTED] wrote: Yeah any examples, links or other descriptions would be great. Can't wait to see what you are working on. mx:Platformer mx:world level='mario001' mx:player id='mario'/ mx:enemy id='Koopa'/ /mx:world /mx:Platformer :) -Andrew --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: (There is a nice little categories thing on the side that lists Flash, but what the heck, I'm feeling generous... ;-)): General commentary on the wonders of Flex: http://troygilbert.com/2007/01/18/flex-rhymes-with/ Creating a better game development framework (or what games can learn from web 2.0): http://troygilbert.com/2006/03/01/what-games-can-learn-from-web-20/ Okay, so not that much Flex-specific stuff... most of my work was originally in Flash, but have since moved it to Flex after drinking the kool-aid. But the conceptual stuff about GameDev 2.0, while not saying it directly, is all in Flex. So, I guess I should probably start posting some more, huh? But to whet your appetite, just think how easy it is to make RIA's with MXML, wouldn't it be nice if there was a whole set of MXML tags dedicated to games? (Or before I knew about MXML, what I referred to as using XAML for games.) Troy. On 4/27/07, Scott Hoff [EMAIL PROTECTED] wrote: How about a direct link to something for those of us who are too lazy to search through your blog? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Troy Gilbert troy.gilbert@ wrote: Check out my blog, http://troygilbert.com/. I'm doing some *big* stuff with games and Flex. Troy. On 4/27/07, Erik Price erikprice@ wrote: On 4/27/07, André Rodrigues Pena andre.ufrj@ wrote: I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. (True, but Flash CS3 is $699 more than the cost of the Flex SDK.) e
[flexcoders] embedding multiple images programmatically
Hi all, I have an array of image names (of PNGs on my server), and I want to load these all up in an object list of images so I can show them when needed in my application. I've found an oddity where some of these, sometimes, don't load properly for whatever reason and are blank when I need to show them. So I am thinking I should just embed them. But since I have 50+ images, I'd like to run a loop to embed each one, and all the examples of embedding show doing something like: [Embed(source=logo.gif)] [Bindable] public var imgCls:Class; and then mapping to an image. I'd rather not fill up my code with 50 separate variable defines, any easy way to iterate through this? thanks!
Re: [flexcoders] embedding multiple images programmatically
Embedding the image in your application would increase the application filesize. I would rather suggest you to think of loading these images on runtime. You can load images on runtime using mx;Image or any other class (Loader etc)... -abdul On 4/28/07, dougco2000 [EMAIL PROTECTED] wrote: Hi all, I have an array of image names (of PNGs on my server), and I want to load these all up in an object list of images so I can show them when needed in my application. I've found an oddity where some of these, sometimes, don't load properly for whatever reason and are blank when I need to show them. So I am thinking I should just embed them. But since I have 50+ images, I'd like to run a loop to embed each one, and all the examples of embedding show doing something like: [Embed(source=logo.gif)] [Bindable] public var imgCls:Class; and then mapping to an image. I'd rather not fill up my code with 50 separate variable defines, any easy way to iterate through this? thanks!
Re: [flexcoders] Re: Games in Flex / Apollo?
Huh... well, I thought I was replying to Andrew off-list... so, everyone be very quiet... don't tell anyone! Troy. On 4/27/07, Troy Gilbert [EMAIL PROTECTED] wrote: Well, more like this: game width=640 height=400 backgroundColor=#00 scene width=1 height=400 backgroundColor=blue tickRate=30 layer background=clouds.png scrollSpeedX=3 / layer instance objectRef=coin x=35 y=56 / instance objectRef=mario x=0 y=0 / instance objectRef=brick x=100 y=100 / /layer /scene object id=coin points=100 behavior type=collectMe / /object object id=mario points=0 spriteRef=marioSprite behavior type=run property name=speed value=10 / /behavior behavior type=jump property name=height value=100 / /behavior /object sprite id=marioSprite source= mario.png numFrames=12 frameWidth=32 frameHeight=32 / /game A quick toy example, but that's the basic look-n-feel of the XML right now. We're also developing an equivalent to the Flex Form Designer geared specifically toward level editing for lack of a better word. Oh, and while it's all built on Flex/Flash, it's not dependent on them (it's not literally MXML)... its a generic HTML for 2D games that can be served to any game browser. Just think of the mash-ups! ;-) Troy. On 4/27/07, Andrew [EMAIL PROTECTED] wrote: Yeah any examples, links or other descriptions would be great. Can't wait to see what you are working on. mx:Platformer mx:world level='mario001' mx:player id='mario'/ mx:enemy id='Koopa'/ /mx:world /mx:Platformer :) -Andrew --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: (There is a nice little categories thing on the side that lists Flash, but what the heck, I'm feeling generous... ;-)): General commentary on the wonders of Flex: http://troygilbert.com/2007/01/18/flex-rhymes-with/ Creating a better game development framework (or what games can learn from web 2.0): http://troygilbert.com/2006/03/01/what-games-can-learn-from-web-20/ Okay, so not that much Flex-specific stuff... most of my work was originally in Flash, but have since moved it to Flex after drinking the kool-aid. But the conceptual stuff about GameDev 2.0, while not saying it directly, is all in Flex. So, I guess I should probably start posting some more, huh? But to whet your appetite, just think how easy it is to make RIA's with MXML, wouldn't it be nice if there was a whole set of MXML tags dedicated to games? (Or before I knew about MXML, what I referred to as using XAML for games.) Troy. On 4/27/07, Scott Hoff [EMAIL PROTECTED] wrote: How about a direct link to something for those of us who are too lazy to search through your blog? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Troy Gilbert troy.gilbert@ wrote: Check out my blog, http://troygilbert.com/. I'm doing some *big* stuff with games and Flex. Troy. On 4/27/07, Erik Price erikprice@ wrote: On 4/27/07, André Rodrigues Pena andre.ufrj@ wrote: I was also considering to develop something for flex-based games. But I think that, the only reason that could lead someone to do this would be the AS3 capabilities but now Flash CS3 has come up with this technology, and it has a bunch of other functionalities to help with gaming. (True, but Flash CS3 is $699 more than the cost of the Flex SDK.) e
[flexcoders] Your favorite horizontal menu arrangement
Hello, Putting up a 100% Flex site. What is everyone using to create horizontal set of links: MenuBar? Creating a custom handler for itemClick? Then using urlLoader? If there are any neat examples, would appreciate it. Thanks.
Re: [flexcoders] embedding multiple images programmatically
mx:Image source=http//server/image.png / var image:Image = new Image (); container.addChild (image); image.source = http://foo.com/test.png;; -abdul On 4/28/07, Abdul Qabiz [EMAIL PROTECTED] wrote: Embedding the image in your application would increase the application filesize. I would rather suggest you to think of loading these images on runtime. You can load images on runtime using mx;Image or any other class (Loader etc)... -abdul On 4/28/07, dougco2000 [EMAIL PROTECTED] wrote: Hi all, I have an array of image names (of PNGs on my server), and I want to load these all up in an object list of images so I can show them when needed in my application. I've found an oddity where some of these, sometimes, don't load properly for whatever reason and are blank when I need to show them. So I am thinking I should just embed them. But since I have 50+ images, I'd like to run a loop to embed each one, and all the examples of embedding show doing something like: [Embed(source=logo.gif)] [Bindable] public var imgCls:Class; and then mapping to an image. I'd rather not fill up my code with 50 separate variable defines, any easy way to iterate through this? thanks!
[flexcoders] Re: Programatic Icon
Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike On 4/27/07, Paul Whitelock news@ wrote: Would anyone know if there is a way to create an component that can be used as an icon for any component that accepts an icon? For example, TitleWindow accepts a titleIcon. I would like to create an AS3 class that I can instantiate and specify for the TitleWindow's titleIcon. As conditions change in the window, I'd like to be able to make a function call to the icon class and have it update the icon displayed by the
[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
I am sure that no one has a solution so good as Flex. What will adobe do, wait for them to be close. I do not know what are Adobe plans, but if at this moment there is not a solution ready to use, I am afraid that this solution will only be avaiable when Microsoft will have Visual Studio 2007 ready to use and its technology ajusted and working well. Two years ago Adobe had a lot of time. But now the clock is ticking --- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: I think you are right that .NET support should be there, although I am not a .NET developer and probably never will be. I wonder if Microsoft could develop this solution? In theory they would have the best resources to understand .NET and enough people have figured out the protocols used in FDS that they should be able to develop this. Anyway, the big flaw in your argument is that Adobe doesn't need to built the solution when there is one on the market already. Paul --- In flexcoders@yahoogroups.com, mvbaffa mvbaffa@ wrote: I beleive that Adobe wants to increase its participation in the software development market. .NET is very good and its number of developers is huge. That's why they should not be fogotten. This at least is naive. Adobe has one thing that Microsoft does not have, FLASH. This is the key to success if it is well conducted. I do not care about politics. I really do not care which is the winner Microsoft or Adobe. The winner will be the one that can deploy good and affordable products. --- In flexcoders@yahoogroups.com, Bjorn Schultheiss bjorn.schultheiss@ wrote: Think again. On 27/04/2007, at 11:26 AM, mvbaffa wrote: Everybody uses Windows, almost all the workstations are windows. Macs have IE working OK.
[flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
You are rigth Jeffry. I am sure there are a lot of people that do not work with Windows. And that's OK. I just wanted to say that a lot of people works with Windows and Adobe is letting these developers with no support. I am sure you will agree that the number of windows developers is very high. The first version of all releases of Flex are delivered first in ... WINDOWS. I do not want to say that windows is better or worse than any other plataform. What I want to say is that they cannot be forgotten. --- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: I think this is true for many enterprises. Not true for a lot of developers. At 09:41 PM 4/26/2007, Bjorn Schultheiss wrote: Think again. On 27/04/2007, at 11:26 AM, mvbaffa wrote: Everybody uses Windows, almost all the workstations are windows. Macs have IE working OK. -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com
Re: [flexcoders] Re: Programatic Icon
HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule that held your extra icons and then the method you created in the subclass would then load the icons from the icon library on demand through some type of string call into the library. Conclusion, there is no way to create an image like component in components with properties of type Class. In my custom window, I wrap the icon in a UIComponent, this way when I am rendering the icon, I have 2 options. The icon property is the 'source' but not the actual instance that is manipulated in the component UI. Peace, Mike
[flexcoders] How to constrain child elements within a flexable parent?
I have a Panel that I have sized to be constrained at 10 pixels top, bottom, left and right so that it is flexible and based on the size of the browser. Inside this I have a VBox that I want to be 100% the width of the Panel. Inside this I have Labels that I want to be 20% of the width of the VBox, so that they are 5 of them evenly spaced across. The text of this label maybe longer then can be displayed within the above constraints, that is fine and I want it to be truncated if it can not fit into the width equal to ~20% of the browser. The trouble is that if I code all the above elements with percentages the labels will expand and push the parent VBox beyond the width of the Panel and I do not want this. How can I constrain the widths of the Labels (or other containers|controls I may want to put at this level) so that it will not expand, without losing the flexibility of the overall design?
[flexcoders] Re: Programatic Icon
I got a different error this time: TypeError: Error #1034: Type Coercion failed: cannot convert components::[EMAIL PROTECTED] to Namespace. Are you sure it's not Friday the 13th? Paul --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle teoti.graphix@ wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock news@ wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be subclassed. My advice to you is create a subclass of TitleWindow and create the method you are talking about there. Since you cannot load icons at runtime, you could create a simple iconLibraryModule
[flexcoders] Re: Programatic Icon
Sorry, that error should be: TypeError: Error #1034: Type Coercion failed: cannot convert mx.containers::[EMAIL PROTECTED] to Namespace. My copying and pasting got a little mixed up there :-) Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I got a different error this time: TypeError: Error #1034: Type Coercion failed: cannot convert components::[EMAIL PROTECTED] to Namespace. Are you sure it's not Friday the 13th? Paul --- In flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock news@ wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle teoti.graphix@ wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock news@ wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it.
Re: [flexcoders] Re: Programatic Icon
ok, I have wasted enough time here, listening to music, I will go make it work. Will post the class. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: I got a different error this time: TypeError: Error #1034: Type Coercion failed: cannot convert components::[EMAIL PROTECTED] to Namespace. Are you sure it's not Friday the 13th? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle teoti.graphix@ wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock news@ wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set color(value:uint):void { iconColor = value; invalidateDisplayList(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.beginFill(iconColor, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } I can place this icon in a Panel like this: mx:Panel id=myPanel titleIcon={Icon} ... So far so good -- the red square is drawn in the top left corner of the title area and it appears that I can call the color setter function like this: myPanel.titleIcon.color = 0x00FF00; But when I do this the icon color never changes. It appears that the calling invalidateDisplayList() never results in a call to updateDisplayList(). Any ideas? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com flexcoders%40yahoogroups.com, Paul J DeCoursey paul@ wrote: I've been able to get it to work for buttons and the like by extending ProgrammaticSkin and passing in the class. I've never even used the icon on a TitleWindow to even know how it's supposed to work. It should work, because everything is a class, but it might not know what to do with it. Paul Michael Schmalle wrote: Hi, The simple answer is no. Why? The titleIcon class is of type Class. This class cannot be
[flexcoders] DataGrid column header - wordWrap - but not break whole words
Any one come up with a strategy so that labels in the DataGrid column headers (or elsewhere) can wrap, but not be broken in the midde of a word? EX: Actual Response NOT: Actual Respons e Thanks, : : ) Scott
Re: [flexcoders] Re: Programatic Icon
Ok, I got it; MXML APP --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.core.mx_internal; use namespace mx_internal; private function changeIcon(event:MouseEvent):void { myPanel.titleIconObject.color = 0xFFCC00; } ]] /mx:Script mx:Panel id=myPanel titleIcon={Icon} title=Icon Panel mx:List/ mx:Button label=Change click=changeIcon(event)/ /mx:Panel /mx:Application Icon Class package { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var _color:uint = 0xFF; public function get color():uint { return _color; } public function set color(value:uint):void { _color = value; validateDisplayList(); } public function Icon() { super(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.clear(); graphics.beginFill(_color, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } Peace, Mike On 4/27/07, Michael Schmalle [EMAIL PROTECTED] wrote: ok, I have wasted enough time here, listening to music, I will go make it work. Will post the class. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: I got a different error this time: TypeError: Error #1034: Type Coercion failed: cannot convert components::[EMAIL PROTECTED] to Namespace. Are you sure it's not Friday the 13th? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same problem. In your color property, call validateDisplayList(); that will do the trick. Peace, Mike On 4/27/07, Michael Schmalle teoti.graphix@ wrote: Hi, For one I see you are missing; graphics.clear(); Try that, I don't think you are erasing the old color. Peace, Mike PS hehe I was thinking about something else when I responded and forgot the internal icon is typed IFlexDisplayObject. On 4/27/07, Paul Whitelock news@ wrote: Well here's the deal. I've created an simple icon class that draws a red square like this: package components { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var iconColor:uint = 0xFF; public function Icon() { super(); } public function set
Re: [flexcoders] Re: Programatic Icon
Maybe I should be listening to whatever music you're listening to You have Chemical Brothers :) haha No, my problem is I try to do 20 things at once. I just needed to focus on what you were witting and I could have had it solved 3 hours ago :) mx_internal is the namespace Adobe engineers use as a purgatory. Some properties there might go to heaven and some might go to hell. :) That is why I would wrap calls to anything that is in the mx_internal namespace in your own property or method. But, if it is minor stuff, you should be somewhat safe. Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: It works perfectly now! Maybe I should be listening to whatever music you're listening to :-) I guess I'm going to have to do some studying on mx_internal as I haven't explored that yet. Thank you very much! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Ok, I got it; MXML APP -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.core.mx_internal; use namespace mx_internal; private function changeIcon(event:MouseEvent):void { myPanel.titleIconObject.color = 0xFFCC00; } ]] /mx:Script mx:Panel id=myPanel titleIcon={Icon} title=Icon Panel mx:List/ mx:Button label=Change click=changeIcon(event)/ /mx:Panel /mx:Application Icon Class -- package { import mx.skins.ProgrammaticSkin; public class Icon extends ProgrammaticSkin { private var _color:uint = 0xFF; public function get color():uint { return _color; } public function set color(value:uint):void { _color = value; validateDisplayList(); } public function Icon() { super(); } override public function get measuredHeight():Number { return 16; } override public function get measuredWidth():Number { return 16; } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); graphics.clear(); graphics.beginFill(_color, 1); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); graphics.endFill(); } } } Peace, Mike On 4/27/07, Michael Schmalle [EMAIL PROTECTED] wrote: ok, I have wasted enough time here, listening to music, I will go make it work. Will post the class. :) Peace, Mike On 4/27/07, Paul Whitelock [EMAIL PROTECTED] wrote: I got a different error this time: TypeError: Error #1034: Type Coercion failed: cannot convert components::[EMAIL PROTECTED] to Namespace. Are you sure it's not Friday the 13th? Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: HAHA, Man, it must be Friday. Ok, the problem is this; titleIcon is the setter for the reference to the class that is creating the icon. You need the actual reference to the icon instance. try this; import mx.core.mx_internal; use namespace mx_internal; myPanel::mx_internal.titleIconObject.color = 0x00FF00; BTW we all know mx_internal is not supported but it will get you what you want. :) Peace, Mike On 4/27/07, Paul Whitelock news@ wrote: Unfortunately that did not work. It looks like the setter is not really being called after all. When I do this: myPanel.titleIcon.color = 0x00FF00; What seems to be happening is that it is creating a property called color just as if myPanel.titleIcon was a generic Object. I tried creating a doIconColor function (rather than using a setter) in Icon and calling it like this: Icon(myPanel.titleIcon).doIconColor(0xFF00FF); But this results in an TypeError: TypeError: Error #1034: Type Coercion failed: cannot convert components::Icon$ to components.Icon. I can't simply do this: myPanel.titleIcon.doIconColor(0xFF00FF); because I get a compile error (call to a possibly undefined method doIconColor) So the question now becomes, how do I call a function of my Icon class? Thanks for any suggestions! Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Ah, I know why you are not seeing updateDisplayList() called. Since this is ProgrammaticSkin, if the size doesn't change, the method will skip. The layoutManager calls setActualSize() and in that call if height or width did not change, you won't get the call. I had this same
[flexcoders] Re: Programatic Icon
Ahhh, the Chemical Brothers -- I haven't heard them in a while. Maybe I should dig them out of my collection :-) Thanks for the colorful description of mx_internal. I also just found a good description here: http://tinyurl.com/3y62jd However, yours is more fun :-) Thanks again for the help. Paul --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Maybe I should be listening to whatever music you're listening to You have Chemical Brothers :) haha No, my problem is I try to do 20 things at once. I just needed to focus on what you were witting and I could have had it solved 3 hours ago :) mx_internal is the namespace Adobe engineers use as a purgatory. Some properties there might go to heaven and some might go to hell. :) That is why I would wrap calls to anything that is in the mx_internal namespace in your own property or method. But, if it is minor stuff, you should be somewhat safe. Peace, Mike
Re: [flexcoders] DataGrid column header - wordWrap - but not break whole words
On 4/28/07, slangeberg [EMAIL PROTECTED] wrote: Any one come up with a strategy so that labels in the DataGrid column headers (or elsewhere) can wrap, but not be broken in the midde of a word? That's the behaviour of the built-in TextField object and I don't think anything can be done about it. You could maybe write your own header renderer and write the word-wrapping logic yourself (and truncate words that are longer than the available width).
Re: [flexcoders] How to constrain child elements within a flexable parent?
Did you mean HBox instead of VBox? From your description of the layout, it should just work. Can you post a simple example that doesn't work? On 4/28/07, Ian Skinner [EMAIL PROTECTED] wrote: I have a Panel that I have sized to be constrained at 10 pixels top, bottom, left and right so that it is flexible and based on the size of the browser. Inside this I have a VBox that I want to be 100% the width of the Panel. Inside this I have Labels that I want to be 20% of the width of the VBox, so that they are 5 of them evenly spaced across. The text of this label maybe longer then can be displayed within the above constraints, that is fine and I want it to be truncated if it can not fit into the width equal to ~20% of the browser. The trouble is that if I code all the above elements with percentages the labels will expand and push the parent VBox beyond the width of the Panel and I do not want this. How can I constrain the widths of the Labels (or other containers|controls I may want to put at this level) so that it will not expand, without losing the flexibility of the overall design? -- 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
Re: [flexcoders] embedding multiple images programmatically
On 4/28/07, dougco2000 [EMAIL PROTECTED] wrote: So I am thinking I should just embed them. But since I have 50+ images, I'd like to run a loop to embed each one, and all the examples of embedding show doing something like: [Embed(source=logo.gif)] [Bindable] public var imgCls:Class; There's no way to embed 50+ images without actually writing out the embed tags in your code.