[flexcoders] Message destinations in the context of a multi-room chat app

2006-03-28 Thread Tom Bray
I've been trying to understand how to configure destinations in the context of a multi-room chat application where the rooms are dynamically created. Here's the scenario: The application loads a configuration file that specifies what rooms to create. In this case, let's say that list includes

Re: [flexcoders] Message destinations in the context of a multi-room chat app

2006-03-28 Thread Tom Bray
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray Sent: 28 March 2006 20:19 To: flexcoders@yahoogroups.com Subject: [flexcoders] Message destinations in the context of a multi-room chat app I've been trying to understand how to configure destinations

[flexcoders] Does a selector filter messages on the server or the client?

2006-03-29 Thread Tom Bray
From this example in the docs: private function logon() { consumer = new Consumer(); consumer.destination = ChatTopic; consumer.selector = prop1 5; consumer.subscribe(); } Does the prop1 5 evaluation happen on the server or the client? In other words, do

Re: [flexcoders] Message destinations in the context of a multi-room chat app

2006-03-29 Thread Tom Bray
] On Behalf Of Tom Bray Sent: 29 March 2006 00:49 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Message destinations in the context of a multi-room chat app Stefan, it's nice to know I'm not alone over here! Regarding using FMS and FDS together, I'd like to be able to rebuild

Re: [flexcoders] Message destinations in the context of a multi-room chat app

2006-03-31 Thread Tom Bray
support on top of the selector technique. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray Sent: Wednesday, March 29, 2006 11:28 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Message destinations

[flexcoders] Flex 2: having trouble with DataService component

2006-04-03 Thread Tom Bray
I'm trying to build a very simple app based on the Contact Manager sample application. A lot of it is working but when I try to create new items, I'm getting the following error: Error: faultCode:Local.Call.Failed faultString:'Item with id '0' already exists. Error on destination 'Room''

[flexcoders] Re: Flex 2: having trouble with DataService component

2006-04-03 Thread Tom Bray
Answered my own question. In my managed Room class, I set the default value of my id property to -1. Problem solved. Tom On 4/3/06, Tom Bray [EMAIL PROTECTED] wrote: I'm trying to build a very simple app based on the Contact Manager sample application. A lot of it is working but when I try

[flexcoders] Flex 2: popupMenuButton bug

2006-04-04 Thread Tom Bray
Run the code below, click on the arrow for the PopupMenuButton, click on foo in the menu. The menu doesn't disappear, then when you move the mouse, the ComboBox appears in front of the menu. I've seen similar behavior without having to click an item in the menu but I haven't come up with a way

[flexcoders] Flex 2: How to get itemRenderer to ignore mouse events of its children?

2006-04-06 Thread Tom Bray
I have a List with a custom itemRenderer (see code below). I want to be able to capture the mouseOver event of a child of the itemRenderer without triggering the mouseOut event of the itemRenderer itself. The code below causes the itemRenderer to flicker between two states when you mouseOver the

[flexcoders] FDS: implementing push

2006-04-09 Thread Tom Bray
I understand Data Service destinations and how to keep multiple flex clients synched up with the same data as long as the only changes to the data are initiated by the flex clients themselves. What happens when the data that those clients need to consume is modified by a server-side process and

[flexcoders] Flex2B2: Bug? stopImmediatePropagation() in List itemRenderer problem

2006-04-10 Thread Tom Bray
If you run the code below you'll see a list with 4 items. If you roll over an item, the itemRenderer for that row will add a child Label component with the text info. If you roll over the info text, the itemRender will flicker between states because the mouseOver and mouseOut events for the

[flexcoders] Re: Flex2B2: Bug? stopImmediatePropagation() in List itemRenderer problem

2006-04-10 Thread Tom Bray
In other words, if you have a custom itemRenderer that has a state that adds a child, that child will cause a mouseOut event to occur on its parent if you roll over it.-TomOn 4/10/06, Tom Bray [EMAIL PROTECTED] wrote: If you run the code below you'll see a list with 4 items. If you roll over

[flexcoders] Re: Flex2B2: Bug? stopImmediatePropagation() in List itemRenderer problem

