RE: [flexcoders] Grabbing data dynamically from XML
arrcol = event.result.venuelist[stateName] as ArrayCollection; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jaguar2800 Sent: Saturday, May 10, 2008 11:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grabbing data dynamically from XML Hey everyone! got another small issues... this is the last thing i need to fix to finish my project :-).. what im doing is creating a map that will allow you to click on a state and using PopUpManager, display data from that state (the data resides within an xml file). right now on each click, i run clickState=createPopUp(). the createPopUp functions runs and initializes the http service to grab the xml file. in the result handler.. i have it grab the data for the state. the problem is, i cannot figure out how to make it dynamic so that when u click on one state it grabs the name and then uses the name to grab the data from the xml file. for example, right now it always grabs event.result.venuelist.michigan but i want it to grab event.result.venuelist.stateName so its dynamic (or something like that). i think what i need to do is pass a variable with the selected state through the createpopup function and call it in the resulthandler.. is that right?? Thank you so much for the help!!! Here is the result handler that grabs the info from the xml... here i just set it to grab the data for michigan to make sure it was working.. public function resultHandler(event:ResultEvent):void { /* var icon:Object = map.target.selected.name; */ arrcol = event.result.venuelist.michigan as ArrayCollection; dg.dataProvider = arrcol; Here is the code for creating the popup... i tried to use this.selectedItem.name to grab the name of the state but it didnt work. i did it in an alert box to test if it was grabbing the name. public function createPopUp():void { var icon:Object = this.selectedItem.name; var state:String = icon; Alert.show(state, 'Alert Box', mx.controls.Alert.OK); getXML.send(); PopUpManager.addPopUp(panel, this, true); PopUpManager.centerPopUp(panel);
RE: [flexcoders] TextArea and textInput event
Doc is wrong. You have to handle that via keyDown. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mikael Hultgren Sent: Saturday, May 10, 2008 6:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextArea and textInput event I have a TextArea and ive attached an eventlistener for textInput which states that it is Dispatched when the user types, deletes, or pastes text into the control.. When i type in text it fires correctly, but not when i delete text from the TextArea, so is the documentation wrong and it doesnt fire when you delete text or am i missing something obvious here? /Mikael
RE: [flexcoders] Using a const to specify Embed source
Hmm. Well if you call getQualifiedClassName on the classes generated for the embeds you might see some information about where it came from. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of westmeadboy Sent: Saturday, May 10, 2008 7:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using a const to specify Embed source Oh, I see - thanks for clearing that up. In my example, you're right, I wouldnt still need the path. But I was hoping to capture asset folder paths as consts and use that as a prefix for the source of the many embedded icons. Alex Harui wrote: Metadata (stuff inside []) is not part of actionscript so variables and consts can't be used. Once embedded, why do you still need the path? -- View this message in context: http://www.nabble.com/Using-a-const-to-specify-Embed-source-tp17159215p1 7160533.html http://www.nabble.com/Using-a-const-to-specify-Embed-source-tp17159215p 17160533.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] question on UI Component Class
Because the Application sets it. In Flex, all children are sized by their parent. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jkasham Sent: Saturday, May 10, 2008 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] question on UI Component Class Why must I have to set the width and height of a new Button()when I put it in a UIComponent() class using AS, and dont have to when I put it in the application using AS?
RE: [flexcoders] Tree with adjustable height and without scroll bar
Set the tree's height by calling measureHeightOfItems() From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gaurav1146 Sent: Sunday, May 11, 2008 4:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree with adjustable height and without scroll bar Hi, I have a certain structure where I have some components in a VBox. The components are formed dynamically and are used for taking user input.One of the components is a Flex Tree with checkboxes. The problem that I am facing is that the flex tree has a specified height and stands out from other components due to spacing between the tree and the next component. Secondly when the user expands a node a scrollbar appears on the flex tree. What I want to achieve is that the tree height should be adjusted based on the expand/collapse state of its nodes. Also no scrollbar should appear on the tree. If at all there is a space issue the tree should expand to fit in all it nodes and the other components in the VBox should move accordingly. And The scrollbar should only appear for the VBox. Setting verticalScrollPolicy=off for the tree did not work as the the nodes that were further down in the tree did not appear on the screen at all. Any suggestions on how could i achieve this would be greatly appreciated. TIA gaurav
Re: [flexcoders] Flex,PHP ,PHPAMF(OR WEBORB) and Cairngorm Demo links need
http://www.brightworks.com/technology/adobe_flex/cairngorm.html http://www.brightworks.com/technology/adobe_flex/with_php.html http://www.brightworks.com/technology/adobe_flex/code.html Also, I invite you to attend the Boston Flex Application Incubator Group online, most Monday evenings: http://www.bfaig.org Douglas On Mon, May 12, 2008 at 12:18 AM, markflex2007 [EMAIL PROTECTED] wrote: I plan to develop a Flex,PHP and Cairngorm application. But I do not have a idea about that.Please help.Thanks Mark
[flexcoders] Programmatically setting default styles that can be overriden with a stylesheet?
Hey guys, let's say I have a Label I'm creating programmatically, and I'd like to have some default styles (like a big red font), but still allow them to be overriden with the stylesheet - can it be easily done? Cheers, -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] i18n and embedded fonts
On Friday 09 May 2008, deepak_michael wrote: I'm using an embedded font (Trebuchet MS) in the application and because of this strings which are in Japanese/Chinese/non-latin characters do not appear. Does that font have glyphs for those locales ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Panel Title Width
On Friday 09 May 2008, b3wohl wrote: this.titleTextField.width = blah that works from with in a Panel component but does not work from outside a panel component(it's a protected property): myPanel.titleTextField.width = blah Any ideas? I looked into CSS to try to handle this but I couldn't find anything related to the title width. Create a subclass of Panel. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Chart itemRenderer and CSS
I thought I logged it but I can't find it now, so maybe I didn't. The workaround is to use setStyle() in actionscript instead of using CSS. Peter On Thu, May 8, 2008 at 10:25 PM, twgonzalez [EMAIL PROTECTED] wrote: Peter, Did you ever submit a bug on this in JIRA, or determine a work-around. I am struggling with the same issue, and looking at the source code for the charts, it does not seem like they are creating a factory if none exists. - Tom --- In flexcoders@yahoogroups.com, Peter Hall [EMAIL PROTECTED] wrote: I have custom item renderer for a ColumnChart in Flex 3 b3. I can make it work in MXML or ActionScript, but I get errors when I do it with CSS. works: columnSeries.setStyle(itemRenderer, new ClassFactory(MyRenderer)); works: ColumnSeries itemRenderer=package.MyRenderer / Doesn't work: .mySeries { itemRenderer:ClassReference('package.MyRenderer'); } The error is that it can't convert MyRenderer$ to IFactory. I have tried using a class that implements IFactory too, but it still falls over because it's not creating an instance, to even be able to call the newInstance() method. It looks like a bug in the charts, because other components can handle this ok, but t's hard to know without the chart source... Peter
[flexcoders] Resize Titlewindow(Hide contents while Resize)
Hi all, I Have some trubel with my TitleWindow (MDI window) I have a window with a datagird(width=100% heigth=100%) and 2 itmerenderers, these itemrenderes are optimized, but when I resize the window, the itemrenderes are calculating the width and height on every frame. What I want is a window that I can drag/resize and hide the content while Resize and when I have the right size I wil let go of the lasso, and then it will only have 1 or 2 updates. I'd see a sample on the web on this many many months ago, did someone else?
[flexcoders] Re: Trying to use FileSystemList
Hi I zip'ed it up for you, you can get it at: http://flexcoders.no/flex/zip/classes.zip - WEB-INF Classes! http://flexcoders.no/flex/zip/IISTestProjectFlex3.zip - Flex3 project http://flexcoders.no/flex/zip/remoting-config.zip - the remoting- config.xml file in web-inf - flex. --- In flexcoders@yahoogroups.com, txakin [EMAIL PROTECTED] wrote: Hi all In my flex application i try to use the FileSystemList component...but i don´t have the library flash.filesystem.File If i see in interneti can read is only for AIR.how i can install in my Flex application or how i can use it? Thanks is advance
Re: [flexcoders] Re: Trying to use FileSystemList
Thanks a lot Cato..i will try to develop using your help Thanks again for your time. - Original Message From: Cato Paus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 12, 2008 4:13:44 PM Subject: [flexcoders] Re: Trying to use FileSystemList Hi I zip'ed it up for you, you can get it at: http://flexcoders. no/flex/zip/ classes.zip - WEB-INF Classes! http://flexcoders. no/flex/zip/ IISTestProjectFl ex3.zip - Flex3 project http://flexcoders. no/flex/zip/ remoting- config.zip - the remoting- config.xml file in web-inf - flex. --- In [EMAIL PROTECTED] ups.com, txakin [EMAIL PROTECTED] wrote: Hi all In my flex application i try to use the FileSystemList component... but i don´t have the library flash.filesystem. File If i see in internet i can read is only for AIR.how i can install in my Flex application or how i can use it? Thanks is advance Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Re: Resize Titlewindow(Hide contents while Resize) = Closed
Hi if someone have the same issue here is the link :) http://blogs.adobe.com/flexdoc/2007/03/creating_resizable_and_draggab.ht ml --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: Hi all, I Have some trubel with my TitleWindow (MDI window) I have a window with a datagird(width=100% heigth=100%) and 2 itmerenderers, these itemrenderes are optimized, but when I resize the window, the itemrenderes are calculating the width and height on every frame. What I want is a window that I can drag/resize and hide the content while Resize and when I have the right size I wil let go of the lasso, and then it will only have 1 or 2 updates. I'd see a sample on the web on this many many months ago, did someone else?
[flexcoders] How to create linechart legend on each line
Hi Folks, Am working with the LineChart. I want to show the labels to each line. means [legends in each line]. how can i do that. please any one reply me. -- Thanks Regards Swaminathan. M
[flexcoders] 2124 Unable to load Style
Hi, has anybody experience loading a css converted to swf via http? I compiled a css file into swf and loaded it via assets/compiled.swf and it is working perfectly. Then I moved the compiled.swf into a different directory and tried loading it via http://example/compiled.swf and it is giving me the following error: Unable to load style(Error #2124: Loaded file is an unknown type. URL :http://exmple/compiled.swf) does anybody have any idea? thanks Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Re: magnifying glass component
--- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Anybody know if there is a flex magnifier/zoom component available ? I am looking to produce a magnifying glass effect similar to this flash version http://www.usflashmap.com/component/flash_magnifying_glass.htm
[flexcoders] Multiple data grids
I want to design a series of data grids each of which simply lists out the data in a table. 1) Do I do this in one app or one project? 2) Can I use view stack to dynamically kick a php query for each grid as it is displayed? 3) How do I handle the script references for each data grid since the http service call is different for each grid thanks Dan Pride Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Drag and Drop (modify default dragProxy)
Hi, I'm drag/dropping items within a DataGrid. I would like to modify the default dragProxy label that is shown when you drag an item. (i.e. my DataGrid may have 4 columns, but I only want to show text from the last two columns). Does anyone know how to access it?
[flexcoders] How to get 0 point on secondary vertical axis to line up with primary axis
Hi, I have a chart with 2 vertical axes (both LinearAxis types). The scales are different on both vertical axes, but I'd like the 0 point on each axis to line up. The primary axis can go negative, so I just can't start both at 0. However, I'd like the secondary axis to have its zero value label line up with the primary axis. Right now, because of the offset, if you're not careful, the second axis can look like it is plotting negative values too. The only way I've come up with is to try to determine the number of ticks and use the tick interval of the primary vertical axis to try to artificially create a minimum value for the second axis. Thanks, John
Re: [flexcoders] Drag and Drop (modify default dragProxy)
perhaps you can create a Label with the text from these twocolumns and then use this method http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768 DK On Mon, May 12, 2008 at 8:40 AM, nwebb [EMAIL PROTECTED] wrote: Hi, I'm drag/dropping items within a DataGrid. I would like to modify the default dragProxy label that is shown when you drag an item. (i.e. my DataGrid may have 4 columns, but I only want to show text from the last two columns). Does anyone know how to access it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] How can I launch windows applications like wordpad and notepad from AIR?
Hi, I have this requirement like launching native windows applications like Windows wordpad and notepad from an application. How Can I go about it? Is there a facility to do this in AIR 1.0? Thanks, Sudha.
Re: [flexcoders] Drag and Drop (modify default dragProxy)
Hi Douglas, thanks for the reply - yeah that's pretty much what I have at the moment (I capture the data on MouseDown and create/display a Label on MouseMove), but I thought it could be a little cleaner and so I was hoping I could access the current dragProxy, use the existing data within it, all within the MouseMove method. This is what I currently have: //Capture the row data when the user clicks on an item... private function dropZoneMouseDown(event:MouseEvent):void { var selectedData:XML = DataGrid(event.currentTarget).selectedItem as XML; _lastSelectedName = [EMAIL PROTECTED]; _lastSelectedAge = [EMAIL PROTECTED]; } private function dropZoneMouseMove(event:MouseEvent):void { var dragInitiator:IUIComponent = event.target as IUIComponent; var dragSource:DragSource = new DragSource(); var dragProxy:Label = _dragLabel; dragProxy.text = _lastSelectedName ++ _lastSelectedAge; DragManager.doDrag(dragInitiator, dragSource, event, dragProxy); } Cheers, Neil On Mon, May 12, 2008 at 2:41 PM, Douglas Knudsen [EMAIL PROTECTED] wrote: perhaps you can create a Label with the text from these twocolumns and then use this method http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768 DK On Mon, May 12, 2008 at 8:40 AM, nwebb [EMAIL PROTECTED] wrote: Hi, I'm drag/dropping items within a DataGrid. I would like to modify the default dragProxy label that is shown when you drag an item. (i.e. my DataGrid may have 4 columns, but I only want to show text from the last two columns). Does anyone know how to access it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] Drawing letters -- sprites?
I have a project where I am drawing circles and line and such directly onto a component extending a UIComponent (all actionscript) I've had problems finding examples of drawing letters (or font characters). The best I've been able to come up with is to use IUITextField objects and place those on the stage... but this is terrifically limited. Dynamically changing the font size and such becomes a really big issue. var textField:IUITextField; textField = IUITextField(createInFontContext(UITextField)); textField.text = _value.toString(); Are there any examples where I can draw the sprites for the letters themselves?
Re: [flexcoders] How to pass handled errors from the server to Flex
On Saturday 10 May 2008, Ralf Bokelberg wrote: We had the very same discussion last week. One of our developers made the valid comment, that Method2 is less readable, because both success and error are returned in the same ResultDTO. I see a distinction betwen the result of the remote method call (did I login OK or not) and the actual success of invoking it (is the network connection up). I use the fault handler for the later case, and 'Method2' for returning results, i.e. (.result=true, .data=any) Our Services are exposed via AOP, so the methods themselves still throw Exceptions, but these are returned to Flex as (.result=false, .data=exception.message) automatically. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] String to XML oddness
I came across an odd issue at the weekend, with parsing an XML file. I could read it into a String, and pass that to XMLDocument, and it was happy. But if I passed the same String to XML, I would be a run time exception saying that the XML was invalid. The 'fix' was to strip out the XML header: var str:String= data.readUTFBytes(data.bytesAvailable); var xhdr:String='?xml version=1.0 encoding=utf-8?'; str=str.substr(xhdr.length+1); var xml:XML=new XML(str); Why does that work, and why doesn't XMLDocument do the same validation(?) ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR?
In short, you can't. In reality, there may be alternate ways to open files. I blogged about this one, using NavigateToURL: http://www.jeffryhouser.com/index.cfm/2008/4/22/Using-AIR-to-launch-other-applications . You could also check out AIR Pollution at http://blog.fluorinefx.com/ ; which is intriguing. sudha_bsb wrote: Hi, I have this requirement like launching native windows applications like Windows wordpad and notepad from an application. How Can I go about it? Is there a facility to do this in AIR 1.0? Thanks, Sudha. -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
RE: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR?
On windows you can do through this framework http://aperture.fluorinefx.com/ Zoli _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sudha_bsb Sent: Monday, May 12, 2008 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR? Hi, I have this requirement like launching native windows applications like Windows wordpad and notepad from an application. How Can I go about it? Is there a facility to do this in AIR 1.0? Thanks, Sudha.
RE: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR?
No, although Zoli at the silentgroup has an alpha (work around ?) for windows : http://blog.fluorinefx.com/ Otherwise,I believe you'll have to communicate via localconnection or socket server to something that can. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sudha_bsb Sent: 12 May 2008 15:00 To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR? Hi, I have this requirement like launching native windows applications like Windows wordpad and notepad from an application. How Can I go about it? Is there a facility to do this in AIR 1.0? Thanks, Sudha. __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
[flexcoders] Re: Flash CS3 Component Creation
Are you exporting the component? Todo this: right-click the component in the library and open up either properties or linkage, check the export for actionscript and export in first frame fields - republish. -Nathan --- In flexcoders@yahoogroups.com, swidnikk [EMAIL PROTECTED] wrote: Right, thanks. I'm familiar with that link by Peter Ent. He recommends using the SWC inside of another SWF file and then using SWFLoader in the main app to load in that SWF. Its me who posted the final comment there. Hi solution is inconvenient though, since for each Flash component I now have, 1. FLA file to get the SWC (plus 'useless' SWF) 2. A Flex project for each FLA file that includes the SWC and compiles to a SWF. 3. Main application that dynamically loads the SWF from step 2 I have about 50 flash components and only a subset are loaded at any moment... so now I need another 50 projects for step 2 above. I still don't really understand why the 'useless' SWF from step 1 doesn't work... --- In flexcoders@yahoogroups.com, Robert Stehwien rstehwien@ wrote: NP. Here is one more link (that is actually the end of a series of related articles by Peter Ent. http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.htm l On Fri, May 9, 2008 at 10:20 PM, nathanpdaniel ndaniel@ wrote: PS. Thanks! I've seen the first one (video) which is actually really good - but the rest - hadn't seen those! :D --- In flexcoders@yahoogroups.com, Robert Stehwien rstehwien@ wrote: Here is my collection of links on the subject: https://admin.adobe.acrobat.com/_a300965365/p75214263/ http://www.webkitchen.be/2008/05/05/the-flash-and-flex- marriage/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit- step-by- step/http://lordbron.wordpress.com/2007/05/01/flex-component-kit- step-by-step/ http://www.moock.org/blog/archives/000253.html On Fri, May 9, 2008 at 3:37 PM, nathanpdaniel ndaniel@ wrote: I'm looking for tutorials on how to use the Flex Component kit in Flash CS3 to create components. I've seen a few videos by Glenn R. from Adobe, and a few other Adobe mini tutorials but all of them (for the most part) say You can do this! with no real way to understand it (source code, etc.)... if anyone knows of anything out there - I'd love to see it! :D -Nathan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] How to delete a workspace in FB3
I created a workspace which I now would like to delete (erase forever) How do I delete this workspace from Flexbuilder? TIA bod
[flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid?
Hi Tim, I understand what you said, but I am having trouble communicating back to the main dataGrid (myADG). Simply updating the dataProvider in the following code is not working! Here is the code... Any help with this would be appreciated! Thanks! Mary testItemRenderer.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initapp() layout=absolute mx:Script source=as/EditDataMain.as / mx:RemoteObject id=myService destination=ColdFusion source=FB3.testItemRenderer.src.myComponents.myService showBusyCursor=true mx:method name=getAllRcds result=getAllRcds_Result(event) fault=Alert.show(event.fault.message) / /mx:RemoteObject mx:AdvancedDataGrid id=myADG dataProvider={dp_ac} dataChange=getAllRcds() width=100% height=100% mx:columns mx:AdvancedDataGridColumn dataField=name/ mx:AdvancedDataGridColumn dataField=countryregioncode / mx:AdvancedDataGridColumn dataField=group/ mx:AdvancedDataGridColumn dataField=salesytd/ mx:AdvancedDataGridColumn dataField=saleslastyear/ mx:AdvancedDataGridColumn dataField=costytd/ mx:AdvancedDataGridColumn dataField=costlastyear/ mx:AdvancedDataGridColumn fontSize=10 width=50 id=EditEvent headerText=Edit itemRenderer=EditEventsRenderer / /mx:columns EditDataMain.as // ActionScript file import flash.events.Event; import mx.collections.ArrayCollection; import mx.controls.AdvancedDataGrid; import mx.controls.Alert; import mx.managers.PopUpManager; import mx.rpc.events.ResultEvent; import myComponents.editevents_tw; [Bindable] private var Territoryid:int; [Bindable] private var dp_ac:ArrayCollection; [Bindable] public var pop:editevents_tw; [Bindable] public var territoryid:Number; [Bindable] public var countryregioncode:String; [Bindable] public var group:String; [Bindable] public var salesytd:Number; [Bindable] public var saleslastyear:Number; [Bindable] public var costytd:Number; [Bindable] public var costlastyear:Number; public function initapp():void{ getAllRcds(); } public function getAllRcds_Result(event:ResultEvent):void { dp_ac = new ArrayCollection; dp_ac = event.result as ArrayCollection; if (dp_ac.length == 0){ Alert.show(No events found for selected date.) } } public function getAllRcds():void{ myService.getAllRcds(); } //Edit Popup window public function editevents_popup(data:Object):void { // Create the pop-up and cast the return value of the createPopUp() // Method to the editevents custom component. /* var message:String = ''; message = 'territoryid ' + data.territoryid + '\n'; message += 'countryregioncode ' + data.countryregioncode + '\n'; message += 'group ' + data.group + '\n'; message += 'salesytd ' + data.salesytd + '\n'; message += 'sales last year ' + data.saleslastyear + '\n'; message += 'costytd ' + data.costytd + '\n'; message += 'cost last year ' + data.costlastyear + '\n'; Alert.show(message);*/ pop =editevents_tw(PopUpManager.createPopUp(this,editevents_tw, true)); // Set TitleWindow properties. pop.title=Edit an Event:; pop.iname.text=data.territoryid; // pop.textitineraryid=data.itineraryid;
Re: [flexcoders] Drag and Drop (modify default dragProxy)
I think if you wanted to modify the default drag proxy you could subclass DataGrid and override the get dragImage function, which looks like this (in Flex 2.01) override protected function get dragImage():IUIComponent { var image:DataGridDragProxy = new DataGridDragProxy(); image.owner = this; return image; } You could subclass the DataGridDragProxy and then add your labels or whatever else you wanted, and return a new instance of that class in get dragImage On Mon, May 12, 2008 at 9:04 AM, nwebb [EMAIL PROTECTED] wrote: Hi Douglas, thanks for the reply - yeah that's pretty much what I have at the moment (I capture the data on MouseDown and create/display a Label on MouseMove), but I thought it could be a little cleaner and so I was hoping I could access the current dragProxy, use the existing data within it, all within the MouseMove method. This is what I currently have: //Capture the row data when the user clicks on an item... private function dropZoneMouseDown(event:MouseEvent):void { var selectedData:XML = DataGrid(event.currentTarget).selectedItem as XML; _lastSelectedName = [EMAIL PROTECTED]; _lastSelectedAge = [EMAIL PROTECTED]; } private function dropZoneMouseMove(event:MouseEvent):void { var dragInitiator:IUIComponent = event.target as IUIComponent; var dragSource:DragSource = new DragSource(); var dragProxy:Label = _dragLabel; dragProxy.text = _lastSelectedName ++ _lastSelectedAge; DragManager.doDrag(dragInitiator, dragSource, event, dragProxy); } Cheers, Neil On Mon, May 12, 2008 at 2:41 PM, Douglas Knudsen [EMAIL PROTECTED] wrote: perhaps you can create a Label with the text from these twocolumns and then use this method http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768 DK On Mon, May 12, 2008 at 8:40 AM, nwebb [EMAIL PROTECTED] wrote: Hi, I'm drag/dropping items within a DataGrid. I would like to modify the default dragProxy label that is shown when you drag an item. (i.e. my DataGrid may have 4 columns, but I only want to show text from the last two columns). Does anyone know how to access it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] Drag and Drop with data grids
Hi I am VERY new to Flex. What I am trying to do is Drag an item from a data grid and if a flag is Yes then I need to have that item being dragged to be dropped on two data grids rather than just one data grid. Is there any way to do this? I need to to append to what is already in the data grids it is being dropped on.
[flexcoders] Re: Programmatically setting default styles that can be overriden with a stylesheet?
You can try something like this (seemed to work for me): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Label; override protected function createChildren():void { super.createChildren(); var cssStyle:CSSStyleDeclaration; if (!StyleManager.getStyleDeclaration(.labelStyle)) { cssStyle = new CSSStyleDeclaration(); } else { cssStyle = StyleManager.getStyleDeclaration(.labelStyle); } cssStyle.defaultFactory = function():void { this.fontSize = 18; this.color= 0xff; } StyleManager.setStyleDeclaration(.labelStyle, cssStyle, true); var l:Label = new Label(); l.text = This is a test; l.styleName = labelStyle; addChild(l); } ]] /mx:Script mx:Style .labelStyle { color: #00ff00; } /mx:Style /mx:Application --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, let's say I have a Label I'm creating programmatically, and I'd like to have some default styles (like a big red font), but still allow them to be overriden with the stylesheet - can it be easily done? Cheers, -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] How do you all setup your development environment?
Hi all, I would like to get an idea how people setup their development environment. Let me share a bit of how I set it up (this is still work in progress, btw): IDE: FlexBuilder 3 with Ant Build Tool plugin. Workspace: My app is consisted with multiple modules. Each module is in its own project, and each project has its own Ant-build script. Project configuration: Each project's builder only points to Ant-build script so that I can ensure the Ant-build script will also run smoothly in the Build server. For production release: Use a build server that runs the Ant-build script. Feedback: Pros: - Please see 'Project configuration' section. Cons: - Sometimes if there's any build error, my compiler won't stop at the error. It will just continue to execute other Ant-build script. - And if the compiler stops on an Ant-build due to an error, I don't have the luxury to be able to go directly to the file that causes the error because the error output is just a text on the Console. With so much trouble that I encountered by using Ant-build script on my FlexBuilder, I am thinking to revert back to Flex-build on my FlexBuilder but still building using Ant-build script on BuildServer. I appreciate for any feedback, thx.
RE: [flexcoders] binding quandary
That is one way. You can also directly update the model in a change event. I prefer to call into a single update function, passing in the property name and value, so that I can do things like compare data to toggle tool buttons an menu options. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luke Vanderfluit Sent: Saturday, May 10, 2008 4:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] binding quandary Hi. I have a master detail setup with a list of sites in the master section and individual sites in the detail section. In the detail section I have a form and I want to bind the form field values to the current site object. When I click on a site object in the master component, the 'set' function in the details component sets the site and pulls the particulars for that site from the server. I handle that server call (still in the details component) and copy the site values from the database into the site object. The form fields in the details component are bound to the site object using '{}'. Now when I alter the fields the changes are not reflected in the site object. The fields are bound to the site object so they should change when the site object changes. However when the fields are changed the changes are not reflected in the site object and I have to manually update the fields to get this to work. I expected the binding to work both ways. Apparently not. Is this correct. Should I set binding programmatically and then set them both ways, like so? BindingUtils.bindProperty(siteObject, selected, checkboxField, selected); BindingUtils.bindProperty(checkBoxField, selected, siteObject, selected); Can anyone shed light on this and suggest a recommended way of doing what I want to achieve. Thanks. Kind regards. Luke
RE: [flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid?
That is too much unformatted code for me to analyze from scratch. In your pop-up, how are you updating the dp_ac in the main app? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of web2mmac Sent: Monday, May 12, 2008 10:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid? Hi Tim, I understand what you said, but I am having trouble communicating back to the main dataGrid (myADG). Simply updating the dataProvider in the following code is not working! Here is the code... Any help with this would be appreciated! Thanks! Mary testItemRenderer.mxml... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=initapp() layout=absolute mx:Script source=as/EditDataMain.as / mx:RemoteObject id=myService destination=ColdFusion source=FB3.testItemRenderer.src.myComponents.myService showBusyCursor=true mx:method name=getAllRcds result=getAllRcds_Result(event) fault=Alert.show(event.fault.message) / /mx:RemoteObject mx:AdvancedDataGrid id=myADG dataProvider={dp_ac} dataChange=getAllRcds() width=100% height=100% mx:columns mx:AdvancedDataGridColumn dataField=name/ mx:AdvancedDataGridColumn dataField=countryregioncode / mx:AdvancedDataGridColumn dataField=group/ mx:AdvancedDataGridColumn dataField=salesytd/ mx:AdvancedDataGridColumn dataField=saleslastyear/ mx:AdvancedDataGridColumn dataField=costytd/ mx:AdvancedDataGridColumn dataField=costlastyear/ mx:AdvancedDataGridColumn fontSize=10 width=50 id=EditEvent headerText=Edit itemRenderer=EditEventsRenderer / /mx:columns EditDataMain.as... // ActionScript file import flash.events.Event; import mx.collections.ArrayCollection; import mx.controls.AdvancedDataGrid; import mx.controls.Alert; import mx.managers.PopUpManager; import mx.rpc.events.ResultEvent; import myComponents.editevents_tw; [Bindable] private var Territoryid:int; [Bindable] private var dp_ac:ArrayCollection; [Bindable] public var pop:editevents_tw; [Bindable] public var territoryid:Number; [Bindable] public var countryregioncode:String; [Bindable] public var group:String; [Bindable] public var salesytd:Number; [Bindable] public var saleslastyear:Number; [Bindable] public var costytd:Number; [Bindable] public var costlastyear:Number; public function initapp():void{ getAllRcds(); } public function getAllRcds_Result(event:ResultEvent):void { dp_ac = new ArrayCollection; dp_ac = event.result as ArrayCollection; if (dp_ac.length == 0){ Alert.show(No events found for selected date.) } } public function getAllRcds():void{ myService.getAllRcds(); } //Edit Popup window public function editevents_popup(data:Object):void { // Create the pop-up and cast the return value of the createPopUp() // Method to the editevents custom component. /* var message:String = ''; message = 'territoryid ' + data.territoryid + '\n'; message += 'countryregioncode ' + data.countryregioncode + '\n'; message += 'group ' + data.group + '\n'; message += 'salesytd ' + data.salesytd + '\n'; message += 'sales last year ' + data.saleslastyear + '\n'; message += 'costytd ' + data.costytd + '\n'; message += 'cost last year ' + data.costlastyear + '\n'; Alert.show(message);*/ pop =editevents_tw(PopUpManager.createPopUp(this,editevents_tw, true)); // Set TitleWindow properties. pop.title=Edit an Event:; pop.iname.text=data.territoryid; // pop.textitineraryid=data.itineraryid; pop.rg.text=data.countryregioncode; pop.gr.text=data.group; pop.sytd.text=data.salesytd; pop.sly.text=data.saleslastyear; pop.cytd.text=data.costytd; pop.cly.text=data.costlastyear; /* pop.nm.text=data.Name; */ pop.showCloseButton=true; // Set the event listeners for the editevents component. pop.addEventListener(close, editevents_removeMe); pop[saveBtn].addEventListener(click, editevents_submitData); pop[deleteBtn].addEventListener(click, editevents_removeMe); pop[cancelButton].addEventListener(click, editevents_removeMe); } public function editevents_submitData(event:Event):void { // radioedit.selected = 'false'; data.countryregioncode=pop.rg.text; data.group=pop.gr.text; data.salesytd=pop.sytd.text; data.saleslastyear=pop.sly.text; data.costytd=pop.cytd.text; data.costlastyear=pop.cly.text; PopUpManager.removePopUp(pop); } // Cancel button click event listener. public function editevents_removeMe(event:Event):void { PopUpManager.removePopUp(pop); } EditEventsRenderer.mxml... ?xml version=1.0? !-- EditEventsRenderer.mxml -- mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml mx:Script source=as/EditDataMain.as / mx:RemoteObject id=myService destination=ColdFusion source=FB3.testItemRenderer.src.myComponents.myService showBusyCursor=true mx:method name=getAllRcds result=getAllRcds_Result(event) fault=Alert.show(event.fault.message) /
RE: [flexcoders] How to return data to a database back end and reference updates
There are many ways. Sometimes I send the key value(s) in separate parameters. Curently I am building an xml update structure that includes key field names and values as well as the values to be updated, inserted or deleted.. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Saturday, May 10, 2008 1:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to return data to a database back end and reference updates Hello all, I have a question on how to return data to a database back end. Here is my problem. I have a PHP and MySQL backend that I communicate to with a JSon request. So I have a populated datagrid and want to make a change (editable = true) and send that data back via a HTTPService post. So I post the data to my php page that is waiting the information but the problem is, I only have data, to referencing information. When I make a change in my database I will do an update but I have to reference something (update table set tochange = 'data' where reference = 'something ';) How do people update databases with changes in datagrids? Thanks for the help, timgerr
RE: [flexcoders] Drag and Drop with data grids
Override the dragDrop handler. You can do whatever you want with the data in there. http://livedocs.adobe.com/flex/3/html/dragdrop_5.html Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of beczim Sent: Monday, May 12, 2008 10:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop with data grids Hi I am VERY new to Flex. What I am trying to do is Drag an item from a data grid and if a flag is Yes then I need to have that item being dragged to be dropped on two data grids rather than just one data grid. Is there any way to do this? I need to to append to what is already in the data grids it is being dropped on.
RE: [flexcoders] Multiple data grids
There are lots of ways to do this but here is one: 1 Project 1 application 1 ViewStack 1 Navigator component to control the ViewStack 1 globally available data model(variable) for each DG/Table. These can be bindable variables in the main App, or in a singleton object 1 RPC instance(HTTPService, WebService, RemoteObject) For each Table, in the data model component implement a function that invokes the data service call. Use AsyncToken to set a callId value tht identifies the table In the data Model component, implement a result handler for the rpc instance. Read the Asynctoken Propery and assign the result to the appropriate data model variable. Implement the ViewStack views containing the Table DGs as components In each DG component, in the creationComplete handler, call the DS Query through the data model function. Bind each dataGrid to its data model var. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Pride Sent: Sunday, May 11, 2008 11:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Multiple data grids I want to design a series of data grids each of which simply lists out the data in a table. 1) Do I do this in one app or one project? 2) Can I use view stack to dynamically kick a php query for each grid as it is displayed? 3) How do I handle the script references for each data grid since the http service call is different for each grid thanks Dan Pride __ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Re: Flash CS3 Component Creation
For dynamic libraries check out modules mx.modules.Module, mx.modules.ModuleBase, mx.modules.ModuleLoader, mx.modules.ModuleManager. Modules are like RSLs but don't have to be loaded when the application starts. On Sun, May 11, 2008 at 1:28 PM, swidnikk [EMAIL PROTECTED] wrote: Right, thanks. I'm familiar with that link by Peter Ent. He recommends using the SWC inside of another SWF file and then using SWFLoader in the main app to load in that SWF. Its me who posted the final comment there. Hi solution is inconvenient though, since for each Flash component I now have, 1. FLA file to get the SWC (plus 'useless' SWF) 2. A Flex project for each FLA file that includes the SWC and compiles to a SWF. 3. Main application that dynamically loads the SWF from step 2 I have about 50 flash components and only a subset are loaded at any moment... so now I need another 50 projects for step 2 above. I still don't really understand why the 'useless' SWF from step 1 doesn't work... --- In flexcoders@yahoogroups.com, Robert Stehwien [EMAIL PROTECTED] wrote: NP. Here is one more link (that is actually the end of a series of related articles by Peter Ent. http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.html On Fri, May 9, 2008 at 10:20 PM, nathanpdaniel [EMAIL PROTECTED] wrote: PS. Thanks! I've seen the first one (video) which is actually really good - but the rest - hadn't seen those! :D --- In flexcoders@yahoogroups.com, Robert Stehwien rstehwien@ wrote: Here is my collection of links on the subject: https://admin.adobe.acrobat.com/_a300965365/p75214263/ http://www.webkitchen.be/2008/05/05/the-flash-and-flex-marriage/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by- step/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ http://www.moock.org/blog/archives/000253.html On Fri, May 9, 2008 at 3:37 PM, nathanpdaniel ndaniel@ wrote: I'm looking for tutorials on how to use the Flex Component kit in Flash CS3 to create components. I've seen a few videos by Glenn R. from Adobe, and a few other Adobe mini tutorials but all of them (for the most part) say You can do this! with no real way to understand it (source code, etc.)... if anyone knows of anything out there - I'd love to see it! :D -Nathan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] View State Help
I am trying to use States in my Flex 3 application. The application is run outside of the browser. The one thing I am hoping to improve upon is manual labor of removing and adding components when the states change. So for example if I have a login panel. Once the user logs in i want to go to a new view with some other components. Right now in my mx:State I have defined: mx:RemoveChild .../ mx:RemoveChild ../ mx:AddChild ... mx:DataGrid... /mx:DataGrid /mx:AddChild anyways...is there a better or nicer way of handling such things? I'm just curious because it seems like a bunch of work referencing these components all over the place. Just curious on how it might be done better. Thanks in advance.
RE: [flexcoders] String to XML oddness
XML is totally different code from XMLDocument so there could be a bug somewhere. Please file a bug with a test case. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Monday, May 12, 2008 7:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] String to XML oddness I came across an odd issue at the weekend, with parsing an XML file. I could read it into a String, and pass that to XMLDocument, and it was happy. But if I passed the same String to XML, I would be a run time exception saying that the XML was invalid. The 'fix' was to strip out the XML header: var str:String= data.readUTFBytes(data.bytesAvailable); var xhdr:String='?xml version=1.0 encoding=utf-8?'; str=str.substr(xhdr.length+1); var xml:XML=new XML(str); Why does that work, and why doesn't XMLDocument do the same validation(?) ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] View State Help
ViewStack is easier to use if there are significant difference between the views. Many people use a popup for login. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cwicky99 Sent: Monday, May 12, 2008 1:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] View State Help I am trying to use States in my Flex 3 application. The application is run outside of the browser. The one thing I am hoping to improve upon is manual labor of removing and adding components when the states change. So for example if I have a login panel. Once the user logs in i want to go to a new view with some other components. Right now in my mx:State I have defined: mx:RemoveChild .../ mx:RemoveChild ../ mx:AddChild ... mx:DataGrid... /mx:DataGrid /mx:AddChild anyways...is there a better or nicer way of handling such things? I'm just curious because it seems like a bunch of work referencing these components all over the place. Just curious on how it might be done better. Thanks in advance.
RE: [flexcoders] Drawing letters -- sprites?
Not really. TextField is the only way to get text. I suppose you could generate a bitmap from a textfield and copy character, but that's a lot of work. You only have to use createInFontContext if you have multiple SWFs and are embedding fonts in different SWFs. Otherwise, generate a TextField and set its textFormat. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Maher Sent: Monday, May 12, 2008 7:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drawing letters -- sprites? I have a project where I am drawing circles and line and such directly onto a component extending a UIComponent (all actionscript) I've had problems finding examples of drawing letters (or font characters). The best I've been able to come up with is to use IUITextField objects and place those on the stage... but this is terrifically limited. Dynamically changing the font size and such becomes a really big issue. var textField:IUITextField; textField = IUITextField(createInFontContext(UITextField)); textField.text = _value.toString(); Are there any examples where I can draw the sprites for the letters themselves?
[flexcoders] Re: Tree with adjustable height and without scroll bar
Hi Alex, That did the trick. Thanks a lot. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Set the tree's height by calling measureHeightOfItems() From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gaurav1146 Sent: Sunday, May 11, 2008 4:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree with adjustable height and without scroll bar Hi, I have a certain structure where I have some components in a VBox. The components are formed dynamically and are used for taking user input.One of the components is a Flex Tree with checkboxes. The problem that I am facing is that the flex tree has a specified height and stands out from other components due to spacing between the tree and the next component. Secondly when the user expands a node a scrollbar appears on the flex tree. What I want to achieve is that the tree height should be adjusted based on the expand/collapse state of its nodes. Also no scrollbar should appear on the tree. If at all there is a space issue the tree should expand to fit in all it nodes and the other components in the VBox should move accordingly. And The scrollbar should only appear for the VBox. Setting verticalScrollPolicy=off for the tree did not work as the the nodes that were further down in the tree did not appear on the screen at all. Any suggestions on how could i achieve this would be greatly appreciated. TIA gaurav
[flexcoders] Re: Drawing letters -- sprites?
is this what you are after? The key is to call textFormat on your text. import flash.text.TextField; import flash.text.TextFormat; /// some method calls code like this line to kick it off: this.rawChildren.addChild( createWhiteCircle( 1 ) ); private function createLabel( color: Object, size : Number ) : TextField { var label : TextField = new TextField(); label.autoSize = TextFieldAutoSize.LEFT; label.background = false; label.border = false; label.thickness=5; label.x = 4; label.y = 0; label.width=10; var format:TextFormat = new TextFormat(); format.font = Tahoma; format.color = color; format.size = size; format.underline = false; format.bold = true; label.defaultTextFormat = format; return label; } private function createWhiteCircle( displayNum : String) : Sprite { var circleShape : Sprite = new Sprite(); var label : TextField; circleShape.graphics.lineStyle( 1, 0x00, .75, false ); circleShape.graphics.beginFill(0xFF, 1); circleShape.graphics.drawCircle(10, 10, 10); label = createLabel( 0x66, 12 ); label.text = displayNum; label.alpha = .75; circleShape.addChild( label ); return circleShape; } cheers- Dustin --- In flexcoders@yahoogroups.com, Matt Maher [EMAIL PROTECTED] wrote: I have a project where I am drawing circles and line and such directly onto a component extending a UIComponent (all actionscript) I've had problems finding examples of drawing letters (or font characters). The best I've been able to come up with is to use IUITextField objects and place those on the stage... but this is terrifically limited. Dynamically changing the font size and such becomes a really big issue. var textField:IUITextField; textField = IUITextField(createInFontContext(UITextField)); textField.text = _value.toString(); Are there any examples where I can draw the sprites for the letters themselves?
[flexcoders] Re: How can I launch windows applications like wordpad and notepad from AIR?
Hi Zoli, Thanks a lot. That was really a cool framework. I am facing problems with some of the applications. Fault: [RPC Fault faultString=Invalid UUID apdotnet.Sample faultCode=Aperture.Error.InvalidUUID faultDetail=Invalid class string] for Dotnet Sample. Fault: [RPC Fault faultString=Error loading library apoutlook faultCode=Aperture.Error.LoadLibrary faultDetail=Could not find the key in the registry] for OutlookDemo... Fault: [RPC Fault faultString=Error loading library apimaging faultCode=Aperture.Error.LoadLibrary faultDetail=Could not find the key in the registry] for CaptureDemo... Also could you please explain me what each sample program does... Thanks in Advance, Sudha. --- In flexcoders@yahoogroups.com, zoltan [EMAIL PROTECTED] wrote: On windows you can do through this framework http://aperture.fluorinefx.com/ Zoli _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sudha_bsb Sent: Monday, May 12, 2008 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR? Hi, I have this requirement like launching native windows applications like Windows wordpad and notepad from an application. How Can I go about it? Is there a facility to do this in AIR 1.0? Thanks, Sudha.
RE: [flexcoders] Drag and Drop (modify default dragProxy)
It isn't the DragProxy you want to change, but probably just the dragImage handed into DragManager.doDrag. The place to do that is in a handler for DRAG_START where you call preventDefault() so the default dragImage isn't used. You can also subclass and override dragImage. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nwebb Sent: Monday, May 12, 2008 7:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Drag and Drop (modify default dragProxy) Hi Douglas, thanks for the reply - yeah that's pretty much what I have at the moment (I capture the data on MouseDown and create/display a Label on MouseMove), but I thought it could be a little cleaner and so I was hoping I could access the current dragProxy, use the existing data within it, all within the MouseMove method. This is what I currently have: //Capture the row data when the user clicks on an item... private function dropZoneMouseDown(event:MouseEvent):void { var selectedData:XML = DataGrid(event.currentTarget).selectedItem as XML; _lastSelectedName = [EMAIL PROTECTED]; _lastSelectedAge = [EMAIL PROTECTED]; } private function dropZoneMouseMove(event:MouseEvent):void { var dragInitiator:IUIComponent = event.target as IUIComponent; var dragSource:DragSource = new DragSource(); var dragProxy:Label = _dragLabel; dragProxy.text = _lastSelectedName ++ _lastSelectedAge; DragManager.doDrag(dragInitiator, dragSource, event, dragProxy); } Cheers, Neil On Mon, May 12, 2008 at 2:41 PM, Douglas Knudsen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: perhaps you can create a Label with the text from these twocolumns and then use this method http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768 http://livedocs.adobe.com/flex/3/html/dragdrop_7.html#226768 DK On Mon, May 12, 2008 at 8:40 AM, nwebb [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I'm drag/dropping items within a DataGrid. I would like to modify the default dragProxy label that is shown when you drag an item. (i.e. my DataGrid may have 4 columns, but I only want to show text from the last two columns). Does anyone know how to access it? -- Douglas Knudsen http://www.cubicleman.com http://www.cubicleman.com this is my signature, like it?
[flexcoders] Flexbuilder error with resource bundles
I've created a Resource bundle which includes Embed directives and I'm starting to get what seem like spurious errors in Flexbuilder. Invalid Embed directive in stylesheet They go away if I do a clean build, but return if I make any change (in unrelated files) I see others have similar problems, but in my case it's not a question of having more than 138 errors, and the error does go away on a clean build. http://viconflex.blogspot.com/2008/04/invalid-embed-directive-in-stylesheet.html Any suggestions?
[flexcoders] Some Slider help needed please.
I'm using 2 sliders (each has 2 thumbs for min and max) to help zoom in on charts. In some cases those sliders need to change their min and max values. That I can do but I'm having a hard time changing the labels and values. Those don't seem to be able to accept bindings. Can anyone help here? Thanks mx:HSlider id=xSlider minimum=0 maximum={staticMaxX} showTrackHighlight=true dataTipPlacement=top thumbCount=2 tickColor=black snapInterval=1 tickInterval=10 allowThumbOverlap=false labels=[0, 110] allowTrackClick=false liveDragging=true values=[0, 110] change=sliderChangeX(event);trace('X'); /
[flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid?
Tracy, That is my question. I am not able to communicate back to the main app due to the item renderer calling the popup page. Once the popup closes, the array used to bind to the main app datagrid is updated, but the datagrid in the main app does not get updated. Thanks, Mary --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: That is too much unformatted code for me to analyze from scratch. In your pop-up, how are you updating the dp_ac in the main app? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of web2mmac Sent: Monday, May 12, 2008 10:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid? Hi Tim, I understand what you said, but I am having trouble communicating back to the main dataGrid (myADG). Simply updating the dataProvider in the following code is not working! Here is the code... Any help with this would be appreciated! Thanks! Mary testItemRenderer.mxml... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=initapp() layout=absolute mx:Script source=as/EditDataMain.as / mx:RemoteObject id=myService destination=ColdFusion source=FB3.testItemRenderer.src.myComponents.myService showBusyCursor=true mx:method name=getAllRcds result=getAllRcds_Result(event) fault=Alert.show(event.fault.message) / /mx:RemoteObject mx:AdvancedDataGrid id=myADG dataProvider={dp_ac} dataChange=getAllRcds() width=100% height=100% mx:columns mx:AdvancedDataGridColumn dataField=name/ mx:AdvancedDataGridColumn dataField=countryregioncode / mx:AdvancedDataGridColumn dataField=group/ mx:AdvancedDataGridColumn dataField=salesytd/ mx:AdvancedDataGridColumn dataField=saleslastyear/ mx:AdvancedDataGridColumn dataField=costytd/ mx:AdvancedDataGridColumn dataField=costlastyear/ mx:AdvancedDataGridColumn fontSize=10 width=50 id=EditEvent headerText=Edit itemRenderer=EditEventsRenderer / /mx:columns EditDataMain.as... // ActionScript file import flash.events.Event; import mx.collections.ArrayCollection; import mx.controls.AdvancedDataGrid; import mx.controls.Alert; import mx.managers.PopUpManager; import mx.rpc.events.ResultEvent; import myComponents.editevents_tw; [Bindable] private var Territoryid:int; [Bindable] private var dp_ac:ArrayCollection; [Bindable] public var pop:editevents_tw; [Bindable] public var territoryid:Number; [Bindable] public var countryregioncode:String; [Bindable] public var group:String; [Bindable] public var salesytd:Number; [Bindable] public var saleslastyear:Number; [Bindable] public var costytd:Number; [Bindable] public var costlastyear:Number; public function initapp():void{ getAllRcds(); } public function getAllRcds_Result(event:ResultEvent):void { dp_ac = new ArrayCollection; dp_ac = event.result as ArrayCollection; if (dp_ac.length == 0){ Alert.show(No events found for selected date.) } } public function getAllRcds():void{ myService.getAllRcds(); } //Edit Popup window public function editevents_popup(data:Object):void { // Create the pop-up and cast the return value of the createPopUp() // Method to the editevents custom component. /* var message:String = ''; message = 'territoryid ' + data.territoryid + '\n'; message += 'countryregioncode ' + data.countryregioncode + '\n'; message += 'group ' + data.group + '\n'; message += 'salesytd ' + data.salesytd + '\n'; message += 'sales last year ' + data.saleslastyear + '\n'; message += 'costytd ' + data.costytd + '\n'; message += 'cost last year ' + data.costlastyear + '\n'; Alert.show(message);*/ pop =editevents_tw(PopUpManager.createPopUp(this,editevents_tw, true)); // Set TitleWindow properties. pop.title=Edit an Event:; pop.iname.text=data.territoryid; // pop.textitineraryid=data.itineraryid; pop.rg.text=data.countryregioncode; pop.gr.text=data.group; pop.sytd.text=data.salesytd; pop.sly.text=data.saleslastyear; pop.cytd.text=data.costytd; pop.cly.text=data.costlastyear; /* pop.nm.text=data.Name; */ pop.showCloseButton=true; // Set the event listeners for the editevents component. pop.addEventListener(close, editevents_removeMe); pop[saveBtn].addEventListener(click, editevents_submitData); pop[deleteBtn].addEventListener(click, editevents_removeMe); pop[cancelButton].addEventListener(click, editevents_removeMe); } public function editevents_submitData(event:Event):void { // radioedit.selected = 'false'; data.countryregioncode=pop.rg.text; data.group=pop.gr.text; data.salesytd=pop.sytd.text; data.saleslastyear=pop.sly.text; data.costytd=pop.cytd.text; data.costlastyear=pop.cly.text; PopUpManager.removePopUp(pop); } // Cancel button click event listener. public
Re: [flexcoders] Re: How can I launch windows applications like wordpad and notepad from AIR?
build air file and launch it. I've got the same errors on testing level - Original Message From: sudha_bsb [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 12, 2008 9:28:30 PM Subject: [flexcoders] Re: How can I launch windows applications like wordpad and notepad from AIR? Hi Zoli, Thanks a lot. That was really a cool framework. I am facing problems with some of the applications. Fault: [RPC Fault faultString= Invalid UUID apdotnet.Sample faultCode=Aperture .Error.InvalidUU ID faultDetail= Invalid class string] for Dotnet Sample. Fault: [RPC Fault faultString= Error loading library apoutlook faultCode=Aperture .Error.LoadLibra ry faultDetail= Could not find the key in the registry] for OutlookDemo. .. Fault: [RPC Fault faultString= Error loading library apimaging faultCode=Aperture .Error.LoadLibra ry faultDetail= Could not find the key in the registry] for CaptureDemo. .. Also could you please explain me what each sample program does... Thanks in Advance, Sudha. --- In [EMAIL PROTECTED] ups.com, zoltan [EMAIL PROTECTED] wrote: On windows you can do through this framework http://aperture. fluorinefx. com/ Zoli _ From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of sudha_bsb Sent: Monday, May 12, 2008 5:00 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR? Hi, I have this requirement like launching native windows applications like Windows wordpad and notepad from an application. How Can I go about it? Is there a facility to do this in AIR 1.0? Thanks, Sudha. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] SQL statement is not finding my table in AIR app
I've started implementing the bulk of the database logic in our current software project, and while trying to get the select statement to work in populating the datagrid in one window upon creation, I keep running into this error every time the SQL statement tries to execute. It keeps saying that the table I'm trying to get the data from doesn't exit, when it clearly does in the database the application creates in the event it doesn't already exist. I've checked the spelling, and fixed my select statement, but it still says that the table doesn't exist. Here is the code I'm using: //Functions to load the proper window depending on what window is open //Imported Stuff import MatMgr.DataManager; import flash.data.SQLConnection; import flash.data.SQLResult; import flash.data.SQLStatement; import flash.display.NativeWindow; import flash.events.SQLErrorEvent; import flash.events.SQLEvent; //Code to load either the new Repair Order or new Purchase Order window //Declared variables used in more than just one function private var dataManager:DataManager = new DataManager(); private var loadRO:Repair_Order = new Repair_Order(); private var loadPO:PurchaseOrder = new PurchaseOrder(); private var sqlText:String; private var selectStatement:SQLStatement; private var conn:SQLConnection; //Form Initialization private function init():void { var appWindow:NativeWindow = this.stage.nativeWindow; var winTitle:String = appWindow.title; //Alert.show(winTitle, The title of the window is...); switch(winTitle) { case Repair Orders: setSelectData(winTitle); break; case Purchase Orders: setSelectData(winTitle); break; } } //Select functions to populate the datagrid private function setSelectData(windowTitle:String):void { var selectedROHeaderColumns:String = ROID, BillID, RODate, Status; var selectedPOHeaderColumns:String = POID, PODate, TechID, Status; switch(windowTitle) { case Repair Orders: sqlText = SELECT + selectedROHeaderColumns + FROM Up18ROHeader; executeSQL(sqlText); break; case Purchase Orders: sqlText = SELECT + selectedPOHeaderColumns + FROM Up18POHeader; executeSQL(sqlText); break; } } private function executeSQL(selectSQL:String):void { selectStatement = new SQLStatement(); conn = new SQLConnection(); selectStatement.sqlConnection = conn; conn.open(); selectStatement.addEventListener(SQLEvent.RESULT, selectResult); selectStatement.addEventListener(SQLErrorEvent.ERROR, dataManager.errorHandler); selectStatement.text = selectSQL; selectStatement.execute(); } private function selectResult(event:SQLEvent):void { var result:SQLResult = selectStatement.getResult(); dgOrders.dataProvider = result.data; }
[flexcoders] Re: How can I launch windows applications like wordpad and notepad from AIR?
Hi, Thanks...That helped for outlook demo and CaptureDemo DotNetSample...I am still running out with the same error... Also Could you please explain me how to launch the System Calender Thanks, Sudha. --- In flexcoders@yahoogroups.com, Carlo Gulliani [EMAIL PROTECTED] wrote: build air file and launch it. I've got the same errors on testing level - Original Message From: sudha_bsb [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, May 12, 2008 9:28:30 PM Subject: [flexcoders] Re: How can I launch windows applications like wordpad and notepad from AIR? Hi Zoli, Thanks a lot. That was really a cool framework. I am facing problems with some of the applications. Fault: [RPC Fault faultString= Invalid UUID apdotnet.Sample faultCode=Aperture .Error.InvalidUU ID faultDetail= Invalid class string] for Dotnet Sample. Fault: [RPC Fault faultString= Error loading library apoutlook faultCode=Aperture .Error.LoadLibra ry faultDetail= Could not find the key in the registry] for OutlookDemo. .. Fault: [RPC Fault faultString= Error loading library apimaging faultCode=Aperture .Error.LoadLibra ry faultDetail= Could not find the key in the registry] for CaptureDemo. .. Also could you please explain me what each sample program does... Thanks in Advance, Sudha. --- In [EMAIL PROTECTED] ups.com, zoltan zoltan@ wrote: On windows you can do through this framework http://aperture. fluorinefx. com/ Zoli _ From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of sudha_bsb Sent: Monday, May 12, 2008 5:00 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] How can I launch windows applications like wordpad and notepad from AIR? Hi, I have this requirement like launching native windows applications like Windows wordpad and notepad from an application. How Can I go about it? Is there a facility to do this in AIR 1.0? Thanks, Sudha. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Refactoring a complete package ( renaming com.a.Foo to com.b.Foo )
If you have a *nix environment, you can do this fairly easily with a bit of sed and a few mv commands. I did this for our codebase (spanning a C program--that, come to think of it, I believe was converted by someone else--three core Java components, a Flex UI, and a number of smaller Java modules) when we changed our name from Amalgamated Insight to Truviso. Doing this with sed is a little dicey, since you're doing text substitution instead of real refactoring, but I don't believe we had any problems after the conversion. If you're on Windows, you could check to see if Powershell can do something similar, or check out cygwin or msys/mingw. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Aldo Bucchi [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Refactoring a complete package ( renaming com.a.Foo to com.b.Foo ) Date: Sat, 10 May 2008 00:06:19 -0400 Hi guys, Has anyone built a utility tool to aid in major refactorings? I need to move a complete codebase from one domain name to another. Don't think I can pull it off with the integrated refactoring support. Thanks, A -- Aldo Bucchi +56 9 7623 8653 skype:aldo.bucchi
[flexcoders] Binding to Static Function
I'm having a hard time binding to a static function. The function is just a shortcut through a singleton instance. I'm using the [Bindable(event=myChange)] metadata tag and the data is getting dispatched when the source changes, except the event doesn't notify anything to call the static function again. Does anybody have some good reading on this? or an example of how this is done? Thanks, Brian..
[flexcoders] Re: Sending data to the Server
Thanks for the reply Seth. I am now able to send an ArrayCollection of my custom class Chart: [Bindable] [RemoteClass(alias=factory.data.Chart)] public class ChartObject { private var name:String; private var axisList:ArrayCollection; public function getAxisList():ArrayCollection { return axisList; } } And I can read the array in the java message handler, and it even detects the objects in the array as Charts but when I try to get the axisList array from within Chart, it comes up as null. The axisList is an array of objects from another custom class I have called Axis. Here is a sample of the java Chart class for reference: public class Chart { //import mx.collections.ArrayCollection; //import mx.controls.Image; public String name; public ArrayList axisList; public ArrayList getAxisList() { return axisList; } --- In flexcoders@yahoogroups.com, Seth Hodgson [EMAIL PROTECTED] wrote: You can send any type of data as the body of a message. If you want to send an instance of a typed class, be sure to include [RemoteClass(alias=your.java.Class)] metadata in your ActionScript class so that the Player serializes it with type info and the server can deserialize it to your desired type. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Friday, May 09, 2008 7:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sending data to the Server I need to send data to the server. Up til now I've been using messaging. But as far as I can tell, I can only send strings this way. What other alternatives are there? For instance, I would like to be able to send an array or a custom data structure. I'm using Java for the backend. Ideally I would not want to launch a new RemoteObject for each send from Flex, but instead have a persistent listener to hear all requests (which is why I initially chose messaging and created a channel for the java message manager to listen to).
RE: [flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid?
Are you getting your updated value from the pop-up back into the item renderer? Are you assigning the changed value to the item's appropriate property in the renderer? If so, then you may need to call dp_ac.itemUpdated(item) to make the DG refresh. Do that in the renderer through the listData object, or by using Application.application to reach the main app's scope, where the dg_ac var lives. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of web2mmac Sent: Monday, May 12, 2008 1:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid? Tracy, That is my question. I am not able to communicate back to the main app due to the item renderer calling the popup page. Once the popup closes, the array used to bind to the main app datagrid is updated, but the datagrid in the main app does not get updated. Thanks, Mary --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: That is too much unformatted code for me to analyze from scratch. In your pop-up, how are you updating the dp_ac in the main app? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of web2mmac Sent: Monday, May 12, 2008 10:07 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Flex Item Renderer using popup to edit datagrid - How to refresh datagrid? Hi Tim, I understand what you said, but I am having trouble communicating back to the main dataGrid (myADG). Simply updating the dataProvider in the following code is not working! Here is the code... Any help with this would be appreciated! Thanks! Mary testItemRenderer.mxml... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=initapp() layout=absolute mx:Script source=as/EditDataMain.as / mx:RemoteObject id=myService destination=ColdFusion source=FB3.testItemRenderer.src.myComponents.myService showBusyCursor=true mx:method name=getAllRcds result=getAllRcds_Result(event) fault=Alert.show(event.fault.message) / /mx:RemoteObject mx:AdvancedDataGrid id=myADG dataProvider={dp_ac} dataChange=getAllRcds() width=100% height=100% mx:columns mx:AdvancedDataGridColumn dataField=name/ mx:AdvancedDataGridColumn dataField=countryregioncode / mx:AdvancedDataGridColumn dataField=group/ mx:AdvancedDataGridColumn dataField=salesytd/ mx:AdvancedDataGridColumn dataField=saleslastyear/ mx:AdvancedDataGridColumn dataField=costytd/ mx:AdvancedDataGridColumn dataField=costlastyear/ mx:AdvancedDataGridColumn fontSize=10 width=50 id=EditEvent headerText=Edit itemRenderer=EditEventsRenderer / /mx:columns EditDataMain.as... // ActionScript file import flash.events.Event; import mx.collections.ArrayCollection; import mx.controls.AdvancedDataGrid; import mx.controls.Alert; import mx.managers.PopUpManager; import mx.rpc.events.ResultEvent; import myComponents.editevents_tw; [Bindable] private var Territoryid:int; [Bindable] private var dp_ac:ArrayCollection; [Bindable] public var pop:editevents_tw; [Bindable] public var territoryid:Number; [Bindable] public var countryregioncode:String; [Bindable] public var group:String; [Bindable] public var salesytd:Number; [Bindable] public var saleslastyear:Number; [Bindable] public var costytd:Number; [Bindable] public var costlastyear:Number; public function initapp():void{ getAllRcds(); } public function getAllRcds_Result(event:ResultEvent):void { dp_ac = new ArrayCollection; dp_ac = event.result as ArrayCollection; if (dp_ac.length == 0){ Alert.show(No events found for selected date.) } } public function getAllRcds():void{ myService.getAllRcds(); } //Edit Popup window public function editevents_popup(data:Object):void { // Create the pop-up and cast the return value of the createPopUp() // Method to the editevents custom component. /* var message:String = ''; message = 'territoryid ' + data.territoryid + '\n'; message += 'countryregioncode ' + data.countryregioncode + '\n'; message += 'group ' + data.group + '\n'; message += 'salesytd ' + data.salesytd + '\n'; message += 'sales last year ' + data.saleslastyear + '\n'; message += 'costytd ' + data.costytd + '\n'; message += 'cost last year ' + data.costlastyear + '\n'; Alert.show(message);*/ pop =editevents_tw(PopUpManager.createPopUp(this,editevents_tw, true)); // Set TitleWindow properties. pop.title=Edit an Event:; pop.iname.text=data.territoryid; // pop.textitineraryid=data.itineraryid;
[flexcoders] Authentication against a RESTful web service
Hi all - I have written a RESTful web service using Java (Jersey). I would like to have write a Flex 3 front end to make use of this service. What is the best way to have my Flex 3 login page authenticate against my web service? I have been trying to use Basic Authentication with the HTTPService and URLLoader, but there have been a lot of recent security changes with the flash player that have made this very difficult. And before I go down that road any further, I thought I'd step back and ask the more generic question of what is the best way to get authentication done? At this point, I'm thinking of 'best' defined as, moderate security that I can implement in a couple of days. Thanks to everyone (or anyone!) who responds.
Re: [flexcoders] Re: Programmatically setting default styles that can be overriden with a stylesheet?
Sweet, thanks :) On Tue, May 13, 2008 at 1:20 AM, wesley.petrowski [EMAIL PROTECTED] wrote: You can try something like this (seemed to work for me): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.controls.Label; override protected function createChildren():void { super.createChildren(); var cssStyle:CSSStyleDeclaration; if (!StyleManager.getStyleDeclaration(.labelStyle)) { cssStyle = new CSSStyleDeclaration(); } else { cssStyle = StyleManager.getStyleDeclaration(.labelStyle); } cssStyle.defaultFactory = function():void { this.fontSize = 18; this.color = 0xff; } StyleManager.setStyleDeclaration(.labelStyle, cssStyle, true); var l:Label = new Label(); l.text = This is a test; l.styleName = labelStyle; addChild(l); } ]] /mx:Script mx:Style .labelStyle { color: #00ff00; } /mx:Style /mx:Application --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Hey guys, let's say I have a Label I'm creating programmatically, and I'd like to have some default styles (like a big red font), but still allow them to be overriden with the stylesheet - can it be easily done? Cheers, -J -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: Flash CS3 Component Creation
Yes, I'm familiar with Modules. During an adobe screen cast about the Flex Component Kit, someone popped a question about dynamically loading Flex Components compiled in Flash, the answer was to use modules. I can't get this to work though!! :( So here's what I've tried: STEP 1 Compile a SWF module which includes the SWC file exported from Flash (it works as expected when compiled as an application). STEP 2 In a second Flex application with a ModuleLoader tag, I set its url to the SWF module from STEP 1. I'm strill trying to get this work but Am I going in the right direction? Other suggestions? Thanks! --- In flexcoders@yahoogroups.com, Robert Stehwien [EMAIL PROTECTED] wrote: For dynamic libraries check out modules mx.modules.Module, mx.modules.ModuleBase, mx.modules.ModuleLoader, mx.modules.ModuleManager. Modules are like RSLs but don't have to be loaded when the application starts. On Sun, May 11, 2008 at 1:28 PM, swidnikk [EMAIL PROTECTED] wrote: Right, thanks. I'm familiar with that link by Peter Ent. He recommends using the SWC inside of another SWF file and then using SWFLoader in the main app to load in that SWF. Its me who posted the final comment there. Hi solution is inconvenient though, since for each Flash component I now have, 1. FLA file to get the SWC (plus 'useless' SWF) 2. A Flex project for each FLA file that includes the SWC and compiles to a SWF. 3. Main application that dynamically loads the SWF from step 2 I have about 50 flash components and only a subset are loaded at any moment... so now I need another 50 projects for step 2 above. I still don't really understand why the 'useless' SWF from step 1 doesn't work... --- In flexcoders@yahoogroups.com, Robert Stehwien rstehwien@ wrote: NP. Here is one more link (that is actually the end of a series of related articles by Peter Ent. http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.html On Fri, May 9, 2008 at 10:20 PM, nathanpdaniel ndaniel@ wrote: PS. Thanks! I've seen the first one (video) which is actually really good - but the rest - hadn't seen those! :D --- In flexcoders@yahoogroups.com, Robert Stehwien rstehwien@ wrote: Here is my collection of links on the subject: https://admin.adobe.acrobat.com/_a300965365/p75214263/ http://www.webkitchen.be/2008/05/05/the-flash-and-flex-marriage/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by- step/ http://lordbron.wordpress.com/2007/05/01/flex-component-kit-step-by-step/ http://www.moock.org/blog/archives/000253.html On Fri, May 9, 2008 at 3:37 PM, nathanpdaniel ndaniel@ wrote: I'm looking for tutorials on how to use the Flex Component kit in Flash CS3 to create components. I've seen a few videos by Glenn R. from Adobe, and a few other Adobe mini tutorials but all of them (for the most part) say You can do this! with no real way to understand it (source code, etc.)... if anyone knows of anything out there - I'd love to see it! :D -Nathan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] how to lookup a component with only a string id
I am looking for how to access components when all I have is its id string. In one experiment, shown below, for instance, I have a repeater to build a set of buttons from an array collection. When clicked, I want to select a particular component in the application. If I pass the id of the component in the arrayCollection, I get a reference of null, though I notice that in a regular array, I can pass the id and use it throughout the application. Is there some way to access the particular component with only a string reference for its idsomething like Application.application.component.id? Or must I run two arrays, using the index of the button clicked from the repeater, and using that index to select from another array of containers (e.g. containers = [copper, purple, red, magenta, gold]. Or am I on the right track below, but need to structure the original array differently, so that it can hold a pointer to the component? Or must I code the reference values inside a custom button and, during the repetition, use the event.target to collect those values from the custom component to use in the eventhandler.getRepeaterItem() method? I am not sure what header subject to look under to answer these questions. I am pretty sure I can simply test the string and, in a switch statment, get to the container, but I would like to understand what the possible tools are and under which heading to search to study more about it. Any help would be greatly appreciated. Here is some sample code to illustrate the issue. //array of objects not bindable? //the component id is the container key ` [Bindable] public var feedToButtonRepeater:Array = [{label: copper, container: copper, level1Security: true, level2Security: dubaiLand}, {label: purple, container: purple, level1Security: false, level2Security: universalStudios}, {label: red, container: red, level1Security: true, level2Security: disneyland}, {label: magenta, container: magenta, level1Security: false, level2Security: sixflags}, {label: gold, container: gold, level1Security: true, level2Security: junctioncity}]; mx:ArrayCollection id= buttonSetUp source={feedToButtonRepeater}/ //example UIComponent mx:Canvas id=copper width=50 height=50 x=0 backgroundColor={Color.COPPER_3} mx:Label text=copper/ /mx:Canvas //Repeater mx:VBox id=level3InnerContainer x=159 horizontalAlign=center verticalScrollPolicy=off horizontalScrollPolicy=off y=140 mx:Repeater id=myrep dataProvider={buttonSetUp} mx:Button styleName=mainNavButton blendMode={BlendMode.ADD} label={myrep.currentItem.label} height=30 width=100 click=repeaterClickHandler(event.currentTarget.getRepeaterItem());/ /mx:Repeater /mx:VBox //repeater event handler private function repeaterClickHandler(obj:Object):void { obj.container.visible = true; //obj.container is null, but obj.label = copper and obj.level1Security = true. }
[flexcoders] Working with modules
I'm building an application with multiple modules. Each module is a different project in flex builder. I have a main application project that each module compiles a swf to. I want to be able to run each module by it's self to develop/debug it. I can't figure out how to do this. My module projects start out as mx:application but when I change it to mx:module I can't run it and get any output (even though it has that green arrow). Maybe I just answered my own question, should I just leave it as mx:application until I'm done developing then switch it to a module? Thanks so much for the help, Nate
RE: [flexcoders] how to lookup a component with only a string id
You're probably looking for this[copper] Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of celumbra Sent: Monday, May 12, 2008 2:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to lookup a component with only a string id I am looking for how to access components when all I have is its id string. In one experiment, shown below, for instance, I have a repeater to build a set of buttons from an array collection. When clicked, I want to select a particular component in the application. If I pass the id of the component in the arrayCollection, I get a reference of null, though I notice that in a regular array, I can pass the id and use it throughout the application. Is there some way to access the particular component with only a string reference for its id-something like Application.application.component.id? Or must I run two arrays, using the index of the button clicked from the repeater, and using that index to select from another array of containers (e.g. containers = [copper, purple, red, magenta, gold]. Or am I on the right track below, but need to structure the original array differently, so that it can hold a pointer to the component? Or must I code the reference values inside a custom button and, during the repetition, use the event.target to collect those values from the custom component to use in the eventhandler.getRepeaterItem() method? I am not sure what header subject to look under to answer these questions. I am pretty sure I can simply test the string and, in a switch statment, get to the container, but I would like to understand what the possible tools are and under which heading to search to study more about it. Any help would be greatly appreciated. Here is some sample code to illustrate the issue. //array of objects not bindable? //the component id is the container key ` [Bindable] public var feedToButtonRepeater:Array = [{label: copper, container: copper, level1Security: true, level2Security: dubaiLand}, {label: purple, container: purple, level1Security: false, level2Security: universalStudios}, {label: red, container: red, level1Security: true, level2Security: disneyland}, {label: magenta, container: magenta, level1Security: false, level2Security: sixflags}, {label: gold, container: gold, level1Security: true, level2Security: junctioncity}]; mx:ArrayCollection id= buttonSetUp source={feedToButtonRepeater}/ //example UIComponent mx:Canvas id=copper width=50 height=50 x=0 backgroundColor={Color.COPPER_3} mx:Label text=copper/ /mx:Canvas //Repeater mx:VBox id=level3InnerContainer x=159 horizontalAlign=center verticalScrollPolicy=off horizontalScrollPolicy=off y=140 mx:Repeater id=myrep dataProvider={buttonSetUp} mx:Button styleName=mainNavButton blendMode={BlendMode.ADD} label={myrep.currentItem.label} height=30 width=100 click=repeaterClickHandler(event.currentTarget.getRepeaterItem());/ /mx:Repeater /mx:VBox //repeater event handler private function repeaterClickHandler(obj:Object):void { obj.container.visible = true; //obj.container is null, but obj.label = copper and obj.level1Security = true. }
RE: [flexcoders] question on UI Component Class
Because Application is a Container. Containers support automatically sizing their children, while UIComponent expects children to be explicitly sized. Gordon Smith Adobe Flex SDK team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jkasham Sent: Saturday, May 10, 2008 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] question on UI Component Class Why must I have to set the width and height of a new Button()when I put it in a UIComponent() class using AS, and dont have to when I put it in the application using AS?
[flexcoders] Re: Working with modules
Hi Nate, That's correct. Just create each module as an application to start with. Set it as the default application so you can run / debug. Once it's all working, just change the root tag. I'm working on an application that uses modules and that's how I develop each new module. cheers --- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote: I'm building an application with multiple modules. Each module is a different project in flex builder. I have a main application project that each module compiles a swf to. I want to be able to run each module by it's self to develop/debug it. I can't figure out how to do this. My module projects start out as mx:application but when I change it to mx:module I can't run it and get any output (even though it has that green arrow). Maybe I just answered my own question, should I just leave it as mx:application until I'm done developing then switch it to a module? Thanks so much for the help, Nate
RE: [flexcoders] Working with modules
Yes, or build a shell app that loads the module. BTW, while modules are smaller and faster than sub-applications, they are also more tightly bound as the must use interfaces to communicate with the loading application.. This means that, over time, as your application grows, if your app is comprised of modules, you'll probably need to recompile all of them if you move the main app to a later version of Flex. The same may not be true of sub-applications. While they are fatter, it may be possible in a future release of Flex to make it so they have no tight coupling to the loading application and thus, if your app is comprised of sub-applications, you won't necessarily have to recompile every sub-app. Of course, none of that truly matters now as in order to break tight-coupling we'll probably require that you re-compile all of your pieces as sub-applications on that future version of Flex so you are protected as you go forward. It is unlikely that anything you compile in the interim will work with future versions of Flex. But I wanted to warn you and anybody else who cares that the future of handling applications where it is impractical to recompile everything onto a single version of Flex is probably going to involve sub-applications and not modules. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Monday, May 12, 2008 2:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Working with modules I'm building an application with multiple modules. Each module is a different project in flex builder. I have a main application project that each module compiles a swf to. I want to be able to run each module by it's self to develop/debug it. I can't figure out how to do this. My module projects start out as mx:application but when I change it to mx:module I can't run it and get any output (even though it has that green arrow). Maybe I just answered my own question, should I just leave it as mx:application until I'm done developing then switch it to a module? Thanks so much for the help, Nate
[flexcoders] Re: Working with modules
Thanks for the response guys. So it sounds like in a future version of flex I might have to move all my modules into one application and make them sub apps, but I would only have to do that once, right? That doesn't sound that scary :) *crosses fingers* --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Yes, or build a shell app that loads the module. BTW, while modules are smaller and faster than sub-applications, they are also more tightly bound as the must use interfaces to communicate with the loading application.. This means that, over time, as your application grows, if your app is comprised of modules, you'll probably need to recompile all of them if you move the main app to a later version of Flex. The same may not be true of sub-applications. While they are fatter, it may be possible in a future release of Flex to make it so they have no tight coupling to the loading application and thus, if your app is comprised of sub-applications, you won't necessarily have to recompile every sub-app. Of course, none of that truly matters now as in order to break tight-coupling we'll probably require that you re-compile all of your pieces as sub-applications on that future version of Flex so you are protected as you go forward. It is unlikely that anything you compile in the interim will work with future versions of Flex. But I wanted to warn you and anybody else who cares that the future of handling applications where it is impractical to recompile everything onto a single version of Flex is probably going to involve sub-applications and not modules. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Monday, May 12, 2008 2:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Working with modules I'm building an application with multiple modules. Each module is a different project in flex builder. I have a main application project that each module compiles a swf to. I want to be able to run each module by it's self to develop/debug it. I can't figure out how to do this. My module projects start out as mx:application but when I change it to mx:module I can't run it and get any output (even though it has that green arrow). Maybe I just answered my own question, should I just leave it as mx:application until I'm done developing then switch it to a module? Thanks so much for the help, Nate
Re: [flexcoders] Flex,PHP ,PHPAMF(OR WEBORB) and Cairngorm Demo links need
That is a really good set of links you have stored in those pages Douglas, thanks for sharing! On Mon, May 12, 2008 at 12:51 AM, Douglas McCarroll [EMAIL PROTECTED] wrote: http://www.brightworks.com/technology/adobe_flex/cairngorm.html http://www.brightworks.com/technology/adobe_flex/with_php.html http://www.brightworks.com/technology/adobe_flex/code.html Also, I invite you to attend the Boston Flex Application Incubator Group online, most Monday evenings: http://www.bfaig.org Douglas On Mon, May 12, 2008 at 12:18 AM, markflex2007 [EMAIL PROTECTED] wrote: I plan to develop a Flex,PHP and Cairngorm application. But I do not have a idea about that.Please help.Thanks Mark
Re: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx'
Hey guys, Can anybody help me on this? I'm having the same thing. I don't want to turn off all warnings, they're very useful sometimes (like BAR won't be able to detect updates to FOO when you forget [Bindable], but I can't see these for all the damned CSS warnings I get when editing a big project... -J On Wed, Apr 2, 2008 at 4:06 AM, Samuel Neff [EMAIL PROTECTED] wrote: Is there any way to disable the compiler warning: CSS type selectors are not supported in components: 'xxx' There are lots of warn-xxx flags in Flex 3 flex-config.xml but I didn't see anything that would correspond to this warning. The situation is we have our main App.mxml but for development we have a few other apps that extend this--AppLocal.mxml and AppRemote.mxml. They just change some things that normally are set via flashvars and this lets us easily launch the app in different modes from within Flex Builder. The warnings don't cause any problems at runtime since we copied the Style declaration in all mxml files, we just want to get rid of the warnings from Flex Builder. Thanks, Sam - We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer. Position is in the Washington D.C. metro area. Contact [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
RE: [flexcoders] Re: Sending data to the Server
Make sure your classes adhere to AMF serialization rules. You need public get/set accessors for each property. You can also use either of the following config settings for your channel-definition on the server to further debug any problems with de/serializing your custom types. channel-definition ... ... properties serialization ignore-property-errorsfalse/ignore-property-errors log-property-errorstrue/log-property-errors /serialization You could use either (or both); when ignore-property-errors is false, an exception is thrown when a property can't be handled rather than just being ignored (the historic default to match player behavior). When log-property-errors is true, you'll get a warning logged on the server when a property is ignored. If you enable this, add Endpoint.* to your log category filters to see these. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Monday, May 12, 2008 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sending data to the Server Thanks for the reply Seth. I am now able to send an ArrayCollection of my custom class Chart: [Bindable] [RemoteClass(alias=factory.data.Chart)] public class ChartObject { private var name:String; private var axisList:ArrayCollection; public function getAxisList():ArrayCollection { return axisList; } } And I can read the array in the java message handler, and it even detects the objects in the array as Charts but when I try to get the axisList array from within Chart, it comes up as null. The axisList is an array of objects from another custom class I have called Axis. Here is a sample of the java Chart class for reference: public class Chart { //import mx.collections.ArrayCollection; //import mx.controls.Image; public String name; public ArrayList axisList; public ArrayList getAxisList() { return axisList; } --- In flexcoders@yahoogroups.com, Seth Hodgson [EMAIL PROTECTED] wrote: You can send any type of data as the body of a message. If you want to send an instance of a typed class, be sure to include [RemoteClass(alias=your.java.Class)] metadata in your ActionScript class so that the Player serializes it with type info and the server can deserialize it to your desired type. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of netdeep Sent: Friday, May 09, 2008 7:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sending data to the Server I need to send data to the server. Up til now I've been using messaging. But as far as I can tell, I can only send strings this way. What other alternatives are there? For instance, I would like to be able to send an array or a custom data structure. I'm using Java for the backend. Ideally I would not want to launch a new RemoteObject for each send from Flex, but instead have a persistent listener to hear all requests (which is why I initially chose messaging and created a channel for the java message manager to listen to).
RE: [flexcoders] Authentication against a RESTful web service
Aside from auth challenges, in case you're not aware, the Player can not issue PUT, DELETE or HEAD requests due to limitations in the browser APIs that it uses for HTTP support, as well as security considerations. Setting request headers also presents some challenges due to security issues, and response headers are not available in the browser players. If your server side methods work OK with just GET and POST requests, keep forging ahead. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rydellfinn Sent: Monday, May 12, 2008 12:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Authentication against a RESTful web service Hi all - I have written a RESTful web service using Java (Jersey). I would like to have write a Flex 3 front end to make use of this service. What is the best way to have my Flex 3 login page authenticate against my web service? I have been trying to use Basic Authentication with the HTTPService and URLLoader, but there have been a lot of recent security changes with the flash player that have made this very difficult. And before I go down that road any further, I thought I'd step back and ask the more generic question of what is the best way to get authentication done? At this point, I'm thinking of 'best' defined as, moderate security that I can implement in a couple of days. Thanks to everyone (or anyone!) who responds.
[flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled
Hi there, Is MTOM still unsupported, in Flex3? I'm still getting the same type of error, looks like Flex can't decode SOAP responses encoded MTOM. Robert --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: There are no plans right now, but it's worth logging an enhancement request and then getting people to vote for it. http://bugs.adobe.com/flex/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Connolly Sent: Friday, July 27, 2007 6:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled Any plans on adding support for it? On 7/27/07, Peter Farland [EMAIL PROTECTED] wrote: Flex does not support MTOM as yet.
[flexcoders] Memory leak in UIDUtil.createUID()
Hi i ran the following simple application in flex builder 3 profiler and found that this method (createUID) is leaking memory. looking at its content seems its ok - any ideas ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.utils.UIDUtil; import mx.collections.ArrayCollection; private function onCC():void{ var s:String = UIDUtil.createUID(); } ]] /mx:Script mx:Button click=onCC() label=clickme /mx:Button /mx:Application
[flexcoders] Re: Memory leak in UIDUtil.createUID()
I hope not. I'm using it everywhere! --- In flexcoders@yahoogroups.com, shlomic_thailand [EMAIL PROTECTED] wrote: Hi i ran the following simple application in flex builder 3 profiler and found that this method (createUID) is leaking memory. looking at its content seems its ok - any ideas ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.utils.UIDUtil; import mx.collections.ArrayCollection; private function onCC():void{ var s:String = UIDUtil.createUID(); } ]] /mx:Script mx:Button click=onCC() label=clickme /mx:Button /mx:Application
Re: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled
In case this bites me in the near future (everything else SOAP does), what's MTOM? -J On Tue, May 13, 2008 at 8:41 AM, Robert Csiki [EMAIL PROTECTED] wrote: Hi there, Is MTOM still unsupported, in Flex3? I'm still getting the same type of error, looks like Flex can't decode SOAP responses encoded MTOM. Robert --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: There are no plans right now, but it's worth logging an enhancement request and then getting people to vote for it. http://bugs.adobe.com/flex/ From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Peter Connolly Sent: Friday, July 27, 2007 6:33 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled Any plans on adding support for it? On 7/27/07, Peter Farland [EMAIL PROTECTED] wrote: Flex does not support MTOM as yet. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
RE: [flexcoders] Re: Working with modules
What I was trying to get at is that the last step where you flip the top tag from mx:Application to mx:Module would be skipped. It would remain an application. In the loading app, you would not use ModuleLoader and use SWFLoader instead. There is no restriction on the sub-app being in the same project as the main app, but if you choose to do so, you are correct that it should be a one-time thing. The scary part will be the way you will have to code communications between the sub-app and the main app for anything shared like data, networking, managers, etc. We're still working out the details. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Monday, May 12, 2008 3:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Working with modules Thanks for the response guys. So it sounds like in a future version of flex I might have to move all my modules into one application and make them sub apps, but I would only have to do that once, right? That doesn't sound that scary :) *crosses fingers* --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Yes, or build a shell app that loads the module. BTW, while modules are smaller and faster than sub-applications, they are also more tightly bound as the must use interfaces to communicate with the loading application.. This means that, over time, as your application grows, if your app is comprised of modules, you'll probably need to recompile all of them if you move the main app to a later version of Flex. The same may not be true of sub-applications. While they are fatter, it may be possible in a future release of Flex to make it so they have no tight coupling to the loading application and thus, if your app is comprised of sub-applications, you won't necessarily have to recompile every sub-app. Of course, none of that truly matters now as in order to break tight-coupling we'll probably require that you re-compile all of your pieces as sub-applications on that future version of Flex so you are protected as you go forward. It is unlikely that anything you compile in the interim will work with future versions of Flex. But I wanted to warn you and anybody else who cares that the future of handling applications where it is impractical to recompile everything onto a single version of Flex is probably going to involve sub-applications and not modules. -Alex From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Nate Pearson Sent: Monday, May 12, 2008 2:18 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Working with modules I'm building an application with multiple modules. Each module is a different project in flex builder. I have a main application project that each module compiles a swf to. I want to be able to run each module by it's self to develop/debug it. I can't figure out how to do this. My module projects start out as mx:application but when I change it to mx:module I can't run it and get any output (even though it has that green arrow). Maybe I just answered my own question, should I just leave it as mx:application until I'm done developing then switch it to a module? Thanks so much for the help, Nate
RE: [flexcoders] Re: Memory leak in UIDUtil.createUID()
The profiler does not always account for strings correctly. You may be seeing the results of that. The true test is to run the test in the release player and automatically generate UIDs and see if memory usage grows over time. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Monday, May 12, 2008 4:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Memory leak in UIDUtil.createUID() I hope not. I'm using it everywhere! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , shlomic_thailand [EMAIL PROTECTED] wrote: Hi i ran the following simple application in flex builder 3 profiler and found that this method (createUID) is leaking memory. looking at its content seems its ok - any ideas ?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 mx:Script ![CDATA[ import mx.utils.UIDUtil; import mx.collections.ArrayCollection; private function onCC():void{ var s:String = UIDUtil.createUID(); } ]] /mx:Script mx:Button click=onCC() label=clickme /mx:Button /mx:Application
[flexcoders] shared code issue
I'm getting this error TypeError: Error #1034: Type Coercion failed: cannot convert com.qmecom.common.events::[EMAIL PROTECTED] to com.qmecom.common.events.UploadAssetsModuleEvent. at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() i'm loading a shared code module before this error occurs. var m:IModuleInfo = ModuleManager.getModule(sharedCodeModule_url); m.addEventListener(ModuleEvent.READY, function (event:ModuleEvent):void { trace('READY'); I'm importing my class into my shared code module. private var uploadAssetsModuleEvent:UploadAssetsModuleEvent; What have I missed here The debugging for these types of problems is lacking severely!
RE: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx'
The switches you are looking for are -compiler.show-unused-type-selector-warnings Or the alias. -show-unused-type-selector-warnings Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Monday, May 12, 2008 6:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx' Hey guys, Can anybody help me on this? I'm having the same thing. I don't want to turn off all warnings, they're very useful sometimes (like BAR won't be able to detect updates to FOO when you forget [Bindable], but I can't see these for all the damned CSS warnings I get when editing a big project... -J On Wed, Apr 2, 2008 at 4:06 AM, Samuel Neff [EMAIL PROTECTED] wrote: Is there any way to disable the compiler warning: CSS type selectors are not supported in components: 'xxx' There are lots of warn-xxx flags in Flex 3 flex-config.xml but I didn't see anything that would correspond to this warning. The situation is we have our main App.mxml but for development we have a few other apps that extend this--AppLocal.mxml and AppRemote.mxml. They just change some things that normally are set via flashvars and this lets us easily launch the app in different modes from within Flex Builder. The warnings don't cause any problems at runtime since we copied the Style declaration in all mxml files, we just want to get rid of the warnings from Flex Builder. Thanks, Sam - We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer. Position is in the Washington D.C. metro area. Contact [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: shared code issue
my bad.. shared code module wasn't compiling due to a weird compiler error. it wasn't displaying in my problems panel for some reason. --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: I'm getting this error TypeError: Error #1034: Type Coercion failed: cannot convert com.qmecom.common.events::[EMAIL PROTECTED] to com.qmecom.common.events.UploadAssetsModuleEvent. at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() i'm loading a shared code module before this error occurs. var m:IModuleInfo = ModuleManager.getModule(sharedCodeModule_url); m.addEventListener(ModuleEvent.READY, function (event:ModuleEvent):void { trace('READY'); I'm importing my class into my shared code module. private var uploadAssetsModuleEvent:UploadAssetsModuleEvent; What have I missed here The debugging for these types of problems is lacking severely!
RE: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled
No SOAP attachment specifications are currently supported; if an enhancement request hasn't been logged, go ahead and log one. Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Csiki Sent: Monday, May 12, 2008 3:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled Hi there, Is MTOM still unsupported, in Flex3? I'm still getting the same type of error, looks like Flex can't decode SOAP responses encoded MTOM. Robert --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: There are no plans right now, but it's worth logging an enhancement request and then getting people to vote for it. http://bugs.adobe.com/flex/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Connolly Sent: Friday, July 27, 2007 6:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RPC Fault, Error #1088 when receiving SOAP response with MTOM enabled Any plans on adding support for it? On 7/27/07, Peter Farland [EMAIL PROTECTED] wrote: Flex does not support MTOM as yet.
Re: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx'
That doesn't seem to work for me when I put it in the additional compiler options box under project properties. But I did discover the filters actually let you enter one substring you don't want to show, so I'm getting by with showing everything that doesn't contain CSS type selector. Kinda kludgey, but at least i can see the real warnings... -J On Tue, May 13, 2008 at 10:17 AM, Rick Winscot [EMAIL PROTECTED] wrote: The switches you are looking for are -compiler.show-unused-type-selector-warnings Or the alias… -show-unused-type-selector-warnings Rick Winscot *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Monday, May 12, 2008 6:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Disable compiler warning: CSS type selectors are not supported in components: 'xxx' Hey guys, Can anybody help me on this? I'm having the same thing. I don't want to turn off all warnings, they're very useful sometimes (like BAR won't be able to detect updates to FOO when you forget [Bindable], but I can't see these for all the damned CSS warnings I get when editing a big project... -J On Wed, Apr 2, 2008 at 4:06 AM, Samuel Neff [EMAIL PROTECTED] wrote: Is there any way to disable the compiler warning: CSS type selectors are not supported in components: 'xxx' There are lots of warn-xxx flags in Flex 3 flex-config.xml but I didn't see anything that would correspond to this warning. The situation is we have our main App.mxml but for development we have a few other apps that extend this--AppLocal.mxml and AppRemote.mxml. They just change some things that normally are set via flashvars and this lets us easily launch the app in different modes from within Flex Builder. The warnings don't cause any problems at runtime since we copied the Style declaration in all mxml files, we just want to get rid of the warnings from Flex Builder. Thanks, Sam - We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer. Position is in the Washington D.C. metro area. Contact [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: magnifying glass component
I wrote a sample magnifying glass example, Hope this can help you. main code: //Magnifying_glass.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* local:MagnifyingGlassImage source=testImage.gifshowMagnifyBitmap=true verticalAlign=middlehorizontalAlign=center/ /mx:Application //MagnifyingGlassImage.as package { import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.Loader; import flash.events.Event; import flash.events.MouseEvent; import flash.geom.Matrix; import flash.geom.Point; import flash.geom.Rectangle; import mx.controls.Image; import mx.core.mx_internal; use namespace mx_internal; public class MagnifyingGlassImage extends Image { public var magnifierWidth : Number = 250; public var magnifierHeight : Number = 150; public var magnifyModulus : Number = 1.4; public var magnifyBorderColor : uint = 0x; public var showMagnifyBitmap : Boolean = true; private var tempBitData : BitmapData; private var magnifyBitmapData:BitmapData = new BitmapData(magnifierWidth, magnifierHeight); private var magnifyBitmap : Bitmap = new Bitmap(magnifyBitmapData); public function MagnifyingGlassImage() { super(); } private function showMagnifyImage(e : MouseEvent) : void { if(showMagnifyBitmap) { magnifyBitmap.visible = true; this.addEventListener(MouseEvent.MOUSE_OVER, showMagnifyImage); this.addEventListener(MouseEvent.MOUSE_OUT, hiddenMagnifyImage); this.addEventListener(MouseEvent.MOUSE_MOVE, magnifyImage); this.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_MOVE)); } } private function hiddenMagnifyImage(e : MouseEvent) : void { this.removeEventListener(MouseEvent.MOUSE_OVER, showMagnifyImage); this.removeEventListener(MouseEvent.MOUSE_OUT, hiddenMagnifyImage); this.removeEventListener(MouseEvent.MOUSE_MOVE, magnifyImage); magnifyBitmap.visible = false; } private function magnifyImage(e : MouseEvent) : void { var cutBitmapData : BitmapData = new BitmapData(magnifierWidth,magnifierHeight); cutBitmapData.copyPixels(tempBitData,new Rectangle( Math.min(Math.max(mouseX - (this.width - this.contentWidth)/2 - magnifierWidth/(2 * magnifyModulus), 0), this.contentWidth - magnifierWidth/magnifyModulus), Math.min(Math.max(mouseY - (this.height - this.contentHeight)/2 - magnifierHeight/(2 * magnifyModulus), 0), this.contentHeight - magnifierHeight/magnifyModulus), magnifierWidth/magnifyModulus, magnifierHeight/magnifyModulus), new Point(0,0)); var m:Matrix = new Matrix(); m.scale(magnifyModulus, magnifyModulus); magnifyBitmapData = new BitmapData(magnifierWidth, magnifierHeight); magnifyBitmapData.draw(cutBitmapData, m, null, null, null,true); fillBitmapBorder(); magnifyBitmap.bitmapData = magnifyBitmapData; magnifyBitmap.x = Math.min(Math.max(mouseX - (this.width -this.contentWidth + magnifierWidth)/2, 0), this.contentWidth -magnifierWidth) + (this.width - this.contentWidth)/2; magnifyBitmap.y = Math.min(Math.max(mouseY - (this.height -this.contentHeight + magnifierHeight)/2, 0),this.contentHeight -magnifierHeight) + (this.height - this.contentHeight)/2; } private function fillBitmapBorder() : void { magnifyBitmapData.fillRect(new Rectangle(0,0,magnifierWidth ,1),magnifyBorderColor); magnifyBitmapData.fillRect(new Rectangle(0,magnifierHeight - 1,magnifierWidth ,1),magnifyBorderColor); magnifyBitmapData.fillRect(new Rectangle(0,0,1,magnifierWidth),magnifyBorderColor); magnifyBitmapData.fillRect(new Rectangle(magnifierWidth - 1,0,1,magnifierWidth),magnifyBorderColor); } override mx_internal function contentLoaderInfo_completeEventHandler(event:Event):void { super.contentLoaderInfo_completeEventHandler(event); this.addChild(magnifyBitmap); magnifyBitmap.visible = false; this.addEventListener(MouseEvent.MOUSE_DOWN,showMagnifyImage); this.addEventListener(MouseEvent.MOUSE_UP,hiddenMagnifyImage); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if (contentHolder) { if
[flexcoders] Re: ProgressBar itemRenderer
Did you ever have any luck resolving this? It's been a while since your post, but I'm having the same problem. It also happens in the AdvancedDataGrid. -Hob --- In flexcoders@yahoogroups.com, Pete [EMAIL PROTECTED] wrote: Hi all, I'm having a fair amount of trouble getting an itemRenderer for a DataGrid to work correctly. I have a drop down combo box that the users selects an option from then retrieves data from a database based on that option. The data is then returned to the Flex app and dropped in the ModelLocator (Cairngorm). I have a DataGrid that's dataProvider property is bound to the ModelLocator. Everything in the datagrid displays correctly except a ProgressBar itemRenderer. It will work for the first execution, but if a different set of data (or even the same data, returned again) is retrieved from the database it won't display correctly. I have tried throwing an alert in the itemRenderer so I can see when it is being called, and it seems that it is only run properly on the first execution, every attempt after that, it doesn't fire for every record that is returned. I have tried calling invalidateDiplayList() and validateNow() from the datagrid, but to no avail. Does anyone have any ideas? I have posted the code for the itemRenderer below. I put it in a HBox so that I can position it correctly. ?xml version=1.0? mx:HBox width=100% height=22 xmlns:mx=http://www.adobe.com/2006/mxml; verticalAlign=middle horizontalAlign=center creationComplete=initialiseProgressBar() mx:Script ![CDATA[ private function initialiseProgressBar():void { if (data) { if (data.progress == 0) { pbModuleProgress.indeterminate = true; } else { pbModuleProgress.setProgress(data.progress,100); } pbModuleProgress.label= String(data.progress) + %; } } ]] /mx:Script mx:ProgressBar fontWeight=normal width=90% id=pbModuleProgress labelPlacement=center minimum=0 maximum=100 mode=manual/ /mx:HBox Thanks in advance, Pete Pete Capra Information Systems Coordinator National Institute of Training p. (617) 3208 9455 m. 0411 043 305 f. (617) 3208 9855 a. PO Box 1744 Springwood Q 4127 www.niot.com.au [EMAIL PROTECTED]
[flexcoders] Re: Working with modules
I typically create a test harness application that simulates the environment the module will be loaded into. --- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote: I'm building an application with multiple modules. Each module is a different project in flex builder. I have a main application project that each module compiles a swf to. I want to be able to run each module by it's self to develop/debug it. I can't figure out how to do this. My module projects start out as mx:application but when I change it to mx:module I can't run it and get any output (even though it has that green arrow). Maybe I just answered my own question, should I just leave it as mx:application until I'm done developing then switch it to a module? Thanks so much for the help, Nate
Re: [flexcoders] FlexCF.com Launches!
Hi Dale, I've looked around your new site. It's a great site. However, I've got a little suggestion. Can you possibly add a tutorial about how to configure CF and Flex connection (as you've shown in the CFUG meeting)? Regards, George 2008/4/18 Dale Fraser [EMAIL PROTECTED]: We are very pleased to announce the launch of http://FlexCF.com this is a sister site for http://LearnCF.com and focuses on Flex application development with a ColdFusion backend. There are seven tutorials published on launch, with more to come. These sites are Not for Profit community sites, you can contribute tutorials. All costs for hosting development of these sites are provided free by the operators. Any revenue generated will be used to purchase prizes for tutorial authors. Regards Dale Fraser http://learncf.com http://flexcf.com
[flexcoders] Firefox causing problem with showing of a custom component; works well with IE
I have developed a simple custom component with canvas as the container. I use this component in my main application and run it in Internet Explorer it works perfectly. It has scroll bars at application level and enough space that the component need not get partially hidden at the bottom due to lack of space. On viewing this in Firefox, the lower part of my custom component becomes invisible. On making the Firefox browser full screen with other tabs opened in the same browser, the application cuts less than what it did when it was doing while it wasn't full screen On opening the same flex page in Firefox in full screen mode, the complete custom component is visible as such. I played a lot by increasing the height of the component but it still remains same. The application works well with IE and opera. what could be done for that?