[flexcoders] Re: Cool Flex Component Site (opensource)
Wow, that has to be some of the worst UI I've ever seen. --- In flexcoders@yahoogroups.com, aoi_zip aoi_...@... wrote: cool all opensource (lgpl) http://www.openzet.org/samples/
[flexcoders] Re: Cool Flex Component Site (opensource)
Actually, I don't make it past the components using DataGrid as a dropdown, so it might not all be bad. Though, that was enough for me, I didn't need to see any more. --- In flexcoders@yahoogroups.com, wubac1 wub...@... wrote: Wow, that has to be some of the worst UI I've ever seen. --- In flexcoders@yahoogroups.com, aoi_zip aoi_zip@ wrote: cool all opensource (lgpl) http://www.openzet.org/samples/
[flexcoders] Support for Regional Languages in Flex?
Hi, I need my flex application to display text in regional languages like tamil,kannada,etc How do i exactly proceed on this? Any help would be greatly appreciated. Thanks, Akila
[flexcoders] Re: how to use a list's change event to refresh an array that is bound to it.
ok i have a tilelist loaded with data from a database though a cfc ro. plus i have a gallery that i would like to populate with images of a particular item from the tilelist when someone clicks on an item in the tilelist. so i was reading through arrayutil class and parameter binding and i tried it out. mx:RemoteObject id=img destination=ColdFusion showBusyCursor=true fault=Alert.show(event.fault.faultString, 'Error'); mx:method name=getImages mx:arguments mx:Stringassets/homeprofile_pics/extra_pics/{home_tiles.selectedItem.img1}/mx:String mx:Stringassets/homeprofile_pics/extra_pics/{home_tiles.selectedItem.img2}/mx:String mx:Stringassets/homeprofile_pics/extra_pics/{home_tiles.selectedItem.img3}/mx:String mx:Stringassets/homeprofile_pics/extra_pics/{home_tiles.selectedItem.img4}/mx:String /mx:arguments /mx:method /mx:RemoteObject mx:ArrayCollection id=home_img source={ArrayUtil.toArray(img.getImages.lastResult)}/ then in my custom component the dataprovider of the gallery is home_img local:DisplayShelf id=shelf horizontalCenter=0 verticalCenter=0 borderThickness=5 borderColor=#FF dataProvider={parentDocument.home_img} enableHistory=false width=100%/ this still does not work. am in the right direction here, what could i be missing?
Re: [flexcoders] Re: FocusManager fun... Tab Loops redux
Even the PopUpManager suffers to a degree. As modules are loaded there seems to be some confusion as to which FocusManager they belong... as you press TAB focus will jump from one module to another as if they were connected. You can get around this by forcibly triggering activate/deactivate operations on the modules FocusManager --- as stated in the comments in FocusManager.as: ³The SystemManager activates and deactivates a FocusManager if more than one IFocusManagerContainer is visible at the same time. If the mouse is clicked in an IFocusManagerContainer with a deactivated FocusManager, the SystemManager will call the activate() method on that FocusManager. The FocusManager that was activated will have its deactivate() method called prior to the activation of another FocusManager.² I¹ll attach a sample project to the issue for clarity. Rick Winscot On 3/14/09 1:42 PM, aceoohay pa...@compuace.com wrote: Yes, Alex has been very generous with his time offline, and I will be trying his popup approach. However I believe the popup solution is a hack in the perjorative sense. I believe that the flex language should allow at a minimum the ability to define a separate tab loop for each module. Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: Paul and I have discussed off line. He's got a bunch of module panels that we wants to overlap and drag around the screen and have tabbing stay within which ever panel was clicked in and moved on top of the others. Flex has all of this built-in. Once he gets his modules popped up, he should be all set. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jim.abbott45 Sent: Friday, March 13, 2009 3:21 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux Feeling less than ecstatic? Then please VOTE for fixing of bug #16897. See: https://bugs.adobe.com/jira/browse/SDK-16897 --Jim --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , aceoohay pauls@ wrote: Alex: Neither of these options are practical in the real world (at least my world) since we have over 135 modules currently, and up to 10 can be loaded at any one time. We cannot have the cursor willy nilly hopping from module to module going to panels that are partially obscured by other panels, etc. Does the mx.managers.FocusManager allow the ability to establish multiple tab loops within a single application? If so, how can this be used to define a tab loop for a single container? If not, is there anything that will allow defining a tab loop for a container?! With multiple tab loops available on the stage at one time. The user can use the mouse to jump from module to module. Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Setting tabEnabled on anything you don't want to have focus is one answer. So is non-modal popups. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of aceoohay Sent: Wednesday, March 11, 2009 8:00 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux Alex: Let me restate my primary question; ! gt; ...has anyone else tried to create a flex component with ! a separa te tab loop, if so how did you make it work? Since the documentation seems to indicate that FocusManager will allow multiple tab loops that was the approach I was investigating. My primary goal, irrespective of how I do it is to create what I call a tab domain. Whatever it is called, what I need is the ability to define a captive group of objects from which focus will never leave by pressing the tab key. Paul
[flexcoders] Re: Flex 3.3 SDK and AdvancedDataGrid
The online docs and the previous posting suffer from invalid characters. Also, the path needs to be in quotes. Try this: java -jar DMV-source.jar C:\Documents and Settings\All Users\Application Data\Adobe\Flex
Re: [flexcoders] Re: Cool Flex Component Site (opensource)
wubac1 wrote: Wow, that has to be some of the worst UI I've ever seen. kind of harsh. the radar chart *is* pretty nifty.
[flexcoders] HTML content in Sub Applications
Hi all, I was wondering if someone could advise me on the best way to get HTML content working in a sub application. My sub application is loaded into a separate security and application sandbox in AIR. However All communication needed by the sub application goes via the parent application, via shared events. However I want to render htmlText in a textbox (I just want to render an RSS article so let me know if there is a better way), but as this html has images (that are loaded in) I get a RTE because of the security violation. On a side note, what is the best way to add CSS (as in HTML CSS) to this HTML, so I can style how paragraphs and links are displayed. Thanks in advance Rob
[flexcoders] Color icon(s) in tree control
Hi, I have tried everything and just couldn't find a solution. I'd like to color icons in tree control just as it would be possible in Flash: mc.color = 0xff; mc.alpha = 50; Of course in Flex it doesn't work like that. I have tried with ItemRenderer. In function updateDisplayList you can change as much as anything. You can set super.icon.blendMode, you can set super.icon.alpha, but I just couldn't find a way to color icon. I need to color DefaultLeafIcon in runtime. Please help.
[flexcoders] Simple actionscript that I cannot understand! Please help. Thanks
?xml version=1.0? Can somebody explain into details what that code do?(line by line). I know that it is changing the font size but I cannot understand the :s and the normal? I understand the overal code but not everything. Thanks again for your time. Fred. !-- usingas/FlexComponents.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ private var newFontStyle:String; private var newFontSize:int; public function changeLabel(s:String):void { s = myButton + s; if (this[s].getStyle(fontStyle)==normal) { newFontStyle = italic; newFontSize = 18; } else { newFontStyle = normal; newFontSize = 10; } this[s].setStyle(fontStyle,newFontStyle); this[s].setStyle(fontSize,newFontSize); } ]]/mx:Script mx:Button id=myButton1 click=changeLabel('2') label=Change Other Button's Styles / mx:Button id=myButton2 click=changeLabel('1') label=Change Other Button's Styles / /mx:Application
[flexcoders] LoaderInfo.url not available after a progress event?
Hello, I hope someone can help me out with this! I've trying to retrieve the url of a swf being loaded through a redirect, so I can allow cross-domain scripting with it. The documentation for LoaderInfo states that after the first progress event, the url property reflects the media's final URL, after any redirects and relative URLs are resolved. However, no matter what I try, url is always null, until the swf has been fully loaded and Event.INIT has been dispatched. I've tried all sorts of things to get this working without success. Has anyone else had any experience with this? As a workaround I could allowDomain after Event.INIT has been dispatched, but I'd rather do it before as then I know that I can cross-script in the constructor of my root object in the loaded content. Thanks a lot! Adam
[flexcoders] Re: HTML content in Sub Applications
Annoyingly this is an AIR application, but I can't find a way to compile my sub applications as AIR swfs and therefore take advantage of the HTML component :( Does anyone know if a way to use the AIR APIs in a sub application? Is there an HTML render that I can use to style some basic HTML in Flex if not? Thanks Rob
[flexcoders] multiple rows of data
I am trying to find out whether the following events are possible in OL or in Flex. I am not asking how, just whether. Load a dynamic dataset over HTTP which replicates to many rows of data in the application. Then the user adds some data to each row eg. in an edittext at the end of each row. The user then submits all the data to the HTTP server where the database is updated for each row recieved. Or would it be better to have some event that fires the data to the server after each row is updated? Any pointers to documentation would be much appreciated.
[flexcoders] Re: Weired Focus Change behaviour on tab pressing
You are almost done. Just remove the bindings from your groupNames... mx:RadioButton id=radioButtonDHCP label=DHCP groupName=networkSettingsGroup styleName=textMedium/ mx:RadioButton label=Static groupName=networkSettingsGroup styleName=textMedium/ --- In flexcoders@yahoogroups.com, geeky developer geekydevelo...@... wrote: Hey Alex Thanks for replying but if I changed it to GroupName instead of group, it would let me make only one selection of the radio button. No doubt it fixed the tab focus issue but I like to use pairs of radio button like in the below example code, I like unitRoleGroup as one group and I like to select one of them at a time and networkSettingsGroup as another group in which I will like to select one at a time. It would let me do that if I change the property name to group , it would let me select one of the options if use group instead of groupName but then it would screw up the tab focus and if I change the group to groupName as recommended, then it fixes the tab focus issue but then it combines all the 4 radio button options into one and I would be able to select only one of them, thats not what i need. I like to create 2 different groups of radio buttons like the way it is shown in the code and i would like the tab ordering work properly with selecting one of the option at a time in each radio button group, Any idea to fix it? Thanks a lot for your help /*CODE */ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:VBox width=100% height=100% paddingTop=5 paddingRight=5 paddingBottom=5 paddingLeft=5 mx:Label text=NSM Settings styleName=textLarge fontStyle=italic width=200/ mx:Form id=formMainContainer width=100% verticalGap=5 indicatorGap=25 labelWidth=200 paddingTop=0 paddingRight=0 paddingBottom=0 paddingLeft=0 height=262 !-- Unit Settings -- mx:FormItem label=Unit Settings labelStyleName=textLarge width=100% height=25 paddingTop=10 mx:HRule width=100% height=2/ /mx:FormItem mx:FormItem label=Unit Role labelStyleName=textMedium mx:RadioButtonGroup id=unitRoleGroup / mx:HBox mx:RadioButton label=Manager groupName={unitRoleGroup} styleName=textMedium/ mx:RadioButton label=Member groupName={unitRoleGroup} styleName=textMedium/ /mx:HBox /mx:FormItem mx:FormItem label=Unit Name labelStyleName=textMedium mx:TextInput id=txtUnitName styleName=inputTextMedium restrict=a-zA-Z0-9_ / /mx:FormItem mx:FormItem label=Time Zone labelStyleName=textMedium mx:ComboBox id=cboTimeZone / /mx:FormItem !-- Network Settings -- mx:FormItem id=networkSettingsForm mx:RadioButtonGroup id=networkSettingsGroup/ mx:HBox mx:RadioButton id=radioButtonDHCP label=DHCP groupName={networkSettingsGroup} styleName=textMedium/ mx:RadioButton label=Static groupName={networkSettingsGroup} styleName=textMedium/ /mx:HBox /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem /mx:Form /mx:VBox /mx:Application On Fri, Mar 13, 2009 at 3:12 PM, Alex Harui aha...@... wrote: You have to set groupName, not group. mx:FormItem id=networkSettingsForm mx:RadioButtonGroup id=networkSettingsGroup/ mx:HBox mx:RadioButton id=radioButtonDHCP label=DHCP groupName=networkSettingsGroup styleName=textMedium/ mx:RadioButton label=Static groupName=networkSettingsGroup styleName=textMedium/ /mx:HBox Same for the other radiobuttons Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *anuj181 *Sent:* Friday, March 13, 2009 10:21 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Weired Focus Change behaviour on tab pressing Hi Guys I am trying to make the focus changed consistently to different components in my app but it is showing different behavior when user presses tab. Few things are happening here if one of the radio button from the first radio group has been selected then pressing tab button will keep on cycling through first 3 components and if the radio buttons are not selected then changing focus
Re: [flexcoders] null parent for ChartLabel
On Friday 13 Mar 2009, Maciek Sakrejda wrote: which, combined with the error, seems to imply that this ChartLabel has no parent (!), Chart labels are cached, much like item renderers. why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? What are you doing to the data provider of the chart ? Do you have a customer chartlabel renderer or function ? You could also try changing the code to be: if(parent is AxisRenderer parent.rotation == 90) If the latter works, please file a bug with the patch in. -- Tom Chiverton Helping to carefully iterate attention-grabbing strategic environments as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Simple actionscript that I cannot understand! Please help. Thanks
- Original Message - From: fred44455 fred44...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, March 16, 2009 3:01 AM Subject: [flexcoders] Simple actionscript that I cannot understand! Please help. Thanks ?xml version=1.0? Can somebody explain into details what that code do?(line by line). I know that it is changing the font size but I cannot understand the :s and the normal? I understand the overal code but not everything. Thanks again for your time. Fred. The buttons in the application are called myButton1 and myButton2. To change the style of a button changeLabel() is called with the button number supplied as a string s. Inside changeLabel s is changed to be the actual name of the button - e.g. myButton+ 1 becomes myButton1. String s is the name of the button whose style we need to work with. this[s] refers to the actual button. this is the current object instance and in this context it is the application container. the [s] refers to an attribute of that object named s and returns a reference to the attribute. In this case this[s] returns a reference to the button whose name is contained in the string s. Paul !-- usingas/FlexComponents.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ private var newFontStyle:String; private var newFontSize:int; public function changeLabel(s:String):void { s = myButton + s; if (this[s].getStyle(fontStyle)==normal) { newFontStyle = italic; newFontSize = 18; } else { newFontStyle = normal; newFontSize = 10; } this[s].setStyle(fontStyle,newFontStyle); this[s].setStyle(fontSize,newFontSize); } ]]/mx:Script mx:Button id=myButton1 click=changeLabel('2') label=Change Other Button's Styles / mx:Button id=myButton2 click=changeLabel('1') label=Change Other Button's Styles / /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: multiple rows of data
I ususally allow a user to modify multiple records. A Save button is a part of an interface. An event can be fired when an editing is done but I just dont think it is too practical. Think about a situation when a user changes his mind and wants to undo all the changes he has applied to multiple records. Can easily becomes a nightmare interface design. Just my 2c. --- In flexcoders@yahoogroups.com, garrysaddington garrysadding...@... wrote: I am trying to find out whether the following events are possible in OL or in Flex. I am not asking how, just whether. Load a dynamic dataset over HTTP which replicates to many rows of data in the application. Then the user adds some data to each row eg. in an edittext at the end of each row. The user then submits all the data to the HTTP server where the database is updated for each row recieved. Or would it be better to have some event that fires the data to the server after each row is updated? Any pointers to documentation would be much appreciated.
[flexcoders] Issue with Tree in Flex
Hi flex experts, I'm using tree for a requirement, when we try to open more number of nodes and browse thru the the tree, these are the issues that occur. 1) Tree View goes either Blank or filled with one node name. 2) It hides few nodes. In other words, On expanding more nodes the tree view goes either blank or hides few nodes (sometimes the single node name appears through out the tree view). The following is a sample tree code that i'm trying to use. You can copy paste and try executing this. Thanks in Advance. Regards DB ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() width=100% height=100% mx:Script ![CDATA[ [Bindable] public var TreeXML:XML=null; private function init():void { var strXML:String = new String(node label = 'Country' id='00'node label='Region1' id='1'node label='City1' id='1'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City2' id='2'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City3' id='3'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City4' id='4'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City5' id='5'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City6' id='6'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City7' id='7'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City8' id='8'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City9' id='9'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//node/nodenode label='Region2' id='2'node label='City1' id='1'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City2' id='2'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City3' id='3'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City4' id='4'node label='Retailer1' id='1'/node label='Retailer2' id='2'/node label='Retailer3' id='3'/node label='Retailer4' id='4'/node label='Retailer5' id='5'/node label='Retailer6' id='6'/node label='Retailer7' id='7'/node label='Retailer8' id='8'/node label='Retailer9' id='9'//nodenode label='City5'
Re: [flexcoders] Load Flex SWF into Flash - Error Msg
Another one method is to create Flex wrapper application, load your flash.swf into it, and then load flex.swf into flash, it's simple: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; paddingBottom=0 paddingTop=0 paddingLeft=0 paddingRight=0 mx:SWFLoader scaleContent=false id=desktop width=100% height=100% source=flash.swf resize=if(desktop.content) desktop.content['setSize'](desktop.width, desktop.height); complete=desktop.content['setSize'](desktop.width, desktop.height);/ /mx:Application There flash.swf is your flash app that loads flex app and setSize must be a public function in flashh.swf to arrange it when resizing occurs(if you need it) azona26 wrote: Hello All --- I am just moving into Flex 3 from Flash CS3/AS3 and am trying to import a Flex compiled SWF into Flash. I followed this tutorial, which seems to work well: http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flash-example-with.html If I put the code on a frame in Flash, not using any custom document class everything works fine. However, when I try and load the Flex SWF into my Flash Document class via a custom class loading file which basically implements the prior referenced code, I get the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::LayoutManager/set usePhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:325] at mx.core::Application()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Application.as:274] at CDForm()[C:\TriggerFish FLEX\src\CDForm.mxml:0] at _CDForm_mx_managers_SystemManager/create() at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:2438] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:2330] Any insight into why I am getting this error: Thanks for any and all replies. -- View this message in context: http://www.nabble.com/Load-Flex-SWF-into-Flash---Error-Msg-tp15885686p22538483.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: datagrid.selectedItem to vo?
Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongt...@yahoo.com wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongt...@... wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Flex charting
Hi Poorni, Can you post the code, let me try to modify the same and send it to you. Regards DB kotha poornima wrote: Hi All, I have one arraycollection like this: public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, loss:200, Expenses:1500}, {Month:Feb, Profit:1000, loss:200, Expenses:200}, {Month:Mar, Profit:1500, loss:200, Expenses:500} ]); With this iam drawing a column chart. so i added two column series one for profit and one for expenses. So i got output like for the first key two lines came orange and green one for profit and one for expenses. But i want to combine these two lines so i put type=100% With this iam getting green and orange in the same line with values adjusted to 100%. Up to this its working fine. But now i want another series for the same key with loss and expenses. However if i add these two series to the chart iam still getting one line with 4 colors. But i want profit and expenses with type=100% in one line and loss and expenses in one line with type=100% for one key.(Shown in the attachment type1.bmp). Please help me guys!!! Thanks in Advance, Poornima -- View this message in context: http://www.nabble.com/Flex-charting-tp22534734p22539460.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Color icon(s) in tree control
Hi, try using itemrenderer, changing the icon first and then try for changing the color. regards DB Nable wrote: Hi, I have tried everything and just couldn't find a solution. I'd like to color icons in tree control just as it would be possible in Flash: mc.color = 0xff; mc.alpha = 50; Of course in Flex it doesn't work like that. I have tried with ItemRenderer. In function updateDisplayList you can change as much as anything. You can set super.icon.blendMode, you can set super.icon.alpha, but I just couldn't find a way to color icon. I need to color DefaultLeafIcon in runtime. Please help. -- View this message in context: http://www.nabble.com/Color-icon%28s%29-in-tree-control-tp22536941p22539736.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] error loading the flash player 10 in flex 3
Does anyone knows a way to load the flash player 10 swc inside flex3 with out come abc bitecode error...I don't know what is that. Regards, Gustavo
Re: [flexcoders] Simple actionscript that I cannot understand! Please help. Thanks
?xml version=1.0? !--hi Fred, i'm trying to explain what i understood in flex, i don't know your knowledge on other scriptings. As a flex developer, we know that all of our files are complied generated as actionscript files and then converted into swf files that funs in flash which runs in the client machine. Application is the property that holds the entire view which is from xml namespace with mx from http://www.adobe.com/2006/mxml-- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; !--the below are the scripting area where we can right our own scripts that controls the mx other properties that we define for application view -- mx:Script![CDATA[ /* naming the font style and size */ private var newFontStyle:String; private var newFontSize:int; /* we have given a function called changeLabel which is called on click property that we have mentiond in the Button view */ public function changeLabel(s:String):void { /* get the Name of the button that has to be changed. '+s' is 1 or 2 from the click function called and then String Name as myButton1 or myButton2*/ s = myButton+s; /* check and change the style and size of the Button */ if (this[s].getStyle(fontStyle)==normal) { newFontStyle = italic; newFontSize = 18; } else { newFontStyle = normal; newFontSize = 10; } /* Now set the latest value that is checked */ this[s].setStyle(fontStyle,newFontStyle); this[s].setStyle(fontSize,newFontSize); } ]]/mx:Script !--Adding button to the application view with the properties like id, label and click-- mx:Button id=myButton1 click=changeLabel('2') label=Change Other Button's Styles / mx:Button id=myButton2 click=changeLabel('1') label=Change Other Button's Styles / /mx:Application Fred45 wrote: ?xml version=1.0? Can somebody explain into details what that code do?(line by line). I know that it is changing the font size but I cannot understand the :s and the normal? I understand the overal code but not everything. Thanks again for your time. Fred. !-- usingas/FlexComponents.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ private var newFontStyle:String; private var newFontSize:int; public function changeLabel(s:String):void { s = myButton + s; if (this[s].getStyle(fontStyle)==normal) { newFontStyle = italic; newFontSize = 18; } else { newFontStyle = normal; newFontSize = 10; } this[s].setStyle(fontStyle,newFontStyle); this[s].setStyle(fontSize,newFontSize); } ]]/mx:Script mx:Button id=myButton1 click=changeLabel('2') label=Change Other Button's Styles / mx:Button id=myButton2 click=changeLabel('1') label=Change Other Button's Styles / /mx:Application -- View this message in context: http://www.nabble.com/Simple-actionscript-that-I-cannot-understand%21-Please-help.-Thanks-tp22536950p22540167.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] AIR: WindowedApplication.exit() does not remove process
I've tried closing an AIR application with exit() and NativeApplication.nativeApplication.exit() - in both cases the app closes but I still see the process running in Windows' task manager. Anyone know what the cause of this might be? -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers
[flexcoders] Re: Color icon(s) in tree control
Hi, changing icon is not the issue, changing color of icon is. Can you be more specific about changing color? --- In flexcoders@yahoogroups.com, duraibalaji duraibal...@... wrote: Hi, try using itemrenderer, changing the icon first and then try for changing the color. regards DB
Re: [flexcoders] Re: Cool Flex Component Site (opensource)
On Monday 16 Mar 2009, Paul Hastings wrote: wubac1 wrote: Wow, that has to be some of the worst UI I've ever seen. kind of harsh. the radar chart *is* pretty nifty. ChartZoomer could be handy too. -- Tom Chiverton Helping to evangelistically e-enable visionary dot-com products as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Re: datagrid.selectedItem to vo?
The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongt...@... wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ 1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: datagrid.selectedItem to vo?
OR, currVO = headlineVO(event.target.selectedItem) as headlineVO; -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ \ 1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ \ 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: datagrid.selectedItem to vo?
Sorry, should be: currVO = event.target.selectedItem as headlineVO; -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: OR, currVO = headlineVO(event.target.selectedItem) as headlineVO; -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ \ \ 1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ \ \ 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: datagrid.selectedItem to vo?
I tried changing that to ResultEvent but seemed to conflict with the IResponder import.. Was getting an errors highlighting the below line MyModel.getInstance().adminARCHeadlines Implicit coercion of a value with static type object to possible unrelated tye arrsy and interface method result in namespace mx.rpc.IResponder is implemented with an incompatible signature in class interface method result in namespace mx.rpc:Iresponder On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff timh...@aol.com wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongt...@... wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: canvas backgroundimage loadercontext
Amy and Alex, Thanks very much for your suggestions. What I did to fix it is: In the routine to create the snapshot: 1) remove the BG image 2) load the background image source into an image control using the loader context 3) put the loader context image control at child position 0 4) take the snapshot 5) remove the loader context image 6) restore the BG image Thanks again, Rich On Sat, Mar 14, 2009 at 1:22 AM, Alex Harui aha...@adobe.com wrote: One possibility would be to subclass flash.display.Loader and supply that as the backgroundImage “class” then have it load the image with a custom URL Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *rdibona *Sent:* Friday, March 13, 2009 3:44 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: canvas backgroundimage loadercontext Thanks for the reply. Assuming that I am willing to take the risk of the server going down (the images are stored on Amazon S3 so they are pretty safe), how can I have a backgroundimage check the policy file, using LoaderContext or otherwise? This is an app that has been working great for over 2 years and only with one of the latest releases of flash did this break so I am scrambling to try and fix it. The reason I can't really do it as an image with a child index of 0 is because the user can click things and drag them around and I don't want them to accidentally drag the background image -- I'd have to write a bunch of code to work through that scenario so I'd like to exhaust all other options first. Thanks again, Rich --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: I'd avoid loading foreign content as the backgroundImage. If that server goes down, your app will look very different. If you really want to, then it might be easier to put an Image behind all of the other children and not use backgroundImage Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of rdibona Sent: Friday, March 13, 2009 11:15 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] canvas backgroundimage loadercontext Hi there, I have an application where I take a snapshot of a Canvas with various other images on it using the bitmapdata.draw method. I had to change my code to use a LoaderContext for each image load to avoid security errors, i.e.: var lc : LoaderContext; var img : Image; img = new Image(); lc = new LoaderContext(true); img.loaderContext = lc; img.load(src); This has worked fine. However, I cannot figure out how to avoid a security error when setting the backgroundImage style for a canvas, as it expects a URL directly with no opportunity to specify another image as the value. It does say you can specify a class, but how do you cast an image into a compatible class? The images I am dealing with are dynamically loaded at run-time so there is no opportunity to use the Embed directive. Thanks, Rich
Re: [flexcoders] Re: datagrid.selectedItem to vo?
if it's event.target.selectedItem as headlineVO then currVO is always null.. On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorp...@gmail.com wrote: I tried changing that to ResultEvent but seemed to conflict with the IResponder import.. Was getting an errors highlighting the below line MyModel.getInstance().adminARCHeadlines Implicit coercion of a value with static type object to possible unrelated tye arrsy and interface method result in namespace mx.rpc.IResponder is implemented with an incompatible signature in class interface method result in namespace mx.rpc:Iresponder On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff timh...@aol.com wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongt...@... wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: datagrid.selectedItem to vo?
What does your service tag code look like Greg? Are you for reason setting makeObjectsBindable to false? -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: if it's event.target.selectedItem as headlineVO then currVO is always null.. On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorp...@... wrote: I tried changing that to ResultEvent but seemed to conflict with the IResponder import.. Was getting an errors highlighting the below line MyModel.getInstance().adminARCHeadlines Implicit coercion of a value with static type object to possible unrelated tye arrsy and interface method result in namespace mx.rpc.IResponder is implemented with an incompatible signature in class interface method result in namespace mx.rpc:Iresponder On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff timh...@... wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ 1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: datagrid.selectedItem to vo?
in Services.mxml no I'm not.. just ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=MainService destination=ColdFusion showBusyCursor=true source=myApp.remote.mainFacade /mx:RemoteObject mx:RemoteObject id=AdminService destination=ColdFusion showBusyCursor=true source=myApp.remote.adminFacade /mx:RemoteObject /cairngorm:ServiceLocator as far as I can tell it looks okay I'm even looking at another .mxml file in the same directory that is doing the exact same thing and it works there.. I just dont know what I'm doing wrong here.. the datagrid populates fine and I can even do Alert.show(event.target.selectedItem.headline); and bam.. headline alerts. but if I do currVO = event.target.selectedItem; and put a debug stopper afterwards this.currVO is null On Mon, Mar 16, 2009 at 10:48 AM, Tim Hoff timh...@aol.com wrote: What does your service tag code look like Greg? Are you for reason setting makeObjectsBindable to false? -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: if it's event.target.selectedItem as headlineVO then currVO is always null.. On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorp...@... wrote: I tried changing that to ResultEvent but seemed to conflict with the IResponder import.. Was getting an errors highlighting the below line MyModel.getInstance().adminARCHeadlines Implicit coercion of a value with static type object to possible unrelated tye arrsy and interface method result in namespace mx.rpc.IResponder is implemented with an incompatible signature in class interface method result in namespace mx.rpc:Iresponder On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff timh...@... wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ:
[flexcoders] Re: datagrid.selectedItem to vo?
Sorry, should be: currVO = event.target.selectedItem as headlineVO -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: OR, currVO = headlineVO(event.target.selectedItem) as headlineVO; -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function selectedHeadline():void { currentVO = headlinesDG.selectedItem as headlineVO; } and for the editButton.click I have another function that just Alert the currentVO.headline; I get a null object reference when I click on the edit Button. If I put a breakpoint above the Alert I can see that currentVO is null, how can I assign that selected row to my vo? Can anyone offer suggestions or things I should check? Thanks in advance! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ \ \ 1e62079f6847 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 Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\ \ \ 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Simple actionscript that I cannot understand! Please help. Thanks
Fred, Use event targets, look how easy it is, works from any button, you can use casting... HTH, Patrick import mx.controls.Button; private function changeStyle(e:MouseEvent):void { var b:Button = e.currentTarget as Button; if (b.getStyle(fontStyle)==normal) { b.setStyle(fontSize,18) b.setStyle(fontWeight,bold) } else { b.setStyle(fontSize,10) b.setStyle(fontWeight,normal) } } } ]] /mx:Script mx:Button click=changeStyle(event)/ mx:Button click=changeStyle(event)/ mx:Button click=changeStyle(event)/ --- In flexcoders@yahoogroups.com, duraibalaji duraibal...@... wrote: ?xml version=1.0? !--hi Fred, i'm trying to explain what i understood in flex, i don't know your knowledge on other scriptings. As a flex developer, we know that all of our files are complied generated as actionscript files and then converted into swf files that funs in flash which runs in the client machine. Application is the property that holds the entire view which is from xml namespace with mx from http://www.adobe.com/2006/mxml-- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; !--the below are the scripting area where we can right our own scripts that controls the mx other properties that we define for application view -- mx:Script![CDATA[ /* naming the font style and size */ private var newFontStyle:String; private var newFontSize:int; /* we have given a function called changeLabel which is called on click property that we have mentiond in the Button view */ public function changeLabel(s:String):void { /* get the Name of the button that has to be changed. '+s' is 1 or 2 from the click function called and then String Name as myButton1 or myButton2*/ s = myButton+s; /* check and change the style and size of the Button */ if (this[s].getStyle(fontStyle)==normal) { newFontStyle = italic; newFontSize = 18; } else { newFontStyle = normal; newFontSize = 10; } /* Now set the latest value that is checked */ this[s].setStyle(fontStyle,newFontStyle); this[s].setStyle(fontSize,newFontSize); } ]]/mx:Script !--Adding button to the application view with the properties like id, label and click-- mx:Button id=myButton1 click=changeLabel('2') label=Change Other Button's Styles / mx:Button id=myButton2 click=changeLabel('1') label=Change Other Button's Styles / /mx:Application Fred45 wrote: ?xml version=1.0? Can somebody explain into details what that code do?(line by line). I know that it is changing the font size but I cannot understand the :s and the normal? I understand the overal code but not everything. Thanks again for your time. Fred. !-- usingas/FlexComponents.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ private var newFontStyle:String; private var newFontSize:int; public function changeLabel(s:String):void { s = myButton + s; if (this[s].getStyle(fontStyle)==normal) { newFontStyle = italic; newFontSize = 18; } else { newFontStyle = normal; newFontSize = 10; } this[s].setStyle(fontStyle,newFontStyle); this[s].setStyle(fontSize,newFontSize); } ]]/mx:Script mx:Button id=myButton1 click=changeLabel('2') label=Change Other Button's Styles / mx:Button id=myButton2 click=changeLabel('1') label=Change Other Button's Styles / /mx:Application -- View this message in context: http://www.nabble.com/Simple-actionscript-that-I-cannot-understand%21-Please-help.-Thanks-tp22536950p22540167.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Question, I am having problems with my encrypted local store
ok, it looks like some byte madness is going on, why would my ints stored as a byteArray come back multiplied by 256? If I use floats they come back in exponential notation? ha! Any suggestions? By the way, aren't rectangle's primitive objects or not,i am storing the virtualbounds into a userVO with a getter/setter, because saving a rectangle as an object with writeObject returns null? Any ideas?? Thanks, Patrick --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: I am saving some info, and when i save the int goes in correctly, but when I readInt() it comes out a lot bigger, I can't find the relationship Here's what i am dealing with: ##VirtualBounds (x=0, y=0, w=3200, h=1200) READING this.virtualBounds 0 0 819200 307200 It's really confusing, what's funny, is that I have had no problems in the past. Any help, please. Thanks, Patrick
[flexcoders] Re: datagrid.selectedItem to vo?
Yeah, servic looks fine. The problem is that the ArrayCollection contains Objects; instead of headlineVO's. The Alert and DataGrid don't care about that. but, when you try to cast one of the Objects to a headlineVO, it's choking silently. I'd go back to the VO class and make sure that you have all of the fields correct and that the spelling is all the same. There has to be an inconsistency somewhere along the way. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: in Services.mxml no I'm not.. just ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=MainService destination=ColdFusion showBusyCursor=true source=myApp.remote.mainFacade /mx:RemoteObject mx:RemoteObject id=AdminService destination=ColdFusion showBusyCursor=true source=myApp.remote.adminFacade /mx:RemoteObject /cairngorm:ServiceLocator as far as I can tell it looks okay I'm even looking at another .mxml file in the same directory that is doing the exact same thing and it works there.. I just dont know what I'm doing wrong here.. the datagrid populates fine and I can even do Alert.show(event.target.selectedItem.headline); and bam.. headline alerts. but if I do currVO = event.target.selectedItem; and put a debug stopper afterwards this.currVO is null On Mon, Mar 16, 2009 at 10:48 AM, Tim Hoff timh...@... wrote: What does your service tag code look like Greg? Are you for reason setting makeObjectsBindable to false? -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: if it's event.target.selectedItem as headlineVO then currVO is always null.. On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorphis@ wrote: I tried changing that to ResultEvent but seemed to conflict with the IResponder import.. Was getting an errors highlighting the below line MyModel.getInstance().adminARCHeadlines Implicit coercion of a value with static type object to possible unrelated tye arrsy and interface method result in namespace mx.rpc.IResponder is implemented with an incompatible signature in class interface method result in namespace mx.rpc:Iresponder On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff TimHoff@ wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user selects a row and hits edit. The new VO shows as being null in the debugger. This is what my code looks like mx:DataGrid id=headlinesDG dataProvider={MyModel.getInstance().adminARCHeadlines} click=selectedHeadline ... ... /mx:DataGrid above I have a function private function
[flexcoders] Flash Player 10.0.22.87 Broken?
I haz a little quirk¹ over the weekend updating to Flash Player 10.0.22.87 has broken several apps. Anyone got any info? I found a post in the dreamweaver forums that pretty much sums it up. http://dreamweaverforum.info/flash/153268-swf-broken-10-0-22-87-a.html Rick Winscot
[flexcoders] Re: Issue with Tree in Flex
DB I tried your code and saw the exact issue you describe. Commenting the line: //expandTree(); fixes it. I don't use Tree but I would surmise you are double handling the expand functionality. From what I can see the tree component already implements expand and by adding your own you are causing the problem. Someone else who uses tree more extensively may have a better explanation. HTH. Steve --- In flexcoders@yahoogroups.com, duraibalaji duraibal...@... wrote: Hi flex experts, I'm using tree for a requirement, when we try to open more number of nodes and browse thru the the tree, these are the issues that occur. 1) Tree View goes either Blank or filled with one node name. 2) It hides few nodes. In other words, On expanding more nodes the tree view goes either blank or hides few nodes (sometimes the single node name appears through out the tree view). The following is a sample tree code that i'm trying to use. You can copy paste and try executing this. Thanks in Advance. Regards DB
Re: [flexcoders] Re: Cool Flex Component Site (opensource)
On Monday 16 Mar 2009, Tom Chiverton wrote: ChartZoomer could be handy too. Has anyone got the code out of them yet ? I've not got anything to the account I registered with... -- Tom Chiverton Helping to enormously deliver transparent impactful synergistic granular interfaces as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Re: Cool Flex Component Site (opensource)
Yep - came to me email address --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote: On Monday 16 Mar 2009, Tom Chiverton wrote: ChartZoomer could be handy too. Has anyone got the code out of them yet ? I've not got anything to the account I registered with... -- Tom Chiverton Helping to enormously deliver transparent impactful synergistic granular interfaces as part of the IT team of the year, '09 and '08 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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Re: datagrid.selectedItem to vo?
I think when you get the data back event.result is not the array of headlineVO; On your MyModel where you define adminARCHeadlines; can you try this.. [Bindable] [ArrayElementType(your fqn of headlineVO)] private var adminARCHeadlines:ArrayCollection; note: your fqn of headlineVO, for example com.test.vo.headlineVO(where u define ur vo. --- In flexcoders@yahoogroups.com, Greg Morphis gmorp...@... wrote: if it's event.target.selectedItem as headlineVO then currVO is always null..
[flexcoders] Re: datagrid.selectedItem to vo?
In your Model, [Bindable] [ArrayElementType(fully qualify name of headlineVO)] public var adminARCHeadlines :ArrayCollection; --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Yeah, servic looks fine. The problem is that the ArrayCollection contains Objects; instead of headlineVO's. The Alert and DataGrid don't care about that. but, when you try to cast one of the Objects to a headlineVO, it's choking silently. I'd go back to the VO class and make sure that you have all of the fields correct and that the spelling is all the same. There has to be an inconsistency somewhere along the way. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: in Services.mxml no I'm not.. just ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=MainService destination=ColdFusion showBusyCursor=true source=myApp.remote.mainFacade /mx:RemoteObject mx:RemoteObject id=AdminService destination=ColdFusion showBusyCursor=true source=myApp.remote.adminFacade /mx:RemoteObject /cairngorm:ServiceLocator as far as I can tell it looks okay I'm even looking at another .mxml file in the same directory that is doing the exact same thing and it works there.. I just dont know what I'm doing wrong here.. the datagrid populates fine and I can even do Alert.show(event.target.selectedItem.headline); and bam.. headline alerts. but if I do currVO = event.target.selectedItem; and put a debug stopper afterwards this.currVO is null On Mon, Mar 16, 2009 at 10:48 AM, Tim Hoff TimHoff@ wrote: What does your service tag code look like Greg? Are you for reason setting makeObjectsBindable to false? -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: if it's event.target.selectedItem as headlineVO then currVO is always null.. On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorphis@ wrote: I tried changing that to ResultEvent but seemed to conflict with the IResponder import.. Was getting an errors highlighting the below line MyModel.getInstance().adminARCHeadlines Implicit coercion of a value with static type object to possible unrelated tye arrsy and interface method result in namespace mx.rpc.IResponder is implemented with an incompatible signature in class interface method result in namespace mx.rpc:Iresponder On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff TimHoff@ wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an ArrayCollection in MyModel.as How do I tell it that it's an ArrayCollection of VOs? On Fri, Mar 13, 2009 at 3:21 PM, ppongtong ppongtong@ wrote: Actually, when u get the data from cfc, did u map it to your headlineVO? --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: I have a vo headlineVO that has the following variables headline_id:Number headline:String effdate:Date endeffdate:Date actionuser:String actiondate:Date I have a cfc that returns an ArrayCollection of beans, each bean has the above variables too. I can populate a datagrid with this data and it shows fine. I'm trying to populate a new vo (currentVO) when the user
Re: [flexcoders] null parent for ChartLabel
That's the thing: nothing especially complicated going on. We have custom axes and custom labelFunctions, but we're using the stock AxisRenderer. We re-parent the Chart during this layout change, but that's it (we certainly don't re-parent the labels manually). Perhaps I'll try to see if I can get a simple re-parenting test case to repro this, and I'll file a bug with that. Thanks, Maciek -Original Message- From: Tom Chiverton tom.chiver...@halliwells.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 13:00:27 + On Friday 13 Mar 2009, Maciek Sakrejda wrote: which, combined with the error, seems to imply that this ChartLabel has no parent (!), Chart labels are cached, much like item renderers. why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? What are you doing to the data provider of the chart ? Do you have a customer chartlabel renderer or function ? You could also try changing the code to be: if(parent is AxisRenderer parent.rotation == 90) If the latter works, please file a bug with the patch in.
RE: [flexcoders] Re: Issue with Tree in Flex
Yes, a label function should only build the label string, not do anything else, especially manipulate the visual elements of the control it is being used to render. A label function gets called for every visible node in the tree, which changes when you scroll, open a node, etc. No wonder you confused the poor tree! What is the goal of that line? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Monday, March 16, 2009 12:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Issue with Tree in Flex DB I tried your code and saw the exact issue you describe. Commenting the line: //expandTree(); fixes it. I don't use Tree but I would surmise you are double handling the expand functionality. From what I can see the tree component already implements expand and by adding your own you are causing the problem. Someone else who uses tree more extensively may have a better explanation. HTH. Steve --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, duraibalaji duraibal...@... wrote: Hi flex experts, I'm using tree for a requirement, when we try to open more number of nodes and browse thru the the tree, these are the issues that occur. 1) Tree View goes either Blank or filled with one node name. 2) It hides few nodes. In other words, On expanding more nodes the tree view goes either blank or hides few nodes (sometimes the single node name appears through out the tree view). The following is a sample tree code that i'm trying to use. You can copy paste and try executing this. Thanks in Advance. Regards DB
Re: [flexcoders] Re: datagrid.selectedItem to vo?
It's working now.. here's what I changed.. someone tell me what it most likely was my headlineVO.as had 1 thing out of order nothing was mispelled but actionuser was at the bottom of the .as and in the middle of my CFC The bean was set up using dates, numerics and string.. I changed it all to be strings, so headline_id = string, actiondate = string now, etc and lastly I did what Panhathai suggested and I added [ArrayElementType] to MyModel.as it says the [Bindable] is reundant.. But something here fixed the issue and currVO in debugger is showing as com.comp.MyApp.vo.headlineVO and I thank all of you for your time.. after only killed about 3 days worth of work I can move forward finally! Thanks On Mon, Mar 16, 2009 at 11:14 AM, ppongtong ppongt...@yahoo.com wrote: In your Model, [Bindable] [ArrayElementType(fully qualify name of headlineVO)] public var adminARCHeadlines :ArrayCollection; --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Yeah, servic looks fine. The problem is that the ArrayCollection contains Objects; instead of headlineVO's. The Alert and DataGrid don't care about that. but, when you try to cast one of the Objects to a headlineVO, it's choking silently. I'd go back to the VO class and make sure that you have all of the fields correct and that the spelling is all the same. There has to be an inconsistency somewhere along the way. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: in Services.mxml no I'm not.. just ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=MainService destination=ColdFusion showBusyCursor=true source=myApp.remote.mainFacade /mx:RemoteObject mx:RemoteObject id=AdminService destination=ColdFusion showBusyCursor=true source=myApp.remote.adminFacade /mx:RemoteObject /cairngorm:ServiceLocator as far as I can tell it looks okay I'm even looking at another .mxml file in the same directory that is doing the exact same thing and it works there.. I just dont know what I'm doing wrong here.. the datagrid populates fine and I can even do Alert.show(event.target.selectedItem.headline); and bam.. headline alerts. but if I do currVO = event.target.selectedItem; and put a debug stopper afterwards this.currVO is null On Mon, Mar 16, 2009 at 10:48 AM, Tim Hoff TimHoff@ wrote: What does your service tag code look like Greg? Are you for reason setting makeObjectsBindable to false? -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: if it's event.target.selectedItem as headlineVO then currVO is always null.. On Mon, Mar 16, 2009 at 10:41 AM, Greg Morphis gmorphis@ wrote: I tried changing that to ResultEvent but seemed to conflict with the IResponder import.. Was getting an errors highlighting the below line MyModel.getInstance().adminARCHeadlines Implicit coercion of a value with static type object to possible unrelated tye arrsy and interface method result in namespace mx.rpc.IResponder is implemented with an incompatible signature in class interface method result in namespace mx.rpc:Iresponder On Mon, Mar 16, 2009 at 10:27 AM, Tim Hoff TimHoff@ wrote: The result from your cfc call isn't being cast correctly; it's nesting the result inside an object. public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } Either loop through the result object and addItem; one at a time. Or try changing the result format. -TH --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: Still having a problem with this.. I changed the assignment code to currVO = headlineVO(event.target.selectedItem); note: I also changed the name of the VO incase somewhere it was being set to null. Anyways I started the debugger and when I selected a row in the debugger I see Type Coercion failed: cannot convert obj...@9bef331 to com.comp.MyApp.vo.headlineVO However when I explode [+]this and scroll down in the debugger this.currVO shows that it's a com.comp.MyApp.vo.headlineVO... WTH am I missing? On Fri, Mar 13, 2009 at 5:27 PM, ppongtong ppongtong@ wrote: Please try public function result(event:Object) :void { var dummy :headlineVO; // add this line MyModel.getInstance().adminARCHeadlines = new ArrayCollection(event.result); } --- In flexcoders@yahoogroups.com, Greg Morphis gmorphis@ wrote: In the command result I have public function result(event:Object) : void { MyModel.getInstance().adminARCHeadlines = new ArrayCollection (event.result); } adminARCHeadlines is an
[flexcoders] To Adobe Folks - General Question About Using Deprecated Tags
I posted a related question here a few days back (ColumnCharts - problem adding a LineSeries to ColumnChart w/o SecondSeries), but this question is a bit more general. In order get past this bug - https://bugs.adobe.com/jira/browse/FLEXDMV-1957, I'm likely going to need to use the deprecated SecondSeries tag. My question is how safe is using this, or any of the other deprecated tags, methods, etc. I read what I could find in the docs, but what I saw seemed more focused on layout style differences. Is there an expectation that support could be dropped in future versions, or are these warnings simply there to point us to the newer, improved-upon replacements. Thanks, Eddie B.
[flexcoders] Re: stage mouseUp not firing outside app window
That took some legwork. The short of it is that the behavior appears in IE, but not Firefox. The current system that I'm using for testing is Windows XP, Flash Player 10 (10.0.12.36) Debug, Flex SDK 3.2.0. IE is 7.0.5730.11CO. Firefox is 3.0.5. I can also describe the IE behavior more precisely. Assert: When you click-drag off the browser application window and then release your mouse button, you should get mouseLeave. In Firefox, it works consistently. In IE (for me), it works inconsistently. In particular, it behaves in one of two ways: (1) If I click-drag up off the label and onto the browser tab bar or if I click-drag left without leaving the bounds of the label until moving off the browser window, I do get mouseLeave, but I get mouseLeave as soon as I leave the application windowjust as if I weren't click-dragging but I were just mousing over. (2) If I click-drag down off the label and _then_ left off the application window, I get no mouseLeave at all. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: MouseLeave for me on windows. What is your configuration? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of graham.t...@... Sent: Friday, March 13, 2009 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: stage mouseUp not firing outside app window You bet. Here's my current version (modified from my first post). Many thanks! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=onApplicationComplete(event) viewSourceURL=srcview/index.html mx:Script ![CDATA[ import mx.events.FlexEvent; private function onApplicationComplete(e:FlexEvent):void { stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave); //stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp); //systemManager.topLevelSystemManager.addEventListener(MouseEvent.ROLL_OUT,onRollOut); //stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut); //Application.application.addEventListener(MouseEvent.ROLL_OUT,onRollOut); //Application.application.stage.addEventListener(MouseEvent.ROLL_OUT,onRollOut); } private function onMouseLeave(e:Event):void { trace (onMouseLeave); } private function onMouseUp(e:MouseEvent):void { trace (onMouseUp fired); } private function onRollOut(e:MouseEvent):void { trace (onRollOut fired); } ]] /mx:Script mx:Canvas id=testContainer width=400 height=100 backgroundColor=#00ff00 mx:Label text=Click-drag from _label_ to off-window. Release. No mouseUp./ /mx:Canvas /mx:Application --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: We use MOUSE_LEAVE successfully in Flex. Maybe post a simple test case. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of graham.tony@ Sent: Friday, March 13, 2009 2:43 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: stage mouseUp not firing outside app window Many thanks for the response! For me, this is behaving just like mouseUp. I do get a mouseLeave when I mouse out of the application, and I _can_ get one when I click-drag out of the application. However, I do _not_ get a mouseLeave when I click on the label and drag out of the application (and release the mouse). If I happened to click on that label, then I can't get it to work, and I need it no matter where (or what) I click on the stage. I added the following to my prior test: stage.addEventListener(Event.MOUSE_LEAVE, onMouseLeave); and private function onMouseLeave(e:Event):void { trace (onMouseLeave); } --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: A mouseup off-stage is usually sent as EVENT.as:MOUSE_LEAVE Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of graham.tony@ Sent: Friday, March 13, 2009 1:44 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: stage mouseUp not firing outside app window I gave it a shot, but the behavior was the same: click-drag from a label to somewhere off the application screen won't report
[flexcoders] Perplexing regex/replace() issue
This seems simple, but I can't figure it out. I have some input I don't control with a lot of properties that look like xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a one-line replace() instead of a longer split/join approach. I've tried several variations of: var s:String = t.replace(/-([a-z])/g, $1.toUpperCase()); I've also tried making the second param a function that returns uppercase, but replace() doesn't do the group substitution in this case. Can this be done?
Re: [flexcoders] Re: Weired Focus Change behaviour on tab pressing
Awesome, That works perfectly Thanks a lot Alex and valdhor for your help, Now everything is working fine with the binding removed, I am just wondering why binding can screw the focus issues for the tab pressing :-) On Mon, Mar 16, 2009 at 5:44 AM, valdhor valdhorli...@embarqmail.comwrote: You are almost done. Just remove the bindings from your groupNames... mx:RadioButton id=radioButtonDHCP label=DHCP groupName=networkSettingsGroup styleName=textMedium/ mx:RadioButton label=Static groupName=networkSettingsGroup styleName=textMedium/ --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, geeky developer geekydevelo...@... wrote: Hey Alex Thanks for replying but if I changed it to GroupName instead of group, it would let me make only one selection of the radio button. No doubt it fixed the tab focus issue but I like to use pairs of radio button like in the below example code, I like unitRoleGroup as one group and I like to select one of them at a time and networkSettingsGroup as another group in which I will like to select one at a time. It would let me do that if I change the property name to group , it would let me select one of the options if use group instead of groupName but then it would screw up the tab focus and if I change the group to groupName as recommended, then it fixes the tab focus issue but then it combines all the 4 radio button options into one and I would be able to select only one of them, thats not what i need. I like to create 2 different groups of radio buttons like the way it is shown in the code and i would like the tab ordering work properly with selecting one of the option at a time in each radio button group, Any idea to fix it? Thanks a lot for your help /*CODE */ ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:VBox width=100% height=100% paddingTop=5 paddingRight=5 paddingBottom=5 paddingLeft=5 mx:Label text=NSM Settings styleName=textLarge fontStyle=italic width=200/ mx:Form id=formMainContainer width=100% verticalGap=5 indicatorGap=25 labelWidth=200 paddingTop=0 paddingRight=0 paddingBottom=0 paddingLeft=0 height=262 !-- Unit Settings -- mx:FormItem label=Unit Settings labelStyleName=textLarge width=100% height=25 paddingTop=10 mx:HRule width=100% height=2/ /mx:FormItem mx:FormItem label=Unit Role labelStyleName=textMedium mx:RadioButtonGroup id=unitRoleGroup / mx:HBox mx:RadioButton label=Manager groupName={unitRoleGroup} styleName=textMedium/ mx:RadioButton label=Member groupName={unitRoleGroup} styleName=textMedium/ /mx:HBox /mx:FormItem mx:FormItem label=Unit Name labelStyleName=textMedium mx:TextInput id=txtUnitName styleName=inputTextMedium restrict=a-zA-Z0-9_ / /mx:FormItem mx:FormItem label=Time Zone labelStyleName=textMedium mx:ComboBox id=cboTimeZone / /mx:FormItem !-- Network Settings -- mx:FormItem id=networkSettingsForm mx:RadioButtonGroup id=networkSettingsGroup/ mx:HBox mx:RadioButton id=radioButtonDHCP label=DHCP groupName={networkSettingsGroup} styleName=textMedium/ mx:RadioButton label=Static groupName={networkSettingsGroup} styleName=textMedium/ /mx:HBox /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem mx:FormItem label=Label mx:Button label=Button/ /mx:FormItem /mx:Form /mx:VBox /mx:Application On Fri, Mar 13, 2009 at 3:12 PM, Alex Harui aha...@... wrote: You have to set groupName, not group. mx:FormItem id=networkSettingsForm mx:RadioButtonGroup id=networkSettingsGroup/ mx:HBox mx:RadioButton id=radioButtonDHCP label=DHCP groupName=networkSettingsGroup styleName=textMedium/ mx:RadioButton label=Static groupName=networkSettingsGroup styleName=textMedium/ /mx:HBox Same for the other radiobuttons Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *anuj181 *Sent:* Friday, March 13, 2009 10:21 AM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* [flexcoders] Weired Focus Change behaviour on tab pressing Hi Guys I am trying to make the focus changed consistently to different components in my app but it is showing different behavior when user presses tab. Few things are happening here if one of the radio button from the first radio group has been selected then pressing tab button will keep on cycling through first 3 components and if the radio buttons are not selected then changing focus on the
Re: [flexcoders] Perplexing regex/replace() issue
Kinda cheated for one line but it works: var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String { return arguments[1].toUpperCase();}); On Mon, Mar 16, 2009 at 11:44 AM, jimmy5804 jimmy5...@yahoo.com wrote: This seems simple, but I can't figure it out. I have some input I don't control with a lot of properties that look like xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a one-line replace() instead of a longer split/join approach. I've tried several variations of: var s:String = t.replace(/-([a-z])/g, $1.toUpperCase()); I've also tried making the second param a function that returns uppercase, but replace() doesn't do the group substitution in this case. Can this be done? -- Beau D. Scott Software Engineer
Re: [flexcoders] Perplexing regex/replace() issue
The issue is that you can't specify a replacement like that. You are effectively replacing every match with $1.toUpperCase(), which (since .toUpperCase() doesn't do anything with '$' or '1') just replaces it with '$1'--the original lowercase match. What you want is to use the second version of replace, where you provide a function to get the replacement (see examples at http://livedocs.adobe.com/flex/3/langref/String.html#replace() ). -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: jimmy5804 jimmy5...@yahoo.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Perplexing regex/replace() issue Date: Mon, 16 Mar 2009 17:44:55 - put I don't control with a lot of properties that look like xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a one-line replace() instead of a longer split/join approach. I've tried several variations of: var s:String = t.replace(/-([a-z])/g, $1.toUp
[flexcoders] Re: Perplexing regex/replace() issue
Yeah, thanks. mea culpa. didn't read the docs on the function version closely enough. --- In flexcoders@yahoogroups.com, Beau Scott beau.sc...@... wrote: Kinda cheated for one line but it works: var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String { return arguments[1].toUpperCase();}); On Mon, Mar 16, 2009 at 11:44 AM, jimmy5804 jimmy5...@... wrote: This seems simple, but I can't figure it out. I have some input I don't control with a lot of properties that look like xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a one-line replace() instead of a longer split/join approach. I've tried several variations of: var s:String = t.replace(/-([a-z])/g, $1.toUpperCase()); I've also tried making the second param a function that returns uppercase, but replace() doesn't do the group substitution in this case. Can this be done? -- Beau D. Scott Software Engineer
[flexcoders] Re: Perplexing regex/replace() issue
Yeah, thanks. mea culpa. didn't read the docs on the function version closely enough. --- In flexcoders@yahoogroups.com, Beau Scott beau.sc...@... wrote: Kinda cheated for one line but it works: var s:String = t.toLowerCase().replace(/-([a-z])/g, function():String { return arguments[1].toUpperCase();}); On Mon, Mar 16, 2009 at 11:44 AM, jimmy5804 jimmy5...@... wrote: This seems simple, but I can't figure it out. I have some input I don't control with a lot of properties that look like xx-yyy that I want to camelcase: xxYyy and I'd like to do this with a one-line replace() instead of a longer split/join approach. I've tried several variations of: var s:String = t.replace(/-([a-z])/g, $1.toUpperCase()); I've also tried making the second param a function that returns uppercase, but replace() doesn't do the group substitution in this case. Can this be done? -- Beau D. Scott Software Engineer
[flexcoders] converting a Java object into a chart dataprovider
In the flex documentation, it shows how to easily create a chart with mxml and a static Array: private var expenses:Array = [ {Month:January,Profit:2000,Expenses:1500,Amount:450}, {Month:February,Profit:1000,Expenses:200,Amount:600}, {Month:March,Profit:1500,Expenses:500,Amount:300}, ]; mx:ColumnSeries xField=Month yField=Profit displayName=Profit / mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses / But I am reading my data from the database and want to pass the data via a java object. But I don't know the number of fields at runtime. So how do I assign the xFields and yFields since I won't be able to create a variable named Month or Profit? I'll just have an array of floats or dates or whatever. Here's a start put I have no idea how to plug in the missing pieces or if another route would be preferable. var lineSeries:LineSeries = new LineSeries(); BindingUtils.bindProperty(lineSeries, dataProvider, ser, javaArray); // lineSeries.xField= ??? // lineSeries.yField= ??? The data set is often quite large by the way.
[flexcoders] datefield issue
out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. If I choose 3/31, it saves 3/30.. Is this a timezone issue with Flex? is this easy to fix? When I Alert the value I see Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) So why isnt it staying on March 31st? Thanks!
[flexcoders] Re: datefield issue
I feel like I hacked it but I added a .sethours(12,0,0,0) at the top of the code before it saves dispatches the event.. Is there a less hacky-feeling fix for this? this works fine but leaves a bad taste in my mouth On Mon, Mar 16, 2009 at 2:51 PM, Greg Morphis gmorp...@gmail.com wrote: out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. If I choose 3/31, it saves 3/30.. Is this a timezone issue with Flex? is this easy to fix? When I Alert the value I see Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) So why isnt it staying on March 31st? Thanks!
Re: [flexcoders] Re: datefield issue
Months are 0-based in ecmascript (JS, AS, etc.) Date objects. 0 = jan., 1 = feb., etc. http://livedocs.adobe.com/flex/3/langref/Date.html#month Use a date formatter if you need to format this to a string and don't want to manually convert the month offset. (probably a good idea to use the date formatter anyway when you're dealing with locales.) On Mon, Mar 16, 2009 at 2:01 PM, Greg Morphis gmorp...@gmail.com wrote: I feel like I hacked it but I added a .sethours(12,0,0,0) at the top of the code before it saves dispatches the event.. Is there a less hacky-feeling fix for this? this works fine but leaves a bad taste in my mouth On Mon, Mar 16, 2009 at 2:51 PM, Greg Morphis gmorp...@gmail.comgmorphis%40gmail.com wrote: out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. If I choose 3/31, it saves 3/30.. Is this a timezone issue with Flex? is this easy to fix? When I Alert the value I see Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) So why isnt it staying on March 31st? Thanks! -- Beau D. Scott Software Engineer
Re: [flexcoders] Re: datefield issue
wait, my bad, I misread. disregard my previous remark. On Mon, Mar 16, 2009 at 2:26 PM, Beau Scott beau.sc...@gmail.com wrote: Months are 0-based in ecmascript (JS, AS, etc.) Date objects. 0 = jan., 1 = feb., etc. http://livedocs.adobe.com/flex/3/langref/Date.html#month Use a date formatter if you need to format this to a string and don't want to manually convert the month offset. (probably a good idea to use the date formatter anyway when you're dealing with locales.) On Mon, Mar 16, 2009 at 2:01 PM, Greg Morphis gmorp...@gmail.com wrote: I feel like I hacked it but I added a .sethours(12,0,0,0) at the top of the code before it saves dispatches the event.. Is there a less hacky-feeling fix for this? this works fine but leaves a bad taste in my mouth On Mon, Mar 16, 2009 at 2:51 PM, Greg Morphis gmorp...@gmail.comgmorphis%40gmail.com wrote: out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. If I choose 3/31, it saves 3/30.. Is this a timezone issue with Flex? is this easy to fix? When I Alert the value I see Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) So why isnt it staying on March 31st? Thanks! -- Beau D. Scott Software Engineer -- Beau D. Scott Software Engineer
Re: [flexcoders] datefield issue
Something to do with tour timezone (GMT -0500)? 5 hours before 00:00 31st its actually the 30th On Mon, Mar 16, 2009 at 9:51 PM, Greg Morphis gmorp...@gmail.com wrote: out of the pan and into the fire I have a datefield and I choose for example April 1, the date saves as 3/31. If I choose 3/31, it saves 3/30.. Is this a timezone issue with Flex? is this easy to fix? When I Alert the value I see Tue Mar 31 00:00:00 GMT -0500 2009 (when I choose March 31st) So why isnt it staying on March 31st? Thanks! -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] null parent for ChartLabel
I extended ChartLabel, overrode updateDisplayList() to do what you suggested, Tom, and set the titleRenderer on the AxisRenderer, and that seems to work around the issue. I still could be doing something wrong, but this looks like a framework issue. I'll check the latest sdk version and file a ticket if necessary. Thanks, -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Maciek Sakrejda msakre...@truviso.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 09:42:37 -0700 That's the thing: nothing especially complicated going on. We have custom axes and custom labelFunctions, but we're using the stock AxisRenderer. We re-parent the Chart during this layout change, but that's it (we certainly don't re-parent the labels manually). Perhaps I'll try to see if I can get a simple re-parenting test case to repro this, and I'll file a bug with that. Thanks, Maciek -Original Message- From: Tom Chiverton tom.chiver...@halliwells.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] null parent for ChartLabel Date: Mon, 16 Mar 2009 13:00:27 + On Friday 13 Mar 2009, Maciek Sakrejda wrote: which, combined with the error, seems to imply that this ChartLabel has no parent (!), Chart labels are cached, much like item renderers. why this could be happening (I can't nail down a simple set of steps to this)? Any thoughts for workarounds? What are you doing to the data provider of the chart ? Do you have a customer chartlabel renderer or function ? You could also try changing the code to be: if(parent is AxisRenderer parent.rotation == 90) If the latter works, please file a bug with the patch in.
Re: [flexcoders] Question about binding and circular reference
Sorry for resurecting an old thread. I've reciently given up on this. I've gone back to using event listeners. It seems more reliable. The problem as I see it is that the binding events happen for any old reason. The change events only seem to be triggered on user interaction which is much better IMHO. Regards, Wesley Acheson On Wed, Mar 11, 2009 at 3:42 PM, Yves Riel r...@cae.com wrote: The problem you are experiencing is caused by the fact that when the player executes the line [ mf.foo = bar ], your text input is not even created in your form yet. So, the foo-myText binding does nothing and when the text input is finally created, the myText-foo binding executes and thus overwrite what was in foo. If you want to avoid this, you need to do: protected var mf:MyForm = new MyForm(); mf.addEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); addChild(mf); protected function formCreatedHandler(event:FlexEvent):void { mf.removeEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); mf.foo = bar; } -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *enriirne *Sent:* Wednesday, March 11, 2009 8:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Question about binding and circular reference Say I have this: // MyForm.mxml [Bindable] public var foo:String; mx:Bindable source=foo destination=myText.text/ mx:Bindable source=myText.text destination=foo/ mx:TextInput id=myText/ Is there an elegant way to avoid that foo is cleared upon creation of MyForm? Indeed, if I do this in the main app: var mf:MyForm = new MyForm(); mf.foo = bar; addChild(mf); then myText is empty, probably because it's empty content is first assigned to foo due to the second binding. The real problem I'm trying to solve is to use the same value object to show data to the user and to receive his/her changes. Of course it works if I use two vos: say voIn and voOut, binding them accordingly. Any ideas? Enri
[flexcoders] Wrap label on Y Axis of graph
I have a bar chart with big descriptions on the Y Axis. I want to be able to wrap the text. I've tried adding br/ to the data but that just cuts off the label on the y-axis (but it wraps it in the tool tip). Any ideas? :)
[flexcoders] Re: Question, I am having problems with my encrypted local store - Solved
I was using a setter in an encrypted local store from a rectangle object, I store a generic object... I guess it couldn't write fast enough or something? but generic objects work fine. -- --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: ok, it looks like some byte madness is going on, why would my ints stored as a byteArray come back multiplied by 256? If I use floats they come back in exponential notation? ha! Any suggestions? By the way, aren't rectangle's primitive objects or not,i am storing the virtualbounds into a userVO with a getter/setter, because saving a rectangle as an object with writeObject returns null? Any ideas?? Thanks, Patrick --- In flexcoders@yahoogroups.com, djhatrick djhatrick@ wrote: I am saving some info, and when i save the int goes in correctly, but when I readInt() it comes out a lot bigger, I can't find the relationship Here's what i am dealing with: ##VirtualBounds (x=0, y=0, w=3200, h=1200) READING this.virtualBounds 0 0 819200 307200 It's really confusing, what's funny, is that I have had no problems in the past. Any help, please. Thanks, Patrick
[flexcoders] Re: Debugger can't find framework source
The framework RSL does not contain debug information so you can't debug it. The debug infomation is removed from RSLs to make them smaller and download faster. -Darrell --- In flexcoders@yahoogroups.com, reflexactions reflexacti...@... wrote: I noticed that after I switch my app to use framework RSL's the debugger always shows the framework as no source. I have checked that in the library path the source attachment property is set and is valid. All I need do is switch between framework linkage merged in code and RSL for it to show/not show source code in the debugger. This is running FB standalone. Does anyone know how to get it to find the source code when using the framework as an RSL?
[flexcoders] XML Entity won't parse inside MXML
I have some embbeded XML inside an MXML file that I'm feeding to an outline. Some of my attributes need to have a quote character. It looks something like this mx:XMLList id=testXml sample badattribute=quot;ABCquot; test name=1/ test name=2/ /sample mx:XMLList This refuses to compile. I even ran a test where I omitted, the badattribute from the xml and then in the code I did something like this, testx...@test = 'ABC'; trace(textXml.toXMLString()) and it printed it out correctly using quot; as the quote character. Does anyone have a clue as to what's going on? Thanks, Mark
[flexcoders] JVM segfault (!) running mxmlc on OS X
A co-worker of mine recently ran into a JVM segmentation fault (!) when running mxmlc on our project. This happens for both Java 1.5 and 1.6. I have not seen anything relevant in JIRA about OS X segfaults. Any ideas? His segfault information follows. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com Model: MacBook4,1, BootROM MB41.00C1.B00, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB Graphics: kHW_IntelGMA965Item, GMA X3100, spdisplays_builtin, 144 MB java... $ java -version java version 1.5.0_16 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) the diagnostic message... Process: java [55236] Path:/usr/bin/java Identifier: java Version: ??? (???) Code Type: X86-64 (Native) Parent Process: bash [51581] Date/Time: 2009-03-16 16:53:18.806 -0700 OS Version: Mac OS X 10.5.6 (9G55) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: 0x000d, 0x Crashed Thread: 0 Thread 0 Crashed: 0 ??? 0x000151c1 0 + 4294988225 1 ??? 0x0001676f 0 + 4294993775 2 ??? 0x00016a1c 0 + 4294994460 3 ??? 0x0001504d 0 + 4294987853 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0041 rbx: 0x7fff5fbfedd0 rcx: 0x rdx: 0x0014 rdi: 0x00018708 rsi: 0x552f3d726964706d rbp: 0x7fff5fbfeb10 rsp: 0x7fff5fbfeb10 r8: 0x901c45f2 r9: 0x r10: 0x r11: 0x r12: 0x0014 r13: 0x00018708 r14: 0x0015 r15: 0x rip: 0x000151c1 rfl: 0x00010293 cr2: 0x00018708 Binary Images: 0x7fff5fc0 - 0x7fff5fc2e643 dyld 97.1 (???) b40847f1ce1ba2ed13837aeccbf19284 /usr/lib/dyld
[flexcoders] Where can I get more examples using the Flex 3 reference language
Flex 3 reference language offers only 1 example for each different classes. For instance, I will get an example for the class buttonbut won't get any examples at all regarding the methods or events for this button class. Where can I get more examples? I am a newbie so of course I want to experiment as much as I can to learn the material. Thanks again for your time. Fred.
[flexcoders] Smallest filesize of a swf in Flex 3 is larger then Flex 2?
Hi Flexcoders, It is always claimed that by caching framework.swz of Flex 3, the swf size is always the smaller. However. from the generated linked-report. in Flex 3, some classes like RSLloader and some ResourceBundle classes are being added, which actually increase the swf size. Since my application is making up of first loading a shared library, and then upon runtime, it loaded other very small modules. These modules are making up of very small file size (a few k byte), the overhead added by these Flex3 loaders and bundles has largly increase the TOTAL application size by a huge amount (cause there are hundreds of this kind of small modules when summing up the little increase of this overhead, it becomes M byte). The start up time is down a bit (loading the smaller library and smaller init app), but the overall brandwidth consumpt much more now. So is there any way to trim off those overhead? Or I need to compile those smaller modules by a Flex 2 compiler? Anyone have any idea? Dan
Re: [flexcoders] XML Entity won't parse inside MXML
The (xml source code) - XML|XMLList stage in MXMLC isn't so good. Often I need to embed XML as Binary objects, and go via String to parse it. That's not much useful information though, so the answer to your problem is: mx:XMLList id=testXml sample badattribute={ABC} test name=1/ test name=2/ /sample mx:XMLList Note that despite the similar syntax I don't think these expressions are updated when input changes the same way bindings are. They *might* be when you're using .MXML, but the same syntax can be used to mix XML literals and ActionScript expressions in .as files. -Josh 2009/3/17 markdemich d...@intellipro.com I have some embbeded XML inside an MXML file that I'm feeding to an outline. Some of my attributes need to have a quote character. It looks something like this mx:XMLList id=testXml sample badattribute=quot;ABCquot; test name=1/ test name=2/ /sample mx:XMLList This refuses to compile. I even ran a test where I omitted, the badattribute from the xml and then in the code I did something like this, testx...@test = 'ABC'; trace(textXml.toXMLString()) and it printed it out correctly using quot; as the quote character. Does anyone have a clue as to what's going on? Thanks, Mark -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: [flexcoders] XML Entity won't parse inside MXML
Also note that the curly braces go *outside* the quotes - if you were putting the number 7 in your attribute, it would be element attr={7}/ If you do this: element attr={7}/ Then your attribute will have the value of {7} instead of 7. -Josh 2009/3/17 Josh McDonald j...@joshmcdonald.info The (xml source code) - XML|XMLList stage in MXMLC isn't so good. Often I need to embed XML as Binary objects, and go via String to parse it. That's not much useful information though, so the answer to your problem is: mx:XMLList id=testXml sample badattribute={ABC} test name=1/ test name=2/ /sample mx:XMLList Note that despite the similar syntax I don't think these expressions are updated when input changes the same way bindings are. They *might* be when you're using .MXML, but the same syntax can be used to mix XML literals and ActionScript expressions in .as files. -Josh 2009/3/17 markdemich d...@intellipro.com I have some embbeded XML inside an MXML file that I'm feeding to an outline. Some of my attributes need to have a quote character. It looks something like this mx:XMLList id=testXml sample badattribute=quot;ABCquot; test name=1/ test name=2/ /sample mx:XMLList This refuses to compile. I even ran a test where I omitted, the badattribute from the xml and then in the code I did something like this, testx...@test = 'ABC'; trace(textXml.toXMLString()) and it printed it out correctly using quot; as the quote character. Does anyone have a clue as to what's going on? Thanks, Mark -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: [flexcoders] Question about binding and circular reference
I'm good with bindings, what's your specific problem? I didn't see earlier any posts from you in this thread. -Josh 2009/3/17 Wesley Acheson wesley.ache...@gmail.com Sorry for resurecting an old thread. I've reciently given up on this. I've gone back to using event listeners. It seems more reliable. The problem as I see it is that the binding events happen for any old reason. The change events only seem to be triggered on user interaction which is much better IMHO. Regards, Wesley Acheson On Wed, Mar 11, 2009 at 3:42 PM, Yves Riel r...@cae.com wrote: The problem you are experiencing is caused by the fact that when the player executes the line [ mf.foo = bar ], your text input is not even created in your form yet. So, the foo-myText binding does nothing and when the text input is finally created, the myText-foo binding executes and thus overwrite what was in foo. If you want to avoid this, you need to do: protected var mf:MyForm = new MyForm(); mf.addEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); addChild(mf); protected function formCreatedHandler(event:FlexEvent):void { mf.removeEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler); mf.foo = bar; } -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *enriirne *Sent:* Wednesday, March 11, 2009 8:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Question about binding and circular reference Say I have this: // MyForm.mxml [Bindable] public var foo:String; mx:Bindable source=foo destination=myText.text/ mx:Bindable source=myText.text destination=foo/ mx:TextInput id=myText/ Is there an elegant way to avoid that foo is cleared upon creation of MyForm? Indeed, if I do this in the main app: var mf:MyForm = new MyForm(); mf.foo = bar; addChild(mf); then myText is empty, probably because it's empty content is first assigned to foo due to the second binding. The real problem I'm trying to solve is to use the same value object to show data to the user and to receive his/her changes. Of course it works if I use two vos: say voIn and voOut, binding them accordingly. Any ideas? Enri -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: [flexcoders] To Adobe Folks - General Question About Using Deprecated Tags
I can't speak for Adobe, but as a *general* rule (ignoring the JDK), deprecated means it's not going away in a point-release, but it's going away So you souldn't count on it in 4, but you're probably fine for updates of 3. But either way, there's nothing forcing you to upgrade your app to a new SDK version anyway. Again, I don't speak for Adobe :) Also, if you need the deprecated API to get around a valid bug in the SDK, make sure to make a note of it in Jira so the Adobe guys can keep it in mind. -Josh 2009/3/17 EddieBerman eddieberman2...@hotmail.com I posted a related question here a few days back (ColumnCharts - problem adding a LineSeries to ColumnChart w/o SecondSeries), but this question is a bit more general. In order get past this bug - https://bugs.adobe.com/jira/browse/FLEXDMV-1957, I'm likely going to need to use the deprecated SecondSeries tag. My question is how safe is using this, or any of the other deprecated tags, methods, etc. I read what I could find in the docs, but what I saw seemed more focused on layout style differences. Is there an expectation that support could be dropped in future versions, or are these warnings simply there to point us to the newer, improved-upon replacements. Thanks, Eddie B. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
Re: [flexcoders] Re: FocusManager fun... Tab Loops redux
Sounds like a good time to break out your SDK sandbox :) 2009/3/16 Rick Winscot rick.wins...@zyche.com Even the PopUpManager suffers to a degree. As modules are loaded there seems to be some confusion as to which FocusManager they belong... as you press TAB focus will jump from one module to another as if they were connected. You can get around this by forcibly triggering activate/deactivate operations on the modules FocusManager --- as stated in the comments in FocusManager.as: “The SystemManager activates and deactivates a FocusManager if more than one IFocusManagerContainer is visible at the same time. If the mouse is clicked in an IFocusManagerContainer with a deactivated FocusManager, the SystemManager will call the activate() method on that FocusManager. The FocusManager that was activated will have its deactivate() method called prior to the activation of another FocusManager.” I’ll attach a sample project to the issue for clarity. Rick Winscot On 3/14/09 1:42 PM, aceoohay pa...@compuace.com wrote: Yes, Alex has been very generous with his time offline, and I will be trying his popup approach. However I believe the popup solution is a hack in the perjorative sense. I believe that the flex language should allow at a minimum the ability to define a separate tab loop for each module. Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: Paul and I have discussed off line. He's got a bunch of module panels that we wants to overlap and drag around the screen and have tabbing stay within which ever panel was clicked in and moved on top of the others. Flex has all of this built-in. Once he gets his modules popped up, he should be all set. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com ] On Behalf Of jim.abbott45 Sent: Friday, March 13, 2009 3:21 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux Feeling less than ecstatic? Then please VOTE for fixing of bug #16897. See: https://bugs.adobe.com/jira/browse/SDK-16897 --Jim --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com , aceoohay pauls@ wrote: Alex: Neither of these options are practical in the real world (at least my world) since we have over 135 modules currently, and up to 10 can be loaded at any one time. We cannot have the cursor willy nilly hopping from module to module going to panels that are partially obscured by other panels, etc. Does the mx.managers.FocusManager allow the ability to establish multiple tab loops within a single application? If so, how can this be used to define a tab loop for a single container? If not, is there anything that will allow defining a tab loop for a container?! With multiple tab loops available on the stage at one time. The user can use the mouse to jump from module to module. Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Setting tabEnabled on anything you don't want to have focus is one answer. So is non-modal popups. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com [ mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com ] On Behalf Of aceoohay Sent: Wednesday, March 11, 2009 8:00 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux Alex: Let me restate my primary question; ! gt; ...has anyone else tried to create a flex component with ! a separa te tab loop, if so how did you make it work? Since the documentation seems to indicate that FocusManager will allow multiple tab loops that was the approach I was investigating. My primary goal, irrespective of how I do it is to create what I call a tab domain. Whatever it is called, what I need is the ability to define a captive group of objects from which focus will never leave by pressing the tab key. Paul -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info -
Re: [flexcoders] converting a Java object into a chart dataprovider
What kind of objects are in your array? -Josh 2009/3/17 netdeep deep...@chartertn.net In the flex documentation, it shows how to easily create a chart with mxml and a static Array: private var expenses:Array = [ {Month:January,Profit:2000,Expenses:1500,Amount:450}, {Month:February,Profit:1000,Expenses:200,Amount:600}, {Month:March,Profit:1500,Expenses:500,Amount:300}, ]; mx:ColumnSeries xField=Month yField=Profit displayName=Profit / mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses / But I am reading my data from the database and want to pass the data via a java object. But I don't know the number of fields at runtime. So how do I assign the xFields and yFields since I won't be able to create a variable named Month or Profit? I'll just have an array of floats or dates or whatever. Here's a start put I have no idea how to plug in the missing pieces or if another route would be preferable. var lineSeries:LineSeries = new LineSeries(); BindingUtils.bindProperty(lineSeries, dataProvider, ser, javaArray); // lineSeries.xField= ??? // lineSeries.yField= ??? The data set is often quite large by the way. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: Debugger can't find framework source
Thanks, That makes sense, though it would be nice if in a future version of Flex adobe could provide debugging RSL's as an option, as sometimes it is useful to be able to step through into adobe code. With our main application it is no longer really practical to change back to merged without a lot of other changes as well as going back to 30 min compiles. --- In flexcoders@yahoogroups.com, Darrell Loverin darrell_love...@... wrote: The framework RSL does not contain debug information so you can't debug it. The debug infomation is removed from RSLs to make them smaller and download faster. -Darrell --- In flexcoders@yahoogroups.com, reflexactions reflexactions@ wrote: I noticed that after I switch my app to use framework RSL's the debugger always shows the framework as no source. I have checked that in the library path the source attachment property is set and is valid. All I need do is switch between framework linkage merged in code and RSL for it to show/not show source code in the debugger. This is running FB standalone. Does anyone know how to get it to find the source code when using the framework as an RSL?
Re: [flexcoders] Flex charting
Hi, Please find the code below. ?xml version=1.0? !-- charts/BasicColumn.mxml -- mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, loss:200, Expenses:1500}, {Month:Feb, Profit:1000, loss:200, Expenses:200}, {Month:Mar, Profit:1500, loss:200, Expenses:500} ]); ]]/mx:Script mx:Panel title=Column Chart mx:ColumnChart id=myChart dataProvider={expenses} type=100% mx:horizontalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month / /mx:horizontalAxis mx:series mx:ColumnSeries xField=Month yField=Profit displayName=Profit/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ mx:ColumnSeries xField=Month yField=loss displayName=Loss/ mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses/ /mx:series /mx:ColumnChart mx:Legend dataProvider={myChart}/ /mx:Panel /mx:Application Thanks in Advance, Poornima From: duraibalaji duraibal...@yahoo.com To: flexcoders@yahoogroups.com Sent: Monday, March 16, 2009 8:00:52 PM Subject: Re: [flexcoders] Flex charting Hi Poorni, Can you post the code, let me try to modify the same and send it to you. Regards DB kotha poornima wrote: Hi All, I have one arraycollection like this: public var expenses:ArrayColle ction = new ArrayCollection( [ {Month:Jan , Profit:2000, loss:200, Expenses:1500} , {Month:Feb , Profit:1000, loss:200, Expenses:200} , {Month:Mar , Profit:1500, loss:200, Expenses:500} ]); With this iam drawing a column chart. so i added two column series one for profit and one for expenses. So i got output like for the first key two lines came orange and green one for profit and one for expenses. But i want to combine these two lines so i put type=100% With this iam getting green and orange in the same line with values adjusted to 100%. Up to this its working fine. But now i want another series for the same key with loss and expenses. However if i add these two series to the chart iam still getting one line with 4 colors. But i want profit and expenses with type=100% in one line and loss and expenses in one line with type=100% for one key.(Shown in the attachment type1.bmp) . Please help me guys!!! Thanks in Advance, Poornima -- View this message in context: http://www.nabble. com/Flex- charting- tp22534734p22539 460.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] Support for Regional Languages in Flex?
All text in Flex uses Unicode, because the String class in ActionScript uses Unicode. Right-to-left languages currently don't work well, but I'm not aware of problems with Indic languages (although that doesn't mean there aren't any). If your Indic text lives in MXML, AS, or XML files, I recommend using UTF-8 encoding. You'll need to use a font that has glyphs for the languages you care about. I'm not sure whether Flex's default font, Verdana, has Indic glyphs. If you need to localize your application's user interface into various languages, you should use the ResourceManager. If anyone has already made Flex apps using Indic languages, please speak up with any problems you found. There may be gotchas I don't know about. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of akila_ksri Sent: Monday, March 16, 2009 12:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Support for Regional Languages in Flex? Hi, I need my flex application to display text in regional languages like tamil,kannada,etc How do i exactly proceed on this? Any help would be greatly appreciated. Thanks, Akila