RE: [flexcoders] How to enable the enter key for all buttons onFocus

2008-06-28 Thread Alex Harui
If you set a defaultButton on a container, ENTER will click it. If you tab to another Button, ENTER will click that other button. That's the way Windows does it, and the way we do it in Flex. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

[flexcoders] get the week through date

2008-06-28 Thread Ray Zhang
If I know a Date ,how can I get the week of the Date 's first Day and  last Day? Can anyone offer any advice? Thank you very much.

[flexcoders] Flex3 : TabNavigator : problem skinning first last tab bar

2008-06-28 Thread Yochikoh Haruomi
Hi List, I have a problem skinning the first last tab bar in flex3. Only the middle tab works.. My first tab bar only has 2 pieces of graphic. One for unselected state and another for selected state. The problem is that the first tab bar animates itself through different states when it is

[flexcoders] Re: Help with ViewStack Event Listeners for Custom Components

2008-06-28 Thread Craig
Jitendra, Hi, my original post was not incorrect. I am actually trying to make children of a viewstack visible using a tab navigator, however the tab navigator is not a parent of the viewstack components. It is a parent of two other components within a separate Viewstack... creating a click event

[flexcoders] synchronous events in flex

2008-06-28 Thread parjan
Hi Can anyone tell me how to write synchronous events in flex application? I am calling an Httpservice on focus out event of text field this service checks name duplication. I want my application to wait for service to finish and then do some processing Thanks in advance

[flexcoders] Re: Datagrid Weirdness - Lose arrow key functionality

2008-06-28 Thread Barry
It's just a basic mxml component based on box. Am I better doing this as a custom component in Actionscript? again thanks. ?xml version=1.0 encoding=utf-8? mx:Box xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% backgroundColor={bgColor} mx:Script ![CDATA[ import

Re: [flexcoders] popup is taller than browser window/ vertical scroll bar??

2008-06-28 Thread pfk456cr
josh, i want the scrollbar to appear on the popup not the app. is this easily done? any ideas? thanks. pat --- You need to force the popup to not be bigger than the browser window with maxHeight or something similar. Popups that are too big won't cause a

[flexcoders] Re: popup is taller than browser window/ vertical scroll bar??

2008-06-28 Thread pfk456cr
jpsh, thanks for reply. i want the scroll bars to appear on the popup, not the app. can that be done easily? any ideas? thanks, pat - --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: You need to force the popup to not be bigger than the browser

[flexcoders] Re: get the week through date

2008-06-28 Thread mikevandaniker
Not sure exactly what you mean by week of a date's first and last day, but this thread links to a method that will give you the week number of a given day. http://www.mail-archive.com/flexcoders@yahoogroups.com/msg66620.html If you meant that you wanted to get the week's first and last day given

[flexcoders] Re: popup is taller than browser window/ vertical scroll bar??

2008-06-28 Thread pfk456cr
josh-- thanks for reply. i want the scrollbar to appear on the popup not the application. is there any way to make that happen? thanks again. pat --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: You need to force the popup to not be bigger than the browser window

Re: [flexcoders] Re: get the week through date

