Re: [flexcoders] Re: Deleting an Object
i do't think the way could remove the instance, if one of UserDataModel 's attribute was referenced by other object. to know the attribute was strong referenced or weak referenced is important. foodyi --- On Thu, 12/3/09, valdhor valdhorli...@embarqmail.com wrote: From: valdhor valdhorli...@embarqmail.com Subject: [flexcoders] Re: Deleting an Object To: flexcoders@yahoogroups.com Date: Thursday, December 3, 2009, 6:05 PM Just set the object instance to null. --- In flexcod...@yahoogro ups.com, Wally Kolcz wko...@... wrote: I have a singleton that stores user data for an application. When the user logs out I want to delete the instance of the singleton (UserDataModel) . Can you just delete the whole Object or do you have to set each attribute (name, username, hospitalID, etc) to null?
Re: [flexcoders] is there different using blazeds in flex and air?
thanks i think the problem was caused by air application sandbox, see logs below : *** Security Sandbox Violation *** Connection to app:/../messagebroker/streamingamf halted - not permitted from app:/datapush.swf app:/../messagebroker/streamingamf *** Security Sandbox Violation *** Connection to app:/../messagebroker/amfpolling halted - not permitted from app:/datapush.swf app:/../messagebroker/amfpolling how to solve sandbox problem in air? foodyi From: p...@vin Uttarwar pravinuttar...@gmail.com To: flexcoders@yahoogroups.com Sent: Saturday, February 7, 2009 9:47:34 PM Subject: Re: [flexcoders] is there different using blazeds in flex and air? Hi , In air you have to specify ChannelSet for RemoteObject, eg: var cs:ChannelSet = new ChannelSet() ; var myChannel:Channel = new AMFChannel(my-amf, http://yourdomain/ messagebroker/ amf); cs.addChannel( myChannel) ; //assign channel set to remoteobject remoteObj.channelSe t = cs; hope this will help you. Regards, Pravin Uttarwar 2009/2/7 Fu Di foo...@rocketmail. com hi all, in air(flex for air), i excepted to send message by blazeds , i failed no error alert the same environment and code using flex to send message succesed is there any different from air and flex in message service?? thanks for ur answers foodyi
[flexcoders] is there different using blazeds in flex and air?
hi all, in air(flex for air), i excepted to send message by blazeds , i failed no error alert the same environment and code using flex to send message succesed is there any different from air and flex in message service?? thanks for ur answers foodyi
Re: [flexcoders] Tons of errors using FlexBuilder on Ubuntu
i used Europa to run flex on ubuntu , it is OK, i guess the problem was caused your eclipse version. i didn't try to setup fb on Ganymede. foodyi From: Tyler Kocheran rfkroc...@gmail.com To: flexcoders@yahoogroups.com Sent: Thursday, December 25, 2008 6:54:28 AM Subject: [flexcoders] Tons of errors using FlexBuilder on Ubuntu Now, before I start, I know that FlexBuilder Linux is in beta still and a lot of stuff isn't working. With that said, I'm experiencing a lot of problems that I don't think other people are experiencing. I'm using Ubuntu as my OS, and Ganymede for my Eclipse version with Flash Player 10 release version. (I can't seem to install Flash 10 Debug Players, does anyone know how to do that on Ubuntu?) When I try to compile my application, it launches fine (when i Run it, not when I Debug it. Debugging doesn't work because I don't have a debug player installed.) However, I'm getting nothing when it runs, just a big blue application that does nothing. I can't visually add anything to the display list, I can't log anything out to Arthropod, I basically can't do anything. When I try to embed my application via SWFObject, that's no working either. I get the alternative content every time. Now here are my questions, I'm going to try and discover the answers ASAP for them, but if you know anything, could you help me out? Does FlexBuilder for Linux need to be installed on a Europa release? Does FlexBuilder for Linux require you to use Flash Player 9 release and debug players? Will using the Flex ant tasks resolve some of the problems I'm having? Any help is much appreciated! Merry Christmas, everyone! http://ubuntuforums .org/showthread. php?p=6432138# post6432138 - TK -- And do this, knowing the time, that now it is high time to awake out of sleep; for now our salvation is nearer than when we first believed.
[flexcoders] datagrid's performance
hi all, Merry Christmas if i write code like following draggableColumns = false ,resizableColumns= false and sortableColumns = false in datagrid, could i get better performance? foodyi
[flexcoders] control itemrenderer by another one
hi all i used numericstepper as itemrenderer in datagrid , when i change the itemrenderer's value i want the next itemrenderer is also changed . thanks for your help foodyi
Re: [flexcoders] control itemrenderer by another one
sorry i didn't express clearly, next is next row. foodyi From: Tracy Spratt tspr...@lariatinc.com To: flexcoders@yahoogroups.com Sent: Wednesday, December 24, 2008 10:05:05 AM Subject: RE: [flexcoders] control itemrenderer by another one “Next” as in the renderer rendering the value in the next *row*? If so, then have the renderer update the “next” item in the dataProvider. Of course, “next” is a slippery concept if you do any sorting or filtering… Tracy From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Fu Di Sent: Tuesday, December 23, 2008 8:28 PM To: flex coders Subject: [flexcoders] control itemrenderer by another one hi all i used numericstepper as itemrenderer in datagrid , when i change the itemrenderer' s value i want the next itemrenderer is also changed . thanks for your help foodyi
[flexcoders] itemrenderer rollover event seems no sensitive
hello everyone i wrote a itemrenderer in datagird which extends DataGridItemRenderer, and i listened MouseEvent.ROLL_OVER and MouseEvent.ROLL_OUT events. but when the mouse rollover the itemrenderer it is not sensitive, may be the mouse just over the itemrenderer's character it will be triggered. thanks foodyi
Re: [flexcoders] itemrenderer rollover event seems no sensitive
thanks alex, it is not caused by gap. is there another way to do this job? i try to listen DataGridColumn,but it is no appropriate events :( may be i need other control to instead. foodyi From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Friday, December 5, 2008 3:40:42 AM Subject: RE: [flexcoders] itemrenderer rollover event seems no sensitive There is a two pixel gap based on paddingTop and paddingBottom. Maybe that’s what you’re seeing? From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Fu Di Sent: Thursday, December 04, 2008 12:31 AM To: flex coders Subject: [flexcoders] itemrenderer rollover event seems no sensitive hello everyone i wrote a itemrenderer in datagird which extends DataGridItemRendere r, and i listened MouseEvent.ROLL_ OVER and MouseEvent.ROLL_ OUT events. but when the mouse rollover the itemrenderer it is not sensitive, may be the mouse just over the itemrenderer' s character it will be triggered. thanks foodyi
Re: [flexcoders] itemrenderer rollover event seems no sensitive
public class CustomerOrderNoRenderer extends DataGridItemRenderer { private var orderToolTip:OrderToolTip; private var parentOrderInfo:ArrayCollection; public function CustomerOrderNoRenderer() { super(); } override public function validateNow():void { super.validateNow(); if (listData) { this.addEventListener(MouseEvent.ROLL_OVER,displayToolTip); this.addEventListener(MouseEvent.ROLL_OUT,removeToolTip); } } } private function displayToolTip(event:MouseEvent):void { orderToolTip = PopUpManager.createPopUp(this,OrderToolTip,true,PopUpManagerChildList.PARENT) as OrderToolTip; //orderToolTip.parentOrderInfo = parentOrderInfo; PopUpManager.centerPopUp(orderToolTip); } private function removeToolTip(event:MouseEvent):void { PopUpManager.removePopUp(orderToolTip); } } thanks foodyi From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, December 5, 2008 11:05:34 AM Subject: RE: [flexcoders] itemrenderer rollover event seems no sensitive Where are you setting the event handlers? Post your code so we can see what might be wrong. Tracy From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of Fu Di Sent: Thursday, December 04, 2008 9:03 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] itemrenderer rollover event seems no sensitive thanks alex, it is not caused by gap. is there another way to do this job? i try to listen DataGridColumn, but it is no appropriate events :( may be i need other control to instead.. foodyi From:Alex Harui [EMAIL PROTECTED] com To: flexcoders@ yahoogroups. com [EMAIL PROTECTED] ups.com Sent: Friday, December 5, 2008 3:40:42 AM Subject: RE: [flexcoders] itemrenderer rollover event seems no sensitive There is a two pixel gap based on paddingTop and paddingBottom. Maybe that’s what you’re seeing? From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Fu Di Sent: Thursday, December 04, 2008 12:31 AM To: flex coders Subject: [flexcoders] itemrenderer rollover event seems no sensitive hello everyone i wrote a itemrenderer in datagird which extends DataGridItemRendere r, and i listened MouseEvent.ROLL_ OVER and MouseEvent.ROLL_ OUT events. but when the mouse rollover the itemrenderer it is not sensitive, may be the mouse just over the itemrenderer' s character it will be triggered. thanks foodyi
[flexcoders] ItemRenderer's style is changed when scrolling DataGrid
hi everyone, i wrote a renderer which extends DataGridItemRenderer in DataGrid some code below: override public function getTextStyles():TextFormat { if (!listData||this.text==) { return super.getTextStyles(); } if(listData.uid != lastUID) { var tf:TextFormat = super.getTextStyles(); if(data is PositionDataBottomInfo) { tf.bold = true; } else { tf.bold = false; } } return tf; } if i don't operate the DataGrid, every row's style is correct. however , when i scroll the DataGrid, the row's style is incorrect. after scrolling some rows turn bold, some turn normal. thinks
Re: [flexcoders] appending to a dataprovider in actionscript
if u want to listen a ArrayCollection when some of its elements are changed. u could write like this: dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,updateHandler); private function updateHandler(event:CollectionEvent):void { } look up CollectionEvent api , u can find out how to do next step. From: netdeep [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 21, 2008 2:41:48 AM Subject: [flexcoders] appending to a dataprovider in actionscript I am still trying to iron out the problems with data binding in actionscript an server push. If I just replace the old array with a new one, it updates ok, but when I append to an array, it doesn't seem to work. I have to do everything in actionscript. I set up the data binding like this. BindingUtils. bindProperty( lineSeries, dataProvider , ser, pointList) ; Here is the way I'm currently trying to append the new data and catch the error, but this does not work. // oldArray is the same as pointlist from the data binding line of code above for (var i:int = 0; inewArray.length; i++) { oldArray.addItem( newArray. getItemAt( i)); } What's more, because the app is fired remotedly from a server process, I can't trace or run it in debug mode to find out why it's failing. Usually, I'll throw in an Alert.show to find out if the data is messed up or a variable is null, but when I do it after running this loop, the Alert just hangs the whole application. Is there anyway to throw an error to a popup box (flash seems to do this from time to time on its own) And one final related question. If I do get the new arrays to work, will the charts labels and range adjust accordingly. In other words, if the original array was from Mon-Wed, if the new data is on Thurs, will the chart auto adjust properly to show the new data?
Re: [flexcoders] Re: dataGrid effciency
thank u, other problem puzzle me, when the dataGrid's data changing and it will refresh itself. if i drag scrollbar to a position,after the dataGrid refresh the scrollbar will go to top of dataGrid. From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, November 19, 2008 2:36:08 PM Subject: [flexcoders] Re: dataGrid effciency Hi, The biggest performance culprits with a DataGrid, or any of the ListBase components, is the itemRenderers and the size of the dataProvider. You can optimize the itemRenderers by using UIComponent; see Alex's blog. And depending on how many items are in the dataProvider, you could see performance issues there as well. If you are performing any calculations you might look at ways to tighten up the code. With a one second refresh, you might be asking too much of the UI. -TH --- In [EMAIL PROTECTED] ups.com, Fu Di [EMAIL PROTECTED] wrote: hi everyone, i used dataGrid to display a list of real time data. when i finished it, i found it is slow. the DataGrid has 13 DataGridColumns, every column almost nest a ItemRenderer. i had to do this to meet the requirements of pattern. the data update every second, and i need to change the components¢ style in some columns following the data. as i know these two aspects will cost large calculation. who konws how to optimize it or other ways to achieve. thanks
[flexcoders] ChangeWatcher watch ArrayCollection
hi every one i used ChangeWatcher to watch an AC, code like this: ChangeWatcher.watch(model, positionInfoProvider, dataListener); positionInfoProvider is the AC. when one element of positionInfoProvider was changed, the ChangeWatcher can't listen it. unless i give AC a new value. i do't want to do this. any idea?? extend problem, i used an AC as DataGrid 's provider , i just want to change a element of the AC to make DataGrid update. how to do it?? thanks
[flexcoders] dataGrid effciency
hi everyone, i used dataGrid to display a list of real time data. when i finished it, i found it is slow. the DataGrid has 13 DataGridColumns, every column almost nest a ItemRenderer. i had to do this to meet the requirements of pattern. the data update every second, and i need to change the components’ style in some columns following the data. as i know these two aspects will cost large calculation. who konws how to optimize it or other ways to achieve. thanks
Re: [flexcoders] TextField
you should check problems tab in flex builder . i run the following code, it is OK. From: tchredeemed [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, November 17, 2008 11:30:05 PM Subject: [flexcoders] TextField How do you add a TextField to the screen? I tried using the same example from the dynamic help, but nothing is appearing... package assets { import flash.display. Sprite; import flash.text.TextFiel d; import flash.text.TextFiel dAutoSize; import flash.text.TextForm at; public class RMText extends Sprite { private var label:TextField; private var labelText:String = Hello world and welcome to the show.; public function RMText() { configureLabel( ); setLabel(labelText) ; } public function setLabel(str: String):void { label.text = str; } private function configureLabel( ):void { label = new TextField(); label.autoSize = TextFieldAutoSize. LEFT; label.background = true; label.border = true; var format:TextFormat = new TextFormat() ; format.align = 'left'; format.font = Verdana; format.color = 0xFF; format.size = 10; format.underline = true; label.defaultTextFo rmat = format; addChild(label) ; } } } - - -- This does not seem to do anything... For some reason when I add this to the screen I cannot see anything, but I am not sure why, as I copied it directly from dynamic help... Any ideas? (UITextField causes the same issue)...
Re: [flexcoders] datagrid select
hi, Kay, when the edit button in the first colomn of datagrid, you could get the row number. althoungth you get the row number,you can't control the row. i suggest you to change a way to achieve. From: Darrin Kay [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, November 14, 2008 9:47:41 PM Subject: [flexcoders] datagrid select I have a datagrid and I want to set a row to be editable when a button at the end of the row is pushed. How do I know which button on which row has been clicked? I have included a pic of the screen, so I when the edit button is pressed I want that whole row to be editable, and then press the button again and turn editable back to false for the row. Darrin Kay Darrin Kay Consulting [EMAIL PROTECTED] ing.com 912.596.5291
Re: [flexcoders] Adding Quantity to Cart
hi, you had already bind cartItem to the DataGrid, why not handle cartItem to achieve. - Original Message From: Sal H. [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, October 16, 2008 10:45:18 PM Subject: [flexcoders] Adding Quantity to Cart I want to be able to increase the quantity if the same item gets added to the cart. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] about cairngorm's ViewHelper
Hi all I am very confused in using cairngorm framework, when data comes back from server to the command's result method i want to notify the view to refresh.(or other actions). in most cases i used data binding, but sometimes i need other ways to notify the view. ViewHelper was not recommended in cairngorm now, i do't know how to do this :( Any help would be greatly appreciated. Thanks