[flexcoders] Re: VERY interesting title button behaviour! (??)
What are unnneded regions? Thanks. ps. my pngs are EXACTLY 16x16 --- In flexcoders@yahoogroups.com, Janis Radins [EMAIL PROTECTED] wrote: Probably your button png has some unnneded regions filled with pixels. Check it with some image editor
[flexcoders] Re: Line inbetween comboItems
Hi thanks... :) But I am using this combo in a dataGrid headerRenderer and all the items values are unique from the corresponding column. When I replace the combo code with PopUP Menu It doesnt load the menu when i click on the arrow. I dont know y its behaving like dis Pls help me... Thanks in Advance... Sanjay --- In flexcoders@yahoogroups.com, Trevor.Peace [EMAIL PROTECTED] wrote: No custom renderer necessary... Just swap your ComboBox for a MenuBar, and bind it to an array like this one: [Bindable] public var compList : Array = [{label: separating menu options, children: [ {label: ya gotta, type: normal, value: 1}, {label: keep em, type: normal, value: 2}, {type: separator}, {label: separated, type: normal, value: 3} ]}, ]; Peace out... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, March 23, 2007 10:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Line inbetween comboItems Maybe some sort of custom itemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, March 23, 2007 2:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Line inbetween comboItems Hi All, I have a combo box in my application and there a lots of items all are related to 4-5 categories.. Wht I wanted to do here I want a seperator sort of line once a category Items are finished I have tried it but didnt get success. Pls suggest, How can i do the same? Thanks in Advance, Sanjay Sharma
[flexcoders] how can i cache the data?
hi all, i am using httpservice to fetch the data from server. how can i cache that data ? should i cache it on client or server? if i am caching data on client than how much is it unsecure?
[flexcoders] Re: Line inbetween comboItems
Hi, The menu is coming if I run the MXML directly in browser... If I run the see the SWF in my JSP page it doesnt show the menu when I click on the popup button... What could be the problm pls suggest me to make it correct... Thanks in Advace Sanjay --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Hi thanks... :) But I am using this combo in a dataGrid headerRenderer and all the items values are unique from the corresponding column. When I replace the combo code with PopUP Menu It doesnt load the menu when i click on the arrow. I dont know y its behaving like dis Pls help me... Thanks in Advance... Sanjay --- In flexcoders@yahoogroups.com, Trevor.Peace Trevor.Peace@ wrote: No custom renderer necessary... Just swap your ComboBox for a MenuBar, and bind it to an array like this one: [Bindable] public var compList : Array = [{label: separating menu options, children: [ {label: ya gotta, type: normal, value: 1}, {label: keep em, type: normal, value: 2}, {type: separator}, {label: separated, type: normal, value: 3} ]}, ]; Peace out... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, March 23, 2007 10:59 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Line inbetween comboItems Maybe some sort of custom itemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, March 23, 2007 2:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Line inbetween comboItems Hi All, I have a combo box in my application and there a lots of items all are related to 4-5 categories.. Wht I wanted to do here I want a seperator sort of line once a category Items are finished I have tried it but didnt get success. Pls suggest, How can i do the same? Thanks in Advance, Sanjay Sharma
[flexcoders] Re: Module issue
Hi, i'm triyng to understand what you mean...i'm developing the client side of an application, using components of varius types. I don't know why they can't run in my code... --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I'm starting to think you are trying to use flex components which are built in actionscript and run only on the client in your server code. If that's true, then sorry, you can't run actionscript swc code on a server. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fabio_sebastiano Sent: Friday, March 23, 2007 2:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module issue Hi, i'm going forward with this problem...today i downloaded flexLib components and i've tried to implements them in my webapp. My editor recognize them and suggest me all the properties...but when i run the app, i've got the same error as with moduleLoader. If i use the lib within another project...it works fine Help me --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , fabio_sebastiano sebastiano.fabio@ wrote: Alex, thank you once again. I know the swc is a sort of zip file, i've opened it and i've read the catalog.xml. Modules and moduleLoader tag were there. I've changed the order of libraries, putting framework.swc at first position, before fds swc. I've also put the source attachement in the right way. Everytime the same problem! Are you sure that the moduleloader component is compatible with project that are not recognizes as flex project by FlexBuilder? I've created this project as fds project, and eclipse read it as a j2ee project. I can't explain the reason that allow me to load modules within a classic flex project and don't allow me to do the same thing with fds or j2ee project. Thank you very very much Fabio --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: The framework.swc is really a zip file. In it is a catalog.xml that lists the classes known to it. Make sure ModuleLoader is in there. It might be an order problem too. Make sure the framework.swc is going to be found before the FDS swcs. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fabio_sebastiano Sent: Thursday, March 22, 2007 1:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Module issue Hi, thanks for the reply. I checked the lib-path and i found that it's the right one, the one that flexBuilder automatically put when i create a project. I've also tried to change the path and point the 2.0.1 one, recompile the application and deploy it to the server...but it still give the same error. I really don't know what to do, and the others flex projects still works...this thing is making me loose a lot of time!!! Thanks, Fabio --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Check your lib-path to make sure the framework.swc is the right one. If you end up with a 2.0 instead of 2.0.1 it won't know about moduleloader. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fabio_sebastiano Sent: Wednesday, March 21, 2007 7:50 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Module issue Hi everybody, i'm facing a real funny problem with modules and moduleLoader, i hope it's not my fault anyway... If i create a normal flex project with fBuilder, i'm able to use modules in a lot of different ways (as mxml, as as in a function etc..)... but if i try to use them in my fds application (created with fds eclipse plugin) i can't use modules. The compile-time error message is always the same: Could not resolve mx:ModuleLoader to a component implementation I tried a lot of solutions, paying attention to import all the classes etc...but nothing change. I will appreciate everykind of help. TIA Fabio
Re: [flexcoders] Re: Caching problem
On Friday 23 Mar 2007, slangeberg wrote: Hmm, i've had this experience on both Apache IIS. I'm not talking about a server cahce, I believe this is browser related. Upload SWF to server, and do not see change in browser till cache is cleared. No one else experiences this? We don't, no. Maybe your web server is sending funny headers, or your web browser has odd settings. -- Tom Chiverton Helping to augmentatively harness synergistic systems 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: Data Binding Issue
On Friday 23 Mar 2007, madhukiranm wrote: mx:Tile id=chkTile mx:Repeater id=chkRepeater dataProvider={dataItems} mx:CheckBox id=chkCheckBox selected=selectedItems.contains(chkRepeater.currentItem) Not selected={ selectedItems.contains(chkRepeater.currentItem) } ? -- Tom Chiverton Helping to advantageously seize frictionless 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/
[flexcoders] Linked resources in Flex Compiler Flex Server
Hello All, Is there ability to use Eclipse linked resources like ${FRAMEWORKS}, ${MY_APP} or their equivalent in Flex Compiler and Flex Server dialogs. We are interested in: 1) Project | Properties | Flex Compiler | Additional compiler arguments: -services ${MY_APP}\WEB-INF\flex\services-config.xml -locale en_US 2) Project | Properties | Flex Server | Root folder: ${MY_APP} -- Thanks, Vadim.
[flexcoders] Error 2025 with images
Hi there This question was previously asked on Flexcoders and not addressed: http://tech.groups.yahoo.com/group/flexcoders/message/64576 I have dug futher into the problem know what may be causing it. Here is a description of the problem: I load html text into a textarea. I then edit the text try to set a new htmlText value to the textarea, which results in the following exception: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.text::TextField/set htmlText() This only happens if my htmlText contains an 'img' tag. What I think is happening is that the player is struggling to delete the old image object that was created thought the 'img' tag, possibly because it isnt an explicit child of the textarea. The only way that I have found to get around it is by dynamically creating deleting a textarea: http://www.actionscript.org/forums/showthread.php3?t=85011 This solution is not ideal since my textarea is quite intricately defined in my MXML markup. Does anyone know of a better cleaner solution? Cheers Tracy
[flexcoders] dragProxy as image dosen't show image
Hi I was following the last example on http://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/ I'm having a problem when I replace embedded images with dynamic URLs. this is the part of the code that I'm having problem with: // Create a copy of the coin image to use as a drag proxy. var dragProxy:Image = new Image(); dragProxy.source = event.currentTarget.source; if the source is embedded like in the example ([Embed(assets/5c.png)]) it works fine, but when replaced with a dynamic image, I can't see the proxy image been dragged. Has anyone else found this problem? any solution? by Paolo
[flexcoders] Re: Are Events OK in the MVC (S) pattern
Brett, You can read about this in more detail on any website which discusses the pattern but I will try and simplify it here for you. I highly recommend also trying out Cairngorm (A Flex MVC framework) even if only to better understand the concepts. If your view is firing events, the events are being passed to the controller which then does the work of calling a function or command to update the model. So for example: User presses a Button on the View View sends an event to the Controller Controller decides what to do with the event it has been passed Once decided, the controller (or associated commands( updates the model The view listens for events on the model and then reacts to the change For a Superb example of MVC and how it works, check out cairngormdocs.org and look at the Cairngorm Diagram Explorer. It will demystify most of the process for you. -Kenny
RE: [flexcoders] Re: Component Required
Hard luck didn't got till now Thanks, Kumar _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Saturday, March 24, 2007 6:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Component Required Did you find one? I'd be interested in one too... --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, Kumar [EMAIL PROTECTED] wrote: Hi All, I want some example for stock ticker or component for the same if some one has already created that or have some API through which I can implement stock ticker in flex. For refrence (yahoo stock ticker). Thanks Kumar
[flexcoders] Controlling item spacing in a vbox
I have a group of checkboxes that I'd like to put in a vbox. However, I need the spacing between the items in the box to be dramatically less than the standarding spacing because we have some real estate issues. I currently use absolute positioning on the checkboxes, and have them such that there is only about 1 px of space between each one. When I put them inside a vbox, they are automatically spaced in a way that I could only describe as double spacing... ie, there's room for another checkbox between each. I've tried setting the paddingTop and paddingBottom on the checkboxes and the vbox itself to no avail. Any suggestions? Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
[flexcoders] Checkbox Select List Component
Someone blogged about a custom component they'd built that was like a list component, but rendered the items as checkboxes... however I can't find it anywhere. Our users prefer the visual of the checkbox in a multi-select component, plus not having to SHIFT-click or CTRL-click makes it easier for them to use. Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
Re: [flexcoders] Repeater Refresh
Isn't an ArrayCollection essentially equivalent to a Query? An array of objects... Adobe and Macromedia are the same, CF and Flex sleep together, why don't they just call it a day? - Original Message From: Douglas Knudsen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, March 24, 2007 6:48:59 PM Subject: Re: [flexcoders] Repeater Refresh ArrayCollection is the path to enlightenment, yes, but a metaphysical nudge along this path is binadability [Bindable] public var myArrayCollection = new ArrayCollection( myArray); DK On 3/24/07, Jeffry Houser [EMAIL PROTECTED] com wrote: I've done this with an ArrayCollections, but never with an Array. The code would be something like this: mx:Script ![CDATA[ public var myArray:Array = ['test1','test2','test3']; public var myArrayCollection = new ArrayCollection( myArray); public function addItem():void{ myArrayCollection. addItem('test4'); } ]] /mx:Script mx:VBox mx:Repeater id=rp dataProvider={myArrayCollection} mx:TextInput id=myRepeat / /mx:Repeater mx:Button label=click me click=addItem(); / /mx:VBox A few caveats... a) I didn't test this code b) In my situation, I wasn't adding from the same component that was displaying things, so the 'add' and 'display were never shown at the same time. There could have been other code that made the refresh work, but I don't remember anything explicit. c) When accessing a repeater element you use currentIndex when it is repeating, but repeaterIndex after the fact. I haven't found a simple way to switch between the two of them, but my solution was something like this: try{ return myArrayCollection. getItemAt( loop.currentInde x ); } catch (e:Error){ return myArrayCollection. getItemAt( loop.repeaterInd ex ); } I imagine there must be a better way At 05:35 PM 3/24/2007, you wrote: here is a little test to illustrate what I am trying to do (except it doesn't work.) I was hoping that updating the dataProvider would add another item to the repeater... mx:Script ![CDATA[ public var myArray:Array = ['test1','test2' ,'test3']; public function addItem():void{ myArray.push('test4'); } ]] /mx:Script mx:VBox mx:Repeater id=rp dataProvider={ myArray} mx:TextInput id=myRepeat / /mx:Repeater mx:Button label=click me click=addItem(); / /mx:VBox On Mar 24, 2007, at 5:16 PM, Kevin wrote: I have a repeater (adding TextInput fields) that is bound to an ArrayCollection on my model. I was hoping that essentially I could add a row by just pushing a value into my ArrayCollection on the model. However, this isn't working. I assume I need to also refresh the repeater, but can't seem to figure out the best way to do that. Thanks, Kevin -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot- com-it.com My Podcast: http://www.theflexs how.com My Blog: http://www.jeffryho user.com Connecticut Macromedia User Group: http://www.ctmug. com -- Douglas Knudsen http://www.cubiclem an.com this is my signature, like it? !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{
Re: [flexcoders] ActiveMQ with JBoss and Flex Data Service
Make sure you have the ActiveMQ jar file in your WEB-INF/lib directory. Also, my destination XML looks significantly different: destination id=queue1 adapter ref=jms / properties jms destination-typeQueue/destination-type message-typejavax.jms.TextMessage/message-type connection-factoryConnectionFactory/connection-factory destination-jndi-namedynamicQueues/queue1/destination-jndi-name delivery-modeNON_PERSISTENT/delivery-mode message-priorityDEFAULT_PRIORITY/message-priority acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode transacted-sessionsfalse/transacted-sessions initial-context-environment property nameContext.INITIAL_CONTEXT_FACTORY/name valueorg.apache.activemq.jndi.ActiveMQInitialContextFactory/value /property property nameContext.PROVIDER_URL/name valuetcp://192.168.2.187:61616/value /property /initial-context-environment /jms /properties channels channel ref=my-rtmp / /channels /destination Most notably, I'm not sure you need the java: bit in your destination-jndi-name property, and you might consider adding the initial-context-environment section as I have above. Best of luck! Brian On 23 Mar 2007 05:57:18 -0700, elmiguelestaaqui [EMAIL PROTECTED] wrote: Hi, I'm trying deploy activemq in jboss. All it's allright, I launch a java app that send messages to topic destination, but when I want to connect from flex consumer to that destination, no messages are received. I have follow all steps in the activemq with jboss integration tutorial: http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jboss.html In the messaging-config.xml file of flex I have written: destination id=chat-jms properties server durablefalse/durable durable-store-managerflex.messaging.durability.FileStoreManager/durable-store-manager /server jms message-typejavax.jms.ObjectMessage/message-type connection-factoryjava:comp/env/JmsConnectionFactory/connection-factory destination-jndi-namejava:activemq/topic/inbound/destination-jndi-name destination-nameflexChat/destination-name delivery-modeNON_PERSISTENT/delivery-mode message-priorityDEFAULT_PRIORITY/message-priority acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode transacted-sessionsfalse/transacted-sessions /jms /properties channels channel ref=my-rtmp/ /channels adapter ref=jms/ /destination In the java app I connect to activemq/topic/inbound, and I send messages. In the flex app I create a consumer, with destination chat-jms, but I don't receive messages :( Any suggestion? Thanks! -- Brian Dunphy
Re: [flexcoders] Flex coldfusion simple question
Hi Rich, Thanks for sharing this code. I will be looking into this tomorrow. One question: Do I need to change anything in the file: Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/flex services-config.xml file? Thanks, John - Original Message From: Rich Tretola [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 22, 2007 7:00:03 AM Subject: Re: [flexcoders] Flex coldfusion simple question Here is a sample using ColdFusion that I just gave at our Indy user group. http://blog. everythingflex. com/2007/ 03/21/indyflex- photobrowser- code/ On 22 Mar 2007 09:47:41 -0700, cardinalflexjeremy [EMAIL PROTECTED] net wrote: Simple question here for the group. If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? Please let me know if a company would require FDS in order to use coldfusion with flex? Thanks. -- Rich Tretola mx:EverythingFlex/ http://www.Everythi ngFlex.com !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091
Re: [flexcoders] Repeater Refresh
thanks. I think the ArrayCollection is the key. Using addItem instead of push makes all the difference. It now works. - Kevin On Mar 24, 2007, at 6:04 PM, Jeffry Houser wrote: I've done this with an ArrayCollections, but never with an Array. The code would be something like this: mx:Script ![CDATA[ public var myArray:Array = ['test1','test2','test3']; public var myArrayCollection = new ArrayCollection(myArray); public function addItem():void{ myArrayCollection.addItem('test4'); } ]] /mx:Script mx:VBox mx:Repeater id=rp dataProvider={myArrayCollection} mx:TextInput id=myRepeat / /mx:Repeater mx:Button label=click me click=addItem(); / /mx:VBox A few caveats... a) I didn't test this code b) In my situation, I wasn't adding from the same component that was displaying things, so the 'add' and 'display were never shown at the same time. There could have been other code that made the refresh work, but I don't remember anything explicit. c) When accessing a repeater element you use currentIndex when it is repeating, but repeaterIndex after the fact. I haven't found a simple way to switch between the two of them, but my solution was something like this: try{ return myArrayCollection.getItemAt(loop.currentIndex ); } catch (e:Error){ return myArrayCollection.getItemAt(loop.repeaterIndex ); } I imagine there must be a better way At 05:35 PM 3/24/2007, you wrote: here is a little test to illustrate what I am trying to do (except it doesn't work.) I was hoping that updating the dataProvider would add another item to the repeater... mx:Script ![CDATA[ public var myArray:Array = ['test1','test2' ,'test3']; public function addItem():void{ myArray.push('test4'); } ]] /mx:Script mx:VBox mx:Repeater id=rp dataProvider={ myArray} mx:TextInput id=myRepeat / /mx:Repeater mx:Button label=click me click=addItem(); / /mx:VBox On Mar 24, 2007, at 5:16 PM, Kevin wrote: I have a repeater (adding TextInput fields) that is bound to an ArrayCollection on my model. I was hoping that essentially I could add a row by just pushing a value into my ArrayCollection on the model. However, this isn't working. I assume I need to also refresh the repeater, but can't seem to figure out the best way to do that. Thanks, Kevin -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com
Re: [flexcoders] Controlling item spacing in a vbox
verticalGap? R. On 26 Mar 2007 05:32:19 -0700, Rick Root [EMAIL PROTECTED] wrote: I have a group of checkboxes that I'd like to put in a vbox. However, I need the spacing between the items in the box to be dramatically less than the standarding spacing because we have some real estate issues. I currently use absolute positioning on the checkboxes, and have them such that there is only about 1 px of space between each one. When I put them inside a vbox, they are automatically spaced in a way that I could only describe as double spacing... ie, there's room for another checkbox between each. I've tried setting the paddingTop and paddingBottom on the checkboxes and the vbox itself to no avail. Any suggestions? Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
Re: [flexcoders] Re: Set as Default Application: for an AS Class
Anthony, This is kind of a workaround-ish way of doing it, but it works ;) 1. Create a new Flex Project [ASTest] 2. Create a new AS File [ASTest.as] and make it extend mx.core.Application 3. Close your newly created Flex Project 4. Open the FLEX_WORKSPACE/FLEX_PROJECT/.actionScriptProperties in some text editor 5. Change the actionScriptProperties.mainApplicationPath attribute to point at your AS application file [actionScriptProperties mainApplicationPath= ASTest.as] 6. Change the application.path to point at your AS application file [application path=ASTest.as] 7. Save and close the file .actionScriptProperties file 8. Reopen your new Flex project The AS application file should now be set as your default Application file and the application should compile and run just fine Cheers, Max -- Mobile: +61 424 77 57 67 Home: +61 2 9968 3924 Skype: maxnyman MSN Messenger: [EMAIL PROTECTED] On 25 Mar 2007 23:21:25 -0700, Anthony Lee [EMAIL PROTECTED] wrote: Perhaps I should rephrase this question as: How can I compile a pure AS application from Flex Builder 2.0.1?
[flexcoders] Registration point woes
I'm developing my first Flex component, and I'm having some trouble with registration points and images. I'm loading data from flickr, and have a custom class that extends mx:Image. I'm trying to create a rollOver effect that will increase the size of the clip from its CENTER, but right now the registration point is the top left... I've dealt with this issues in Flash, but I can't seem to figure out a way to do it in Flex. I tried changing my custom component to be a canvas, and adjust the position of the image by width/2 and height/2 but then it only shows a quarter of the Image. Could someone help me out on how to get Images/components to scale or register from their actual center, not the top left? Thanks! -DC http://blog.dcholth.com aim: zotropix
[flexcoders] mx:ComboBox
Hello helpful list, I seem to be confusing myself. I'm using ColdFusion to get the data out of our database. Simple. I got a remote object getting the data. mx:RemoteObject id=remoteService destination=ColdFusion source=Cows3.cows showBusyCursor=true/ Now what I want to do is firstly get the data into it. I tried this by doing the following. mx:ComboBox id=ProcessorName dataProvider={remoteService.getProcessors.lastResult} /mx:ComboBox Now I know that it needs to be in an Array. When I dump the data into a grid. It works fine. i.e. mx:DataGrid dataProvider={remoteService.getProcessors.lastResult} /mx:DataGrid All the examples on Adobe's site is shitting me. Cause they are put in from an Array they manually make. Help. Again. Jeremy
[flexcoders] Flex Integration with Spring and Spring with Hibernate
Hi, I m connecting flex with spring. I want to connect hibernate with spring and then spring with flex, it is creating problem. When I am connecting flex with spring and spring with JDBC it is giving me right result but problem with hibernate. It is not loading data with hibernate. It gives me this type of error. [RPC Fault faultString=Unable to invoke a fill operation on destination 'mySpringHibernate' due to the following error: null. faultCode=Server.Processing faultDetail=null] at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent() at ::DataListRequestResponder/fault() at mx.rpc::AsyncRequest/fault() at ::NetConnectionMessageResponder/NetConnectionChannel.as$40:NetConnectionMessageResponder::statusHandler() at mx.messaging::MessageResponder/status() Can anybody can help me to rid out of this problem.
[flexcoders] Datagrid Help
Hai everybody, I am new to flex environment I am using flex 1.5 where i am trying topopulate a datagrid using remote object mechanism invking java object. I am getting the coloumn names using a remote object and records with another.i am sure of getting the DB values into Flex component as i have seen them using an alert. I am unable to view the records and column names at a time. Pl help me ASAP. i also give u the code for ur reference My mxml file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=initApp() backgroundColor=#FF backgroundImage=@Embed('bg1.png') height=716 width=1034 mx:Style source=styles.css / mx:Script ![CDATA[ var tablename:String; var tblList:Array; var tbl; var dlist:Array; [Bindable] var final:Array; var names:Array; var dg; var i:Number; function initApp() { retrieveFromSession(); sessionRetrieved(); } function retrieveFromSession() { servlet.session(get, cartInfo); } function logout1(cartInfo) { cartInfo.name= ; servlet.session(set,cartInfo,cartInfo); getUrl('select.mxml'); } function sessionRetrieved(cartInfo) { userid.text=cartInfo.name; //alert(userid.text); tblr.getrecs(userid.text); tsel.text=Table Selected: +userid.text; } function names1(event) { tblList=event.result; dg.dataProvider=tblList; //alert(length is +tblList); //dg.dataProvider=tblList; /*for(i=0;i=names.length;i++) { var st:String=names[i].toString; dg.columns[st]=tblList[i]; }*/ } function log() { data12.getdatas(userid.text); //dg.dataProvider=tblList; //dg.columnNames=names; //tblList=mx.utils.ArrayUtil.toArray(event.result); //var t=tblList.length; //alert(t); //dg.dataProvider=tblList; } function resultHandler(event) { names=mx.utils.ArrayUtil.toArray(event.result); this.destroyChild(dg); tblList=mx.utils.ArrayUtil.toArray(event.result); dg=cv.createChild(mx.controls.DataGrid,datagrid,{x:300,columnNames:names,y:249,width:620}); //dg.columnNames=names; //dg.dataProvider=tblList; } ]] /mx:Script mx:Canvas id=cv width=936 height=641 mx:Button x=687 y=569 label=Finish click=getUrl('view.mxml')/ mx:Button x=599 y=569 label=DELETE/ mx:Button x=506 y=568 label=UPDATE/ mx:Button x=433 y=568 label=ADD/ mx:Label id=userid x=86 y=345 visible=false/ mx:Label id=tsel x=373 y=195 width=226 height=21/ mx:FormHeading x=419 y=92 fontSize=20 label=DYNAMIC CHARTING COMPONENT width=407 height=33 backgroundColor=#FF/ mx:Button label=Get Records x=549 y=526 click=log() / mx:Link x=822 y=173 label=MainMenu width=78 height=22 click=getUrl('main.mxml') color=#FF textDecoration=none fontSize=12 / /mx:Canvas mx:RemoteObject id=data12 source=TableData result=names1(event) fault='alert(TableData class problem)' mx:method name=getDatas/mx:method /mx:RemoteObject mx:RemoteObject source=servlet id=servlet showBusyCursor=true result=sessionRetrieved(event.result) fault=mx.controls.Alert.show(event.fault.faultstring, 'Error')/ mx:RemoteObject id=tblr source=ColNames result=resultHandler(event) fault='alert(TableData class problem)' mx:method name=getrecs/mx:method /mx:RemoteObject /mx:Application my java classes for column names retrieval //package samples.explorer; import java.sql.*; import java.util.ArrayList; public class ColNames{ final static String jdbcURL = jdbc:odbc:chart; final static String jdbcDriver = sun.jdbc.odbc.JdbcOdbcDriver; public int valid=0; //Connect q=new Connect(); public ColNames() { } public ArrayList getrecs(String tableid) { ArrayList list = new ArrayList(); try { Class.forName(jdbcDriver); Connection con = DriverManager.getConnection(jdbcURL,,); // Connection Conn=q.establish_Connection(); Statement s = con.createStatement(); ResultSet rs= s.executeQuery(select * from +tableid); ResultSetMetaData rsmd = rs.getMetaData(); int columnCount = rsmd.getColumnCount(); for(int col = 1; col = columnCount; col++) { String name=rsmd.getColumnLabel(col); list.add(name); } s.close(); con.close(); } catch(Exception e) { //System.out.println(TechRP ramana+e); } return list; } public static void main(String args[]) { ColNames q=new ColNames(); ArrayList a = new ArrayList(); a=q.getrecs(Exam_Details); for (int i = 0; i a.size(); i++) { System.out.println((String)(a.get(i))); } } } my java Class for fetching the records //package samples.explorer; import java.sql.*; import java.util.ArrayList; public class TableData{ static String db=chart; final static String jdbcURL = jdbc:odbc:+db; final static String jdbcDriver = sun.jdbc.odbc.JdbcOdbcDriver; public int valid=0; Connection con =null; Statement s = null; public TableData() { } public ArrayList getdatas(String tableid) { ArrayList listy = new ArrayList(); ArrayList fullList = new
[flexcoders] mx:webservice how do i access
Hi, I have a webservice GetEmployeeDetails here is the SOAP response. so how do i access this using mx:webservice ? here is my sample code: mx:WebService id=WeatherService wsdl=http://localhost:4581/MyWebService/Service.asmx?WSDL; useProxy=false ActionScript: WeatherService.GetEmployeeDetails.send(); txtA.text = WeatherService.GetEmployeeDetails.lastResult.GetEmployeeDetailsResult.Person.Name; soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body GetEmployeeDetailsResponse xmlns=http://tempuri.org/; GetEmployeeDetailsResult EmpIdint/EmpId Namestring/Name /GetEmployeeDetailsResult /GetEmployeeDetailsResponse /soap:Body /soap:Envelope Thanks Raghavendra
[flexcoders] Looking for a Wizard custom component
Has anyone created a custom component that is a wizard? In other words, has anyone played around with making a Flex component that defines a wizard that, for example, supports conditional flow, has an index displayed in the left side of how many wizard steps there are, the right pane has the content, and the navigation buttons at the bottom. I'm looking for something that looks like JIDESoft's Swing wizard component. Any advice/help is much appreciated! I created a quick prototype that resembles the JIDESoft's wizard, but I am new to Flex and my prototype is not very good :^) thanx -Ted-
Re: [flexcoders] Hi Hello
Hi , Please go through them this may help you http://coenraets.org/blog/2007/01/flex-test-drive-server-for-java-developers-tomcat-based/ http://coenraets.org/download/fds-tomcat.zip With Regards Ajay K eshpaleti [EMAIL PROTECTED] wrote:can some body give me the detail structure of Flex and its integration with JAVA backend,where to keep the classes,mxmls compiling Flex application etc etc... regards, Eshwar Regards Ajay.k Destiny is not a matter of chance, it is a matter of choice, it is not a thing to be waited for, it is a thing to be achieved. - Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games.
[flexcoders] Setting properties on AS-created components
hi there, Long time AS developer, new Flex developer. Coming from a pure ActionScript background, I've been really banging my head against the Flex framework. I'm working on a Flex 2 project where I need to dynamically instantiate Flex components using ActionScript, and then lay them out manually. I finally got everything sorted out, but I'm wondering if there really isn't a better way to do this. Basically, I'm creating Flex components at runtime using new ___(). In particular, I came across a problem trying to modify a Button component that I created inside a Panel. Setting the x and y immediately was no problem, however the width property kept returning 0 . I tried explicitWidth, measuredWidth, every arcane width I could find in the docs, but always 0. Then I realized that the Button probably hadn't finished its layout processes yet. Okay, after some more hand-wrenching, I decided to add a listener to the Button for the FlexEvent.CREATION_COMPLETEevent, and set the props on that. Gods be praised, it worked. The width property finally had a value. But really, this seems very inelegant to me. Don't get me wrong, I love the AS3 event system (mostly), but having to create listener functions just to set visual properties of AS-created components...ugh. Is there a better way to accomplish this? Did I miss something? I think that Adobe needs to concentrate more documentation on using Flex from a non-MXML perspective. It is very frustrating trying to get up to speed with such a complicated framework, when most of the documentation uses MXML to teach concepts. thanks, -brett
Re: [flexcoders] dragProxy as image dosen't show image
Instead of loading the image for a second time you could just copy the raw bitmap data of the loaded image using something like this: http://www.flex2components.com/f2cblog/2006/05/18/flex2-dnd-bitmap-copy/ I follow this approach when creating drag proxies in order to get a copy of the item being dragged. Tim On 26 Mar 2007 03:59:26 -0700, Paolo Bernardini [EMAIL PROTECTED] wrote: Hi I was following the last example on http://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/ I'm having a problem when I replace embedded images with dynamic URLs. this is the part of the code that I'm having problem with: // Create a copy of the coin image to use as a drag proxy. var dragProxy:Image = new Image(); dragProxy.source = event.currentTarget.source; if the source is embedded like in the example ([Embed(assets/5c.png)]) it works fine, but when replaced with a dynamic image, I can't see the proxy image been dragged. Has anyone else found this problem? any solution? by Paolo -- Tim timwalling.com
RE: [flexcoders] Registration point woes
You could adapt this for use: http://www.darronschall.com/weblog/archives/54.cfm Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Holth Sent: Sunday, March 25, 2007 7:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Registration point woes I'm developing my first Flex component, and I'm having some trouble with registration points and images. I'm loading data from flickr, and have a custom class that extends mx:Image. I'm trying to create a rollOver effect that will increase the size of the clip from its CENTER, but right now the registration point is the top left... I've dealt with this issues in Flash, but I can't seem to figure out a way to do it in Flex. I tried changing my custom component to be a canvas, and adjust the position of the image by width/2 and height/2 but then it only shows a quarter of the Image. Could someone help me out on how to get Images/components to scale or register from their actual center, not the top left? Thanks! -DC http://blog.dcholth.com http://blog.dcholth.com aim: zotropix
[flexcoders] Group
Is anybody here?
Re: [flexcoders] mx:ComboBox
On Monday 26 Mar 2007, flexjeremy wrote: Now what I want to do is firstly get the data into it. I tried this by doing the following. mx:ComboBox id=ProcessorName dataProvider={remoteService.getProcessors.lastResult} /mx:ComboBox And what happens ? -- Tom Chiverton Helping to carefully scale integrated partnerships 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] Handling results from multiple RemoteObject operations
Hi all, I've been wanting to learn Flex since 1.5 and finally got the chance to really dive in this weekend. I'm putting together an application that gets information from a ColdFusion application and was wondering if I'm handling the results properly. I want to bind the data from one of the methods of my RemoteObject, but I want to massage the data first (add a property that doesn't exist on the server) so this is what I'm doing: My RemoteObject looks like this: mx:RemoteObject id=Jukebox destination=ColdFusion showBusyCursor=true source=model.service.JukeboxService / In my initApp() method, I've got this line: Jukebox.getFullList.addEventListener(ResultEvent.RESULT,handleResult); Which triggers this function: [Bindable] public var fullList:ArrayCollection = new ArrayCollection(); public function handleResult(e:ResultEvent):void { for (var i:Object in e.result) { e.result[i].inPlayList = +; fullList.addItem(e.result[i]); } } And then my DataGrid: mx:DataGrid id=fullListDG width=80% dataProvider={fullList} itemClick=setSelectedTrack(event) y=30 It seems to be working, though I'm not sure how strong that binding is; I seem to recall in the reams and reams of docs and examples I read this weekend that binding a variable like that won't update the DataGrid if the contents of the variable change? Thanks! - Ken -- Suppose you were an idiot. And suppose you were a member of congress. But I repeat myself. -- Mark Twain
[flexcoders] Senior Flex/Flash Developer
http://www.krop.com/jobs/b8c2d/ http://www.pierinc.com/ PIER, Inc. Boston, MA, USA Senior Flex/Flash Developer Description It has always been PIER's goal to think differently about what the web is capable of, and to push that agenda through cutting edge design and development. PIER is now looking to expand its team of professional developers in order to meet this challenge, and in doing so shift the way that people think about software. PIER is seeking an experienced Flash RIA developer who understands the new standard for application development. They must be designed as solidly as they are programmed. We are looking for someone with a passion for Flash development and a willingness to work in a highly specialized team of designers, developers, and project managers to build cutting edge products for PIER's worldwide clients. Responsibilities include the following: * Develop dynamic data-driven interactive applications * Work closely in an integrated team of Project Managers, Designers, Interface/CSS Developers, and client staff * Manage multiple projects with multiple deadlines efficiently and effectively * Communicate within a team to ensure projects hit budget and time deadlines * Further PIER's process and product lines * Push the envelope on projects in need of cutting edge technologies * Help PIER continue to forge ahead into the forefront of Ajax, Flash, Flex and Apollo application development Qualifications Skills: * 5 years of studio/corporate experience * Expertise in ActionScript 2.0 * Knowledge of ActionScript 3.0, Flex framework, and development processes * Knowledge of ColdFusion, XML, XHTML, JS, and Ajax a plus * Knowledge of database design and development a big plus About PIER Pier integrates business strategy, interactive design, and technology development services for changing companies worldwide. Our process consists of distilling our client's most complex challenges into a singular vision, and executing that vision with pioneering design and development solutions. Pier has helped clients like Microsoft, HP, Honeywell, and many others by increasing workplace efficiency, building flexible, web-based infrastructures, and dramatically improving customer experiences. With S.W.A.T. style development capabilities, Pier architects complex web-based systems, while hiding that complexity behind minimal and efficient interfaces.
Re: [flexcoders] Registration point woes
I've started adapting Schall's code, and am getting close (view source): http://criticalpile.com/lab/DynamicRegistration/DynRegMain.html However, I just noticed that my alignment seems to be off, if you enter arbitrary numbers, rather than using the arrows on the number steppers! Also, I'd like to design this to use some kind of proxy, so you can still utilize the flex framework effects such as Move and Rotate. Any ideas / improvements accepted, as I haven't had time to look at it lately! -Scott On 3/26/07, Merrill, Jason [EMAIL PROTECTED] wrote: You could adapt this for use: http://www.darronschall.com/weblog/archives/54.cfm Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Holth *Sent:* Sunday, March 25, 2007 7:29 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Registration point woes I'm developing my first Flex component, and I'm having some trouble with registration points and images. I'm loading data from flickr, and have a custom class that extends mx:Image. I'm trying to create a rollOver effect that will increase the size of the clip from its CENTER, but right now the registration point is the top left... I've dealt with this issues in Flash, but I can't seem to figure out a way to do it in Flex. I tried changing my custom component to be a canvas, and adjust the position of the image by width/2 and height/2 but then it only shows a quarter of the Image. Could someone help me out on how to get Images/components to scale or register from their actual center, not the top left? Thanks! -DC http://blog.dcholth.com aim: zotropix -- : : ) Scott
Re: [flexcoders] Error 2025 with images
I had problems in a project with img tags not refreshing properly. What I had to do was set text or htmlText to and then call validateNow() on the textArea (actually you want to call it on the UITextField within the textArea but I think this will be done by the textArea) and then set the htmlText to what you want. hope it works, - Dan Freiman On 26 Mar 2007 02:21:49 -0700, polestar11 [EMAIL PROTECTED] wrote: Hi there This question was previously asked on Flexcoders and not addressed: http://tech.groups.yahoo.com/group/flexcoders/message/64576 I have dug futher into the problem know what may be causing it. Here is a description of the problem: I load html text into a textarea. I then edit the text try to set a new htmlText value to the textarea, which results in the following exception: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.text::TextField/set htmlText() This only happens if my htmlText contains an 'img' tag. What I think is happening is that the player is struggling to delete the old image object that was created thought the 'img' tag, possibly because it isnt an explicit child of the textarea. The only way that I have found to get around it is by dynamically creating deleting a textarea: http://www.actionscript.org/forums/showthread.php3?t=85011 This solution is not ideal since my textarea is quite intricately defined in my MXML markup. Does anyone know of a better cleaner solution? Cheers Tracy
Re: [flexcoders] Re: Caching problem
You don't experience this with IE? This has followed me no matter where I've worked, what server I'm dealing with! What am I doing wrong here (other than using IE)? -Scott On 26 Mar 2007 01:59:50 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, slangeberg wrote: Hmm, i've had this experience on both Apache IIS. I'm not talking about a server cahce, I believe this is browser related. Upload SWF to server, and do not see change in browser till cache is cleared. No one else experiences this? We don't, no. Maybe your web server is sending funny headers, or your web browser has odd settings. -- Tom Chiverton Helping to augmentatively harness synergistic systems 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 -- : : ) Scott
Re: [flexcoders] Re: Caching problem
On Monday 26 Mar 2007, slangeberg wrote: You don't experience this with IE? Nope. AFAIK we've got all the default settings in Apache set. -- Tom Chiverton Helping to challengingly architect low-risk action-items 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] Contact
[EMAIL PROTECTED]
[flexcoders] Re: Caching problem
I used to have this issue, but I found it went away after I reset IE to check every time far a new file. It also made a big difference to make sure that the server was sending the correct caching headers. Check the HEAD on a request to determine if it is sending the correct expires header. I only do this for development. Production environments should be able to run without problems if there are browsers caching things. --- In flexcoders@yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: You don't experience this with IE? This has followed me no matter where I've worked, what server I'm dealing with! What am I doing wrong here (other than using IE)? -Scott On 26 Mar 2007 01:59:50 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, slangeberg wrote: Hmm, i've had this experience on both Apache IIS. I'm not talking about a server cahce, I believe this is browser related. Upload SWF to server, and do not see change in browser till cache is cleared. No one else experiences this? We don't, no. Maybe your web server is sending funny headers, or your web browser has odd settings. -- Tom Chiverton Helping to augmentatively harness synergistic systems 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 -- : : ) Scott
Re: [flexcoders] dragProxy as image dosen't show image
Thank you Tim, you solve my problem. On 26 Mar 2007 06:18:13 -0700, Tim Walling [EMAIL PROTECTED] wrote: Instead of loading the image for a second time you could just copy the raw bitmap data of the loaded image using something like this: http://www.flex2components.com/f2cblog/2006/05/18/flex2-dnd-bitmap-copy/ I follow this approach when creating drag proxies in order to get a copy of the item being dragged. Tim On 26 Mar 2007 03:59:26 -0700, Paolo Bernardini [EMAIL PROTECTED] wrote: Hi I was following the last example on http://www.adobe.com/devnet/flex/quickstart/adding_drag_and_drop/ I'm having a problem when I replace embedded images with dynamic URLs. this is the part of the code that I'm having problem with: // Create a copy of the coin image to use as a drag proxy. var dragProxy:Image = new Image(); dragProxy.source = event.currentTarget.source; if the source is embedded like in the example ([Embed(assets/5c.png)]) it works fine, but when replaced with a dynamic image, I can't see the proxy image been dragged. Has anyone else found this problem? any solution? by Paolo -- Tim timwalling.com
Re: [flexcoders] Re: Caching problem
went away after I reset IE to check every time far a new file Ah yes, that's right. I used to do that, but it doesn't gaurantee that my users have the same settings. Hence, my dilemma! Thanks, -Scott On 26 Mar 2007 07:15:48 -0700, Paul DeCoursey [EMAIL PROTECTED] wrote: I used to have this issue, but I found it went away after I reset IE to check every time far a new file. It also made a big difference to make sure that the server was sending the correct caching headers. Check the HEAD on a request to determine if it is sending the correct expires header. I only do this for development. Production environments should be able to run without problems if there are browsers caching things. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: You don't experience this with IE? This has followed me no matter where I've worked, what server I'm dealing with! What am I doing wrong here (other than using IE)? -Scott On 26 Mar 2007 01:59:50 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, slangeberg wrote: Hmm, i've had this experience on both Apache IIS. I'm not talking about a server cahce, I believe this is browser related. Upload SWF to server, and do not see change in browser till cache is cleared. No one else experiences this? We don't, no. Maybe your web server is sending funny headers, or your web browser has odd settings. -- Tom Chiverton Helping to augmentatively harness synergistic systems 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 -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Re: Caching problem
On Monday 26 Mar 2007, Paul DeCoursey wrote: environments should be able to run without problems if there are browsers caching things. *boggle* How would that work ? If a service changes it's interface, how is the old client meant to consume the new format ? -- Tom Chiverton Helping to centrally scale B2C 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/
[flexcoders] Re: Caching problem
We solved the problem by tacking a random number on the SWF name in the embed page (myswf.swf?38787383), this way the browser thinks the file has changed and it needs to refresh it. In this manner, the SWF will not be sticky. This option is also good for your end users as they may not have IE set to check each time for updates. - mr --- In flexcoders@yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: You don't experience this with IE? This has followed me no matter where I've worked, what server I'm dealing with! What am I doing wrong here (other than using IE)? -Scott On 26 Mar 2007 01:59:50 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, slangeberg wrote: Hmm, i've had this experience on both Apache IIS. I'm not talking about a server cahce, I believe this is browser related. Upload SWF to server, and do not see change in browser till cache is cleared. No one else experiences this? We don't, no. Maybe your web server is sending funny headers, or your web browser has odd settings. -- Tom Chiverton Helping to augmentatively harness synergistic systems 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 -- : : ) Scott
Re: [flexcoders] Re: Caching problem
Tom Chiverton wrote: On Monday 26 Mar 2007, Paul DeCoursey wrote: environments should be able to run without problems if there are browsers caching things. *boggle* How would that work ? If a service changes it's interface, how is the old client meant to consume the new format ? Several ways. 1) Fail gracefully 2) If a service changes and is incompatible with old clients then do not reuse the url. For example all of our front ends have version numbers in the url so we can quickly determine if the user is on an old version. Our services are the same way, except that for the most part they don't change. We spend a lot of time making sure it's what we need before. ... This is not a difficult problem, there are a lot of ways to get around cache servers and cached browser issues. -- 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] filterFunction issue with shared array collection in model / shared list
I have a shared arraycollection of value objects. Singeton, only one instance of this array collection. Dfferent views (in a tab navigator) are generated using this shared array collection but each view filters the data in a datagrid list with different criteria. So.. in each view i utilized the filterFunction to correctly filter the array collection and only display what i needed into my datagrid. That works great. However, when i set the filter function and refresh the arrayCollection all my other views (tab windows) change as well because they are all databound to the shared array collection... This does make sense... but not what i want. Maybe i need to put the filter on the datagrid for each view, not the array collection. Am i going about this wrong? I'm a newbie cairngorm and i believe this is an issue that others would run into.
Re: [flexcoders] Re: Caching problem
On Monday 26 Mar 2007, Paul J DeCoursey wrote: Several ways. 1) Fail gracefully Well, yes, I'd expect everyones apps already does. But you don't want all your users kicked out with 'remote server error' - that's no better than the alternative. ... This is not a difficult problem, there are a lot of ways to get around cache servers and cached browser issues. Indeed. When I was doing (D)HTML caching was the number one headache. -- Tom Chiverton Helping to conveniently architect frictionless e-business 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] assigning a class at runtime
IHi all, I am sure there was a thread about this the other day but can't seem to find it .. how can I dynamically assign a class at runtime?? eg var className:String = test' var newObject:Test= new Test() when test can be one of a hundred or so options? tks as always matt
Re: [flexcoders] assigning a class at runtime
On Monday 26 Mar 2007, Matt Wicks wrote: var className:String = test' var newObject:Test= new Test() newObject=flash.utils.getDefinitionByName(className); Note it needs a fully qualified classname, as got from flash.utils.getQualifiedClassName(someObject).replace('::','.') -- Tom Chiverton Helping to dramatically utilize edge-of-your-seat IPOs 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] assigning a class at runtime
excellent thanks Matt On 26 Mar 2007, at 16:20, Tom Chiverton wrote: On Monday 26 Mar 2007, Matt Wicks wrote: var className:String = test' var newObject:Test= new Test() newObject=flash.utils.getDefinitionByName(className); Note it needs a fully qualified classname, as got from flash.utils.getQualifiedClassName(someObject).replace('::','.') -- Tom Chiverton Helping to dramatically utilize edge-of-your-seat IPOs 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
[flexcoders] weird ArrayCollection issue
I have to arrayCollections that I am assigning the same data to. I am adding an item to one of the collections but that item is getting set to both collections, wth?? code is here: newTestGroup = event.result as ArrayCollection; groups = event.result as ArrayCollection; var arr:Object = {testGroupId:0,testGroupName:Show All,dsn_source:dsn}; groups.addItemAt(arr,0); any help wold be appreciated.. one last thing. if I alter the newTestGroup collection, the same thing happens to the groups collection. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] assigning a class at runtime
On Monday 26 Mar 2007, Matt Wicks wrote: excellent thanks No problem. Anyone know why the double colon is there, as it has to be replaced to make it work ? -- Tom Chiverton Helping to vitalistically streamline dot-com channels 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] Effects not playing when the trigger is defined on the component definition
Hello, By some reason, the following effect does not play: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; rollOverEffect=myEffect mx:Button label=Test/ mx:Move id=myEffect xBy=200/ /mx:Canvas But, if i change the code to: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:Button label=Test rollOverEffect=myEffect/ mx:Move id=myEffect xBy=200/ /mx:Canvas It works just fine. For my specific application purposes, it would be important if I could define the triggers like i did for the first example. I've tried it with different components and effects, and the problem is always there. Am i doing something wrong? How can i solve this? Thanks, JoĂƒÂ£o Saleiro
Re: [flexcoders] Effects not playing when the trigger is defined on the component definition
On Monday 26 Mar 2007, JoĂ£o wrote: rollOverEffect=myEffect Do you mean rollOverEffect={ myEffect } ? Assuming you have such an effect in the component you didn't include in the code snippit you posted. -- Tom Chiverton Helping to vitalistically conquer collaborative systems 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: mx:ComboBox
Jeremy, You will need to specify a labelField or labelFunction in order for the ComboBox to know what you want to display. Maury --- In flexcoders@yahoogroups.com, flexjeremy [EMAIL PROTECTED] wrote: Hello helpful list, I seem to be confusing myself. I'm using ColdFusion to get the data out of our database. Simple. I got a remote object getting the data. mx:RemoteObject id=remoteService destination=ColdFusion source=Cows3.cows showBusyCursor=true/ Now what I want to do is firstly get the data into it. I tried this by doing the following. mx:ComboBox id=ProcessorName dataProvider={remoteService.getProcessors.lastResult} /mx:ComboBox Now I know that it needs to be in an Array. When I dump the data into a grid. It works fine. i.e. mx:DataGrid dataProvider={remoteService.getProcessors.lastResult} /mx:DataGrid All the examples on Adobe's site is shitting me. Cause they are put in from an Array they manually make. Help. Again. Jeremy
[flexcoders] Re: Effects not playing when the trigger is defined on the component definition
Doooh... thanks. Stupid distraction... :)
[flexcoders] Capturing an event in a separate component
Given this scenario: Parent Componet Child1 Child2 (child of Child1) Child3 (child of Child3) and Child3 dispatches an event, how can I make the parent see that event without having to pass it up between each child? I've made the event bubble, but I can't seem to make the parent see it. I can't seem to get the syntax for the addEventListener correct. Thanks
RE: [flexcoders] Can Ely's Flexbook open by default on a given page?
Set currentPageIndex instead. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JoĂ£o Sent: Thursday, March 22, 2007 7:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can Ely's Flexbook open by default on a given page? I am trying the impressive Flexbook that Ely made, and i wasn't able to make it open by default on a given page (3, for example). I can make the component to go to page 3 using the book.turnToPage(3), but it shows up the animation. I tried book.animatePagesOnTurn=false; book.animateCurrentPageIndex=false; book.turnToPage(3); without success, the animation is shown anyway. I just need to start the FlexBook automatically on page 3. Any ideas? Thanks, JoĂƒÂ£o Saleiro
[flexcoders] Can I get the icon in cornflower blue?
Of course you can. If that got your attention because you love that scene as much as I do then chances are you'll probably want to keep reading. You're curiosity is piqued. That's a good sign. So why an obscure Fight Club reference in the middle of a slew of boring job ads? Bluntly put...we're not boring and we're not interested in you if you're boring. If you love your cube and you live to fill out your TPS reports talking about prioritizing one action item over another, you'd be miserable working with us...you likely assumed this was spam and deleted it anyway. Perfect. Let me get to the point because I know you're busy. You're a Flex developer otherwise you wouldn't be getting this. That means you likely already know about Cynergy...unless of course you live under a rock. When someone calls your work a web site you get irritated because web sites are for monkeys and you build applications. You're a developer and a damn good one. You're convinced you know the lines to Anchor Man better than anyone else and you're willing to prove it at any time. Most importantly, you want to build RIAs alongside the best people in the industry. Welcome to Cynergy. We're the undisputed heavy weight champion of RIA development and we're growing like crazy because the world has finally woken up and realized that traditional web applications are garbage and that RIAs are the future. Forward thinking companies and organizations are kicking our doors down daily asking us to build their next great idea. That means we need to grow. That means we need you. We realize you're probably happy where you are...hell you're building Flex apps and life is good. We get that. But if you saw some of yourself in my description above, you're among friends and we truly believe life can be even better than it is today. We want a shot to prove it to you. So how do you get in touch? Well if you like boring aliases you can drop us a line at [EMAIL PROTECTED] or you can email me directly at [EMAIL PROTECTED] If you're really bold, pick up the phone and call my cell. You'll find the number below. Boring details which you should know given the high demand for your skills but I'll include them anyway... We pay well. We provide all of the benefits you're used to...health dental, 401k, blah, blah. We're open to remote developers but would always prefer you were in one of our offices - preferably Washington, DC or San Diego, CA. You already legally work in the US. Looking forward to hearing from you. Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466
RE: [flexcoders] Datagrid Help
Here is an example (2.0) that dynamically builds a datagrid. It uses logic based on the structure of the xml dataProvider, but could just as easily use metadata from a data call. http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectI D=552 Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deepa golamudi Sent: Monday, March 26, 2007 3:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid Help Hai everybody, I am new to flex environment I am using flex 1.5 where i am trying topopulate a datagrid using remote object mechanism invking java object. I am getting the coloumn names using a remote object and records with another.i am sure of getting the DB values into Flex component as i have seen them using an alert. I am unable to view the records and column names at a time. Pl help me ASAP. i also give u the code for ur reference My mxml file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml initialize=initApp() backgroundColor=#FF backgroundImage=@Embed('bg1.png') height=716 width=1034 mx:Style source=styles.css / mx:Script ![CDATA[ var tablename:String; var tblList:Array; var tbl; var dlist:Array; [Bindable] var final:Array; var names:Array; var dg; var i:Number; function initApp() { retrieveFromSession(); sessionRetrieved(); } function retrieveFromSession() { servlet.session(get, cartInfo); } function logout1(cartInfo) { cartInfo.name= ; servlet.session(set,cartInfo,cartInfo); getUrl('select.mxml'); } function sessionRetrieved(cartInfo) { userid.text=cartInfo.name; //alert(userid.text); tblr.getrecs(userid.text); tsel.text=Table Selected: +userid.text; } function names1(event) { tblList=event.result; dg.dataProvider=tblList; //alert(length is +tblList); //dg.dataProvider=tblList; /*for(i=0;i=names.length;i++) { var st:String=names[i].toString; dg.columns[st]=tblList[i]; }*/ } function log() { data12.getdatas(userid.text); //dg.dataProvider=tblList; //dg.columnNames=names; //tblList=mx.utils.ArrayUtil.toArray(event.result); //var t=tblList.length; //alert(t); //dg.dataProvider=tblList; } function resultHandler(event) { names=mx.utils.ArrayUtil.toArray(event.result); this.destroyChild(dg); tblList=mx.utils.ArrayUtil.toArray(event.result); dg=cv.createChild(mx.controls.DataGrid,datagrid,{x:300,columnNames:nam es,y:249,width:620}); //dg.columnNames=names; //dg.dataProvider=tblList; } ]] /mx:Script mx:Canvas id=cv width=936 height=641 mx:Button x=687 y=569 label=Finish click=getUrl('view.mxml')/ mx:Button x=599 y=569 label=DELETE/ mx:Button x=506 y=568 label=UPDATE/ mx:Button x=433 y=568 label=ADD/ mx:Label id=userid x=86 y=345 visible=false/ mx:Label id=tsel x=373 y=195 width=226 height=21/ mx:FormHeading x=419 y=92 fontSize=20 label=DYNAMIC CHARTING COMPONENT width=407 height=33 backgroundColor=#FF/ mx:Button label=Get Records x=549 y=526 click=log() / mx:Link x=822 y=173 label=MainMenu width=78 height=22 click=getUrl('main.mxml') color=#FF textDecoration=none fontSize=12 / /mx:Canvas mx:RemoteObject id=data12 source=TableData result=names1(event) fault='alert(TableData class problem)' mx:method name=getDatas/mx:method /mx:RemoteObject mx:RemoteObject source=servlet id=servlet showBusyCursor=true result=sessionRetrieved(event.result) fault=mx.controls.Alert.show(event.fault.faultstring, 'Error')/ mx:RemoteObject id=tblr source=ColNames result=resultHandler(event) fault='alert(TableData class problem)' mx:method name=getrecs/mx:method /mx:RemoteObject /mx:Application my java classes for column names retrieval //package samples.explorer; import java.sql.*; import java.util.ArrayList; public class ColNames{ final static String jdbcURL = jdbc:odbc:chart; final static String jdbcDriver = sun.jdbc.odbc.JdbcOdbcDriver; public int valid=0; //Connect q=new Connect(); public ColNames() { } public ArrayList getrecs(String tableid) { ArrayList list = new ArrayList(); try { Class.forName(jdbcDriver); Connection con = DriverManager.getConnection(jdbcURL,,); // Connection Conn=q.establish_Connection(); Statement s = con.createStatement(); ResultSet rs= s.executeQuery(select * from +tableid); ResultSetMetaData rsmd = rs.getMetaData(); int columnCount = rsmd.getColumnCount(); for(int col = 1; col = columnCount; col++) { String name=rsmd.getColumnLabel(col); list.add(name); } s.close(); con.close(); } catch(Exception e) { //System.out.println(TechRP ramana+e); } return list; } public static void main(String args[]) { ColNames q=new ColNames(); ArrayList a = new ArrayList(); a=q.getrecs(Exam_Details); for (int i = 0; i a.size(); i++) {
RE: [flexcoders] Re: Component Required
There is a link to a ticker component in an earlier posting today. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kumar Sent: Monday, March 26, 2007 7:02 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Component Required Hard luck didn't got till now Thanks, Kumar From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Saturday, March 24, 2007 6:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Component Required Did you find one? I'd be interested in one too... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Kumar [EMAIL PROTECTED] wrote: Hi All, I want some example for stock ticker or component for the same if some one has already created that or have some API through which I can implement stock ticker in flex. For refrence (yahoo stock ticker). Thanks Kumar
[flexcoders] URLRequest.requestHeaders
Has anyone used this? I am having a lot of trouble getting requests to actually send those headers to the server. I'm curious if anyone else has had experience with them. My problem is I cannot authenticate to our remote servers. Some of the servers use Basic Authentication and some use SOAP headers. I have been able to get it to work by getting the session id from SOAP and passing that as to the services that used basic. I had to turn off basic auth and just fail the request if there is not a valid session. Problem now is I have no session on this other server and need to get one created, but I cannot authenticate because there are no soap handlers and Flash cannot be basic without prompting the user. So I was looking at sending some authentication tokens as headers with the requests, but they are not arriving at the server. Paul
[flexcoders] Amazing video application?? What was it - from expert room at apollocamp
Guys and Girls: I don't know if anybody peeped a video application done in flex that leverages HD Video through quicktime or windows media player. Unfortunately, the guy was in the cue for a while waiting to ask some questions from Ted Patrick and I missed the name of the application but it was really cool stuff. Does anybody know the name of that application? Thanks, Patrick
RE: [flexcoders] Trimming a request sent using mx:httpservice /
I have seen this happen when some editor puts some invisible characters at the beginning of the file. Inspect the xml string a char at a time to see if this is what is happening. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Newcomen Sent: Friday, March 23, 2007 10:18 PM To: flex@houseoffusion.com; flexcoders@yahoogroups.com Subject: [flexcoders] Trimming a request sent using mx:httpservice / I have an application that is to post XML to a url and return a resultset as XML. When using a html form to post the xml, it has to be in a formfield named xml. When I attempt to debug the service call, it /looks/ as if the xml being sent contains nothing extra, but I keep getting the response listed below from the server... any suggestions? RESPONSE_GROUPRESPONDING_PARTY /RESPOND_TO_PARTY _Name= /RESPONSE InternalAccountIdentifier= ResponseDateTime=03-23-2007 07:12:39 _JobIdentifier=RESPONSE_DATAPROPERTY_INFORMATION_RESPONSESTATUS _Code=0005 _Description= XML IS NOT WELL-FORMED OR IS INVALID. ERROR ON LINE 1: CONTENT IS NOT ALLOWED IN PROLOG. _Condition=FAILURE //PROPERTY_INFORMATION_RESPONSE/RESPONSE_DATA/RESPONSE/RESPONSE_ GROUP Crit
RE: [flexcoders] Re: How to asynchronously dispatch an event
Unless I am missing something... Actually, in the lines: model.addEventListener(eventType, eventListener); var result:MyAsyncToken = model.doAction(...); result.myData = The assignment to result.myData happens before the data service call is invoked, and this will work fine. I believe that call does not happen until the next frame. I would avoid using the word 'result as a variable, and the event type should be ResultEvent. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Sent: Friday, March 23, 2007 5:42 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: How to asynchronously dispatch an event Thanks for the guidance, and apologies if I am asking very newbie questions. While I have a decent Java background, I do have a lot of new flex/flash things to try and get a grip on. I don't see why you can't use the equivalent of an AsyncToken in a sync call if you really want to. I don't understand the problem. Well, I would like to do something like model.addEventListener(eventType, eventListener); var result:MyAsyncToken = model.doAction(...); result.myData = Unless I am missing something, the problem is that doAction synchronously invokes the eventListener (by invoking dispatchEvent) and therefore the value assigned to result.myData never makes it in the eventListener. There's at least one DoLater.as class floating around in AS2..a doLater is basically just adding an onEnterFrame to an handy MovieClip that calls a given method and then removes itself. I'll try to find what you refer to. Having no flash experience I will have to do a bit of reading to figure out how all this would match up with the scenario above, but it certainly helps me to find the direction to start looking. Much appreciated! Peter
[flexcoders] Default ColumnSeries type in CartesianChart
When I add multiple ColumnSeries to a ColumnChart they default to displaying as clustered. However, when I change ColumnChart to the more general CartesianChart, my ColumnSeries are stacked. I'm trying to create a generic charting component based around CartesianChart. How do I tell a column series that it should render as clustered without using a ColumnChart explicitly? Any help would be much appreciated. Justin
RE: [flexcoders] Randomizing Array (from actionscript cookbook3 and other places)
This compiles and runs for me. private function init():void { function randomSort(a, b) { return Math.random().5 ? -1 : 1; } var numbers:Array = new Array(); for (var n:int=0;n10;n++){ numbers[n] = n; } numbers.sort(randomSort); trace(numbers); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of {reduxdj} Sent: Saturday, March 24, 2007 11:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Randomizing Array (from actionscript cookbook3 and other places) I am getting an error with the following code TypeError: Error #1006: value is not a function. at com.me.data::PictureProviderXML/::handleComplete() function randomSort(a, b) { return Math.random().5 ? -1 : 1; } var numbers:Array = new Array(); for (var n:int=0;nphotos.length;n++){ numbers[n] = n; } numbers.sort(randomSort); any ideas, it looks like I am using this properly any ideas? Thanks, Patrick
[flexcoders] Lattice, grid or graph-paper background for container
I was sure I saw a posting on how to do this a few weeks ago right here, but I can't find it now. Basically I need a fixed square grid as a background for a container. I suppose I could use one of the background tile components for this. Would that be a reaonable solution? Tracy
[flexcoders] Two-Way Binding Solutions?
I have trying to figure out how best to accomplish the two-way data binding needed for form entry. Here is what I thought would work, but it doesn't seem to: ON MODEL: I created two variables that hold my VO. model.pendingContact model.newContact The user clicks a button to get ContactVO data from the server. In the command class I assign the result (which is a typed PHP ContactVO) to each variable: model.pendingContact = data.result; model.newContact = data.result; I then bind my form fields to model.pendingContact so that the existing values from the server show up in the TextInput fields. Lastly, I use the BindingUtil methods to bind the text property of the TextInput fields back to model.newContact so that I can record any changes and send them back to the server. When the user submits the form, model.pendingContact should hold the old values model.newContact should have the new values. Correct?? Am I overlooking something. The only way I can get this to work is if I don't assign model.newContact to the values from the server and instead create a new instance like this: model.pendingContact = data.result; model.newContact = new ContactVO; However, I can't do this because I need the newContact to start out with the old values from the server. Is there a duplicate or clone object method that I need to use so that both model variables can be assigned to the same object from the server?? Thanks for the help. - Kevin
RE: [flexcoders] Default ColumnSeries type in CartesianChart
Put them in a ColumnSet (this is what ColumnChart does implicitly for you): CartesianChart series ColumnSet type=clustered ColumnSeries / ColumnSeries / ColumnSeries / ColumnSeries / / / / Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Justin Makeig Sent: Monday, March 26, 2007 9:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Default ColumnSeries type in CartesianChart When I add multiple ColumnSeries to a ColumnChart they default to displaying as clustered. However, when I change ColumnChart to the more general CartesianChart, my ColumnSeries are stacked. I'm trying to create a generic charting component based around CartesianChart. How do I tell a column series that it should render as clustered without using a ColumnChart explicitly? Any help would be much appreciated. Justin
Re: [flexcoders] Re: Posting XML with httpservice
That does work (thanks), except for the fact that when I convert my string to XML, it seems to remove my ? xml ... declaration... it has to be passed to the server.. as well. any ideas on that? Crit On 25 Mar 2007 12:15:46 -0700, nathanpdaniel [EMAIL PROTECTED] wrote: When you call the httpservice.send() function, try httpservice.send (xmlDocument) - and remove the mx:request tag from the MXML :D --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Thomas Newcomen [EMAIL PROTECTED] wrote: If I have contenttype of my httpservice set to application/xml and I have a variable that contains an xml document (?xml ? blah.../blah) How do I just post that the service? this doesn't seem to work: mx:request {xmlDocument} /mx:request Any ideas? 'preciate it. Crit
RE: [flexcoders] Capturing an event in a separate component
Make sure you set the bubbles=true when you construct the Event object. The parent should be able to listen to itself and still see it. parent.as class ParentComponent { public function ParentComponent() { addEventListener(bubbler, bubblerEventHandler); } } child3.as class Child3 { private function doSomething():void { var event:Event = new Event(bubbler, true); dispatchEvent(event); } } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Marlon Moyer Sent: Monday, March 26, 2007 9:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Capturing an event in a separate component Given this scenario: Parent Componet Child1 Child2 (child of Child1) Child3 (child of Child3) and Child3 dispatches an event, how can I make the parent see that event without having to pass it up between each child? I've made the event bubble, but I can't seem to make the parent see it. I can't seem to get the syntax for the addEventListener correct. Thanks
RE: [flexcoders] weird ArrayCollection issue
event.result might be object instance #123923879 You've assigned it to both newTestGroup and groups so your sharing. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway Sent: Monday, March 26, 2007 8:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] weird ArrayCollection issue I have to arrayCollections that I am assigning the same data to. I am adding an item to one of the collections but that item is getting set to both collections, wth?? code is here: newTestGroup = event.result as ArrayCollection; groups = event.result as ArrayCollection; var arr:Object = {testGroupId:0,testGroupName:Show All,dsn_source:dsn}; groups.addItemAt(arr,0); any help wold be appreciated.. one last thing. if I alter the newTestGroup collection, the same thing happens to the groups collection. -- http://indeegrumpee.spaces.live.com/ http://indeegrumpee.spaces.live.com/
[flexcoders] Flex Builder Internal Build error (documeted)
I encountered a problem with FlexBuilder 2.0.1 that stymied me for a few days. The compiler was reporting An internal build error has occurred. Please check the Error Log. The error was not attached to any specific line number within my code. This was after several changes to my program which I judged to be cosmetic changes. My first problem was that I could not locate the Error Log the message referred to, and there was little information available on the web on this error. I had a similar problem a few days ago and got advice to re-installl my Flex environment. Fearing a recurring meltdown of my Flex environment and wanting to avoid another re-install, I retraced my cosmetic changes and discovered the problem was using an If statement to skip a code block containing trace statements, effectively commenting out the code. I extracted a simple Actionscript 3.0 example that illustrates the problem: package { import flash.display.Sprite; import flash.events.*; public class BuildError extends Sprite { private function netStatusHandler( event : NetStatusEvent ):void { var flvVideo : Object = null; // This line is used to skip the control block based on the Boolean if (true) { // This line will print netStatusHandler: null trace( netStatusHandler: + event ); // This if statement causes the compiler problem. // To trigger the problem: //1. Change the previous if (true) to if (false). This //will cause the Problem window to report An internal build error //has occurred. Please check the Error Log. //2. A secondary problem is that if the if (flvVideo != null) line //is changed to // if (flvVideo != null), effectively commenting out only //the if statement, the internal error is removed, and the problem //area now reports 1131: Classes must not be nested. if (flvVideo != null) { trace( ... + flvVideo.videoWidth + , + flvVideo.videoHeight ); } } } public function BuildError() { netStatusHandler( null ); } } } Needless to say, this should not generate any errors whatsoever, or cause a shutdown of the compilier. Additionally, the generated error message should be descriptive, and the error log is to find.
RE: [flexcoders] How to create and apply an easing funtion to a chart using ActionScript
chart.series[0].setStyle(showDataEffect,seriesEffect); Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Sunday, March 25, 2007 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to create and apply an easing funtion to a chart using ActionScript It's pretty straightforward and well documented to apply an easing function to a chart using MXML. What about in ActionScript ? I am currently stock here : var serieEffect:SeriesInterpolate = new SeriesInterpolate(lineSerie); serieEffect.duration=2000; serieEffect.easingFunction=mx.effects.easing.Bounce.easeOut; Which ActionScript API should I use to get the same functionalities as showDataEffect or hideDataEffect in MXML ? Thank you for your help. Claude Hussenet. Regards Claude Hussenet Get your own web address. http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domain s/?p=BESTDEAL Have a HUGE year through Yahoo! Small Business. http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domain s/?p=BESTDEAL
RE: [flexcoders] Lattice, grid or graph-paper background for container
I'd just do moveTo/LineTo From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Monday, March 26, 2007 12:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Lattice, grid or graph-paper background for container I was sure I saw a posting on how to do this a few weeks ago right here, but I can't find it now. Basically I need a fixed square grid as a background for a container. I suppose I could use one of the background tile components for this. Would that be a reaonable solution? Tracy
RE: [flexcoders] assigning a class at runtime
Hmm, didn't think the :: thing was required anymore. It is there because packages are essentially implemented as namespaces. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Monday, March 26, 2007 8:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] assigning a class at runtime On Monday 26 Mar 2007, Matt Wicks wrote: excellent thanks No problem. Anyone know why the double colon is there, as it has to be replaced to make it work ? -- Tom Chiverton Helping to vitalistically streamline dot-com channels 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] filterFunction issue with shared array collection in model / shared list
create another arraycollection and assign its source to the other arraycollection's source From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scott_flex Sent: Monday, March 26, 2007 8:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] filterFunction issue with shared array collection in model / shared list I have a shared arraycollection of value objects. Singeton, only one instance of this array collection. Dfferent views (in a tab navigator) are generated using this shared array collection but each view filters the data in a datagrid list with different criteria. So.. in each view i utilized the filterFunction to correctly filter the array collection and only display what i needed into my datagrid. That works great. However, when i set the filter function and refresh the arrayCollection all my other views (tab windows) change as well because they are all databound to the shared array collection... This does make sense... but not what i want. Maybe i need to put the filter on the datagrid for each view, not the array collection. Am i going about this wrong? I'm a newbie cairngorm and i believe this is an issue that others would run into.
RE: [flexcoders] URLRequest.requestHeaders
There are restrictions on what headers can be set. Check the docs here to make sure you're OK: http://livedocs.adobe.com/flex/201/langref/flash/net/URLRequestHeader.ht ml From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Monday, March 26, 2007 10:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] URLRequest.requestHeaders Has anyone used this? I am having a lot of trouble getting requests to actually send those headers to the server. I'm curious if anyone else has had experience with them. My problem is I cannot authenticate to our remote servers. Some of the servers use Basic Authentication and some use SOAP headers. I have been able to get it to work by getting the session id from SOAP and passing that as to the services that used basic. I had to turn off basic auth and just fail the request if there is not a valid session. Problem now is I have no session on this other server and need to get one created, but I cannot authenticate because there are no soap handlers and Flash cannot be basic without prompting the user. So I was looking at sending some authentication tokens as headers with the requests, but they are not arriving at the server. Paul
RE: [flexcoders] Re: Posting XML with httpservice
See http://livedocs.adobe.com/flex/2/langref/XML.html#ignoreProcessingInstru ctions From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Newcomen Sent: Monday, March 26, 2007 12:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Posting XML with httpservice That does work (thanks), except for the fact that when I convert my string to XML, it seems to remove my ? xml ... declaration... it has to be passed to the server.. as well. any ideas on that? Crit On 25 Mar 2007 12:15:46 -0700, nathanpdaniel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: When you call the httpservice.send() function, try httpservice.send (xmlDocument) - and remove the mx:request tag from the MXML :D --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Thomas Newcomen [EMAIL PROTECTED] wrote: If I have contenttype of my httpservice set to application/xml and I have a variable that contains an xml document (?xml ? blah.../blah) How do I just post that the service? this doesn't seem to work: mx:request {xmlDocument} /mx:request Any ideas? 'preciate it. Crit
RE: [flexcoders] Setting properties on AS-created components
We can always use more documentation. Books are coming out left and right these days which may also help. You're right, the width/height isn't set until the updateDisplayList pass. We use a invalidate/validate model for performance reasons. Another thing is that we use a top-down layout model. The application is sized, then its children, then their children, etc... Essentially, children are sized by their parents. Parents laying out their children generally don't care about the width/height because they will dictate it. Instead they care about the child's measured or explicitly set height and try to honor that. There is a method call getExplicitOrMeasuredWidth()/Height() that we use all the time. The source code shipped with the product which is a good place to look. There is a keep-generated flag that shows you what AS the MXML compiler generates. Final note, creationComplete is very late, the equivalent of automatically hitting a button to effect change, so you'll probably be better off using getExplicitOrMeasured...() From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brett Walker Sent: Monday, March 26, 2007 12:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting properties on AS-created components hi there, Long time AS developer, new Flex developer. Coming from a pure ActionScript background, I've been really banging my head against the Flex framework. I'm working on a Flex 2 project where I need to dynamically instantiate Flex components using ActionScript, and then lay them out manually. I finally got everything sorted out, but I'm wondering if there really isn't a better way to do this. Basically, I'm creating Flex components at runtime using new ___(). In particular, I came across a problem trying to modify a Button component that I created inside a Panel. Setting the x and y immediately was no problem, however the width property kept returning 0 . I tried explicitWidth, measuredWidth, every arcane width I could find in the docs, but always 0. Then I realized that the Button probably hadn't finished its layout processes yet. Okay, after some more hand-wrenching, I decided to add a listener to the Button for the FlexEvent.CREATION_COMPLETE event, and set the props on that. Gods be praised, it worked. The width property finally had a value. But really, this seems very inelegant to me. Don't get me wrong, I love the AS3 event system (mostly), but having to create listener functions just to set visual properties of AS-created components...ugh. Is there a better way to accomplish this? Did I miss something? I think that Adobe needs to concentrate more documentation on using Flex from a non-MXML perspective. It is very frustrating trying to get up to speed with such a complicated framework, when most of the documentation uses MXML to teach concepts. thanks, -brett
Re: [flexcoders] weird ArrayCollection issue
I figured that out :) I am working around this now. On 26 Mar 2007 11:27:01 -0700, Alex Harui [EMAIL PROTECTED] wrote: event.result might be object instance #123923879 You've assigned it to both newTestGroup and groups so your sharing. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Tredway *Sent:* Monday, March 26, 2007 8:40 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] weird ArrayCollection issue I have to arrayCollections that I am assigning the same data to. I am adding an item to one of the collections but that item is getting set to both collections, wth?? code is here: newTestGroup = event.result as ArrayCollection; groups = event.result as ArrayCollection; var arr:Object = {testGroupId:0,testGroupName:Show All,dsn_source:dsn}; groups.addItemAt(arr,0); any help wold be appreciated.. one last thing. if I alter the newTestGroup collection, the same thing happens to the groups collection. -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: Data Binding Issue
Hi, My Requirement is the developer can either pass a list of selected items or not. If he does, then I need to select the check boxes after it's creation. That's the reason I have the code: selected={ selectedItems.contains(chkRepeater.currentItem) } which will select the checkboxes if there were any in the selectedItems Hope this helps.. Thanks, Madhu --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, madhukiranm wrote: mx:Tile id=chkTile mx:Repeater id=chkRepeater dataProvider={dataItems} mx:CheckBox id=chkCheckBox selected=selectedItems.contains(chkRepeater.currentItem) Not selected={ selectedItems.contains(chkRepeater.currentItem) } ? -- Tom Chiverton Helping to advantageously seize frictionless 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] Re: URLRequest.requestHeaders
I am finding that sometimes it works and sometimes it does not. From what I can tell is if I have done a FileReference.upload request recently in the app it does not send the headers. I'm not sure if it is recycling the request or what, I'm not recycling it myself anyway. I'm assuming that the limitation for sending headers is related to browsers and plugins so I'm not going to ask what's up with that. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: There are restrictions on what headers can be set. Check the docs here to make sure you're OK: http://livedocs.adobe.com/flex/201/langref/flash/net/URLRequestHeader.ht ml From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Monday, March 26, 2007 10:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] URLRequest.requestHeaders Has anyone used this? I am having a lot of trouble getting requests to actually send those headers to the server. I'm curious if anyone else has had experience with them. My problem is I cannot authenticate to our remote servers. Some of the servers use Basic Authentication and some use SOAP headers. I have been able to get it to work by getting the session id from SOAP and passing that as to the services that used basic. I had to turn off basic auth and just fail the request if there is not a valid session. Problem now is I have no session on this other server and need to get one created, but I cannot authenticate because there are no soap handlers and Flash cannot be basic without prompting the user. So I was looking at sending some authentication tokens as headers with the requests, but they are not arriving at the server. Paul
Re: [flexcoders] Two-Way Binding Solutions?
i think my problem boils down to one of object cloning. Does anyone have a good solution for deep cloning objects in AS3? Seems like this would be a pretty useful utility. - Kevin On Mar 26, 2007, at 1:50 PM, Kevin wrote: I have trying to figure out how best to accomplish the two-way data binding needed for form entry. Here is what I thought would work, but it doesn't seem to: ON MODEL: I created two variables that hold my VO. model.pendingContact model.newContact The user clicks a button to get ContactVO data from the server. In the command class I assign the result (which is a typed PHP ContactVO) to each variable: model.pendingContact = data.result; model.newContact = data.result; I then bind my form fields to model.pendingContact so that the existing values from the server show up in the TextInput fields. Lastly, I use the BindingUtil methods to bind the text property of the TextInput fields back to model.newContact so that I can record any changes and send them back to the server. When the user submits the form, model.pendingContact should hold the old values model.newContact should have the new values. Correct?? Am I overlooking something. The only way I can get this to work is if I don't assign model.newContact to the values from the server and instead create a new instance like this: model.pendingContact = data.result; model.newContact = new ContactVO; However, I can't do this because I need the newContact to start out with the old values from the server. Is there a duplicate or clone object method that I need to use so that both model variables can be assigned to the same object from the server?? Thanks for the help. - Kevin
RE: [flexcoders] filterFunction issue with shared array collection in model / shared list
Take a look at the ListCollectionView class - you can pass your 'master' ArrayCollection into its constructor (because ArrayCollection implements IList). You can then set filter options on your ListCollectionView without affecting the 'master'. So you'd probably want to create a ListCollectionView for each of your individual views: http://livedocs.adobe.com/flex/2/langref/mx/collections/ListCollectionVi ew.html You can use a ListCollectionView as a dataProvider for your datagrid controls because it implements the required interfaces (just like ArrayCollection). The ListCollectionView will also listen for changes to the underlying 'master' list and update accordingly. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scott_flex Sent: Monday, March 26, 2007 4:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] filterFunction issue with shared array collection in model / shared list I have a shared arraycollection of value objects. Singeton, only one instance of this array collection. Dfferent views (in a tab navigator) are generated using this shared array collection but each view filters the data in a datagrid list with different criteria. So.. in each view i utilized the filterFunction to correctly filter the array collection and only display what i needed into my datagrid. That works great. However, when i set the filter function and refresh the arrayCollection all my other views (tab windows) change as well because they are all databound to the shared array collection... This does make sense... but not what i want. Maybe i need to put the filter on the datagrid for each view, not the array collection. Am i going about this wrong? I'm a newbie cairngorm and i believe this is an issue that others would run into.
[flexcoders] Re: URLRequest.requestHeaders
Alright, ignore that, I was recycling the request object. So here is the big issue. I can make a call to this server and set some headers that will get my session setup. Then I reuse the same request with the upload but I no longer have any session info. What is going on with these upload requests? It does not share cookies from other requests made. Paul --- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: I am finding that sometimes it works and sometimes it does not. From what I can tell is if I have done a FileReference.upload request recently in the app it does not send the headers. I'm not sure if it is recycling the request or what, I'm not recycling it myself anyway. I'm assuming that the limitation for sending headers is related to browsers and plugins so I'm not going to ask what's up with that. --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: There are restrictions on what headers can be set. Check the docs here to make sure you're OK: http://livedocs.adobe.com/flex/201/langref/flash/net/URLRequestHeader.ht ml From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Monday, March 26, 2007 10:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] URLRequest.requestHeaders Has anyone used this? I am having a lot of trouble getting requests to actually send those headers to the server. I'm curious if anyone else has had experience with them. My problem is I cannot authenticate to our remote servers. Some of the servers use Basic Authentication and some use SOAP headers. I have been able to get it to work by getting the session id from SOAP and passing that as to the services that used basic. I had to turn off basic auth and just fail the request if there is not a valid session. Problem now is I have no session on this other server and need to get one created, but I cannot authenticate because there are no soap handlers and Flash cannot be basic without prompting the user. So I was looking at sending some authentication tokens as headers with the requests, but they are not arriving at the server. Paul
[flexcoders] Re: How to asynchronously dispatch an event
The assignment to result.myData happens before the data service call is invoked, and this will work fine. I believe that call does not happen until the next frame. Yes, exactly. Now the point is (or was really) that I wanted to implement the same api interaction when model.doAction is not asynchronous (doAction here stands for one of a few dozen methods that are implemented on the model object). I naively tried to do that by using dispatchEvent from within the synchronous doAction call, but that did not really get me there because the eventlistener is invoked at the time the dispatchEvent is invoked (beginners mistake I am sure) Anyway, I have decided to turn everything around. After I (finally) realized that using an event dispatching approach for model management calls (sometimes through service invocations) is not really buying me anything, I added the handlers and possible user data, both for the synchronous and asynchronous methods, as arguments to the methods. Although the method signatures get a bit heavy, I like that approach better. It is consisten and it saves me from having to juggle with eventlisteners and an application specific event structure. Of course... I would have preferred everything to be synchronous :) Thanks for you reply, Peter
[flexcoders] Re: URLRequest.requestHeaders
--- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: Alright, ignore that, I was recycling the request object. So here is the big issue. I can make a call to this server and set some headers that will get my session setup. Then I reuse the same request with the upload but I no longer have any session info. What is going on with these upload requests? It does not share cookies from other requests made. I had to work through the same or a similar problem. Perhaps you find http://tech.groups.yahoo.com/group/flexcoders/message/68204 relevant. Peter
[flexcoders] Re: Two-Way Binding Solutions?
can you not just create a new ContactVO with your form control values when the user goes to save their changes, and, depending on the result from the server, either set your form controls back to the model (you'll have to assign them manually as binding won't fire if the values don't change) if the save fails or set your model to the newcontact values if the save succeeds? --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: i think my problem boils down to one of object cloning. Does anyone have a good solution for deep cloning objects in AS3? Seems like this would be a pretty useful utility. - Kevin On Mar 26, 2007, at 1:50 PM, Kevin wrote: I have trying to figure out how best to accomplish the two-way data binding needed for form entry. Here is what I thought would work, but it doesn't seem to: ON MODEL: I created two variables that hold my VO. model.pendingContact model.newContact The user clicks a button to get ContactVO data from the server. In the command class I assign the result (which is a typed PHP ContactVO) to each variable: model.pendingContact = data.result; model.newContact = data.result; I then bind my form fields to model.pendingContact so that the existing values from the server show up in the TextInput fields. Lastly, I use the BindingUtil methods to bind the text property of the TextInput fields back to model.newContact so that I can record any changes and send them back to the server. When the user submits the form, model.pendingContact should hold the old values model.newContact should have the new values. Correct?? Am I overlooking something. The only way I can get this to work is if I don't assign model.newContact to the values from the server and instead create a new instance like this: model.pendingContact = data.result; model.newContact = new ContactVO; However, I can't do this because I need the newContact to start out with the old values from the server. Is there a duplicate or clone object method that I need to use so that both model variables can be assigned to the same object from the server?? Thanks for the help. - Kevin
[flexcoders] ListCollectionView bug?
According to documentation in relation to addItemAt method, If the list is shorter than the specified index, it will grow to accomodate the new item. I've found that not to be the case. If you attempth to add an item at an index larger that the collection length, Flex will throw an exception. Is this a known issue?
[flexcoders] Re: Whatever happened to Peter Ent's scrolling text ticker?
Thanks! Simple when you see it, but I didn't know about the magic doLater() function... sometimes the simplest things are the best. As a matter of interest has anyone used this approach for handling lazy loading of data? --- In flexcoders@yahoogroups.com, Steve Hagenlock [EMAIL PROTECTED] wrote: http://weblogs.macromedia.com/pent/archives/flex/ticker/tickerText.zip simonjpalmer wrote: Anyone know what became of it? The markme.com code link on his blog leads nowhere. Anyone have the code they could share with me? http://weblogs.macromedia.com/pent/archives/2004/12/ticker.cfm Thanks Simon No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date: 3/23/2007 3:27 PM
[flexcoders] Re: Two-Way Binding Solutions?
You are right, it is because your model.pendingContact and model.newContact are object references and not object instances. When you do the assignment you are just pointing them to the same object in memory - 2 references, 1 object. In your second case you create a second object, 2 objects, 2 references. This is a familiar concept if you have spent any time coding in Java. I'm willing to bet you won't find a cloning technique that will really suit your purposes (but then I enjoy a flutter). From personal experience I am yet to find a use for cloning that I have stuck with. I have used it in Java but every time I have thought it was a solution it turned out not to be because of some logical constraint in the data. Most likely there will be some logic implicit in the member variables or your object (such as id's etc) that it would not be safe to simply clone. If you have a complex object containing an array what would you expect it to do? I generally resort to intelligent copying and a self-impose standard interface across my code to copy (I used to use overloaded = operators and copy constructurs in C++ but that's the very distant past). For the case that you cite you must be binding the individual members of your VO to form fields to display their values. One approach is to trap the enter key on those fields and apply the new values back to the object. That way you only need a single object and its state is represented by the fields in your form... mx:TextInput id=txt_Name text={myVOContact.name} enter=saveName()/ ... private function saveName():void{myVOContact.name=txt_Name.text;} ... You might wind up with lots of little saveX() functions but that wouldn't be the end of the world. Alternatively you could probably also bind the assignment directly... mx:TextInput id=txt_Name text={myVOContact.name} enter={myVOContact.name=txt_Name.text}/ Not every control support the enter event but there is normally some analogue, such as a combo closing or a checkbox state changing or a radio button being selected that will do just as well. A third method involves putting a submit button on the page. When clicked, manually transfer the data from the form fields to your VO and post back to the server. Unless you are measuring the changes in your data I'm not seeing the value of a second object instance (yippee, no clone). --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: i think my problem boils down to one of object cloning. Does anyone have a good solution for deep cloning objects in AS3? Seems like this would be a pretty useful utility. - Kevin On Mar 26, 2007, at 1:50 PM, Kevin wrote: I have trying to figure out how best to accomplish the two-way data binding needed for form entry. Here is what I thought would work, but it doesn't seem to: ON MODEL: I created two variables that hold my VO. model.pendingContact model.newContact The user clicks a button to get ContactVO data from the server. In the command class I assign the result (which is a typed PHP ContactVO) to each variable: model.pendingContact = data.result; model.newContact = data.result; I then bind my form fields to model.pendingContact so that the existing values from the server show up in the TextInput fields. Lastly, I use the BindingUtil methods to bind the text property of the TextInput fields back to model.newContact so that I can record any changes and send them back to the server. When the user submits the form, model.pendingContact should hold the old values model.newContact should have the new values. Correct?? Am I overlooking something. The only way I can get this to work is if I don't assign model.newContact to the values from the server and instead create a new instance like this: model.pendingContact = data.result; model.newContact = new ContactVO; However, I can't do this because I need the newContact to start out with the old values from the server. Is there a duplicate or clone object method that I need to use so that both model variables can be assigned to the same object from the server?? Thanks for the help. - Kevin
[flexcoders] Custom Component Width when 100%?
I created a custom component that works great when the width is specified. However, when I try to set the width to a percent (of the parent) it returns 0. How to I reference the parent's width? I tried getExplicitOrMeasuredWidth but it didn't work. Thanks in advance for the help.
[flexcoders] Loading Modules
I have looked for several days on how to create and load module in Flex Builder 2 and while there are tons of partial examples I have yet to find a good complete example. I am trying to find somthing that shows: 1. How to create a project that can use modules 2. How to create one or more modules (Using both mxml files and as files) 3. How to load these modules from the main application 4. How to (In Flex Builder) compile the project Again I have found several things that show how to small portions of this, yet nothing that shows everything from step 1 to 4. Some sights have HUGE discussions on all of the why-tos and how-it-works, etc. But no one that I have seen shows a sample project file and sample mxml and as files. Any help would be appreciated. Thanks, Mike
[flexcoders] Re: filterFunction issue with shared array collection in model / shared list
Thanks! Works great. As usual it was something very simple, i'm sure i'll make use of the ListCollectionView class a lot more. I didn't try the other suggestion by assing a new array collection the source from the copied but i'm guessing they are similar in nature. --scott --- In flexcoders@yahoogroups.com, Paul Williams [EMAIL PROTECTED] wrote: Take a look at the ListCollectionView class - you can pass your 'master' ArrayCollection into its constructor (because ArrayCollection implements IList). You can then set filter options on your ListCollectionView without affecting the 'master'. So you'd probably want to create a ListCollectionView for each of your individual views: http://livedocs.adobe.com/flex/2/langref/mx/collections/ListCollection Vi ew.html You can use a ListCollectionView as a dataProvider for your datagrid controls because it implements the required interfaces (just like ArrayCollection). The ListCollectionView will also listen for changes to the underlying 'master' list and update accordingly. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scott_flex Sent: Monday, March 26, 2007 4:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] filterFunction issue with shared array collection in model / shared list I have a shared arraycollection of value objects. Singeton, only one instance of this array collection. Dfferent views (in a tab navigator) are generated using this shared array collection but each view filters the data in a datagrid list with different criteria. So.. in each view i utilized the filterFunction to correctly filter the array collection and only display what i needed into my datagrid. That works great. However, when i set the filter function and refresh the arrayCollection all my other views (tab windows) change as well because they are all databound to the shared array collection... This does make sense... but not what i want. Maybe i need to put the filter on the datagrid for each view, not the array collection. Am i going about this wrong? I'm a newbie cairngorm and i believe this is an issue that others would run into.
[flexcoders] Re: Loading Modules
No sure if it covers everything you need but have alook at my post: http://blog.startup.gr/blog/Technology/Flex/_archives/2007/1/19/2664880.html leave a comment if you have any specific question. Harry
RE: [flexcoders] Custom Component Width when 100%?
It depends on when you ask. Components have a multi-stage validation mechanism. Their properties get set in stage1, measured in stage2, layed out in stage 3. Until measurement, they are zero width/height From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Monday, March 26, 2007 1:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom Component Width when 100%? I created a custom component that works great when the width is specified. However, when I try to set the width to a percent (of the parent) it returns 0. How to I reference the parent's width? I tried getExplicitOrMeasuredWidth but it didn't work. Thanks in advance for the help.
[flexcoders] Global access in AS3
Hi all, My problem is: I need some data classes to be global so that I can access them without to have to establish unnecessary references. I tried to create a Singleton class the way we're used to do in Java, and I got 2 problems: 1) It's not possible to define a private constructor 2) The instance created in the getInstance() method is not keeping the data, I don't know why What do I do to have globally accessible structures in AS3? -- André Rodrigues Pena LOCUS www.locus.com.br Blog www.techbreak.org
[flexcoders] Re: Loading Modules
This site seems to be pretty good: http://www.brucephillips.name/blog/index.cfm/2007/1/8/Example-Of- Using-Modules-In-Flex-201 But I am still missing something. It seems that my modules are loaded even if I don't explisitly load them. Here is my test app: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=onInit(event) creationComplete=onCreationComplete(event) layout=absolute mx:Script ![CDATA[ private var debug:Boolean = false; private var modLoader:ModuleLoader; private var modName:String = string_en.swf; import mx.events.ModuleEvent; import mx.modules.IModuleInfo import mx.modules.ModuleLoader; import mx.modules.ModuleManager; private function onInit(event:Event) : void { this.debug = (this.url.indexOf(-debug.swf) -1 ? true : false); /* var info:IModuleInfo = ModuleManager.getModule( getModuleName( modName ) ); info.load(); */ } private function onCreationComplete(event:Event) : void { /* modLoader = new ModuleLoader(); this.addChild(modLoader); createModule( modLoader, modName ); */ } private function getModuleName( modName:String ):String { var s:String = modName; if ( this.debug ( s.indexOf( -debug.swf ) == -1 ) ) { s = s.replace(.swf, -debug.swf); } return s; } public function createModule(m:ModuleLoader, s:String):void { if (!m.url) { m.url = getModuleName( s ); } m.loadModule(); } public function removeModule(m:ModuleLoader):void { m.unloadModule(); } private function Test_OnClick(event:Event) : void { textArea.text = string_en.Cancel; //var obj:string_en = (modLoader.child as string_en); } ]] /mx:Script mx:Text text=Text right=10 left=10 top=40 bottom=207 id=textArea/ mx:Button x=10 y=10 label=Test click=Test_OnClick(event)/ /mx:Application and here is my test module: ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ public static const Ok:String = OK; // OK button public static const Cancel:String = Cancel; // Cancel button public static const Submit:String = Submit; // Submit button public function Item( name:String ) : String { return ; } ]] /mx:Script /mx:Module If you notice I have commented out the code that loads the module. Yet even then then module loads and I can get at the strings. I just want to make sure that my modules only load when asked for. Mike --- In flexcoders@yahoogroups.com, tvikatos [EMAIL PROTECTED] wrote: No sure if it covers everything you need but have alook at my post: http://blog.startup.gr/blog/Technology/Flex/_archives/2007/1/19/266488 0.html leave a comment if you have any specific question. Harry