[flexcoders] Re: How to detect DoubleClick in Button?

2007-12-06 Thread lampei
I don't think there's an actual event that will do it, but you could write your own. Something like: When the mousedown event fires, set a variable with a date. When the user clicks again make sure a minimum amount of time has passed (and also make sure it's less than a certain max time you deter

[flexcoders] Dynamically generating properties for an object

2008-02-27 Thread lampei
My company currently has CFMX7 and we have our objects aliased in ActionScript and ColdFusion. I had recently been trying to return the objects back to ActionScript using the __type__ method, but did not realize that this was a CF8 feature at first. I have incorporated this method into our VOs an

[flexcoders] Re: Comparing numbers with a tolerance

2008-07-14 Thread lampei
You could always use the NumberFormatter class and use the precision property: var numberFormatter:NumberFormatter = new NumberFormatter; numberFormatter.precision = 2; var myNum:Number = Number( numberFormatter.format( myOldNum ) ); This will give you the old number formatted to 2 decimal places

[flexcoders] Re: alert button order

2008-07-24 Thread lampei
I guess you could use the PopUpManager class to create your own alert style box. You could then mimic all of the Alert functionality, but have your own Alert box that could do whatever you want to with it. You could even add an OK/Yes button if you wanted :) --- In flexcoders@yahoogroups.com, jo

[flexcoders] PropertyChangeEvent problems in ArrayCollection

2008-07-25 Thread lampei
I am trying to keep track of changes to an ArrayCollection. I have so far got all of the CollectionEventKind working except for UPDATE. It actually does add that a change was made for UPDATE, however, it doesn't actually save what the change was that was made. e.g. CollectionChange fires, and I

[flexcoders] Re: PropertyChangeEvent problems in ArrayCollection

2008-07-25 Thread lampei
ot;Alex Harui" <[EMAIL PROTECTED]> wrote: > > What is the property that is changing? I think you may need to have > your own code generate the proper change event. > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMA

[flexcoders] Re: PropertyChangeEvent problems in ArrayCollection

2008-07-26 Thread lampei
n subclass a DG > so it will, but if you know in production mode you'll be working with > server objects, they are more likely to provide more information > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED

[flexcoders] Re: Loading Large Data Set into Client "A script has executed..15 seconds" Error

2008-03-11 Thread lampei
Is the error in the actual loading of the data on the client side or in waiting for the return from your server? Could you post some of your code? --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > On the Application object, you can set scriptTimeLimit. The maximum

[flexcoders] Flex SDK

2009-03-31 Thread lampei
I'm trying to setup the Flex SDK locally (the bugquash event over the weekend inspired me) and have got everything installed except I'm getting 2 errors after I import all of the sample projects: 1012: The static attribute may be used only on definitions inside a class. airframework/airfra

[flexcoders] Re: check for daylight savings time

2009-04-13 Thread lampei
My FlexDateUtils library has a class in it to check for DST http://code.google.com/p/flexdateutils/ --- In flexcoders@yahoogroups.com, Dennis Falling wrote: > > I'm trying to print the time zone for a date, and need to know the daylight > savings time. Is there a way to get this in flex? > Than

[flexcoders] No typed objects being returned

2009-04-24 Thread lampei
Anyone have any idea why my typed objects are coming back as ObjectProxy ? For one project I have set up, my objects were being returned correctly. I then called the same service from another project and it comes back as ObjectProxy. I have my aliases set up correctly in CF and in Flex, I chec

[flexcoders] Re: No typed objects being returned

2009-04-24 Thread lampei
but 4 out of 5 does not make sense, especially when the data *is* there in ColdFusion. Any ideas? --- In flexcoders@yahoogroups.com, "lampei" wrote: > > Anyone have any idea why my typed objects are coming back as ObjectProxy ? > > For one project I have set up, my ob

[flexcoders] Re: cfc to VO pesky problem

2009-04-27 Thread lampei
Are you using CF8? That's the only means (other than using Live Cycle or Live Cycle Express) to get the __type__ method to work. --- In flexcoders@yahoogroups.com, hoz wrote: > > > Hey guys, > > Figured it out. On Flex side: > > var public minList:Ministry > minList = event.result as Ministr

[flexcoders] Listening for events fired from ArrayCollections

2009-05-14 Thread lampei
The problem: I currently have a model that has properties bound to my view (a datagrid populated from an arraycollection, call it myModel.acUsers). The arraycollection is populated from a remote object call. However, if I set listeners on that ArrayCollection, once the remote call returns the

[flexcoders] Re: Listening for events fired from ArrayCollections