2008-06-28 Thread Ray Zhang
thank u ,i see - Original Message From: mikevandaniker [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 10:04:47 PM Subject: [flexcoders] Re: get the week through date Not sure exactly what you mean by week of a date's first and last day, but this

[flexcoders] Re: Help with ViewStack Event Listeners for Custom Components

2008-06-28 Thread Craig
--- In flexcoders@yahoogroups.com, Craig [EMAIL PROTECTED] wrote: Jitendra, Hi, my original post was not incorrect. I am actually trying to make children of a viewstack visible using a tab navigator, however the tab navigator is not a parent of the viewstack components. It is a parent of

Re: [flexcoders] synchronous events in flex

2008-06-28 Thread Daniel Gold
since you're making a service call the return will be asynchronous, but you can still accomplish what you want to do. Your service call, this case send() on the HTTPService, will return an AsyncToken which you can regiser an IResponder to, specifying a result and fault method that will be called

[flexcoders] Custom Event Not Dispatched

2008-06-28 Thread parjan
HI can any one tell me what is wrong with this code. I wrote a custom event and dispatched this event from my entity class and am listening for this event on main application but the listener is not listening for event. Please help me. here is my Event class public class MyEvent

Re: [flexcoders] Custom Event Not Dispatched

2008-06-28 Thread Daniel Gold
If you're not listening for the event directly on the component that will be dispatching it, you need to toggle the 'bubbles' property so that the event will will trigger handlers up the display list from where it was dispatched. So in your case change your dispatch line to: dispatchEvent( new

Re: [flexcoders] Re: Best Practice Data Binding

2008-06-28 Thread Daniel Gold
The only difference in what you're doing in the two examples is declaring a custom event in the second example. As Doug said, you can place the Binding metadata tag over the getter or the setter, it makes no difference. If you don't declare a custom event, an extra set of functions will be wrapped

Re: [flexcoders] Custom Event Not Dispatched

2008-06-28 Thread parjan
Ok dear i chanaged MyEvent Class with this public class MyEvent extends Event { public static var MY_EVENT:String = MY_EVENT ; public function MyEvent() { super ( MY_EVENT , true );

Re: [flexcoders] Custom Event Not Dispatched

2008-06-28 Thread Daniel Gold
right, I'm only half awake on Saturday monring The bubbles property is the second parameter on the Event constructor, so your MyEvent changes should have done the trick. Sorry about the slip up there, a lot of times if I'm writing something quick and dirty I would do it like displatchEvent(new

Re: [flexcoders] Custom Event Not Dispatched

2008-06-28 Thread parjan
But dear event is still not dispatching after making all this changes, - Original Message - From: Daniel Gold [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sat, 28 Jun 2008 10:47:50 -0500 Subject: Re: [flexcoders] Custom Event Not Dispatched right, I'm only half awake on

[flexcoders] Re: XMLList - XML Spontaneous Error

2008-06-28 Thread kenny14390
Thank you Tracy! That worked. I have no idea why it decided not to anymore, but it does now! --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Surprised this didn't error before. All e4x expressions reuturn an XMLList, even if there is only one node. So you have

Re: [flexcoders] synchronous events in flex

2008-06-28 Thread Paul Andrews
- Original Message - From: [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 2:54 PM Subject: [flexcoders] synchronous events in flex Hi Can anyone tell me how to write synchronous events in flex application? There are no synchronous events. I am

Re: [flexcoders] synchronous events in flex

2008-06-28 Thread parjan
You mean if i have to display an alert message 'Customer name already exists' them i have to put this code in result method as follows, Basically this is Command class which implements IResponder . public function result( event : Object ) : void {

Re: [flexcoders] synchronous events in flex

2008-06-28 Thread Ralf Bokelberg
You could either set a bindable property on your model, or pass in a object, which does the result handling. Cheers Ralf. On Sat, Jun 28, 2008 at 8:09 PM, [EMAIL PROTECTED] wrote: You mean if i have to display an alert message 'Customer name already exists' them i have to put this code in

[flexcoders] Re: How to enable the enter key for all buttons onFocus

2008-06-28 Thread Amy
--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: First a caveat: I's a bad idea. Pressing enter to submit an entire form and spacebar to click a specific button is a fairly standard UI practice, and something you shouldn't change without a good reason. Not sure

RE: [flexcoders] Custom Event Not Dispatched

2008-06-28 Thread Alex Harui
MyObject is not a DisplayObject so the event will not bubble. The application should be explicitly adding a listener to MyObject From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Saturday, June 28, 2008 8:56 AM

[flexcoders] How to access properties of symbols in loaded SWF?

2008-06-28 Thread daddyo_buckeye
I'm making the slow and painful migration from Flash to Flex, but I'm running into a dead end on one particular area: accessing and manipulating properties of symbols in a loaded SWF. The SWF is actually a simple library of a detailed parts illustration. I would like to load the entire SWF in

Re: [flexcoders] Custom Event Not Dispatched

2008-06-28 Thread parjan
Once again Thanks Alex for your usual help. Now my application is working fine with this one line change obj.addEventListener(MyEvent.MY_EVENT , propertyChangeListener ) ; - Original Message - From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sat, 28 Jun 2008

[flexcoders] Re: Getting parent information from AdvancedDataGrid

2008-06-28 Thread Amy
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Sorry, this thread is one of the ones I am following for my own education. It is beyond my current experience. I found that my code wasn't adding the UID where I thought it was. When the HierarchicalCollection called

[flexcoders] Re: Create border for inner subgrids within a grid - How?

2008-06-28 Thread pbrendanc
Alex, Thanks - I think that approach will require me to build multiple subgrids and treat each of these subgrid as a separate griditem - thus creating additional nesting, rather than 1 large grid. I was hoping for to avoid that - is there any other way to accomplish this (I suspect not). Thx

RE: [flexcoders] Re: Create border for inner subgrids within a grid - How?

2008-06-28 Thread Alex Harui
Subclass GridItem and have the constructor set the borderStyle. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pbrendanc Sent: Saturday, June 28, 2008 2:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Create border for

[flexcoders] Custom (mxml) UI Components in Flex?

2008-06-28 Thread pbrendanc
Hi Just getting into flex in my spare time and trying to learn as quickly as possible - so excuse me if some of my postings/questions seem somewhat redundant - however these groups are a valuable resource for future Flex noobies so hopefully others will benefit from the QA. (Later on I may

Re: [flexcoders] Custom (mxml) UI Components in Flex?

2008-06-28 Thread Richard Rodseth
Absolutely. If you keep looking you'll find lots of examples of MXML components. If you're using FlexBuilder, you can say New MXML Component. You can add properties and override methods in an mx:Script block in the MXML component. One thing you'll have to learn is that to instantiate your custom

RE: [flexcoders] Re: Create border for inner subgrids within a grid - How?

2008-06-28 Thread Alex Harui
Or change the GridItem's TypeSelector in mx:Styles mx:Styles GridItem { borderStyle: solid' } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Saturday, June 28, 2008 2:48 PM To:

[flexcoders] Re: synchronous events in flex

2008-06-28 Thread JWOpitz
There are many ways to do what you are looking for, though in a asyncronous manner. Ralf suggested binding a view to a prop on the model, upon updating will update the view. That is probably the most OO way of doing it within the MVC framework. But it also is harder to do more view-specific

[flexcoders] Problem running/debugging in Flex

2008-06-28 Thread brucewhealton
Hello all, I hope someone can help me figure this out. Flex projects that I created a while back are running ok from within Flex. However, recently, I created two projects both of which are displaying errors. Here's what happens. I create a project called ProgrammingBasics. This is an

Re: [flexcoders] Problem running/debugging in Flex

2008-06-28 Thread Paul Andrews
Well, the most basic problem here is that after being told there are errors, you are still proceeding. Once told there are errors, you should review and fix the errors rather than continue and be surprised that files are missing from the bin directory. If you are stuck understanding these

[flexcoders] Re: Problem running/debugging in Flex

2008-06-28 Thread brucewhealton
Ok, so, this time I opened a few different Flex projects and an Actionscript Project. In every single project that I opened and tried to run, I am getting errors. When I get the message that there are errors, I select Cancel instead of Proceed, but I get no indication of what the error is. I've

Re: [flexcoders] Re: Problem running/debugging in Flex

2008-06-28 Thread Sherif Abdou
maybe try Project--Properties--Flex Compiler--Check everything under HTML Wrapper - Original Message From: brucewhealton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, June 28, 2008 10:37:37 PM Subject: [flexcoders] Re: Problem running/debugging in Flex Ok, so, this