2006-04-10 Thread Tom Bray
I discovered the MouseEvent.ROLL_OVER/ROLL_OUT alternatives to MouseEvent.MOUSE_OVER/MOUSE_OUT and solved the problem, but I'd suggest that Adobe add this to an FAQ because I think others will run into the same confusion. -TomOn 4/10/06, Tom Bray [EMAIL PROTECTED] wrote: In other words, if you

[flexcoders] Flex2B2: cannot convert flash.display::SimpleButton to mx.core.IUIComponent

2006-04-11 Thread Tom Bray
What do I need to do to add a SimpleButton to my component without getting the type coercion error above? The code I'm using is taken directly from the docs and it's pasted below. The parent component is an HBox. ... import flash.display.*; private function doInit():void { var

[flexcoders] FDS: Can push be done with the Data Service alone, or is the message service the only way?

2006-04-12 Thread Tom Bray
Basically, I want my Flex clients to subscribe to data destinations and receive updates that are cause by server-side processes. Do I need to use both services? In other words, do a DataService.fill() upon app initialization and then again any time I receive a message from a separate message

Re: [flexcoders] get rid of xml configuration in FDS, use JNDI

2006-04-13 Thread Tom Bray
But you have to restart the server to reload the config files. Dynamic destinations would be better than hard-coded static ones.-TomOn 4/13/06, Kelly @ Dekayd Media Inc. [EMAIL PROTECTED] wrote: Considering how easy it is to manipulate xml files, it is really not that hard to add a step in

Re: [flexcoders] Has anyone successfully put one TabNavigator inside another? (Flex 2)

2006-05-02 Thread Tom Bray
The code below works, but only after I disabled history management for the nested tab navigator. With history management enabled for both, the HistoryManager throws an error.HTH?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute

[flexcoders] FlexSession sample code? Documentation?

2006-05-11 Thread Tom Bray
Any scraps of information about FlexSession you can throw us would be greatly appreciated. Even just a high level overview or hello_world-esque snippet would be nice. Thanks, Tom -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search

Re: [flexcoders] FDS: implementing push

2006-05-12 Thread Tom Bray
@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Bray Sent: Sunday, April 09, 2006 6:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS: implementing push I understand Data Service destinations and how to keep multiple flex clients synched up with the same data

Re: [flexcoders] FDS: implementing push

2006-05-12 Thread Tom Bray
I just found a little documentation, but I'd love to see a sample app. Is there one out there somewhere? http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/js/html/wwhelp.htm?href="">On 5/12/06, Tom Bray [EMAIL PROTECTED] wrote:OK, now that B3 is out, could some

Re: [flexcoders] label htmltext property bug?

2006-05-15 Thread Tom Bray
The line breaks inside your CDATA tags are rendered and the Label is a single-line textfield, so your text is there but its clipped. I wish line breaks would get stripped out by the compiler -- perhaps there's a solution I'm not aware of. -TomOn 5/15/06, judah [EMAIL PROTECTED] wrote: I saw

[flexcoders] No mx.data in Basic flex project. Is there an easy way to convert to FDS project?

2006-05-16 Thread Tom Bray
When creating a Flex Project, if you choose Basic instead of Flex Data Services and later realize you want to use the data service, is there an easy way to convert the project or at least include the mx.data libraries?Thanks,Tom -- Flexcoders Mailing List FAQ:

[flexcoders] Re: No mx.data in Basic flex project. Is there an easy way to convert to FDS project?

2006-05-16 Thread Tom Bray
I just found and added the enterpise.swc (C:\fds2\jrun4\servers\default\flex\WEB-INF\flex\libs\enterprise.swc), and that's probably all I need for now.-TomOn 5/16/06, Tom Bray [EMAIL PROTECTED] wrote: When creating a Flex Project, if you choose Basic instead of Flex Data Services and later

Re: [flexcoders] Little green arrow in builder

2006-05-18 Thread Tom Bray
Is it the same green arrow you see when you go to FileNew menu and look at the MXML Application icon? If so, the file you're talking about is in the list of applications for that project. You can right click on the project, choose properties, and click Flex Applications and see your file in

Re: [flexcoders] Re: question about the Feed class in the dashboard sample

2006-07-12 Thread Tom Bray
ship in flex.war, I believe the MessageBrokerServlet gets preloaded. There may be other ways to do this as well but that's the one I've always used. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Bray Sent: Tuesday, July 11, 2006 5:34 PM

[flexcoders] questions about push and DataServiceTransaction.refreshFill()

2006-07-12 Thread Tom Bray
I have a dataService destination for managing a collection of user objects (a list of people in a chat room). I'm using DataServiceTransaction.refreshFill() to update the list as new user objects are added to the collection on the server-side (after they're authenticated). I have a test app

