RE: [flexcoders] MOUSE_LEAVE never fires in IE if drag with bounds is active
Go ahead and file it if you want. I'm not even going to bother to confirm. It is a player API. We avoid startDrag/stopDrag for many other reasons and handle dragging in separate code in Flex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, September 25, 2007 9:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] MOUSE_LEAVE never fires in IE if drag with bounds is active The behavior is just like if you drag past the bounds and release without having defined a MOUSE_UP listener for the stage. This makes it impossible to cancel a drag operation if the user's mouse leaves the stage with the mouse button down. Again, this is only in IE. Pretty sure this is a bug but will wait for confirmation before filing. Complete test case below. Thanks, Ben ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute viewSourceURL=srcview/index.html creationComplete=init() mx:Script ![CDATA[ private function init():void { pnl.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); pnl.addEventListener(MouseEvent.MOUSE_UP, onLeave); } private function onMouseDown(event:MouseEvent):void { pnl.startDrag(false, new Rectangle(0, 0, 100, 100)); systemManager.stage.addEventListener(Event.MOUSE_LEAVE, onLeave); } private function onLeave(event:Event):void { pnl.stopDrag(); systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, onLeave); } ]] /mx:Script mx:Panel id=pnl width=400 height=300 title=Panel One / /mx:Application
RE: [flexcoders] Re
Ttry calling validateNow() before move(); a:Alert = Alert.show(AAA); a.validateNow(); a.move(0,0); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danielvlopes Sent: Tuesday, September 25, 2007 6:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re Hello Alex... I try to do this: Alert.show(AAA).move(0,0); and this: a:Alert = Alert.show(AAA); a.move(0,0); But doesn't work. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Alert.show returns the alert instance and you can call move() on it. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of danielvlopes Sent: Tuesday, September 25, 2007 11:46 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Alert not in middle of screen It is possible put Alert not in middle of screen?
Re: [flexcoders] Where to start learning Flex
There is a book called: The essential guide to Flex 2 with Actionscript 3.0 by Charles Brown. It should get you started. There are also tutorials that are included with your flex.. neugi [EMAIL PROTECTED] wrote: Hi, where to start learning flex2? are there good books, or tutorials online? thx - Yahoo! Answers - Get better answers from someone who knows. Tryit now.
[flexcoders] Sort string like number in datagrid
Ola, I am with the following problem I have the field value in some tables of my DB, in flex I store values in format ,00 (money) but when I return the stored items for my datagrid and click header to sort it no right sorted because is string. I'm using amfphp to get values from PHP. If i use, decimal on mysql, i think php will cast this decimal to string before send to flex. Which would be the best way to fix this problem? Thanks
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
thanks for the reply, I'm not missing the import and it is listed in the as 3 doc under flex doc. http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=15_Geometry_174_5.html if it is for Flash CS3 and not for Flex, how can we use MatrixTransformer in flex? On 9/25/07, Steve Mathews [EMAIL PROTECTED] wrote: I am pretty sure the fl classes are part of the CS3 IDE, not the flex framework. On 9/25/07, Paolo Bernardini [EMAIL PROTECTED] wrote: if I try to use fl.motion.MatrixTransformer in a flex project the compiler complains that MatrixTransformer dose not exist. Is fl.motion.MatrixTransformer included in the flex framework?
Re: [flexcoders] Any non-attendee access to Adobe Max presentations?
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: So I wouldn't be surprised if 1) Adobe Media Player is launched at MAX and 2) the recorded sessions from MAX are available through AMP If the 'big news' is AMP, I'll be disappointed. -- Tom Chiverton Helping to proactively create user-centric functionalities on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] New Project using ColdFusion Flash Remoting Service
On Tuesday 25 Sep 2007, [EMAIL PROTECTED] wrote: that's it, i hit Next, i try to wrinte some MXML (anything really) but it fails to compile, it keeps running and running with no result. PYC. -- Tom Chiverton Helping to completely unleash guinine market-growth on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: thanks for the reply, I'm not missing the import and it is listed in the as 3 doc under flex doc. Post Your Code. -- Tom Chiverton Helping to vitalistically streamline value-added segments on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Code behind - class extend mxml vs. mxml extend class
On Tuesday 25 Sep 2007, [EMAIL PROTECTED] wrote: We use the AS extends MXML approach. I've never seen anyone do this, but see no reason why it would fail. MXML and then extend it with functionality which is added in the AS class. The only problem we came across with this approach is extending this AS class with MXML, which is not possible. You mean you can't write: view:MyClass xmlns:view=* mx:Text text=foo/ /view:MyClass ? Works really well, you get code hinting for the components layed out and gives you all the freedom you need. An example: You get this for MXML extends AS too (if you create public bindable for each control you want to reference). -- Tom Chiverton Helping to interactively engage collaborative information on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Get row and column from click on datagrid
Hi, I want to find out what row and column I have clicked on in a datagrid. Where do I start? Ideally what I want to do is detect if I clicked on an empty row and then insert a new item into the data provider to let the user edit the new row. Thanks, Mark
[flexcoders] logic problem
I have two textInput components. This code: if((goodsInAccount.text != ) (goodsInAdvice.text.indexOf(/) == 0)) { . } but it returns true when goodsInAccount contains no text and goodsInAdvice contains the / character. The problem seems to be with the logic knowing that goodsInAccount.text is empty. It's tried using goodsInAccount.text.length 0 too. Maybe I've just not had enough coffee yet, or is this a known bug?
[flexcoders] Re: Vector graphics serialization format?
Wow, that looks great! I'm looking forward to the beta. Thanks, Borek --- In flexcoders@yahoogroups.com, Jason Hawryluk [EMAIL PROTECTED] wrote: We are hoping to have a beta for Degrafa around the end of Oct. This framework will do what your looking to do. http://www.degrafa.com cheers jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Borek Envoyé : mardi 25 septembre 2007 15:28 À : flexcoders@yahoogroups.com Objet : [flexcoders] Re: Vector graphics serialization format? Or thermo :) We shall see... --- In flexcoders@yahoogroups.com, Daniel Cascais daniel.cascais@ wrote: The closest to what you want is embedding SVG files. On 9/18/07, Borek borekbe@ wrote: Hi all, is there some Flex-supported format for vector graphics serialization? I mean, I can use something like graphics.drawRect(1,2,3,4); graphics.drawEllipse(...); // etc. while I would appreciate something like rectangle x=1 y=2 width=3 height=4 etc. It would seems logical to me to have this kind of declarative description rather than imperative method calls when the task - creating user interface - is practically the same as when creating containers and controls. Thanks, Borek
Re: [flexcoders] SWFObject et al
On Tuesday 25 Sep 2007, [EMAIL PROTECTED] wrote: What's popular/effective amongst flexcoders as an html wrapper? We are trying SWFObject but have issues on IE7. We're using v1.5, and haven't got any reports of problems (and it was fine in testing). -- Tom Chiverton Helping to biannually exploit six-generation patterns on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Doubt with Refresh()
Hi, Thanks for u r reply. In my app I used remote object procedure to get data from the server. The data is displaying in the text area when I click on the button. Here I placed one button for refresh. when I click on the button the text area has to be refreshed. But, here am not getting how to use the function for refresh. Can u give some suggetions. Thanks, Preet.
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
* Here is my code: import* fl.motion.MatrixTransformer; *import* *flash*.geom.Matrix; * var* tempMaskMatrix:Matrix = *maskAsset*.transform.matrix; MatrixTransformer.setSkewY(tempMaskMatrix, angle); MatrixTransformer.setSkewX(tempMaskMatrix, 0); where *maskAsset is an image.* On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: thanks for the reply, I'm not missing the import and it is listed in the as 3 doc under flex doc. Post Your Code. -- Tom Chiverton Helping to vitalistically streamline value-added segments on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: thanks for the reply, I'm not missing the import and it is listed in the as 3 doc under flex doc. http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Book_Partsfile=15_Geometry_174_5.html Yeah. But it's not a framework class. It's not listed in http://livedocs.adobe.com/flex/201/langref/index.html and the very same page your link points at says 'The DisplayObjectTransformer application files can be found in the folder Samples/DisplayObjectTransformer. ... [including] com/example/programmingas3/geometry/MatrixTransformer.as ' So it's an example file, and not under fl.motion either way. -- Tom Chiverton Helping to quickly introduce scalable relationships on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] logic problem
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: Maybe I've just not had enough coffee yet, or is this a known bug? There is unlikely to be a bug in core Text classes or base AS logic. Have you set a break point and verified the values are what you expect ? -- Tom Chiverton Helping to completely harvest dot-com materials on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] New Project using ColdFusion Flash Remoting Service
Hi Tom, Sorry - perhaps you failed to send your message? On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 25 Sep 2007, [EMAIL PROTECTED] wrote: that's it, i hit Next, i try to wrinte some MXML (anything really) but it fails to compile, it keeps running and running with no result. PYC. -- Tom Chiverton Helping to completely unleash guinine market-growth on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links
Re: [flexcoders] logic problem
Maybe text is null? Cheers Ralf. On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: Maybe I've just not had enough coffee yet, or is this a known bug? There is unlikely to be a bug in core Text classes or base AS logic. Have you set a break point and verified the values are what you expect ? -- Tom Chiverton Helping to completely harvest dot-com materials on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
[flexcoders] Re: Code Coverage Testing Tool For Flex...
We have not put out a code coverage tool for Flex 2. It's something that we have on our roadmap, but timing is unknown. so, is there still no movement on this? Nothing as part of FlexBuilder3? no side projects? http://www.colettas.org/?p=60 http://life.neophi.com/danielr/2006/06/as3_code_coverage.html http://www.actionscript.org/forums/showthread.php3?t=147683 It's been nearly a year since this thread was first posted here. Is it just too hard to do for Flex?
[flexcoders] States and ComboBox error
Hi! I have a popup window that uses States and has an extended combobox (DropDownList) attached to it (LOGIN_STATE has it, there are two other states that don't have it). It works very well otherwise, but I get an error if I change the selection on combobox by using arrow keys on keyboard. It does work without errors if mouse is used to select values. The error I get is (NOTE: I don't even have keyDownHandler listened, I guess the error comes from ComboBox class): TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.controls::ComboBox/mx.controls:ComboBox::keyDownHandler() Does anybody have any ideas how to solve this? Here a portion of the mxml code used to define the states - mx:State name=LOGIN_STATE mx:AddChild position=firstChild mx:Text id=loginText text=login textAlign=center width=100%/ /mx:AddChild mx:AddChild relativeTo={loginForm} creationPolicy=all mx:FormItem id=itemLanguage required=true common:DropDownList change=onLanguageChange(event) id=language/ /mx:FormItem /mx:AddChild /mx:State mx:VBox id=mainBox verticalAlign=middle width=100% height=100% borderStyle=solid cornerRadius=7 mx:Form id=loginForm defaultButton={btnOk} cornerRadius=7 mx:FormItem id=itemUsername click=idClick(event) height=100% common:CommonTextInput id=username / /mx:FormItem mx:FormItem id=itemPassword click=idClick(event) common:CommonTextInput id=password displayAsPassword=true/ /mx:FormItem /mx:Form /mx:VBox Thanks, Mika
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
thanks Tom, I missed that part in the doc. it dosen't sound right to me that an actionscript 3 class is not available in flex. It should be added to the framework. On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: thanks for the reply, I'm not missing the import and it is listed in the as 3 doc under flex doc. http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.h tm?context=LiveDocs_Book_Partsfile=15_Geometry_174_5.html Yeah. But it's not a framework class. It's not listed in http://livedocs.adobe.com/flex/201/langref/index.html and the very same page your link points at says 'The DisplayObjectTransformer application files can be found in the folder Samples/DisplayObjectTransformer. ... [including] com/example/programmingas3/geometry/MatrixTransformer.as ' So it's an example file, and not under fl.motion either way. -- Tom Chiverton Helping to quickly introduce scalable relationships on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links
Re: [flexcoders] logic problem
Having no text doesnt mean the string value is . An Empty string is different from a null or an undefined value. So i suggest throw in a check for undefined/null value as well and if you dont turst that enough, check for the length as well. Moreover, when you say goodsInAdvice.text.indexOf(/) == 0 ; you are actually checking for the existence of the / character at the 0th index. If you want to check for it's absence, try goodsInAdvice.text.indexOf(/) == -1 or goodsInAdvice.text.indexOf(/) 0. Based on the scenario you have give, a null/undefined goodsInAccount.text and a goodsInAdvice.text with / in the beginning will really return true. --- candysmate [EMAIL PROTECTED] wrote: I have two textInput components. This code: if((goodsInAccount.text != ) (goodsInAdvice.text.indexOf(/) == 0)) { . } but it returns true when goodsInAccount contains no text and goodsInAdvice contains the / character. The problem seems to be with the logic knowing that goodsInAccount.text is empty. It's tried using goodsInAccount.text.length 0 too. Maybe I've just not had enough coffee yet, or is this a known bug? Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
[flexcoders] zoom - in charts
Hi, My requirement is that when the user moves mouse on the chart - that particluar portion zooms - in can we have something like that in flex
Re: [flexcoders] New Project using ColdFusion Flash Remoting Service
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: Sorry - perhaps you failed to send your message? PYC. Post Your Code -- Tom Chiverton Helping to vitalistically scale distributed content on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: it dosen't sound right to me that an actionscript 3 class is not available in flex. It should be added to the framework. It's not a (core) AS3 class ! It's just something they made up for the example. -- Tom Chiverton Helping to centrally deploy exceptional networks on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: logic problem
--- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote: Having no text doesnt mean the string value is . An Empty string is different from a null or an undefined value. So i suggest throw in a check for undefined/null value as well and if you dont turst that enough, check for the length as well. Moreover, when you say goodsInAdvice.text.indexOf(/) == 0 ; you are actually checking for the existence of the / character at the 0th index. If you want to check for it's absence, try goodsInAdvice.text.indexOf(/) == -1 or goodsInAdvice.text.indexOf(/) 0. Based on the scenario you have give, a null/undefined goodsInAccount.text and a goodsInAdvice.text with / in the beginning will really return true. Thanks for the education. That helped me a lot. I have it working now. cheers, Graham
[flexcoders] HTML content overlapping on Flex scrollbars
We are displaying some HTML content within our flex UI. We are using the IFrame code created by Christoph Coenraets available on net. The initial display works fine. However, if we reduce the size of the flex window, we get flex scrollbars. On trying to scroll the window such that window border crosses the rendered area of the HTML, the HTML gets rendered even on the scrollbars. Basically, the HTML renderer is not able to recognize the flex scrollbars on the right and on the bottom of the window. Is there any way to fix it? thanks Avinash
Re: [flexcoders] [OOT] Flex IDE error
On Tuesday 25 Sep 2007, [EMAIL PROTECTED] wrote: for Eclipse. I've tried setting the parameter -vmargs -Xms40m -Xmx512m -vmargs -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=1024M Consider -Xmx1024M too. Also, close projects and files you are not actively working on. -- Tom Chiverton Helping to greatly enhance transparent infomediaries on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] e4x question
I have been getting caught up with with one for a few weeks now, I keep forgetting to specify the namespace. I actually think this is a bug, but I haven't checked the Ecma requirements yet. In XPATH and the like if you don't specify a namespace in the query it will return all elements regardless of namespace. This only seems to be an issue in the ecma world, and it seems wrong to me. I suppose it could be argued that this helps us be better programmers and specifying namespaces is better in the long run. But in the example that you guys were working with it was the xml namespace, that should just be handled... just my opinion, but a lot of time was wasted on this and in my opinion it's a bug, possibly a language level bug. Paul Seth Caldwell wrote: Oh my god Toby, I just spent an hour because I was determined to learn about namespaces, and found a solution for you. =) After reading http://www.partlyhuman.com/blog/roger/using-e4x-with-xhtml-watch-your-namespaces I created blah.xml test xmlns:b=http://www.w3.org/1999/02/22-rdf-syntax-ns#;a b:c=dbleh/aa b:c=eblah/a/test Then loaded it withmx:XML source=blah.xml id=tx format=e4x / Then ran this: mx.controls.Alert.show(value is: +tx.a.(attributes()[0]==d)); which alerted “value is: bleh”. We could also do this: mx.controls.Alert.show(value is: +tx.a.(@*::c==d)); Oh my god, right? So I put your original XML into blah.xml, then did this: mx.controls.Alert.show(value is: +tx.*::Status.*::presence.(@*::lang==en)); Guess what?! “value is: Away”!! We win. Change this code for (i=0; i event.result.RDF.Status.presence.length; i++) { if(event.result.RDF.Status.presence[i][xml:lang] == en) if(event.result.RDF.Status.presence[i][value] != Offline) status = Online; to this code if(event.result.RDF.*::Status.*::presence.(@*::lang==”en”)==”Offline”) status = “Online”; wewt, Seth
[flexcoders] Re: MOUSE_LEAVE never fires in IE if drag with bounds is active
Hi Alex, Not quite sure how to take your comment. Do you mean file it against the player or whatever? Regarding the avoidance of startDrag/stopDrag, I take it you mean I should rewrite the code to utilize DragManager? Thanks, Ben --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Go ahead and file it if you want. I'm not even going to bother to confirm. It is a player API. We avoid startDrag/stopDrag for many other reasons and handle dragging in separate code in Flex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Tuesday, September 25, 2007 9:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] MOUSE_LEAVE never fires in IE if drag with bounds is active The behavior is just like if you drag past the bounds and release without having defined a MOUSE_UP listener for the stage. This makes it impossible to cancel a drag operation if the user's mouse leaves the stage with the mouse button down. Again, this is only in IE. Pretty sure this is a bug but will wait for confirmation before filing. Complete test case below. Thanks, Ben ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute viewSourceURL=srcview/index.html creationComplete=init() mx:Script ![CDATA[ private function init():void { pnl.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); pnl.addEventListener(MouseEvent.MOUSE_UP, onLeave); } private function onMouseDown(event:MouseEvent):void { pnl.startDrag(false, new Rectangle(0, 0, 100, 100)); systemManager.stage.addEventListener(Event.MOUSE_LEAVE, onLeave); } private function onLeave(event:Event):void { pnl.stopDrag(); systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, onLeave); } ]] /mx:Script mx:Panel id=pnl width=400 height=300 title=Panel One / /mx:Application
[flexcoders] isPropertyDataBound (or something like that)
Hi all, I need to programmatically find out whether some property is data bound or not. Is that possible in Flex? Thanks in advance, Borek
[flexcoders] Datagrid masking
Hi All I've got an intermittent problem with the masking on my datagrids. Occassionally the scrolling content of the datagrid appears outside the bounds of the box. I can see the contents of the row below the last displayed one when it should be masked and not visible. When you scroll the problem fixes its self. Has this happened to anyone else? Is there a fix? I've got Flex Builder 2.0.1.167022 (with Hotfix 2).
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
this is not completely true, fl.motion.MatrixTransformer is part of Flash CS3 AS3 Classes, I know that because I have used it many times. I was just trying to use it in a flex project. That's why it feels strange. On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: it dosen't sound right to me that an actionscript 3 class is not available in flex. It should be added to the framework. It's not a (core) AS3 class ! It's just something they made up for the example. -- Tom Chiverton Helping to centrally deploy exceptional networks on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links
Re: [flexcoders] Is there a mouseOverIndex? - QUICK SOLUTION
Hi Guillermo, try this: private function handleMouseEvent(e:MouseEvent):void{ trace(nav_bloque1.getChildIndex(e.target as DisplayObject)); } This way, regardless of how many buttons you add or delete and regardless of the values associated with them, you will still get the correct index (zero-based index of course). Another way to do this - although rather lengthy - is to catch the label of the target and look it up back on the dataprovider associated. You will have to deal with duplicate labels this way however. I would have suggested that you subclass button bar instead and dispatch a custom rollover event so that you can get whatever details there is in the data provider that is associated with the 'mouse-overed' button. But if you just need the index, i think the solution above will be enough. p.s. are you from the Philippines? Best, Leds --- Guillermo Villasana [EMAIL PROTECTED] wrote: Anyone, any thoughts? None? Thanks Guillermo Villasana wrote: Hi again, well sorry about the other post that get duplicated, but as I asked before, is there a way to get the index of a button in a togglebuttonbar when you just go over the button? here is my code !-- code -- mx:ToggleButtonBar id=nav_bloque1 alpha=0.5 useHandCursor= true buttonMode=true itemClick=ChangeContent(nav_bloque1.selectedIndex); mouseOver=handleMouseEvent(event);getSubnav(nav_bloque1.selectedIndex); height=26 minWidth=1000 / !-- code -- I want to change the nav_bloque1.selectedIndex to nav_bloque1.mouseOverIndex or something like that so I can do some other functions with that index. I tried to use var objArray:Array=getObjectsUnderPoint(pt); but I don't understand how to get the button as I get a lot of objects with a full path. Thanks Terius Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
RE: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
Flex 2 existed long before Flash CS3. Looks like it was made up for the Flex example and then later incorporated into the Flash CS3 library but not Flex's library. Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paolo Bernardini Sent: Wednesday, September 26, 2007 9:29 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework this is not completely true, fl.motion.MatrixTransformer is part of Flash CS3 AS3 Classes, I know that because I have used it many times. I was just trying to use it in a flex project. That's why it feels strange. On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: it dosen't sound right to me that an actionscript 3 class is not available in flex. It should be added to the framework. It's not a (core) AS3 class ! It's just something they made up for the example. -- Tom Chiverton
[flexcoders] setting a swf container_size-
Hi I have a little trouble with my flex app in IE windows xp and vista, I have a swf loader that acts like a background with a jpg on it, the size is more than 1024 x 768 so I Just set the size of the application to those values, in mac is ok, but when it comes to windows, the size is smaller and it doesn't fit ...any ideas coders. this is the code for the app. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=canvasBackground() width=100% height=100% resize=false backgroundGradientAlphas=[1.0, 1.0] backgroundGradientColors=[#141313, #141313] //I'd tried to 1024 x 768 but it doesn't work so i did it to percentage but it doesn't work too.// this is for the loader mx:SWFLoader id=myLoader width=100% height=100% horizontalCenter=0 bottom=0 alpha=0.8/ I hope you can help me out with this regards. Gustavo
Re: [flexcoders] Is there a mouseOverIndex? - QUICK SOLUTION
Definitely I think this will do I will try it out. Thanks a lot to everyone for the help. And nope I am not frome the Philippines :) leds usop wrote: Hi Guillermo, try this: private function handleMouseEvent(e:MouseEvent):void{ trace(nav_bloque1.getChildIndex(e.target as DisplayObject)); } This way, regardless of how many buttons you add or delete and regardless of the values associated with them, you will still get the correct index (zero-based index of course). Another way to do this - although rather lengthy - is to catch the label of the target and look it up back on the dataprovider associated. You will have to deal with duplicate labels this way however. I would have suggested that you subclass button bar instead and dispatch a custom rollover event so that you can get whatever details there is in the data provider that is associated with the 'mouse-overed' button. But if you just need the index, i think the solution above will be enough. p.s. are you from the Philippines? Best, Leds --- Guillermo Villasana [EMAIL PROTECTED] mailto:terius%40villasana.com.mx wrote: Anyone, any thoughts? None? Thanks Guillermo Villasana wrote: Hi again, well sorry about the other post that get duplicated, but as I asked before, is there a way to get the index of a button in a togglebuttonbar when you just go over the button? here is my code !-- code -- mx:ToggleButtonBar id=nav_bloque1 alpha=0.5 useHandCursor= true buttonMode=true itemClick=ChangeContent(nav_bloque1.selectedIndex); mouseOver=handleMouseEvent(event);getSubnav(nav_bloque1.selectedIndex); height=26 minWidth=1000 / !-- code -- I want to change the nav_bloque1.selectedIndex to nav_bloque1.mouseOverIndex or something like that so I can do some other functions with that index. I tried to use var objArray:Array=getObjectsUnderPoint(pt); but I don't understand how to get the button as I get a lot of objects with a full path. Thanks Terius __ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
[flexcoders] How to Highlight selected item in mx:List after change of data provider
Hello, I am using mx:List which is bind to dataprovider of Collection type. On some particular event.The dataprovider list is getting updated,so I need to refresh Listbox with updated listvalues and set selected index again to the same. I am able to refresh the collection and set selected index again.But I am not able to show the selected Item highlighted (eg. I dont able to show selected item in blue color as it was before) Can you people provide me some hint regarding how to set style or call render for highlighting the particular item in Listbox? Thanks in advance.
[flexcoders] FW: yahoo maps CustomSWFMarker
forwarding Dimitrios Gianninas Moderator -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of oivind_gronli Sent: Wednesday, September 26, 2007 8:08 AM To: [EMAIL PROTECTED] Subject: Re: yahoo maps CustomSWFMarker Try this: Alert.show(Type: + ev.lastResult.type + \nRef: + ev.lastResult.ref); I was able to figure out the name of the reference parameter, but I can't figure out how to use it. I want to call functions on the custom marker, and eventually having the custom marker dispatching events which I can listen for. I think I might need the YahooMap.swc, but I get an error when I try to add this to my project. Any tips on how to do this? Thanks Oivind --- In flexcoders@yahoogroups.com, Alain Thibodeau [EMAIL PROTECTED] wrote: Thanks, it did help, in order to load custom markers with click events this is now my attempt What I am now trying to do is load custom markers, once the user clicks on it, it's a method inside the loaded swf marker that loads the image...but I need to pass the image location to the loaded swf.. once it's loaded... This is what I have so far: I added an event listener : mapEventDispatcher.addEventListener('addSWFMarkerByAddress_Result', onSWFMarkerAdded); Then similar to what you have: latLonController.addMarkerByLatLon('CustomSWFMarker',44, -80, {url:'customMarker.swf', ref:'myMark'}); Then the event function: private function onSWFMarkerAdded(ev:Object):void { Alert.show(ev.lastResult, 'Title'); //shows nothing... } All works great, the event fires when the markers are added BUT from what I gather the event object ev has 2 params: event type and a reference id. I do not know however what the actual param names areAnd for some reason my Flexbuilder hangs while the map is loading ( I am uing the yahoo as3 connection kit) in debug mode.. I cannot go see the names.. So now, I am trying to figure out how I am going to pass the data to the loaded swf :( Perhaps this is the wrong approach, but I am learning! :) thanks in advance for any help! - Original Message From: Abyss Knight [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, September 12, 2007 3:21:19 PM Subject: [flexcoders] Re: yahoo maps CustomSWFMarker I actually am having the same documentation issues, but this might help you: latLonController. addMarkerByLatLo n('CustomPOIMark er',dp[i] .lat, dp[i].lon,{index: index,title: dp[i].shortName, description: description, markerColor: Number('0x3366CC' ), strokeColor: Number('0xCEE9FF' )}); Basically, it uses the latLonController to add CustomPOIMarker. Problem is, the response will not give you a reference. I hacked around it using the title of the marker as an index to the data array. Hope that helps, - William --- In [EMAIL PROTECTED] ups.com, thibs73 thibs73@ wrote: Hi there, Anyone know if there is a click event for a CustomSWFMarker in yahoo Maps? Just like the onPOIClicked for POIMarker... why am I not using POIMarker? Because it seems that I can only add POI Markers by address only. I need to be able to add it by Lat Lon. To sum up, I want to add custom makers by Lat Lon, open a unique image when the user clicks on any of them. \ I am having a hard time finding documentation on this. Any help would be great, Thank-you Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent
[flexcoders] Feedback from compiler
All hi. Just a quick question. is there a way to add a compile time/date into the application at compile time. If you understand what I mean. Are there any constants or variables that flex builder holds and makes available to the application being built from the compiler? Cheers G. glenn williams tinylion 10 Print glenn 20 Goto 10 30 Rem was that really 1982? it seems like yesterday
[flexcoders] Re: firefox and FileReference.upload over SSL - error 2038
If it's any consolation, I'm having the same problem, but have chosen to bury my head in the sand for right now. One twist that I may add is that we have an SSL accelerator in front of our app server, but I have no idea what that may or may not do. Regardless, the problem still exists for me. --- In flexcoders@yahoogroups.com, wizardry_wiz [EMAIL PROTECTED] wrote: I have looked at the wireshark packets, which is how I know the image was never posted. I tried WebScarab this morning, and I must say that is my new favorite tool, thank you for pointing me at it. However, when I attempt the filereference.upload, it does not display anything having gone to it from the browser (although wireshark shows some ssl handshake attempt). This leads me to believe that the ssl handshake from flex to webscarab (using firefox) is failing. Which would indicate that there is nothing I can do as a developer and the bug is a part of the firefox plugin. I'm surprised nobody has run into this yet; I guess uploads over SSL aren't that common. If it would help, I can mail you offlist a url with a login for you see exactly what is going wrong and wireshark/etc yourself. Seth --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Monday 24 Sep 2007, wiz@ wrote: not https - an error is immediately thrown, it appears to mishandle the ssl handshake, as image data is never actually sent in a post. Again, everything is fine in IE, just not in firefox. Do you have WireShark/ethereal traces to back this up ? What about WebScarab (or other SSL intercepting HTTP recorder) output ? -- Tom Chiverton Helping to ambassadorially deploy value-added design-patterns on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Problems with setFocus()
I have the following code as my MXML code mx:TextInput id=firstInput focusOut=validateField(event)/ mx:TextInput id=secondInput / The script getting called is given below: private function validateField(event:Event):void{ event.target.setFocus(); } The problem is that even after setting the focus back to the first element the control is not coming back to the said control. Please let me know if anyone else has found a solution to this problem. Regards,
[flexcoders] import File System API doesn't work
Hi all, I need to do writing and reading file in my Flex application, but I can't seem to import the File System API. When I typed import flash., Eclipse would suggest filters, not filesystem as I expected. I've installed Adobe AIR 1.0. Any clue on this? TIA, Freska
Re: [flexcoders] Hyperlink in Flex 2...
Daniel - mx:LinkButton label=Your Text color=0xff click=yourEventHandler(event)/ hth Scott Daniel Sanderson wrote: Is there a way to make a label look like a hyperlink. It may trigger a view state or send and e-mail, whatever but I want to make it look and function like a hyperlink (underline and different color). Daniel Sanderson
Re: [flexcoders] Where to start learning Flex
Hi, thx for the response, i'll have a look at all the stuff thx 2007/9/26, Mathe Maema [EMAIL PROTECTED]: There is a book called: The essential guide to Flex 2 with Actionscript 3.0 by Charles Brown. It should get you started. There are also tutorials that are included with your flex.. *neugi [EMAIL PROTECTED]* wrote: Hi, where to start learning flex2? are there good books, or tutorials online? thx -- Yahoo! Answers - Get better answers from someone who knows. Try it nowhttp://uk.answers.yahoo.com/;_ylc=X3oDMTEydmViNG02BF9TAzIxMTQ3MTcxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU .
[flexcoders] Hyperlink in Flex 2...
Is there a way to make a label look like a hyperlink. It may trigger a view state or send and e-mail, whatever but I want to make it look and function like a hyperlink (underline and different color). Daniel Sanderson
[flexcoders] Parsing mxml - is there an attribute or method of the
DisplayObjectContainer that indicates whether or not the children of the object have been instantiated yet? I know Flex waits to create some objects until just in time - this gets in the way of dynamic binding operations - hence I am looking for a way to look ahead to see if my target object exists yet, so I can force its creation if necessary. Thanks, Libby
[flexcoders] Re:Hyperlink in Flex 2...
Is there a way to make a label look like a hyperlink. It may trigger a view state or send and e-mail, whatever but I want to make it look and function like a hyperlink (underline and different color). Instead of using the Label component try using a LinkButton component and setting the style accordingly. The LinkButton component seems to be the thing you are actually looking to use. URL: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0541.html -- Daryl Joseph Ducharme Check out my blog at http://my.opera.com/darylducharme/blog/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Data Sharing between two swfs
I am not sure how LocalConnection would help me hereboth the swf's are on different pages, and never appear together on the same screen. Thx -Daman --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: LocalConnection is often the answer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daman Dogra Sent: Tuesday, September 25, 2007 11:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Data Sharing between two swfs Hi All, Here's a brief description of my problem. I have two separate html pages, lets say html1 and html2, each containing a swf..lets say swf1 and swf2. A user would typically land up on html1 page which contians swf1, swf1 would gather some data, the user then navigates to html2 page which contains swf2. The problem here is that swf2 needs access to data that was collected by swf1 on the previous page. Some options I thought about.. 1) using shared objects to share the data, but read somewhere that shared objects can only share simple data like strings etc. My data is stored in a actionscript class and wasn't sure if I could store the whole class in a shared object. Any ideas ? 2) Would RSL's be of any help here ? If I create my data class as an RSL, would it be seen by both the swf objects on different pages ? 3) Could create a long query-string (with all data) within swf1 and then call swf2 on next page with these parameters as flashvars. Would appreciate any suggestions about achieving this. Thx
Re: [flexcoders] e4x question
have a go at http://www.darronschall.com/weblog/archives/000223.cfm too. DK On 9/26/07, Paul deCoursey [EMAIL PROTECTED] wrote: I have been getting caught up with with one for a few weeks now, I keep forgetting to specify the namespace. I actually think this is a bug, but I haven't checked the Ecma requirements yet. In XPATH and the like if you don't specify a namespace in the query it will return all elements regardless of namespace. This only seems to be an issue in the ecma world, and it seems wrong to me. I suppose it could be argued that this helps us be better programmers and specifying namespaces is better in the long run. But in the example that you guys were working with it was the xml namespace, that should just be handled... just my opinion, but a lot of time was wasted on this and in my opinion it's a bug, possibly a language level bug. Paul Seth Caldwell wrote: Oh my god Toby, I just spent an hour because I was determined to learn about namespaces, and found a solution for you. =) After reading http://www.partlyhuman.com/blog/roger/using-e4x-with-xhtml-watch-your-namespaces I created blah.xml test xmlns:b=http://www.w3.org/1999/02/22-rdf-syntax-ns#;a b:c=dbleh/aa b:c=eblah/a/test Then loaded it with mx:XML source=blah.xml id=tx format=e4x / Then ran this: mx.controls.Alert.show(value is: +tx.a.(attributes()[0]==d)); which alerted value is: bleh. We could also do this: mx.controls.Alert.show(value is: +tx.a.(@*::c==d)); Oh my god, right? So I put your original XML into blah.xml, then did this: mx.controls.Alert.show(value is: +tx.*::Status.*::presence.(@*::lang==en)); Guess what?! value is: Away!! We win. Change this code for (i=0; i event.result.RDF.Status.presence.length; i++) { if(event.result.RDF.Status.presence[i][xml:lang] == en) if(event.result.RDF.Status.presence[i][value] != Offline) status = Online; to this code if(event.result.RDF.*::Status.*::presence.(@*::lang==en)==Offline) status = Online; wewt, Seth -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] e4x question
Alright, I've read the specs, it's not a bug but in fact it's by design... a design choice that I would not have made. The deal is if the namespace is not specified then for elements it matches on the default namespace, but for attributes it matches on no namespace... makes not sense to me. What also doesn't make sense is that attributes don't have a namespace unless declared per attribute. They do not inherit from the element, which is what XML Schema defines, but since Schema really doesn't come into play here this can be expected. It's all totally bizzare. Paul Paul deCoursey wrote: I have been getting caught up with with one for a few weeks now, I keep forgetting to specify the namespace. I actually think this is a bug, but I haven't checked the Ecma requirements yet. In XPATH and the like if you don't specify a namespace in the query it will return all elements regardless of namespace. This only seems to be an issue in the ecma world, and it seems wrong to me. I suppose it could be argued that this helps us be better programmers and specifying namespaces is better in the long run. But in the example that you guys were working with it was the xml namespace, that should just be handled... just my opinion, but a lot of time was wasted on this and in my opinion it's a bug, possibly a language level bug. Paul Seth Caldwell wrote: Oh my god Toby, I just spent an hour because I was determined to learn about namespaces, and found a solution for you. =) After reading http://www.partlyhuman.com/blog/roger/using-e4x-with-xhtml-watch-your-namespaces I created blah.xml test xmlns:b=http://www.w3.org/1999/02/22-rdf-syntax-ns#;a b:c=dbleh/aa b:c=eblah/a/test Then loaded it withmx:XML source=blah.xml id=tx format=e4x / Then ran this: mx.controls.Alert.show(value is: +tx.a.(attributes()[0]==d)); which alerted “value is: bleh”. We could also do this: mx.controls.Alert.show(value is: +tx.a.(@*::c==d)); Oh my god, right? So I put your original XML into blah.xml, then did this: mx.controls.Alert.show(value is: +tx.*::Status.*::presence.(@*::lang==en)); Guess what?! “value is: Away”!! We win. Change this code for (i=0; i event.result.RDF.Status.presence.length; i++) { if(event.result.RDF.Status.presence[i][xml:lang] == en) if(event.result.RDF.Status.presence[i][value] != Offline) status = Online; to this code if(event.result.RDF.*::Status.*::presence.(@*::lang==”en”)==”Offline”) status = “Online”; wewt, Seth
[flexcoders] Flex and Server-Side Java classes
All, I've been a part of this list for a long time and I'm a pretty decent Flex programmer. However, I'm not too familiar with the server-side aspect of things. I wanted to post a server-side noob question for you experts out there. If I have a couple existing applications, one that runs in JBoss, one that's .NET with a SOAP API, and I want to set up a broker system using java and JBoss, is it possible to have Flex make Remote Object calls to the broker system if I DON'T use LCDS? In other words, do I need LCDS to call a server-side Java class? Please no flames regarding this question. If I've said something incorrectly, please let me know so I can learn more about this stuff. I hate that I don't even know the questions to ask. :( Thanks, Mark
[flexcoders] Manipulating tree label programmatically
Hi, I am trying to change the label of a tree item for when the item is selected. branch1 child1A branch2 child2A child2Aa child2Ab First problem is I need to add a character, lets say #, to the label, so when I click on child1A, it should now display #child1A. Second problem is changing the style of the label, bolding it, to the label, so when I click on branch2, it should now display *branch2*. Any idea is greatly appreciated.
[flexcoders] How to save a sharedobject value based on a parameter name??
I want to have a function that one can call to save a name/value into the clientside SharedObject. The Flex doc has the example like this: var my_so:SharedObject = SharedObject.getLocal(superfoo); my_so.data.itemNumbers = items_array; my_so.data.adminPrivileges = currentUserIsAdmin; my_so.data.userName = currentUserName; My issue is that I don't want to hard code the name of the cookie. So in the above example, I don't want to hardcode itemNumbers. Here is what I want to do: public function saveCookie(key:String, value:String):void { var my_so:SharedObject = SharedObject.getLocal(superfoo); my_so.data.key = value; } The problem is that data.key is not evaluated to its real parameter value and the cookie is saved as the hard coded key string. Any ideas? Thanks!
[flexcoders] Re: How to save a sharedobject value based on a parameter name??
Okso I see that there is a .setProperty() method on the SharedObject, so I can save the cookie based on parameter name, as in the following: function saveCookie(key:String, value:String):void { so.setProperty(key, value); } BUT!!! How does one GET the value using a parameter name. There is no so.getProperty(key); Appears that the only way to get a stored value is off of the so.data object. And you can't parameterize this. And this is my problem. function getCookie(key:String):void { // This always attempts to get a cookie with the name key return so.data.key; } Any ideas? Thanks! --- In flexcoders@yahoogroups.com, tjcox1969 [EMAIL PROTECTED] wrote: I want to have a function that one can call to save a name/value into the clientside SharedObject. The Flex doc has the example like this: var my_so:SharedObject = SharedObject.getLocal(superfoo); my_so.data.itemNumbers = items_array; my_so.data.adminPrivileges = currentUserIsAdmin; my_so.data.userName = currentUserName; My issue is that I don't want to hard code the name of the cookie. So in the above example, I don't want to hardcode itemNumbers. Here is what I want to do: public function saveCookie(key:String, value:String):void { var my_so:SharedObject = SharedObject.getLocal(superfoo); my_so.data.key = value; } The problem is that data.key is not evaluated to its real parameter value and the cookie is saved as the hard coded key string. Any ideas? Thanks!
RE: [flexcoders] New Project using ColdFusion Flash Remoting Service
George, Pretty sure server side compile only works with Cold Fusion 8. You might want to check the Cold Fusion docs. Brian.. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Georgiou Sent: Tuesday, September 25, 2007 2:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] New Project using ColdFusion Flash Remoting Service Hi all, A quick and newbie question - i m sure this is easy for most of you. I want to test the flash remoting service of ColdFusion and flex. I have a book on Flex explains perfectly some examples but it has very poor help in setting up the whole thing. This is my scenario: I have coldfusion 7.0.2 running on a different machine on my local network on win2k3 server. I have opened a new website on my IIS which can be accessed at http://myexample.flex http://myexample.flex . Placing .cfm files there works perfectly! Now, I create in FlexBuilder 2 a new project using the option ColdFusion Flash Remoting Service. I am asked to enter the following: Root Folder : I have created a mapping that points directly to the coldfusion root folder: this is o:\cfusionmx7\wwwroot (even if I try to add something different there it fails to validate). Root URL : I have entered my http://myexample.flex http://myexample.flex there that's it, i hit Next, i try to wrinte some MXML (anything really) but it fails to compile, it keeps running and running with no result. Could you please help me on this? Thanks a lot, George *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] Re: Flex and Server-Side Java classes
Check out WebORB. There are also some open source alternatives: Granite Red5 Flourine (.NET) PHPAMF (PHP) -- Anas Mughal --- In flexcoders@yahoogroups.com, Mark Doberenz [EMAIL PROTECTED] wrote: All, I've been a part of this list for a long time and I'm a pretty decent Flex programmer. However, I'm not too familiar with the server-side aspect of things. I wanted to post a server-side noob question for you experts out there. If I have a couple existing applications, one that runs in JBoss, one that's .NET with a SOAP API, and I want to set up a broker system using java and JBoss, is it possible to have Flex make Remote Object calls to the broker system if I DON'T use LCDS? In other words, do I need LCDS to call a server-side Java class? Please no flames regarding this question. If I've said something incorrectly, please let me know so I can learn more about this stuff. I hate that I don't even know the questions to ask. :( Thanks, Mark
[flexcoders] Highlight certain days in DateChooser
Hi, is it possible to highlight certain dates within a datechooser? i.e. make the 5th or 6th of the current month appear in bold? Thanks, Mark
Re: [flexcoders] Re: How to save a sharedobject value based on a parameter name??
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: function getCookie(key:String):void { // This always attempts to get a cookie with the name key return so.data.key; so.data[key] ? -- Tom Chiverton Helping to synergistically repurpose high-yield developments on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] zoom - in charts
The existing zoom effects is there on the entire chart and series, but to have it for individual chart items, you probably can handle the itemRollOver events and add a chartelement dynamically as that of the itemRenderer with a appropriate scale effect and appropriate bounds. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of seemaherein Sent: Wednesday, September 26, 2007 4:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] zoom - in charts Hi, My requirement is that when the user moves mouse on the chart - that particluar portion zooms - in can we have something like that in flex
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: this is not completely true, fl.motion.MatrixTransformer is part of Flash CS3 AS3 Classes, Doesn't make in a core Flex class. -- Tom Chiverton Helping to greatly brand frictionless patterns on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] New Project using ColdFusion Flash Remoting Service
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: Pretty sure server side compile only works with Cold Fusion 8. You might want to check the Cold Fusion docs. The OP *seems* to be complaining about something in Flex Builder. -- Tom Chiverton Helping to completely morph distributed models on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Get row and column from click on datagrid
On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: Hi, I want to find out what row and column I have clicked on in a datagrid. Where do I start? The LiveDocs for the relevant event, linked from the main DataGrid page. -- Tom Chiverton Helping to advantageously grow wireless networks on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] New Project using ColdFusion Flash Remoting Service
I don't have problem with the code. The problem is to create a new project using the CF flash service setup. Even for a single button that just popups an alert - if I don't define the correct project settings it won't compile at all! On 9/26/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: Sorry - perhaps you failed to send your message? PYC. Post Your Code -- Tom Chiverton Helping to vitalistically scale distributed content on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links
RE: [flexcoders] Get row and column from click on datagrid
The click event gives me no information that I can readily use to look up a row and column in the datagrid... Private function clickHandler(event:MouseEvent):void { // How to find out what row / column was clicked on - even if there is no data at the location the user clicked } mx:DataGrid click=clickHandler(event) ... etc ... / Thanks, Mark -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: 26 September 2007 16:50 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Get row and column from click on datagrid On Wednesday 26 Sep 2007, [EMAIL PROTECTED] wrote: Hi, I want to find out what row and column I have clicked on in a datagrid. Where do I start? The LiveDocs for the relevant event, linked from the main DataGrid page. -- Tom Chiverton Helping to advantageously grow wireless networks on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links
Re: [flexcoders] class fl.motion.MatrixTransformer not available in flex framework
Doesn't make in a core Flex class. t Tom 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Re
Thanks alex. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Ttry calling validateNow() before move(); a:Alert = Alert.show(AAA); a.validateNow(); a.move(0,0); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danielvlopes Sent: Tuesday, September 25, 2007 6:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re Hello Alex... I try to do this: Alert.show(AAA).move(0,0); and this: a:Alert = Alert.show(AAA); a.move(0,0); But doesn't work. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Alert.show returns the alert instance and you can call move() on it. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of danielvlopes Sent: Tuesday, September 25, 2007 11:46 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Alert not in middle of screen It is possible put Alert not in middle of screen?
[flexcoders] can change pie chart color at runtime,please help
hi guys, i have a problem about changing the pie chart color at runtime. for example, i have this chart : mx:PieChart id=pcRegion width=100% height=100% mx:series mx:Array mx:PieSeries field=revenue nameField=name labelPosition=callout labelFunction=getSliceLabel showDataEffect={interpolate} mx:fills mx:Array mx:RadialGradient mx:entries mx:Array mx:GradientEntry id=pie1 color=#A1AECF ratio=0/ mx:GradientEntry id=pie11 color=#47447A ratio=1/ /mx:Array /mx:entries /mx:RadialGradient /mx:series /mx:PieChart and need to change the gradient entry with the id pie1 anda pie11,i did it like this: pie1.color=0xFF; but its seems doesn't work. can someone help me? thanks, regards
[flexcoders] Re: Get row and column from click on datagrid
Try using/reading up on itemClick instead of just click
[flexcoders] Re: firefox and FileReference.upload over SSL - error 2038
I have been running into the same thing since the FileReference API was introduced. I just chalked it up to the Firefox Flash Player plugin not working. I run my app in an embedded system and use the FileReference API to actually upload a software upgrade which the system them consumes and upgrades with. This works fine on Mac Safari and Windows IE but not on Mac Firefox or Windows Firefox...or for that matter, Windows Safari...but I am not too worried about that one. So you are not the only one with the FIleReference SSL/Firefox issue. --- In flexcoders@yahoogroups.com, wizardry_wiz [EMAIL PROTECTED] wrote: I have looked at the wireshark packets, which is how I know the image was never posted. I tried WebScarab this morning, and I must say that is my new favorite tool, thank you for pointing me at it. However, when I attempt the filereference.upload, it does not display anything having gone to it from the browser (although wireshark shows some ssl handshake attempt). This leads me to believe that the ssl handshake from flex to webscarab (using firefox) is failing. Which would indicate that there is nothing I can do as a developer and the bug is a part of the firefox plugin. I'm surprised nobody has run into this yet; I guess uploads over SSL aren't that common. If it would help, I can mail you offlist a url with a login for you see exactly what is going wrong and wireshark/etc yourself. Seth --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: On Monday 24 Sep 2007, wiz@ wrote: not https - an error is immediately thrown, it appears to mishandle the ssl handshake, as image data is never actually sent in a post. Again, everything is fine in IE, just not in firefox. Do you have WireShark/ethereal traces to back this up ? What about WebScarab (or other SSL intercepting HTTP recorder) output ? -- Tom Chiverton Helping to ambassadorially deploy value-added design-patterns on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: zoom - in charts
You can do this quite easily by manipulating the maximum and minimum constraints on your graph. I'm not sure what you are trying to achieve, but it has likely been done. You may wish to take a look at: http://www.meutzner.com/blog/index.cfm/2007/6/15/Google-Finance-with-Flex-from-Silvafug-last-night That will give you some ideas, most likely. - William --- In flexcoders@yahoogroups.com, seemaherein [EMAIL PROTECTED] wrote: Hi, My requirement is that when the user moves mouse on the chart - that particluar portion zooms - in can we have something like that in flex
[flexcoders] DataGrid itemRenderer
I've been pulling my hair out trying to figure out the best way to format numbers in a DataGrid. I've got a dataProvider with fields used in the grids that are of type Number -- some are currency, some are integers, and some are numbers that need to be formatted to 1 decimal point. In other places in my application, I'm using a custom function to format numbers: public function format_number(num : Number, format : String) : String { var formatter : NumberFormatter = new NumberFormatter(); var str : String; switch (format) { case currency: formatter.precision = 2; formatter.useThousandsSeparator = true; str = $ + formatter.format(num); break; case percent: formatter.precision = 1; formatter.useThousandsSeparator = true; str = formatter.format(num*100) + %; break; case decimal2: formatter.precision = 2; formatter.useThousandsSeparator = false; str = formatter.format(num); break; case cuft: formatter.precision = 1; formatter.useThousandsSeparator = true; if (num 0) { num = 0 } str = formatter.format(num); break; default: str = String(num); break; } return str; } However, I can't figure out a way to utilize this function on my DataGrid columns. I've tried creating both inline and external itemRenderer components, but in both cases I don't see a way to inject the required Actionscript into the itemRenderer component -- I keep getting compile errors when I try to use an mx:Script block in the component. Anyone know of a way to make this work?
RE: [flexcoders] Re: Get row and column from click on datagrid
That works great when I click on a valid entry in the datagrid, but if I click on an empty row, the message isn't received. That is when I'm trying to capture the row column... Mark From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sgrosven2 Sent: 26 September 2007 17:00 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Get row and column from click on datagrid Try using/reading up on itemClick instead of just click
RE: [flexcoders] zoom - in charts
Can you describe what you're looking for in more detail? I can interpret what you said in many different ways. E. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Bannur Sent: Wednesday, September 26, 2007 8:48 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] zoom - in charts The existing zoom effects is there on the entire chart and series, but to have it for individual chart items, you probably can handle the itemRollOver events and add a chartelement dynamically as that of the itemRenderer with a appropriate scale effect and appropriate bounds. Thanks -Sunil From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of seemaherein Sent: Wednesday, September 26, 2007 4:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] zoom - in charts Hi, My requirement is that when the user moves mouse on the chart - that particluar portion zooms - in can we have something like that in flex image001.jpgimage002.jpg
RE: [flexcoders] DataGrid itemRenderer
read up on labelFunction From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of byte.sensei Sent: Wednesday, September 26, 2007 7:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid itemRenderer I've been pulling my hair out trying to figure out the best way to format numbers in a DataGrid. I've got a dataProvider with fields used in the grids that are of type Number -- some are currency, some are integers, and some are numbers that need to be formatted to 1 decimal point. In other places in my application, I'm using a custom function to format numbers: public function format_number(num : Number, format : String) : String { var formatter : NumberFormatter = new NumberFormatter(); var str : String; switch (format) { case currency: formatter.precision = 2; formatter.useThousandsSeparator = true; str = $ + formatter.format(num); break; case percent: formatter.precision = 1; formatter.useThousandsSeparator = true; str = formatter.format(num*100) + %; break; case decimal2: formatter.precision = 2; formatter.useThousandsSeparator = false; str = formatter.format(num); break; case cuft: formatter.precision = 1; formatter.useThousandsSeparator = true; if (num 0) { num = 0 } str = formatter.format(num); break; default: str = String(num); break; } return str; } However, I can't figure out a way to utilize this function on my DataGrid columns. I've tried creating both inline and external itemRenderer components, but in both cases I don't see a way to inject the required Actionscript into the itemRenderer component -- I keep getting compile errors when I try to use an mx:Script block in the component. Anyone know of a way to make this work?
RE: [flexcoders] Manipulating tree label programmatically
You can subclass TreeItemRenderer and do those things in updateDisplayList From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nhid Sent: Wednesday, September 26, 2007 7:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Manipulating tree label programmatically Hi, I am trying to change the label of a tree item for when the item is selected. branch1 child1A branch2 child2A child2Aa child2Ab First problem is I need to add a character, lets say #, to the label, so when I click on child1A, it should now display #child1A. Second problem is changing the style of the label, bolding it, to the label, so when I click on branch2, it should now display branch2. Any idea is greatly appreciated.
RE: [flexcoders] Datagrid masking
Some problems were fixed in Moxie. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight Sent: Wednesday, September 26, 2007 6:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid masking Hi All I've got an intermittent problem with the masking on my datagrids. Occassionally the scrolling content of the datagrid appears outside the bounds of the box. I can see the contents of the row below the last displayed one when it should be masked and not visible. When you scroll the problem fixes its self. Has this happened to anyone else? Is there a fix? I've got Flex Builder 2.0.1.167022 (with Hotfix 2).
RE: [flexcoders] Re: MOUSE_LEAVE never fires in IE if drag with bounds is active
You should file against the player. They should fix it. However, since that scenario is not recommended in Flex, I'm not going to verify it. And yes, use DragManager or your own code (Panel has its own code) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, September 26, 2007 6:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: MOUSE_LEAVE never fires in IE if drag with bounds is active Hi Alex, Not quite sure how to take your comment. Do you mean file it against the player or whatever? Regarding the avoidance of startDrag/stopDrag, I take it you mean I should rewrite the code to utilize DragManager? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Go ahead and file it if you want. I'm not even going to bother to confirm. It is a player API. We avoid startDrag/stopDrag for many other reasons and handle dragging in separate code in Flex From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Tuesday, September 25, 2007 9:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] MOUSE_LEAVE never fires in IE if drag with bounds is active The behavior is just like if you drag past the bounds and release without having defined a MOUSE_UP listener for the stage. This makes it impossible to cancel a drag operation if the user's mouse leaves the stage with the mouse button down. Again, this is only in IE. Pretty sure this is a bug but will wait for confirmation before filing. Complete test case below. Thanks, Ben ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute viewSourceURL=srcview/index.html creationComplete=init() mx:Script ![CDATA[ private function init():void { pnl.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); pnl.addEventListener(MouseEvent.MOUSE_UP, onLeave); } private function onMouseDown(event:MouseEvent):void { pnl.startDrag(false, new Rectangle(0, 0, 100, 100)); systemManager.stage.addEventListener(Event.MOUSE_LEAVE, onLeave); } private function onLeave(event:Event):void { pnl.stopDrag(); systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, onLeave); } ]] /mx:Script mx:Panel id=pnl width=400 height=300 title=Panel One / /mx:Application
[flexcoders] How to verify a URL before loading it OR how to catch IOException
I have a compiled theme SWF that I want to load at runtime. The problem is that if the theme.swf does not exist, I get Flash/Flex's ugly default error dialog at runtime saying: Error: Unable to load style(Error #2035: URL Not Found. URL: MyTheme.swf): MyTheme.swf. I don't mind catching the exception on load time but catching exceptions doesn't freakin work! So frustrating... How does one catch this exception? I have spent hours on this...even looking into how URLLoader handles exceptions and catching exceptions on that does not work for me either - I get the default Flex error dialog. I tried catching IOError, Error, etc HELP!!?? Here is what I am doing, but the catch statement never happens: try { StyleManager.loadStyleDeclarations(MyTheme.swf); } catch (e:Error) { Alert.show(Error); }
[flexcoders] Very strange runtime behavior - if logic doesn't work?????
Very strange... I had an apparent bug in my code and simply could not find it so I created a very basic function to help test. Here is the code: public function crazy(myBool:Boolean) : void { if ( myBool ) { var s:String; } } Yes, it does nothing. I place a break point on the var s:String; line to test the logic of the if statement. When I execute, it does not matter if I send in a true or a false to this method, it ALWAYS evaluates the expression to true, even though I can see in the debugger myBool is false. I tried: if ( myBool == true ) To see if that had any luck. It did not. After scratching my head a bit I tried: public function crazy(myBool:Boolean) : void { if ( myBool ) { var s:String; } else { var ss:String; } } Viola!!! Adding the else and the logic now works fine. Is it a requirement that I must have an else? If so, why? Thanks, Dale
[flexcoders] Module Error when re-loading a module
I have a main application that loads a module. Everything works fine until I RE-LOAD the module (via a popup-menu button). After that, when I dbl-click on a grid (which worked fine before.) I get the following error: TypeError: Error #1007: Instantiation attempted on a non-constructor. at mx.controls::DataGrid/mx.controls:DataGrid::drawSeparators() at mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/private::validateDisplayList() at mx.managers::LayoutManager/private::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/private::callLaterDispatcher2() at mx.core::UIComponent/private::callLaterDispatcher() at [enterFrameEvent] Any suggestions? Thanks Bruce
[flexcoders] Re: MOUSE_LEAVE never fires in IE if drag with bounds is active
I will definitely file a bug against the player but in my initial exploration am seeing some deal-breaker shortcomings of both DragManager and Panel's built-in approach. Panel's stage_mouseLeaveHandler() listens for MOUSE_LEAVE so it suffers from the same fate as startDrag(). DragManager, as far as I can tell, provides no way to limit the drag area. DragManager also doesn't seem to provide any (easy) way to do live dragging. I assume the only way to accomplish it would be to copy the dragged component into a ByteArray and use that as an Image's source for the dragProxy. As I said, these are only based on initial tests so please let me know if there is something I am overlooking. As it turns out I really hope that is the case. Thanks, Ben --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You should file against the player. They should fix it. However, since that scenario is not recommended in Flex, I'm not going to verify it. And yes, use DragManager or your own code (Panel has its own code) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Wednesday, September 26, 2007 6:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: MOUSE_LEAVE never fires in IE if drag with bounds is active Hi Alex, Not quite sure how to take your comment. Do you mean file it against the player or whatever? Regarding the avoidance of startDrag/stopDrag, I take it you mean I should rewrite the code to utilize DragManager? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Go ahead and file it if you want. I'm not even going to bother to confirm. It is a player API. We avoid startDrag/stopDrag for many other reasons and handle dragging in separate code in Flex From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Tuesday, September 25, 2007 9:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] MOUSE_LEAVE never fires in IE if drag with bounds is active The behavior is just like if you drag past the bounds and release without having defined a MOUSE_UP listener for the stage. This makes it impossible to cancel a drag operation if the user's mouse leaves the stage with the mouse button down. Again, this is only in IE. Pretty sure this is a bug but will wait for confirmation before filing. Complete test case below. Thanks, Ben ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute viewSourceURL=srcview/index.html creationComplete=init() mx:Script ![CDATA[ private function init():void { pnl.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); pnl.addEventListener(MouseEvent.MOUSE_UP, onLeave); } private function onMouseDown(event:MouseEvent):void { pnl.startDrag(false, new Rectangle(0, 0, 100, 100)); systemManager.stage.addEventListener(Event.MOUSE_LEAVE, onLeave); } private function onLeave(event:Event):void { pnl.stopDrag(); systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, onLeave); } ]] /mx:Script mx:Panel id=pnl width=400 height=300 title=Panel One / /mx:Application
[flexcoders] Re: can change pie chart color at runtime,please help
This is how to set fills programatically: fills:Array = []; var fill:RadialGradient = new RadialGradient(); var entries:Array = []; entries.push( new GradientEntry(color, ratio, alpha)) entries.push( new GradientEntry(color2, ratio2, alpha2)) //additional entries as needed fill.entries = entries; fills.push(fill); //additional fills as needed series.setStyle(fills, fills); another option would be to use a binding for the entry colors and just change the value of the bound var [Bindable] private var pie1Color:uint = 0xa1aecf; [Bindable] private var pie11Color:uint = 0x47447a; mx:GradientEntry id=pie1 color={pie1Color} ratio=0/ mx:GradientEntry id=pie11 color={pie11Color} ratio=1/ pie1Color = 0xFF; --- In flexcoders@yahoogroups.com, sonnygett [EMAIL PROTECTED] wrote: hi guys, i have a problem about changing the pie chart color at runtime. for example, i have this chart : mx:PieChart id=pcRegion width=100% height=100% mx:series mx:Array mx:PieSeries field=revenue nameField=name labelPosition=callout labelFunction=getSliceLabel showDataEffect={interpolate} mx:fills mx:Array mx:RadialGradient mx:entries mx:Array mx:GradientEntry id=pie1 color=#A1AECF ratio=0/ mx:GradientEntry id=pie11 color=#47447A ratio=1/ /mx:Array /mx:entries /mx:RadialGradient /mx:series /mx:PieChart and need to change the gradient entry with the id pie1 anda pie11,i did it like this: pie1.color=0xFF; but its seems doesn't work. can someone help me? thanks, regards
RE: [flexcoders] Re: firefox and FileReference.upload over SSL - error 2038
This is very good to hear. If any developer thinks they can do the following very easy, please do so and post here to bring more attention to this issue - it is a huge bug! Step 1: Install apache (ssl version) Step 2: install openssl if you don't have it already, and generate your keys, etc. Step 3: Configure apache to run ssl and non ssl from the same directory. Verify with an html file. Step 4: Install php, configure apache to use it. Step 5: Create a test project that uses filereference.upload, perhaps using http://localhost/upload.php as the target. Verify this works. Step 6: Change it to https://localhost/upload.php and watch it work in IE but fail miserably in firefox. Step 7: Post back to the list that you encountered the same bug. Or better yet, it works for you over https and post here and let us know. So far I have completed these steps about 7 times on different machines. Not one of them worked. If only the runtime's source code were open and I could indentify the problem there. So far only Flex Builder is open, am I right? Seth _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of schneiderjim Sent: Tuesday, September 25, 2007 5:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: firefox and FileReference.upload over SSL - error 2038 If it's any consolation, I'm having the same problem, but have chosen to bury my head in the sand for right now. One twist that I may add is that we have an SSL accelerator in front of our app server, but I have no idea what that may or may not do. Regardless, the problem still exists for me. --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, wizardry_wiz [EMAIL PROTECTED] wrote: I have looked at the wireshark packets, which is how I know the image was never posted. I tried WebScarab this morning, and I must say that is my new favorite tool, thank you for pointing me at it. However, when I attempt the filereference.upload, it does not display anything having gone to it from the browser (although wireshark shows some ssl handshake attempt). This leads me to believe that the ssl handshake from flex to webscarab (using firefox) is failing. Which would indicate that there is nothing I can do as a developer and the bug is a part of the firefox plugin. I'm surprised nobody has run into this yet; I guess uploads over SSL aren't that common. If it would help, I can mail you offlist a url with a login for you see exactly what is going wrong and wireshark/etc yourself. Seth --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, Tom Chiverton tom.chiverton@ wrote: On Monday 24 Sep 2007, wiz@ wrote: not https - an error is immediately thrown, it appears to mishandle the ssl handshake, as image data is never actually sent in a post. Again, everything is fine in IE, just not in firefox. Do you have WireShark/ethereal traces to back this up ? What about WebScarab (or other SSL intercepting HTTP recorder) output ? -- Tom Chiverton Helping to ambassadorially deploy value-added design-patterns on: http://thefalken. http://thefalken.livejournal.com livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: How to verify a URL before loading it OR how to catch IOException
Hi, The reason this approach will not work is that the error you are getting is an asynchronous error, i.e. something that happens in a different code path (when you response return from server). 'try- catch' can only protected in the current execution stack. A simple look up at the StyleManager API reveals that loadStyleDeclarations() returns an IEventDispatcher! All you need is : try { var ed : IEventDispatcher = StyleManager.loadStyleDeclarations (MyTheme.swf); ed.addEventListener(StyleEvent.ERROR,myErrorHandler); } Regards, Sandeep --- In flexcoders@yahoogroups.com, tjcox1969 [EMAIL PROTECTED] wrote: I have a compiled theme SWF that I want to load at runtime. The problem is that if the theme.swf does not exist, I get Flash/Flex's ugly default error dialog at runtime saying: Error: Unable to load style(Error #2035: URL Not Found. URL: MyTheme.swf): MyTheme.swf. I don't mind catching the exception on load time but catching exceptions doesn't freakin work! So frustrating... How does one catch this exception? I have spent hours on this...even looking into how URLLoader handles exceptions and catching exceptions on that does not work for me either - I get the default Flex error dialog. I tried catching IOError, Error, etc HELP!!?? Here is what I am doing, but the catch statement never happens: try { StyleManager.loadStyleDeclarations(MyTheme.swf); } catch (e:Error) { Alert.show(Error); }
Re: [flexcoders] e4x question
You don't need to give the namespace variable the same as the prefix that ActionScript gives it when you toString() it. Internally, it doesn't use a name and just generates one when you convert the XML to a string. You can give it something more descriptive like: namespace w3xml = http://www.w3.org/XML/1998/namespace;; trace(+xml.status.presence.(@w3xml::lang=='en')); // Away Peter On 9/26/07, shaun [EMAIL PROTECTED] wrote: Howdy, Seth Caldwell wrote: Oh my god Toby, I just spent an hour because I was determined to learn about namespaces, and found a solution for you. =) [snip] if(event.result.RDF.*::Status.*::presence.(@*::lang==en)==Offline) status = Online; Nice one Seth. Here is another solution that uses the namespaces. Note: the xml:lang is changed to the aaa namespace(so i used that in the e4x) but I'm not sure why that happens(i noticed it when i traced the xml). //Create the default namespace. var ns:Namespace = new Namespace(http://www.skype.com/go/skypeweb;); //Create the aaa namespace that is used instead of xml:lang. var aaa:Namespace = new Namespace(http://www.w3.org/XML/1998/namespace;); function creationComplete():void{ var xml:XML = //assume it exists.. doIt(xml); } private function doIt(xml:XML):void{ //Set the namespace! default xml namespace = ns; trace(+xml.status.presence.(@aaa::lang=='en')); // Away } cheers, - shaun
RE: [flexcoders] Very strange runtime behavior - if logic doesn't work?????
This might be a compiler optimization issue. Try putting something in the if statement that actually matters instead of just a variable declaration that is never used. Like a global variable, for example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ [Bindable] var g:Number = 0; public function testit(myBool:Boolean):void { if(myBool) { g++; } } ]] /mx:Script mx:Button x=273 y=345 label={g} click=testit(false)/ /mx:Application It stays 0 when I click the button. How are you calling your crazy function? Seth _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dbronk Sent: Wednesday, September 26, 2007 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Very strange runtime behavior - if logic doesn't work? Very strange... I had an apparent bug in my code and simply could not find it so I created a very basic function to help test. Here is the code: public function crazy(myBool:Boolean) : void { if ( myBool ) { var s:String; } } Yes, it does nothing. I place a break point on the var s:String; line to test the logic of the if statement. When I execute, it does not matter if I send in a true or a false to this method, it ALWAYS evaluates the expression to true, even though I can see in the debugger myBool is false. I tried: if ( myBool == true ) To see if that had any luck. It did not. After scratching my head a bit I tried: public function crazy(myBool:Boolean) : void { if ( myBool ) { var s:String; } else { var ss:String; } } Viola!!! Adding the else and the logic now works fine. Is it a requirement that I must have an else? If so, why? Thanks, Dale
Re: [flexcoders] Manipulating tree label programmatically
I'm sorry, I misinterpreted the requirements. The labels should display with # or bold if they meet a particular condition when the tree is being populated, not when the item is clicked. Alex, I'm not using TreeItemRenderer, just the tree control. On 9/26/07, Alex Harui [EMAIL PROTECTED] wrote: You can subclass TreeItemRenderer and do those things in updateDisplayList -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *nhid *Sent:* Wednesday, September 26, 2007 7:48 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Manipulating tree label programmatically Hi, I am trying to change the label of a tree item for when the item is selected. branch1 child1A branch2 child2A child2Aa child2Ab First problem is I need to add a character, lets say #, to the label, so when I click on child1A, it should now display #child1A. Second problem is changing the style of the label, bolding it, to the label, so when I click on branch2, it should now display *branch2*. Any idea is greatly appreciated.
[flexcoders] Re: How to verify a URL before loading it OR how to catch IOException
Yup. That worked! Thanks a lot. --- In flexcoders@yahoogroups.com, Sandeep Malik [EMAIL PROTECTED] wrote: Hi, The reason this approach will not work is that the error you are getting is an asynchronous error, i.e. something that happens in a different code path (when you response return from server). 'try- catch' can only protected in the current execution stack. A simple look up at the StyleManager API reveals that loadStyleDeclarations() returns an IEventDispatcher! All you need is : try { var ed : IEventDispatcher = StyleManager.loadStyleDeclarations (MyTheme.swf); ed.addEventListener(StyleEvent.ERROR,myErrorHandler); } Regards, Sandeep --- In flexcoders@yahoogroups.com, tjcox1969 tjc1969@ wrote: I have a compiled theme SWF that I want to load at runtime. The problem is that if the theme.swf does not exist, I get Flash/Flex's ugly default error dialog at runtime saying: Error: Unable to load style(Error #2035: URL Not Found. URL: MyTheme.swf): MyTheme.swf. I don't mind catching the exception on load time but catching exceptions doesn't freakin work! So frustrating... How does one catch this exception? I have spent hours on this...even looking into how URLLoader handles exceptions and catching exceptions on that does not work for me either - I get the default Flex error dialog. I tried catching IOError, Error, etc HELP!!?? Here is what I am doing, but the catch statement never happens: try { StyleManager.loadStyleDeclarations(MyTheme.swf); } catch (e:Error) { Alert.show(Error); }
[flexcoders] Re: Flex and Server-Side Java classes
If you're just interested in making remote object calls, I guess OpenAMF is a very viable option. --- In flexcoders@yahoogroups.com, Anas Mughal [EMAIL PROTECTED] wrote: Check out WebORB. There are also some open source alternatives: Granite Red5 Flourine (.NET) PHPAMF (PHP) -- Anas Mughal --- In flexcoders@yahoogroups.com, Mark Doberenz dobieag01@ wrote: All, I've been a part of this list for a long time and I'm a pretty decent Flex programmer. However, I'm not too familiar with the server-side aspect of things. I wanted to post a server-side noob question for you experts out there. If I have a couple existing applications, one that runs in JBoss, one that's .NET with a SOAP API, and I want to set up a broker system using java and JBoss, is it possible to have Flex make Remote Object calls to the broker system if I DON'T use LCDS? In other words, do I need LCDS to call a server-side Java class? Please no flames regarding this question. If I've said something incorrectly, please let me know so I can learn more about this stuff. I hate that I don't even know the questions to ask. :( Thanks, Mark
[flexcoders] combobox question
Is there a way to remove the scrolling on a drop down from a combo box.. so instead of scrolling it displays all the elements in a long list? Thanks Dylan
RE: [flexcoders] Hyperlink in Flex 2...
Check out the label's available styles: http://livedocs.adobe.com/flex/201/langref/mx/controls/Label.html You'll want to use color and textDecoration. hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Sanderson Sent: Tuesday, September 25, 2007 7:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hyperlink in Flex 2... Is there a way to make a label look like a hyperlink. It may trigger a view state or send and e-mail, whatever but I want to make it look and function like a hyperlink (underline and different color). Daniel Sanderson
[flexcoders] Re: combobox question
nevermind rowCount is what I was looking for --- In flexcoders@yahoogroups.com, djdyland [EMAIL PROTECTED] wrote: Is there a way to remove the scrolling on a drop down from a combo box.. so instead of scrolling it displays all the elements in a long list? Thanks Dylan
[flexcoders] Bug in Proxy
There seems to be a bug in flash.utils.Proxy. Here's some sample code: var mp:MyProxy = new MyProxy(); mp.myVar = 'something'; // calls flash_proxy setProperty as expected mp['myVar'] = 'something'; // calls flash_proxy setProperty as expected mp.go(); // calls flash_proxy callProperty as expected mp['go'](); // calls flash_proxy getProperty - NOT expected Why is getProperty called where the [] operator is used instead of the . operator in the case where a function is being called, but not when setting a property? And in that case you MUST return a function or a runtime error will be thrown. This is unexpected behaviour, as far as I can see. Another example: mp.obj.go(); mp['obj']['go'](); // getProperty is called twice, callProperty is NOT called at all The issue is that I am dealing with a dynamic API, so I don't always know that 'obj' or 'go' is a property vs. a method. But, because the getProperty is called when a callProperty should be called I am passing an instance of my Proxy class and a runtime error is thrown. -- Derek Vadneau
Re: [flexcoders] Bug in Proxy
i confirm, i logged this on the open bug list and sent them a code sample. my temp hack (and this is because i do not need a getter) is this: override flash_proxy function getProperty(name:*):* { var p:* = function():* { callProperty(name,arguments); } return p; } On 9/26/07, Derek Vadneau [EMAIL PROTECTED] wrote: There seems to be a bug in flash.utils.Proxy. Here's some sample code: var mp:MyProxy = new MyProxy(); mp.myVar = 'something'; // calls flash_proxy setProperty as expected mp['myVar'] = 'something'; // calls flash_proxy setProperty as expected mp.go(); // calls flash_proxy callProperty as expected mp['go'](); // calls flash_proxy getProperty - NOT expected Why is getProperty called where the [] operator is used instead of the . operator in the case where a function is being called, but not when setting a property? And in that case you MUST return a function or a runtime error will be thrown. This is unexpected behaviour, as far as I can see. Another example: mp.obj.go(); mp['obj']['go'](); // getProperty is called twice, callProperty is NOT called at all The issue is that I am dealing with a dynamic API, so I don't always know that 'obj' or 'go' is a property vs. a method. But, because the getProperty is called when a callProperty should be called I am passing an instance of my Proxy class and a runtime error is thrown. -- Derek Vadneau -- j:pn \\no comment
[flexcoders] Re: Trouble skinning ComboBox that is shorter than default one...
Is there a way, maybe, to adjust the postiion of TextInput inside the ComboBox, but not the height of it? Thanks! --- In flexcoders@yahoogroups.com, williamkusumo [EMAIL PROTECTED] wrote: Calling all skinners! I am skinning a ComboBox using some vector images in Flash and the ComboBox is shorter in height than the default ComboBox. I notice that I have to explicitly set the height of the skinned ComboBox, otherwise it'll stretch the skin to its default height. SO, that's fine...annoying that's all. The problem is, after I set the height, the text on the ComboBox becomes cut-off. Any idea how I might resolve this issue? Thanks! Appreciate the help!
Re: [flexcoders] Re: Flash player 9 standalone download
Here ya go: http://www.adobe.com/support/flashplayer/downloads.html#fp9 On 9/24/07, helix206 [EMAIL PROTECTED] wrote: Thanks but i need the latest version 9.47 standalone. Any links on Adobe website? I think Adobe should make this simpler. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Bart Wttewaall [EMAIL PROTECTED] wrote: After installing Flex 2, you can find the player in the install folder: C:\Program Files\Adobe\Flex Builder 2\Player\debug\Install Flash Player 9.exe 2007/9/24, helix206 [EMAIL PROTECTED]: Can anyone please tell me where can i download the FP9 standalone player and active X so that i can put them on the CD for my clients? I cant find them anyware on adobe. thansk alot. -- Derek Vadneau
[flexcoders] Passing Values to popup components and then passing back
Hi, I am working on an exisiting application and trying to pass value to opup components. I don't know if I am not doing it right but the values are not being passed and then calling the correct HHTP call for the data. Can anyone point me to the right direction besides the Adobe live docs, which really doenst help much. The page that calls the popup public function changeHandler():void { var adminPopUp:componentDetail = componentDetail(PopUpManager.createPopUp (this,Pages.Components.componentDetail,true)); if(viewcomponentlisting.selectedItem){ componentDetail(adminPopUp).AssetID = viewcomponentlisting.selectedItem.AssetID; componentDetail (adminPopUp).LifeCycleID = viewcomponentlisting.selectedItem.LifeCycleID; componentDetail(adminPopUp).title = viewcomponentlisting.selectedItem.Description; PopUpManager.centerPopUp(adminPopUp); } else { var alert:Alert = Alert.show ([EMAIL PROTECTED],AssetID,Alert.OK | Alert.CANCEL,this); return; } } And then the component that is supposed to recieve the values, I set them to Bindable variables [Bindable] public var AssetID:String; [Bindable] public var LifeCycleID:String; And then I am trying to pass those variables to the HTTP request. mx:HTTPService id=getAssetLifeCycleComponentXML requestTimeout=30 url=someurl.com result=assignSelectedItemComponent(); showBusyCursor=true resultFormat=e4x mx:request AssetIDAssetID/AssetID LifeCycleIDLifeCycleID/LifeCycleID /mx:request /mx:HTTPService mx:XMLListCollection id=assetLifeCycleComponentColl source={getAssetLifeCycleComponentXML.lastResult.assetlifecyclecompon entinfo} /
[flexcoders] Extending AreaSeries
Hi! I would like to extend AreaSeries in such a way that it would take its vertical axis from data and its horizontal axis from its parent's width (which is the Cartesian chart). How can i override its updateDisplayList? or any ideas? Thanks!!!