[flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing
Thank's - I could solve it easily with your explanations. And now it is totally clear to me why it couldn't work. But there was no warning in the console. Thank's again _rico --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I didn't run the code, but by looking at it, the selectableRange is bound to a plain old object which doesn't support binding. You should have seen a warning in the console at runtime. Thus at init time, the selectableRange is bogus and the displayedMonth/Year probably get screwed up as well. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rleuthold Sent: Sunday, May 18, 2008 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DateChooser setting displayedMonth, displayedYear does nothing Hi Alex, thanks for the reply. I made a simple test case, and could figure out why it is not working as expected- Can you shortly have look at this code: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=build() mx:Script ![CDATA[ [Bindable] private var _rangeStart:Date; [Bindable] private var _rangeStart_two:Date = new Date(2006,0,1); [Bindable] private var _rangeEnd:Date; [Bindable] private var _rangeEnd_two:Date = new Date(2007,0,1); private function build():void { _rangeStart = new Date(2006,0,1); _rangeEnd = new Date(2007,0,1); } ]] /mx:Script mx:Label text=Dates set in creation complete handler: doesn't work for me / mx:DateChooser selectableRange={{rangeStart : _rangeStart, rangeEnd :_rangeEnd}} displayedMonth=10 displayedYear=2006 / mx:Label text=Dates set initially: works for me / mx:DateChooser selectableRange={{rangeStart : _rangeStart_two, rangeEnd :_rangeEnd_two}} displayedMonth=10 displayedYear=2006 / /mx:Application Is that explainable ? Thank's _rico --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: I'd make a simple test case and see if it works there. Are you sure your compDateRange has two elements with valid values? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of rleuthold Sent: Saturday, May 17, 2008 6:05 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DateChooser setting displayedMonth, displayedYear does nothing Hi, I have a DateChooser in a popUp window. If I set the displayedMonth and displayedYear properties on that DateChooser (after creating the popup), nothing happens. The display is still on the month and year previously selected/displayed. Does anybody have an idea ? code (parent comp): _datePickerWin = DateRangerPopUp(PopUpManager.createPopUp(Application.application as DisplayObject, DateRangerPopUp, true)); _datePickerWin.compDateRange = _dateRange; code (DateRangerPopup): public function set compDateRange(dateRange:Array):void { _compDateRange = dateRange; dateChooser.selectedRanges = [ {rangeStart: _compDateRange[0], rangeEnd: _compDateRange[1] }]; dateChooser.displayedMonth = _compDateRange[1].month; dateChooser.displayedYear = _compDateRange[1].fullYear; Thank's rico
[flexcoders] Re: bug in setMonth() method?
Hi Alex, Here is the bug when you set correct value and get incorrect result. https://bugs.adobe.com/jira/browse/SDK-14983 adding 24 hours does will not cause switching to the next date if it happens over the daylight saving change date [summer-winter]) Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I would not guarantee results if you set values that are out of range. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, May 16, 2008 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] bug in setMonth() method? Hi, all; I'm working on making an app that will allow users to navigate from one month to the next based on a start date and end date. I noticed some interesting effects with the date object and days that fall outside the 1-31 range (http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j ), so I thought I'd try something similar with months. What I find is if the current month is 11 and you add 1 to it, you'll actually wind up with a date that's not in the _next_ year, but one in the year following. Here's my code public function makeDisplayedMonths(beginDate:Date, endDate:Date):void { var today:Date= new Date(); //set up date for loop var parseDate:Date = beginDate; //equalize parsedate and enddate parseDate.setDate(1); endDate.setDate(1); while (parseDate = endDate) { //update date parseDate.setMonth(++parseDate.month); trace(parseDate, endDate); } } the trace is this Tue Jul 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Aug 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Sep 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Wed Oct 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Sat Nov 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Dec 1 00:00:00 GMT-0600 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Jan 1 00:00:00 GMT-0600 2010 Thu Jan 1 00:00:00 GMT-0600 2009 Note that it goes from Dec 1 2008 to Jan 1 2010, skipping 2009 altogether. Obviously now I know this I can code around it, but it seems like it should either throw an error that the month is out of range or just keep incrementing. Or have I missed something here? Thanks; Amy
[flexcoders] Determine IS with a Class object rather than an instance?
Guys, Say I have this: function findMeAClassMagic() : Class { ... } var foo : Class = findMeAClassMagic(); Can I determine whether or not the class represented by Foo is a Bar or a subclass of Bar, without attempting to call a new foo() and hoping foo has a zero-argument constructor inside a try-catch block? I'd rather not risk any unwanted side-effects if possible, as I can't always know that foo() won't do something unruly. Cheers, -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] flex3 sdk and eclipse 3.2
On Sunday 18 May 2008, Gustavo Duenas wrote: Hi, anyone knows a way to make eclipse 3.2 to work with the flex sdk? With or without Flex Builder ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Buggy tree control
Hi All I've been having some very odd issues with my tree control in Flex 3. My control is bound to an XML dataprovider and has a custom dataDescriptor (but all these issues seem to continue without the dataDescriptor). One issues was that if I delete a node and then append a new node in it's place enough times the scroll bars on the tree control would appear as the tree control think that the tree is a lot longer. If you scroll you get the root node multiple times. This was fixed by using replaceNode instead. I've also had a lot of lay out issues, multiple labels appearing on one branch ect. Lastly, and this is the bug I want help with, when I expand a branch and try to click on a leaf (that has just been added) I often can't click on it initially. I have to click on the selected and expanded parent then click on the child to select it. I have tried to make simple test cases for these issues but have not been able to replicate it in a cut down version. I may have another go at this later if I have time. Has anyone else had trouble with the tree component? Thanks -- Giles Roadnight http://giles.roadnight.name
[flexcoders] Installing Flex-plugin without copying to SDK folder again?
Hi, I have a very simple question, but i can't figure out the answer. Is there way to install a Flex-plugin to a second eclipse in the same machine without Re-installing the whole SDK? Because, when i use the installer, it will ask for the desire SDK folder everytime and try to reinstall all the files inside it again... Daniel
Re: [flexcoders] Installing Flex-plugin without copying to SDK folder again?
On Monday 19 May 2008, Dan wrote: Hi, I have a very simple question, but i can't figure out the answer. Is there way to install a Flex-plugin to a second eclipse in the same machine without Re-installing the whole SDK? One the plugin is installed, you can add the SDKs from your other install, if you wish, yes. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] a simple question of BitmapData
This will most likely fail, for 2 reasons: 1. In order to deserialze a object of a special type, you need to call 'registerClassAlias' 2. BitmapData has a constructor with required arguments If you wanted to serialize a BitmapData instance into AMF you would need to extend the class and set default values for the constructor. Greetz Erik Hi, you can use this method: public static function clone(value:ByteArray):ByteArray { var myBA:ByteArray = new ByteArray(); myBA.writeObject(value); myBA.position = 0; return myBA.readObject(); } kind regards, Frederico Garcia
[flexcoders] Preventing DataGrid Scroll on XMLListCollection Data Refresh
Hello, I have an XMLListCollection bound to a DataGrid. I have to periodically update the data in the list and call refresh on it but everytime I do that, the grid scrolls. Is there any way by which I could prevent the scrolling on refresh. Many Thanks, Aman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
Re: [flexcoders] How to set the e.currentTarget.selectedItem data to my own VO object?
var vo:TileListVO = TileListVO(e.currentTarget.selectedItem); Greetz Erik On 5/19/08, flexawesome [EMAIL PROTECTED] wrote: Hi there, I was trying to figure out how to set my selected data to my VO object. so I could get the data anywehere in my application ( using cairngorm framework ). in the exaple code below, I would like to click the TileList and set the data in my TileListVO. it drove me mad :( I got an error msg of TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to TileListVO http://www.privatepaste.com/daxull81OV Thank you so much.
Re: [flexcoders] Installing Flex-plugin without copying to SDK folder again?
Look at help software updates manage configuration and choose add a extension. Point to the 'eclipse' directory where you installed the plugin. You really need two eclipse versions? You do know you can have multiple workspaces, right? DK On Mon, May 19, 2008 at 3:33 AM, Dan [EMAIL PROTECTED] wrote: Hi, I have a very simple question, but i can't figure out the answer. Is there way to install a Flex-plugin to a second eclipse in the same machine without Re-installing the whole SDK? Because, when i use the installer, it will ask for the desire SDK folder everytime and try to reinstall all the files inside it again... Daniel -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Apache 1.3.26 vs 2.0 with Flex 2.0 app
On Friday 16 May 2008, RS wrote: I have a flex application that runs fine on Apache 2.0 (with IE). It just displays a blank page with Apache 1.3.26. Has anyone experienced this problem? Almost certainly the HTML wrapper or 1.3 Apache instance is not sending the right swf file, maybe a permissions issue. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: bug in setMonth() method?
try myDate = new Date(2008, 3, 6,0,0,0,0); //use new Date(2008, 2, 8,0,0,0,0) for US myDate.date += 1; instead, eh? I suspect mutating myDate.time is looked at as low level manipulation for special cases. Just a guess. DK On Mon, May 19, 2008 at 1:55 AM, Dmitri Girski [EMAIL PROTECTED] wrote: Hi Alex, Here is the bug when you set correct value and get incorrect result. https://bugs.adobe.com/jira/browse/SDK-14983 adding 24 hours does will not cause switching to the next date if it happens over the daylight saving change date [summer-winter]) Cheers, Dmitri. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I would not guarantee results if you set values that are out of range. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Amy Sent: Friday, May 16, 2008 2:31 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] bug in setMonth() method? Hi, all; I'm working on making an app that will allow users to navigate from one month to the next based on a start date and end date. I noticed some interesting effects with the date object and days that fall outside the 1-31 range (http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j ), so I thought I'd try something similar with months. What I find is if the current month is 11 and you add 1 to it, you'll actually wind up with a date that's not in the _next_ year, but one in the year following. Here's my code public function makeDisplayedMonths(beginDate:Date, endDate:Date):void { var today:Date= new Date(); //set up date for loop var parseDate:Date = beginDate; //equalize parsedate and enddate parseDate.setDate(1); endDate.setDate(1); while (parseDate = endDate) { //update date parseDate.setMonth(++parseDate.month); trace(parseDate, endDate); } } the trace is this Tue Jul 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Aug 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Sep 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Wed Oct 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Sat Nov 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Dec 1 00:00:00 GMT-0600 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Jan 1 00:00:00 GMT-0600 2010 Thu Jan 1 00:00:00 GMT-0600 2009 Note that it goes from Dec 1 2008 to Jan 1 2010, skipping 2009 altogether. Obviously now I know this I can code around it, but it seems like it should either throw an error that the month is out of range or just keep incrementing. Or have I missed something here? Thanks; Amy -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] HBox - Padding left the scroll bar does not work as expected
Hi, I have the following code: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:HBox maxWidth=100 height=100 paddingLeft=20 mx:Image source=logo.png maxWidth=150/ mx:Image source=logo.png maxWidth=100/ /mx:HBox /mx:WindowedApplication The paddingLeft is expected to create a gap of 20px between the border of the application and the hBox. And in some sense it does. The images are 20px distant with respect to the border, but the scroll bar of the images is very close to the border. Is there any way to set the padding of the scroll bar as well? Thanks in advance, -c.
[flexcoders] ComboTree
Hi everyone how can I put a tree in a comboBox?
[flexcoders] Re: SQL Lite syntax issue, need something cleared up regarding SELECT
--- In flexcoders@yahoogroups.com, Marcus Engene [EMAIL PROTECTED] wrote: And then google for sql injection. Already taken care of beforehand, I find to be a bit of an annoyance when the solution to so many problems turn out to be incredibly simple, apparently too simply for me to readily find. Oh well all a part of learning, Thanks everyone I really appreciate your assistance. The problem did indeed turn out to be an issue with the parameters I was throwing in and what to throw around them.
[flexcoders] My application crash
Hi, I hope some of you guys can help me. I made my first company Flex application integrated into a webapplication using Java Dataservice to communicate to backend. On Windows machine it works properly. When deploying into a Linux machine it crashes almost all time when the application either is launched or refreshed in a browser (IE/Firefox). Using Adobe flex SDK 3.+ , DataService, Flash 9+ on client it doesn't help. The exception I get is: --- [RPC Fault faultString=Channel disconnected faultCode=Client.Error.DeliveryInDoubt faultDetail=Channel disconnected before an acknowledgement was received] at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent() at DataListRequestResponder/fault() at mx.rpc::AsyncRequest/fault() at NetConnectionMessageResponder/channelDisconnectHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Channel/disconnectSuccess() at mx.messaging.channels::NetConnectionChannel/internalDisconnect() at mx.messaging.channels::RTMPChannel/internalDisconnect() at mx.messaging.channels::RTMPChannel/statusHandler() I'm stuck and hope some can help. -tuncay
[flexcoders] more data into alert, or panel acting as an alert
Hello everyone, I wanna show alerts in my web app for several things (please wait, recording, updating, etc...). I like Alert, but in my case I wish I could close it with a call from AS3, as well as being able to put any kind of information inside, like animations, graphics, etc... I've been thinking that it would be better using a Panel, but...then i want a way to disable mouse click everywhere else, and make everything else blur, just like an Alert. Did any of u program something like this already? How could i do it?? Keep in mind i'm still quite newbie, so extending classes in Flex3 by myself alone is quite impossible still :( Thank you all very much! __ Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
[flexcoders] How do I switch data providers?
Can someone help me out please? I have a ComboBox with a list of subjects. I want the user's selection to change the name of the dataProvider. I found a reference in Adobe's docs that says it can be done but I can't figure out how. Can you also volunteer any information where I can find a cookbook of examples. I have tried all the usual sources, but can't find what I'm looking for. (Just past newbie, but still a bit confused). :) Thanks.
[flexcoders] Air - Send Client Certificate to Web Service
I'm deploying a project that need to comunicate to secure webservice over https. The server only accept connections with x509 client certificates and it is the CA. There is a way to authenticate an AIR application using client certificates? I have already downloaded hurlants library, but I don't know if its the solution, and I don't know how to use it.
[flexcoders] FMS3 sys reqs
Hi, Sorry for the slightly tangential post but Adobe support wants to charge me $12,595 AUD to tell me whether FMS3 will run on a certain linux kernel without issues. I have a few choice words in response that I don't need to repeat here. If there is a better forum for this question then kindly point me to it. Basically - there is a tech note: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402839sliceId=2 That says that on RHEL4 with kernel 2.6.9-42 FMS3 is restricted to 500 connections, rather than the ~1200 connections it could support and recommends that the kernel be downgraded to 2.6.9-22. What i want to know is - what about subsequent versions of the kernel, does the problem still exist ? Is anyone else here running FMS3 on RHEL 5 with no upper connection limitations ?? Thanks, Nik Derewianka
[flexcoders] Parse RSS XML in HTML format???
I am using the RSSParser to read XML data into Flex, but can't get past an item which is formatted in HTML, it is the itemdescription portion of the feed... it it between Script tags like this... description![CDATA[ table border=0 cellspacing=0 cellpadding=0 width=200 TR bgcolor=#DD TD ALIGN=LEFT COLSPAN=2 nowrapa href=http://www.nasdaq.com/quote.dll? mode=stockpage=multisymbol=MSFTselected=MSFTMSFT/a nbsp; /TD (html code removed) /TRTR TD COLSPAN=2 nowrapnbsp; /TD /TR /TABLE ]]/description My Parser reads it in but I don't know what to call it or do with it. Here is xml PARSING code: for each (var item:XML in rssXML..item) { var itemTitle:String = item.title.toString(); var itempubDate:String = item.pubDate.toString(); var itemDescription:String = item.description.toString() var itemLink:String = item.link.toString(); outXML += buildItemHTML(itemTitle, itempubDate, itemDescription, itemLink); } XML.prettyPrinting = false; rssOutput = outXML.toXMLString(); trace(rssOutput); rssTitle = rssXML.channel.title.toString(); dataWritten = new Event(dataWritten, true); dispatchEvent(dataWritten); } Here is HTML output code: private function buildItemHTML(itemTitle:String, itempubDate:String, itemDescription:String, itemLink:String):XMLList { default xml namespace = new Namespace(); var body:XMLList = new XMLList(); body += new XML(b + itemTitle + /b); body += new XML(itempubDate); var p:XML = new XML(p + itemDescription + /p) var link:XML = a/a; [EMAIL PROTECTED] = itemLink; // link href=itemLinkString/link [EMAIL PROTECTED] = #008000; // font color=#008000/font/a // 0x008000 = green link.font = More...; p.appendChild(br/); p.appendChild(link); body += p; return body; Any suggestions?
Re: [flexcoders] more data into alert, or panel acting as an alert
On Monday 19 May 2008, David Pariente wrote: as well as being able to put any kind of information inside, like animations, graphics, etc... TitleWindow ? http://livedocs.adobe.com/flex/3/langref/mx/containers/TitleWindow.html -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Using custom item renderer with List
Hi all, In my application I am pooling data every 3 seconds. The data goes into a model which updates a view. I am using a list with a custom Item renderer. In the custom itemRenderer I am overriding the data getter/setter. Everything works fine (the bindings and all) except one fact: the the DataProvider for the List contains only 4 items. When I trace out the data value in the overriden setter in the itemRenderrer the first item form the DataProvider is displayed twice. Has Anyone any ideea why? Does that means somehow that the list adds the first item from the dataProvider twice? When i log the length of the dataProvider it always display 4. This issue is giving me hedaches for a few days now ... code snippet: the overriden data porperty in the custom item renderer look as below private var _data : Object; override public function set data(val : Object) : void { trace(data setter = + val); this._data = val; } the trace always display 5 lines on every model update and the first item is displayed twice TIA Claudiu
Re: [flexcoders] Re: Bindable tag question
If you have: var myList : ArrayCollection = new ArrayCollection(); And it's not bindable, but points to objects that are, then a component that has it as a dataProvider will update when you add an item, or remove an item, or change an item. But, since the myList variable itself is not bindable, you could do this: myList = new ArrayCollection(); And there'd be no update, and myDatagrid.dataProvider would still point to the old ArrayCollection. -J On Mon, May 19, 2008 at 7:02 PM, gaurav1146 [EMAIL PROTECTED] wrote: Hi, Thanks, I now get that addItem method was responsible for triggering the property change event. But I am not very clear what purpose does it serve to have the dataProvider as Bindable. Based on your example I created a class Company and used an Arraycollection companyList to display companies in the datagrid. It did not matter whether the companyList was Bindable or not. All that was required was that the name property of Company should be Bindable. Also for a list containing Object the value of the datagrid was not updated if any object property was changed irrespective of whether the list is Bindable or not. The thing is that if I do not set the dataprovider as Bindable I get a warning that Data Binding would not be able to detect assignments to the dataProvider. I would be grateful if you could point me to a scenario where declaring the dataProvider as Bindable makes a difference. Would it be in cases like where I use something like dataGrid2.dataProvider = {dataGrid1.dataProvider}. Following is the modified code that I tried out: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=createCompanies() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var dp:ArrayCollection = new ArrayCollection([{index:1,word:Test1},{index:2, word:Test2}]); public var companyList:ArrayCollection = new ArrayCollection(); /* * Does not work as the word property in Object is not bindable */ public function changeDataProvider():void { var obj:Object = dp.getItemAt(0); obj[word] = Modified Test; } public function createCompanies():void{ var c1:Company = new Company(); var c2:Company = new Company(); c1.name= ABC; c2.name = XYZ; companyList.addItem(c1); companyList.addItem(c2); } /* * Works if name is declared as Bindable in the Company class */ public function changeCompany():void{ var obj:Company = companyList.getItemAt(0) as Company; obj.name = ABC Modified; } ]] /mx:Script mx:HBox mx:VBox mx:DataGrid dataProvider={dp}/ mx:Button click=changeDataProvider() label=Change data/ /mx:VBox mx:VBox mx:DataGrid dataProvider={companyList} mx:columns mx:DataGridColumn dataField=name headerText=Company/ /mx:columns /mx:DataGrid mx:Button click=changeCompany() label=Change Company/ /mx:VBox /mx:HBox /mx:Application ***Company.as package { public class Company { public function Company() { super(); } [Bindable] public var name:String; } } --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: If you call addItem(), updateItem(), etc, the PropertyChangedEvent is dispatched by the IList implementor (ie, ArrayCollection). But, if you have an IList of objects, and you do this: var company : Company = companyList.getItemAt(3) as Company; company.name = New name; then you'll only get the new data on screen if Company (or Company.name) is marked [Bindable] When you call the modifying methods on the dataprovider itself, then the change is marked as happening on the IList (and it dispatches the PropertyChangedEvent). But if you change the content of an object contained within that list, nobody knows about it unless you add the [Bindable]. [Bindable] is a compile-time decorator that dispatches the events on your behalf. If I'm making things muddier rather than clearer with that, let me know ;-) -J On Mon, May 19, 2008 at 2:01 PM, gaurav1146 [EMAIL PROTECTED] wrote: Hi, I have been using Bindable tag for data providers in datagrid, list etc. The doc states that this ensures that the destination datagrid would reflect the change when the dataprovider is changed. But I have observed that even if I do not use the Bindable tag the datagrid is still updated when the dataprovider changes. Here is a simple example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; /*Bindable tag not added. Flex Builder gives a warning when the variable is referenced in the datagrid but it still works.*/ private var dp:ArrayCollection = new ArrayCollection([{index:1, word:Test1},{index:2, word:Test2}]) public function changeDataProvider():void { var obj1:Object = new Object();
[flexcoders] Rezizer for text input
Hi guys anyone knows how i can create a resizer for textInput?
[flexcoders] Passing application/pdf response to enclosing browser
Hello how do I pass data dowloaded by Flex to the enclosing browser ? I mean: I have a Flex 3 app that downloads a PDF file from the server. I issue a GET HTTP request to the server, by a URLLoader/URLRequest combination, and the server replies with an application/pdf HTTP response. All fine. But as the data lands to Flex client side, nothing happens. How do I pass data to the browser, so that it can invoke its AcroReader plugin ? Thanks -- View this message in context: http://www.nabble.com/Passing-application-pdf-response-to-enclosing-browser-tp17316728p17316728.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Using custom item renderer with List
If you do'nt speicfy a rowHeight, the List will measure the first item to see how big it is before creating renderers for it and the rest. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of the_braniak Sent: Monday, May 19, 2008 5:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using custom item renderer with List Hi all, In my application I am pooling data every 3 seconds. The data goes into a model which updates a view. I am using a list with a custom Item renderer. In the custom itemRenderer I am overriding the data getter/setter. Everything works fine (the bindings and all) except one fact: the the DataProvider for the List contains only 4 items. When I trace out the data value in the overriden setter in the itemRenderrer the first item form the DataProvider is displayed twice. Has Anyone any ideea why? Does that means somehow that the list adds the first item from the dataProvider twice? When i log the length of the dataProvider it always display 4. This issue is giving me hedaches for a few days now ... code snippet: the overriden data porperty in the custom item renderer look as below private var _data : Object; override public function set data(val : Object) : void { trace(data setter = + val); this._data = val; } the trace always display 5 lines on every model update and the first item is displayed twice TIA Claudiu
RE: [flexcoders] How do I switch data providers?
You mean something like this? mx:ComboBox id=cb change=cb.dataProvider = someOtherData[cb.selectedItem.name] / From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ucabb4u Sent: Monday, May 19, 2008 2:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I switch data providers? Can someone help me out please? I have a ComboBox with a list of subjects. I want the user's selection to change the name of the dataProvider. I found a reference in Adobe's docs that says it can be done but I can't figure out how. Can you also volunteer any information where I can find a cookbook of examples. I have tried all the usual sources, but can't find what I'm looking for. (Just past newbie, but still a bit confused). :) Thanks.
RE: [flexcoders] ComboTree
search the archives and/or web. It has been done. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of adrozdenko Sent: Monday, May 19, 2008 5:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ComboTree Hi everyone how can I put a tree in a comboBox?
RE: [flexcoders] HBox - Padding left the scroll bar does not work as expected
You've set padding between the HBox and its content. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cesarerocchi Sent: Monday, May 19, 2008 4:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HBox - Padding left the scroll bar does not work as expected Hi, I have the following code: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:HBox maxWidth=100 height=100 paddingLeft=20 mx:Image source=logo.png maxWidth=150/ mx:Image source=logo.png maxWidth=100/ /mx:HBox /mx:WindowedApplication The paddingLeft is expected to create a gap of 20px between the border of the application and the hBox. And in some sense it does. The images are 20px distant with respect to the border, but the scroll bar of the images is very close to the border. Is there any way to set the padding of the scroll bar as well? Thanks in advance, -c.
RE: [flexcoders] Preventing DataGrid Scroll on XMLListCollection Data Refresh
Don't call refresh. That makes it think there's a sort going on. If you use XMLListCollection APIs to update the data it should not scroll From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thind, Aman Sent: Monday, May 19, 2008 3:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Preventing DataGrid Scroll on XMLListCollection Data Refresh Hello, I have an XMLListCollection bound to a DataGrid. I have to periodically update the data in the list and call refresh on it but everytime I do that, the grid scrolls. Is there any way by which I could prevent the scrolling on refresh. Many Thanks, Aman - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
RE: [flexcoders] Buggy tree control
search the tree bugs on bugs.adobe.com/jira and see if your issue is already open. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight Sent: Monday, May 19, 2008 1:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Buggy tree control Hi All I've been having some very odd issues with my tree control in Flex 3. My control is bound to an XML dataprovider and has a custom dataDescriptor (but all these issues seem to continue without the dataDescriptor). One issues was that if I delete a node and then append a new node in it's place enough times the scroll bars on the tree control would appear as the tree control think that the tree is a lot longer. If you scroll you get the root node multiple times. This was fixed by using replaceNode instead. I've also had a lot of lay out issues, multiple labels appearing on one branch ect. Lastly, and this is the bug I want help with, when I expand a branch and try to click on a leaf (that has just been added) I often can't click on it initially. I have to click on the selected and expanded parent then click on the child to select it. I have tried to make simple test cases for these issues but have not been able to replicate it in a cut down version. I may have another go at this later if I have time. Has anyone else had trouble with the tree component? Thanks -- Giles Roadnight http://giles.roadnight.name http://giles.roadnight.name
RE: [flexcoders] Determine IS with a Class object rather than an instance?
Try getQualifiedClassName/getQualifiedSuperClassName From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Monday, May 19, 2008 12:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Determine IS with a Class object rather than an instance? Guys, Say I have this: function findMeAClassMagic() : Class { ... } var foo : Class = findMeAClassMagic(); Can I determine whether or not the class represented by Foo is a Bar or a subclass of Bar, without attempting to call a new foo() and hoping foo has a zero-argument constructor inside a try-catch block? I'd rather not risk any unwanted side-effects if possible, as I can't always know that foo() won't do something unruly. Cheers, -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [flexcoders] logic code in another file
Need to say, tanks all you guys, those links helped a lot, especially the code behind approach. Since i never used other kind of presentation layer, this way to solve the tings is new to me. 2008/5/19 Tom Chiverton [EMAIL PROTECTED]: On Friday 16 May 2008, Paul Andrews wrote: You need to use classes and put your logic there, just leave the use of the script tags to control the UI and communicate with the logic. A swift google for the 'code behind' approach in Flex may help too: http://community.adobe.com/ion/search.html?q=code+behindlbl=0x=0y=0 -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
RE: [flexcoders] Re: bug in setMonth() method?
That didn't seem like a bug. If you look at the number of milliseconds, it is hopefully correct and the issue is all about representation. Get some others to vote and we'll take another look. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Monday, May 19, 2008 12:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: bug in setMonth() method? Hi Alex, Here is the bug when you set correct value and get incorrect result. https://bugs.adobe.com/jira/browse/SDK-14983 https://bugs.adobe.com/jira/browse/SDK-14983 adding 24 hours does will not cause switching to the next date if it happens over the daylight saving change date [summer-winter]) Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I would not guarantee results if you set values that are out of range. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Amy Sent: Friday, May 16, 2008 2:31 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] bug in setMonth() method? Hi, all; I'm working on making an app that will allow users to navigate from one month to the next based on a start date and end date. I noticed some interesting effects with the date object and days that fall outside the 1-31 range (http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j ), so I thought I'd try something similar with months. What I find is if the current month is 11 and you add 1 to it, you'll actually wind up with a date that's not in the _next_ year, but one in the year following. Here's my code public function makeDisplayedMonths(beginDate:Date, endDate:Date):void { var today:Date= new Date(); //set up date for loop var parseDate:Date = beginDate; //equalize parsedate and enddate parseDate.setDate(1); endDate.setDate(1); while (parseDate = endDate) { //update date parseDate.setMonth(++parseDate.month); trace(parseDate, endDate); } } the trace is this Tue Jul 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Aug 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Sep 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Wed Oct 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Sat Nov 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Dec 1 00:00:00 GMT-0600 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Jan 1 00:00:00 GMT-0600 2010 Thu Jan 1 00:00:00 GMT-0600 2009 Note that it goes from Dec 1 2008 to Jan 1 2010, skipping 2009 altogether. Obviously now I know this I can code around it, but it seems like it should either throw an error that the month is out of range or just keep incrementing. Or have I missed something here? Thanks; Amy
[flexcoders] Help! question on deploying flex and blazeDS on WebLogic
Hi all, I am with a software dev company, and we have a search app with a UI built in flex. Currently our app works on web Logic. As part of our app's upgrade to flex 3 we are switching from fds to blaze DS. Because of legal reasons since Blaze is open source we need to split out the blaze war and leave it as something the customer will install separately. I have found a few blogs discussing blaze and Web Logic, but it requires you use BEA Studio. Does anyone know how to keep blaze separate from the flex project and our applications war? thanks for your time Jeff
Re: [flexcoders] ComboTree
http://cyberdust.wordpress.com/2007/02/23/introducing-selecttree-the-drop-down-tree-control/ i found this one but its not working it has this SubjectGateway i get an error coz i'm using Flex 3 - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 19, 2008 5:23:06 PM Subject: RE: [flexcoders] ComboTree search the archives and/or web. It has been done. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of adrozdenko Sent: Monday, May 19, 2008 5:00 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] ComboTree Hi everyone how can I put a tree in a comboBox?
[flexcoders] XML Validation Question
Is there an easy way to validate XML against an XSD in Flex? -Andrew
[flexcoders] Re: bug in setMonth() method?
Hi Douglas, Yay! Your suggestion fixed the problem! mydate.date +=1; mydate = new Date(mydate); Thank you! Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: try myDate = new Date(2008, 3, 6,0,0,0,0); //use new Date(2008, 2, 8,0,0,0,0) for US myDate.date += 1; instead, eh? I suspect mutating myDate.time is looked at as low level manipulation for special cases. Just a guess. DK On Mon, May 19, 2008 at 1:55 AM, Dmitri Girski [EMAIL PROTECTED] wrote: Hi Alex, Here is the bug when you set correct value and get incorrect result. https://bugs.adobe.com/jira/browse/SDK-14983 adding 24 hours does will not cause switching to the next date if it happens over the daylight saving change date [summer-winter]) Cheers, Dmitri. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: I would not guarantee results if you set values that are out of range. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Amy Sent: Friday, May 16, 2008 2:31 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] bug in setMonth() method? Hi, all; I'm working on making an app that will allow users to navigate from one month to the next based on a start date and end date. I noticed some interesting effects with the date object and days that fall outside the 1-31 range (http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j ), so I thought I'd try something similar with months. What I find is if the current month is 11 and you add 1 to it, you'll actually wind up with a date that's not in the _next_ year, but one in the year following. Here's my code public function makeDisplayedMonths(beginDate:Date, endDate:Date):void { var today:Date= new Date(); //set up date for loop var parseDate:Date = beginDate; //equalize parsedate and enddate parseDate.setDate(1); endDate.setDate(1); while (parseDate = endDate) { //update date parseDate.setMonth(++parseDate.month); trace(parseDate, endDate); } } the trace is this Tue Jul 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Aug 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Sep 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Wed Oct 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Sat Nov 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Dec 1 00:00:00 GMT-0600 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Jan 1 00:00:00 GMT-0600 2010 Thu Jan 1 00:00:00 GMT-0600 2009 Note that it goes from Dec 1 2008 to Jan 1 2010, skipping 2009 altogether. Obviously now I know this I can code around it, but it seems like it should either throw an error that the month is out of range or just keep incrementing. Or have I missed something here? Thanks; Amy -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] Write Data to Tab Navigater
Hello, I have a question for ya, I have this tab navigator and I have a few text input boxes in each one. I create a json call and I want to populate the text input boxes with the requested data. mx:TabNavigator xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=500 mx:Canvas label=User width=100% height=100% id=UserTab mx:Form width=100% height=467 mx:FormItem label=First Name id=firstNamelbl mx:TextInput id=firstName/ /mx:FormItem mx:FormItem id=lastNamelbl label=Last Name mx:TextInput id=lastName/ /mx:FormItem mx:FormItem id=emaillbl label=Email mx:TextInput id=email editable=false/ /mx:FormItem /mx:Form /mx:Canvas mx:Canvas label=Company width=100% height=100% id=CompanyTab mx:Form width=100% height=100% mx:FormItem id=companynamelbl label=Company Name mx:TextInput id=companyname/ /mx:FormItem mx:FormItem id=addressonelbl label=Address One mx:TextInput id=addressone/ /mx:FormItem mx:FormItem id=addresstwolbl label=Address Two mx:TextInput id=addresstwo/ /mx:FormItem mx:FormItem id=statelbl label=State mx:ComboBox id=state /mx:ComboBox /mx:FormItem mx:FormItem id=ziplbl label=Zip Code mx:TextInput id=zip/ /mx:FormItem mx:FormItem id=countrylbl label=Country mx:ComboBox id=country /mx:ComboBox /mx:FormItem /mx:Form /mx:Canvas /mx:TabNavigator So I have these 2 tabs a user and company tab. When I return the JSON I have an object so I create a function public var DoThis(obj:Object) { firstName.text = obj.firstName; lastName.text = obj.lastName; email.text= obj.email; addressone.text = obj.addressone; addresstwo.text = obj.addresstwo; state.text = obj.state; country.text = obj.country } So I call that function to populate the text inputs in the tabs but I get an error, TypeError: Error #1009: Cannot access a property or method of a null object reference. Since firstName.text = obj.firstName; lastName.text = obj.lastName; email.text= obj.email; are shown on the first tab when the function is called, they work, but the other items addressone.text = obj.addressone; addresstwo.text = obj.addresstwo; state.text = obj.state; country.text = obj.country give me the error , if I comment them out they work fine. I am used to DoJo when creating a Tab Navigator I can write to all the text input win the other tabs that are not shown. Can I write to something a tab if it is now displayed yet in flex??? Thanks for the help, timgerr
[flexcoders] Re: bug in setMonth() method?
Hi Alex, The number of milliseconds in GMT will be correct, but local time will be wrong. Douglas suggested in a couple of posts above the solution which works mydate.date +=1; mydate = new Date(mydate); This thing goes correctly over the daylight savings. So I presume the functionality which checks it is there in set date(), but not in set time(). Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: That didn't seem like a bug. If you look at the number of milliseconds, it is hopefully correct and the issue is all about representation. Get some others to vote and we'll take another look. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Monday, May 19, 2008 12:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: bug in setMonth() method? Hi Alex, Here is the bug when you set correct value and get incorrect result. https://bugs.adobe.com/jira/browse/SDK-14983 https://bugs.adobe.com/jira/browse/SDK-14983 adding 24 hours does will not cause switching to the next date if it happens over the daylight saving change date [summer-winter]) Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: I would not guarantee results if you set values that are out of range. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Amy Sent: Friday, May 16, 2008 2:31 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] bug in setMonth() method? Hi, all; I'm working on making an app that will allow users to navigate from one month to the next based on a start date and end date. I noticed some interesting effects with the date object and days that fall outside the 1-31 range (http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j http://tinyurl.com/5qc46j ), so I thought I'd try something similar with months. What I find is if the current month is 11 and you add 1 to it, you'll actually wind up with a date that's not in the _next_ year, but one in the year following. Here's my code public function makeDisplayedMonths(beginDate:Date, endDate:Date):void { var today:Date= new Date(); //set up date for loop var parseDate:Date = beginDate; //equalize parsedate and enddate parseDate.setDate(1); endDate.setDate(1); while (parseDate = endDate) { //update date parseDate.setMonth(++parseDate.month); trace(parseDate, endDate); } } the trace is this Tue Jul 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Aug 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Sep 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Wed Oct 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Sat Nov 1 00:00:00 GMT-0500 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Mon Dec 1 00:00:00 GMT-0600 2008 Thu Jan 1 00:00:00 GMT-0600 2009 Fri Jan 1 00:00:00 GMT-0600 2010 Thu Jan 1 00:00:00 GMT-0600 2009 Note that it goes from Dec 1 2008 to Jan 1 2010, skipping 2009 altogether. Obviously now I know this I can code around it, but it seems like it should either throw an error that the month is out of range or just keep incrementing. Or have I missed something here? Thanks; Amy
[flexcoders] Re: Bindable tag question
--- In flexcoders@yahoogroups.com, gaurav1146 [EMAIL PROTECTED] wrote: Hi, Thanks, I now get that addItem method was responsible for triggering the property change event. But I am not very clear what purpose does it serve to have the dataProvider as Bindable. Based on your example I created a class Company and used an Arraycollection companyList to display companies in the datagrid. It did not matter whether the companyList was Bindable or not. All that was required was that the name property of Company should be Bindable. Also for a list containing Object the value of the datagrid was not updated if any object property was changed irrespective of whether the list is Bindable or not. The thing is that if I do not set the dataprovider as Bindable I get a warning that Data Binding would not be able to detect assignments to the dataProvider. I would be grateful if you could point me to a scenario where declaring the dataProvider as Bindable makes a difference. Would it be in cases like where I use something like dataGrid2.dataProvider = {dataGrid1.dataProvider}. The reason you get the warning when it is not bindable is you're using the {} notation. That is specifically telling Flex to use a bindable variable. If that variable weren't set prior to your component's being drawn by the Framework, you would actually have an empty datagrid--simply assigning a value to the dataProvider variable would not populate the grid. One advantage of using a bindable variable is that you don't have to worry about setting your dataprovider explicitly at the right time to allow the Framework to lay out and size your component correctly. For instance, if your component that needs a dataProvider is a child of a List component, then the first time the component is drawn, the dataChange event will happen before that child exists. If you try to set the dataProvider in code yourself, you might be tempted to try to use the dataChange event to do that setting. But this won't work because the child component hasn't been drawn. So if you _don't_ use data binding, you need to really understand the component lifecycle, since you'll need to assign the dataprovider to the component yourself at the correct time, in an override of the commitProperties() method. When you _do_ use dataBinding, simply assigning a value (or a new value) to the variable triggers the Framework to handle all of this for you. What you're seeing with the ArrayCollection type is something slightly different from data binding. In essence, this variable type is specifically designed to talk to your dataGrid and stay in synch. When you change something inside an ArrayCollection element, you can get your dataProvider to update by calling the refresh() method on the ArrayCollection. I think this works whether the ArrayCollection itself is bindable or not. I'm a bit fuzzy on the details of that, so I'll leave it to more experienced developers to flesh that out if you need more info. HTH; Amy
[flexcoders] Debugging Flex3-AMFPHP
I'm trying to get my head wrapped around how to use AMFPHP with Flex3 using Michale Rameriz's tutorial here: http://www.howtoforge.com/amfphp_adobe_flex2_sdk I've got a lot of the gotchas worked out but I get nothing back from the DB, the statusbar just says Transferring data from localhost when I run the code on my development system. Anyone have any ideas as to how I may be able to debug this stupid thing? Running the Flex debugger isn't going to work because of the RemoteObject.
[flexcoders] Flex play powerpoint presentation?
Hi, Please let me know if Flex or Flash can call(or play) ppt files directly. Thanks Mark
[flexcoders] Authorware to Flex?
Hi, We plan to redo a authorware application with Flex. I can not find a reference about this by google. Do you have some information about this? and if it is possible for doing this. Thanks Mark
[flexcoders] CS3 to flex tutorials
Anyone recommend some good tutorials for creating a flash component that I can export into flex and change its values from flex. I've followed the following example on http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step / which was pretty helpful. I've managed to create a component using the above example that can change its state but I'm unsure as to how to create in flash changeable properties. Say for example you wish to create the above example from the link (for those that haven't looked at the link it creates a blue ball that expands and contracts depending on its state) but as well as changing its size say you wished to give it a dynamic colour, or similar that would be settable at run time. I've only just started to look at flash so if anyone could point me in the direction of some tutorials or tell me how it's done that would be great. Most of the examples I've looked at so far do not have dynamic properties or miss out the steps that an experienced flash dev would probably know like the back of their hand J, but the whole timeline thing is still a bit for foreign to me right now. Cheers. Kenneth Sutherland Technical Developer Realise Ltd 0131 476 7432 www.realise.com enlightened e-business solutions Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
RE: [flexcoders] Write Data to Tab Navigater
myTabNav.creationPolicy = all; -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, May 19, 2008 12:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Write Data to Tab Navigater Hello, I have a question for ya, I have this tab navigator and I have a few text input boxes in each one. I create a json call and I want to populate the text input boxes with the requested data. mx:TabNavigator xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=500 mx:Canvas label=User width=100% height=100% id=UserTab mx:Form width=100% height=467 mx:FormItem label=First Name id=firstNamelbl mx:TextInput id=firstName/ /mx:FormItem mx:FormItem id=lastNamelbl label=Last Name mx:TextInput id=lastName/ /mx:FormItem mx:FormItem id=emaillbl label=Email mx:TextInput id=email editable=false/ /mx:FormItem /mx:Form /mx:Canvas mx:Canvas label=Company width=100% height=100% id=CompanyTab mx:Form width=100% height=100% mx:FormItem id=companynamelbl label=Company Name mx:TextInput id=companyname/ /mx:FormItem mx:FormItem id=addressonelbl label=Address One mx:TextInput id=addressone/ /mx:FormItem mx:FormItem id=addresstwolbl label=Address Two mx:TextInput id=addresstwo/ /mx:FormItem mx:FormItem id=statelbl label=State mx:ComboBox id=state /mx:ComboBox /mx:FormItem mx:FormItem id=ziplbl label=Zip Code mx:TextInput id=zip/ /mx:FormItem mx:FormItem id=countrylbl label=Country mx:ComboBox id=country /mx:ComboBox /mx:FormItem /mx:Form /mx:Canvas /mx:TabNavigator So I have these 2 tabs a user and company tab. When I return the JSON I have an object so I create a function public var DoThis(obj:Object) { firstName.text = obj.firstName; lastName.text = obj.lastName; email.text= obj.email; addressone.text = obj.addressone; addresstwo.text = obj.addresstwo; state.text = obj.state; country.text = obj.country } So I call that function to populate the text inputs in the tabs but I get an error, TypeError: Error #1009: Cannot access a property or method of a null object reference. Since firstName.text = obj.firstName; lastName.text = obj.lastName; email.text= obj.email; are shown on the first tab when the function is called, they work, but the other items addressone.text = obj.addressone; addresstwo.text = obj.addresstwo; state.text = obj.state; country.text = obj.country give me the error , if I comment them out they work fine. I am used to DoJo when creating a Tab Navigator I can write to all the text input win the other tabs that are not shown. Can I write to something a tab if it is now displayed yet in flex??? Thanks for the help, timgerr -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Using custom item renderer with List
--- In flexcoders@yahoogroups.com, the_braniak [EMAIL PROTECTED] wrote: Hi all, In my application I am pooling data every 3 seconds. The data goes into a model which updates a view. I am using a list with a custom Item renderer. In the custom itemRenderer I am overriding the data getter/setter. Everything works fine (the bindings and all) except one fact: the the DataProvider for the List contains only 4 items. When I trace out the data value in the overriden setter in the itemRenderrer the first item form the DataProvider is displayed twice. Has Anyone any ideea why? Does that means somehow that the list adds the first item from the dataProvider twice? When i log the length of the dataProvider it always display 4. This issue is giving me hedaches for a few days now ... code snippet: the overriden data porperty in the custom item renderer look as below private var _data : Object; override public function set data(val : Object) : void { trace(data setter = + val); this._data = val; } the trace always display 5 lines on every model update and the first item is displayed twice I also had this problem: http://flexdiary.blogspot.com/2008/04/is-horizontallist-faster-than- hbox-with.html
[flexcoders] Localization with subdirectories is possible?
Hi coders I'm starting with localization with Flex. I hava the normal structure src/locale/en_US/ for the bundles. I'd like to have this content structured with subdirectories but when I try to declare the bundle in the mxml it doesn't find nothing. Do I have to put all the resource bundles in the root for each locale? mx:Metadata [ResourceBundle(security/main)] /mx:Metadata Thanks in advance -- Leonardo Moreno Guzmán Ingeniero de sistemas y telemática | Asesor soluciones informáticas *cell-phone:* 311-3390386 *e-mail:* [EMAIL PROTECTED] *site:* http://leo.logtar.com/profesional/ begin:vcard fn:Leonardo Moreno n:Moreno;Leonardo adr:;;;Cali;;;Colombia email;internet:[EMAIL PROTECTED] title;quoted-printable:Ingeniero de sistemas y telem=C3=A1tica tel;cell:3113390386 x-mozilla-html:FALSE url:http://leo.logtar.com version:2.1 end:vcard
[flexcoders] Re: Write Data to Tab Navigater
Thanks, That worked well. --- In flexcoders@yahoogroups.com, Battershall, Jeff [EMAIL PROTECTED] wrote: myTabNav.creationPolicy = all;
[flexcoders] Access Child Document Flex Components
Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
[flexcoders] resourceManager and actionScript updates
Hello list, I have a project with the resourceManager to have internationalisation on the application. All works fine when I do my stuff into mxml files, but if I add some actionScript code into AS code-behind classes, the update seems work only if the component has not been viewed. Example : I have a simple mxml / as component with this code : mxml : ?xml version=1.0 encoding=utf-8? my:mycomp2 xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 xmlns:my=* creationComplete=init() mx:Script ![CDATA[ override protected function init():void { // your code here // (if really necessary, otherwise code on [Class]Base.as) super.init(); } ]] /mx:Script mx:Button id=mybutton / /my:mycomp2 ActionScript : package { import mx.containers.Canvas; import mx.controls.Button; import mx.resources.IResourceManager; import mx.resources.ResourceManager; public class mycomp2 extends Canvas { public var mybutton:Button; public var rm:IResourceManager; public function mycomp2() { rm = ResourceManager.getInstance(); } protected function init():void { this.mybutton.label = rm.getString('myResources', 'fieldEmail'); } } } On my main mxml application, I set my resourceManager, and have a combobox to select the correct language. On the change handler of the combobox, I use : private function localeComboBox_changeHandler(event:Event):void { resourceManager.localeChain = [ localeComboBox.selectedItem ]; resourceManager.update(); } If I don't display first time my component and change the language, the component display correctly the update. But since I display the component, even only one time, it seems that the ResourceManager wouldn't made any change on the actionScript setted values for the further displays... Anybody know this issue / have a solution about it ?? Thanks in advance for any suggestion. Thierry
[flexcoders] Re: How to set the e.currentTarget.selectedItem data to my own VO object?
humm same error msg. I can set data like this... var vo:TileListVO = new TileListVO(); vo.id = e.currentTarget.selectedItem.id vo.name = e.currentTarget.selectedItem.name but I would like to set it at once. any suggestion? thanks --- In flexcoders@yahoogroups.com, EECOLOR [EMAIL PROTECTED] wrote: var vo:TileListVO = TileListVO(e.currentTarget.selectedItem); Greetz Erik On 5/19/08, flexawesome [EMAIL PROTECTED] wrote: Hi there, I was trying to figure out how to set my selected data to my VO object. so I could get the data anywehere in my application ( using cairngorm framework ). in the exaple code below, I would like to click the TileList and set the data in my TileListVO. it drove me mad :( I got an error msg of TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to TileListVO http://www.privatepaste.com/daxull81OV Thank you so much.
[flexcoders] Re: How to set the e.currentTarget.selectedItem data to my own VO object?
humm same error msg. I can set data like this... var vo:TileListVO = new TileListVO(); vo.id = e.currentTarget.selectedItem.id vo.name = e.currentTarget.selectedItem.name but I would like to set it at once. any suggestion? thanks --- In flexcoders@yahoogroups.com, EECOLOR [EMAIL PROTECTED] wrote: var vo:TileListVO = TileListVO(e.currentTarget.selectedItem); Greetz Erik On 5/19/08, flexawesome [EMAIL PROTECTED] wrote: Hi there, I was trying to figure out how to set my selected data to my VO object. so I could get the data anywehere in my application ( using cairngorm framework ). in the exaple code below, I would like to click the TileList and set the data in my TileListVO. it drove me mad :( I got an error msg of TypeError: Error #1034: Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to TileListVO http://www.privatepaste.com/daxull81OV Thank you so much.
RE: [flexcoders] Re: bug in setMonth() method?
It isn't up to Adobe to define how the Date class works. The Player team's intention is to follow the Ecma-262 spec for this class. I haven't checked what the spec has to say about this, but if the Player isn't in compliance, that's a bug. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Saturday, May 17, 2008 8:50 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: bug in setMonth() method? Yes. In Flex we have a GIGO policy. garbage in, garbage out. We have enough complaints about runtime memory usage, swf size and performance that adding parameter checking was not practical. The player does some checking, but not everywhere as well for the same reason. That said, we hope to have time to use conditional compilation to put in more dev-time checking in future releases, but if we do, I don't want to hear complaints about why the debug version is so slow. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Saturday, May 17, 2008 7:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: bug in setMonth() method? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I would not guarantee results if you set values that are out of range. So you think that it's ok to fail silently and return a nearly appropriate value rather than throwing an error?
RE: [flexcoders] Access Child Document Flex Components
You can access the public members of a component instantiated with an mxml tag by using the id property, which the compiler turns into an instance variable containing a reference to the component: myComponentId.GetUserDataRequest.send(); Also you might want to look into using AsyncToken to associate a result with its send() call. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, May 19, 2008 12:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Access Child Document Flex Components Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
RE: [flexcoders] Re: Write Data to Tab Navigater
But creationPolicy=all is bad practice, and you will be very sorry some day if you use it habitually. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, May 19, 2008 12:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Write Data to Tab Navigater Thanks, That worked well. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Battershall, Jeff [EMAIL PROTECTED] wrote: myTabNav.creationPolicy = all;
[flexcoders] Re: Bindable tag question
Hi, Thanks a lot, Josh. That example cleared my doubt. Also, I believe in the case where my dataProvider does not contain elements with Bindable properties, I just need to call dataProvider.refresh() to update the datagrid. Thanks once again. Regards, Gaurav --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: If you have: var myList : ArrayCollection = new ArrayCollection(); And it's not bindable, but points to objects that are, then a component that has it as a dataProvider will update when you add an item, or remove an item, or change an item. But, since the myList variable itself is not bindable, you could do this: myList = new ArrayCollection(); And there'd be no update, and myDatagrid.dataProvider would still point to the old ArrayCollection. -J On Mon, May 19, 2008 at 7:02 PM, gaurav1146 [EMAIL PROTECTED] wrote: Hi, Thanks, I now get that addItem method was responsible for triggering the property change event. But I am not very clear what purpose does it serve to have the dataProvider as Bindable. Based on your example I created a class Company and used an Arraycollection companyList to display companies in the datagrid. It did not matter whether the companyList was Bindable or not. All that was required was that the name property of Company should be Bindable. Also for a list containing Object the value of the datagrid was not updated if any object property was changed irrespective of whether the list is Bindable or not. The thing is that if I do not set the dataprovider as Bindable I get a warning that Data Binding would not be able to detect assignments to the dataProvider. I would be grateful if you could point me to a scenario where declaring the dataProvider as Bindable makes a difference. Would it be in cases like where I use something like dataGrid2.dataProvider = {dataGrid1.dataProvider}. Following is the modified code that I tried out: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=createCompanies() mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var dp:ArrayCollection = new ArrayCollection([{index:1,word:Test1},{index:2, word:Test2}]); public var companyList:ArrayCollection = new ArrayCollection(); /* * Does not work as the word property in Object is not bindable */ public function changeDataProvider():void { var obj:Object = dp.getItemAt(0); obj[word] = Modified Test; } public function createCompanies():void{ var c1:Company = new Company(); var c2:Company = new Company(); c1.name= ABC; c2.name = XYZ; companyList.addItem(c1); companyList.addItem(c2); } /* * Works if name is declared as Bindable in the Company class */ public function changeCompany():void{ var obj:Company = companyList.getItemAt(0) as Company; obj.name = ABC Modified; } ]] /mx:Script mx:HBox mx:VBox mx:DataGrid dataProvider={dp}/ mx:Button click=changeDataProvider() label=Change data/ /mx:VBox mx:VBox mx:DataGrid dataProvider={companyList} mx:columns mx:DataGridColumn dataField=name headerText=Company/ /mx:columns /mx:DataGrid mx:Button click=changeCompany() label=Change Company/ /mx:VBox /mx:HBox /mx:Application ***Company.as package { public class Company { public function Company() { super(); } [Bindable] public var name:String; } } --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dznuts@ wrote: If you call addItem(), updateItem(), etc, the PropertyChangedEvent is dispatched by the IList implementor (ie, ArrayCollection). But, if you have an IList of objects, and you do this: var company : Company = companyList.getItemAt(3) as Company; company.name = New name; then you'll only get the new data on screen if Company (or Company.name) is marked [Bindable] When you call the modifying methods on the dataprovider itself, then the change is marked as happening on the IList (and it dispatches the PropertyChangedEvent). But if you change the content of an object contained within that list, nobody knows about it unless you add the [Bindable]. [Bindable] is a compile-time decorator that dispatches the events on your behalf. If I'm making things muddier rather than clearer with that, let me know ;-) -J On Mon, May 19, 2008 at 2:01 PM, gaurav1146 gaurav1146@ wrote: Hi, I have been using Bindable tag for data providers in datagrid, list etc. The doc states that this ensures that the destination datagrid would reflect the change when the dataprovider is changed. But I have observed that even if I do not use the Bindable tag the datagrid is still updated when the dataprovider changes. Here is a simple example: ?xml version=1.0 encoding=utf-8?
RE: [flexcoders] Localization with subdirectories is possible?
I can't remember whether Flex 3 supports this, but if it does, I think the bundle name would be security.main. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Leonardo Moreno Sent: Monday, May 19, 2008 9:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Localization with subdirectories is possible? Hi coders I'm starting with localization with Flex. I hava the normal structure src/locale/en_US/ for the bundles. I'd like to have this content structured with subdirectories but when I try to declare the bundle in the mxml it doesn't find nothing. Do I have to put all the resource bundles in the root for each locale? mx:Metadata [ResourceBundle(security/main)] /mx:Metadata Thanks in advance -- Leonardo Moreno Guzmán Ingeniero de sistemas y telemática | Asesor soluciones informáticas *cell-phone:* 311-3390386 *e-mail:* [EMAIL PROTECTED] mailto:leonardo.moreno%40gmail.com *site:* http://leo.logtar.com/profesional/ http://leo.logtar.com/profesional/
[flexcoders] Re: Access Child Document Flex Components
Hi Tim, You're now getting to the point were serious consideration, towards using an MVC micro-architecture, should be given. You can do many things, in an application, by accessing parent and child components directly. However, there is a point in every application (similar to the point of diminishing returns), where it makes sense to utilize the benefits (loose coupling) of an event driven approach; with something like Cairngorm. I highly recommend that you bite the bullet and invest some time now, to learn Cairngorm; as well as the extremely useful UM extensions. Learning this will answer the questions that you have asked. There are some that will argue different MVC approaches, but Cairngorm is a great place to begin. The time spent now will most certainly change your approach towards development in an exponentially positive manner. -TH --- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote: Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
[flexcoders] Re: Bindable tag question
What would be a better practice?? Timgerr
RE: [flexcoders] resourceManager and actionScript updates
You're setting mybutton.label only once, when init() executes at creationComplete time. Since you're not using databinding, the label isn't going to automatically change when you change the localeChain. You need to override the resourcesChanged() method and reset the label. Since you like to use code-behind to separate the View from the Model/Controller, wouldn't it make more sense to consider the localized strings part of the View and put them in the MXML using databinding so that they automatically update when the localeChain changes? BTW, you don't need to declare and initialize your 'rm' instance variable. Your 'mycomp2' component already has a 'resourceManager' property because it extends UIComponent. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thierry V. Sent: Monday, May 19, 2008 10:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] resourceManager and actionScript updates Hello list, I have a project with the resourceManager to have internationalisation on the application. All works fine when I do my stuff into mxml files, but if I add some actionScript code into AS code-behind classes, the update seems work only if the component has not been viewed. Example : I have a simple mxml / as component with this code : mxml : ?xml version=1.0 encoding=utf-8? my:mycomp2 xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=400 height=300 xmlns:my=* creationComplete=init() mx:Script ![CDATA[ override protected function init():void { // your code here // (if really necessary, otherwise code on [Class]Base.as) super.init(); } ]] /mx:Script mx:Button id=mybutton / /my:mycomp2 ActionScript : package { import mx.containers.Canvas; import mx.controls.Button; import mx.resources.IResourceManager; import mx.resources.ResourceManager; public class mycomp2 extends Canvas { public var mybutton:Button; public var rm:IResourceManager; public function mycomp2() { rm = ResourceManager.getInstance(); } protected function init():void { this.mybutton.label = rm.getString('myResources', 'fieldEmail'); } } } On my main mxml application, I set my resourceManager, and have a combobox to select the correct language. On the change handler of the combobox, I use : private function localeComboBox_changeHandler(event:Event):void { resourceManager.localeChain = [ localeComboBox.selectedItem ]; resourceManager.update(); } If I don't display first time my component and change the language, the component display correctly the update. But since I display the component, even only one time, it seems that the ResourceManager wouldn't made any change on the actionScript setted values for the further displays... Anybody know this issue / have a solution about it ?? Thanks in advance for any suggestion. Thierry
[flexcoders] Re:Authorware to Flex?
Yes, it's possible, but what do you want to do specifically? It would help if you described what specific things you want to do, other than convert a course. Jason Merrill Bank of America Global Technology Operations LLD eTools Multimedia Join the Bank of America Flash Platform Developer Community blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx Are you a Bank of America associate interested in innovative learning ideas and technologies? Check out our internal GTO Innovative Learning Blog blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.aspx subscribe blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts/SubNew.aspx?List=\{41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\}Source=http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.aspx .
[flexcoders] Re: mx.utils.URLUtil.replacePort() does not work?
It appears that URLUtil.replacePort requires the trailing /. Try this: var newUri:String = URLUtil.replacePort(http://localhost:/;, ); I don't know if this is a bug or a undocumented feature. It kinda makes sense if you think about it - The URI is incorrectly bounded without that trailing / or page. --- In flexcoders@yahoogroups.com, Robert Csiki [EMAIL PROTECTED] wrote: Working in FB3: var newUri:String = URLUtil.replacePort(http://localhost: http://localhost: , ); The result is newUri = http://localhost:http://localhost: http://localhost:http://localhost: Should I log a bug?? Thanks.
Re: [flexcoders] Localization with subdirectories is possible?
No, that option didn't work either. Anybody has any clues on this? Regards Gordon Smith wrote: I can't remember whether Flex 3 supports this, but if it does, I think the bundle name would be security.main. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Leonardo Moreno *Sent:* Monday, May 19, 2008 9:49 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Localization with subdirectories is possible? Hi coders I'm starting with localization with Flex. I hava the normal structure src/locale/en_US/ for the bundles. I'd like to have this content structured with subdirectories but when I try to declare the bundle in the mxml it doesn't find nothing. Do I have to put all the resource bundles in the root for each locale? mx:Metadata [ResourceBundle(security/main)] /mx:Metadata Thanks in advance -- Leonardo Moreno Guzmán Ingeniero de sistemas y telemática | Asesor soluciones informáticas *cell-phone:* 311-3390386 *e-mail:* [EMAIL PROTECTED] mailto:leonardo.moreno%40gmail.com *site:* http://leo.logtar.com/profesional/ http://leo.logtar.com/profesional/ -- Leonardo Moreno Guzmán Ingeniero de sistemas y telemática | Asesor soluciones informáticas *cell-phone:* 311-3390386 *e-mail:* [EMAIL PROTECTED] *site:* http://leo.logtar.com/profesional/ begin:vcard fn:Leonardo Moreno n:Moreno;Leonardo adr:;;;Cali;;;Colombia email;internet:[EMAIL PROTECTED] title;quoted-printable:Ingeniero de sistemas y telem=C3=A1tica tel;cell:3113390386 x-mozilla-html:FALSE url:http://leo.logtar.com version:2.1 end:vcard
[flexcoders] DataGrid visibility problem
I have a datagrid in an AIR application that works fine on my dev machine (Vista), but that is blank when run on another machine (XP). Essentially, the grid visually appear on the screen as if it were an empty grid with no headers. Once I click on a header, the words appear in the header and stay there. The items in the grid only show on the screen when a modal TitleWindow is open over them (and you move the modal aside). Then when you close the model, the grid content vanishes again. The datagrid is populated by an ArrayCollection. Any ideas on what could case this? -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: [EMAIL PROTECTED]
[flexcoders] Keeping selectedItem in diffrent viewstates
Hi, I have a question regarding viewstate. I have three different view states, in those three states i have TileList in the first, DataGrid in the second and HorizontalList in the third. All those use the same arrayCollection. What I'm trying to achieve is: when user selects an item in the first view and then switches to second view then item should get selected in the new view. Is it possible? of course it's possible, but what's the easiest way?
[flexcoders] Re: Debugging Flex3-AMFPHP
A very good tool for helping you debug any AMF source is Service Capture. It is an inexpensive tool that has saved me hours of time by being able to read AMF, SOAP, JSON-RPC and HTML packets. I use it with AMFPHP here at the office. Here's the website. http://kevinlangdon.com/serviceCapture/ --- In flexcoders@yahoogroups.com, mr_delphi_developer [EMAIL PROTECTED] wrote: I'm trying to get my head wrapped around how to use AMFPHP with Flex3 using Michale Rameriz's tutorial here: http://www.howtoforge.com/amfphp_adobe_flex2_sdk I've got a lot of the gotchas worked out but I get nothing back from the DB, the statusbar just says Transferring data from localhost when I run the code on my development system. Anyone have any ideas as to how I may be able to debug this stupid thing? Running the Flex debugger isn't going to work because of the RemoteObject.
[flexcoders] Stress Testing a BlazeDS Application
Is there a FREE way to stress test a real-time messaging BlazeDS application? I tried using JMeter, but I can't capture all of the http request data to set up the test because you need to use a proxy for that, and BlazeDS falls back to a polling channel if a proxy is used. I looked in flexunit, but that doesn't seem like it's appropriate for this type of test. I want to establish 100, 200, 300,... clients until it breaks the server. All that needs to happen is a login(via acegi security) and a Consumer subscription request. Unfortunately, acegi requires a jsessionid for each http request to validate, and that's what I'm having difficulty with. Basically, any requests to the server are interrupted by acegi and the jsessionid is validated. If the validation is successful, the web asset is fetched. If validation fails, the login JSP page is returned. This is also causing issues with an AIR app that I have that has a flex login interface. The jesssionid doesn't seem to get cached within the AIR http request headers. Thanks for any help. ~Geoff~
Re: [flexcoders] CS3 to flex tutorials
I'm actually writing a tutorial series on Community MX about that very topic http://www.communitymx.com/abstract.cfm?cid=AEF3D. In the coming weeks there will be articles about creating Flash components and porting them to Flex, so stay tuned. For now you could try some of the articles up on Adobe Dev Connection: http://www.adobe.com/devnet/flex/articles/skins_styles.html http://www.adobe.com/products/flex/features/video/glenn_ruehle/ http://www.adobe.com/devnet/flex/articles/video_flex.html http://www.adobe.com/devnet/flash/articles/flex_component_workflow_print.html ___ Joseph Balderson | http://joeflash.ca Flex Flash Platform Developer | Abobe Certified Developer Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674 Kenneth Sutherland wrote: Anyone recommend some good tutorials for creating a flash component that I can export into flex and change its values from flex. I’ve followed the following example on http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ which was pretty helpful. I’ve managed to create a component using the above example that can change its state but I’m unsure as to how to create in flash changeable properties. Say for example you wish to create the above example from the link (for those that haven’t looked at the link it creates a blue ball that expands and contracts depending on its state) but as well as changing its size say you wished to give it a dynamic colour, or similar that would be settable at run time. I’ve only just started to look at flash so if anyone could point me in the direction of some tutorials or tell me how it’s done that would be great. Most of the examples I’ve looked at so far do not have dynamic properties or miss out the steps that an experienced flash dev would probably know like the back of their hand J, but the whole timeline thing is still a bit for foreign to me right now. Cheers. Kenneth Sutherland Technical Developer Realise Ltd 0131 476 7432 _www.realise.com http://www.realise.com_ enlightened e-business solutions Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Debugging Flex3-AMFPHP
I have HTTPLook which is an HTTP Capture application. --- In flexcoders@yahoogroups.com, actionscript_czar [EMAIL PROTECTED] wrote: A very good tool for helping you debug any AMF source is Service Capture. It is an inexpensive tool that has saved me hours of time by being able to read AMF, SOAP, JSON-RPC and HTML packets. I use it with AMFPHP here at the office. Here's the website. http://kevinlangdon.com/serviceCapture/
Re: [flexcoders] Re: Debugging Flex3-AMFPHP
I second this one 100%. dk On 19-May-08, at 11:51 AM, actionscript_czar wrote: A very good tool for helping you debug any AMF source is Service Capture. It is an inexpensive tool that has saved me hours of time by being able to read AMF, SOAP, JSON-RPC and HTML packets. I use it with AMFPHP here at the office. Here's the website. http://kevinlangdon.com/serviceCapture/ --- In flexcoders@yahoogroups.com, mr_delphi_developer [EMAIL PROTECTED] wrote: I'm trying to get my head wrapped around how to use AMFPHP with Flex3 using Michale Rameriz's tutorial here: http://www.howtoforge.com/amfphp_adobe_flex2_sdk I've got a lot of the gotchas worked out but I get nothing back from the DB, the statusbar just says Transferring data from localhost when I run the code on my development system. Anyone have any ideas as to how I may be able to debug this stupid thing? Running the Flex debugger isn't going to work because of the RemoteObject.
[flexcoders] Re: Keeping selectedItem in diffrent viewstates
Hi, There are a few ways that you can keep your different list controls in sync; concerning the selectedItem or selectedIndex. Probably the easiest way is to create a variable for the selectedIndex, updated on the change event of the three controls, and bound to the selectedIndex property of the three controls: [Bindable] private var mySelectedIndex : int = -1; mx:TileList id=myTileList selectedIndex={ mySelectedIndex } change=mySelectedIndex=myTileList.selectedIndex/ mx:DataGrid id=myDataGrid selectedIndex={ mySelectedIndex } change=mySelectedIndex=myDataGrid.selectedIndex/ mx:HorizontalList id=myHorizontalListControl selectedIndex={ mySelectedIndex } change=mySelectedIndex=myHorizontalListControl.selectedIndex/ It's better to use a function and event.currentTarget.selectedIndex, to set the mySelectedIndex; but you get the idea. -TH --- In flexcoders@yahoogroups.com, pioplacz [EMAIL PROTECTED] wrote: Hi, I have a question regarding viewstate. I have three different view states, in those three states i have TileList in the first, DataGrid in the second and HorizontalList in the third. All those use the same arrayCollection. What I'm trying to achieve is: when user selects an item in the first view and then switches to second view then item should get selected in the new view. Is it possible? of course it's possible, but what's the easiest way?
Re: [flexcoders] resourceManager and actionScript updates
Thanks Gordon for your answer. I found the same way, overriding the resourcesChanged method. For this simple example, I can use dataBinding directly into mxml, but for my real application, it's useful to do some stuff with actionScript, especially for labels who changes on user interaction (ie: login phase with bad return). For the rm instance, it was a mistake/test in my code, I use the resourceManager property like you said. Thank you :) Thierry Gordon Smith a écrit : You're setting mybutton.label only once, when init() executes at creationComplete time. Since you're not using databinding, the label isn't going to automatically change when you change the localeChain. You need to override the resourcesChanged() method and reset the label. Since you like to use code-behind to separate the View from the Model/Controller, wouldn't it make more sense to consider the localized strings part of the View and put them in the MXML using databinding so that they automatically update when the localeChain changes? BTW, you don't need to declare and initialize your 'rm' instance variable. Your 'mycomp2' component already has a 'resourceManager' property because it extends UIComponent. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Thierry V. *Sent:* Monday, May 19, 2008 10:56 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] resourceManager and actionScript updates Hello list, I have a project with the resourceManager to have internationalisation on the application. All works fine when I do my stuff into mxml files, but if I add some actionScript code into AS code-behind classes, the update seems work only if the component has not been viewed. Example : I have a simple mxml / as component with this code : mxml : ?xml version=1.0 encoding=utf-8? my:mycomp2 xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=400 height=300 xmlns:my=* creationComplete=init() mx:Script ![CDATA[ override protected function init():void { // your code here // (if really necessary, otherwise code on [Class]Base.as) super.init(); } ]] /mx:Script mx:Button id=mybutton / /my:mycomp2 ActionScript : package { import mx.containers.Canvas; import mx.controls.Button; import mx.resources.IResourceManager; import mx.resources.ResourceManager; public class mycomp2 extends Canvas { public var mybutton:Button; public var rm:IResourceManager; public function mycomp2() { rm = ResourceManager.getInstance(); } protected function init():void { this.mybutton.label = rm.getString('myResources', 'fieldEmail'); } } } On my main mxml application, I set my resourceManager, and have a combobox to select the correct language. On the change handler of the combobox, I use : private function localeComboBox_changeHandler(event:Event):void { resourceManager.localeChain = [ localeComboBox.selectedItem ]; resourceManager.update(); } If I don't display first time my component and change the language, the component display correctly the update. But since I display the component, even only one time, it seems that the ResourceManager wouldn't made any change on the actionScript setted values for the further displays... Anybody know this issue / have a solution about it ?? Thanks in advance for any suggestion. Thierry
[flexcoders] Re: Access Child Document Flex Components
Tracy I dont think a flex component can have an id, what might I be ding wrong? Thanks, Timger --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You can access the public members of a component instantiated with an mxml tag by using the id property, which the compiler turns into an instance variable containing a reference to the component: myComponentId.GetUserDataRequest.send(); Also you might want to look into using AsyncToken to associate a result with its send() call. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, May 19, 2008 12:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Access Child Document Flex Components Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
[flexcoders] Re: Access Child Document Flex Components
I will look into this, Thanks. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Tim, You're now getting to the point were serious consideration, towards using an MVC micro-architecture, should be given. You can do many things, in an application, by accessing parent and child components directly. However, there is a point in every application (similar to the point of diminishing returns), where it makes sense to utilize the benefits (loose coupling) of an event driven approach; with something like Cairngorm. I highly recommend that you bite the bullet and invest some time now, to learn Cairngorm; as well as the extremely useful UM extensions. Learning this will answer the questions that you have asked. There are some that will argue different MVC approaches, but Cairngorm is a great place to begin. The time spent now will most certainly change your approach towards development in an exponentially positive manner. -TH --- In flexcoders@yahoogroups.com, timgerr tim.gallagher@ wrote: Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
[flexcoders] Re: My application crash
I got this error for a while when I was testing between AMFPHP and WebORB. I can't recall off hand what the solution was...It may just have been to Clean the project. --- In flexcoders@yahoogroups.com, tuncayxxx [EMAIL PROTECTED] wrote: Hi, I hope some of you guys can help me. I made my first company Flex application integrated into a webapplication using Java Dataservice to communicate to backend. On Windows machine it works properly. When deploying into a Linux machine it crashes almost all time when the application either is launched or refreshed in a browser (IE/Firefox). Using Adobe flex SDK 3.+ , DataService, Flash 9+ on client it doesn't help. The exception I get is: --- [RPC Fault faultString=Channel disconnected faultCode=Client.Error.DeliveryInDoubt faultDetail=Channel disconnected before an acknowledgement was received] at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent() at DataListRequestResponder/fault() at mx.rpc::AsyncRequest/fault() at NetConnectionMessageResponder/channelDisconnectHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Channel/disconnectSuccess() at mx.messaging.channels::NetConnectionChannel/internalDisconnect() at mx.messaging.channels::RTMPChannel/internalDisconnect() at mx.messaging.channels::RTMPChannel/statusHandler() I'm stuck and hope some can help. -tuncay
[flexcoders] Grr, HTTPService doesn't work when it should
This may be a simple problem, but Flex shuts down hard when I try this code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center verticalAlign=top width=100% height=100% creationComplete=checkJobs.send() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; ]] /mx:Script mx:HTTPService id=checkJobs url=http://127.0.0.1:3001/jobs.xml; useProxy=false contentType=application/xml method=POST / mx:DataGrid id=jobs width=100% height=60% dataProvider={checkJobs.lastResult.jobs.job} mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=ECMS dataField=ecms / /mx:columns /mx:DataGrid mx:Button label=check jobs click=checkJobs.send() / /mx:Application And the accompanying XML file: jobs type=array job created-at type=datetime2008-05-19T10:35:48-04:00/created-at display-order type=integer nil=true/ ecms1923/ecms id type=integer1/id job-id nil=true/ name199238GAME/name updated-at type=datetime2008-05-19T10:35:48-04:00/updated-at /job job created-at type=datetime2008-05-19T14:20:52-04:00/created-at display-order type=integer nil=true/ ecms1553/ecms id type=integer2/id job-id nil=true/ nameasdgggd/name updated-at type=datetime2008-05-19T14:20:52-04:00/updated-at /job /jobs Why isn't the datagrid being populated? Clinton Judy Web Developer Glenn O. Hawbaker, Inc.
[flexcoders] Re:Authorware to Flex?
--- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: Yes, it's possible, but what do you want to do specifically? It would help if you described what specific things you want to do, other than convert a course. In addition to what Jason said, I'll be doing a presentation that hits the highlights of what kinds of projects are good candidates for conversion to Flex and what steps you can take to ease the transition. I'll be doing it online here http://www.elearningguild.com/content.cfm? selection=doc.901, and again in person at the European eLearning Summit http://www.elearningsummit.eu/. I don't claim this will be the definitive guide for doing such conversions...everyone is still working that out, but it might help point you in the right direction. HTH; Amy
RE: [flexcoders] Grr, HTTPService doesn't work when it should
I think at least you need to change: checkJobs.lastResult.jobs.job to: checkJobs.lastResult.jobs the DataGrid is expecting a list of jobs, not just a single job. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 12:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grr, HTTPService doesn't work when it should This may be a simple problem, but Flex shuts down hard when I try this code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center verticalAlign=top width=100% height=100% creationComplete=checkJobs.send() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; ]] /mx:Script mx:HTTPService id=checkJobs url=http://127.0.0.1:3001/jobs.xml; useProxy=false contentType=application/xml method=POST / mx:DataGrid id=jobs width=100% height=60% dataProvider={checkJobs.lastResult.jobs.job} mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=ECMS dataField=ecms / /mx:columns /mx:DataGrid mx:Button label=check jobs click=checkJobs.send() / /mx:Application And the accompanying XML file: jobs type=array job created-at type=datetime2008-05-19T10:35:48-04:00/created-at display-order type=integer nil=true/ ecms1923/ecms id type=integer1/id job-id nil=true/ name199238GAME/name updated-at type=datetime2008-05-19T10:35:48-04:00/updated-at /job job created-at type=datetime2008-05-19T14:20:52-04:00/created-at display-order type=integer nil=true/ ecms1553/ecms id type=integer2/id job-id nil=true/ nameasdgggd/name updated-at type=datetime2008-05-19T14:20:52-04:00/updated-at /job /jobs Why isn't the datagrid being populated? Clinton Judy Web Developer Glenn O. Hawbaker, Inc.
[flexcoders] Re: Tree - Drag Drop - prevent drop into folder
Thanks for the response .. anywhere in an open folder .. I'm trying to prevent being able to 'drop' a folder in another folder . ( so a single level tree ).. top item1 middle item2 I want to prevent middle being dropped into top . I thought it would be as simple as if ( dragsource is branch and drop target is branch ) reject drop I'll take a look at Tree.as - thanks again --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Anywhere in an open folder (like its children) or just the open folder row? If you look at the Tree source you can see how to get parents of things that are visible, and you might be able to use that to call preventDefault on the drag event.
[flexcoders] Re: Debugging Flex3-AMFPHP
My recommendation is Charles (http://www.charlesproxy.com/). BTW. If you are using Firefox, there is a bug in FF that shows Transferring data from in the status bar all the time (Unless you switch to another tab and back again). I just ignore this message. On another note, posting some code may help us to help you. --- In flexcoders@yahoogroups.com, mr_delphi_developer [EMAIL PROTECTED] wrote: I'm trying to get my head wrapped around how to use AMFPHP with Flex3 using Michale Rameriz's tutorial here: http://www.howtoforge.com/amfphp_adobe_flex2_sdk I've got a lot of the gotchas worked out but I get nothing back from the DB, the statusbar just says Transferring data from localhost when I run the code on my development system. Anyone have any ideas as to how I may be able to debug this stupid thing? Running the Flex debugger isn't going to work because of the RemoteObject.
RE: [flexcoders] Grr, HTTPService doesn't work when it should
I tried this, it didn't work. I thought you still referred to the first element in an array in Flex, not its parent class. Are you sure my HTTPService is fine? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Vroom Sent: Monday, May 19, 2008 3:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Grr, HTTPService doesn't work when it should I think at least you need to change: checkJobs.lastResult.jobs.job to: checkJobs.lastResult.jobs the DataGrid is expecting a list of jobs, not just a single job. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 12:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grr, HTTPService doesn't work when it should This may be a simple problem, but Flex shuts down hard when I try this code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center verticalAlign=top width=100% height=100% creationComplete=checkJobs.send() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; ]] /mx:Script mx:HTTPService id=checkJobs url=http://127.0.0.1:3001/jobs.xml; useProxy=false contentType=application/xml method=POST / mx:DataGrid id=jobs width=100% height=60% dataProvider={checkJobs.lastResult.jobs.job} mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=ECMS dataField=ecms / /mx:columns /mx:DataGrid mx:Button label=check jobs click=checkJobs.send() / /mx:Application And the accompanying XML file: jobs type=array job created-at type=datetime2008-05-19T10:35:48-04:00/created-at display-order type=integer nil=true/ ecms1923/ecms id type=integer1/id job-id nil=true/ name199238GAME/name updated-at type=datetime2008-05-19T10:35:48-04:00/updated-at /job job created-at type=datetime2008-05-19T14:20:52-04:00/created-at display-order type=integer nil=true/ ecms1553/ecms id type=integer2/id job-id nil=true/ nameasdgggd/name updated-at type=datetime2008-05-19T14:20:52-04:00/updated-at /job /jobs Why isn't the datagrid being populated? Clinton Judy Web Developer Glenn O. Hawbaker, Inc.
RE: [flexcoders] Grr, HTTPService doesn't work when it should
I tried Charles, and discovered I was sending this to Rails: This doesn't seem right, and sure enough, Rails is throwing errors when it receives that. So it's gotta be my HTTPService, but I don't know where to begin fixing it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 4:13 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Grr, HTTPService doesn't work when it should I tried this, it didn't work. I thought you still referred to the first element in an array in Flex, not its parent class. Are you sure my HTTPService is fine? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Vroom Sent: Monday, May 19, 2008 3:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Grr, HTTPService doesn't work when it should I think at least you need to change: checkJobs.lastResult.jobs.job to: checkJobs.lastResult.jobs the DataGrid is expecting a list of jobs, not just a single job. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 12:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grr, HTTPService doesn't work when it should This may be a simple problem, but Flex shuts down hard when I try this code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center verticalAlign=top width=100% height=100% creationComplete=checkJobs.send() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; ]] /mx:Script mx:HTTPService id=checkJobs url=http://127.0.0.1:3001/jobs.xml; useProxy=false contentType=application/xml method=POST / mx:DataGrid id=jobs width=100% height=60% dataProvider={checkJobs.lastResult.jobs.job} mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=ECMS dataField=ecms / /mx:columns /mx:DataGrid mx:Button label=check jobs click=checkJobs.send() / /mx:Application And the accompanying XML file: jobs type=array job created-at type=datetime2008-05-19T10:35:48-04:00/created-at display-order type=integer nil=true/ ecms1923/ecms id type=integer1/id job-id nil=true/ name199238GAME/name updated-at type=datetime2008-05-19T10:35:48-04:00/updated-at /job job created-at type=datetime2008-05-19T14:20:52-04:00/created-at display-order type=integer nil=true/ ecms1553/ecms id type=integer2/id job-id nil=true/ nameasdgggd/name updated-at type=datetime2008-05-19T14:20:52-04:00/updated-at /job /jobs Why isn't the datagrid being populated? Clinton Judy Web Developer Glenn O. Hawbaker, Inc.
[flexcoders] Re: Grr, HTTPService doesn't work when it should
You have set the contentType property of your request to application/xml and the sent an empty string as your request. Flex (Probably) sees that and sends as the XML request. You probably want to remove the contentType property of your request and let flex use a contentType of application/x-www-form-urlencoded (The default). --- In flexcoders@yahoogroups.com, Clinton D. Judy [EMAIL PROTECTED] wrote: I tried Charles, and discovered I was sending this to Rails: This doesn't seem right, and sure enough, Rails is throwing errors when it receives that. So it's gotta be my HTTPService, but I don't know where to begin fixing it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 4:13 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Grr, HTTPService doesn't work when it should I tried this, it didn't work. I thought you still referred to the first element in an array in Flex, not its parent class. Are you sure my HTTPService is fine? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Vroom Sent: Monday, May 19, 2008 3:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Grr, HTTPService doesn't work when it should I think at least you need to change: checkJobs.lastResult.jobs.job to: checkJobs.lastResult.jobs the DataGrid is expecting a list of jobs, not just a single job. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 12:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grr, HTTPService doesn't work when it should This may be a simple problem, but Flex shuts down hard when I try this code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical horizontalAlign=center verticalAlign=top width=100% height=100% creationComplete=checkJobs.send() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; ]] /mx:Script mx:HTTPService id=checkJobs url=http://127.0.0.1:3001/jobs.xml; useProxy=false contentType=application/xml method=POST / mx:DataGrid id=jobs width=100% height=60% dataProvider={checkJobs.lastResult.jobs.job} mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=ECMS dataField=ecms / /mx:columns /mx:DataGrid mx:Button label=check jobs click=checkJobs.send() / /mx:Application And the accompanying XML file: jobs type=array job created-at type=datetime2008-05-19T10:35:48-04:00/created-at display-order type=integer nil=true/ ecms1923/ecms id type=integer1/id job-id nil=true/ name199238GAME/name updated-at type=datetime2008-05-19T10:35:48-04:00/updated-at /job job created-at type=datetime2008-05-19T14:20:52-04:00/created-at display-order type=integer nil=true/ ecms1553/ecms id type=integer2/id job-id nil=true/ nameasdgggd/name updated-at type=datetime2008-05-19T14:20:52-04:00/updated-at /job /jobs Why isn't the datagrid being populated? Clinton Judy Web Developer Glenn O. Hawbaker, Inc.
RE: [flexcoders] Re: Access Child Document Flex Components
Hmm? Lets be clear on our language then. A Flex Component has two states of being, the class, as implemented either in mxml or AS, and the instance, which is what you get when you do: my:CustomComponent / Or: new CustomComponent(); It is easy to put an id on a Flex component instantiated in the first manner: my:CustomComponent id=myComp/ And you can then access any public member in MyComponent instance like: myComp.myMember It is a bit harder if you ar instanitating the components manually. Or are you using the term, Flex Component in a different way? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, May 19, 2008 3:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Access Child Document Flex Components Tracy I dont think a flex component can have an id, what might I be ding wrong? Thanks, Timger --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: You can access the public members of a component instantiated with an mxml tag by using the id property, which the compiler turns into an instance variable containing a reference to the component: myComponentId.GetUserDataRequest.send(); Also you might want to look into using AsyncToken to associate a result with its send() call. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of timgerr Sent: Monday, May 19, 2008 12:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Access Child Document Flex Components Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
Re: [flexcoders] Determine IS with a Class object rather than an instance?
Won't they just return Class and Object respectively? I'm working without an instance - just a Class Object returned from some reflection via describeType() and getDefinitionByName(). -J On Tue, May 20, 2008 at 12:27 AM, Alex Harui [EMAIL PROTECTED] wrote: Try getQualifiedClassName/getQualifiedSuperClassName -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Monday, May 19, 2008 12:57 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Determine IS with a Class object rather than an instance? Guys, Say I have this: function findMeAClassMagic() : Class { ... } var foo : Class = findMeAClassMagic(); Can I determine whether or not the class represented by Foo is a Bar or a subclass of Bar, without attempting to call a new foo() and hoping foo has a zero-argument constructor inside a try-catch block? I'd rather not risk any unwanted side-effects if possible, as I can't always know that foo() won't do something unruly. Cheers, -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
RE: [flexcoders] Re: Grr, HTTPService doesn't work when it should
You said, Flex shuts down hard, but then you said you DG is empty, so persumabley is is displaying. So Flex is not shutting down? Yes, on valdhors suggestion to leave contentType at the default. Also, you have not set the resultFormat=e4x which means you are working with a tree of dynamic objects. This is rarely desirable. I advise working with e4x, XML, XMLList and XMLListCollection. In some cases, ther can be performance problems with these objects, and you would need to move to generating an ArrayCollection of strongly typed VOs. But I advise going the XML route until you see a need to change. The default resultFormat=object is kinda the worst of both worlds, you lose the e4x filter/selection functionality and still have the performance hit of accessing dynamic objects. Also, If I am reading your xml right, your expression would be correct for e4x xml: checkJobs.lastResult.jobs.job would return an XMLList of all of the job nodes. Finally, I advise using a result handler instead of binding directly to lastResult. Binding is hard to debug, and sooner or later you will need to take some action when the result data arrives. Hard to do that in a binding. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Monday, May 19, 2008 4:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Grr, HTTPService doesn't work when it should You have set the contentType property of your request to application/xml and the sent an empty string as your request. Flex (Probably) sees that and sends as the XML request. You probably want to remove the contentType property of your request and let flex use a contentType of application/x-www-form-urlencoded (The default). --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Clinton D. Judy [EMAIL PROTECTED] wrote: I tried Charles, and discovered I was sending this to Rails: This doesn't seem right, and sure enough, Rails is throwing errors when it receives that. So it's gotta be my HTTPService, but I don't know where to begin fixing it. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 4:13 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Grr, HTTPService doesn't work when it should I tried this, it didn't work. I thought you still referred to the first element in an array in Flex, not its parent class. Are you sure my HTTPService is fine? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jeff Vroom Sent: Monday, May 19, 2008 3:59 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Grr, HTTPService doesn't work when it should I think at least you need to change: checkJobs.lastResult.jobs.job to: checkJobs.lastResult.jobs the DataGrid is expecting a list of jobs, not just a single job. Jeff From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 12:52 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Grr, HTTPService doesn't work when it should This may be a simple problem, but Flex shuts down hard when I try this code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical horizontalAlign=center verticalAlign=top width=100% height=100% creationComplete=checkJobs.send() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; ]] /mx:Script mx:HTTPService id=checkJobs url=http://127.0.0.1:3001/jobs.xml http://127.0.0.1:3001/jobs.xml useProxy=false contentType=application/xml method=POST / mx:DataGrid id=jobs width=100% height=60% dataProvider={checkJobs.lastResult.jobs.job} mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=ECMS dataField=ecms / /mx:columns /mx:DataGrid mx:Button label=check jobs click=checkJobs.send() / /mx:Application And the accompanying XML file: jobs type=array job created-at type=datetime2008-05-19T10:35:48-04:00/created-at display-order type=integer nil=true/ ecms1923/ecms id type=integer1/id job-id nil=true/ name199238GAME/name updated-at type=datetime2008-05-19T10:35:48-04:00/updated-at /job job created-at type=datetime2008-05-19T14:20:52-04:00/created-at display-order type=integer
[flexcoders] Re: Access Child Document Flex Components
:-) --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Hmm? Lets be clear on our language then. A Flex Component has two states of being, the class, as implemented either in mxml or AS, and the instance, which is what you get when you do: my:CustomComponent / Or: new CustomComponent(); It is easy to put an id on a Flex component instantiated in the first manner: my:CustomComponent id=myComp/ And you can then access any public member in MyComponent instance like: myComp.myMember It is a bit harder if you ar instanitating the components manually. Or are you using the term, Flex Component in a different way? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, May 19, 2008 3:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Access Child Document Flex Components Tracy I dont think a flex component can have an id, what might I be ding wrong? Thanks, Timger --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Tracy Spratt tspratt@ wrote: You can access the public members of a component instantiated with an mxml tag by using the id property, which the compiler turns into an instance variable containing a reference to the component: myComponentId.GetUserDataRequest.send(); Also you might want to look into using AsyncToken to associate a result with its send() call. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of timgerr Sent: Monday, May 19, 2008 12:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Access Child Document Flex Components Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
[flexcoders] Re: Access Child Document Flex Components
OK I understand, I am using my:CustomComponent /, I didnt know that I could then do this myComp.myMember Thanks for the help, I will try it out. Timgerr --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Hmm? Lets be clear on our language then. A Flex Component has two states of being, the class, as implemented either in mxml or AS, and the instance, which is what you get when you do: my:CustomComponent / Or: new CustomComponent(); It is easy to put an id on a Flex component instantiated in the first manner: my:CustomComponent id=myComp/ And you can then access any public member in MyComponent instance like: myComp.myMember It is a bit harder if you ar instanitating the components manually. Or are you using the term, Flex Component in a different way? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Monday, May 19, 2008 3:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Access Child Document Flex Components Tracy I dont think a flex component can have an id, what might I be ding wrong? Thanks, Timger --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: You can access the public members of a component instantiated with an mxml tag by using the id property, which the compiler turns into an instance variable containing a reference to the component: myComponentId.GetUserDataRequest.send(); Also you might want to look into using AsyncToken to associate a result with its send() call. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of timgerr Sent: Monday, May 19, 2008 12:58 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Access Child Document Flex Components Hello all, Thanks for all the help That I have recieved, I am learning alot. Main Application that has many Flex Components. I want to call a HTTPService from the main app page, I am not sure how to do this. I have tried GetUserDataRequest.send() but to no avail. mx:HTTPService id=GetUserDataRequest url={getURL.PerformaGetUserData()} / I know that there is a way to call parent items parentDocument. but not sure of a way to call childDocuments. Again Thanks for all the help. Timgerr
[flexcoders] Flex2 - using same swf in a browser over 20 times crashes it...
I have a need to show a chart in an html table (one chart in a cell in every row of the table - it has over 40 rows) I am loading mychart.swf into the html td and it all works fine. The problem is that when the number of charts are 20 the browser crashes (both IE and FF) - out of memory. Since it is the same swf (same flash object) - i am only passing different parameters to each instance - i am wondering if there is any way to make the browser reuse the same flash object - instead of getting it from the server everytime - any other thoughts on how i can make this less resource intensive (my swf is around 300k) I read something about using RSLs, but i am hoping there is an easier way to achieve this - i am trying to see if i can make the browser not fetch the swf again and again... thanks Vijay
Re: [flexcoders] talk from one swf to another
This is what I was refering to when I said: The functionality of Data Management's client-side data synchronization can however be simulated using a messaging framework. Similar to the collaboration dashboard seen in the BlazeDS examples. Best, Justin On Mon, May 19, 2008 at 5:01 PM, Luke Vanderfluit [EMAIL PROTECTED] wrote: Hi. Justin Fujita wrote: It sounds like you're looking for Adobe's Data Management feature (FDS/LCDS) which was not included in BlazeDS. The functionality of Data Management's client-side data synchronization can however be simulated using a messaging framework. Maybe. But it can be done with blazeds. Here's how -- Data Push: 1. In swf1 create an event that calls a server method using RemoteObject. 2. On the server, do something like this: package foo; import flex.messaging.MessageBroker; import flex.messaging.messages.AsyncMessage; import flex.messaging.util.UUIDUtils; public class FooUtils { public void pushData() { MessageBroker mb = MessageBroker.getMessageBroker(null); AsyncMessage am = new AsyncMessage(); am.setDestination(pusher); am.setMessageId(UUIDUtils.createUUID()); am.setBody(foobar); mb.routeMessageToService(am, null); } } In messaging-config.xml set the destination: destination id=pusher channels channel ref=my-streaming-amf/ /channels /destination 3. In swf2 create a consumer: mx:Consumer id=consumer destination=feed message=messageHandler(event.message)/ 4. In swf2 create a handler that handles the push: private function messageHandler(message:IMessage):void { trace(You rock); //do whatever! } (-: Kind regards. Luke On Sun, May 18, 2008 at 10:13 PM, Luke Vanderfluit [EMAIL PROTECTED]luke.vanderfluit%40e3learning.com.au mailto:[EMAIL PROTECTED]luke.vanderfluit%40e3learning.com.au wrote: Hi. Im using blazeds and a java backend. I have a swf that updates stuff on the server and thus in the database. My question is: Is it possible to have a second swf (using blazeds) that will listen for or subscribe to changes on a server object and have the server object push changes to the subscribed object. IOW. I want to have one swf respond to changes made with a different swf. Thanks. Kind regards. Luke. -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au http://e3Learning.com.au 08 8221 6422 -- Thanks for reading. -Justin Flickr: http://www.flickr.com/photos/neopan/ -- Luke Vanderfluit Analyst / Web Programmer e3Learning.com.au 08 8221 6422 -- Thanks for reading. -Justin Flickr: http://www.flickr.com/photos/neopan/
RE: [flexcoders] Flex2 - using same swf in a browser over 20 times crashes it...
That sounds very inefficient. Even using RSLs. Could you not use a single Flex App and put your charts in a TileList, with optimized item renderers? This way, flex can recycle the chart renderers as you scroll. You should get better performance and better memory management. I do not know enough about the flash player internals to know really how bad 40 individual flex applications are, but it just seems like a bad idea. It will be some work, but your requirements are not trivial. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vijay95052 Sent: Monday, May 19, 2008 7:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 - using same swf in a browser over 20 times crashes it... I have a need to show a chart in an html table (one chart in a cell in every row of the table - it has over 40 rows) I am loading mychart.swf into the html td and it all works fine. The problem is that when the number of charts are 20 the browser crashes (both IE and FF) - out of memory. Since it is the same swf (same flash object) - i am only passing different parameters to each instance - i am wondering if there is any way to make the browser reuse the same flash object - instead of getting it from the server everytime - any other thoughts on how i can make this less resource intensive (my swf is around 300k) I read something about using RSLs, but i am hoping there is an easier way to achieve this - i am trying to see if i can make the browser not fetch the swf again and again... thanks Vijay
[flexcoders] Re: Flex2 - using same swf in a browser over 20 times crashes it...
I would be surprised if loading 20+ SWFs with nothing in them didn't crash the browser. Can you not just replace the HTML table with a single SWF with a DataGrid? Ben --- In flexcoders@yahoogroups.com, vijay95052 [EMAIL PROTECTED] wrote: I have a need to show a chart in an html table (one chart in a cell in every row of the table - it has over 40 rows) I am loading mychart.swf into the html td and it all works fine. The problem is that when the number of charts are 20 the browser crashes (both IE and FF) - out of memory. Since it is the same swf (same flash object) - i am only passing different parameters to each instance - i am wondering if there is any way to make the browser reuse the same flash object - instead of getting it from the server everytime - any other thoughts on how i can make this less resource intensive (my swf is around 300k) I read something about using RSLs, but i am hoping there is an easier way to achieve this - i am trying to see if i can make the browser not fetch the swf again and again... thanks Vijay
[flexcoders] Re: Securely Interfacing Between Flex and Databases
Well the concern is that no matter how you choose to encrypt/decrypt information, a Flash movie can always be decompiled and your decryption method is caught with its pants down, allowing users to find out how to view sensitive material that they're not supposed to be looking at. So how are we supposed to move this kind of data in and out of a Flex application without the worry? Does SSL even help? The concern is not the forging of data, but rather the interception and decryption of it. --- In flexcoders@yahoogroups.com, andrewwestberg [EMAIL PROTECTED] wrote: Simply having SSL (https) enabled on your php webserver will help. Another methodology for accessing DB data is using AMFPHP (although I haven't used it myself). -Andrew
[flexcoders] dataprovider question
Hi Folks, I'm wondering how to force a datagrid to update it's contents when a value on a server changes...do i have to query the server every time? or is there some other way of refreshing this data...shouldn't it update as soon as the data on the server changes? thanks p