[flexcoders] Re: questions about push and DataServiceTransaction.refreshFill()

2006-07-12 Thread Tom Bray
Ah, it looks like DataServiceTransaction.updateItem() is what I want. Any tips on the right way to use it? I'm in trial error mode.Thanks,TomOn 7/12/06, Tom Bray [EMAIL PROTECTED] wrote: I have a dataService destination for managing a collection of user objects (a list of people in a chat

[flexcoders] how to disconnect a Flex client from FDS?

2006-07-13 Thread Tom Bray
With Flash Media Server, our clients connect, we see if they're authorized, and if they're not we disconnect their client object. How can I do something similar in FDS?With FMS, we'd make a netConnection, the server would call a method on the client to tell it that it's authorized, then we'd

Re: [flexcoders] So? What are folks here actually building...?

2006-07-20 Thread Tom Bray
We host chat and instant messaging apps for the major social networking sites (wink, wink) and we're porting these apps over to Flex on the client-side and we intend to replace Flashcom with FDS for everything but A/V. We're finding the latter process to be painful but promising. We'd love to

Re: [flexcoders] routeMessageToService and routeMessageToClient

2006-07-21 Thread Tom Bray
I'm in the same boat, looking for the same information. The only help I can provide is regarding selectors: the filtering happens server-side, so only consumers that have subscribed using that selector will receive the message. We still want a way to be able to send a message to a specific

[flexcoders] FDS: Can I disconnect a specific client from the server?

2006-07-21 Thread Tom Bray
I'm coming to FDS from FMS2 where I have the ability to disconnect any client for any reason -- say after a period of inactivity or because an administrator of the chat has banned a user. Can I do this in FDS?Thanks,Tom __._,_.___ -- Flexcoders Mailing List FAQ:

Re: [flexcoders] FDS: Can I disconnect a specific client from the server?

2006-07-22 Thread Tom Bray
() method on Consumer and DataService objects. http://livedocs.macromedia.com/flex/2/langref/mx/messaging/Consumer.html#disconnect() http://livedocs.macromedia.com/flex/2/langref/mx/data/DataService.html#disconnect() -James On Fri, 2006-07-21 at 14:07 -0700, Tom Bray wrote: I'm coming to FDS from

[flexcoders] I need to be able to disconnect a client from FDS on the server-side using the Java API.

2006-07-22 Thread Tom Bray
We do this all the time with our FMS2 apps if a client is inactive for a certain period of time or an administrator wants to ban them. We can't trust the SWF because we've had people hack them.Thanks,Tom __._,_.___ -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Re: I need to be able to disconnect a client from FDS on the server-side using t

2006-07-22 Thread Tom Bray
or looking in the wrong place. Either way, post if you find anything. - Original Message - From: Tom Bray To: flexcoders@yahoogroups.com Sent: Saturday, July 22, 2006 5:32 PM Subject: [flexcoders] I need to be able to disconnect a client from FDS on the server-side using the Java

Re: [flexcoders] Re: I need to be able to disconnect a client from FDS on the server-side using t

2006-07-24 Thread Tom Bray
://www.cynergysystems.comhttp://www.cynergysystems.com/blogs Email:[EMAIL PROTECTED]Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: The most common reason we need to disconnect a client is because theuser has been banned from the chat by an administrator

Re: [flexcoders] FDS: Can I disconnect a specific client from the server?

2006-07-24 Thread Tom Bray
the flex app to disconnect. -James On Sat, 2006-07-22 at 14:28 -0700, Tom Bray wrote: No, I'm talking about disconnecting on the server-side with Java. In other words, getting a reference to the server-side client object using the FDS API and disconnecting it. -Tom On 7/22/06, James Ward

[flexcoders] managing subscriptions with ServiceAdapter.manage()

