Re: [flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread Alex Harui
OK, I imagine when you’re actually trying to get your app working that its faster to monkey-patch and continue on than do a formal patch. But if you have time, maybe instead of a formal patch, let’s strategize a bit. The main reason these bugs exist is because we don’t have a fool-proof way of

[flexcoders] I am using Flash Builder 4 trial the debug session goes well but I get no ouput

2010-03-23 Thread fred44455
I am trying some simple code in AS3 that works well in Flex 3 but when using that same AS3 code with Flash Builder 4 there is just a blank white page. No output . The session shows no errors. Any idea why? Thanks

Re: [flexcoders] Adding Drag/Drop with selected text within a TextArea

2010-03-23 Thread Oleg Sivokon
var tf:TextField = new TextField(); tf.multiline = true; tf.type = TextFieldType.INPUT; tf.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler); tf.addEventListener(MouseEvent.MOUSE_UP, this.mouseUpHandler); var begin:int; var end:int; function mouseDownHandler(event:Event):void { tf.set

[flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread tntomek
Thanks again :) I'll take your advice and file a formal patch. Just so you know my initial solution was a custom implementation of many of these components via copy paste and modify. Where I finally drew the line was HierarchicalCollectionView/ADG, it was much more risky to duplicate, modify and

[flexcoders] Adding Drag/Drop with selected text within a TextArea

2010-03-23 Thread gareth_arch
Our end user is wanting us to try to build something where they can drag text from the left side (in a TextArea) to TextInput boxes on the right hand side. I've tried some different ways to try to accomplish this: Making the TextArea draggable - This then prevents using the mouse to highlight t

[flexcoders] Services-config file context root

2010-03-23 Thread Warren
On CF8 in the "stock" services-config file context.root is called out as part of the channel definition endpoint. I'm trying to find a good explanation of what this does and how it is set. Especially if it is related to CF Clusters. I'm having some issues with flex remoting because of it. I

Re: [flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread Alex Harui
I was thinking about your problem some more. While it is bad that ADG assumes HD, it seems like it only does that for drag/drop and you should be able to subclass ADG, override dragCompleteHandler and call your own version of addItemsToTarget. Then you wouldn’t need to monkeypatch ADG. On 3/

[flexcoders] Re: TextInput textAlign

2010-03-23 Thread turbo_vb
Just use paddingTop. -TH --- In flexcoders@yahoogroups.com, "chandruflex" wrote: > > I am using Flex 3. Is it possible to align the text in the TextInput control > to be vertically centered? >

[flexcoders] TextInput textAlign

2010-03-23 Thread chandruflex
I am using Flex 3. Is it possible to align the text in the TextInput control to be vertically centered?

Re: [flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread Alex Harui
I think you should prepare and submit a patch for your bug. Personally, it seems odd that you’d want to break the contract of what “sort” means. I think if anything, you’d want to hide the “toArray and reset” flow and coalesce or block events the reset. On 3/23/10 2:10 PM, "tntomek" wrote:

[flexcoders] Loading swf in "child" window?

2010-03-23 Thread newflexer
We need to be able to open a window from our main application, in which we want to load a swf file to perform some configuration for the content in the main application. We also need to be able to pass the information from the child window to the main app. Is this possible? Any pointers? Wha

[flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread tntomek
Hi Alex, Specific issues I've had were mostly in DMV components, GroupingCollection (and GC2), HierarchicalData and ADG all make hard coded "new SomeSdkFlexClass()" with no way to plug in a custom class' that implements the necessary interface. I already made my custom copies of GC since it's b

Re: [flexcoders] Email in TextInput

2010-03-23 Thread Oleg Sivokon
Tom. Well, I'm not implying it may be used. However, Flex framework validator may not be used as well, but it is never mentioned in any comments ;) Most notably it will not allow local network e-mail addresses (that is the addresses, where there is only one domain level - postmas...@localhost for e

[flexcoders] Flex 3 -->4 migration :: Worth it?

2010-03-23 Thread artur
some newbie questions, if not how much work will be involved in migration? 50% of our components are customized. is there a migration tool? also what are the perils of the migration? could we essentially experience a lot more bugs? re: Skinning we also where thinking of skinning the flex 3 app,

Re: [flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread Alex Harui
I’m confused. Whose code makes “new ArrayCollection” assumptions? The area of code you are changing implies that the collection has long since been established, a sort or filter is applied and you want to make some change that does that should not adjust the sort or filtered results. Under wha

Re: [flexcoders] Re: DataGrids with large datasets Tips & Tricks?

2010-03-23 Thread Alex Harui
I don’t have any particular links to recommend. Everything else is standard optimization techniques. Make sure your renderers have as few children as possible and are based on the lowest level class you can find. It is easy to use Canvas, Hbox and Vbox and many of our examples do, but they ar

Re: [flexcoders] Empty Combobox with confirmed data in dataProvider

2010-03-23 Thread Alex Harui
That’s a bug in 3.5. It gets complained about weekly on the various forums. I’m surprised Google didn’t take to the previous threads. There should be 3.6 nightly build available or go to Flex 4. On 3/23/10 9:59 AM, "trefalgar" wrote: I searched the forum and Google unsuccessfully to see

Re: [flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread Alex Harui
The compiler will pick source over library compilation time stamp. Distributing libraries to customers that rely on monkey-patching is somewhat risky. If they turn on the use of RSLs, your monkey-patch may not get used. If they create a shell app that to load the app using your library and th

[flexcoders] Re: Empty Combobox with confirmed data in dataProvider

2010-03-23 Thread valdhor
Arrays don't have event dispatchers so when you change the array no event is dispatched to let the bound variable know about it. Change your array to an array collection... userlist = new ArrayCollection(ArrayUtil.toArray(event.result)); --- In flexcoders@yahoogroups.com, "trefalgar" wrote: >

[flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread tntomek
So looks like the only way to monkey patch when using libraries is just to have copies of all the mx.* monkey patched files in ALL projects. Only be doing this will the compiler be happy and it doesn't consider those files as duplicates. --- In flexcoders@yahoogroups.com, "tntomek" wrote: > > S

[flexcoders] Empty Combobox with confirmed data in dataProvider

2010-03-23 Thread trefalgar
I searched the forum and Google unsuccessfully to see if someone else reported this problem and I came up empty. A while back I posted about questions with AsyncTokens and it was suggested I update my SDK within Flex, I updated to 3.5 from the default Flex SDK version. Since that time, I've had

[flexcoders] Re: Dynamic Shared Object - Is This Possible?

2010-03-23 Thread James
Cheers Tom. Thanks sounds right but I'm unsure how to implement it. Previously I had it working using 2 array collections which I'd defined within the app. I've now commented out these array collections and have instead retrieved them via the last result method of a http request but it doesn't s

Re: [flexcoders] Dynamic Shared Object - Is This Possible?

2010-03-23 Thread Tom Chiverton
On Tuesday 23 Mar 2010, James wrote: > Can anybody tell me if it is indeed possible to have a dynamically > populated array collection stored as a shared object on the user's system > and would anyone be willing to help me out if I post my code so far? You'll have to explicitly handle the case whe

[flexcoders] Dynamic Shared Object - Is This Possible?

2010-03-23 Thread James
What I want in my app is to have 2 tilelists and an array collection of items which will populate the first tilelist and these objects can be dragged between both tilelists. Then the user can click a save button which will save the statuses of both tilelists so the items that are present/not pre

Re: [flexcoders] Updating Flash Client Runtime.

2010-03-23 Thread Tom Chiverton
On Tuesday 23 Mar 2010, Clark Stevenson wrote: > How can i ensure a period where i can alert users to update thier flash > player for future content? The JavaScript SWFObject framework supports a method for doing that, iirc. -- Helping to autoschediastically seize high-yield sticky cross-platfor

Re: [flexcoders] Email in TextInput

2010-03-23 Thread Tom Chiverton
On Tuesday 23 Mar 2010, Oleg Sivokon wrote: > const allowedInDomain:String = ".-0123456789qwertyuiopasdfghjklzxcvbnm"; Right, you absolutely should not be using this in production. http://en.wikipedia.org/wiki/Internationalized_domain_name -- Helping to preemptively participate virtual principl

[flexcoders] Re: DataGrids with large datasets Tips & Tricks?

2010-03-23 Thread fusionpage
Thanks Alex. This is very helpful and exactly in the direction of what I'm seeking to understand. I appreciate it. Have any recommended resources to learn more? Thanks, Don --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > It doesn't matter if you add columns at run-time or not. The

Re: [flexcoders] Flex 4 Release - Anyone else having issues?

2010-03-23 Thread Tim Statler
baseColor was changed to chromeColor in the Flex 4 SDK. Tim On Tue, Mar 23, 2010 at 7:54 AM, Deane Venske wrote: > > > Hi Mark, > > I caught that one (it made 100% sense to me that change) my issue is that > baseColor seems to not be a valid attribute on UI components that have > always had tha

[flexcoders] Updating Flash Client Runtime.

2010-03-23 Thread Clark Stevenson
Hey all, Right now my project supports AS3 flash player 9. I am hoping shortly to purchase FB4 and move onto Flash player 10. How can i ensure a period where i can alert users to update thier flash player for future content? I seen things like this all the time back in Flash 5 days but not so m

Re: [flexcoders] Flex 4 Release - Anyone else having issues?

2010-03-23 Thread mark . jonkman
Unfortunately no. My only thought had been that namespace change which has caught me a few times on older projects made in beta 1 that I've opened recently. I'm assuming you've cleaned all the projects. I tend to do more AS projects versus Flex MXML stuff so I'm not much of a help on that. sor

[flexcoders] Re: Regarding CollapsiblePanel's minimize and restore Events

2010-03-23 Thread valdhor
The problem is that the CollapsiblePanel component from http://hasseg.org/blog/?p=113 does not have minimize or restore events. When I try to put minimize or restore into the mxml, it does not pop up autocomplete details and gives me an error on compile. --- In flexcoders@yahoogroups.com, "bin

Re: [flexcoders] Flex 4 Language Reference

2010-03-23 Thread Jonathan Bezuidenhout
Thanks Andriy, I will try that out. On Tue, Mar 23, 2010 at 7:32 AM, Andriy Panas wrote: > > > Hi Jonathan, > > Have a look at this page: > http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ > > -- > Best regards, > Andriy Panas > > > > > On 23 March 2010 16:25, Jonathan Bezuid

Re: [flexcoders] Flex 4 Release - Anyone else having issues?

2010-03-23 Thread mark . jonkman
Hi Deane do a quick search across all your mxml files and in the namespace declarations, replace any that look like this: xmlns:mx="library://ns.adobe.com/flex/halo" with xmlns:mx="library://ns.adobe.com/flex/mx" The /halo got replaced with /mx sometime around beta 2. Sincerely Mark R

Re: [flexcoders] Flex 4 Language Reference

2010-03-23 Thread Andriy Panas
Hi Jonathan, Have a look at this page: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ -- Best regards, Andriy Panas On 23 March 2010 16:25, Jonathan Bezuidenhout wrote: > > > Hi, > > Does anyone know the new online location for the Flex 4 Language > reference? > > The ol

[flexcoders] Flex 4 Release - Anyone else having issues?

2010-03-23 Thread Deane Venske
Hi guys, Not sure if anyone else is getting similar issues to me. I installed the release version of the trial (after stupidly removing the beta) and I am finding unending issues. Things like "baseColor" not being able to be resolved or 'backgroundAlpha' is only supported by type X with the th

[flexcoders] Flex 4 Language Reference

2010-03-23 Thread Jonathan Bezuidenhout
Hi, Does anyone know the new online location for the Flex 4 Language reference? The old one (http://help.adobe.com/en_US/Flex/4.0/langref/) does not work anymore. Thank you. Jonathan

Re: [flexcoders] Re: extending the eventDispatcher class.

2010-03-23 Thread Oleg Sivokon
Hey, np, we all tried that at some point :D

[flexcoders] Re: extending the eventDispatcher class.

2010-03-23 Thread ouaqa
Thanks a lot Oleg, you just made my day ! and saved me a lot of time. This is a typical example of a situation where you feel very silly when you get the solution. I should've read the manual a bit more seriously. --- In flexcoders@yahoogroups.com, Oleg Sivokon wrote: > > If you dispatch an eve

Re: [flexcoders] extending the eventDispatcher class.

2010-03-23 Thread Oleg Sivokon
If you dispatch an event in constructor, there may not possibly be any handler added to the dispatcher. You have to dispatch an event *after *the object is created and thus the reference to the object may be made. That is in your example you should call myDispatchFunction() from init() *after *you

[flexcoders] extending the eventDispatcher class.

2010-03-23 Thread ouaqa
I'm still pretty new to flex & actionscript coding and sometimes i run on some very frustrating problems. This is one of those. I have an as3, and I want it to dispatch a FlexEvent.creationComplete when instantiation is completed. yet, I can't make it work. I've read a lot of tutorials and my co

RE: [flexcoders] Using Server Stored Images In An Air Application?

2010-03-23 Thread Gary Moorcroft
Thanks a lot Tracy. It may sound silly but I'd never noticed that you can set a url as the source of an image and always thought the image had to be placed in a folder with the application.   That works great Cheers. --- On Mon, 22/3/10, Tracy Spratt wrote: From: Tracy Spratt Subject: RE: [f

[flexcoders] Font Embedding from *.ttc files

2010-03-23 Thread dmjabbo
Hi All, This may be a very quick one for one of you clever folks but it has got me completely stumped. How on earth do you embed a specific typeface from a .ttc file? I have HelveticaNeue.ttc which contains 11 typfaces and I'm embedding using css / @font-face. I can get at the standard typefaces su

[flexcoders] AS3 Polygon union

2010-03-23 Thread Christophe
Hello, I am searching functions in AS3 for doing operations on Polygons (Union, Intersection). Thank you, Christophe,

[flexcoders] Re: How to monkey patch using multiple libraries?

2010-03-23 Thread tntomek
Thanks Alex I'll give the order a shot. I'm not so much introducing a new api as adding a bool to toggle some behavior, be default it will behave like vanilla. The specific issue is to disable sort in ListCollectionView and since ArrayCollection inherits from that and many controls are hard co