2009-05-18 Thread lampei
Anyone have any suggestions? Seems like something everyone uses at some point, so I figured someone would know... --- In flexcoders@yahoogroups.com, "lampei" wrote: > > The problem: > I currently have a model that has properties bound to my view (a datagrid > populated f

[flexcoders] Ctrl click in combobox

2009-05-21 Thread lampei
Until recently, I did not know that you could reset the combobox back to the "prompt" value by ctrl-clicking the value in the combobox dropdown. However, as most people don't know that this is a possiblity with the combobox, I'm trying to mimic this functionality by setting the selectedIndex to

[flexcoders] Re: Ctrl click in combobox

2009-05-22 Thread lampei
s.com, Manish Jethani wrote: > > On Fri, May 22, 2009 at 5:47 AM, lampei wrote: > > Until recently, I did not know that you could reset the combobox back to > > the "prompt" value by ctrl-clicking the value in the combobox dropdown. > > �However, as most peop

[flexcoders] MenuBar ItemRenderers on Sub-Menus

2009-06-23 Thread lampei
I'm trying to create a custom itemrenderer for the sub menus of an itemrenderer, but am running into some issues...the main one being that I cannot seem to access the sub menus to create them. The docs state: You can define an item renderer for the pop-up submenus of the MenuBar control. Becaus

[flexcoders] Re: MenuBar ItemRenderers on Sub-Menus

2009-06-23 Thread lampei
{ > var menu:Menu = super.getMenuAt( index ); > menu.styleName = "myMenuItemRendererStyleName"; > menu.itemRenderer = new ClassFactory( MyMenuItemRenderer > ); > > return menu; >} > } >

[flexcoders] How to update menubar dataprovider

2008-11-29 Thread lampei
I am trying to update the dataProvider of a MenuBar without resetting the menuBar dataprovider to the original array. e.g. private var menuData:Array = []; private function init():void { menuData.push( { label: "test1", type: "normal" } ); menuData.push( { label: "test2", type: "

[flexcoders] Re: How to update menubar dataprovider

2008-11-29 Thread lampei
ders@yahoogroups.com, "Fotis Chatzinikos" <[EMAIL PROTECTED]> wrote: > > Did you try with a bindable ArrayCollection? This usually dispatches the > correct events for UI components to update automatically. > > [Bindable] > var myData:ArrayCollection = new ArrayCollecti

[flexcoders] Re: How to update menubar dataprovider

2008-11-29 Thread lampei
Change event. > --- In flexcoders@yahoogroups.com, "lampei" wrote: > > > > Cool! That worked. I'm wondering what event is fired for the > > ArrayCollection that made it work...CollectionChange maybe? It'd be > > nice to know "what would work/h

[flexcoders] Cairngorm and ChangeWatcher

2009-01-09 Thread lampei
I have begun tinkering around with various frameworks and thought I would start with Cairngorm. I am refactoring a small application to use Cairngorm, but ran into a snag. All of the examples I found just bound an item in the view to a property of the ModelLocator, and thus automagically updated

[flexcoders] Re: Cairngorm and ChangeWatcher

2009-01-11 Thread lampei
wrote: > > http://weblogs.macromedia.com/auhlmann/archives/2007/02/creating_a_popu.html#more > > This should give you some directions... > > Claudiu > > > > > > From: lampei > To: flexcoders@yahoogroups.com > Sent: Saturday, January

[flexcoders] Locale for jp_JP added to compiler arguments

2009-01-26 Thread lampei
I'm not sure what happened, but ever since I installed (I think anyway) the update for Flex Builder to 3.0.2, in my compiler arguments, I get -locale ja_JP added instead of en_US Anyone know where I can set this to something else (it keeps throwing an error when I initially load the project until

[flexcoders] Re: Locale for jp_JP added to compiler arguments

2009-01-26 Thread lampei
. --- In flexcoders@yahoogroups.com, "lampei" wrote: > > I'm not sure what happened, but ever since I installed (I think > anyway) the update for Flex Builder to 3.0.2, in my compiler > arguments, I get -locale ja_JP added instead of en_US Anyone know > where I ca

[flexcoders] Loader or URLRequest Issues on Mac

2009-02-25 Thread lampei
I wrote an AIR application on my PC that will take images that are dragged 'n' dropped into it, resize them, then upload those images to a server. On my PC, everything worked great so I exported a release build and set it up as a .air application and installed it on my wife's Mac Mini. However, o

[flexcoders] Re: Loader or URLRequest Issues on Mac

2009-02-25 Thread lampei
le:/location of file, I've tried moving the file to the desktop, but neither worked. I read about using the security policies (as that may be causing an issue), but I'm not sure exactly how to get started with that. Any ideas? --- In flexcoders@yahoogroups.com, "lampei" wrote:

[flexcoders] Re: Loader or URLRequest Issues on Mac

2009-02-25 Thread lampei
And pointing directly to a URL (http://...) works correctly also, so it's definitely something weird with the file location, but I'm not sure what. --- In flexcoders@yahoogroups.com, "lampei" wrote: > > OK, I've got an update that may help someone troubles

[flexcoders] Re: Loader or URLRequest Issues on Mac

2009-02-25 Thread lampei
x27;file:/' + url ); ) it works correctly. I'm using the image.source for loading the image ( image.source = url in this example ), but that does not appear to be correct on a mac. Don't know if this is a bug or a 'user-error' :) --- In flexcoders@yahoogroups.com, "l

[flexcoders] Re: Loader or URLRequest Issues on Mac

2009-02-26 Thread lampei
Yeah, I always get annoyed when I'm searching for an answer an then it's just "never mind...figured it out". The answer may make you look foolish (if it's something simple), but someone else will probably be grateful for having a quick solution to their problem. --- In flexcoders@yahoogroups.com,