2006-07-25 Thread Tom Bray
Here are the only docs I've found on this subject: Optionally, a Message Service adapter can manage its own subscriptions. To do this, you override the ServiceAdapter.handlesSubscriptions() method and return true. You also must override the ServiceAdapter.manage() method, which is passed

Re: [flexcoders] routeMessageToService and routeMessageToClient

2006-07-25 Thread Tom Bray
I've made a little bit of progress on this front. As suggested by an Adobe engineer, I created a custom ServiceAdapter that overrides invoke() like so:import flex.messaging.messages.CommandMessage;import flex.messaging.messages.Message ;import flex.messaging.services.MessageService;import

[flexcoders] is it possible to bind to an XML node's children?

2006-07-31 Thread Tom Bray
For example, would it be possible to make the following example work??xml version=1.0?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=init();mx:Script![CDATA[ [Bindable] private var myXML:XML; private function addNode():void { myXML.appendChild ( item label=new item/

[flexcoders] Re: is it possible to bind to an XML node's children?

2006-07-31 Thread Tom Bray
Looks like XMLListCollection does what I need.Thanks anyway!-TomOn 7/31/06, Tom Bray [EMAIL PROTECTED] wrote:For example, would it be possible to make the following example work? ?xml version=1.0?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=init();mx:Script![CDATA

[flexcoders] strange XMLListCollection behavior

2006-08-01 Thread Tom Bray
If you run the code below, expand the folder, select a file, and click add to list repeatedly, items get added to both dataProviders, but I don't understand why the original tree is changing because I'm not adding items to it. Could someone explain what's happening? I'm less interested in

[flexcoders] ContextMenu: is there a way to prevent my component's label from being the mouseTarget?

2006-08-06 Thread Tom Bray
Say you have a custom component called MyBox and it has label inside it. You create lots of nested boxes and you want to be able to right click on each box and have it be the mouseTarget for your contextMenu event. The problem is that if you right click on the label that's inside the box, your

[flexcoders] another XMLListCollection bug

2006-08-07 Thread Tom Bray
If you run the code below, click the button, and expand the asdf node, you'll see an unexpected node caused by mx_internal_uid[some hash code here]/mx_internal_uid that gets added to the xml. Here's the resulting xml: items item label=tom/ item label=asdf item label=efefe/

[flexcoders] garbage mx_internal_uid node appearing when using XMLListCollection.addItem

2006-08-08 Thread Tom Bray
If you run the code below, click the button, and expand the asdf node, you'll see an unexpected node caused by mx_internal_uid[some hash code here]/mx_internal_uid that gets added to the xml. Here's the resulting xml: items item label=tom/ item label=asdf item label=efefe/

Re: [flexcoders] Re: strange XMLListCollection behavior

2006-08-08 Thread Tom Bray
Hi Jim,Yes, I filed a bug. You can work around the bug by making a copy of the item instead of using a reference like so: instead of: listDP.addItem(prodTree.selectedItem); do this: listDP.addItem(prodTree.selectedItem.copy());Don't be surprised if you encounter other unexpected behavior with

Re: [flexcoders] how do I get the type or class of an object in AS3

2006-08-10 Thread Tom Bray
Hey Hank,Check the Other section at this link: http://livedocs.macromedia.com/flex/2/langref/operators.htmlas is a new one too. -TomOn 8/10/06, hank williams [EMAIL PROTECTED] wrote: Thanks Claus. So is is a new keyword. Cant find it in the online docs

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Tom Bray
Here's a response from Gordon to a similar question I had way back:What does your component extend? If you're extending a Container, you can only use addChild() to content children which implement the IUIComponent interface. In order to support the LayoutManager, a content child has to

[flexcoders] Developers needed: Flex 2, Flash, FMS, FDS

2006-08-15 Thread Tom Bray
Hey flexcoders,Userplane Technologies, the chat and IM provider for MySpace and thousands of other communites, was just acquired by AOL and we're looking to expand our team of Flex, Flash, and FMS developers. Check out this press release to see what we're up to: http://tinyurl.com/jgdluWe're

Re: [flexcoders] XMPP AS3 class libraries on Labs

2006-08-17 Thread Tom Bray
I'm not seeing the XMPP libraries you're talking about on labs -- could one of you send me a link? Thanks!-TomOn 8/16/06, João Fernandes [EMAIL PROTECTED] wrote: Hi Danny,I was trying to connect to GTalk since it implements Jabber. I had an error of security

[flexcoders] FlexPrintJob problem: application background colors showing in margins

2006-11-05 Thread Tom Bray
The background color of my application is printing in the margins of the page when I print my component in landscape mode. In portrait mode, there's a tiny sliver of the bg color on each side. Is there a way to prevent that besides using a white background? It seems like a bug since I can't

[flexcoders] Printing without the application background showing up?

2007-01-30 Thread Tom Bray
I've created a custom diagram component that I want to be able to print with a plain white background, but the application background color is being printed as well. Is there a way to get around this? Making the background of the component white doesn't quite do it because I always end up

[flexcoders] List itemRenderer problem with example

2007-02-24 Thread Tom Bray
Here are the steps to see my issue in action: 1. go to http://www.tombray.com/queryBuilder/ 2. click the plus sign twice to create two more list items 3. change the first combobox in the first item to Date and notice that the itemRenderer changes state 4. click the minus sign in the first item

[flexcoders] Safari/Flex/frameset bug: how can I force the application to resize?

2007-03-01 Thread Tom Bray
I unfortunately need to use a frameset with a Flex app in one frame and html in the other. The problem that I've encountered is that in Safari, when you resize the frames, the Flex app doesn't resize. I'm trying to workaround the bug by listening for the frame's onResize event and using

[flexcoders] Announcing SearchCoders/Flex: the fast and easy way to search the FlexCoders archive

2007-03-22 Thread Tom Bray
This group is one of the most valuable resources that anyone learning Flex could have. Unfortunately, there are so many messages per day that it’s difficult to keep up and, until now, there hasn’t been a fast and easy way to search the archives. Today, Robert Cadena and I have launched

[flexcoders] Check out our Apollo screencast

2007-04-02 Thread Tom Bray
Hey everybody, We've just launched a new Apollo app and you can check out the demo here: http://labs.searchcoders.com/dashboard/demo/ Let us know if you have any questions or feedback. Thanks! Tom

[flexcoders] Apollo NativeWindow.alwaysInFront, .orderInBackOf(), etc.

2007-04-06 Thread Tom Bray
Is the z-ordering functionality enabled for NativeWindows? Nothing seems to work, so I'm wondering if it's me or Apollo. Thanks, Tom

[flexcoders]

2007-05-05 Thread Tom Bray
Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height of 612 and no scrollbar. Set a breakpoint in the debug() method below to check the values. ?xml version=1.0

[flexcoders] Shouldn't this VBox have a scrollbar?

2007-05-05 Thread Tom Bray
Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height of 612 and no scrollbar: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

Re: [flexcoders] Re: Shouldn't this VBox have a scrollbar?

2007-05-05 Thread Tom Bray
size, at least for calculating scrollbars is NOT aware of this. I assume this is very similar to using 100% values for width and height. Weird and certain not what i would expect. --Scott --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: Shouldn't the height of the VBox below

Re: [flexcoders] Shouldn't this VBox have a scrollbar?

2007-05-05 Thread Tom Bray
this happen mx:Canvas width=100% height=200 backgroundColor= green/ mx:Canvas width=100% height=200 backgroundColor= green/ - Original Message From: Tom Bray [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, May 5, 2007 5:36:08 PM Subject: [flexcoders] Shouldn't this VBox have

Re: [flexcoders] Re: Shouldn't this VBox have a scrollbar?

2007-05-05 Thread Tom Bray
, here I am. Thanks, Tom On May 5, 2007, at 3:35 PM, simonjpalmer wrote: It will never show a scroll bar while you have verticalScrollPolicy=off in the parent canvas... --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: Hi Jas, I expect the measuredHeight to be 612

Re: [flexcoders] Shouldn't this VBox have a scrollbar?

2007-05-06 Thread Tom Bray
Perfect. Thanks! On May 6, 2007, at 5:08 AM, Manish Jethani wrote: On 5/6/07, Tom Bray [EMAIL PROTECTED] wrote: Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height

[flexcoders] New Apollo screencast: SearchCoders/Dashboard now has chat

2007-05-14 Thread Tom Bray
Hey everybody, We just launched a huge upgrade to the SearchCoders/Dashboard and now you can chat about Flex Apollo (and hopefully get answers in real time). Check out the screencast demo here: http://labs.searchcoders.com/dashboard/demo/ Cheers, Tom

Re: [flexcoders] Re: Is there any way to call super.super.method in AS3?

2007-05-30 Thread Tom Bray
I wanted to do this today and I blogged about the use-case here: http://www.tombray.com/?p=21 -Tom On May 30, 2007, at 6:41 PM, wpding wrote: I guess i have to extend Class C from class A directly. I met this problem, when i tried to extend a component. In my case , The Class C want to

Re: [flexcoders]SWFLoader not sizing loaded swf

2007-09-19 Thread Tom Bray
=[0x67a0cd, 0x204a96] mx:Metadata [ResourceBundle(Chat)] /mx:Metadata mx:Style source=assets.css/ views:Chat/ /mx:Application Thanks for your help, Tom Tom Bray CEO SearchCoders, LLC 11751 Mississippi Ave., Suite 150 Los Angeles, CA

Re: [flexcoders] Re: Flashvars using Application.application

2006-09-05 Thread Tom Bray
You'll need to add FlashVars as an attribute to the embed tag as well like this:embed FlashVars=id=123456...so that it works in non-IE browsers. I bet your code works in IE the way you have it. HTH,TomOn 9/5/06, Kyle [EMAIL PROTECTED] wrote: My html wrapper

Re: [flexcoders] fds/jms messaging. detecting client disconnection.

2006-09-11 Thread Tom Bray
Aldo,Here's some sample code that I used to know when a client disconnected. The FlexSession.sessionDestroyed event corresponds to a disconnection public FlexSessionTest() { FlexSession.addSessionCreatedListener(this); } public void sessionCreated( FlexSession session ) {

Re: [flexcoders] fds/jms messaging. detecting client disconnection.

2006-09-12 Thread Tom Bray
,looks like this might do it...now, where/when exactly are you instantiating this FlexSessionTest object??thanks,Aldo On 9/11/06, Tom Bray [EMAIL PROTECTED] wrote: Aldo,Here's some sample code that I used to know when a client disconnected. The FlexSession.sessionDestroyed event corresponds

Re: [flexcoders] BindUtils.bindSetter()

2006-09-17 Thread Tom Bray
Hey Aaron,Give this a try:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.binding.utils.BindingUtils; [Bindable] public var foo:String = hi; public function init():void {

Re: [flexcoders] Re: Strategies for adworks in Flex2 apps?

2006-09-27 Thread Tom Bray
Hank,If you're willing to work with a different ad vendor, you can check out www.clicksor.com, www.kanoodle.com, and www.admedian.com. All three will cooperate with crossdomain policy files so you can load text ads via XML and display them in Flex however you want.The scraping solution

[flexcoders] weird issue

2006-09-30 Thread Tom Bray
I've written a diagramming component that until recently I had inside a Canvas in my main application like this:mx:Canvas view:Diagram dataProvider={model.lineage}//mx:Canvas I recently wrote a component that I call ZoomCanvas and placed the Diagram inside it like this:view:ZoomCanvas

[flexcoders] Binding bug?

2006-10-01 Thread Tom Bray
If you create the following three files and run the application, you'll see that the instance of TestComp with id of ok will trace out that foobar was set, but the instance of TestComp that's inside another custom component will not get set. This seems like a bug to me. Am I missing something?

[flexcoders] Re: Binding bug?

2006-10-01 Thread Tom Bray
inside a plain old Canvas, the binding executes, but when I'm nesting it inside a component that extends Canvas, it doesn't. Can anyone explain what's going on here? Thanks,TomOn 10/1/06, Tom Bray [EMAIL PROTECTED] wrote: If you create the following three files and run the application, you'll see

Re: [flexcoders] Stats on flash player 9 penetration.

2006-10-01 Thread Tom Bray
I think it might have a lot to do with the fact that MySpace requires Flash 9 for security reasons. See http://www.flickr.com/photos/niallkennedy/194489479/ Just a hunch :)-TomOn 10/1/06, Michael Schmalle [EMAIL PROTECTED] wrote: Could it be that Flex 2 was in

[flexcoders] Flex 2: is there a way to know when a client disconnects?

2006-02-28 Thread Tom Bray
Let's say you have a chat room with a list of users and you want to remove a user from that list when they close their browser window. In FMS2 you'd handle it with Application.onDisconnect( client_obj ). Is there an FES message I can subscribe to and accomplish the same thing? Thanks,Tom

[flexcoders] PopupButton bug

2006-03-01 Thread Tom Bray
I looked around for the proper way to report this but could find it. The code below is from the PopUpButton livedoc, the only change I made is that I commented out the line that changes the label of the PopupButton instance after a menu item is selected. Doing this causes the menu to not

[flexcoders] Flex 2: determine scaled dimensions of Loader content?

2006-03-02 Thread Tom Bray
Say you do this:mx:Loader id=photo source=image.jpg width=200 height=150 scaleContent=true/And the actual dimensions of image.jpg is 50x50. After the loader has loaded the image and scaled it, the loader's contentWidth and contentHeight say 50, but the image has been scaled to fit in the loader

Re: [flexcoders] eval gone in AS3, how to get reference to movieclip via target name?

2006-03-05 Thread Tom Bray
I have a question that's almost related.In AS3, how can I instantiate a class, com.foo.MyClass, using the string com.foo.MyClass? The reason I ask is that I'd like to load an XML file and use it to dynamically create components at runtime. Something like this: components component

Re: [flexcoders] Emoticons in TextArea

2006-05-21 Thread Tom Bray
I'd love to hear from Adobe if they have any plans to support inline images in textfields (FP10?). I know that anybody writing a chat app wants this feature. I'm certainly not looking forward to rewriting my AS1 emoticon rendering code. Hopefully it won't require quite so many workarounds for

Re: [flexcoders] Flex Builder Java dev setup best practice?

2006-05-22 Thread Tom Bray
Here's a link that was really helpful for me:http://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:DebuggingYou'll have to adjust some of the steps because they're for a previous Beta, but you'll figure it out. HTH,TomOn 5/22/06, flexabledev [EMAIL PROTECTED] wrote: I'm wondering if

[flexcoders] Re: FlexBuilder bug: unwanted, incorrect code completion

2006-05-22 Thread Tom Bray
'} ]); But Flexbuilder kept adding + where I didn't want it.-TomOn 5/22/06, Tom Bray [EMAIL PROTECTED] wrote:Check out his snippet:onlineUsersPanel.users = new ArrayCollection( [ {label:'tom'}, {label:'suzy'}, + 'megan','troy']); Notice how there's a double quote, a plus sign

Re: [flexcoders] FlexBuilder bug: unwanted, incorrect code completion

2006-05-22 Thread Tom Bray
Nice! Thanks, Graham.On 5/22/06, Graham Weldon [EMAIL PROTECTED] wrote: Hi Tom, The option is turned off by going to: Window Preferences Flex Editors Actionscript Editor and turn off the Wrap string automatically option. Regards, Graham Weldon w. http://graham.weldon.ath.cx Tom Bray

[flexcoders] F2B3 -- global keyboard event capture, problems with focus

2006-06-05 Thread Tom Bray
I'm trying to capture global keyboard events so I can implement keyboard shortcuts in my app. Let's say it's an email app and as soon as it loads you want to press CTRL+M to show a New Message popup. The docs on handling keyboard events make it sound like this is possible, but the sample code

Re: [flexcoders] F2B3 -- global keyboard event capture, problems with focus

2006-06-05 Thread Tom Bray
setFocus() method. hth, matt horn flex docs From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tom Bray Sent: Monday, June 05, 2006 3:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] F2B3 -- global keyboard event capture, problems

[flexcoders] FP9 crashes Firefox frequently

2006-06-05 Thread Tom Bray
I submitted this, but I thought I'd say it here to find out if I'm the only one with the problem.If you have Firefox 1.5.* and FP9, spend a little time on engadget.com or huffingtonpost.com and their flash-based ads will crash your browser. It happens every 3 or 4 visits for me. I make sure to

Re: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Tom Bray
Try either of these two options: for( var i:int; i arr.length; i++ ) {trace( arr[i] ); } //or for each( var i:int in arr ) {trace( i ); }The for...in loop that you're using is for iterating over the properties of objects, which it expects to evaluate as strings. So, in

Re: [flexcoders] selectedIndices are Strings???

2006-06-08 Thread Tom Bray
ple, "10" came before "2". For that reason, I ended up writing a custom sort function to get around the issue. Thanks again! Jim From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tom Bray Sent: Thursday, June 08, 2006

[flexcoders] questions about overriding updateDisplayList() for VDividedBox

2006-06-08 Thread Tom Bray
My goal is to extend the VDividedBox so that I can minimize/maximize its children (like the Navigator and Outline panes in flexbuilder, for example). I checked out what documentation I could find and I have some questions. Are the dividers layed out in layoutChrome()? If so, when I override

[flexcoders] need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-08 Thread Tom Bray
Say my model has an ArrayCollection of all the users that are connected to my Flex app. I then have configurable list views that display different subsets of that collection based on different user properties (gender, age, location, etc.). Multiple views, multiple filters, all being fed from the

[flexcoders] BindingUtils and ArrayCollection.filter questions

2006-06-09 Thread Tom Bray
If you run the sample code below and click the Update Filter button, both lists get filtered but I only want the one on the right to be filtered. I have two ArrayCollections, one bound to the other via BindingUtils and I didn't expect that filtering the target AC would also filter the source AC.

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tom Bray
could maintain each ArrayCollection (Array of ArrayCollections) in the ModelLocator as well. I hope that this makes sense, Tim Hoff --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: Say my model has an ArrayCollection of all the users that are connected to my Flex app. I

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tom Bray
; [Bindable] public var viewDataProvider : ArrayCollection; viewDataProvider=new ArrayCollection({ModelLocator.getInstance().masterArray}); ]] /mx:Script -TH --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: Thanks, Tim. That makes sense but there's one limitation

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-09 Thread Tom Bray
should be automatically reflected in the AC if you use either of the binding methods I posted. If not, sorry. That's all I have. -TH --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: The problem is that changes to ModelLocator.getInstance ().masterArray don't update the views

Re: [flexcoders] Re: need strategy for filtering ArrayCollections in a Cairngorm app

2006-06-10 Thread Tom Bray
--- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: Thanks for trying. An ArrayCollection will not reflect changes made directly to its source array, so new items pushed onto masterArray do not show up in my views. -Tom On 6/9/06, Tim Hoff [EMAIL PROTECTED] wrote: Changes

Re: [flexcoders] Message destinations in the context of a multi-room chat app

2006-06-13 Thread Tom Bray
] wrote: We are also investigating adding dynamic destination support on top of the selector technique. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Bray Sent: Wednesday, March 29, 2006 11:28 AM To: flexcoders

[flexcoders] Any documentation about Consumer.subtopic?

2006-06-14 Thread Tom Bray
How are subtopics configured? Can they be dynamically created? Can they have their own security constraints? Is there any documentation out there that Im missing? Thanks, Tom Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups.

[flexcoders] having trouble with DataService fill

2006-06-14 Thread Tom Bray
I have a single destination called users with a very simple fill method that just creates 20 VOs, plugs them into an ArrayList and returns it. After the client-side ResultEvent, my ArrayCollection has 20 items but they all contain null. The FDS log for that response is below and the fill method

Re: [flexcoders] Re: having trouble with DataService fill

2006-06-15 Thread Tom Bray
your destination definition from flex-data-service.xml? thanks, Joe --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: I have a single destination called users with a very simple fill method that just creates 20 VOs, plugs them into an ArrayList and returns it. After the client

Re: [flexcoders] Re: having trouble with DataService fill

2006-06-15 Thread Tom Bray
That was it. Thanks!-TomOn 6/15/06, flashorbman [EMAIL PROTECTED] wrote: Shouldn't the identity property be defined as ID? : identity property=ID/ cheers, Joe --- In flexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: Here's the destination

Re: [flexcoders] Flex 2 - Release Date Pricing

2006-06-15 Thread Tom Bray
I assume that means the enterprise version have unlimited concurrent users?-TomOn 6/15/06, Scott Langeberg [EMAIL PROTECTED] wrote: According to Sydney Sloan (Marketing - Adobe) in a Breeze webinar @ 11AM (c): Official release date: June 28, 2006 Pricing as

  1   2   >