Re: [flexcoders] Flex Ant Tasks
Hi Bjorn! You can download as example the simple sample from my article about Flex and Ant (http://webddj.sys-con.com/read/310378.htm) but applied to Flex Ant Tasks. Download link for modified example here: http://www.riapriority.com/flex/samples/flex_ant_test.zip I use mxmlc and html-wrapper tasks in the example. Good luck! -- Best regards, Constantinermailto:[EMAIL PROTECTED] BS Has anyone got this working? BS BS I keep getting the same error, Could not create task or type of type: BS mxmlc. BS BS I have followed the instructions to the letter. BS BS Regards, BS BS Bjorn
[flexcoders] DoubleClick Banner Ads in Flex
Has anyone figured out how to embed HTML banner ads from DoubleClick or 24/7 into a Flex app? ThanksRob
RE: [flexcoders] deploying a simple Flex app to WebSphere AppServer?
Check this http://weblogs.macromedia.com/pmartin/archives/2006/11/deploying_flex.cf m#more Rgds, Olivier From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djbrown_rotonews Sent: Thursday, January 25, 2007 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] deploying a simple Flex app to WebSphere AppServer? I'm trying to deploy a simple flex app to WAS6.1 after having it run under the included jrun4. What processes do I need to take, or is there a tutorial online that would step me thru the process? - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] Re: Line Chart: Out of range data points appear broken
Try setting the filterData property to false. Graham --- In flexcoders@yahoogroups.com, dkhvost [EMAIL PROTECTED] wrote: Hi all, I have a problem with the Linechart / Lineseries. I have a simple linechart which contains datavalues over time and 0 -100 y axis range. If I change the y axis range to let's say 50 - 80 then the connecting lines to the data points outside the range dissapear which creates a very bad visual effect which consists of broken line segment cluttering the charting screen. Thank You, Dennis
[flexcoders] Debug in Flex SDK, fcsh
Hello, group. If I compile app using FB, I got a special debug version of it, how can I get the same thing without FB, just in usual Flex SDK? When I use fdb - it just displays a blank player's window. -- A vivid and creative mind characterizes you.
Re: [flexcoders] Flex2 Metadata / Compiler Options Question
On Thursday 25 January 2007 12:46, gtuhl wrote: Does anyone have any idea for working around this? http://livedocs.macromedia.com/flex/2/docs/1652.html#162732 -- Tom Chiverton Helping to preemptively optimize front-end ROI 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] Flash 8 swf in Flex 2
I have a swf that isn't working correctly in Flex, the problem is the AS2 script within. There appears to be a focus issue causing the onClick not to be registered. I have been reading about Iframe in theory this should work. If you have any other suggestions or examples of iFrame that a newbie could follow please let me know. TIA
[flexcoders] ScrollBar with easing?
Does anyone know how one might go about applying easing to a scrollbar in Flex?
Re: [flexcoders] RemoteObject.disconnect does not work
On Thursday 25 January 2007 07:54, baardos wrote: call but I am still getting the clock cursor and a response. Any ideas? What are you trying to achieve ? Flex maybe seeing you have a response outstanding and keeping to connection alive, for instance. -- Tom Chiverton Helping to revolutionarily aggregate principle-centered e-tailers 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: RemoteObject.disconnect does not work
Hi Tom, Thanks for your response. What I am trying to do is to implement cancel functionality that will allow the user to cancel a pending request. According to the docs the disconnect method should remove all resoponders associated with a given RemoteObject instance and it seems to be exactly what I need. Do you know any specific conditions that must be satisfied for this method to succeed? This is what the doc says - from this description it seems to beunconditional Any ideas? Disconnects the service's network connection and removes any pending request responders. This method does not wait for outstanding network operations to complete. Cheers, Bartek --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 25 January 2007 07:54, baardos wrote: call but I am still getting the clock cursor and a response. Any ideas? What are you trying to achieve ? Flex maybe seeing you have a response outstanding and keeping to connection alive, for instance. -- Tom Chiverton Helping to revolutionarily aggregate principle-centered e-tailers 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] UTC Date in Webservice operation request
Hi All, I am struggling with a webservice call that looks like this: mx:WebService id=testWS wsdl=http://localhost:8000/TestService?wsdl; result=handleResult(event); fault=handleFault(event); load=handleLoad(event); useProxy=false mx:operation name=testOP_1 result=handleResult(event); fault=handleFault(event); mx:request pDateMon Jan 29 10:30:59 2007/pDate pOneOne/pOne pTwoTwopTwo /mx:request /mx:operation mx:operation name=testOP_2 result=handleResult(event); fault=handleFault(event); mx:request ptesting/p /mx:request /mx:operation /mx:WebService The opearation testOP_1 expects a UTC date in pDate parameter of the request. Now when i call this operation as testWS.testOP_1.send(); I get a fault in my fault handler [RPC Fault faultString=Error #1009: Cannot access a property or method of a null object reference. faultCode=EncodingError faultDetail=null] I am using a network sniffer to look at the network traffic and when I make the above call I don't see any network traffic. On the other hand if I make a call to the second operation testOP_2 which does not have a date involved it works fine and I see proper SOAP request and responses sent over the network. Also if I fiddle with request that I am sending the testOP_1 and do not send the date at all I get and HTTP request error as expected but there is proper exchange of soap packets that happens. I don't understand why flex is not sending any soap request when it has a UTC date in it. I would be grateful if all you flex experts out there could help. Thank you, Mrinal Wadhwa
[flexcoders] How to Get an XML attribute Name?
Hi All, Is there a way to get 'Attribute Name' and 'Node Name' off xml doc's? Thanks in advance, -Augie
Re: [flexcoders] Problem with code in Adobe Flex Training from the Source
What specifically does not work? You can download the examples to compare with what you have. http://safari.informit.com/media/032142316X - vineet On 1/25/07 11:45 AM, primemate10 [EMAIL PROTECTED] wrote: Could anyone assist me with a section of the Training from the Source book on Adobe Flex? Specifically, the section Working with View States (pages 52-56) just doesn't work as expected. I did the example over third times without any success. Any assistance that anyone can provide will be greatly appreciated.
[flexcoders] Re: Help me find the Amazon book spider example
you mean this? http://amaznode.fladdict.net/ Juan scalenine.com --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: This isn't quite the same link, but it is a Flex app that uses Amazon's webservices API: http://d-p.com/Internet-Development-Services/ria/amazon.cfm For how to do, You can start reading here: http://jeff.mxdj.com/using_amazons_itemsearch_webservice_from_flex.htm http://www.amazon.com/gp/browse.html?node=3435361 Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of oneproofdk Sent: Friday, January 26, 2007 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help me find the Amazon book spider example A few weeks ago (as far as I remember) I saw a cool Flex2 app, that would take a search string for a book title, retrieve data from Amazon and display books in a web-like setup, where the books are connected by wires, if I click on a book, it would retrieve data from Amazon on that book. All those bookcovers were floating around, allowing the user to drag in the web and all things would follow. I'd love to see some example code on how to do this - can anyone help me ? I tryed to post this yesterday - but it never showed up here - so sorry for the double posts if it should arrive twice. Thanks, Mark
[flexcoders] Re: Module Interface Problems
*BUMP* Anyone have any ideas? I still haven't found a solution... K.
[flexcoders] Re: ColumnChart - how to change the clicked column border
CAN SOMEONE PLEASE HELP?! i m stuck! --- In flexcoders@yahoogroups.com, shemeshkale [EMAIL PROTECTED] wrote: please look at my code. i have managed to change the border on mouse roll over/out and select a column on mouse click. BUT... how do i unselect a previously selected column? package components.highlightColumn { import flash.display.Graphics; import flash.geom.Rectangle; import mx.core.IDataRenderer; import mx.graphics.IStroke; import mx.core.UIComponent; import mx.graphics.Stroke; import mx.graphics.LinearGradient; import mx.graphics.GradientEntry; import flash.events.MouseEvent; import mx.charts.chartClasses.Series; public class SelectedColumnRenderer extends Series { public function SelectedColumnRenderer ():void { super(); this.addEventListener(MouseEvent.ROLL_OVER,rollOverHandler); this.addEventListener(MouseEvent.ROLL_OUT,rollOutHandler); this.addEventListener(MouseEvent.MOUSE_DOWN,downHandler); } private var _data:Object; private var stroked:Boolean = false; private var selected:Boolean; private function rollOverHandler(e:MouseEvent):void { stroked = true; invalidateDisplayList(); } private function rollOutHandler(e:MouseEvent):void { if(!selected) stroked = false; invalidateDisplayList(); } private function downHandler(e:MouseEvent):void { selected = true; invalidateDisplayList(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var stroke:IStroke = new Stroke(0x00,2); var w:Number = stroke.weight / 2 ; var rc:Rectangle = new Rectangle(w, 0, width-1 * w, height-1 * w); var fill:LinearGradient = new LinearGradient(); var g1:GradientEntry = new GradientEntry(0x85250B,0); var g2:GradientEntry = new GradientEntry(0xF1AC52,.3); var g3:GradientEntry = new GradientEntry(0xDA3507,.55); var g4:GradientEntry = new GradientEntry(0x85250B,1); fill.entries = [g1,g2,g3,g4]; var g:Graphics = graphics; g.clear(); g.moveTo(rc.left,rc.top); fill.begin(g,rc); if (stroked) stroke.apply(g); g.lineTo(rc.width,0); g.lineTo(rc.width,rc.height); g.lineTo(0,rc.height); g.lineTo(0,0); fill.end(g); this.buttonMode = true; } } } --- In flexcoders@yahoogroups.com, shemeshkale baldhead72@ wrote: hi, i got a simple ColumnChart. i want to make a selected column when one is clicked. kind of ToggleColumnChart :-) when a specific column is clicked its border shoul change. how do i change the clicked column border?? an example code would be great tnx
[flexcoders] Got it : Amazon book spider example
Thanks for all your help - got it and are trying to trplicate. :-) Thanks, Mark
[flexcoders] Re: Help me find the Amazon book spider example
I'm pretty sure this is flash, but it does what you are describing: http://amaznode.fladdict.net/ http://amaznode.fladdict.net/ Also, if you are interested in building this type of app in Flex2, this http://mark-shepherd.com/blog/2006/11/17/a-flex-component-for-graph-vis\ ualization/ is a great starting point. --- In flexcoders@yahoogroups.com, oneproofdk [EMAIL PROTECTED] wrote: A few weeks ago (as far as I remember) I saw a cool Flex2 app, that would take a search string for a book title, retrieve data from Amazon and display books in a web-like setup, where the books are connected by wires, if I click on a book, it would retrieve data from Amazon on that book. All those bookcovers were floating around, allowing the user to drag in the web and all things would follow. I'd love to see some example code on how to do this - can anyone help me ? I tryed to post this yesterday - but it never showed up here - so sorry for the double posts if it should arrive twice. Thanks, Mark
[flexcoders] Do I *REALLY* need Flex Data Services for WebServices?
Hi All, The manual says: Note: You must use the Flex proxy, which is part of Flex Data Services, to ensure that HTTP status codes are returned correctly from HTTP services and web services. On web browsers, when a service returns any status code other than 200, Adobe Flash Player cannot read the body of the response. If the status code is 500 and the body contains a fault, there is no way to get to the fault. The proxy works around this issue by forcing the status code for faults to 200; the player passes the body of the response along with the fault intact. At US $6000 a pop per CPU (departmental license only - $20,000 per CPU for enterprise license) across multiple high-availability data centers you'd be looking down the barrel at more than US $50,000 ** to run a web service proxy ** on a number of good machines. So, does this effectively render Flex RPC services un-useable unless you use Flex Data Services? .. unless you make the assumption that everything always works ... .. what happens when a non-200 status code is encountered? ... or have I got it wrong ... ?? Greg. This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
[flexcoders] A sample code using the xml.syndication library?
Hi, Has someone already implemented the xmlsyndication library? This library is available on Adobe labs and provide a way to generically parse and access any type of RSS or Atom document. I am looking for a code sample which show how to use this library. Thx for any help, Eric
[flexcoders] Developer Positions at Keane, Inc.
Hello, Flex Developers! I hope this message finds you well. Keane has several Flex development positions currently open and we are will to bring developers on permanently or join into a w-2 contract relationship with them. These positions are in the Boston/Cambridge, MA area. If you are looking for a new exciting opportunity, please reply with your resume attached to [EMAIL PROTECTED] If not, please forward this message to friends and colleagues who may benefit from receiving this announcement. Thank you for your interest in Keane. I look forward to hearing from you soon. Regards, Kelly Collier Technical Recruiter 202-422-8766 www.keane.com
[flexcoders] parent-child hierarchy of data using Flex, FDS and Hibernate
Hi, I have a 4 level hierarchy of data in my application with a bi-directional one-to-many relationship between each level as follows: PlanPoint (parent) -- UserScenario (child) Scenario (grandchild) -- Competitor (great grandchild) I have a hibernate back end running under JBoss and I am using FDS to synchronise the changes from my Flex UI. My DB will be Oracle, but for the time being I am just testing with a HSQLDB for convenience. I have managed to create a destination in FDS which will retrieve the parent objects. The hibernate mapping docs specify the further retrieval of the graph of objects attached to them. This all works fine and performs reasonably well, although I have been unable to get any meaningful lazy loading to work (a problem for another time). My problem comes in that the user will interact deeply with the graph of objects during the client session. This includes adding, removing and updating objects at all levels. What I can't seem to get right is the interaction in the Flex layer which copes with this level of interaction. For instance if I want to add a new Competitor to a Scenario do I (i) create all new objects on the client and then synchronise the server, or (ii) initiate creation of a new object on the server and then modify it on the client? I seem to have problems in both directions and the same isue for delete and to a certain extent modify. I only have a single FDS destination defined, so any alterations appear to go through the PlanPoint Object at the root of the tree and as a result much more data gets passed back and forth than I would like. I'm not sure if I am just a little simplistic in my design and need more sophistication in my relationship between the client and server, or whether I just need a bit more code in my client to manage the object state. Any guidance would be greatly appreciated as I'm beginning to swim in circles.
[flexcoders] Flex Builder 2.0.1 - Bug? with DataGridColumn.visible property
Hi, Here is the problem (bug ?) that I have with Flex Builder 2.0.1 (Not with Flex 2.0.0 ) : In a mxml component, I have a Datagrid with many Datagridcolumn. If I set the visible property of any datagridcolumn to false, the column does not display on the first load of the datagrid. But if I sort the data by a column by clicking its header, the hidden column appear ! I have the same comportment if I change the currentState of my application (hidding the datagrid) and come back to the state with my Datagrid : the hidden column is now visible ! Is this a bug ? Is any know workaround ? Thanks Mickael begin:vcard fn:RUELLAN Mickael n:Mickael;RUELLAN adr;quoted-printable;dom:;;3 impasse lafargue;St Germain de la rivi=C3=A8re;;33240 email;internet:[EMAIL PROTECTED] tel;cell:0682342201 version:2.1 end:vcard
RE: [flexcoders] Help me find the cool Flex2 - Amazon dataminer
Ive seen more than one of these. Here is one: http://www.flowser.com/us/flowserST.html _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of oneproofdk Sent: Thursday, January 25, 2007 11:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help me find the cool Flex2 - Amazon dataminer A few weeks ago I saw a cool Flex2 app, that would take a search string, then pull data from Amazon and make a web of images, linked together and draggable. WHen you click on a book, it would get new data from Amazon etc. Any one who has a link ? Thanks, Mark
[flexcoders] Re: DataGrid Custom Image Renderer - Random Cache Weirdness
Anybody? --- In flexcoders@yahoogroups.com, Anthony Onumonu [EMAIL PROTECTED] wrote: I seem to be having very weird results. The correct image from my cell renderer does not always display. I'm not sure if it's some sort of caching from previous requests. Is the problem with the way I'm setting the data on the cell renderer. I've tried various methods all rendering weird results. Sample node from XML returned from HTTP request file file_namefile_directory_list.php/file_name file_size1.8/file_size file_typefile/file_type file_modified27th January, 2007/file_modified file_extensionphp/file_extension /file Cell Renderer ?xml version=1.0 encoding=utf-8? !-- itemRenderers\dataGrid\myComponents\RendererDGHeader.mxml -- mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; [Embed(source=png/php.png)] [Bindable] public var php:Class; private function setCustomIcon(setValue:String):void { image_id.source = this[setValue]; } ]] /mx:Script mx:HBox horizontalAlign=center mx:Image id=image_id x=20 height=20 creationComplete=setCustomIcon(data.file_extension) / /mx:HBox /mx:HBox Datagrid mx:DataGrid id=dgUserRequest width=100% height=100% dataProvider={userRequest.lastResult.files.file} itemClick=itemClickEvent(event); borderStyle=solid mx:columns mx:DataGridColumn width=120 headerText= dataField=file_type itemRenderer=renderer.icons/ mx:DataGridColumn headerText=Name dataField=file_name/ mx:DataGridColumn headerText=Size dataField=file_size/ mx:DataGridColumn headerText=Date Modified dataField=file_modified/ mx:DataGridColumn headerText=Extension dataField=file_extension/ /mx:columns /mx:DataGrid
[flexcoders] Re: Flex applications look like Fisher-Price toys
Thank you everybody. The examples are nice, but my problem remains: these sites use same size for components like input fields, combobox, buttons and text. So, I posted images at this address: www.flickr.com/photos/[EMAIL PROTECTED]/ http://www.flickr.com/photos/[EMAIL PROTECTED]/ Now, you can see what worries me!
[flexcoders] Strange behaviour on Fade Alpha Effect
Hello, i am trying to create a fade In alpha effect with 4 seconds, but there is a strange behavior happening. If i put 4000 on the duration of the Fade effect, the image fades in on the first second, despite the effectEnd being triggered after the 4 seconds. Check this, and wait until the Alert box shows up. http://www.webfuel.pt/jsaleiro/FadeAlphaTest/FadeAlphaTest.html As you can see, the image fades in on the first second, when it should take four seconds. Do you have any idea why is this happening? The code of the example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=fadeInImage.play() mx:Image x=74 y=22 source=@Embed('test.jpg') id=imagem/ mx:Fade alphaTo=100 duration=4000 id=fadeInImage target={imagem} effectEnd=Alert.show('Ended')/ mx:Script ![CDATA[ import mx.controls.Alert; ]] /mx:Script /mx:Application Thank you, João Saleiro
[flexcoders] Documentation of FDS estination metadata tag
Does anyone have any reference material on the metadata tag in an FDS destination? It is alluded to in the User Guide with some intriguing possibilities, but I can find no firm documentation or use cases. Any information gratefully received Thanks
[flexcoders] Re: ArrayCollection Stack
--- In flexcoders@yahoogroups.com, m2281m2281 [EMAIL PROTECTED] wrote: I have a simple data grid that is tracking messages, when a message comes in addItem() adds it to the bottom of the list. What I need is more of a stack so that messages are added to the top. Is there a collection that behaves as a stack or do I need to emulate this by somehow adding new items to the top of the collection? Thanks, Mike use addItemAt(xxx, 0) It's mean addItem at first... ;) Have good day...
Re: [flexcoders] Help with Variable ItemRenderer
Suppose the dataprovider has two field: type and text type will indicate if it should show text or image text is the content that is should show: for the label, it is the text for the image it is the image path .or you can implement another filed callled path to store image path. it doesn't matter I think you could write a something like this: mx:DataGridColumn headerText= width=28 dataField=icon mx:itemRenderer mx:Component mx:HBox width=400 height=300 mx:Text text={this.data.text} visible={ this.data.type=='text'}/ mx:Image source={this.data.text} visible={ this.data.type!='text'}/ /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn On 1/26/07, sthdejavu [EMAIL PROTECTED] wrote: I am trying to create an MXML ItemRenderer that displays a different state depending on it's data. Its state does not change by any user interaction. For instance, if data.type = 'text', show the label state, else show the image state. Where can I set currentState so that each itemRenderer displays as it should? Is this even possible? All of my renderers always turn out one way or the other. I'm beginning to think I have to do this in ActionScript... or maybe a hack where I fire a function on creationComplete that changes the data.type to some other value and back again so that the binding fires?? Any help would be great. Thanks in advance.
[flexcoders] Tutorial / Help on making nice looking popup's / tooltips
Hi all. For a datagrid (among others) I'd like to make a extended tooltip, that would get live data from the server. I have a datagrid http://flex2.dk/mark/screencaps/mainapp.jpg where I'd like to make a nice tooltip when the user click on a dg item. I've really fallen in love with the way it appears and look in ArcWeb explorer - a Flex2 application. http://www.arcwebservices.com/awx/index.jsp You can see a screencap here : http://flex2.dk/mark/screencaps/fancypop.jpg I need it to get some data using httpservice when the user click and put that data into the tooltip. How could I implement this behaviour ? Any links to tutorials guides helpers will be greatly appreciated. Thanks for your help. Mark
[flexcoders] Rotating an object inside a HBox compared to a Canvas
I have been working on a seating layout application for a set of rooms in a building. The current perspective is from the presenter's point of view (looking towards the back of the room). I have been asked to provide an inverted view (standing in the back and looking forward). Each seat contains an image and text so just flipping the entire canvas would result in the images and text being upside down and difficult to read. What I decided to do was move each seat to its inverse location and rotate it 180 degrees from its original orientation. I was able to this, but I still had the problem of the inverted image and text within the seat. I thought I could just rotate the contents of the seat 180 degrees so the orientation would be correct, but I ran into a sizing problem. I found that the mouseOver event on the seat was firing even though the mouse was not over the seat image. After some debugging I found that the second rotation of the image was essentially making the seat twice as wide and twice as tall, which was really causing problems since my seats were already close to each other to begin with. And even move confusing was if I flipped the layout again the seats went back to their original size. My seat component was a Canvas with a VBox representing the frame of the seat (an image inside this frame) and then another Canvas for performing actions on the seat like moving, rotating and deleting. I started to try different things to see what would happen and found that the sizing problem went away if I rotated the image directly rather than the frame itself (however this was not ideal for other drag and drop problems with the 0,0 coordinate.) Eventually I found that if I wrap the VBox frame inside another VBox or made the Seat component a HBox, I could rotate the frame without the sizing problem and things seemed to behave as I expected. My question is why does the surrounding canvas of a rotating object change size? It seems dumb to add another VBox layer or define the object as a HBox when I do not need the extra features the HBox provides. You can see a crude example at http://flex- dev.wharton.upenn.edu/users/johnrp/Misc/bin/Miscellaneous.html and the source code is below. Thanks, John index.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns=* creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.AbstractEvent; import Seat; import SeatHBox; private function onCreationComplete():void { seat1.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat2.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat3.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat1.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat2.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat3.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat4.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat5.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat6.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat4.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat5.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat6.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); } private function onMouseOver (event:MouseEvent):void { event.currentTarget.vwOptions.visible=true; } private function onMouseOut (event:MouseEvent):void { event.currentTarget.vwOptions.visible=false; } private function btnFlipClick():void { seat1.rotateSeat(); seat4.rotateSeat(); seat3.rotateStudentCanvas(); seat2.rotateStudentCanvasImage(); seat6.rotateStudentCanvas();
[flexcoders] Re: flex.messaging.config.ConfigurationException. ???10101-details???
I guess from lack of response that this is not a common problem.. BUT nonetheless after some additional trial and error, I found the solution: I apparently had an unsavory mix of Flex 2.0 and Flex 2.0.1 on the FDS server side installation. Reinstalling Flex 2.0.1 FDS in its entirely made the problem finally go away. I can now compile on the fly on the server. --- In flexcoders@yahoogroups.com, sgrosven2 [EMAIL PROTECTED] wrote: Anyone else had this problem and solved it? thanx much
RE: [flexcoders] Binding a property to a function
There are several examples in the updated data binding doc on the Flex Doc blog: http://blogs.adobe.com/flexdoc/ Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Uhlmann Sent: Friday, January 26, 2007 11:27 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding a property to a function Checkout mx:Binding and function bindings from Chapter 37 in Part 5 of Flex 2 Developer Guide about Bindings. and Observe/ObserveValue http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s. cfm#more http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s .cfm#more http://weblogs.macromedia.com/paulw/archives/2006/05/the_worlds_smal.cf m Best, Alex Alex Uhlmann Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://weblogs.macromedia.com/auhlmann http://weblogs.macromedia.com/auhlmann From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lieven Cardoen Sent: 26 January 2007 13:21 To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding a property to a function Is it possible to bind a property to a function... A bit like the MVC-pattern... When a property changes, a function should be triggered... BindingUtils can't seem to do this. Thx, Lieven Cardoen Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk att14d75.gif Description: att14d75.gif
Re: [flexcoders] Rotating an object inside a HBox compared to a Canvas
Hi, Without looking at your code, I can say the framework is not designed to measure rotated components. They would have to use trig in the measure and update algorithms to do this. You 'could' code this but, let me tell you , it would be complicated. You can't even rotate a component in a canvas and expect the scroll bars to measure it correctly let alone a Box container. Peace, Mike On 1/25/07, Johnrp23 [EMAIL PROTECTED] wrote: I have been working on a seating layout application for a set of rooms in a building. The current perspective is from the presenter's point of view (looking towards the back of the room). I have been asked to provide an inverted view (standing in the back and looking forward). Each seat contains an image and text so just flipping the entire canvas would result in the images and text being upside down and difficult to read. What I decided to do was move each seat to its inverse location and rotate it 180 degrees from its original orientation. I was able to this, but I still had the problem of the inverted image and text within the seat. I thought I could just rotate the contents of the seat 180 degrees so the orientation would be correct, but I ran into a sizing problem. I found that the mouseOver event on the seat was firing even though the mouse was not over the seat image. After some debugging I found that the second rotation of the image was essentially making the seat twice as wide and twice as tall, which was really causing problems since my seats were already close to each other to begin with. And even move confusing was if I flipped the layout again the seats went back to their original size. My seat component was a Canvas with a VBox representing the frame of the seat (an image inside this frame) and then another Canvas for performing actions on the seat like moving, rotating and deleting. I started to try different things to see what would happen and found that the sizing problem went away if I rotated the image directly rather than the frame itself (however this was not ideal for other drag and drop problems with the 0,0 coordinate.) Eventually I found that if I wrap the VBox frame inside another VBox or made the Seat component a HBox, I could rotate the frame without the sizing problem and things seemed to behave as I expected. My question is why does the surrounding canvas of a rotating object change size? It seems dumb to add another VBox layer or define the object as a HBox when I do not need the extra features the HBox provides. You can see a crude example at http://flex- dev.wharton.upenn.edu/users/johnrp/Misc/bin/Miscellaneous.html and the source code is below. Thanks, John index.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns=* creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.AbstractEvent; import Seat; import SeatHBox; private function onCreationComplete():void { seat1.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat2.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat3.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat1.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat2.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat3.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat4.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat5.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat6.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat4.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat5.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat6.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); } private function onMouseOver (event:MouseEvent):void { event.currentTarget.vwOptions.visible=true; } private function onMouseOut (event:MouseEvent):void { event.currentTarget.vwOptions.visible=false; } private function btnFlipClick():void { seat1.rotateSeat(); seat4.rotateSeat(); seat3.rotateStudentCanvas(); seat2.rotateStudentCanvasImage(); seat6.rotateStudentCanvas(); seat5.rotateStudentCanvasImage(); } ]] /mx:Script mx:Canvas id=classroomCanvas width=100% height=100% y=100 mx:Label text=Seat as a VBox y=450 x=0 / mx:Label text=Seat as a Canvas y=100 x=0 / mx:Label text=Flip the outter most#10;object (Seat) y=0 x=150 height=30 / mx:Label text=Flip the inner most#10;object (Gray Box) y=0 x=300 height=30 / mx:Label text=Flip the middle object#10;(Gray Box with White Frame) y=0 x=450 height=30 width=200 / SeatHBox id=seat4 y=400 x=150 / SeatHBox id=seat5 y=400 x=300 / SeatHBox id=seat6 y=400 x=450 / Seat id=seat1 y=50 x=150 / Seat id=seat2 y=50 x=300 / Seat id=seat3 y=50 x=450 / /mx:Canvas mx:Button x=300 y=400 id=btnFlip click=btnFlipClick () mx:labelFlip/mx:label /mx:Button /mx:Application Seat.mxml mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* borderStyle=solid borderColor=#00 mx:Script ![CDATA[ [Bindable] public var
Re: [flexcoders] Re: Flex applications look like Fisher-Price toys
Hi, Simple fix now that I see what you are talking about. I took a screen shot of you form, measured the button exactly. 15 pixels height? 13 pxiels font size? using this in css Button { paddingTop:-2; paddingBottom:0; } The label text on the button is perfectly centered. As far as the textinput and combo box, you would need to extend the class. With something to the effect of. package { import mx.controls.TextInput; [Style(name=paddingTop, type=Number)] public class TextInputExtension extends TextInput { /** * @private */ override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var paddingTop:Number = getStyle(paddingTop); textField.y += -2//paddingTop; textField.height += 5 } } } Yes, this is a deficiencies of the framework. But I would ask this for a feature enhancement of the controls to HONOR all 4 paddings in updateDisplayList() and measure(). So, bottom line is if you 'want' those small features, you will have to code them yourself. I know for a fact taht Adobe tries to do things that a majority of developers will use. As far as I know you are the first that has brought up setting control size smaller that the conventions. I do think Adobe needs to be consistent with all controls enabling padding on all sides so you can use css to do negetive psotions of the composited controls. Peace, Mike On 1/29/07, Paul Barbieux [EMAIL PROTECTED] wrote: Thank you everybody. The examples are nice, but my problem remains: these sites use same size for components like input fields, combobox, buttons and text. So, I posted images at this address: www.flickr.com/photos/[EMAIL PROTECTED]/ Now, you can see what worries me! -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Flex Builder 2.0.1 - Bug? with DataGridColumn.visible property
On Monday 29 January 2007 11:40, Mickael RUELLAN wrote: Is this a bug ? Several people have reported a similar sounding issue. I know Adobe are aware of it. Is any know workaround ? Apparently, setting the property via ActionScript works OK. You might also try making sure you are doing a clean build. -- Tom Chiverton Helping to revolutionarily accelerate six-generation e-tailers 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: Cairngorm - Question on using ResultHandler
Well if your remote call is returning an object, then u do event.result ... if its returning a list of objects and u need to access the first, second, etc.. element then do event.result[0]. If its a map, then do event.result[keyname] Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson Sent: Sunday, January 28, 2007 9:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm - Question on using ResultHandler Hi, Thanks for the help. That worked and it called the next command which is what I wanted. In my result handler in the command that gets called next this works: public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent model.employeeList = event.result[0]; } This does NOT work: I am just trying to find out why, and if the above is how most do this. public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent model.employeeList = event.result } Thanks, -M --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: You are doing things the right way. If after you login you want to do some more, look at the SequenceCommand. You would basically add a executeNextCommand() statement after your model.workflowState statement. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson Sent: Sunday, January 28, 2007 1:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm - Question on using ResultHandler Hi, I have a question using Cairngorm and Commands. I am new to it but its making more sense to me each day at least it seems that way. I have the following in my LoginCommand.as public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; if (event.result.length 0) { model.workflowState = ModelLocator.VIEWING_HOMEPAGE; } else { model.login.statusMsg = Your login credentials are invalid, please try again.; } } 1. Is there anything wrong with the way I am doing the above? 2. I would like to call some other remote objects s! o I can populate some datagrids after the user has been authenticated and then load the home page of the app as I am doing above. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?
Greg, Without Flex Data Services, I do get the basic error code message , but have to look at server logs to see stack traces.
Re: [flexcoders] Do I *REALLY* need Flex Data Services for WebServices?
On Monday 29 January 2007 01:30, Greg McCreath wrote: So, does this effectively render Flex RPC services un-useable unless you use Flex Data Services? .. unless you make the assumption that everything always works ... You can still try/catch the execution, or make sure your results parser functions OK. -- Tom Chiverton Helping to ambassadorially maximize internet appliances 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: using mx:Tree to get custom icons
Beautiful!!! thats great! --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: This is much easier than you suspect. You need to use an iconFunction(). I don't have an example to point to, but I'm sure there is one in the docs. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jensen.axel Sent: Thursday, January 25, 2007 4:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] using mx:Tree to get custom icons I'm working with a real estate company, and making an administrative utility, to manage properties... some of these properties are not active, or they are in a certain price range (100,000 - 200,000) or (200,000 - 300,000) and for ease of use, I would love to be able to replace the icon on my leaf nodes with custom ones, depending on data... for example (is the property active... if not... put a red X there, and if it is in a 100,000 - 200,000 price range, put a blue icon there...) there are many different status states that these properties could be in... We integrated flex with google maps with using the FA-bridge, and I'm using custom icons on the map... google maps needs a Latitude, Longitude for plotting pointers(markers) on the map... Say a property doesn't have a latitude and longitude assigned yet, i would like a custom icon in the tree for that... as well as if the property isActive, and the different price ranges as well... so i think you are probably getting the point of what i want... I have a tree, and i want the leaf nodes to be those custom icons... The icons will depend on data in the dataProvider, but I haven't got the slightest clue as to how to even put a custom icon into the tree, let alone, differentiating the icon depending on data... if anyone out there has used custom icons in the mx:Tree that would be awesome I could probably figure it out from there... I've looked at extending the tree on livedocs http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww help.htm?context=LiveDocs_Partsfile=0856.html http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/w whelp.htm?context=LiveDocs_Partsfile=0856.html but it changes the display of the data, but I'm trying to chase down where the actual icon gets set, and I cant seem to figure it out... I will used the hasChildren() function to find out if the node is a leaf node or not, and if so then use the custom icon... anyway... Thanks for your time Axel Jensen
[flexcoders] Interfaces and events
I 've been puzzled by the fact that some standard Flex 2 interfaces (for example IList) have events associated with them. Is there a way to enforce an interface implementation emmits an event? And you do you declare that?
[flexcoders] HTTPService with variable number of parameter
Hello, I have to call a servlet and give it a variable number of parameters, example: a22a/b33b/c444c/ or a222a/z233z/ I suppose it will be possible in AS3 doing somthing like : srv.send(an XMLList with my parameters); but it seems don't works! the mxml of the HTTPService is the following: mx:HTTPService id=executeurl=http://localhost:8080/prototype2/GetExecute; method=GET useProxy=false resultFormat=e4x /mx:HTTPService Can someone help me? thanks Lorenzo
[flexcoders] Chart with icons instead of axis labels?
Has anybody achieved this in Flex 2? Basically what I want to do is display a BarSeries with a verticalAxis that has axis icons instead of axis labels. I have a hunch that it will involve some serious effort in hacking together a custom AxisRenderer. Thoughts? Brian
Re: [flexcoders] Do I *REALLY* need Flex Data Services for WebServices?
Hi, I'm using WebService from a PHP server. It's working well except for fault that return a 500 code status. In PHP if you want to generate a fault you can use the SOAPFault that return a 500 code status with the error code and the error message. If there is fault in your PHP code, the SOAPFault is used. The flash player can't read the 500 code message because theses message are ignored. So nothing happen when an 500 code is sent. For myself, I use another tools to see the 500 error message if nothing happen in flash player. Is this answers your question ? Mickael Greg McCreath a écrit : Hi All, The manual says: Note: “You must use the Flex proxy, which is part of Flex Data Services, to ensure that HTTP status codes are returned correctly from HTTP services and web services. On web browsers, when a service returns any status code other than 200, Adobe Flash Player cannot read the body of the response. If the status code is 500 and the body contains a fault, there is no way to get to the fault. The proxy works around this issue by forcing the status code for faults to 200; the player passes the body of the response along with the fault intact.” At US $6000 a pop per CPU (departmental license only – $20,000 per CPU for enterprise license) across multiple high-availability data centers you’d be looking down the barrel at more than US $50,000 ** to run a web service proxy ** on a number of good machines. So, does this effectively render Flex RPC services un-useable unless you use Flex Data Services? .. unless you make the assumption that everything always works … .. what happens when a non-200 status code is encountered? … or have I got it wrong … ?? Greg. This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. begin:vcard fn:RUELLAN Mickael n:Mickael;RUELLAN adr;quoted-printable;dom:;;3 impasse lafargue;St Germain de la rivi=C3=A8re;;33240 email;internet:[EMAIL PROTECTED] tel;cell:0682342201 version:2.1 end:vcard
Re: [flexcoders] Flex Builder 2.0.1 - Bug? with DataGridColumn.visible property
Thanks for your answer Tom, I tried to set with AS but it's still the same problem. I will try another way. Thanks Mickael Tom Chiverton a écrit : On Monday 29 January 2007 11:40, Mickael RUELLAN wrote: Is this a bug ? Several people have reported a similar sounding issue. I know Adobe are aware of it. Is any know workaround ? Apparently, setting the property via ActionScript works OK. You might also try making sure you are doing a clean build. begin:vcard fn:RUELLAN Mickael n:Mickael;RUELLAN adr;quoted-printable;dom:;;3 impasse lafargue;St Germain de la rivi=C3=A8re;;33240 email;internet:[EMAIL PROTECTED] tel;cell:0682342201 version:2.1 end:vcard
[flexcoders] Viewstack Navigation Reference problem
I am using the namespace steps in order to refer to a viestacks pages which are navigated to from buttons I have above the viewstack. This is what I click to go to a particlular step (steps:Step1 /): mainNav.selectedChild=step1; (mainNav is the viewstack ID). How can I reference to this functionality from within the Step1.mxml file which is in the folder Steps? It doesnt seem to work when i use the same as the button in the main application. Thanks, Alexander
RE: [flexcoders] Syntax Error: A string literal must be terminated before the line break.
Probably somewhere you have code like this: mx:Label id=abc text=this is my text color=red ... Comment out the lines until you find the exact location of the error. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Roger Ross Sent: Friday, January 26, 2007 3:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Syntax Error: A string literal must be terminated before the line break. Hello, What does this error mean? I have compared my code to the code in the tutorial files and it looks the same. Syntax Error: A string literal must be terminated before the line break. I get the error for this code as well; mx:SetProperty target={products} name=width value=0/ mx:SetProperty target={products} name=height value=0/ mx:SetProperty target={cartBox} name=width value=100%/ mx:AddChild relativeTo={cartBox} position=lastChild other code /mx:AddChild any idea's... Thanks Roger
Re: [flexcoders] HTTPService with variable number of parameter
try appending your url-encoded value pair-parameters to the url property of your httpservice. or you can use URLvariable and attach it as data. Cheers! --- lruinelli [EMAIL PROTECTED] wrote: Hello, I have to call a servlet and give it a variable number of parameters, example: a22a/b33b/c444c/ or a222a/z233z/ I suppose it will be possible in AS3 doing somthing like : srv.send(an XMLList with my parameters); but it seems don't works! the mxml of the HTTPService is the following: mx:HTTPService id=executeurl=http://localhost:8080/prototype2/GetExecute; method=GET useProxy=false resultFormat=e4x /mx:HTTPService Can someone help me? thanks Lorenzo Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
[flexcoders] Re: How to vertically center the label of a ComboBox
Thanks for pointing that out Ju. Since its protected, I know I have to subclass ComboBox, but am having trouble figuring out which method I need to override to adjust textInput's position. I tried createChildren() and updateDisplayList() with no luck. Pointers anyone? Thanks, Ben --- In flexcoders@yahoogroups.com, Ju Aedis [EMAIL PROTECTED] wrote: hello Ben: In ComboBox,it has a textInput compoent, you can set textInput's x, y, width and height. just like: textInput.setActualSize(..., ...); textInput.move(..., ...); 2007/1/27, ben.clinkinbeard [EMAIL PROTECTED]: Hello, our design includes an oversized ComboBox that is about twice as tall as the default component. Setting the height attribute is easy enough, but the label remains a fixed distance from the top rather than being vertically centered. I am assuming this is simply a styling property oversight and am hoping someone can point me in the right direction on how to correct this behavior. Thanks, Ben
RE: [flexcoders] Rotating an object inside a HBox compared to a Canvas
Michael, Thanks for the response but I think you may be misunderstanding the question and I should mention I am using Flex 2 which has the Rotate effect unlike 1.5. The question is around the fact that it does work using a Box container but doesn't work with a Canvas. The answer may be what you are saying about the measuring aspect, but the other thing is that if you look at the example at http://flex-dev.wharton.upenn.edu/users/johnrp/Misc/bin/Miscellaneous.ht ml , specifically the seat to the far right, you will see that the rotate happens above the outermost container when using a VBox and it happens below the outermost container when using a Canvas and this is when the resizing occurs. John ** John R. Piotrowski Programmer Analyst Wharton Computing Email: [EMAIL PROTECTED] ** From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Monday, January 29, 2007 8:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Rotating an object inside a HBox compared to a Canvas Hi, Without looking at your code, I can say the framework is not designed to measure rotated components. They would have to use trig in the measure and update algorithms to do this. You 'could' code this but, let me tell you , it would be complicated. You can't even rotate a component in a canvas and expect the scroll bars to measure it correctly let alone a Box container. Peace, Mike On 1/25/07, Johnrp23 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have been working on a seating layout application for a set of rooms in a building. The current perspective is from the presenter's point of view (looking towards the back of the room). I have been asked to provide an inverted view (standing in the back and looking forward). Each seat contains an image and text so just flipping the entire canvas would result in the images and text being upside down and difficult to read. What I decided to do was move each seat to its inverse location and rotate it 180 degrees from its original orientation. I was able to this, but I still had the problem of the inverted image and text within the seat. I thought I could just rotate the contents of the seat 180 degrees so the orientation would be correct, but I ran into a sizing problem. I found that the mouseOver event on the seat was firing even though the mouse was not over the seat image. After some debugging I found that the second rotation of the image was essentially making the seat twice as wide and twice as tall, which was really causing problems since my seats were already close to each other to begin with. And even move confusing was if I flipped the layout again the seats went back to their original size. My seat component was a Canvas with a VBox representing the frame of the seat (an image inside this frame) and then another Canvas for performing actions on the seat like moving, rotating and deleting. I started to try different things to see what would happen and found that the sizing problem went away if I rotated the image directly rather than the frame itself (however this was not ideal for other drag and drop problems with the 0,0 coordinate.) Eventually I found that if I wrap the VBox frame inside another VBox or made the Seat component a HBox, I could rotate the frame without the sizing problem and things seemed to behave as I expected. My question is why does the surrounding canvas of a rotating object change size? It seems dumb to add another VBox layer or define the object as a HBox when I do not need the extra features the HBox provides. You can see a crude example at http://flex- dev.wharton.upenn.edu/users/johnrp/Misc/bin/Miscellaneous.html and the source code is below. Thanks, John index.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute xmlns=* creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.AbstractEvent; import Seat; import SeatHBox; private function onCreationComplete():void { seat1.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat2.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat3.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat1.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat2.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat3.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat4.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat5.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat6.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat4.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat5.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut); seat6.addEventListener
Re: [flexcoders] Help with Variable ItemRenderer
better do it in Actionscript. Use either the initialize or the updateComplete events to trigger your itemrenderer change... also consider that you cnt set a string as the itemrenderer like what you 'seemingly' do in mxml. you wil have to use a classfactory to be able to use the class/UIcomponent you want. Moreover,depending on where and when you set your itemrenderer, you may have to invoke invalidateproperties(), invalidatesize(), and/or updatedisplaylist. --- northwood Lee [EMAIL PROTECTED] wrote: Suppose the dataprovider has two field: type and text type will indicate if it should show text or image text is the content that is should show: for the label, it is the text for the image it is the image path .or you can implement another filed callled path to store image path. it doesn't matter I think you could write a something like this: mx:DataGridColumn headerText= width=28 dataField=icon mx:itemRenderer mx:Component mx:HBox width=400 height=300 mx:Text text={this.data.text} visible={ this.data.type=='text'}/ mx:Image source={this.data.text} visible={ this.data.type!='text'}/ /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn On 1/26/07, sthdejavu [EMAIL PROTECTED] wrote: I am trying to create an MXML ItemRenderer that displays a different state depending on it's data. Its state does not change by any user interaction. For instance, if data.type = 'text', show the label state, else show the image state. Where can I set currentState so that each itemRenderer displays as it should? Is this even possible? All of my renderers always turn out one way or the other. I'm beginning to think I have to do this in ActionScript... or maybe a hack where I fire a function on creationComplete that changes the data.type to some other value and back again so that the binding fires?? Any help would be great. Thanks in advance. Never Miss an Email Stay connected with Yahoo! Mail on your mobile. Get started! http://mobile.yahoo.com/services?promote=mail
[flexcoders] Re: Flex2 Metadata / Compiler Options Question
That looks like it will do the trick for Arrays, thanks for the help. Anyone know why the compiler throws out metadata though? There are other situations in our code where we are marking up class definitions to provide information to other code at runtime. It seems rather odd that annotations (or something like it) are completely supported and possible, but then prevented by some hidden aspect of the compiler over which developers don't have control. It seems even stranger that compiler arguments can be used to make them work in debug mode but not in run mode. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 25 January 2007 12:46, gtuhl wrote: Does anyone have any idea for working around this? http://livedocs.macromedia.com/flex/2/docs/1652.html#162732 -- Tom Chiverton Helping to preemptively optimize front-end ROI 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] How do you format your code?
I just wanted to throw this topic out there to share how I format my flex code and see what other people think. We all know how Flex does it by default. But I find those long lines hard to read as code. They are especially problematic for version control, as a change to any part of the line looks like a change to the whole line in a difference viewer. So, here's a fragment of my code. If you are using an email reader that changes this email to plain text, you may lose a bit of the point of it. mx:HDividedBox id=historyBox label=Activity width=100% height=100% styleName=tabBox mx:VBox height=100% minWidth=240 width=240 mx:TabNavigator id=usersViewTabNav height=100% width=100% change=usersViewTabChange() mx:VDividedBox id=detailUserListTeam label=Teams width=100% height=100% mx:DataGrid id=teamGrid dataProvider={WAT.teams} height=20% width=100% minHeight=100 verticalGridLines=false change=detailUserListTeamSelectionChange() mx:Button id=editTeamsBtn label=Edit Teams click=editTeamClick() / I leave the id on the same line as the component declaration because that way it shows up in the Outline view (why it doesn't always put the id on the Outline view no matter what the formatting is, I have no idea). Otherwise, I put each attribute on a single line. This means any change shows up quite nicely in a difference viewer. I put the closing or / on a line of its own for the same reason. Unfortunately, Flex doesn't really respect this style and when working with the property editor it can tend to rearrange it. I then have to go back in and fix the formatting. What I really wish is that I could somehow make Flex/Eclipse aware of how I like to format things so that it would help me out. I also wish I could do something like alphabetically sort the attributes (leaving the id at the top) with a keystroke (kind of like the Organize Imports command). Would be great to have a command that would pretty-print all the source code in the open file. -- Jason
[flexcoders] Modules: mxml and as are compiled in different ways?
Hello everybody, I've just faced an issue and I'd like to know if it's a bug or a known feature. I've got to develop a MDI-like application and I'm playing with modules. So I defined various as (pay attention here, I mean .as files) classes extending the mx.modules.Module class and compiled them as modules. Each of these classes references some TitleWindow subclasses which I try to open from the main application. Well, nothing works: I've got different errors (depending on the window I try to open) about null values in graphical properties. I changed my modules classes to .mxml classes (I mean .mxml files), keeping the mx.modules.Module as the parent class, and everything seems to work. Summarizing, I try to compile as modules these files: - MyModule.as class MyModule extends Module { /* This DOESN'T WORK */ } - MyModule.mxml mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; !-- WORKS! -- /mx:Module What's this? Can't I extend an mxml class using an as file? I don't think so, since I've used this technique in other cases and evrything went smooth. I suppose it is an issue of the file I'm going to compile. If so, can't I force the compiler to handle an as file like an mxml one? I need this since I'd like my Module subclass to implement a certain interface. Thank you. Regards, Lorenzo -- Lorenzo Benvenuti Senior Programmer Tagetik Software Via Farnesi, 141 55100 Lucca Tel. (+39)058396811 Fax. (+39)058391199 [EMAIL PROTECTED] http://www.tagetik.com Questo messaggio puo' contenere informazioni di carattere estremamente riservato e confidenziale. Qualora non foste i destinatari, vogliate immediatamente informarci con lo stesso mezzo ed eliminare il messaggio, con gli eventuali allegati, senza trattenerne copia. Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non prendere cognizione della corrispondenza tra altri soggetti, salvo piu' grave illecito, ed espone il responsabile alle relative conseguense civili e penali. http://www.tagetik.it/azienda/privacy_form per cancellare o modificare il profilo. Nel rispetto della vostra privacy – http://www.tagetik.it/azienda/privacy-policy-1 per visionare la nostra policy. This message is being sent from Tagetik and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties, and may constitute a more serious offense. http://www.tagetik.com/company/privacy_form?set_language=en to unsubscribe or modify your profile. We respect your right to privacy - http://www.tagetik.com/company/privacy-policy?set_language=en to view our policy. -- 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] Viewstack Navigation Reference problem
1) You can broadcast an event that the parent will listen too and then switch the view 2) change the value of variable in a global model that is bound to the selectedIndex property of the viewstack Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Tsoukias Sent: Monday, January 29, 2007 9:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Viewstack Navigation Reference problem I am using the namespace steps in order to refer to a viestacks pages which are navigated to from buttons I have above the viewstack. This is what I click to go to a particlular step (steps:Step1 /): mainNav.selectedChild=step1; (mainNav is the viewstack ID). How can I reference to this functionality from within the Step1.mxml file which is in the folder Steps? It doesnt seem to work when i use the same as the button in the main application. Thanks, Alexander -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
Re: [flexcoders] Interfaces and events
On Monday 29 January 2007 14:18, tvikatos wrote: Is there a way to enforce an interface implementation emmits an event? And you do you declare that? I don't think so, no. If you have a IFooControl interface which emits a FooEvent , and a BarControl that implements it and displays a Foo button to fire FooEvent, there is no way to guaranty that the Foo button will ever be pressed. Maybe your sub class doesn't need that Event and so never fires it. -- Tom Chiverton Helping to confidentially develop third-generation initiatives 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: Cairngorm 'unable to open' Error?
for what it's worth, this article says you can ignore it, but hints that there is a fix: http://www.firemoss.com/blog/index.cfm?mode=entryentry=BB4775B4-3048-55C9-43F43353AEA85A39 --- In flexcoders@yahoogroups.com, Kevin Merritt [EMAIL PROTECTED] wrote: Sounds like other people may have had this problem, but I can't find a solution online... After installing Cairngorm (Flex Builder 2 Mac Pre-release), I am getting this error: unable to open C:\dev\swat\projects\ac_emea\Cairngorm\buildlib Does anyone know what is causing this and how to fix it? thanks, kevin
RE: [flexcoders] Modules: mxml and as are compiled in different ways?
In AS you cant extend Module, you have to extend ModuleBase class. Its in the docs, it explains both ways of doing it. Dimitrios Gianninas RIA Developer Optimal Payments Inc. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Benvenuti Sent: Monday, January 29, 2007 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Modules: mxml and as are compiled in different ways? Hello everybody, I've just faced an issue and I'd like to know if it's a bug or a known feature. I've got to develop a MDI-like application and I'm playing with modules. So I defined various as (pay attention here, I mean .as files) classes extending the mx.modules.Module class and compiled them as modules. Each of these classes references some TitleWindow subclasses which I try to open from the main application. Well, nothing works: I've got different errors (depending on the window I try to open) about null values in graphical properties. I changed my modules classes to .mxml classes (I mean .mxml files), keeping the mx.modules.Module as the parent class, and everything seems to work. Summarizing, I try to compile as modules these files: - MyModule.as class MyModule extends Module { /* This DOESN'T WORK */ } - MyModule.mxml mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; !-- WORKS! -- /mx:Module What's this? Can't I extend an mxml class using an as file? I don't think so, since I've used this technique in other cases and evrything went smooth. I suppose it is an issue of the file I'm going to compile. If so, can't I force the compiler to handle an as file like an mxml one? I need this since I'd like my Module subclass to implement a certain interface. Thank you. Regards, Lorenzo -- Lorenzo Benvenuti Senior Programmer Tagetik Software Via Farnesi, 141 55100 Lucca Tel. (+39)058396811 Fax. (+39)058391199 [EMAIL PROTECTED] http://www.tagetik.com Questo messaggio puo' contenere informazioni di carattere estremamente riservato e confidenziale. Qualora non foste i destinatari, vogliate immediatamente informarci con lo stesso mezzo ed eliminare il messaggio, con gli eventuali allegati, senza trattenerne copia. Qualsivoglia utilizzo non autorizzato del contenuto di questo messaggio costituisce violazione dell'obbligo di non prendere cognizione della corrispondenza tra altri soggetti, salvo piu' grave illecito, ed espone il responsabile alle relative conseguense civili e penali. http://www.tagetik.it/azienda/privacy_form per cancellare o modificare il profilo. Nel rispetto della vostra privacy – http://www.tagetik.it/azienda/privacy-policy-1 per visionare la nostra policy. This message is being sent from Tagetik and may contain information which is confidential or privileged. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorized use of the content of this message is a breach of your duty to respect the confidentiality of the correspondence between other persons and can expose the responsible party to civil and/or criminal penalties, and may constitute a more serious offense. http://www.tagetik.com/company/privacy_form?set_language=en to unsubscribe or modify your profile. We respect your right to privacy - http://www.tagetik.com/company/privacy-policy?set_language=en to view our policy. -- 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 -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message electronique et ses pieces jointes peuvent contenir des renseignements confidentiels, exclusifs ou legalement privilegies destines au seul usage du destinataire vise. L’expediteur original ne renonce a aucun privilege ou a aucun autre droit si le present message a ete transmis involontairement ou s’il est retransmis sans son autorisation. Si vous n’etes pas le destinataire vise du present message ou si vous l’avez recu par erreur, veuillez cesser immediatement de le lire et le supprimer, ainsi que toutes ses pieces jointes, de votre
[flexcoders] problem when looping through xml
Hi, Here's the xml: root folder folderid=1 label=n0 folder folderid=48 label=n1 folder folderid=51 label=n11/ /folder folder folderid=49 label=n2 folder folderid=52 label=n21/ /folder folder folderid=50 label=n3 folder folderid=54 label=n4/ /folder /folder /root a variable of type XML contains the above. Then when i tried to loop through all the 'folder' nodes, the loop exits after the first iteration: for each (var s:XML in myXML..folder){ trace (s.reportid); } I thought using .. (double dot) allows us to access any node in the hierarchy, is that not correct ? Thanks
Re: [flexcoders] How do you format your code?
Hi, I format basically the way you do with id on top. I have had a hard time putting the on a separate line but, I can see why Adobe is starting to do it. It's like an end bracket of a method }. I also group attributes like width and height on the same line. To me that makes sense. also if you had padding, they would all go in the same line as well. Seems like a java expert could get a code formatter going in eclipse. I have looked everywhere for a good tutorial on how to make plugins in eclipse, it looks difficult. I am good with reg exp and could create an engine in java but as far as the eclipse plugin part, I still can't find a thumb sucking tutorial. :) Peace, Mike On 1/29/07, Pan Troglodytes [EMAIL PROTECTED] wrote: I just wanted to throw this topic out there to share how I format my flex code and see what other people think. We all know how Flex does it by default. But I find those long lines hard to read as code. They are especially problematic for version control, as a change to any part of the line looks like a change to the whole line in a difference viewer. So, here's a fragment of my code. If you are using an email reader that changes this email to plain text, you may lose a bit of the point of it. mx:HDividedBox id=historyBox label=Activity width=100% height= 100% styleName= tabBox mx:VBox height= 100% minWidth= 240 width=240 mx:TabNavigator id= usersViewTabNav height=100% width= 100% change=usersViewTabChange() mx:VDividedBox id=detailUserListTeam label=Teams width= 100% height= 100% mx:DataGrid id=teamGrid dataProvider= {WAT.teams} height=20% width= 100% minHeight= 100 verticalGridLines=false change=detailUserListTeamSelectionChange() mx:Button id=editTeamsBtn label=Edit Teams click= editTeamClick() / I leave the id on the same line as the component declaration because that way it shows up in the Outline view (why it doesn't always put the id on the Outline view no matter what the formatting is, I have no idea). Otherwise, I put each attribute on a single line. This means any change shows up quite nicely in a difference viewer. I put the closing or / on a line of its own for the same reason. Unfortunately, Flex doesn't really respect this style and when working with the property editor it can tend to rearrange it. I then have to go back in and fix the formatting. What I really wish is that I could somehow make Flex/Eclipse aware of how I like to format things so that it would help me out. I also wish I could do something like alphabetically sort the attributes (leaving the id at the top) with a keystroke (kind of like the Organize Imports command). Would be great to have a command that would pretty-print all the source code in the open file. -- Jason -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Strange behaviour on Fade Alpha Effect
Hi, I see an error in your could alphaTo=100 should be alphaTo=1 In as3, alpha is 0 -1 not 0 -100. Peace, Mike On 1/28/07, João Saleiro [EMAIL PROTECTED] wrote: Hello, i am trying to create a fade In alpha effect with 4 seconds, but there is a strange behavior happening. If i put 4000 on the duration of the Fade effect, the image fades in on the first second, despite the effectEnd being triggered after the 4 seconds. Check this, and wait until the Alert box shows up. http://www.webfuel.pt/jsaleiro/FadeAlphaTest/FadeAlphaTest.html As you can see, the image fades in on the first second, when it should take four seconds. Do you have any idea why is this happening? The code of the example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=fadeInImage.play() mx:Image x=74 y=22 source=@Embed('test.jpg') id=imagem/ mx:Fade alphaTo=100 duration=4000 id=fadeInImage target={imagem} effectEnd=Alert.show('Ended')/ mx:Script ![CDATA[ import mx.controls.Alert; ]] /mx:Script /mx:Application Thank you, João Saleiro -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Rotating an object inside a HBox compared to a Canvas
Ah, ok, the answer is that a box's layout algorithm does not honor child positions. Now that i see your example. The Canvas measures itself reletive to it's children. The Box measures itself AND THEN lays out it's children. This is when you see the difference. The reason the canvas is messing up is it's measuring it's children wrong with the rotation. It's actually calculating x and y in the wrong place. This is why it grows as you rotate to 180 degrees. Peace, Mike Peace, Mike On 1/29/07, Piotrowski, John [EMAIL PROTECTED] wrote: Michael, Thanks for the response but I think you may be misunderstanding the question and I should mention I am using Flex 2 which has the Rotate effect unlike 1.5. The question is around the fact that it does work using a Box container but doesn't work with a Canvas. The answer may be what you are saying about the measuring aspect, but the other thing is that if you look at the example at http://flex-dev.wharton.upenn.edu/users/johnrp/Misc/bin/Miscellaneous.html, specifically the seat to the far right, you will see that the rotate happens above the outermost container when using a VBox and it happens below the outermost container when using a Canvas and this is when the resizing occurs. John ** John R. Piotrowski Programmer Analyst Wharton Computing Email: [EMAIL PROTECTED] ** -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Michael Schmalle *Sent:* Monday, January 29, 2007 8:58 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Rotating an object inside a HBox compared to a Canvas Hi, Without looking at your code, I can say the framework is not designed to measure rotated components. They would have to use trig in the measure and update algorithms to do this. You 'could' code this but, let me tell you , it would be complicated. You can't even rotate a component in a canvas and expect the scroll bars to measure it correctly let alone a Box container. Peace, Mike On 1/25/07, *Johnrp23* [EMAIL PROTECTED] wrote: I have been working on a seating layout application for a set of rooms in a building. The current perspective is from the presenter's point of view (looking towards the back of the room). I have been asked to provide an inverted view (standing in the back and looking forward). Each seat contains an image and text so just flipping the entire canvas would result in the images and text being upside down and difficult to read. What I decided to do was move each seat to its inverse location and rotate it 180 degrees from its original orientation. I was able to this, but I still had the problem of the inverted image and text within the seat. I thought I could just rotate the contents of the seat 180 degrees so the orientation would be correct, but I ran into a sizing problem. I found that the mouseOver event on the seat was firing even though the mouse was not over the seat image. After some debugging I found that the second rotation of the image was essentially making the seat twice as wide and twice as tall, which was really causing problems since my seats were already close to each other to begin with. And even move confusing was if I flipped the layout again the seats went back to their original size. My seat component was a Canvas with a VBox representing the frame of the seat (an image inside this frame) and then another Canvas for performing actions on the seat like moving, rotating and deleting. I started to try different things to see what would happen and found that the sizing problem went away if I rotated the image directly rather than the frame itself (however this was not ideal for other drag and drop problems with the 0,0 coordinate.) Eventually I found that if I wrap the VBox frame inside another VBox or made the Seat component a HBox, I could rotate the frame without the sizing problem and things seemed to behave as I expected. My question is why does the surrounding canvas of a rotating object change size? It seems dumb to add another VBox layer or define the object as a HBox when I do not need the extra features the HBox provides. You can see a crude example at http://flex- dev.wharton.upenn.edu/users/johnrp/Misc/bin/Miscellaneous.html and the source code is below. Thanks, John index.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns=* creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.AbstractEvent; import Seat; import SeatHBox; private function onCreationComplete():void { seat1.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat2.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat3.addEventListener (MouseEvent.MOUSE_OVER,onMouseOver); seat1.addEventListener (MouseEvent.MOUSE_OUT,onMouseOut);
Re: [flexcoders] binding/watch xml attributes
Your easiest option will be to wrap your XML in a XMLlistCollection which will throw events you can listen to. If that won't work you can check out mx.utils.XMLNotifier, mx.utils.IXMLNotifiable, and mx.binding.XMLWatcher but keep in mind that these classes were hidden for a reason. I'm sure they are subject to change and they are not documented so only use them if you need to. - Dan On 1/26/07, hosey hosey [EMAIL PROTECTED] wrote: I would like to call a function when an xml attribute changes. None of the isWatching() calls return true...Is there a way to watch/bind frelling notice when an attribute of an XML gets changed? package { import flash.display.Sprite; public class test extends Sprite{ import mx.binding.utils.BindingUtils; import mx.binding.utils.ChangeWatcher; [Bindable] public var xml:XML=a b id=1 b id=2/ b id=3/ /b /a; public var out:String= public function test(){ var watcher:ChangeWatcher = ChangeWatcher.watch (this, [xml.b[0].b.(@id=='3')[EMAIL PROTECTED]] , this.changed); trace(watcher.isWatching ()) var watcherSetter:ChangeWatcher= BindingUtils.bindSetter( function(v:String):void {trace(WE+v)}, xml.b [0].b.(@id=='3')[0], @id) var watcherSetter2:ChangeWatcher= BindingUtils.bindSetter( function(v:String):void {trace(WEE+v)}, xml..b.(@id==3)[0], @id) trace(watcherSetter.isWatching()) trace(watcherSetter2.isWatching()) xml.b[0].b.(@id=='3')[EMAIL PROTECTED]5 trace(xml.b [0]) } private function changed():void{ trace(wee) } } } Thanks Hosey
Re: [flexcoders] Drag-Resize MDI Example
Michael - Any beta to look at now? Michael Schmalle said the following: Also, I have a high octane tab navigator being released commercially in a month or two. http://www.flex2components.com/f2cblog/2007/01/18/flex-2-mdipanefx-not-a-pain/ http://www.flex2components.com/f2cblog/2007/01/18/flex-2-mdipanefx-not-a-pain/ Peace, Mike On 1/23/07, *Dave Carabetta* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Do you mean something like this? http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface Regards, Dave. Cynergy Systems, Inc. On 1/14/07, *John Kirby* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anyone know of a Flex 2 Drag-Resize MDI/Panel example? -- /Whether you think that you can, or that you can't, you are usually right./ - Henry Ford -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- /Whether you think that you can, or that you can't, you are usually right./ - Henry Ford
[flexcoders] New to Flex and question of course....
Hi, I'm new tp Flex and am trying to debug a 3rd party developed WAR portlet developed/wrapped in Flex for Websphere 6.1 I've managed to get through many issues (like the JNDI naming), but am stuck here. Can anyone help point me in the right direction of where this problem actually resides. Here's the error from my log: [1/24/07 11:27:27:656 EST] 006e ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet MessageBrokerServlet: flex.messaging.config.ConfigurationException: Unable to create service 'flex.data.DataService' for 'data-service' due to the following error: Error instantiating application scoped instance of type 'flex.data.assemblers.HibernateAssembler' for destination 'userrecord.hibernate'.. at flex.messaging.config.MessagingConfiguration.createServices (MessagingConfiguration.java:202) at flex.messaging.config.MessagingConfiguration.configureBroker (MessagingConfiguration.java:84) at flex.messaging.MessageBrokerServlet.init (MessageBrokerServlet.java:105) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init (ServletWrapper.java:274) at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize (ServletWrapper.java:1398) at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServ letWrapper(WebExtensionProcessor.java:86) at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper (WebApp.java:788) at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings (WebApp.java:515) at com.ibm.ws.webcontainer.webapp.WebApp.initialize (WebApp.java:404) at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication (WebGroup.java:115) at com.ibm.ws.webcontainer.VirtualHost.addWebApplication (VirtualHost.java:128) at com.ibm.ws.webcontainer.WebContainer.addWebApp (WebContainer.java:924) at com.ibm.ws.webcontainer.WebContainer.addWebApplication (WebContainer.java:877) at com.ibm.ws.runtime.component.WebContainerImpl.install (WebContainerImpl.java:167) at com.ibm.ws.runtime.component.WebContainerImpl.start (WebContainerImpl.java:391) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start (ApplicationMgrImpl.java:1228) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObje ctStart(DeployedApplicationImpl.java:1067) at com.ibm.ws.runtime.component.DeployedModuleImpl.start (DeployedModuleImpl.java:547) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start (DeployedApplicationImpl.java:751) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication (ApplicationMgrImpl.java:892) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication (ApplicationMgrImpl.java:1412) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at javax.management.modelmbean.RequiredModelMBean.invokeMethod (RequiredModelMBean.java:1366) at javax.management.modelmbean.RequiredModelMBean.invoke (RequiredModelMBean.java:1012) at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke (InvokerMBeanServerInterceptor.java:233) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke (DefaultMBeanServerInterceptor.java:128) at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke (SecurityMBeanServerInterceptor.java:86) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke (DefaultMBeanServerInterceptor.java:128) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke (DefaultMBeanServerInterceptor.java:128) at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invo ke(ContextClassLoaderMBeanServerInterceptor.java:167) at mx4j.server.MX4JMBeanServer.invoke (MX4JMBeanServer.java:1249) at com.ibm.ws.management.AdminServiceImpl$1.run (AdminServiceImpl.java:990) at com.ibm.ws.security.util.AccessController.doPrivileged (AccessController.java(Compiled Code)) at com.ibm.ws.management.AdminServiceImpl.invoke (AdminServiceImpl.java:906) at com.ibm.ws.management.application.AppManagementImpl._startApplication (AppManagementImpl.java:806) at com.ibm.ws.management.application.AppManagementImpl.startApplication (AppManagementImpl.java:676) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java(Compiled Code)) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java(Compiled Code))
Re: [flexcoders] Drag-Resize MDI Example
Yes!... but it looks like the source is not available Dave Carabetta said the following: Do you mean something like this? http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface Regards, Dave. Cynergy Systems, Inc. On 1/14/07, *John Kirby* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Anyone know of a Flex 2 Drag-Resize MDI/Panel example? -- /Whether you think that you can, or that you can't, you are usually right./ - Henry Ford -- /Whether you think that you can, or that you can't, you are usually right./ - Henry Ford
[flexcoders] Re: Interfaces and events
Thanks Tom, that's what I thought too! The question remains why some Interfaces in flex documentation appear to have associated events... --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 29 January 2007 14:18, tvikatos wrote: Is there a way to enforce an interface implementation emmits an event? And you do you declare that? I don't think so, no. If you have a IFooControl interface which emits a FooEvent , and a BarControl that implements it and displays a Foo button to fire FooEvent, there is no way to guaranty that the Foo button will ever be pressed. Maybe your sub class doesn't need that Event and so never fires it. -- Tom Chiverton Helping to confidentially develop third-generation initiatives 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] Mortgage Calculator by Christophe Coenraets
Does anyone have the source for the mortgage calculator created using Flex 1.5? Thanks, James.
[flexcoders] Selecting datagrid row on rollover...
Hi, The title sums it up... basically, I'd like to select a datagrid row on rollover. There's a rollover event on the datagrid but I see no way from that, to obtain the id of the row that's currently being 'rolled over'... any ideas ? Alternatively... and here's the reason I'm trying to do the above... I have a context menu on the datagrid which provides the user with options to carry out on the currently 'rolled over' row... but when the user clicks the right mouse button, the 'rollover' color disappears. I want the rollover color to remain when the menu pops up. My only solution was to force the rollover row to be the selected row - which would solve this. If anyone can think of an alternative way to stop the loss of the rollover color then that'll be just as good ;-) Thanks, Jamie.
[flexcoders] Force HTTPService send() in child component
Need help here. Spent all weekend looking at this, and I know I'm just missing something. I've got a small photo gallery app with two components. One component grabs all the 'albums' from the db on initialize and displays them in a TileList. When you click on one of the tiles, the second component should fire off a request to the HTTPService to get the images that belong to that album and display them. At this point, I've tried everything I can think of. I thought I found the answer in passing the album id to a form on the second component and firing the lookup on the change event. For some reason, however, it will only fire if I key in the album id by hand. Anyone have any ideas? TIA -c-
[flexcoders] Refreshing html-template
I'm using flex builder and i'm noticing that for the majority of the time it takes to compile a project the detailed message in the progress window reads refreshing project/html-template. Does anyone know if I'm actually refreshing the html wrapper or if it is common for this message to be wrong? If it's actually taking significant time to create the wrapper is there anyway to not refresh it because it almost never changes and I could do that manually? thanks, - Dan
RE: [flexcoders] Do I *REALLY* need Flex Data Services for WebServices?
Status codes higher than 300 are not provided to Flash Player by the browser. It is an artifact of the inconsistencies within the plug-in API on certain browsers. The decision was made by the Flash Player team to keep the runtime behavior of the player consistent so there is no data provided when a 400, 404, 500 error occurs. This is why the proxy was created in the first place. The proxy changes the header error codes and returns them to the Flash Player in a suitable manner. Since Adobe could not force the browser manufacturers to change to return 300 or higher errors, we created a proxy to allow Web Services to work seamlessly. You can write your own Web Services Proxy and modify the results returned. Although if you go this route, you might as well use remoting to return an object to the player. The SOAP Web Services parser is very slow client side because of the nature of the work that it is doing. The performance decays exponentially with larger SOAP result objects and there are many encoding types that are not supported. Here are some sample stacks: FlexApp AMF Server WSSOAP Server -- 100% compatible, AMF exchange about 10X faster client to server. FlexApp WSSOAP Server -- 500 error issues If only Flash Player got 300 or higher status codes consistently from the various browsers. I wish it was a switch we could change but it isn't. Many point to this as Adobe pushing an expensive server but the reality is that we were trying to solve a problem and enable SOAP WS compatibility with the Proxy. We need a better solution in the WS-SOAP compatibility. Ted Patrick Flex Technical Evangelist Adobe Systems http://www.onflex.org http://www.onflex.org http://www.linkedin.com/in/tedpatrick http://www.linkedin.com/in/tedpatrick From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Greg McCreath Sent: Sunday, January 28, 2007 5:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Do I *REALLY* need Flex Data Services for WebServices? Hi All, The manual says: Note: You must use the Flex proxy, which is part of Flex Data Services, to ensure that HTTP status codes are returned correctly from HTTP services and web services. On web browsers, when a service returns any status code other than 200, Adobe Flash Player cannot read the body of the response. If the status code is 500 and the body contains a fault, there is no way to get to the fault. The proxy works around this issue by forcing the status code for faults to 200; the player passes the body of the response along with the fault intact. At US $6000 a pop per CPU (departmental license only - $20,000 per CPU for enterprise license) across multiple high-availability data centers you'd be looking down the barrel at more than US $50,000 ** to run a web service proxy ** on a number of good machines. So, does this effectively render Flex RPC services un-useable unless you use Flex Data Services? .. unless you make the assumption that everything always works ... .. what happens when a non-200 status code is encountered? ... or have I got it wrong ... ?? Greg. This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
Re: [flexcoders] Command-line compiler Java errors
I installed JRE 1.4.2_13 and it's working from the command-line now. I had added the path in the environment variables before installing the new JRE. Now that I've installed the new JRE I don't recall the version that was installed, but I think it was 1.3 (not sure the rest). Anyhow, everything seems to be good - thanks everyone. On 1/25/07, Wagner dos Anjos [EMAIL PROTECTED] wrote: Derek, You do need the Java SDK as per the Flex 2 SDK system requirements bellow: Flex 2 SDK - Windows 2000, XP, or Server 2003, Java 1.4 (Sun, IBM, or BEA) or 1.5 (Sun) - Mac OS X 10.4.x, Java 1.5 (as shipped from Apple) on PowerPC and Intel processor - Redhat Enterprise Linux 3 or 4, Suse 10, Java 1.4 (Sun, IBM, or BEA) or 1.5 (Sun) - Solaris 9, 10, Java 1.4 or 1.5 (Sun) Compilers only - 512 MB of RAM , 1 GB recommended - 200 MB of free disk space You can find the above information at: http://www.adobe.com/products/flex/productinfo/systemreqs/ Since you already have Flex Builder installed and working, it's probably just a matter of setting you environment 'path' to point to the right Java version. To check the Java version you are currently pointing to, try 'java -version' from the command line. I hope this helps, Wagner dos Anjos - Original Message From: Derek Vadneau [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 25, 2007 11:53:47 AM Subject: [flexcoders] Command-line compiler Java errors Hi all, I have Flex Builder 2 but I need to start using the command-line compilers to produce projects that are being integrated with a build system. However, when I try running from the command-line I get this: Exception in thread main java.lang.Unsupport edClassVersionEr ror: flex2/tools/ C ompiler (Unsupported major.minor version 48.0) at java.lang.ClassLoad er.defineClass0( Native Method) at java.lang.ClassLoad er.defineClass( Unknown Source) at java.security. SecureClassLoade r.defineClass( Unknown Source) at java.net.URLClassLo ader.defineClass (Unknown Source) at java.net.URLClassLo ader.access$ 100(Unknown Source) at java.net.URLClassLo ader$1.run( Unknown Source) at java.security. AccessController .doPrivileged( Native Method) at java.net.URLClassLo ader.findClass( Unknown Source) at java.lang.ClassLoad er.loadClass( Unknown Source) at sun.misc.Launcher$ AppClassLoader. loadClass( Unknown Source) at java.lang.ClassLoad er.loadClass( Unknown Source) at java.lang.ClassLoad er.loadClassInte rnal(Unknown Source) The above is what I get after running one of the samples included in the Flex SDK 2 directory. I tried my own projects with the same result. I'm not sure what's going on here. Looks like something about the version of JRE I have. Am I right in this assumption? If so, what is required for the Flex 2 SDK? I couldn't find anything about requiring JRE on the SDK pages on Adobe. -- Derek Vadneau -- Derek Vadneau
[flexcoders] Re: Flex 2 profiler
Matt Chotin wrote: There isn't right now. We are looking to add one into the next major release of Flex. Does that mean Flex 3.0? If so, speaking for myself I'd love one sooner, even if it's imperfect and has to live on Adobe Labs for a while. Reid -- 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: need help on showing line series based on list box selection (Flex Charts)
Hi Arthur. You can create multiple copies of the collection, and filter each one individually. Then, instead of assigning the dataprovider to the chart, assign each dataprovider to it's own series in the chart. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arthurcoutinhoonline Sent: Friday, January 26, 2007 11:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: need help on showing line series based on list box selection (Flex Charts) Hi Ely, please help, im going mad, trying to filter out the arraycollection, one item is fine, but more than 1 filter is a problem, please help with an example, not able to get more than one series! regards, --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , arthurcoutinhoonline [EMAIL PROTECTED] wrote: Hi There, this is Arthur, im new to flex have created a small CHART app, where a user based on the selection from the list box can display the line series.. Im able to display a line series based on a user's selection of a list box item, but im facing problems in displaying multiple line series based on multiple LIST selection. For. eg. if u select item 1001 from the listbox select the above checkboxes like temperature etc. it shall show temperature for the Line Series (1001), but if u want to see the temperature for id 1001, 1002 1003, basically, in 3 different line series, its not coming, hence would appreciate any help in this. im posting the code xml file which u can try execute for reference
[flexcoders] Re: Debug in Flex SDK, fcsh
I'm not quite sure if I understand the question, but fcsh's mxmlc command supports the -debug option, just like mxmlc.exe does. So to compile a debug swf: C:\ fcsh (fcsh) mxmlc -debug MyApp.mxml ... (fcsh) quit Then, just debug it with fdb in the usual way: C:\ fdb MyApp.swf Does that help? - Mike --- In flexcoders@yahoogroups.com, Mikhail Shevchuk [EMAIL PROTECTED] wrote: Hello, group. If I compile app using FB, I got a special debug version of it, how can I get the same thing without FB, just in usual Flex SDK? When I use fdb - it just displays a blank player's window. -- A vivid and creative mind characterizes you.
RE: [flexcoders] Any ways to put verticalAxis on the rightside only for a barchart?
The only way to do this would be to manually invert the values in your chart. (i.e., 12 becomes -12, etc). You could then use label functions and datatip functions to flip them back in the labels and datatips. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arcencie1978 Sent: Sunday, January 28, 2007 6:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Any ways to put verticalAxis on the rightside only for a barchart? Hi guys... I know there's a simple way to put a vertical axis on the right side as long as a columnchart is concerned... But for a bar chart, if you put a vertical axis on the right side, with a verticalAxisRenderer, mx:verticalAxisRenderer mx:AxisRenderer id=myVerticalAxisRenderer placement=right / /mx:verticalAxisRenderer I think that the chart series items should be starting just from the opposite side, which is from right to left.. Yet this is not what Flex chart components are giving... so any ideas to flip chart items horizontally? Thanks in advance...
Re: [flexcoders] Re: Flex 2 profiler
We need Flex2 profiler for Sandy (http://www.flashsandy.org) as well :)) On 1/29/07, Reid Priedhorsky [EMAIL PROTECTED] wrote: Matt Chotin wrote: There isn't right now. We are looking to add one into the next major release of Flex. Does that mean Flex 3.0? If so, speaking for myself I'd love one sooner, even if it's imperfect and has to live on Adobe Labs for a while. Reid -- 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 -- - Franto http://blog.franto.com http://www.flashcoders.sk
RE: [flexcoders] site-wide adjustments - is it even possible?
For what it's worth, you don't have to compile a new SWC...if MXMLC sees a source file version and a SWC version of a component, it will prefer the source file version. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Sunday, January 28, 2007 11:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] site-wide adjustments - is it even possible? In AS2/AS1, you used to be able to hack the prototype so all instances used a different method at runtime. mx.containers.Container.scrollChildren = mx.containers.Container.old; mx.containers.Container.scrollChildren = function() { // your stuff here }; Unfortunately, I think prototype is read-only in AS3. Can't you just replace the Container class that is in the frameworks directory with your own modified copy, compile a new SWC, and use that one instead of the main one? On Jan 29, 2007, at 2:29 AM, Paul Solomon wrote: I have created a smooth scroll component that extends a Container class where I have overridden the scrollChildren() method. I came into a project late and the code base is rather large at this ! point. There SPAN class=Apple-style-span style=font-family: Georgia;font-size: 13px;are many many places in the code that needs this new component shoe-horned in. I have been asked to see if I can provide a site-wide adjustment to the scrolling functionality that will apply the smooth scrolling style without manually replacing every instance of the code that needs to be touched. I am pretty sure that there is not a way after investigating the framework and common sense, but I thought that I would ask this board anyway, is it possible? Is there a compiler setting?
Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?
If you intercept the response from your web services and change the HTTP Status Code to 200 flex will receive and display the true SOAP Exception. I am currently doing this in my .NET mid-tier applications. I'm not really sure how to do it on any other platform, but I must assume it's possible. - Kelly Charles Havranek wrote: Greg, Without Flex Data Services, I do get the basic error code message , but have to look at server logs to see stack traces.
[flexcoders] FlexManiacs 2007 Session Topics Posted
Check 'em out at http://flex2conference.figleaf.com/sessions/index.cfm http://flex2conference.figleaf.com/sessions/index.cfm ! Regards, Steve Drucker CEO Fig Leaf Software www.figleaf.com http://www.figleaf.com
[flexcoders] Printing DataGrids (More Questions)
Hi All, We have a need to dynamically print different views of data grids in flex builder2. Has anyone done this sucessfully and do you have any words of wisdom regarding this. I've been working with the PrintDataGrid object but it has some issues associated with it. Also, what we'd really like to do is create a pdf that is sent straight to the browser or to the printer. I think creating a printview on the fly is probably not such a big deal, but has anyone dealt with issues such as dynamic column width, height etc.. I'd really like to know how you are doing this. T I A, Lois J. Greene-Hernandez
[flexcoders] Re: site-wide adjustments - is it even possible?
Thanks for the info guys. -Paul --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: For what it's worth, you don't have to compile a new SWC...if MXMLC sees a source file version and a SWC version of a component, it will prefer the source file version. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Sunday, January 28, 2007 11:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] site-wide adjustments - is it even possible? In AS2/AS1, you used to be able to hack the prototype so all instances used a different method at runtime. mx.containers.Container.scrollChildren = mx.containers.Container.old; mx.containers.Container.scrollChildren = function() { // your stuff here }; Unfortunately, I think prototype is read-only in AS3. Can't you just replace the Container class that is in the frameworks directory with your own modified copy, compile a new SWC, and use that one instead of the main one? On Jan 29, 2007, at 2:29 AM, Paul Solomon wrote: I have created a smooth scroll component that extends a Container class where I have overridden the scrollChildren() method. I came into a project late and the code base is rather large at this ! point. There SPAN class=Apple-style-span style=font-family: Georgia;font-size: 13px;are many many places in the code that needs this new component shoe-horned in. I have been asked to see if I can provide a site-wide adjustment to the scrolling functionality that will apply the smooth scrolling style without manually replacing every instance of the code that needs to be touched. I am pretty sure that there is not a way after investigating the framework and common sense, but I thought that I would ask this board anyway, is it possible? Is there a compiler setting?
[flexcoders] Drag and Drop onto image
I have a Composite Actionscript component that has a Image object. I add an event listen to my component for DragEnter and when I run it from the Flex Builder it works fine, I get the event but when I deploy it to my application I don't get any Drag events. Does anyone know why this might be or how to get around it? I'm wondering if it's because the image source is a remote url and the event is being bound before th image is loaded, so the event doesn't know the actual bound of the component. I'm stretching, but that's all I can think of. Thanks, -John
Re: [flexcoders] Do I *REALLY* need Flex Data Services for WebServices?
Hi Greg, Regarding FDS pricing, there also is the FREE (as in FREE) Flex Data Services Express version. A quote below regarding FDS Express is pulled from the posting over at FlexAussie at this link: http://tech.groups.yahoo.com/group/flexaussie/message/158 FDS Express does not have any connection limitations. With FDS Express you can run no more 1 CPU per application (this allows multiple applications per CPU) with no connection limitations. As your application requires more than 1 CPU for reliability or scalability we have a mid-level FDS offering. Another option may be using ColdFusion, which since version 7.0.2 supports a subset of FDS functionality. I would need to test to confirm that Proxying is included. hth, g On 1/28/07, Greg McCreath [EMAIL PROTECTED] wrote: Hi All, The manual says: Note: You must use the Flex proxy, which is part of Flex Data Services, to ensure that HTTP status codes are returned correctly from HTTP services and web services. On web browsers, when a service returns any status code other than 200, Adobe Flash Player cannot read the body of the response. If the status code is 500 and the body contains a fault, there is no way to get to the fault. The proxy works around this issue by forcing the status code for faults to 200; the player passes the body of the response along with the fault intact. At US $6000 a pop per CPU (departmental license only – $20,000 per CPU for enterprise license) across multiple high-availability data centers you'd be looking down the barrel at more than US $50,000 ** to run a web service proxy ** on a number of good machines. So, does this effectively render Flex RPC services un-useable unless you use Flex Data Services? .. unless you make the assumption that everything always works … .. what happens when a non-200 status code is encountered? … or have I got it wrong … ?? Greg. --
[flexcoders] looking for VBox/HBox with gradient background and border
I've seen a few examples of custom borderSkins that you can use with HBoxes and VBoxes that use the fillColors css property to draw a gradient background in the container. All the borderSkin examples unfortunately do not support borders. I'm wondering if someone has a borderSkin example which allows me to both apply a gradient background and a border to an HBox or VBox. Thanks.
[flexcoders] Re: Flex 2 profiler
I concur, I remember seeing the Profiler demoed at MAX - very nice - and it would be awesome if that could be posted to Adobe labs, bugs and all. :) -Jun --- In flexcoders@yahoogroups.com, Reid Priedhorsky [EMAIL PROTECTED] wrote: Matt Chotin wrote: There isn't right now. We are looking to add one into the next major release of Flex. Does that mean Flex 3.0? If so, speaking for myself I'd love one sooner, even if it's imperfect and has to live on Adobe Labs for a while. Reid
RE: [flexcoders] Do I *REALLY* need Flex Data Services for WebServices?
Don't let the price of FDS scare you if your core question is simply, Do I need FDS to use Webservices in Flex? Then the answer is no. Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] combo box - missing value
I have a simple combo box currently showing 10 values. When I make the rowCount larger than the number of values all is ok. However if I set the rowCount to 8 (scroll bar appears) some of the values are displayed as blank lines. As you scroll up and the down the value that appears as blank changes. Need help. Thanks, Dave
[flexcoders] Undo/Redo framework
Is there a framework to support undo/redo in Flex or as part of the ActionScript library? I'm thinking of something similar to the undo/redo framework in Eclipse. TIA -engkee
Re: [flexcoders]wmode=transparent kills my remote calls
Webdevotion wrote: Whenever I set my wmode to transparent, all my remote calls fail. No errors, nothing. Matt Chotin wrote: The bug still exists, unfortunately we require browser vendor support to address some of these issues. What's the browser dependency on this symptom (brand, OS, version)? tx, jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks.
[flexcoders] Global case-insensitive sorting... is it possible?
Am I missing something simple here or do I really have to write a separate sortCompareFunction function for every DataGridColumn in my app that requires case-insensitive sort? I looked at the method in the docs where you implement a sort in the headerRelease handler, but that would still require me to store the sort direction for each column externally to mimmick the default behavior. Unless I am missing something completely (which is totally possible), I think this is another topic that falls into the it really shouldn't be this hard category. As always, any help is greatly appreciated. Thanks, Ben
RE: [flexcoders] HTTPService with variable number of parameter
But that will result in a GET method call and severely limit the data you can send. Instead do: private function doSend(xlData:XMLList):void var oRequest:Object = new Object(); for (var i:int=0;i xlData.length();i++) { xmlCur = xlData [i]; oRequest [EMAIL PROTECTED] = [EMAIL PROTECTED]; } srv.send(oRequest); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of leds usop Sent: Monday, January 29, 2007 10:12 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] HTTPService with variable number of parameter try appending your url-encoded value pair-parameters to the url property of your httpservice. or you can use URLvariable and attach it as data. Cheers! --- lruinelli [EMAIL PROTECTED] mailto:lruinelli%40hotmail.com wrote: Hello, I have to call a servlet and give it a variable number of parameters, example: a22a/b33b/c444c/ or a222a/z233z/ I suppose it will be possible in AS3 doing somthing like : srv.send(an XMLList with my parameters); but it seems don't works! the mxml of the HTTPService is the following: mx:HTTPService id=executeurl=http://localhost:8080/prototype2/GetExecute http://localhost:8080/prototype2/GetExecute method=GET useProxy=false resultFormat=e4x /mx:HTTPService Can someone help me? thanks Lorenzo __ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com http://new.mail.yahoo.com
Re: [flexcoders] looking for VBox/HBox with gradient background and border
Is this what you're looking for? While these aren't defined in CSS, they could be set as Styles if you wanted... did I understand your question correctly? Application.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns=* backgroundColor=#FF GradientBox id=theSlideBox cornerRadius=3 innerRadius=3 borderThickness=5 borderColor=#99 borderStyle=solid horizontalAlign=center verticalAlign=middle height=115 width=115 y=40 x=40 gradientColors={[0xEE, 0xFF]} gradientAlphas={[.5, 0.1]} gradientRatios=[0, 255] gradientAngle=90 /GradientBox /mx:Application GradientBox.mxml --- ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import flash.display.Graphics; [Bindable] public var gradientColors:Array; [Bindable] public var gradientAlphas:Array; [Bindable] public var gradientRatios:Array; [Bindable] public var gradientAngle:int; [Bindable] public var innerRadius:Number; override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var fillType:String = GradientType.LINEAR; var colors:Array = gradientColors; var alphas:Array = gradientAlphas; var ratios:Array = gradientRatios; var matrix:Matrix = new Matrix(); matrix.createGradientBox(unscaledWidth, unscaledHeight, (gradientAngle * Math.PI/180)); var spreadMethod:String = SpreadMethod.PAD; graphics.clear(); graphics.beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod); if(isNaN(innerRadius)) { graphics.drawRect(1, 1, unscaledWidth - 1, unscaledHeight - 1); } else { graphics.drawRoundRect(1, 1, unscaledWidth - 2, unscaledHeight - 2, innerRadius); } graphics.endFill(); } ]] /mx:Script /mx:VBox Brendan On 1/29/07, lokesh2084 [EMAIL PROTECTED] wrote: I've seen a few examples of custom borderSkins that you can use with HBoxes and VBoxes that use the fillColors css property to draw a gradient background in the container. All the borderSkin examples unfortunately do not support borders. I'm wondering if someone has a borderSkin example which allows me to both apply a gradient background and a border to an HBox or VBox. Thanks. -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
[flexcoders] Newbie question: Datagrid and a WS
hola peeps! im a newbie, so please bear with me... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:WebService id=myService wsdl=http://dev.navtrak.net/intranet/crm_cfc.cfc?wsdl; mx:operation name=getVehicleDataForCompany resultFormat=object mx:request companyIdNumber1/companyIdNumber /mx:request /mx:operation /mx:WebService mx:DataGrid dataProvider={ myService.getVehicleDataForCompany.lastResult} mx:columns mx:DataGridColumn headerText=Vehicle Name dataField=vehicleName/ mx:DataGridColumn headerText=Phone Number dataField=phoneNumber/ mx:DataGridColumn headerText=Ip Address Number dataField=ipAddressNumber/ /mx:columns /mx:DataGrid /mx:Application is my webservice tag, and the resulting dataProvider param of the mx:datagrid tag, right? im close on getting data into a datagrid from a WS, i just want to make sure... im getting the datagrid with no data in it?? thanks for all your help! and hello, im a newbie, but learning fast :) tony weeg navtrak, inc. [EMAIL PROTECTED]
RE: [flexcoders] Force HTTPService send() in child component
So your issue is invoking a function call with a click? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of happy_christy01 Sent: Monday, January 29, 2007 12:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Force HTTPService send() in child component Need help here. Spent all weekend looking at this, and I know I'm just missing something. I've got a small photo gallery app with two components. One component grabs all the 'albums' from the db on initialize and displays them in a TileList. When you click on one of the tiles, the second component should fire off a request to the HTTPService to get the images that belong to that album and display them. At this point, I've tried everything I can think of. I thought I found the answer in passing the album id to a form on the second component and firing the lookup on the change event. For some reason, however, it will only fire if I key in the album id by hand. Anyone have any ideas? TIA -c-
RE: [flexcoders] problem when looping through xml
That looks ok. Debug it. Put the XMLList into its own variable and trace the length(). Also, you reference attributes like this: trace ([EMAIL PROTECTED]); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Berthelot Sent: Friday, January 26, 2007 9:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem when looping through xml Hi, Here's the xml: root folder folderid=1 label=n0 folder folderid=48 label=n1 folder folderid=51 label=n11/ /folder folder folderid=49 label=n2 folder folderid=52 label=n21/ /folder folder folderid=50 label=n3 folder folderid=54 label=n4/ /folder /folder /root a variable of type XML contains the above. Then when i tried to loop through all the 'folder' nodes, the loop exits after the first iteration: for each (var s:XML in myXML..folder){ trace (s.reportid); } I thought using .. (double dot) allows us to access any node in the hierarchy, is that not correct ? Thanks
RE: [flexcoders] How to Get an XML attribute Name?
XML.name(); //nodeName Also see the attributes() method. You can get both the name() and value from it. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of augie Sent: Friday, January 26, 2007 5:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to Get an XML attribute Name? Hi All, Is there a way to get 'Attribute Name' and 'Node Name' off xml doc's? Thanks in advance, -Augie
[flexcoders] Is it possible to Inheirt from an MX Application inside of an MX Application ?
Is it possible to Inheirt from an MX Application inside of an MX Application ? We wish to make two MX applications. One called: ApplicationSecure ( file name is ApplicationSecure ) and One called: ApplicationMain ( file name is ApplicationMain ) ApplicationSecure header looks normal such as: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=authenticate() creationPolicy=all xmlns:cc=dynaLib.common.components.* mx:Script ![CDATA[ ... However we wish ApplicationMain Header to look as the following: ?xml version=1.0 encoding=utf-8? c:ApplicationSecure xmlns:c=* xmlns:mx=http://www.adobe.com/2006/mxml; ... /c:ApplicationSecure So in ascence ApplicationSecure is inherting from Application. ApplicationSecure will run first than ApplicationMain. Everything seems ok, only that the compiler is comlaining that is can not find any of the MX components in its namespace path. In other words, it is as if the ApplicationMain is ignoring the line: xmlns:mx=http://www.adobe.com/2006/mxml becauase we have instructed it to inherit from ApplicationSecure. Any Help will be greatly appreciated. Regards, Sean.