[flexcoders] Re: RIADEV-FLEXCHINAGROUP

2007-02-07 Thread Tim Hoff
Hello Ju,

I'm a developer in America.  As a semi-regular 
subscriber/contributer to this list, I greatly appreciate hearing 
about life and Flex experiences from everyone on this planet.  It 
warms my heart, that perhaps Flex could be a small building block to 
help us all realize our similarities and respect our differences.  I 
wish you all of the best success with your Flex group in China, and 
sincerely hope that you continue to be a participant here.  You're 
more than welcome.

Respectfully.
Tim Hoff--- In flexcoders@yahoogroups.com, "Ju Aedis" <[EMAIL PROTECTED]> 
wrote:
>
> hi,everyone
> 
> I guess that the flexcoders have so many Chinese or foreign 
citizen of
> Chinese origin.
> In China, Flex spread so fast. We also looking forward to the 
arrival of
> APOLLO. Compare with overseas, our experience and skills 
shortages. U konw
> that, so many people in China was pleased to communication with 
Chinese,
> beacause of directness. The D.CAT(Jeremy) 
<http://ria.richtechmedia.com/> help
> us in China to compelte out dream, So,
> RIADEV<http://groups.google.com/group/riadev>was founded, just like
> flexcoders but in Chinese!
> 
> If u can read Chinese, join it!
> If u can help us, join it!
> 
> Thanks a lot.
> Aedis.Ju
> 
> ps:Because of that Chinese Fonts in YahooGroup sometimes 
distortion,  We
> adviced RIADEV founded in GoogleGroup.
> 
> 
> 
> -- 
> Aedis.Ju <http://aedisju.blogspot.com/>--
http://aedisju.blogspot.com/
>




[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread Tim Hoff

Unless you explicitly set the height and width of a container, it will
automatically measure to include all of it's children; with no scroll
bars.   This is a good thing in some situations.  If you want the scroll
bars to show up, set the dimensions.   clipContent is an entirely
different animal; and provides interesting reading in the help docs.

-TH
______

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY

--- In flexcoders@yahoogroups.com, "scott_flex" <[EMAIL PROTECTED]> wrote:
>
>
> Any particualar reason why a Vbox won't correctly clip content and
show
> scrollbars when the object is using constraint based layout
positioning?
>
> I'm adding up to 50 child objects to the vbox and want the scrollbars
> to appear so the user can scroll to see them all.
>
> If i set the height, and width everything works as expected, so i've
> manually tapped into the resize event on my parent canvas and manually
> set the height and width to get the effect of a constraint based
> layout. Doesn't seem like i should have to do this.
>
> If i used the top,left,right,bottom properties, my VBox just expands
> its size to include all child objects added... which then forces the
> scroll bars on it's parent container, not what i want.
>
> Maybe i'm doing something wrong...
>




[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread Tim Hoff
Well, just one more point: constraints (similar to padding) have 
nothing to do with the dimensions of a container.  They simply 
provide a mechanism for positioning. While using top, bottom, left 
and right can cause resizing, relative to the parent, they are more 
or less just a tool for placement.

-TH

--- In flexcoders@yahoogroups.com, "scott_flex" <[EMAIL PROTECTED]> wrote:
>
> 
> Thanks, 
> 
> I do agree that the vbox automatically grows based on it's content 
is 
> a good thing sometimes, i am making use of that default behavior 
for 
> sure.
> 
> However, the constraint based layout is designed so i don't have 
to 
> manually code changes for the width and height when the parent 
object 
> is resized... so I would have never expected this behavior nor 
does 
> it make sense (IMHO).
> 
> I'll just continue on with what i've done, it's not that 
complicated, 
> just more work for me :).
> 
> --Scott
> 
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> > 
> > Unless you explicitly set the height and width of a container, 
it 
> will
> > automatically measure to include all of it's children; with no 
> scroll
> > bars.   This is a good thing in some situations.  If you want 
the 
> scroll
> > bars to show up, set the dimensions.   clipContent is an entirely
> > different animal; and provides interesting reading in the help 
docs.
> > 
> > -TH
> > __
> > 
> > Tim Hoff
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com
> > Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY
> > 
> > --- In flexcoders@yahoogroups.com, "scott_flex"  wrote:
> > >
> > >
> > > Any particualar reason why a Vbox won't correctly clip content 
and
> > show
> > > scrollbars when the object is using constraint based layout
> > positioning?
> > >
> > > I'm adding up to 50 child objects to the vbox and want the 
> scrollbars
> > > to appear so the user can scroll to see them all.
> > >
> > > If i set the height, and width everything works as expected, 
so 
> i've
> > > manually tapped into the resize event on my parent canvas and 
> manually
> > > set the height and width to get the effect of a constraint 
based
> > > layout. Doesn't seem like i should have to do this.
> > >
> > > If i used the top,left,right,bottom properties, my VBox just 
> expands
> > > its size to include all child objects added... which then 
forces 
> the
> > > scroll bars on it's parent container, not what i want.
> > >
> > > Maybe i'm doing something wrong...
> > >
> >
>




[flexcoders] Re: VBox, constraint based layout not clipping content

2007-03-09 Thread Tim Hoff
Yep, it's a different mind set, but very cool and flexible.

Cheers,
-TH

--- In flexcoders@yahoogroups.com, "scott_flex" <[EMAIL PROTECTED]> wrote:
>
> 
> Yes! It took me a few seconds to figure that out after you 
explained 
> it, my brain is fragile...
> 
> When setting just one of the constraints, (left or right) or (top 
or 
> bottom) it makes perfect sense... but setting both (top and 
bottom) 
> or (left and right), i just figured it manually set the width or 
> height behind the scenes.
> 
> I'm probably confusing constraint based layout with the 
> term "Docking" in .Net windows development.
> 
> 
> 
> --Scott
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> > Well, just one more point: constraints (similar to padding) have 
> > nothing to do with the dimensions of a container.  They simply 
> > provide a mechanism for positioning. While using top, bottom, 
left 
> > and right can cause resizing, relative to the parent, they are 
more 
> > or less just a tool for placement.
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, "scott_flex"  wrote:
> > >
> > > 
> > > Thanks, 
> > > 
> > > I do agree that the vbox automatically grows based on it's 
> content 
> > is 
> > > a good thing sometimes, i am making use of that default 
behavior 
> > for 
> > > sure.
> > > 
> > > However, the constraint based layout is designed so i don't 
have 
> > to 
> > > manually code changes for the width and height when the parent 
> > object 
> > > is resized... so I would have never expected this behavior nor 
> > does 
> > > it make sense (IMHO).
> > > 
> > > I'll just continue on with what i've done, it's not that 
> > complicated, 
> > > just more work for me :).
> > > 
> > > --Scott
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> > > >
> > > > 
> > > > Unless you explicitly set the height and width of a 
container, 
> > it 
> > > will
> > > > automatically measure to include all of it's children; with 
no 
> > > scroll
> > > > bars.   This is a good thing in some situations.  If you 
want 
> > the 
> > > scroll
> > > > bars to show up, set the dimensions.   clipContent is an 
> entirely
> > > > different animal; and provides interesting reading in the 
help 
> > docs.
> > > > 
> > > > -TH
> > > > __
> > > > 
> > > > Tim Hoff
> > > > Cynergy Systems, Inc.
> > > > http://www.cynergysystems.com
> > > > Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "scott_flex"  
> wrote:
> > > > >
> > > > >
> > > > > Any particualar reason why a Vbox won't correctly clip 
> content 
> > and
> > > > show
> > > > > scrollbars when the object is using constraint based layout
> > > > positioning?
> > > > >
> > > > > I'm adding up to 50 child objects to the vbox and want the 
> > > scrollbars
> > > > > to appear so the user can scroll to see them all.
> > > > >
> > > > > If i set the height, and width everything works as 
expected, 
> > so 
> > > i've
> > > > > manually tapped into the resize event on my parent canvas 
and 
> > > manually
> > > > > set the height and width to get the effect of a constraint 
> > based
> > > > > layout. Doesn't seem like i should have to do this.
> > > > >
> > > > > If i used the top,left,right,bottom properties, my VBox 
just 
> > > expands
> > > > > its size to include all child objects added... which then 
> > forces 
> > > the
> > > > > scroll bars on it's parent container, not what i want.
> > > > >
> > > > > Maybe i'm doing something wrong...
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: Virtually add item to combobox

2007-03-12 Thread Tim Hoff

Hi David,

You could use the prompt property.  But, that won't allow you to reset
the filter.  This might give you some ideas:

http://www.cflex.net/showFileDetails.cfm?ObjectID=415&Object=File&Channe\
lID=1
<http://www.cflex.net/showFileDetails.cfm?ObjectID=415&Object=File&Chann\
elID=1>

-TH
______

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY

--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> ComboBox has a property named "prompt" that may do what you want.
>
>  prompt="No selection"/>
>
>
> --- In flexcoders@yahoogroups.com, "nxzone" nxzone@ wrote:
> >
> > Hi,
> >
> > For my first post, i have a hard question.
> >
> > *I have ComboxBox filled by a Bindable ArrayCollection.
> > *This ComboxBox will act as a Filter.
> > The problem is: how can a add a value "No selection" or "No filter"
> > only to this ComboBox.
> > *Important, i don't want add this in my model, only in the
> > combobox...
> >
> >
> >
> > Short example
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute">
> > 
> > 
> > 
> > 
> >
> > 
> >  > width="243" height="168">
> > 
> >
> >
> > ***This will be use in a opensource Timeline project in Flex 2. If
> > you are interessed to participate, email me to dblais@
> > http://www.ideeclic.com/clients/133-cspi/v4/index.html
> > Go to "Mes lignes du temps"->"Créer une ligne du temps"
> >
> > David Blais
> > Thank you!
> >
>




[flexcoders] Re: Cairngorm: When / why override clone in Events

2007-03-14 Thread Tim Hoff

Hi Sean,

Here's a good explanation:

http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-t\
he-clone-method/
<http://www.tink.ws/blog/custom-events-in-as-30-dont-forget-to-override-\
the-clone-method/>

-TH
______

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY


--- In flexcoders@yahoogroups.com, Sean Sell <[EMAIL PROTECTED]> wrote:
>
> In one of the Cairngorm examples I learned Cairngorm from each event
had defined an override for the clone method (of Flash.Event). Does
anyone understand haw and when you should do this? Does Cairngorm clone
the events behind the scenes somewhere that requires this be done?
>
> --Sean
>
>
>
>
>
\

> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
Games.
> http://videogames.yahoo.com/platform?platform=120121
>




[flexcoders] Re: Cairngorm: When / why override clone in Events

2007-03-14 Thread Tim Hoff
In this case, you are creating a new event instance, so the clone 
over-ride doesn't matter.  It would only matter if you were 
redispatching an event that was already instantiated.

- do I really need to create a custom event class for every type of 
event? 

Usually, you would only create a custom event, in Cairngorm or plain 
Flex, if you need to attach properties (parameters, data...) to the 
event.  If not, just register the event name in the Controller and 
you're good to go.

-TH

--- In flexcoders@yahoogroups.com, Sean Sell <[EMAIL PROTECTED]> wrote:
>
> Thank you, that was very helpful.
> 
> As a follow on question: if you dispatch an event in a Cairngorm 
app like so:
> 
> CairngormEventDispatcher.getInstance().dispatchEvent( new 
CairngormEvent( AppController.GET_WORK_ITEMS_EVENT ) );
> 
> I haven't created my own custom event, does Cairngorm take care of 
the override or do I really need to create a custom event class for 
every type of event? 
> 
> - Original Message 
> From: Tim Hoff <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, March 14, 2007 3:51:01 PM
> Subject: [flexcoders] Re: Cairngorm: When / why override clone in 
Events
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> Hi Sean,
> 
> Here's a good explanation:
> 
> http://www.tink. ws/blog/custom- events-in- as-30-dont- forget-to- 
override- the-clone- method/
> 
> -TH
>  _ _ 
>  
> Tim Hoff
> Cynergy Systems, Inc.
> http://www.cynergys ystems.com
> Office: 866-CYNERGY 
> 
> 
> --- In [EMAIL PROTECTED] ups.com, Sean Sell  
wrote:
> >
> > In one of the Cairngorm examples I learned Cairngorm from each 
event had defined an override for the clone method (of 
Flash.Event) . Does anyone understand haw and when you should do 
this? Does Cairngorm clone the events behind the scenes somewhere 
that requires this be done?
> > 
> > --Sean
> > 
> > 
> > 
> > 
> >  _ _ _ _ _ 
_ _ _
> > Be a PS3 game guru.
> > Get your game face on with the latest PS3 news and previews at 
Yahoo! Games.
> > http://videogames. yahoo.com/ platform? platform= 120121
> >
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
_
___
> Looking for earth-friendly autos? 
> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
> http://autos.yahoo.com/green_center/
>




RE: [flexcoders] Accessing Item Renderer in a List.

2007-03-28 Thread Tim Hoff
For something like this you would want to update the progressBar in the
set data override function.  But remember to call
super.invalidateDisplayList(); in that function to re-render.
 
-TH
 
CYNERGY



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, March 28, 2007 3:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Accessing Item Renderer in a List.



Are you updating the ProgressBar in the set data() override function?
(or updateDisplayList, I am not sure when to use which.)

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Roman Protsiuk
Sent: Wednesday, March 28, 2007 9:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Accessing Item Renderer in a List.

All the interaction with item renderer is expected to be done via data
set to it. And the feedback may be  for example bubbling event (though,
I use this technique very seldom).
When list-based control is created it creates as many item renderer
instances as needed and only substitutes data afterwards. 

R.

On 28 Mar 2007 06:06:00 -0700, ivansebastiansurya
<[EMAIL PROTECTED] 
> wrote: 

Hi everyone,

I need bit of a help in displaying items from a List.

I have an item renderer which is associated to the List.

The items in the list contains lots of data, one of which is an 
indication of how many percent a task has been completed.

My custom item renderer has a ProgressBar in it. 

Every 5 minutes, the data source for my list is updated, hence the 
progress bar should be updated.

How can I detect the change in data source from the item renderer's 
class, so that I can change the progress bar status?

I have always thought that new item renderer object is created 
everytime the list is updated (everytime the data source is updated, 
I cleared the array collection which is the source of the list and re 
add the new items).

At the moment, my progress bar only looks right when the application 
first run. However, seems like the progress bar is updated randomly 
afterwards.

Thanks.

Ivan.

 


[flexcoders] Re: Accessing Item Renderer in a List.

2007-03-28 Thread Tim Hoff
For something like this you would want to update the ProgressBar in 
the set data override function.  But, remember to call 
super.invalidateDisplayList(), in that function, to render the 
changes.
 
-TH
 
CYNERGY

Sorry if this comes acros twice.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> 
wrote:
>
> Are you updating the ProgressBar in the set data() override 
function?
> (or updateDisplayList, I am not sure when to use which.)
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Roman Protsiuk
> Sent: Wednesday, March 28, 2007 9:21 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Accessing Item Renderer in a List.
> 
>  
> 
> All the interaction with item renderer is expected to be done via 
data
> set to it. And the feedback may be  for example bubbling event 
(though,
> I use this technique very seldom).
> When list-based control is created it creates as many item renderer
> instances as needed and only substitutes data afterwards. 
> 
> R.
> 
> On 28 Mar 2007 06:06:00 -0700, ivansebastiansurya
> <[EMAIL PROTECTED] 
> > wrote: 
> 
> Hi everyone,
> 
> I need bit of a help in displaying items from a List.
> 
> I have an item renderer which is associated to the List.
> 
> The items in the list contains lots of data, one of which is an 
> indication of how many percent a task has been completed.
> 
> My custom item renderer has a ProgressBar in it. 
> 
> Every 5 minutes, the data source for my list is updated, hence the 
> progress bar should be updated.
> 
> How can I detect the change in data source from the item 
renderer's 
> class, so that I can change the progress bar status?
> 
> I have always thought that new item renderer object is created 
> everytime the list is updated (everytime the data source is 
updated, 
> I cleared the array collection which is the source of the list and 
re 
> add the new items).
> 
> At the moment, my progress bar only looks right when the 
application 
> first run. However, seems like the progress bar is updated 
randomly 
> afterwards.
> 
> Thanks.
> 
> Ivan.
>




[flexcoders] Re: Observe tag not working?

2007-03-29 Thread Tim Hoff

Hi Kevin,

The Observe tag automatically sends the object that you are observing to
the handler function:

private function observeHandlerFunction( myProperty : myPropertyType ) :
void
{
 // do something
}



-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY

--- In flexcoders@yahoogroups.com, Kevin <[EMAIL PROTECTED]> wrote:
>
> has anyone had problems using Paul's Observe tag? I am able to use
> ObserveValue fine, but when I try to use just the Observe tag I get
> an error saying that my handler function was expecting 0 arguments
> and got 1??? Is Observe sending arguments to the handler function
> that ObserveValue doesn't send? How should we set up the handler
> function to use the Observe tag.
>
> Here is the version I am using:
> http://weblogs.macromedia.com/auhlmann/archives/ObserveUtility.zip
>
> Thanks for the help.
>
> - Kevin
>




[flexcoders] Re: Observe tag not working?

2007-03-29 Thread Tim Hoff

Yes, it is:

http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.\
cfm#more
<http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s\
.cfm#more>

-TH

--- In flexcoders@yahoogroups.com, Kevin <[EMAIL PROTECTED]> wrote:
>
> Thanks. Is this different from the ObserveValue tag? I generally do
> not use any parameters in my ObserveValue handlers and get by without
> any errors?
>
> I'll test this some more. Thanks for the advice.
>
> - kevin
>
>
> On Mar 29, 2007, at 2:32 PM, Tim Hoff wrote:
>
> >
> > Hi Kevin,
> >
> > The Observe tag automatically sends the object that you are
> > observing to the handler function:
> >
> > private function observeHandlerFunction( myProperty :
> > myPropertyType ) : void
> > {
> > // do something
> > }
> >
> >  > handler="{ observeHandlerFunction }"/>
> >
> > -TH
> > __
> >
> > Tim Hoff
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com
> > Office: 866-CYNERGY
> >
> > --- In flexcoders@yahoogroups.com, Kevin lists@ wrote:
> > >
> > > has anyone had problems using Paul's Observe tag? I am able to use
> > > ObserveValue fine, but when I try to use just the Observe tag I
get
> > > an error saying that my handler function was expecting 0 arguments
> > > and got 1??? Is Observe sending arguments to the handler function
> > > that ObserveValue doesn't send? How should we set up the handler
> > > function to use the Observe tag.
> > >
> > > Here is the version I am using:
> > > http://weblogs.macromedia.com/auhlmann/archives/ObserveUtility.zip
> > >
> > > Thanks for the help.
> > >
> > > - Kevin
> > >
> >
> >
> >
>




[flexcoders] Re: Startegy for notifying views in Cairngorm

2007-03-29 Thread Tim Hoff

Hi Ben,

You really don't want to control the Cairngorm views directly, in a
command.  This defeats encapsulation.  You would usually change controls
in a view: through binding to a ModelLocator variable, using the Observe
tag or (if you're desperate) dispatching an event (from the command)
that is listened for by the view.  The first two are recommended by the
Cairngorm gurus.

-TH
______

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY

--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> Hello, I have a command that gets called from a few different views,
> and when it returns (it makes a WS call), it needs to update a control
> in the view that initiated the call. The approach I am considering is
> to pass the view reference in the event that is dispatched (its
> already a subclass of CairngormEvent with its own properties) and then
> calling a function on that event param in my command's result handler.
> Something like this:
>
> cancelEvent.callingView.doStuff();
>
> Is there any reason I should avoid this or perhaps a better way? I am
> thinking that a better (more decoupled) way might be to pass the view
> and function name, and then call the function via apply. Something
> like this:
>
Function(cancelEvent.callingView["funcName"]).apply(cancelEvent.callingV\
iew);
>
> Thoughts? Suggestions?
>
> TIA,
> Ben
>




[flexcoders] Re: Can I get the icon in cornflower blue?

2007-03-29 Thread Tim Hoff

Hi all,

As an addendum to Carson's clever post, I'd like to encourage anyone on
this list, who is seeking a Flex position, to seriously consider Cynergy
Systems.  I started working at Cynergy almost 6 months ago.   In that
time, I've been involved with several huge projects for some very
notable corporations.  I don't make endorsements lightly, but this is
one time when I feel compelled.  Cynergy Systems offers a challenging
and very rewarding professional experience; working with some of the
most intelligent people that I've ever come in contact with.  In
addition, it's a great place to improve your Flex skills.  If this
sounds interesting to you, please feel free to contact us.

-TH
______

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY

--- In flexcoders@yahoogroups.com, "Carson Hager" <[EMAIL PROTECTED]>
wrote:
>
> Hey Hilary,
>
> I definitely appreciate the compliments and I'm glad you liked the ad.
> Although we're not in your neck of the woods yet, I know it's on the
> radar. We know a number of people in Sydney and have already begun
talks
> with them. I'll be sure and let you know as it materializes.
>
>
> Carson
>
> 
>
> Carson Hager
> Cynergy Systems, Inc.
> http://www.cynergysystems.com <http://www.cynergysystems.com/>
>
> Email: [EMAIL PROTECTED]
> Office: 866-CYNERGY
> Mobile: 1.703.489.6466
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Hilary Bridel
> Sent: Monday, March 26, 2007 8:33 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Can I get the icon in cornflower blue?
>
>
>
> Hey Carson,
> Clever ad !
> Shame I live in Sydney Australia. You guys do some awesome work!
>
> Regards
>
> Hilary
>
> www.bridel.org
>
>
>
> On 26 Mar 2007 09:57:13 -0700, Carson Hager
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] > wrote:
>
>
>
> Of course you can.
>
> If that got your attention because you love that scene as much
> as I do then chances are you'll probably want to keep reading.
>
> You're curiosity is piqued. That's a good sign.
>
> So why an obscure Fight Club reference in the middle of a slew
> of boring job ads? Bluntly put...we're not boring and we're not
> interested in you if you're boring. If you love your cube and you live
> to fill out your TPS reports talking about prioritizing one action
item
> over another, you'd be miserable working with us...you likely assumed
> this was spam and deleted it anyway. Perfect.
>
> Let me get to the point because I know you're busy. You're a
> Flex developer otherwise you wouldn't be getting this. That means you
> likely already know about Cynergy...unless of course you live under a
> rock. When someone calls your work a "web site" you get irritated
> because web sites are for monkeys and you build applications. You're a
> developer and a damn good one. You're convinced you know the lines to
> Anchor Man better than anyone else and you're willing to prove it at
> any time. Most importantly, you want to build RIAs alongside the best
> people in the industry.
>
> Welcome to Cynergy. We're the undisputed heavy weight champion
> of RIA development and we're growing like crazy because the world has
> finally woken up and realized that traditional web applications are
> garbage and that RIAs are the future. Forward thinking companies and
> organizations are kicking our doors down daily asking us to build
their
> next great idea. That means we need to grow. That means we need you.
We
> realize you're probably happy where you are...hell you're building
Flex
> apps and life is good. We get that. But if you saw some of yourself in
> my description above, you're among friends and we truly believe life
can
> be even better than it is today. We want a shot to prove it to you.
>
> So how do you get in touch? Well if you like boring aliases you
> can drop us a line at [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] or you can email me directly at
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]
> . If you're really bold, pick up the phone and call my cell. You'll
> find the number below.
>
> Boring details which you should know given the high demand for
> your skills but I'll include them anyway...
>
> We pay well.
> We provide all of the benefits you're used to...health dental,
> 401k, blah, blah.
> We're open to remote developers but would always prefer you were
> in one of our offices - preferably Washington, DC or San Diego, CA.
>
> You already legally work in the US.
>
>
> Looking forward to hearing from you.
>
> Carson
>
>
> 
>
> Carson Hager
> Cynergy Systems, Inc.
> http://www.cynergysystems.com <http://www.cynergysystems.com>
>
> Email: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]
> Office: 866-CYNERGY
> Mobile: 1.703.489.6466
>
>
>
>
>
>
>
>
>
> --
> Hilary
>
> --
>




[flexcoders] Re: need a little help with itemRenderer

2007-03-30 Thread Tim Hoff

Hi Mark,

Try something like this:  (make sure that your itemRenderer is a
container that supports the backgroundColor style property.  You can
change the text color this way as well, using "color".

override public function set data(value:Object):void
{
 super.data = value;

 if( value != null )
 {
 if ( value.myProperty == "myCondition" )
 {
 this.setStyle("backgroundColor","red");
 }
 else
 {
  this.setStyle("backgroundColor","#FF");
 }

 super.invalidateDisplayList();
 }
}

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY

--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> I need to change the background color of some items in the
> HorizontalList. I thought the easiest way would be to create an
> itemRenderer such as below. But I can't change the color this way.
> Does anyone know what the problem is here? The setColor function
> will have much more to it once I get the setStyle to work.
>
> Thanks
>
> ## In the Application##
>  dataProvider="{hListArray}" columnWidth="125" showScrollTips="true"
> scrollTipFunction="myScrollFunction" selectable="false"
> itemRenderer="com.radar.HListRenderer" />
>
> ## ItemRenderer ##
> 
> http://www.adobe.com/2006/mxml";
> creationComplete="setColor()">
> 
> 
> 
> 
>




[flexcoders] Re: Again.

2007-03-30 Thread Tim Hoff
Alert.show(ProcessorName.selectedItem.lastResult) 

to

Alert.show(ProcessorName.selectedItem.id) 

-TH

--- In flexcoders@yahoogroups.com, Jeremy Watson <[EMAIL PROTECTED]> 
wrote:
>
> Hey Guys,
> 
> Man this combo thing is pissin me off! Let me ask this simple 
question first.
> 
> Is this the correct way of getting data out of the database and 
into the combobox?  What I'm trying to do is just get the ID out of 
the combobox and alert it. ONCE i get that far I would like to call 
another function  (yet to be created) which will do a remote call 
and bring in values to bind to a text box based on what was selected 
from the combo box (can this even be done?). Does that make sense? I 
would've had this done in about 10 mins in CF and HTMLgod do I 
miss it. 
> 
> My Example code is below. Any help would be grateful. 
> 
> Jeremy.
> 
> 
>
>   
>
> 
> 
>
>
> 
> 
>   
>  
>  
>  
>   
>
>
> 
> 
> 
> 
> 
> Send instant messages to your online friends 
http://au.messenger.yahoo.com
>




[flexcoders] Re: Again.

2007-03-30 Thread Tim Hoff
Cool, I knew that you would get.  For aomething like this, you can 
also bypass the change event (if you just need a value) by binding 
directly:

 
> >  }
> 
> > 
> 
> >  // Display a selected item's label field and index for 
> 
> change events.
> 
> >  private function changeEvt(event: Event):void {
> 
> >   Alert.show
> 
> (ProcessorName. selectedItem. lastResult) 
> 
> > forChange.text+ =event.currentTa rget.selectedIte 
m.label 
> 
> + " " + 
> 
> >event.currentTarget .selectedIndex + "\n";
> 
> >  }
> 
> >   ]]>
> 
> >
> 
> >  
> source="Cows3. cows" showBusyCursor= "true"/>
> 
> > 
> 
> > 
> open="dropEvt( event)" close="dropEvt( event)" 
> 
> dataProvider= "{remoteService. getProcessors. lastResult} " 
> 
> labelField=" ProcessorName" x="403" y="97">
> 
> >
> 
> > 
> 
> > 
> change="changeEvt( event)" > 
> 
> >   
> 
> >  
> 
> >  
> 
> >  
> 
> >   
> 
> >
> 
> >
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > Send instant messages to your online friends 
> 
> http://au.messenger .yahoo.com
> 
> >
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Send instant messages to your online friends 
http://au.messenger.yahoo.com
>




[flexcoders] Re: Again.

2007-03-30 Thread Tim Hoff
Let's try this without the typo's.

Cool, I knew that you would get it. :) For something like this, you 
can also bypass the change event (if you just need a value) by 
binding directly:



or, whatever field you want.

Cheers,
-TH


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Cool, I knew that you would get.  For aomething like this, you can 
> also bypass the change event (if you just need a value) by binding 
> directly:
> 
>  width="150" 
> height="100%"
> text="{ ProcessorName.selectedItem.ProcessorID }/>
> 
> or, whatever field you want.
> 
> Cheers,
> -TH
> 
> --- In flexcoders@yahoogroups.com, Jeremy Watson  
> wrote:
> >
> > Hey Tim,
> > 
> > Thanks for that. I tried id then realised that it wouldn't work 
> because I needed to have the id name out of the database i.e. 
> ProcessorID. Then it worked. Thanks again!
> > 
> > Jeremy
> > 
> > - Original Message 
> > From: Tim Hoff 
> > To: flexcoders@yahoogroups.com
> > Sent: Saturday, 31 March, 2007 11:00:03 AM
> > Subject: [flexcoders] Re:  Again.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > Alert.show(Processo rName.selectedIt em.lastResult) 
> > 
> > 
> > 
> > to
> > 
> > 
> > 
> > Alert.show(Processo rName.selectedIt em.id) 
> > 
> > 
> > 
> > -TH
> > 
> > 
> > 
> > --- In [EMAIL PROTECTED] ups.com, Jeremy Watson 
>  
> > 
> > wrote:
> > 
> > >
> > 
> > > Hey Guys,
> > 
> > > 
> > 
> > > Man this combo thing is pissin me off! Let me ask this simple 
> > 
> > question first.
> > 
> > > 
> > 
> > > Is this the correct way of getting data out of the database 
and 
> > 
> > into the combobox?  What I'm trying to do is just get the ID out 
> of 
> > 
> > the combobox and alert it. ONCE i get that far I would like to 
> call 
> > 
> > another function  (yet to be created) which will do a remote 
call 
> > 
> > and bring in values to bind to a text box based on what was 
> selected 
> > 
> > from the combo box (can this even be done?). Does that make 
sense? 
> I 
> > 
> > would've had this done in about 10 mins in CF and HTMLgod do 
I 
> > 
> > miss it. 
> > 
> > > 
> > 
> > > My Example code is below. Any help would be grateful. 
> > 
> > > 
> > 
> > > Jeremy.
> > 
> > > 
> > 
> > > 
> > 
> > >
> > 
> > >   
> > 
> > >
> > 
> > >  > 
> > source="Cows3. cows" showBusyCursor= "true"/>
> > 
> > > 
> > 
> > > > 
> > open="dropEvt( event)" close="dropEvt( event)" 
> > 
> > dataProvider= "{remoteService. getProcessors. lastResult} " 
> > 
> > labelField=" ProcessorName" x="403" y="97">
> > 
> > >
> > 
> > > 
> > 
> > > > 
> > change="changeEvt( event)" > 
> > 
> > >   
> > 
> > >  
> > 
> > >  
> > 
> > >  
> > 
> > >   
> > 
> > >
> > 
> > >
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > Send instant messages to your online friends 
> > 
> > http://au.messenger .yahoo.com
> > 
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Send instant messages to your online friends 
> http://au.messenger.yahoo.com
> >
>




[flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-11 Thread Tim Hoff
Cool. -TH

--- In flexcoders@yahoogroups.com, "anthony_morsey" <[EMAIL PROTECTED]> 
wrote:
>
> Thanks TH -- your solution works great!!
> 
> Tony
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> > 
> > Here's another way:
> > 
> > 
> >  
> >  
> >   dataField="cashoutshares">
> >  
> >  
> >  
> >  
> >  
> >  
> > 
> >   > click="data.cashoutshares=myCheckBox.selected"/>
> > 
> >  
> >  
> >  
> > 
> > 
> > 
> > This works because the data property in an itemRenderer contains 
all of
> > the fields for a row in a dataGrid's dataProvider.
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, Manu Dhanda 
> > wrote:
> > >
> > >
> > > Ok, one more idea, but not sure about it's performance.
> > > Just use a viewstack with your custom itemrenderer and use a 
text
> > component
> > > to implement your blank box logic, keeping the text="".
> > > Here is my idea:
> > >
> > > 
> > > 
> > >
> > > 
> > >  > > itemRenderer="..MyCheckBox" />
> > >
> > > 
> > > 
> > >
> > > MyCheckBox.mxml:
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > horizontalAlign="center">
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > Thanks,
> > > Manu.
> > >
> > >
> > > anthony_morsey wrote:
> > > >
> > > > Thanks, but this technique seems to work for all values in the
> > column,
> > > > not just the value in each individual row. It seems that if 
one of
> > > > the values for grant_year in a column meets the condition, 
then all
> > > > checkboxes are either hidden or visible. I want to do this 
row by
> > row
> > > > and turn visible on or off based on the grant_year value in 
that
> > row.
> > > >
> > > > Any other ideas?
> > > >
> > > > Thanks
> > > >
> > > > --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dhanda@
> > wrote:
> > > >>
> > > >>
> > > >> Here it is:
> > > >> 
> > > >> 
> > > >>
> > > >> 
> > > >>
> > > >>  > > >> itemRenderer="mx.controls.CheckBox"
> > visible="{!grant_year=='somevalue'
> > > >> implement ur logic here}"/>
> > > >>
> > > >> 
> > > >>  > > >>
> > > >>
> > > >>
> > > >> anthony_morsey wrote:
> > > >> >
> > > >> > Here is my code:
> > > >> >
> > > >> > 
> > > >> > 
> > > >> >
> > > >> > 
> > > >> >
> > > >> >  > > >> > itemRenderer="mx.controls.CheckBox" />
> > > >> >
> > > >> > 
> > > >> >  > > >> >
> > > >> >
> > > >> >
> > > >> > I want to hide the "cashoutshares" column (or turn off the
> > > >> > itemrenderer in that column) based on the data value of
> > "grant_year".
> > > >> >
> > > >> > Thanks
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --- In flexcoders@yahoogroups.com, "jmfillman" 
> > wrote:
> > > >> >>
> > > >> >> Anthony,
> > > >> >>
> > > >> >> If you are passing the data from the columns of each row 
to the
> > > >> >> itemRenderer, you should be able to set visibility 
conditions
> > > > from the
> > > >> >> itemRenderer.
> > > >> >>
> > > >> >> If you post your code, I or someone else here might be 
able to
> > > > provide
> > > >> >> a more specific suggestion.
> > > >> >>
> > > >> >> JF
> > > >> >> --- In flexcoders@yahoogroups.com, "anthony_morsey" 

> > wrote:
> > > >> >> >
> > > >> >> > I have a datagrid with multiple columns and rows. One 
of the
> > > > columns
> > > >> >> > contains a checkbox which is rendered with an 
itemRenderer.
> > > > I'd like
> > > >> >> > to conditionally hide some of these checkboxes based on 
values
> > from
> > > >> >> > other columns with the same row.
> > > >> >> >
> > > >> >> > Any ideas?
> > > >> >> >
> > > >> >> > Thanks
> > > >> >> >
> > > >> >>
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > > >> --
> > > >> View this message in context:
> > > >
> >
> http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-
tp1767\
> > 3007p17688100.html
> > > >> Sent from the FlexCoders mailing list archive at Nabble.com.
> > > >>
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> >
> http://www.nabble.com/hiding-a-cell-within-a-datagrid-dynamically-
tp1767\
> > 3007p17703698.html
> > > Sent from the FlexCoders mailing list archive at Nabble.com.
> > >
> >
>




[flexcoders] Re: Any best-practice for labelField="field.innerField" on things like DataGridC

2008-06-11 Thread Tim Hoff

The only problem with using labelFunctions or itemRenderers for this, is
that the default sort mechanism (column header click) doesn't work (see
historical low).  To avoid having to write sortCompareFunctions,
sometimes its easier to just bite the bullet and manually add the nested
fields to the top level of the VO; so the object is flat.  I know its
redundant, but it works with little effort.

-TH

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's a DeepDataGridColumn example on my blog that can do simple
> field.subfield
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of ben.clinkinbeard
> Sent: Tuesday, June 10, 2008 7:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Any best-practice for
> labelField="field.innerField" on things like DataGridC
>
>
>
> I don't think you can do field.subField but you could use
> labelFunctions to accomplish essentially the same thing. Heck, you
> might even be able to set dataField = "field.subField" and then use a
> generic labelFunction that does something like return
> data[column.dataField]. Just a guess on that part but labelFunction is
> definitely the core of what you'll need.
>
> HTH,
> Ben
>
> --- In flexcoders@yahoogroups.com

> , "Josh McDonald" dznuts@ wrote:
> >
> > Hey guys,
> > Is there a well-used trick to reference "field.subField" rather than
> just
> > "field" when setting up datagrid columns? I'd rather not have to
> flatten my
> > DTOs or add a bunch of redundant get functions if possible - the DTO
> is
> > bindable and the fields are just public vars.
> >
> > Cheers,
> > -Josh
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: josh@
> >
>





[flexcoders] Re: scrolling prob on itemrenderers

2008-06-11 Thread Tim Hoff

Hi Ibo,

Try setting  mouseEnable="false" and mouseChildren="false" on the
container in the itemRenderer (not the textArea, rather it's parent
container).

-TH

--- In flexcoders@yahoogroups.com, ibo <[EMAIL PROTECTED]> wrote:
>
> I have created a custom ItemRenderer with a textarea in it. This
ItemRenderer is being used in a DataGrid. If the mouse pointer is over
the textarea(ItemRenderer), the datagrid doesnt react to any mouse wheel
movement.
> How I enable the DataGrid to receive the mouse wheel events when the
mouse is over that textarea?
>





[flexcoders] Re: Datatips not working in datagrid??

2008-06-12 Thread Tim Hoff

Hey Josh,



-TH

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
> It seems my dataTips aren't working for some reason :S
>
> 
>
> 
>
>  labelFunction="{ dateLabeller }" width="95"/>
>
>  dataTipField="clientName"/>
>
>  labelFunction="{currencyLabeller
> }"/>
>
>  />
>
>  labelFunction="{ dateLabeller }" width="95"/>
>
> 
>
>  labelFunction="{dateLabeller
> }" width="95"/>
>
>  labelFunction="{ currencyLabeller }"/>
>
>  labelFunction="{ currencyLabeller }"/>
>
>  labelFunction="{numberLabeller
> }" width="40"/>
>
> 
>
> 
>
> 
>
> 
>
> My values turn up fine, but I'm not getting tooltips for values... Is
there
> something obvious I've forgotten to do?
>
> Cheers,
> -Josh
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] Re: Extra pixels on right side of TileList.

2008-06-13 Thread Tim Hoff

Hi Amy,

Just a thought, but what happens if you take width="100%" off of the
tile list, or set the width and columnWidth to explicit values?  Does
the extra space still show up?  And, did you try Alex's suggestion to
add paddingRight="0" to the tile list?  Because of the bindings and
itemRenderers, its not possible to fiddle with your example directly. 
Oh, and you might want to take out the extra period on the right side of
the screenshot link. :)

-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Troy Gilbert" troy.gilbert@
> wrote:
> >
> > I'm not sure if it applies in this case, but TileList definitely has
> > some bugs in its measuring and layout code (or at least did in Flex
2
> > -- not sure if they fixed it). In particular, when calculating its
> > preferred width it basically does (itemRenderer.width +
horizontalGap)
> > * numColumns. That's one extra horizontalGap in there... possible
the
> > extra space you're seeing on the end?
> >
> > In several pixel-perfect layouts I've had to actually *not* use
> > TileList because of the bug... though at the time I wasn't aware of
> > the technique of monkey-patching (where if you create a class in the
> > project that matches a class in the SDK the project class overwrites
> > it), which would eliminate the need to modify the SDK source (which
I
> > generally avoid).
>
> I couldn't find a horizontalGap property on TileList, and trying to
> manually add a tag when the code hinting said no just resulted in a
> compiler error.
>
> Could you tell me a bit more about monkey patching? Where does the
> file need to be, and how do you get it to be picked up as if it were
in
> the mx namespace?
>
> Thanks;
>
> Amy
>





[flexcoders] Re: Extra pixels on right side of TileList.

2008-06-13 Thread Tim Hoff

>When I take off the 100%, it is a lot smaller on the left hand side of
the screen (not using the full width of the tabBar).

Yes, but are the extra pixels still there?  This could be a case of
mismatched explicit dimensions (list and itemRenderer), or a mix between
explicit and percentage based measure/layout.  Was interested to see
what happens when you test out the different combinations.

-TH

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> By debugging a simple test case. Can you make one and post it?
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Amy
> Sent: Friday, June 13, 2008 1:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Extra pixels on right side of TileList.
>
>
>
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> , "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi Amy,
> >
> > Just a thought, but what happens if you take width="100%" off of the
> > tile list, or set the width and columnWidth to explicit values? Does
> > the extra space still show up? And, did you try Alex's suggestion to
> > add paddingRight="0" to the tile list? Because of the bindings and
> > itemRenderers, its not possible to fiddle with your example
directly.
> > Oh, and you might want to take out the extra period on the right
side
> of
> > the screenshot link. :)
>
> paddingLeft and paddingRight are ignored. I tried setting them to some
> really high number just to see, and nothing happened.
>
> When I take off the 100%, it is a lot smaller on the left hand side of
> the screen (not using the full width of the tabBar). But one of the
> reasons I like Flex is because it has the capability of liquid layouts
> similar to HTML. I guess I should be thankful that Flex automatically
> got that close, even though the native size of the itemRenderer is
> smaller...
>
> How do most people handle this sort of problem?
>
> -Amy
>




[flexcoders] Re: HELP - iTunes look and feel

2008-06-14 Thread Tim Hoff

http://www.scalenine.com/ 

-TH

--- In flexcoders@yahoogroups.com, "pic.micro23" <[EMAIL PROTECTED]>
wrote:
>
> Hello - I learning FLEX and I saw somewhere an RSS reader created with
> FLEX/AIR with sourcecoder that had the look and feel (skin).
>
> I have searched and had not found it. If somebody have seen it please
> let me know the url.
>
>
> Sorry to pollute the list with this question.
>
> Thx
>




[flexcoders] Re: Move and Resize effect on panel

2008-06-16 Thread Tim Hoff

Hi Steve,

Would usually use state transitions for this, with a shorter duration,
but the code below works the same way.  Effects are smoothest when you
set the from and to values.  Not as smooth if you are applying an effect
on a component that is percentage size based.  For these, change
something else that has a fixed size, and let the framework do the work
for you.  So, instead of applying the effects to panelRight, perform
them on middlePanel.

-TH



http://www.adobe.com/2006/mxml";
layout="absolute"

verticalScrollPolicy="off" horizontalScrollPolicy="off">









































































--- In flexcoders@yahoogroups.com, "Steve Mathews" <[EMAIL PROTECTED]> wrote:
>
> I have a layout of three panels in an HBox. The first and second are
> 100px wide and the third is 100%. I need to show/hide the middle
> panel. When this happens I would like the third panel to move/resize
> to fill the space. The problem is I have tried using view
> states/transitions and just moveEffect/resizeEffect, but it all looks
> horrible. Below is an example of the layout. Is there a
> better/different way to do this that would give me a nice effect?
>
> Thanks.
>
> 
> http://www.adobe.com/2006/mxml";
layout="absolute"
> verticalScrollPolicy="off" horizontalScrollPolicy="off">
> 
> 
> 
>
> 
> 
>
>  verticalScrollPolicy="off" horizontalScrollPolicy="off">
>  height="100%" layout="absolute">
> 
>  includeInLayout="{middleVisible}" width="100" height="100%"
> layout="absolute">
> 
>  resizeEffect="middleResize" width="100%" height="100%"
> layout="absolute">
> 
> 
> 
>




[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-16 Thread Tim Hoff

Hi Anotole,

This topic has been brought up several times since this list was
established.  At times, it does seem that the post topics are very
diverse.  However, with the clear exception of flexcomponents, the
suggestion to split the list into sub groups has been consistantly
avoided; to reduce the number of feeds that the primary responders to
the list have to monitor.  It would be near impossible for the Adobe
experts, and others on this list, to regulary respond to the wide
variety of posts that are made if they had to watch 12 different lists. 
Agreed, like RSS feeds, the inbox gets full rather quickly.  Just using
the Yahoo interface, to scan messages, works great and doesn't take up
much time at all though.  And yes, there are frequent questions by
people that are new to flex.  I look at helping people that are just
starting as paying it forward.  The mix on this list is diverse, but
people can always go to the Adobe Flex forums; if they want more
specialized focus.  I don't want to sound like I'm not agreeing with
your proposal; it has merit.  However, it would probably splinter the
group too much.  If anything, I think the quality and focus would be
improved if people tried to limit the posts/responses to Flex related
issues.  That would probably reduce the inbox clutter by 1/3.  :-)

-TH

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> Dear All,
> Flexcoders has huge problem. In the last 15 month it is very much
> stagnant in terms of message count and participation. It is not
growing and
> dropping members as fast as it gets them.
>
> I believe this group has overgrown the optimal size about a year ago
and
> needs to be divided in more focused smaller groups. My mail box get
100+
> messages a day on all kinds of topic - unless I can spend 30+ minutes
that
> day to sort them out it goes directly into garbage can. Most people in
the
> company unsubscribed from it 18 month ago. Most of veteran developers
I know
> either unsubscribed or stopped looking in this mess greatly
diminishing the
> quality of the responses. As a result group mostly host new developers
and
> looses most of experienced ones after very short period of time.
>
> Further delay of breaking this group hinders usefulness of the group
for all
> of us as now we have significant amount of users that are being forced
out.
> I believe it is time to archive flexcoders and branch (12?) targeted
new
> user groups
>
> I would like to see people suggesting user subgroups and WiKi topics
for
> Flex community site to go with each group - providing best posts in
more
> systematic way.
>
> I suggest the following Yahoo groups ( created couple for your
> convenience).
>
> Flex101: http://tech.groups.yahoo.com/group/flex101/
>
> Post message: [EMAIL PROTECTED]
>
> Subscribe: [EMAIL PROTECTED]
>
> Unsubscribe: [EMAIL PROTECTED]
>
> List owner: [EMAIL PROTECTED]
>
> EnterpriseFlex: http://tech.groups.yahoo.com/group/enterpriseflex/
>
> Post message: [EMAIL PROTECTED]
>
> Subscribe: [EMAIL PROTECTED]
>
> Unsubscribe: [EMAIL PROTECTED]
>
> List owner: [EMAIL PROTECTED]
>
> FlexUI
> FlexDesign
>
> FlexSDK
> FlexDeployment
>
> FlexFlash
>
> FlexFrameworks
>
> FlexBestPractices
>
> EnterpriseFlex:
>
> FlexBlazeDS:
>
> weborb:
>
> Sincerely,
> Anatole Tartakovsky
> Farata Systems
>





[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-16 Thread Tim Hoff
My appologies Anatole; I mispelled your name.  No offense intended.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Anotole,
> 
> This topic has been brought up several times since this list was
> established.  At times, it does seem that the post topics are very
> diverse.  However, with the clear exception of flexcomponents, the
> suggestion to split the list into sub groups has been consistantly
> avoided; to reduce the number of feeds that the primary responders 
to
> the list have to monitor.  It would be near impossible for the Adobe
> experts, and others on this list, to regulary respond to the wide
> variety of posts that are made if they had to watch 12 different 
lists. 
> Agreed, like RSS feeds, the inbox gets full rather quickly.  Just 
using
> the Yahoo interface, to scan messages, works great and doesn't take 
up
> much time at all though.  And yes, there are frequent questions by
> people that are new to flex.  I look at helping people that are just
> starting as paying it forward.  The mix on this list is diverse, but
> people can always go to the Adobe Flex forums; if they want more
> specialized focus.  I don't want to sound like I'm not agreeing with
> your proposal; it has merit.  However, it would probably splinter 
the
> group too much.  If anything, I think the quality and focus would be
> improved if people tried to limit the posts/responses to Flex 
related
> issues.  That would probably reduce the inbox clutter by 1/3.  :-)
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
>  wrote:
> >
> > Dear All,
> > Flexcoders has huge problem. In the last 15 month it is very much
> > stagnant in terms of message count and participation. It is not
> growing and
> > dropping members as fast as it gets them.
> >
> > I believe this group has overgrown the optimal size about a year 
ago
> and
> > needs to be divided in more focused smaller groups. My mail box 
get
> 100+
> > messages a day on all kinds of topic - unless I can spend 30+ 
minutes
> that
> > day to sort them out it goes directly into garbage can. Most 
people in
> the
> > company unsubscribed from it 18 month ago. Most of veteran 
developers
> I know
> > either unsubscribed or stopped looking in this mess greatly
> diminishing the
> > quality of the responses. As a result group mostly host new 
developers
> and
> > looses most of experienced ones after very short period of time.
> >
> > Further delay of breaking this group hinders usefulness of the 
group
> for all
> > of us as now we have significant amount of users that are being 
forced
> out.
> > I believe it is time to archive flexcoders and branch (12?) 
targeted
> new
> > user groups
> >
> > I would like to see people suggesting user subgroups and WiKi 
topics
> for
> > Flex community site to go with each group - providing best posts 
in
> more
> > systematic way.
> >
> > I suggest the following Yahoo groups ( created couple for your
> > convenience).
> >
> > Flex101: http://tech.groups.yahoo.com/group/flex101/
> >
> > Post message: [EMAIL PROTECTED]
> >
> > Subscribe: [EMAIL PROTECTED]
> >
> > Unsubscribe: [EMAIL PROTECTED]
> >
> > List owner: [EMAIL PROTECTED]
> >
> > EnterpriseFlex: http://tech.groups.yahoo.com/group/enterpriseflex/
> >
> > Post message: [EMAIL PROTECTED]
> >
> > Subscribe: [EMAIL PROTECTED]
> >
> > Unsubscribe: [EMAIL PROTECTED]
> >
> > List owner: [EMAIL PROTECTED]
> >
> > FlexUI
> > FlexDesign
> >
> > FlexSDK
> > FlexDeployment
> >
> > FlexFlash
> >
> > FlexFrameworks
> >
> > FlexBestPractices
> >
> > EnterpriseFlex:
> >
> > FlexBlazeDS:
> >
> > weborb:
> >
> > Sincerely,
> > Anatole Tartakovsky
> > Farata Systems
> >
>




[flexcoders] Re: change bindings witin mx:State

2008-06-17 Thread Tim Hoff

Hi Hongsheng,

You could bind a variable to the x value of tryMe, and update the value
of the variable when the state changes.  Or, use a tenery statement
(ugly for this):


wrote:
>
> Can someone please help me out on how to change variable binding when
> changing state? For example, I have something like below to align a
> Canvas' right edge to the center of my stage
>
>  x="{this.width/2.0 - tryMe.width}"
> ...
> />
>
>
> And when changing states I'd like it to align to a different line,
> something like below:
>
>  ...
> />
>
> Thanks,
> Hongsheng
>





[flexcoders] Re: change bindings witin mx:State

2008-06-17 Thread Tim Hoff
tenery - read ternary

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Hongsheng,
> 
> You could bind a variable to the x value of tryMe, and update the 
value
> of the variable when the state changes.  Or, use a tenery statement
> (ugly for this):
> 
>  
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Hongsheng Chen" 

> wrote:
> >
> > Can someone please help me out on how to change variable binding 
when
> > changing state? For example, I have something like below to align 
a
> > Canvas' right edge to the center of my stage
> >
> >  > x="{this.width/2.0 - tryMe.width}"
> > ...
> > />
> >
> >
> > And when changing states I'd like it to align to a different line,
> > something like below:
> >
> >  > ...
> > />
> >
> > Thanks,
> > Hongsheng
> >
>




[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Tim Hoff

Doug,

Here are the numbers.  looks pretty consistant; once the critical mass
was reached.

-TH

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec  2008 3282
   3513
   3859
   3476
   2848
   1798
 
2007 3444 
3059   
3747   
2912   
3097   
3558   
2740   
3299   
3334   
3373   
2799   
2483    
2006 1300 
2138   
2673   
2138   
3027   
3586   
3854   
3473   
2583   
2862   
3127   
2194    
2005 1672 
1372   
1891   
1924   
1839   
1733   
1571   
1383   
1286   
1852   
1708   
1260    
2004   66   
499    433
   623
   806
   939
   686
   811
   1320
   1261

--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> Actually, this is worth going back to, because your initial email said
that
> the group was "stagnant" and has plateaued with the number of new
users and
> questions. Except your reason for bringing it up is that the traffic
has
> gotten too much for you to read every message. So clearly the level of
> traffic isn't stagnant. Unless what you're saying is that about 6
months ago
> the traffic reached a critical level where you couldn't deal with the
> traffic but then it stopped growing.
>
> So I guess I'm saying I question the claim that this list is
"stagnant".
> Almost 10,000 members and an average of 100 messages a day. Are you
saying
> that these stats have been the same for the past 6 months? And even if
that
> is true (although I'd like to see numbers before I accept that) then I
don't
> even necessarily think that this indicates that there's a problem.
There's a
> simple fact that a ton of questions have already been accurately
answered by
> this list. I would hope that the archived knowledge of the list serves
to
> answer more and more questions that newcomers have, meaning they don't
need
> to post t

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Tim Hoff

No words to eat man.  Those numbers also indicate that there hasn't been
a sudden explosion in message volume recently.  It's been consitant for
years.So, the need to drastically re-structure because of the Inbox
doesn't fly.  Stagnation, perhaps.   Less un-answered questions being
asked.  Anyway, change or not, its all good.

-TH

--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> OK, I eat my words in terms of message growth then :) Touche. Thanks
for
> those stats. I'd actually be interested in getting access to the raw
data
> dump for the entire list to run some analysis, but that's getting off
topic.
>
> Just one point, which has already been brought up, but now that we're
> looking at #s, here are the #s for flexcomponents (note also that this
> doesn't discount for cross-posts to flexcoders as well, which I assume
are a
> large portion too):
>
> Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2008
> 159
> 153 
> 88
> 59 
> 45
> 39 
>
>
>
>
>
> 2007 190

> 234 
> 442
> 149 
> 168
> 260 
> 103
> 183 
> 96
> 119 
> 129
> 140 
2006
>
>
>
>
>
> 297 
> 68
> 211 
> 89
> 184 
> 237
> I'm not saying that if you split the group all the small groups will
follow
> that fate, but as everyone has mentioned, flexcomponents was
specifically
> made to try to keep custom component development out of the main
flexcoders
> mailing list, and I don't think anyone will argue that that has
worked.
>
> Doug
>
>
> On Tue, Jun 17, 2008 at 3:15 PM, Anatole Tartakovsky <
> [EMAIL PROTECTED] wrote:
>
> > Doug,
> > As far as I know, I am the only one in the NY office who did not
> > unsubscribe from the group. Looks at the stats ( provided by Tim) or
just go
> > to the group page. Also, the number of users if I remember it
correctly has
> > been in 9K for at least 6 month - meaning you have the same number
of
> > people in and OUT - obviously you need to ask Matt if he has more
detailed
> > stats on unsubscribes count.
> > Regards,
> > Anatole
> >
> > On Tue, Jun 17, 2008 at 5:35 PM, Doug McCune [EMAIL PROTECTED] wrote:
> >
> >> Actually, this is worth going back to, because your initial email
said
> >> that the group was "stagnant" and has plateaued with the number of
new users
> >> and questions. Except your reason for bringing it up is that the
traffic has
> >> gotten too much for you to read every message. So clearly the level
of
> >> traffic isn't stagnant. Unless what you're saying is that about 6
months ago
> >> the traffic reached a critical level where you couldn't deal with
the
> >> traffic but then it stopped growing.
> >>
> >> So I guess I'm saying I question the claim that this list is
"stagnant".
> >> Almost 10,000 members and an average of 100 messages a day. Are you
saying
> >> that these stats have been the same for the past 6 months? And even
if that
> >> is true (although I'd like to see numbers before I accept that)
then I don't
> >> even necessarily think that this indicates that there's a problem.
There's a
> >> simple fact that a ton of questions have already been accurately
answered by
> >> this list. I would hope that the archived knowledge of the list
serves to
> >> answer more and more questions that newcomers have, meaning they
don't need
> >> to post the questions over and over.
> >>
> >> What is the real problem? I haven't heard anyone say that the
traffic on
> >> this single list has stopped them from asking any questions
(although I'm
> >> ope

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Tim Hoff

Nope, obviously not "all good" for you.   It's slang, so I'm sorry if
there was something lost in the translation.  It specifically means that
its not worth getting worked up over.The sky is falling. :-)

-TH

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> Tim,
> Stagnant is definetly not good for developing technology. It is also
> unlikely to be "all good". Flexcoders increased 30% in 9 month ( from
7,500
> to 9965) since August of 2007. The number of messages for the first 5
month
> increased approx 5% from the year before - even with major release
this year
> and fewer news last year. In the same time (since August 2007) our
Flex
> related blogs got sustainable increase of over 100% unique users and
that
> number is quite higher then the number of flexcoders. Very unlikely
given
> prominent place Adobe gives to this user group that number of
flexcoders
> should not increase even faster.
> It is either usability problem or we are just lucky. Adobe has to run
> extended stats on subscription / unsubscription dynamics and decide
what to
> do.
> Regards,
> Anatole
>
>
>
>
>
> On Tue, Jun 17, 2008 at 7:31 PM, Tim Hoff [EMAIL PROTECTED] wrote:
>
> >
> > No words to eat man. Those numbers also indicate that there hasn't
been
> > a sudden explosion in message volume recently. It's been consitant
for
> > years. So, the need to drastically re-structure because of the Inbox
> > doesn't fly. Stagnation, perhaps. Less un-answered questions being
> > asked. Anyway, change or not, its all good.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com ,
"Doug
> > McCune" doug@ wrote:
> > >
> > > OK, I eat my words in terms of message growth then :) Touche.
Thanks
> > for
> > > those stats. I'd actually be interested in getting access to the
raw
> > data
> > > dump for the entire list to run some analysis, but that's getting
off
> > topic.
> > >
> > > Just one point, which has already been brought up, but now that
we're
> > > looking at #s, here are the #s for flexcomponents (note also that
this
> > > doesn't discount for cross-posts to flexcoders as well, which I
assume
> > are a
> > > large portion too):
> > >
> > > Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2008
> > >
159<http://tech.groups.yahoo.com/group/flexcomponents/messages/3300>
> > > 153
<http://tech.groups.yahoo.com/group/flexcomponents/messages/3459>
> > >
88<http://tech.groups.yahoo.com/group/flexcomponents/messages/3612>
> > > 59
<http://tech.groups.yahoo.com/group/flexcomponents/messages/3700>
> > >
45<http://tech.groups.yahoo.com/group/flexcomponents/messages/3759>
> > > 39
<http://tech.groups.yahoo.com/group/flexcomponents/messages/3804>
> > >
> > >
> > >
> > >
> > >
> > > 2007 190
> > <http://tech.groups.yahoo.com/group/flexcomponents/messages/1087>
> > > 234
<http://tech.groups.yahoo.com/group/flexcomponents/messages/1277>
> > >
442<http://tech.groups.yahoo.com/group/flexcomponents/messages/1511>
> > > 149
<http://tech.groups.yahoo.com/group/flexcomponents/messages/1953>
> > >
168<http://tech.groups.yahoo.com/group/flexcomponents/messages/2102>
> > > 260
<http://tech.groups.yahoo.com/group/flexcomponents/messages/2270>
> > >
103<http://tech.groups.yahoo.com/group/flexcomponents/messages/2530>
> > > 183
<http://tech.groups.yahoo.com/group/flexcomponents/messages/2633>
> > >
96<http://tech.groups.yahoo.com/group/flexcomponents/messages/2816>
> > > 119
<http://tech.groups.yahoo.com/group/flexcomponents/messages/2912>
> > >
129<http://tech.groups.yahoo.com/group/flexcomponents/messages/3031>
> > > 140
<http://tech.groups.yahoo.com/group/flexcomponents/messages/3160>
> > 2006
> > >
> > >
> > >
> > >
> > >
> > > 297 <http://tech.groups.yahoo.com/group/flexcomponents/messages/1>
> > > 68<http://tech.groups.yahoo.com/group/flexcomponents/messages/298>
> > > 211
<http://tech.groups.yahoo.com/group/flexcomponents/messages/366>
> > > 89<http://tech.groups.yahoo.com/group/flexcomponents/messages/577>
> > > 184
<http://tech.groups.yahoo.com/group/flexcomponents/messages/666>
> > >
237<http://tech.groups.yahoo.com/group/flexcomponents/messages/850>
> > > I'm not saying that if you split the group all the 

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-17 Thread Tim Hoff

Hey Matt,

Appreciate you taking the time to stay in touch with this list.  It
sounds like Adobe has some great plans for the Flex forums that might
improve the experience that people have commented on.  I look forward to
see what the somewhat near future brings.  The only thing that I can say
is that it is our diversity that helps us evolve and grow.  This thread
is a perfect example; many differrent opinions, but one place to discuss
them.  I personally like this list the way that it is, but absolutely
appreciate everyone's opinion and hope that the Adobe forums become a
place for more granular posts.  For this list though, there's not a day
that goes by when I don't scan a topic that isn't related to my work,
but gives an insight to another side of flex.  While there are those
that would want to isolate us into compartmnents, I think that having a
general community list provides value to all of us.

-TH

--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
> As far as stats, we've had about 100 people join in the last week. I
don't know how many folks unsubscribed, that seems to be a little harder
to track easily and I don't have time to read through all the logs (if
someone would like to write some scripts to go through the logs and
build up these kinds of stats let me know and I'll get you access). Also
hard to know how many of the folks who joined are spammers, but I don't
think that many :-)
>
> This is a tough position for me to comment on because we want the
community to thrive and have a life of its own that isn't controlled by
Adobe. That said, we clearly want to see it succeed and will involve
ourselves as necessary to try to make that happen.
>
> Based on the comments I'm seeing in this thread I don't see the big
clamor to divide the list. I see folks who have figured out workflows
that work for them, and suggestions for how to make things more
manageable. That said, the issue that Anatole raises is whether we are
preventing new users from getting help, or preventing advanced users
from participating. Most of those folks who have been "hurt" we can
assume are folks who are not on the list anymore, so it's difficult to
really know without some sort of data as to why they left the list. If
people are willing to wait a few weeks, maybe we could work on trying to
gather that data and make a decision after. Another piece of data we
could use is an analysis of the kinds of posts that have happened
recently, perhaps compared to posts from a year ago, and see if the
skill level of posters is increasing, how many threads are going un
answered, semi-subjective view of signal vs. noise. This would help us
understand if there is meaning behind the low rate of increase in total
number of members, as well as the generally flat nature of posts per
month.
>
> Does doing this kind of analysis interest anyone? Are the folks who
advocate separating the list interested in waiting for this kind of
analysis? For me, it seems kind of critical to have real data before
making this kind of decision, as we're going with hunches as to what's
really happening here. I'd have a hard time getting behind a real split
when we don't know if doing so would actually improve things.
>
> Matt
>
>
> On 6/17/08 3:15 PM, "Anatole Tartakovsky" [EMAIL PROTECTED]
wrote:
>
>
>
>
> Doug,
> As far as I know, I am the only one in the NY office who did not
unsubscribe from the group. Looks at the stats ( provided by Tim) or
just go to the group page. Also, the number of users if I remember it
correctly has been in 9K for at least 6 month - meaning you have the
same number of people in and OUT - obviously you need to ask Matt if he
has more detailed stats on unsubscribes count.
> Regards,
> Anatole
>
> On Tue, Jun 17, 2008 at 5:35 PM, Doug McCune [EMAIL PROTECTED] wrote:
> Actually, this is worth going back to, because your initial email said
that the group was "stagnant" and has plateaued with the number of new
users and questions. Except your reason for bringing it up is that the
traffic has gotten too much for you to read every message. So clearly
the level of traffic isn't stagnant. Unless what you're saying is that
about 6 months ago the traffic reached a critical level where you
couldn't deal with the traffic but then it stopped growing.
>
> So I guess I'm saying I question the claim that this list is
"stagnant". Almost 10,000 members and an average of 100 messages a day.
Are you saying that these stats have been the same for the past 6
months? And even if that is true (although I'd like to see numbers
before I accept that) then I don't even necessarily think that this
indicates that there's a problem. There's a simple fact that a ton of
questions have already been accurately answered by this list. I would
hope that the archived knowledge of the list serves to answer more and
more questions that newcomers have, meaning they don't need to post the
questions over and over.
>
> What is the real problem? I haven't hea

[flexcoders] Re: ColumnSet vs Multiple axes

2008-06-18 Thread Tim Hoff

Hi Richard,

For a work-around, first give each ColumnSeries an id.  If you also want
to change the z-order, give the ColumnSet an id as well.  Then, on
CreationComplete, do something like this to offset the columns and/or
change the depth.

private function onCreationComplete(): void
{
 // offset columns
 myFirstColumnSeries.move(-8,0);
 mySecondColumnSeries.move(myFirstColumnSeries.x+16,0);

 // change depth (z-order)
 myColumnSet.swapChildren(myFirstColumnSeries,mySecondColumnSeries);
}

-TH

--- In flexcoders@yahoogroups.com, "Richard Rodseth" <[EMAIL PROTECTED]>
wrote:
>
> I sent code to Sunil and Sangavi demonstrating the bug.
> Now I'm looking for a workaround.
> If two ColumnSeries (different date axes) are displayed at the same
> location, I would like to be able to see both columns clearly, eg.
through
> stroke/fill/alpha choices or by offsetting them somehow to simulate a
> cluster. Say the colors are red and green. With a low alpha value and
red
> and green strokes, I can at least ensure that there's a visible red or
green
> line at the top of the column, but one of the columns is always on top
in
> the z-order, regardless of column height. Perhaps a pair of custom
> BoxItemRenderers that halve the box?
> Any other ideas? Thanks.
>
>
> On Sun, Jun 1, 2008 at 11:28 PM, Sunil Bannur [EMAIL PROTECTED] wrote:
>
> > Can you send a snippet of your code or screenshot for more help.
> >
> >
> >
> > Thanks
> >
> > -Sunil
> >
> >
> >
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Richard Rodseth
> > *Sent:* Thursday, May 29, 2008 10:33 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] ColumnSet vs Multiple axes
> >
> >
> >
> > I have two column series related to distinct horizontal axes (of
type
> > DateTimeAxis).
> >
> > If I include the two series without wrapping them in a ColumnSet,
the
> > columns from each series display overlaid on each other.
> >
> > However, if I wrap them in a ColumnSet of type "clustered", only one
> > series displays. Has anyone else encountered this?
> >
> > Thanks in advance.
> >
> >
> >
>




[flexcoders] Re: Parent column of ItemRenderer

2008-06-18 Thread Tim Hoff

Hi Zee,

You can determine the column by looking at listData.columnIndex from
within the itemRenderer.

-TH


--- In flexcoders@yahoogroups.com, "Zee Yang" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a custom item renderer for an advanced data grid. My data grid
> has several columns sharing the same renderer. Is there a way for the
> renderer to tell which column it belongs to during runtime?
>




[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-18 Thread Tim Hoff

Very well put Joseph; quite impressive prose and insight.

-TH

--- In flexcoders@yahoogroups.com, Joseph Balderson <[EMAIL PROTECTED]> wrote:
>
> From the perspective of someone who in his opinion is only just edging
> into the "advanced" category in Flex, I've been a lurker for many
years
> but only just now gradually changing to a more active status on the
list.
>
> To me, the volume of emails to the list was intimidating, until I
> decided to manage my lists a little better through Thunderbird
> filtering, and be disciplined about the time I take every day to
review
> the list, so it doesn't impact my productivity, much like I do every
day
> with the MXNA.
>
> So I'm not convinced that splitting up the list simply to make things
> more efficient and the volume less intimidating for some people
> outweighs the potential risks. I agree with Tim Hoff (16/06/2008 10:53
> PM) -- my concern is less for new users and lurkers than it is for
> frequent posters who are the lifeblood of this community, having to
> divide their precious attention from one list to however-many, which
> would dilute the quality of all lists, and could ultimately lead to
> abandonment by regular users on all lists.
>
> A community such as this must be a delicate balance between questions
> and answers, new users and advanced users, lurkers and frequent
> contributors. My concern is that for many, the formula works, our
> numbers are steady, and there is still a huge number of A-list
> participation. In attempting to improve the list, we could be killing
it
> -- so we need to be very sure of our data before proceeding IMO.
>
>
> A FAQ would be very welcome, as would Doug's recommendation for most
> commonly asked threads, as would tags, regardless of what the decision
> is on the split.
>
> But I would request that FAQ links and tag keywords be indicated in
the
> signature of each email from the list, so that the many users who
don't
> use the yahoo list's web interface can easily find the info and know
> what tags to use without having to switch between their mail client
and
> a browser, otherwise having a FAQ and anything else apart from the
> emails is pointless.
>
> In fact, just having a FAQ and encouraging the use of tags could help
> many with list post management, and provide this list the "boost" it
> needs without taking drastic measures. This would be my request, and
my
> recommendation. In addition, we could even include in the FAQ some
"post
> management strategies," such as filtering, tagging and colour-coding
to
> help users manage the flow.
>
> And I would suggest an automated email generated by an algorithm with
> some text like "You have not posted in ___ months..." or "You have now
> unsubscribed..." followed by "please help us make flexcoders a better
> community experience by telling us why you have _"
>
> This would be a far less intrusive and intimidating follow up and data
> collection method than an email personally send from a moderator,
> especially one from Adobe. Some people might perceive such attention
as
> singling them out, and using an autogenerated email would eliminate
the
> manpower necessary to collect data on infrequent/unsubscribed
accounts.
>
> If we do decide to split the list at all, I would keep the number
small
> just to make sure. My recommendation would be to split things into
just
> three lists:
> flexcoders
> flexnewbie
> flexenterprise
>
> Even though the definitions are a little fuzzy, I think flexnewbie
could
> be defined as not the difficulty of the question but the experience
the
> user perceives themselves to be at, so there may very well be advanced
> and newbie questions on both lists, and that's okay. Likewise there
will
> probably be some crossover into the flexenterprise list. I think it's
> fair to say that questions involving a substantial amount of
"Java/data
> services/large teams/enterprise workflows" would qualify, without
> requiring the definition of "enterprise" be defined with scientific
> precision to participate. Too narrow a definition is a recipe for
> failure, any new the list needs to be defined without being too
> exclusive IMO.
>
> Thanks for listening,
>
> --
>
___
>
> Joseph Balderson | http://joeflash.ca
> Flex & Flash Platform Developer | Abobe Certified Developer & Trainer
> Author, Professional Flex 3 (coming Winter 2008)
> Staff Writer, Community MX |
http://communitymx.com/author.cfm?cid=4674
>
>
>
> Tom Chiverton wrote:
> > On Tuesday 17 Jun 2008, Matt Chotin wrote:
> >&

[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-19 Thread Tim Hoff

LOL - We're here to Flex.. [ clap ] ..you up!

-TH

--- In flexcoders@yahoogroups.com, "Merrill, Jason" <[EMAIL PROTECTED]>
wrote:
>
> I would recommend we shut down this list entirely, we all move to the
same city and join a gym where we meet up every morning and ask Flex
questions while we spot each other. We call it Flexbuilders.
>
> Jason Merrill
> Bank of America
> Global Technology & Operations & Global Risk L&LD
> eTools & Multimedia
>
> Join the Bank of America Flash Platform Developer Community
http://sharepoint.bankofamerica.com/sites/tlc/flash/default.as\
px>
>
> Are you a Bank of America associate interested in innovative learning
ideas and technologies?
> Check out our internal GT&O Innovative Learning Blog
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/default.\
aspx> & subscribe
http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layouts\
/SubNew.aspx?List=\{41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\}&Source=http:/\
/sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.aspx\
> .
>




[flexcoders] Re: way way OT: another "flex"?

2008-06-19 Thread Tim Hoff

16 city / 22 highway; oh yeah.  It's funny, when this site first came
out it was touted as being written in Flex.  Looks more like a Flash
site though.

-TH

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Just like the AIR bus tour, Matt and Ely will travel the country in a
> Ford Flex touting Flex 4 when it ships. Watch for them at a gas
station
> near you.
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of dnk
> Sent: Thursday, June 19, 2008 11:24 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: way way OT: another "flex"?
>
>
>
> never hurts to ask?
>
>
>
>
>
> On 19-Jun-08, at 10:13 AM, Matt Chotin wrote:
>
>
>
>
>
> Is it wrong of me to ask the company to buy one though just because of
> the synergy?
>
> On 6/19/08 8:28 AM, "simonjpalmer" [EMAIL PROTECTED]
>  > wrote:
>
> Looks more like the left-overs from the Range Rover parts bin...
>
>
http://www.autobytel.com/images/carcom/06_LandRover_RangeRover/400/06_RA
> NGE_ROVER_RngRvr_exfrpass34.jpg
>
 r/400/06_RANGE_ROVER_RngRvr_exfrpass34.jpg>
>
> --- In flexcoders@yahoogroups.com

>
 m> , Paul Hastings paul.hastings@
> wrote:
> >
> > found this serendipitously while googling for flex...i like the name
> but it
> > looks like a mini cooper on steroids ;-)
> >
> > http://www.fordvehicles.com/flex/

> >
>





[flexcoders] Re: way way OT: another "flex"?

2008-06-19 Thread Tim Hoff

That's what I thought.  I had read this blog post:
http://flexblog.faratasystems.com/?p=313
<http://flexblog.faratasystems.com/?p=313>

Thanks,
-TH

--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> It's Flash, I decompiled it. It's got scripts all over movieclips.
w.
>
> Doug
>
> On Thu, Jun 19, 2008 at 1:06 PM, Tim Hoff [EMAIL PROTECTED] wrote:
> >
> > 16 city / 22 highway; oh yeah. It's funny, when this site first came
> > out it was touted as being written in Flex. Looks more like a Flash
> > site though.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "Alex Harui" aharui@ wrote:
> >>
> >> Just like the AIR bus tour, Matt and Ely will travel the country in
a
> >> Ford Flex touting Flex 4 when it ships. Watch for them at a gas
> > station
> >> near you.
> >>
> >>
> >>
> >> 
> >>
> >> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
> > On
> >> Behalf Of dnk
> >> Sent: Thursday, June 19, 2008 11:24 AM
> >> To: flexcoders@yahoogroups.com
> >> Subject: Re: [flexcoders] Re: way way OT: another "flex"?
> >>
> >>
> >>
> >> never hurts to ask?
> >>
> >>
> >>
> >>
> >>
> >> On 19-Jun-08, at 10:13 AM, Matt Chotin wrote:
> >>
> >>
> >>
> >>
> >>
> >> Is it wrong of me to ask the company to buy one though just because
of
> >> the synergy?
> >>
> >> On 6/19/08 8:28 AM, "simonjpalmer" simonjpalmer@
> >> <mailto:simonjpalmer%40yahoo.com> > wrote:
> >>
> >> Looks more like the left-overs from the Range Rover parts bin...
> >>
> >>
> >
http://www.autobytel.com/images/carcom/06_LandRover_RangeRover/400/06_RA
> >> NGE_ROVER_RngRvr_exfrpass34.jpg
> >>
> >
<http://www.autobytel.com/images/carcom/06_LandRo!%0d%0a%20ver_RangeRove
> >> r/400/06_RANGE_ROVER_RngRvr_exfrpass34.jpg>
> >>
> >> --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> >>
> >
<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.co
> >> m> , Paul Hastings paul.hastings@
> >> wrote:
> >> >
> >> > found this serendipitously while googling for flex...i like the
name
> >> but it
> >> > looks like a mini cooper on steroids ;-)
> >> >
> >> > http://www.fordvehicles.com/flex/
> > <http://www.fordvehicles.com/flex/>
> >> >
> >>
> >
> >
>




[flexcoders] Re: showing the HandCursor over itemRenderers

2008-06-19 Thread Tim Hoff

Hi,

Here's one way:


 
 
 
 
 
 
 


-TH

--- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
>
> Hi, I have a list component, problem is the handCursor only shows by
> the edges, (yes, buttonMode=true, handCursor = true and
> mouseEnabled=false is set on my itemRenderer...
>
> Is there a way to make the handcursor to show up over the entire
> itemRenderer... or is there a way to force the handCursor to display
> some how?
>
> Thanks, Flex is bangin!
>




[flexcoders] Re: Cairngorm Event Question

2008-06-19 Thread Tim Hoff

Hey Don,

This Flex Show episode
  is very
informative.  Thomas Burleson, from UI, did a great job explaining the
Cairngorm UM extensions.  They certainly deserve consideration to be
rolled into Cairngorm proper.

-TH

--- In flexcoders@yahoogroups.com, "donvoltz" <[EMAIL PROTECTED]> wrote:
>
> Thanks for your responses.
>
> I agree with the idea that binding should work, I have set up 2
> datagrids with the same data provider, the standard data grid works
> fine when the model locator is updated, however, the advanced one
> does not. Is it because I am using a grouping tag with the advanced
> data grid that the refresh() is needed or should this work with
> binding as well?
>
> Also, I have looked at the UM Cairngorm. It looks interesting but a
> little beyond me. Do you have any recommendations for getting more
> information on using this than what is supplied at google code?? I do
> not understand the idea of event hooks.
>
> Thanks again for the useful information
>
> Don
>




[flexcoders] Re: Cairngorm Event Question

2008-06-19 Thread Tim Hoff
Ha, UM that is. 

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hey Don,
> 
> This Flex Show episode
> <http://www.theflexshow.com/blog/index.cfm/2008/4/9/The-Flex-Show--
Episo\
> de-41-Universal-Mind-Cairngorm-Extensions-w-Thomas-Burleson>  is 
very
> informative.  Thomas Burleson, from UI, did a great job explaining 
the
> Cairngorm UM extensions.  They certainly deserve consideration to be
> rolled into Cairngorm proper.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "donvoltz"  wrote:
> >
> > Thanks for your responses.
> >
> > I agree with the idea that binding should work, I have set up 2
> > datagrids with the same data provider, the standard data grid 
works
> > fine when the model locator is updated, however, the advanced one
> > does not. Is it because I am using a grouping tag with the 
advanced
> > data grid that the refresh() is needed or should this work with
> > binding as well?
> >
> > Also, I have looked at the UM Cairngorm. It looks interesting but 
a
> > little beyond me. Do you have any recommendations for getting more
> > information on using this than what is supplied at google code?? 
I do
> > not understand the idea of event hooks.
> >
> > Thanks again for the useful information
> >
> > Don
> >
>




[flexcoders] Re: Cairngorm Event Question

2008-06-20 Thread Tim Hoff

Hey Barry,

My comments, concerning Cairngorm from the beginning, is that there
needed to be a more robust method of informing the view that a gesture
head succeded or failed.  Probably my ignorance, and I'm totally open to
suggestion, but the UM extensions seeemed to solve the initial
Cairngorm; that in my practice came to light.  I welcome your sugestione
for a more universal persprective.

-TH

--- In flexcoders@yahoogroups.com, "barry.beattie" <[EMAIL PROTECTED]>
wrote:
>
> > They certainly deserve consideration to be
> > rolled into Cairngorm proper.
>
> hmmm, on listening to that podcast a while ago, I got the distinct
> impression that there was a - not a disagreement as such - but
> certainly a difference in viewpoint, especially for the reasons that
> UM went to the effort of developing it.
>
> I mean, Tom put forward a very articulate and persuasive case but
> should the extensions be part of the core or remain add-ins for people
> to decide for themselves?
>





[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-20 Thread Tim Hoff

I'll tell you honestly Anatole, I've been an enterprise developer for 25
years.  From EDLIN to Flex, I've seen it; so please don't propose that
you have some un-known insight to software development.  This list, and
the Macromedia based essence of theme for Flex that has been a huge
success, doesn't care about you or me.  I appreciate that you have been
able to benefit from Flex's success; but I question the motive to try
and tell Adobe how to run their business.  If you like the product,
cool.  If you don't, step off.

-TH

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> I guess, the majority of the group tends to like the way things are
now.
> That is hardly surprising given initial posting that most people who
do not
> like the current solution would unsubscribe.
> It also came to the light that enterprise developers have some
restrictions
> in selection of the client (email) software and problems with getting
too
> many messages. It is also obvious ( by monitoring the messages for few
month
> back) that the questions on "enterprise" topics are rarely followed
and
> some design questions are answered on a different level then the
original
> question. As a result, we see fewer of such messages
> lately. Potentially, enterprise part of Flex business might not be
getting
> fare share of attention.
>
> So, here is the question - if we create separate list to see the need
for
> enterprise list - would Adobe be willing to include links to it in the
usual
> places/promote it/assign moderators?
>
> Sincerely,
> Anatole Tartakovsky
> Farata Systems
> On Thu, Jun 19, 2008 at 6:01 PM, dnk [EMAIL PROTECTED] wrote:
>
> >
> > On 19-Jun-08, at 2:03 PM, brucewhealton wrote:
> >
> > Maybe we need groups for different users at different experience
> > levels. I think this list is so big that it is hard to find a
> > response or thread, especially when one posts a question and wants
to
> > find out if someone responded. I have to look and look to see if I
> > can find that thread anywhere, and it gets confusing when one sees
so
> > many similar, though different threads. I'd like a feature to show
me
> > threads that include messages where I've posted comments, questions,
> > or etc.
> >
> >
> > I tend to be one that prefers one list, and monitoring all
things (I
> > like to see what is out there and what else is going on with the
tech on all
> > levels). However with a little thought about this, the reality is
this, if
> > it stays as one, most are creating rules to manage or delete, etc.
anyways.
> > If we split, the same applies in some form or another. no one will
ever be
> > happy on all levels.
> >
> > So if the powers that be decide to split, go for it I will just
> > subscribe to all the relevant ones I wish to monitor and organize
how i want
> > (probably all dumped into a flex folder as it is now). But it gives
those
> > who wish for more relevance more power to do so. Either way I can
sort and
> > have the exact same info in my inbox. It just gives those who want a
more
> > targeted inbox the ability to do so. My only suggestion is to not
over
> > split. Pick your 5-10 (or what ever the magic number seems to be)
and go for
> > it.
> >
> > It is all a matter or preference, but one way (to split to a point)
seems
> > to offer more flexibility.
> >
> > Not even $0.02.. but
> >
> > dnk
> >
> >
> >
> >
> >
>




[flexcoders] Re: Cairngorm Event Question

2008-06-20 Thread Tim Hoff

I hear you João,

Binding to the model works the majority of the time.  However, it can
also add a significant amount of model variables, that are used stricly
for state, that can be eliminated with view call-backs.  It's clearly an
issue of preference, but I personally like what the guys at UM have done
to add a little more flexibily to the architecture.

-TH

--- In flexcoders@yahoogroups.com, João Fernandes
<[EMAIL PROTECTED]> wrote:
>
> Tim,
>
> I don't use UM extensions and I'm totally able to notify my views just
> with Cairngorm.
> What I use usually is a model ( no matter what it is ) that I inject
to
> my event , passes to the command and then on result/fault I update the
> same model. Since the model passes by reference, my view, which is
> listening (binding) to that model, can react to the 'notification'.
> --
>
> João Fernandes
>
> http://www.onflexwithcf.org
> http://www.riapt.org
> Portugal Adobe User Group (http://aug.riapt.org)
>





[flexcoders] Re: Splitting FlexCoders in smaller, focused groups

2008-06-20 Thread Tim Hoff

Good enough, best of luck.

-TH

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> Thank you for the honesty, Tim.
> >>This list, and the Macromedia based essence of theme for Flex that
has
> been a huge success, doesn't care about [enterprise developers
like]you or
> me<<
> I wonder how you got that impression. Are there many people that feel
that
> way?
>
> Flex has enterprise side to it and is promoted as enterprise grade
tool. I
> do believe that Adobe targets that market as there are millions of
java
> developers that are looking for new technologies to move into - with a
> majority of them in enterprise field. How they perceive the product
and
> support does affect you and me in (hopefully) long run.
>
> Anyway, enterpriseflex group is created, anyone is welcome to join. I
will
> post formal invitation with list of the topics it will cover as soon
as all
> facets are ready and tested
>
> Thank you,
> Anatole Tartakovsky
>
>
>
> Thank you
> On Fri, Jun 20, 2008 at 3:40 AM, Tim Hoff [EMAIL PROTECTED] wrote:
>
> > I'll tell you honestly Anatole, I've been an enterprise developer
for
> > 25 years. From EDLIN to Flex, I've seen it; so please don't propose
that
> > you have some un-known insight to software development. This list,
and the
> > Macromedia based essence of theme for Flex that has been a huge
success,
> > doesn't care about you or me. I appreciate that you have been able
to
> > benefit from Flex's success; but I question the motive to try and
tell Adobe
> > how to run their business. If you like the product, cool. If you
don't,
> > step off.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
> > anatole.tartakovsky@ wrote:
> > >
> > > I guess, the majority of the group tends to like the way things
are now.
> > > That is hardly surprising given initial posting that most people
who do
> > not
> > > like the current solution would unsubscribe.
> > > It also came to the light that enterprise developers have some
> > restrictions
> > > in selection of the client (email) software and problems with
getting too
> > > many messages. It is also obvious ( by monitoring the messages for
few
> > month
> > > back) that the questions on "enterprise" topics are rarely
followed and
> > > some design questions are answered on a different level then the
original
> > > question. As a result, we see fewer of such messages
> > > lately. Potentially, enterprise part of Flex business might not be
> > getting
> > > fare share of attention.
> > >
> > > So, here is the question - if we create separate list to see the
need for
> > > enterprise list - would Adobe be willing to include links to it in
the
> > usual
> > > places/promote it/assign moderators?
> > >
> > > Sincerely,
> > > Anatole Tartakovsky
> > > Farata Systems
> > > On Thu, Jun 19, 2008 at 6:01 PM, dnk d.k.emaillists@ wrote:
> > >
> > > >
> > > > On 19-Jun-08, at 2:03 PM, brucewhealton wrote:
> > > >
> > > > Maybe we need groups for different users at different experience
> > > > levels. I think this list is so big that it is hard to find a
> > > > response or thread, especially when one posts a question and
wants to
> > > > find out if someone responded. I have to look and look to see if
I
> > > > can find that thread anywhere, and it gets confusing when one
sees so
> > > > many similar, though different threads. I'd like a feature to
show me
> > > > threads that include messages where I've posted comments,
questions,
> > > > or etc.
> > > >
> > > >
> > > > I tend to be one that prefers one list, and monitoring all
things
> > (I
> > > > like to see what is out there and what else is going on with the
tech
> > on all
> > > > levels). However with a little thought about this, the reality
is this,
> > if
> > > > it stays as one, most are creating rules to manage or delete,
etc.
> > anyways.
> > > > If we split, the same applies in some form or another. no one
will ever
> > be
> > > > happy on all levels.
> > > >
> > > > So if the powers that be decide to split, go for it I will
just
> > > > subscribe to all the relevant ones I wish to monitor and
organize how i
> > want
> > > > (probably all dumped into a flex folder as it is now). But it
gives
> > those
> > > > who wish for more relevance more power to do so. Either way I
can sort
> > and
> > > > have the exact same info in my inbox. It just gives those who
want a
> > more
> > > > targeted inbox the ability to do so. My only suggestion is to
not over
> > > > split. Pick your 5-10 (or what ever the magic number seems to
be) and
> > go for
> > > > it.
> > > >
> > > > It is all a matter or preference, but one way (to split to a
point)
> > seems
> > > > to offer more flexibility.
> > > >
> > > > Not even $0.02.. but
> > > >
> > > > dnk
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>





[flexcoders] Re: Menubar Styling

2008-06-20 Thread Tim Hoff

Hi Nicholas,

The dropdowns are Menu controls, so you can create these styles in your
CSS file; or your method of choice for setting styles.

MenuBar
{
 fontSize: 14;
 color: #ff;
 fontFamily: "arial";
}



Menu
{
  fontSize: 16;
 color: #ff;
 rollOverColor: #22;
 textRollOverColor: #ff9900;
 selectionColor: #33;
 textSelectedColor: #ff9900;
 fontFamily: "arial";
 dropShadowEnabled: true;
 shadow-direction: right;
 background-color: #00;
 background-alpha: 1;
 border-style: solid;
 border-color: #4e5968;
 border-thickness: 2;
}

You can also get to the individual dropdown menus, to set styles or a
styleName, with something like this:

myMenuBar.getMenuAt(0).setStyle('color', '#ff');

-TH

--- In flexcoders@yahoogroups.com, "Nicholas Watson" <[EMAIL PROTECTED]>
wrote:
>
> I have a menubar where I want the items on the menubar to be one color
> and size, and the items in the drop downs to be another color and
> style. I can't find any information on doing this. Can someone help me
> out?
>




[flexcoders] Re: Menubar Styling

2008-06-20 Thread Tim Hoff
Good timing. :-)

--- In flexcoders@yahoogroups.com, "Deepa Subramaniam" <[EMAIL PROTECTED]> 
wrote:
>
> You can style the MenuBar by setting styles as attributes, or 
through
> ActionScript, on the MenuBar directly.
> 
> To style the menus popped open by the MenuBar, you can loop through 
them
> in ActionScript and set styles on the Menu instances as 
appropriate. To
> loop through the MenuBar, you can use the getMenuAt() method which
> returns Menu objects. To figure out how many Menus the MenuBar has,
> check the length of the MenuBar's menus property. 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Nicholas Watson
> Sent: Friday, June 20, 2008 8:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Menubar Styling
> 
> I have a menubar where I want the items on the menubar to be one 
color
> and size, and the items in the drop downs to be another color and
> style. I can't find any information on doing this. Can someone help 
me
> out?
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
> Links
>




[flexcoders] Re: Change cell's background

2008-06-22 Thread Tim Hoff

1000 isn't a valid color uint, try 0x00 or "#00".  Setting
the background color of an itemRenderer in this way, will probably not
give you the desired result; since the itemRenderers are recycled. 
You're better off over-riding the set data  or updataDisplayList
functions, in the itemRenderer itself.   Here's an article by Peter Ent
 , that has a lot of DataGrid background color info.

-TH

--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> Here is my context menu handler:
> private function contextMenuHandler(e:ContextMenuEvent):void
> {
> DataGridItemRenderer(e.mouseTarget).setStyle("backgroundColor",
> 1000);
> }
>
> But I dont see any changes on the screen. What am I doing wrong?
>
> Thanks
>




[flexcoders] Re: Selection in dataGrid

2008-06-22 Thread Tim Hoff

 
  Here's a
handy search site
 ; for those
times when you can't find the information that you're looking for in the
help docs.

-TH

--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> How can I hightlight a single cell instead of the whole row?
>
> --- In flexcoders@yahoogroups.com, "Alex Harui" aharui@ wrote:
> >
> > The selection model is row based. You can alter what is
> highlighted,
> > but there are no properties to track selectedColumn. See
> > drawHighlightIndicator
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of markgoldin_2000
> > Sent: Monday, June 02, 2008 3:28 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Selection in dataGrid
> >
> >
> >
> > When we move a mouse over enabled dataGrid we see a highlighted
> row.
> > Can it be just a cell not the whole row?
> >
> > Thanks
> >
>




[flexcoders] Re: Some interesting flexcoders stats

2008-06-22 Thread Tim Hoff

flexCodersStatus = (mostRecentlyPostedThread == "The subject that shall
not be named!" ? "Banned" : "Active");

-TH :-)

--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
> Hey folks,
>
> Given the recent big thread on the subject that shall not be named, my
> colleague Suchit went ahead and got some interesting membership stats
since
> the beginning of the list.
>
> Number of people who:
>
> Joined group == 14036
> Left group == 3686
> Were Banned == 631
> Got Removed == 359
>
> I would say losing ~25% over time isn't too bad. That said we haven't
done
> analysis to see if there's a trend in dates or if we're losing more
people
> recently, etc. But interesting info for starters...
>
> Matt
>





[flexcoders] Re: ViewStack sizing problem

2008-06-24 Thread Tim Hoff

Hi Amy,

Try setting resizeToContent="true" on the ViewStack tag.

-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> I have a ViewStack that contains a TileList and some other components
> that have a variable number of children and thus a variable height.
> It seems that the ViewStack decides how big it will be before all the
> children are finished sizing.
>
> I've tried adding logic in my override to commitProperties,
> updateDisplayList, and measure that set the height of the ViewStack
> directly based on the height (and I've also tried measuredHeight) of
> the VBox I have in the first child of the ViewStack. I've also tried
> setting a bindable variable in these places that sets the height and
> binding to that.
>
> My results are this:
>
> commitProperties--never gets to the full height
> updateDisplayList--stalls out (infinite loop?)
> measure--stalls out (infinite loop?) with bound variable, never
> reaches full height with setting the property directly
>
> Is there any way to use a ViewStack to simply change out the view
> without _having_ any height? Alternatively, is there a way to
> persuade it to wait until the children are sized to decide how big it
> is or to look at the size again when the children are done sizing?
>
> Thanks;
>
> Amy
>





[flexcoders] Re: ViewStack sizing problem

2008-06-24 Thread Tim Hoff

No worries, had to learn that one myself as well.  If you don't set that
property, the container will remain the size of the first child;
regardless.

Cheers,
-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi Amy,
> >
> > Try setting resizeToContent="true" on the ViewStack tag.
>
> ever have one of those "duh" moments?
>





[flexcoders] Re: Unique values on the CategoryAxis

2008-06-26 Thread Tim Hoff

Hi Vijay,

This will get rid of your duplicate Apple.



Although you have the uniqueArr hardcoded, you can derive that from the
data.

-TH

--- In flexcoders@yahoogroups.com, "Vijay Anand Mareddy" <[EMAIL PROTECTED]>
wrote:
>
> How do i make the CategoryAxis show only unique values
>
> In my example, I dont want the Apple to apear twice on the vertical
> axis.
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
> 
> 
> 
>
> 
>  showDataTips="true">
> 
> 
> 
> 
>  dataFunction="uniqueMPIDFunc"/>
> 
> 
>  xField="editedEndDate" displayName="myData"/>
> 
> 
> 
>
> 
>




[flexcoders] Re: Unique values on the CategoryAxis

2008-06-26 Thread Tim Hoff

Hey Vijay,

For some reason, I don't have the com.adobe.utils.ArrayUtil class; so I
can't compile your app.  But, instead of using an array for the
CategoryAxis's dataProvider, you may want to switch to an
ArrayCollection.  Binding doesn't play nice with arrays.  If that
doesn't help, you could change the logic to find duplicates to use a
Dictionary or just use a loop to see if the item already exists.  You're
definitely close, so I'm sure that you'll figure it out; if you haven't
already.

Cheers,
-TH

--- In flexcoders@yahoogroups.com, "Vijay Anand Mareddy" <[EMAIL PROTECTED]>
wrote:
>
>
> Thanks Tim, the hardcoded uniqueArr as dataprovider works but it
doesnt
> work when i try to use it as a derived function as follows.
>
> 
>
> http://www.adobe.com/2006/mxml";
>
> layout="absolute">
>
> 
>
> 
>
> 
>
>
>
> 
>
> 
>
>  />
>
>  />
>
>  displayName="myData"/>
>
> 
>
> 
>
>
>
> 
>
> -VM
>
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi Vijay,
> >
> > This will get rid of your duplicate Apple.
> >
> > 
> >
> > Although you have the uniqueArr hardcoded, you can derive that from
> the
> > data.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "Vijay Anand Mareddy" vam2@
> > wrote:
> > >
> > > How do i make the CategoryAxis show only unique values
> > >
> > > In my example, I dont want the Apple to apear twice on the
vertical
> > > axis.
> > >
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > layout="absolute">
> > > 
> > > 
> > > 
> > >
> > > 
> > >  > > showDataTips="true">
> > > 
> > > 
> > > 
> > > 
> > >  > > dataFunction="uniqueMPIDFunc"/>
> > > 
> > > 
> > >  > > xField="editedEndDate" displayName="myData"/>
> > > 
> > > 
> > > 
> > >
> > > 
> > >
> >
>




[flexcoders] Re: currentstate in custom component

2008-06-27 Thread Tim Hoff

Hi Kobe,

If you're asking how to change the current state of main.mxml from
inside a custom component, here are a few ways:

* The simplest way, is to use parentDocument.currentState =
"myBaseStateName". For more deeply nested components, you can also chain
these like: parentDocument.parentDocument.parentDocument.currentState =
"myBaseStateName".
* If main.mxml is the application class, you could also use
mx.core.Application.application.currentState = "myBaseStateName".
* For a more loosely coupled approach, you could dispatch an event
from the component, that is listened for in main.mxml.  When the event
listener hears the event, change the currentState in the handler
function.
* Another way, is to bind a model variable to the currentState.  This
is most commonly done in an MVC application.

There are other ways to access a components parent, but these should
handle the mojority of use cases.

-TH



or, for itemRenderers use outerDocument.


--- In flexcoders@yahoogroups.com, Ingo Stoecker <[EMAIL PROTECTED]> wrote:
>
> hello,
>
> I put some custom components in view states. The components have
functions to change the currentstate to base view. But it doesnt work.
Hhow can I switch views (from the main.mxml) in these functions?
>
> greets,
>
> Kobe
>
>
>
> __
> Gesendet von Yahoo! Mail.
> Dem pfiffigeren Posteingang.
> http://de.overview.mail.yahoo.com
>




[flexcoders] Re: Which event is dispatched when the view is shown by a stage change?

2008-06-27 Thread Tim Hoff

Hi João,

This is kind of a hack, but you could try:



If you used this, you would want to execute the setFocus code on
creationComplete of the editor; for the first time that the editor is
shown.  Instead of useing states for something like this though, you
might want to consider using a ViewSTack instead.  For those the "show"
event, in conjunction with creationComplete, would work; when changing
the container's selectedIndex.

-TH

--- In flexcoders@yahoogroups.com, João <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have a:
>
> - Container with two states ( "" and "editing")
> - A view (LocaleEditor.mxml) that is shown when the container changes
> to the state "editing":
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> I need my view to execute some code when it is shown
> (myTextBox.setFocus() ). I have tried the creationComplete event, but
> the view is only created on the first time the state changes, the next
> times this event is not dispatched. I have tried the AddedToStage, but
> it throws a runtime error with the myTextBox.setFocus() code . I have
> tried the "show" event, but it simply doesn't work.
>
> Which event should I rely on to execute the "myTextBox.setFocus()"
> when the user sees the view?
>
> Thanks,
>
> João Saleiro
>




[flexcoders] Re: Which event is dispatched when the view is shown by a stage change?

2008-06-27 Thread Tim Hoff

Yep, my bad.  As Jonathan points out, this should be enterState instead
of onEnter (grr).



-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> Hi João,
>
> This is kind of a hack, but you could try:
>
> 
>
> If you used this, you would want to execute the setFocus code on
> creationComplete of the editor; for the first time that the editor is
> shown. Instead of useing states for something like this though, you
> might want to consider using a ViewSTack instead. For those the "show"
> event, in conjunction with creationComplete, would work; when changing
> the container's selectedIndex.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, João joao.saleiro@ wrote:
> >
> > Hello,
> >
> > I have a:
> >
> > - Container with two states ( "" and "editing")
> > - A view (LocaleEditor.mxml) that is shown when the container
changes
> > to the state "editing":
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > I need my view to execute some code when it is shown
> > (myTextBox.setFocus() ). I have tried the creationComplete event,
but
> > the view is only created on the first time the state changes, the
next
> > times this event is not dispatched. I have tried the AddedToStage,
but
> > it throws a runtime error with the myTextBox.setFocus() code . I
have
> > tried the "show" event, but it simply doesn't work.
> >
> > Which event should I rely on to execute the "myTextBox.setFocus()"
> > when the user sees the view?
> >
> > Thanks,
> >
> > João Saleiro
> >
>




[flexcoders] Re: Cancelling a checkbox.selected

2008-07-01 Thread Tim Hoff

Hi,

"to display it again when the application is relaunched"

This implies that you are saving and loading the pref settings data.  If
the user clicks the cancel button, you could reload the settings data
that is already saved.  For CRUD, it sometimes makes sense to edit a
copy of the persisted data.  That way, if the user cancels, just blow
away the copy.  If they save, send the edited copy to the server and
update the model with the returned object; or directly from the copy, if
you're not worried about sync issues and want faster user feedback.

-TH

--- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]>
wrote:
>
> Hi Everybody,
>
> I have an "options" button which leads to a new sate "options_state"
> when it is clicked.
> In this new state, I have a checkbox and two buttons "cancel" and
"valid".
> I handle fine the "valid" button which gets the checkbox state and
> save it,
> to display it again when the application is relaunched.
>
> Now my problem is if I change my checkbox state, then change my mind,
> I can do "cancel", but
> I don't see how anymore after tried several ways of doin' it...
> Sorry for sounding kind of basic... :-(
>
> With a little help from my friends...
>
> Thx for the Light !
>
> here is the snippet of code:
>
> private function onOptions():void
> {
> this.currentState = "options_state";
> setOptions();
> }
>
> // to handle the prefs when app is launched
> private function setOptions():void
> {
> if ( Flags.flag_startAtLogin == 0 )
> {
> checkbox_options.selected = true;
> }
> checkbox_options.addEventListener( Event.CHANGE, checkOptions );
> }
>
> private function checkOptions( evt:Event ):void
> {
> if ( checkbox_options.selected == false )
> {
> flag.setFlag( 1 );
> checkbox_options.selected = false;
> //NativeApplication.nativeApplication.startAtLogin = false;
> } else
> {
> flag.setFlag( 0 );
> //NativeApplication.nativeApplication.startAtLogin = true;
> }
> }
>
> private function onValider():void
> {
> savePreferences.createXMLData();
> savePreferences.writeXMLData();
> this.currentState = "";
> }
>
> private function onAnnuler():void
> {
> this.currentState = "";
> }
>




[flexcoders] ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff
Hi all,

I've run into a problem with globally skinning ToolTips.  I am to skin 
the border and background by using a programmatic borderSkin.  However, 
the textField in ToolTip.as is protected and I'm not sure how to change 
it's style globally (tried TextField CSS).  I'm just looking for a way 
to change the text color for all tool tips.  If there's a way to apply 
a textFormat through CSS, that might work.  But, so far, no luck trying 
to change this style.  As usual, any help would be appreciated.

Thanks,
-TH



[flexcoders] Re: legend setstyle not working properly

2008-07-01 Thread Tim Hoff

Looks like direction is a property; not a style.  Try
genericLegend.direction = "horizontal";

-TH

--- In flexcoders@yahoogroups.com, "netdeep" <[EMAIL PROTECTED]> wrote:
>
>
> I am trying to change the formatting for a Legend in Actionscript:
>
> genericLegend.setStyle("direction", "horizontal");
>
> But this does nothing, instead it lists the items vertically. What is
the proper way to do this in
> Actionscipt?
>





[flexcoders] Re: Cancelling a checkbox.selected

2008-07-01 Thread Tim Hoff

Depends on what you're using in the client.  For ArrayCollections you
can use mx.utils.ObjectUtil to make a deep copy; instead of a reference.

myCopyAC = ObjectUtil.copy(mySourceAC) ;

-TH

--- In flexcoders@yahoogroups.com, "quantum_ohm" <[EMAIL PROTECTED]>
wrote:
>
> Hi Tim,
>
> what an idea ! so simple...
> I just had to think about it :-)
> Thx a lot, it works fine with your first suggestion.
>
> For CRUD, is it possible to create a copy of the "prefs" file with the
> Flex/Air API ?
>
> Take care.
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi,
> >
> > "to display it again when the application is relaunched"
> >
> > This implies that you are saving and loading the pref settings data.
If
> > the user clicks the cancel button, you could reload the settings
data
> > that is already saved. For CRUD, it sometimes makes sense to edit a
> > copy of the persisted data. That way, if the user cancels, just blow
> > away the copy. If they save, send the edited copy to the server and
> > update the model with the returned object; or directly from the
copy, if
> > you're not worried about sync issues and want faster user feedback.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "quantum_ohm" 
> > wrote:
> > >
> > > Hi Everybody,
> > >
> > > I have an "options" button which leads to a new sate
"options_state"
> > > when it is clicked.
> > > In this new state, I have a checkbox and two buttons "cancel" and
> > "valid".
> > > I handle fine the "valid" button which gets the checkbox state and
> > > save it,
> > > to display it again when the application is relaunched.
> > >
> > > Now my problem is if I change my checkbox state, then change my
mind,
> > > I can do "cancel", but
> > > I don't see how anymore after tried several ways of doin' it...
> > > Sorry for sounding kind of basic... :-(
> > >
>




[flexcoders] Re: ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff

Yep,

color changed the text color, when I tried it in a new project.  It's
not working in my other application though.  So, I'm thinking that there
is an inherited color style somewhere.   I'll keep digging.

Thanks Gordon and Tracy,

-TH

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> It sounds like all you need is ToolTip styling, not ToolTip skinning.
> Did you try
>
>
>
> 
>
> ToolTip { borderColor: blue; backgroundColor: yellow; color: red }
>
> 
>
>
>
> ?
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
> ________
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Tim Hoff
> Sent: Tuesday, July 01, 2008 2:08 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ToolTip TextField TextColor
>
>
>
> Hi all,
>
> I've run into a problem with globally skinning ToolTips. I am to skin
> the border and background by using a programmatic borderSkin. However,
> the textField in ToolTip.as is protected and I'm not sure how to
change
> it's style globally (tried TextField CSS). I'm just looking for a way
> to change the text color for all tool tips. If there's a way to apply
> a textFormat through CSS, that might work. But, so far, no luck trying
> to change this style. As usual, any help would be appreciated.
>
> Thanks,
> -TH
>





[flexcoders] Re: ToolTip TextField TextColor

2008-07-01 Thread Tim Hoff

Turns out the guys before me had added a secondary CSS file that
contained:

ToolTip
{
color: #00;
font-weight: bold;
}

Took that out and the color style from my CSS worked.  Just fyi, I
decided to use a borderSkin, instead of the stock styles, so that I'd
have a little more flexibility with gradiant fills, the border, and any
filters that might be desired.

Thanks again.,
-TH


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
>
> Yep,
>
> color changed the text color, when I tried it in a new project. It's
> not working in my other application though. So, I'm thinking that
there
> is an inherited color style somewhere. I'll keep digging.
>
> Thanks Gordon and Tracy,
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Gordon Smith" gosmith@ wrote:
> >
> > It sounds like all you need is ToolTip styling, not ToolTip
skinning.
> > Did you try
> >
> >
> >
> > 
> >
> > ToolTip { borderColor: blue; backgroundColor: yellow; color: red }
> >
> > 
> >
> >
> >
> > ?
> >
> >
> >
> > Gordon Smith
> >
> > Adobe Flex SDK Team
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Tim Hoff
> > Sent: Tuesday, July 01, 2008 2:08 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] ToolTip TextField TextColor
> >
> >
> >
> > Hi all,
> >
> > I've run into a problem with globally skinning ToolTips. I am to
skin
> > the border and background by using a programmatic borderSkin.
However,
> > the textField in ToolTip.as is protected and I'm not sure how to
> change
> > it's style globally (tried TextField CSS). I'm just looking for a
way
> > to change the text color for all tool tips. If there's a way to
apply
> > a textFormat through CSS, that might work. But, so far, no luck
trying
> > to change this style. As usual, any help would be appreciated.
> >
> > Thanks,
> > -TH
> >
>




[flexcoders] Re: Caringorm Event

2008-07-02 Thread Tim Hoff

Hi,

Looks like serviceValidator should be srvValdErr; in your clone method:

override public function clone():Event
{
return new VerifyModelNameEvent( srvValdErr );
}

-TH

--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
>
> hi every i facing problem while re-dispatching Caringorm event. i have
override clone method in my Event class can any tell me what cud be the
problem
> here is code for my event class..
> package com.softpak.events.mm
> {
> import com.adobe.cairngorm.control.CairngormEvent;
> import com.softpak.control.mm.MMControler;
> import com.softpak.view.mm.IServiceErrorValidation;
> import flash.events.Event;
> public class VerifyModelNameEvent extends CairngormEvent
> {
> private var srvValdErr:IServiceErrorValidation
> public function VerifyModelNameEvent(
psrvValdErr:IServiceErrorValidation )
> {
> super( MMControler.EVENT_VERIFY_MODEL_NAME );
> srvValdErr = psrvValdErr ;
> }
>
> public function get serviceValidator():IServiceErrorValidation
> {
> return srvValdErr;
> }
>
>
>
> override public function clone():Event
> {
>
> return new VerifyModelNameEvent( serviceValidator );
> }
>
>
> }
> }
>




[flexcoders] Re: List displaying wrong information

2008-07-02 Thread Tim Hoff

Interested to see what your itemRenderer looks like.  Are you
over-riding any methods?

-TH

--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> BTW - If I don't use an itemRenderer, it works fine and displays how
> it should.
>
>
>
> --- In flexcoders@yahoogroups.com, "nathanpdaniel" ndaniel@
> wrote:
> >
> > Yes - and in fact - to clarify - when I run my application, it
> > displays the mini cart all the time (always on) - so when I add
> > items, it updates, when they're removed, it's updated.
> Unfortunately
> > when I delete an item and add a new one, it displays the old one,
> > even though in my cart itself is showing the new item. I'm only
> > making changes to the Cart object itself which has a property
> > cartItems (ArrayCollection). Debugging, this is always right with
> > what the cart should be - it's just not showing the right products.
> >
> > --- In flexcoders@yahoogroups.com, "Sean Clark Hess" 
> > wrote:
> > >
> > > And both are bound to the same ArrayCollection?
> > >
> > > On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel  wrote:
> > >
> > > > I'm building shopping cart functionality which uses a
> > ShoppingCart
> > > > component with 2 states. A "mini" cart and a regular view. The
> > > > regular view works fine with a DataGrid component and shows
> > correct
> > > > cart items and price etc.
> > > >
> > > > The mini cart on the other hand doesn't work properly once you
> > add an
> > > > item to the cart.
> > > >
> > > > If I add an item to the cart it displays properly. When I
> delete a
> > > > cart item, it displays properly. When I add another cart item
> > after
> > > > deleting one, the item I last deleted shows up rather than the
> new
> > > > item I'm trying to add. I change view to "regular" (with
> DataGrid)
> > > > and it displays properly.
> > > >
> > > > If I add 5 items to my cart, the mini view will show the first 5
> > > > items I put in my cart. If I only had 3 items originally, then
> > > > deleted all three and put 5 new ones, the first three display
> as
> > the
> > > > original 3 (in the order they were deleted), the final 2 are the
> > > > final 2 items I added with the set of 5.
> > > >
> > > > Hopefully I've explained my situation in a way that is helpful.
> As
> > > > for me, I'm at a loss - completely. I'm tracing through my cart
> > > > items and it displays what "should" be showing up.
> > > >
> > > > I'm using a List component with a custom itemRenderer.
> > > >
> > > > -Nathan D.
> > > >
> > > >
> > > >
> > >
> >
>





[flexcoders] Re: List displaying wrong information - RESOLVED

2008-07-02 Thread Tim Hoff

The set Data method is the correct place to do this; since itemRenderers
get recycled.  Using creationComplete will only fire the first time that
the itemRenderer is instantiated.  From then on, the same renderer may
be re-used in another cell with different data; after actions like
scrolling.   This makes perfect sense why the displayed data wasn't
changed.

"how do I detect changes to the data property?"

use the data setter.

-TH


--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
>
> In my itemRenderer, on CreationComplete I was calling a function which
> set two variables. From those variables I was displaying information.
> If I take out those variables and use the "data" property instead, it
> works. I don't like that but, I guess that's just how it works.
> It does bring up another question though: if I wanted to do it the
> other way, how do I detect changes to the data property? The
dataChange
> event doesn't do it (unless I'm using it wrong). I can use the
> updateComplete but it fires off every time there's any type of
> interaction with it (a bit overkill).
>
>
> --- In flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com ,
> "Sean Clark Hess" seanhess@ wrote:
> >
> > Yeah, that's as far as I can get without seeing any code
> >
> > On Wed, Jul 2, 2008 at 12:01 PM, Tim Hoff TimHoff@ wrote:
> >
> > >
> > > Interested to see what your itemRenderer looks like. Are you
> > > over-riding any methods?
> > >
> > > -TH
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders@yahoogroups.com ,
> > > "nathanpdaniel"  wrote:
> > > >
> > > > BTW - If I don't use an itemRenderer, it works fine and displays
> how
> > > > it should.
> > > >
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders@yahoogroups.com ,
> > > "nathanpdaniel" ndaniel@
> > > > wrote:
> > > > >
> > > > > Yes - and in fact - to clarify - when I run my application, it
> > > > > displays the mini cart all the time (always on) - so when I
add
> > > > > items, it updates, when they're removed, it's updated.
> > > > Unfortunately
> > > > > when I delete an item and add a new one, it displays the old
> one,
> > > > > even though in my cart itself is showing the new item. I'm
only
> > > > > making changes to the Cart object itself which has a property
> > > > > cartItems (ArrayCollection). Debugging, this is always right
> with
> > > > > what the cart should be - it's just not showing the right
> products.
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders@yahoogroups.com ,
> > > "Sean Clark Hess" 
> > > > > wrote:
> > > > > >
> > > > > > And both are bound to the same ArrayCollection?
> > > > > >
> > > > > > On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel 
> wrote:
> > > > > >
> > > > > > > I'm building shopping cart functionality which uses a
> > > > > ShoppingCart
> > > > > > > component with 2 states. A "mini" cart and a regular view.
> The
> > > > > > > regular view works fine with a DataGrid component and
shows
> > > > > correct
> > > > > > > cart items and price etc.
> > > > > > >
> > > > > > > The mini cart on the other hand doesn't work properly once
> you
> > > > > add an
> > > > > > > item to the cart.
> > > > > > >
> > > > > > > If I add an item to the cart it displays properly. When I
> > > > delete a
> > > > > > > cart item, it displays properly. When I add another cart
> item
> > > > > after
> > > > > > > deleting one, the item I last deleted shows up rather than
> the
> > > > new
> > > > > > > item I'm trying to add. I change view to "regular" (with
> > > > DataGrid)
> > > > > > > and it displays properly.
> > > > > > >
> > > > > > > If I add 5 items to my cart, the mini view will show the
> first 5
> > > > > > > items I put in my cart. If I only had 3 items originally,
> then
> > > > > > > deleted all three and put 5 new ones, the first three
> display
> > > > as
> > > > > the
> > > > > > > original 3 (in the order they were deleted), the final 2
are
> the
> > > > > > > final 2 items I added with the set of 5.
> > > > > > >
> > > > > > > Hopefully I've explained my situation in a way that is
> helpful.
> > > > As
> > > > > > > for me, I'm at a loss - completely. I'm tracing through my
> cart
> > > > > > > items and it displays what "should" be showing up.
> > > > > > >
> > > > > > > I'm using a List component with a custom itemRenderer.
> > > > > > >
> > > > > > > -Nathan D.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>




[flexcoders] Re: AdvancedDataGrid scrolling

2008-07-03 Thread Tim Hoff

Hi,

The only way to get smooth scrolling, with any of the list based
components, is to place them in a container (like canvas) and set the
list's height explicitly; to render all of the items 
(valueCommit="myList.height = myList.measureHeightOfItems").  This will
give you a performance hit, but the scroll will be more natural.  This
however, will negate the ability to scrollToIndex.

-TH

--- In flexcoders@yahoogroups.com, "michal.sustr" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> is there a way how to enable AdvancedDataGrid scrolling not on rows,
> but on parts of rows? If some rows are too long (and others short),
> you can see "jumping" which is not very pleasant and is quite
> confusing. Sometimes it is even not possible to scroll down to last
row.
>




[flexcoders] Re: Caringorm Event

2008-07-03 Thread Tim Hoff

What, you've foresaken ESP? :))

-TH

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Wednesday 02 Jul 2008, [EMAIL PROTECTED] wrote:
> > hi every i facing problem while re-dispatching Caringorm event. i
have
> ...
> > problem here is code for my event class..
>
> You forgot to say what the problem was.
>
> --
> Tom Chiverton
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at the
registered office. Any reference to a partner in relation to Halliwells
LLP means a member of Halliwells LLP. Regulated by The Solicitors
Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents. If you have received this
email in error please delete it and notify Halliwells LLP IT Department
on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>





[flexcoders] Re: Setting Focus to the First control

2008-07-04 Thread Tim Hoff
This has been a long-standing problem with FF.  No workaround currently 
exists.

-TH

--- In flexcoders@yahoogroups.com, "akila_ksri" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I am using the following line of code in the html page to set focus to
> the first control (TextInput) without any mouse-clicks/tab keys in the
> application once the html page containing the embedded swf comes up:
> 
> 
> 
> However, this seems to be working only in IE but not in Mozilla
> FireFox which is the target browser for my application.
> Any idea how to make it work in FireFox?
> 
> -Akila
>




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

2008-07-04 Thread Tim Hoff

Hi Sherm,

Since you're using Flash CS3, I'd recommend that you use the Flex
Component Kit for Flash CS3.  This will allow you to export a Flash
movie as a SWC, and interact with it as if it was a Flex Component. 
Here's a couple of links that might be helpful:

http://blog.halcyonsolutions.net/2007/06/30/flex_flash_integration_resou\
rces/


http://jessewarden.com/2007/04/example-for-flex-component-kit-for-flash-\
cs3.html


-TH

--- In flexcoders@yahoogroups.com, "daddyo_buckeye" <[EMAIL PROTECTED]>
wrote:
>
> Alex,
>
> I can't find any concrete examples on the 'net of users getting at
> symbols and changing attributes of those symbols using
> SWFLoader.content. Seems like most are using it to simply check if
> the content is loaded.
>
> Any further, more specific tips, are greatly appreciated.
>
> BTW, everything is created in CS3(Illustrator & Flash).
>
> Sherm
>
> --- In flexcoders@yahoogroups.com, "Alex Harui" aharui@ wrote:
> >
> > If the SWF is published for player 9, then you can get to it via
> > swfLoader.content (or image.content). If it is published for an
> earlier
> > player, then you'd need an intermediate SWF that uses
> localConnection to
> > communicate between the main SWF and your SWF. You can check out
> third
> > party solutions
> >
> >
>




[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-06 Thread Tim Hoff

Using a transparent image as the skin is cleanest and easiest.  The
"skins" array in Button.as is private, so you'd have to subclass; in
order to get to those display objects.  You can partially trick the
button with myButton.mx_internal::currentSkin.alpha = 0, but that's a
real hack; not to mention unsupported.  Setting the colors the same as
the background doesn't create a re-usable solution; as the background
might be an image or gradient.  So, while its fun to extend, for
something like this, I'd just use a transparent image there as the skin
and be done with it.

-TH

--- In flexcoders@yahoogroups.com, "Dennis Falling" <[EMAIL PROTECTED]>
wrote:
>
> I hacked this up by creating a small png that's entirely alpha. Much
> cleaner than all the CSS required to make an enhanced button skin look
> plain. It looks great, but are there are any better ways to do this?
>
> Thanks
>
>
> On Sat, Jul 5, 2008 at 7:19 PM, Dennis Falling [EMAIL PROTECTED] wrote:
>
> > What's the best way to create a border-less button? I'm trying to
pull it
> > off with flexlib's enhanced button skin but it appears to be
ignoring the
> > font-family I set. Basically I just want a button that has text and
an icon
> > and these will change color on mouseover. No border/backgrounds
should ever
> > be visible.
> >
> > http://dl.getdropbox.com/u/15760/replay.png
> >
>




[flexcoders] Re: Caringorm Event

2008-07-07 Thread Tim Hoff
Too funny.

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> I knew you were going to say that :-)
>
> > What, you've foresaken ESP? :))
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@
> >
> > wrote:
> > > On Wednesday 02 Jul 2008, parjan@ wrote:
> > > > hi every i facing problem while re-dispatching Caringorm event.
i
> >
> > have
> >
> > > ...
> > >
> > > > problem here is code for my event class..
> > >
> > > You forgot to say what the problem was.
> > >
> > > --
> > > Tom Chiverton
> > >
> > > 
> > >
> > > This email is sent for and on behalf of Halliwells LLP.
> > >
> > > Halliwells LLP is a limited liability partnership registered in
> >
> > England and Wales under registered number OC307980 whose registered
> > office address is at Halliwells LLP, 3 Hardman Square,
Spinningfields,
> > Manchester, M3 3EB. A list of members is available for inspection at
the
> > registered office. Any reference to a partner in relation to
Halliwells
> > LLP means a member of Halliwells LLP. Regulated by The Solicitors
> > Regulation Authority.
> >
> > > CONFIDENTIALITY
> > >
> > > This email is intended only for the use of the addressee named
above
> >
> > and may be confidential or legally privileged. If you are not the
> > addressee you must not read it and must not use any information
> > contained in nor copy it nor inform any person other than Halliwells
LLP
> > or the addressee of its existence or contents. If you have received
this
> > email in error please delete it and notify Halliwells LLP IT
Department
> > on 0870 365 2500.
> >
> > > For more information about Halliwells LLP visit
www.halliwells.com.
>
>
>
> --
> Tom Chiverton
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at the
registered office. Any reference to a partner in relation to Halliwells
LLP means a member of Halliwells LLP. Regulated by The Solicitors
Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents. If you have received this
email in error please delete it and notify Halliwells LLP IT Department
on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tim Hoff

Hi Tom,

What are you doing with this event in set data?

dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));

It's a loop.

-TH

--- In flexcoders@yahoogroups.com, "Tom McNeer" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I began asking about this problem last week and Alex Harui tried to
help me.
> But I did such a bad job of explaining my problem, I don't think he
quite
> understood the issue.
>
> Also, I've done a lot more work over the weekend, stepping through the
> debugger. And my problem is a bit different than I first thought,
anyway.
>
> My application allows users to create multiple sets of product
> configurations. Within each configuration, there are multiple
products, each
> with a possibility of multiple options.
>
> Thus, within a Configuration object, there is an itemAC that is a
collection
> of product objects. Within each Item/Product object, there is an
optionArray
> which holds Option objects. The optionArray cannot be an
arrayCollection,
> because the Product objects are VOs populated from a RemoteObject, and
need
> to match the signature of a matching object on the server.
>
> When the user wishes to view the contents of a Configuration, the
itemAC
> (with its collection of Products) becomes the dataProvider of a
DataGrid:
>
>  variableRowHeight="true" width="80%"
updateComplete="setGridHeight(event)" >
> 
>  headerText="Quantity" />
>  headerText="Category" />
>  wordWrap="true" />
>  itemRenderer="views.OptionList" />
> 
> 
>
> However - one cell within the DataGrid needs to display a list of
options.
> The user should see these options as a comma-delimited list,
essentially,
> not a Flex List element or anything like that. So I have created an
> itemRenderer for the Options column which has a simple function that
creates
> the list from the optionArray in the Product which is represented by a
row
> in the DataGrid:
>
> public function setOptionList(options:Array):void{
> optionList = "";
> for (var i:int = 0;i if (options.length > 1 && i != 0){
> optionList = optionList + ', ';
> }
> optionList += options[i].optionItem;
> }
> }
>
> Since a user may be adding options to a product at any time, the
option list
> must update as an option is added.
> I have tried providing the update in various ways. Currently, I am
> overriding the set data function for the itemRenderer component:
>
> override public function set data(value:Object):void{
> if (value != null){
> super.data = value;
> setOptionList(value.options)
> }
> dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> }
>
> The symptom of my problem is that once a few products are added, the
> processor pegs and stays there.
>
> My debugging walkthrough has led to find that as products are added
(with or
> without options), extra instances of the itemRenderer component seem
to be
> generated, and the setOptionList function (triggered by set data) is
called
> over and over.
>
> On the first product added, (with an empty option array), two separate
> instances of the itemRenderer component seem to be created. The
> setOptionList function is called three times, showing two unique
identifiers
> for views.OptionList components. The function is called on the first
> instance (a), then the second (b), then the first again: a,b,a.
>
> When I add a second product (also with an empty option array, the
> setOptionList function is called 14 times. I can see another instance
of
> views.OptionList (c). The setOptionList calls go:
> b,b,a,a,b,c,b,c,a,a,b,c,a,a.
>
> Adding a third product results in 22 calls to the function, on 4
instances.
> The calls go: b,c,b,b,a,a,a,b,c,d,b,c,d,a,a,a,b,c,d,a,a,a.
>
> Can anyone help me understand what's up with all this proliferation?
>
>
> --
> Thanks,
>
> Tom
>
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
>




[flexcoders] Re: Item renderers cause processor to max out

2008-07-07 Thread Tim Hoff

Ok, that makes sense.  One other thing that might be contributing is:

updateComplete="setGridHeight(event)"

You might want to try:

valueCommit="setGridHeight(event)"

instead.  Good luck Tom,

-TH

--- In flexcoders@yahoogroups.com, "Tom McNeer" <[EMAIL PROTECTED]> wrote:
>
> Hi Tim,
>
> Thanks for the reply.
>
> On Mon, Jul 7, 2008 at 10:54 AM, Tim Hoff [EMAIL PROTECTED] wrote:
>
> > What are you doing with this event in set data?
> >
> > dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
> >
> > It's a loop.
> >
>
>
>
>
>
>
>
> You're absolutely correct, of course. Unfortunately, my error was NOT
> dispatching that event, but rather including that line in the code I
sent in
> my post.
>
> In the actual code, that line is commented out (it came from an
earlier
> attempt). Yet I still seem to be generating a loop somewhere.
>
> Thanks for catching it though. It made the post even more confusing.
>
> --
> Thanks,
>
> Tom
>
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
>




[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Tim Hoff

Doesn't work if you want to keep the button icons visible.  Wouldn't
this also affect embedded fonts?

-TH

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Skin the way you normally do, but set the alpha=0
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Dennis Falling
> Sent: Sunday, July 06, 2008 12:43 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Trick button into rendering
mouseover/mouseout
> states
>
>
>
> Over an alpha background though just setting their colors won't do it.
> I've done skins, but when I want a skin with basically nothing
visible,
> would that be any different from what I've made?
>
> On Sat, Jul 5, 2008 at 7:25 PM, Alan [EMAIL PROTECTED]
>  wrote:
>
> Could you just set the btn color and border to the same color as your
> background? Also, have you tried the Photoshop btn skin scripts. Makes
> it real easy to change the btnin fact, id use that...
>
>
>
> There's a demo on adobe.com to use it, but its so easy you dont really
> even need it.
>
>
>
> https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
> 
>
>
>
> Alan
>
>
>
>
>
>
>
>
>
> On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:
>
>
>
>
>
> What's the best way to create a border-less button? I'm trying to pull
> it off with flexlib's enhanced button skin but it appears to be
ignoring
> the font-family I set. Basically I just want a button that has text
and
> an icon and these will change color on mouseover. No
border/backgrounds
> should ever be visible.
>
> http://dl.getdropbox.com/u/15760/replay.png
> 
>





[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-07 Thread Tim Hoff

Maybe I misunderstood.  You were probably saying, set the skin's alpha
to 0; not the button's alpha.  He just wants the button's icons and
label to show (with rollover changes); no background or border.  Because
the button control is a bit more complicated to programatically skin
than other controls, I was just recommending to use a transparent image
for the skins.  That's the easiest way that I've found.

-TH

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Interesting. It should work because the icon and text is not a child
of
> the skin. Maybe I don't understand what he wants or what you tried.
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Tim Hoff
> Sent: Monday, July 07, 2008 10:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Trick button into rendering
mouseover/mouseout
> states
>
>
>
>
> Doesn't work if you want to keep the button icons visible. Wouldn't
> this also affect embedded fonts?
>
> -TH
>
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui" aharui@ wrote:
> >
> > Skin the way you normally do, but set the alpha=0
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> ]
> On
> > Behalf Of Dennis Falling
> > Sent: Sunday, July 06, 2008 12:43 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> > Subject: Re: [flexcoders] Trick button into rendering
> mouseover/mouseout
> > states
> >
> >
> >
> > Over an alpha background though just setting their colors won't do
it.
> > I've done skins, but when I want a skin with basically nothing
> visible,
> > would that be any different from what I've made?
> >
> > On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@
> > <mailto:ultraky@ > wrote:
> >
> > Could you just set the btn color and border to the same color as
your
> > background? Also, have you tried the Photoshop btn skin scripts.
Makes
> > it real easy to change the btnin fact, id use that...
> >
> >
> >
> > There's a demo on adobe.com to use it, but its so easy you dont
really
> > even need it.
> >
> >
> >
> > https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
> <https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins>
> > <https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
> <https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins> >
> >
> >
> >
> > Alan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:
> >
> >
> >
> >
> >
> > What's the best way to create a border-less button? I'm trying to
pull
> > it off with flexlib's enhanced button skin but it appears to be
> ignoring
> > the font-family I set. Basically I just want a button that has text
> and
> > an icon and these will change color on mouseover. No
> border/backgrounds
> > should ever be visible.
> >
> > http://dl.getdropbox.com/u/15760/replay.png
> <http://dl.getdropbox.com/u/15760/replay.png>
> > <http://dl.getdropbox.com/u/15760/replay.png
> <http://dl.getdropbox.com/u/15760/replay.png> >
> >
>





[flexcoders] Re: DataGrid

2008-07-08 Thread Tim Hoff

Damn Niraj, this is an old thread. :-)

Rob said the right things.  To do what you want, will take more than
just over-riding a method or two.  This is more in the area of
flexcomponents  .  
Not for the faint of heart, but if you really want to get into that
level of component development, there's a good place to start.

-TH

--- In flexcoders@yahoogroups.com, "Niraj" <[EMAIL PROTECTED]> wrote:
>
> Can someone help me here and show me where i can start?
>
> Thanks
> Niraj.
>
> --- In flexcoders@yahoogroups.com, "Niraj" nirajbothra@ wrote:
> >
> > Hey Rob:
> > I looked at the code for DataGrid.as and DataGridBase.as
> >
> > i am still confused which method I should be overriding.
> >
> > Can you provide me a little more insight?
> >
> > Thanks
> > Niraj.
> >
> > --- In flexcoders@yahoogroups.com, "Rob Rusher"  wrote:
> > >
> > > You are going to have to pull out your coding hat on this one.
> > >
> > > Open the source to DataGrid.as and DataGridBase, examine the way
the
> > columns
> > > are rendered. Then extend either the appropriate classes and
> > override the
> > > methods that layout the header and columns.
> > >
> > > If I can find the time, I'll try it, but that is how you would
start.
> > >
> > > Good luck.
> > >
> > > Rob
> > >
> > > On Wed, Jul 2, 2008 at 7:46 AM, Niraj  wrote:
> > >
> > > > Hi:
> > > > I want to have the column headers on the left, rather than on
> the top
> > > > on a datagrid. Is there some way i can modify the datagrid to
have
> > > > this kind of structure
> > > >
> > > > Header1 DataColumn11 DataColumn12 DataColumn13 DataColumn14
> > > > Header2 DataColumn21 DataColumn22 DataColumn23 DataColumn24
> > > > Header3 DataColumn31 DataColumn32 DataColumn33 DataColumn34
> > > > Header4 DataColumn41 DataColumn42 DataColumn43 DataColumn44
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > --
> > > Regards,
> > > Rob Rusher
> > >
> > > Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
> > > m: 303-885-7044
> > > im: robrusher
> > >
> >
>




[flexcoders] Re: DataGrid

2008-07-09 Thread Tim Hoff

Depends on the rest of what he wants.  If he wants to be able to sort
and select items, there's a lot of code to write crossing the repeaters.
If it's just for show, either repeaters or a list would work fine. 
Interesting how we get used to thinking in a certain direction.  Easy to
change axis on a chart; but a dataGrid?

-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Damn Niraj, this is an old thread. :-)
> >
> > Rob said the right things. To do what you want, will take more than
> > just over-riding a method or two. This is more in the area of
> > flexcomponents
> <http://tech.groups.yahoo.com/group/flexcomponents/> .
> > Not for the faint of heart, but if you really want to get into that
> > level of component development, there's a good place to start.
>
> Couldn't you make something that _looks_ like what he wants with a
pair
> of nested repeaters?
>





[flexcoders] Re: Container for a from

2008-07-09 Thread Tim Hoff

Search for "Using constraints to control component layout" in the help
docs.

-TH

--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> I am trying to come up with a container to hold a form in. I want to
> use as much space of the container as possible. So, I dont want to
have
> any space on left, right, top, and bottom of the container.
> Also I want to have formitems stuck to the left of the form. Is that
> possible?
>
> Thanks
>





[flexcoders] Re: States

2008-07-11 Thread Tim Hoff

Yes Scott, any Flex component can have multiple states.  Very cool, if
you  ask me; especially because of the effects and transitions that can
be applied to state changes.  Just search the help docs for "view
states"  and/or "viewStack" and you'll get a ton of info.

-TH

--- In flexcoders@yahoogroups.com, "Scott" <[EMAIL PROTECTED]> wrote:
>
>
>
> Can states be managed independently in components? In other words, can
> I have unique and active states in each of my components or can I only
> have one state for the whole application?
>
>
>
> Thanks!
>





[flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-11 Thread Tim Hoff
:-)

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I think you can set up upSkin or overSkin, instead of just skin, but
> your PNGs are ok too.
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Dennis Falling
> Sent: Thursday, July 10, 2008 10:14 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Trick button into rendering
> mouseover/mouseout states
>
>
>
> Do you mean the CSS from the framework? Because the only applicable
css
> I've seen is:
>
> LinkButton
> {
> /* disabledIcon: null; */
> disabledSkin: ClassReference(null);
> /* downIcon: null; */
> downSkin: ClassReference(null);
> /* overIcon: null; */
> overSkin: ClassReference(null);
> paddingLeft: 7;
> paddingRight: 7;
> /* selectedDisabledIcon: null; */
> selectedDisabledSkin: ClassReference(null);
> /* selectedDownIcon: null; */
> selectedDownSkin: ClassReference(null);
> /* selectedOverIcon: null; */
> selectedOverSkin: ClassReference(null);
> /* selectedUpIcon: null; */
> selectedUpSkin: ClassReference(null);
> skin: ClassReference("mx.skins.halo.LinkButtonSkin");
> /* upIcon: null; */
> upSkin: ClassReference(null);
> }
>
> Setting my over skin to ClassReference(null) makes it appear (I think)
> like a normal button, while using
> ClassReference("mx.skins.halo.LinkButtonSkin") will make it behave
like
> a typical LinkButton does when moused over. Again though, it currently
> looks great and behaves the way I want it to. Is there a reason for me
> to not do it just with an alpha image?
>
> Thanks
>
>
>
> On Thu, Jul 10, 2008 at 7:09 PM, Alex Harui [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] > wrote:
>
> Copy the LinkButton CSS and assign whatever was in upSkin to overSkin
>
>
>
> 
>
> From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com
]
> On Behalf Of Dennis Falling
> Sent: Thursday, July 10, 2008 4:13 PM
>
>
> To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Trick button into rendering
> mouseover/mouseout states
>
>
>
> So no way that's purely CSS? Is there a reason for me to not use my
> current hack (invisible PNG skins)? Visually and functionally it's
what
> I want.
>
>
>
> On Jul 10, 2008, at 5:30 PM, "Alex Harui" [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] > wrote:
>
> Maybe setStyle("overSkin", getStyle("upSkin"))
>
>
>
>
> 
>
>
> From: flexcoders@yahoogroups.com
> <mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders@yahoogroups.com ] On Behalf Of Dennis Falling
> Sent: Thursday, July 10, 2008 12:52 PM
> To: flexcoders@yahoogroups.com
> <mailto:flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Trick button into rendering
> mouseover/mouseout states
>
>
>
> I don't know of a way to give a link button a transparent mouse
> over background.
>
> On Jul 7, 2008, at 2:11 PM, "nathanpdaniel" [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED] > wrote:
>
> I'm not sure but what's the difference between a link
> button and what
> you're trying to accomplish? It seems to me what you're
> looking for
> would be easily accomplished with a little CSS & the
> LinkButton
> component rather than reskinning the Button component.
>
> --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" aharui@ wrote:
> >
> > Interesting. It should work because the icon and text
> is not a
> child of
> > the skin. Maybe I don't understand what he wants or
> what you tried.
> >
> >
> >
> > 
> >
> > From: [EMAIL PROTECTED]
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> ups.com
> <mailto:flexcoders%40yahoogroups.com>
> [mailto:[EMAIL PROTECTED]
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> ups.com
> <mailto:flexcoders%40yahoogroups.com> ] On
> > Behalf Of Tim Hoff
> > Sent: Monday, July 07, 2008 10:02 AM
> > To: [EMAIL PROTECTED]
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> ups.com
> <mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexc

[flexcoders] Re: Comparing numbers with a tolerance

2008-07-14 Thread Tim Hoff

Hi fumeng,

You could work this out using Math.round().  Although this method rounds
to the nearest integer (doesn't use a precision parameter), with a
little work this could help you compare apples to apples.

-TH

--- In flexcoders@yahoogroups.com, "fumeng5" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm trying to compare 3 points but because of double precision in AS3
> i'm running into some issues with trailing digits causing the numbers
> to not be equal, i.e. 1.25 != 1.24999
>
> what i'd like to figure out how to do is introduce a tolerance of say
> .001. then i'd compare the test point against the other two points
> saying: is testPoint.x within the range of point1.x and point2.x and
> is testPoint.y within the range of point1.y and point2.y. if so,
> return true.
>
> i just can't figure it out. here's what i have so far:
>
> public static function isEndPoint(p:Point, Lp1:Point,
Lp2:Point):Boolean {
> var tolerance:int = .001;
> var newLp1:Point = new Point(tolerance * Lp1.x,tolerance * Lp1.y);
> var newLp2:Point = new Point(tolerance * Lp2.x,tolerance * Lp2.y);
> return (p.equals(newLp1) || p.equals(newLp2));
> }
>
> I guess I'm seeing that the equals() method at the bottom of this code
> is not really what i want. Plus, multiplying everything by .001
> doesn't solve the problem as i'll essentially be using the same
> numbers i started with.
>
> Can someone perhaps point me in the right direction here, please? I'm
> not sure where exactly to go from here.
>
> Thanks,
>
> fumeng.
>





[flexcoders] Re: Comparing numbers with a tolerance

2008-07-14 Thread Tim Hoff
Nice.

--- In flexcoders@yahoogroups.com, "lampei" <[EMAIL PROTECTED]> wrote:
>
> 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 (or
> however many you need). From here you could use your "tolerance" to
> compare the 2 numbers.
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi fumeng,
> >
> > You could work this out using Math.round(). Although this method
rounds
> > to the nearest integer (doesn't use a precision parameter), with a
> > little work this could help you compare apples to apples.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
> > >
> > > Hi,
> > >
> > > I'm trying to compare 3 points but because of double precision in
AS3
> > > i'm running into some issues with trailing digits causing the
numbers
> > > to not be equal, i.e. 1.25 != 1.24999
> > >
> > > what i'd like to figure out how to do is introduce a tolerance of
say
> > > .001. then i'd compare the test point against the other two points
> > > saying: is testPoint.x within the range of point1.x and point2.x
and
> > > is testPoint.y within the range of point1.y and point2.y. if so,
> > > return true.
> > >
> > > i just can't figure it out. here's what i have so far:
> > >
> > > public static function isEndPoint(p:Point, Lp1:Point,
> > Lp2:Point):Boolean {
> > > var tolerance:int = .001;
> > > var newLp1:Point = new Point(tolerance * Lp1.x,tolerance * Lp1.y);
> > > var newLp2:Point = new Point(tolerance * Lp2.x,tolerance * Lp2.y);
> > > return (p.equals(newLp1) || p.equals(newLp2));
> > > }
> > >
> > > I guess I'm seeing that the equals() method at the bottom of this
code
> > > is not really what i want. Plus, multiplying everything by .001
> > > doesn't solve the problem as i'll essentially be using the same
> > > numbers i started with.
> > >
> > > Can someone perhaps point me in the right direction here, please?
I'm
> > > not sure where exactly to go from here.
> > >
> > > Thanks,
> > >
> > > fumeng.
> > >
> >
>




[flexcoders] Re: Extra space appearing between my mx:Text elements

2008-07-15 Thread Tim Hoff


 
 


-TH

--- In flexcoders@yahoogroups.com, "whatabrain" <[EMAIL PROTECTED]> wrote:
>
> I create the following objects inside an mx:TitleWindow:
>
> 
> 
> 
> 
>
>
> The display has 20px or so of space between the two text elements. How
> can I get rid of this space? Should I be using something other than
> mx:Text?
>




[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread Tim Hoff

Hi Barry,

Sorry to laugh a little, but parent.removeChild(this), is actually
removing the itemRenderer display object; and leaving a hole in the
TileList.  There are a few ways to remove list items; from within an
itemRenderer.  But, most of them involve referencing the list's
dataProvider directly; using something like:

myArrayCollection.removeItemAt(myTileList.selectedIndex);

Now, how do you get to the dataProvider from within the itemRenderer. 
Probably the best way is to dispatch an event when the delete button is
clicked.   Using events takes advantage of  loose coupling.   Listen for
the event in the class that contains the TileList and remove the item
from the dataProvider.  Depending on how you have it setup, chances are
that when you click the button inside the itemRenderer, the TileList's
selected item and index will change automatically.

Another way, if you want to get dirty, is to do something like this on
the click event of the delete button:

this.parentDocument.myTileList.dataProvider.removeItemAt(listData.rowInd\
ex);

-TH

--- In flexcoders@yahoogroups.com, "calisza" <[EMAIL PROTECTED]> wrote:
>
> After having a look around at various blogs, resources etc I'm stumped
> on the following :
>
> I have a TileList using a custom itemRenderer. The dataprovider is a
> standard ArrayCollection of objects.
>
> The itemRenderer contains an Image, a Label and a Button. When the
> user clicks the button - I want to remove that particular item from
> both the Tilelist and the dataProvider.
>
> The problem is that "parent.removeChild(this)" only works partially
> (it clears the tilelist "block" of the item's content, but the empty
> block remains in place... still highlighted). I also have no idea how
> to access the dataProvider from within the itemRenderer.
> parent.dataProvider and owner.dataProvider don't seem to work, my
> guess being that dataProvider is a private property.
>
> Any ideas ? Is there perhaps a better way of doing this ? (still new
> to flex so still learning).
>
> TIA,
> Barry
>




[flexcoders] Re: Drawing on Canvas using Graphics API with backgroundColor

2008-07-19 Thread Tim Hoff

Hi Vijay,

If you want to draw a line on top of the background of a canvas, you can
draw it in a BorderSkin.  Or, something like this works, usually by
overriding createChildren():

var myComponent:UIComponent = new UIComponent();
var myShape:Shape = new Shape();
myShape.graphics.lineStyle(2);
myShape.graphics.moveTo(0, 0);
myShape.graphics.lineTo(100, 100);
myComponent.addChild(myShape);
myCanvas.addChild(myComponent);

One of the component gurus will have to explain why you need to add a
UIComponent for this to work.

-TH

--- In flexcoders@yahoogroups.com, "Vijay Ganesan" <[EMAIL PROTECTED]>
wrote:
>
>
> I'm trying to draw a line on a Canvas using the Graphic API as
follows:
>
> myCanvas.graphics.clear();
> myCanvas.graphics.lineStyle(2);
> myCanvas.graphics.moveTo(0,0);
> myCanvas.graphics.lineTo(100,100);
>
> This works fine as long as the Canvas does not have a backgroundColor
> style property set. Once the backgroundColor property is set, my drawn
> line is "behind the background color". If I change the backroundAlpha
> to a value closer to 0, I can see my drawn line "through the
background".
>
> How can I draw my line on top of the background? I tried using a Shape
> object to draw into and add the Shape object as a child to the Canvas
> but get an exception:
> TypeError: Error #1034: Type Coercion failed: cannot convert
> flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent.
> I guess children of Canvas have to be IUIComponentS.
>
> What is the best strategy for drawing on a Canvas with a
backgroundColor?
>
> Thanks
> Vijay
>




[flexcoders] Re: Bake XML File into ActionScript

2008-07-20 Thread Tim Hoff

Hi,

Here's a way that you can embed an external xml file into your app:

[Embed('/data/myStubData.xml')]
private var myStubDataXML : Class;

private function onInitialize() : void {
 var myXML : XML = new XML( myStubDataXML.data );
}

-TH

--- In flexcoders@yahoogroups.com, "edlueze" <[EMAIL PROTECTED]> wrote:
>
> Yeah - that's what I'm currently doing. But that's a runtime solution
> - I was hoping for a compile-time solution.
>
> Thanks anyway!!
>
> --- In flexcoders@yahoogroups.com, "Randy Martin" randy@ wrote:
> >
> > I'd just read the XML file in using HttpService.
> >
> > ~randy
> >
> >
> > _
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> > Behalf Of edlueze
> > Sent: Sunday, July 20, 2008 1:22 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Bake XML File into ActionScript
> >
> >
> >
> > Hi Randy - thanks for the feedback!
> >
> > I was hoping to find a way to preserve the XML file without
> > contaminating it with the "private var novel:XML = " bit. That way I
> > can create the XML file using my favorite XML generator (and use a
> > validating XSD schema to make sure everything is correct). When the
> > XML file looks good I can simply drop it into my Flex project -
> > overriding the previous XML file - and everything should just
compile.
> >
> > That approach would work if I was working in MXML using the  > id="MyBooks" source="books.-xml"/> tag. I was hoping there was an
> > equivalent way to do it when working purely with ActionScript .as
files.
> >
> > Any ideas?
> >
> > --- In HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"flexcoders@, "Randy
> > Martin"  wrote:
> > >
> > > You can include an ActionScript file in it's own script block.
Then
> > in the
> > > .as file, you could just have the XML defined and nothing else.
> > >
> > > // put this in books.as -- or whatever filename you choose
> > > private var novel:XML = -My Book-;
> > >
> > > 
> > > http://www.adobe.com/2006/mxml"http://www.adobe.-com/2006/-mxml";
> > layout="absolute"->
> > > 
> > >
> > > ... rest of your code
> > >
> > > 
> > >
> > > HTH,
> > > ~randy
> > >
> > >
> > > _
> > >
> > > From: HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"flexcoders@
> > [mailto:HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED] On
> > > Behalf Of edlueze
> > > Sent: Sunday, July 20, 2008 11:02 AM
> > > To: HYPERLINK
> > "mailto:flexcoders%40yahoogroups.com"flexcoders@
> > > Subject: [flexcoders] Bake XML File into ActionScript
> > >
> > >
> > >
> > > What's the best way to compile an XML file directly into
ActionScript?
> > >
> > > You can assign an XML literal to a variable as such:
> > >
> > > var novel:XML = --My Book--
> > >
> > > But it would be much better to have the XML in an externally
managed
> > > file. I'd much prefer to do something like:
> > >
> > > var novel:XML = {include "Books.xml";--};
> > >
> > > But this doesn't seem to be allowed.
> > >
> > > I could load the XML file at runtime but then I'd have to deal
with
> > > the asynchronous nature of the loading and I'd have to handle any
> > > runtime errors if there was a problem - yuck!
> > >
> > > If I was working in MXML I'd be able to do something very elegant
such
> > > as using the compile-time tag  source="books.--xml"/>
> > >
> > > So how do I include XML into ActionScript in a way that is as
elegant
> > > as it is for MXML?
> > >
> > >
> > >
> > >
> > >
> > >
> > > No virus found in this outgoing message.
> > > Checked by AVG.
> > > Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
> > 7/19/2008
> > > 2:01 PM
> > >
> >
> >
> >
> >
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG.
> > Version: 7.5.523 / Virus Database: 270.5.2/1562 - Release Date:
> 7/19/2008
> > 2:01 PM
> >
>




[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-25 Thread Tim Hoff

Are you talking about the axis renderer labels for a categoryField?  If
so, check-out labelGap?

-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Amy" amyblankenship@ wrote:
> >
> > Hi, all;
> >
> > Is there any way to center a bar chart's labels vertically? The
> > labelAlign style only changes the horizontal alignment.
> >
> > Thanks;
> >
> > Amy
> >
>
> Bump-bump
>




[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-25 Thread Tim Hoff

Ok, so we're talking about a vertical axis.  .

* For a vertical axis, by default the labels are vertically aligned
to the tick marks (center).For these, you can adjust the label
position (up/down) slightly with the labelAlign property; on the axis
tag.  This still might not get you what you want though.  Hard to tell
without seeing an image.
* For a horizontal axis, use the labelGap property on the axis tag to
move the label down; from the axis line.
* And, of course, you can always create your own axisRenderer.  This
can get a little dicey though.

I'd try labelAlign before moving on to creating a custom axisRenderer. I
agree, the chart framework is a substantial step in a positive
direction.  I think that Ely put it nicely here:

http://www.quietlyscheming.com/blog/charts/easy-custom-charts/
<http://www.quietlyscheming.com/blog/charts/easy-custom-charts/>

-TH


--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Are you talking about the axis renderer labels for a
> categoryField? If
> > so, check-out labelGap?
>
> No, I am talking about this:
>
> |--|
> |..label...|
> |..|
> |..|
> |--|
>
> (the periods are just to keep yahoo from collapsing my lovely ascii
> bar graphic).
>
> What I want is
>
> |--|
> |..|
> |...label..|
> |..|
> |--|
>
> LabelGap does this:
>
> ...|--|
> ...|..|
> label..|..|
> ...|..|
> ...|--|
> gap ^^^
>
> Thanks :-)
>
> I'm really trying to avoid rewriting anything to make this work. It
> feels like the people who did the chart components have thought of
> virtually anything you might want to do to make them visually like
> you want, so I feel like I'm missing something.
>
> -Amy
>




[flexcoders] Re: Pick right color for the chart

2008-07-25 Thread Tim Hoff

Hi,

Here's a good tool for selecting/creating color schemes:

http://kuler.adobe.com/ 

And, this is a good place for themes:

http://www.scalenine.com/ 

-TH

--- In flexcoders@yahoogroups.com, "hworke" <[EMAIL PROTECTED]> wrote:
>
>
>
> Hello all,
>
> I have a column chart in my flex application.
> Initially I left it with the default colors but
> did not like it so I put my own color; man it
> was worse Where can I find some good color
> combination that I can use for my chart? Is there
> any good examples on picking right colors?
>
> Regards
>




[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-26 Thread Tim Hoff

Hi Amy,

I guess that everyone has their own perspective.  Like you, I used to
complain that the flex styles weren't as comprehensive as the .net
controls that I was used to at the time.  However, looking at it from an
80-20 point of view, the basics are there; especially for charts.  The
point is that I'll gladly sacrifice some built-in properties, if the
framework supports rolling my own components and/or extending; to
customize properties.  Sometimes, it takes more time and effort to
complain about something, than it does to just create it yourself. 
Here's a solution that took very little time to create:

Best Regards,
-TH



http://www.adobe.com/2006/mxml";>













___
Renderer

___

package {



import flash.display.Graphics;
import flash.geom.Rectangle;
import mx.charts.ChartItem;
import mx.charts.chartClasses.GraphicsUtilities;
import mx.core.IDataRenderer;
import mx.graphics.IFill;
import mx.graphics.IStroke;
import mx.skins.ProgrammaticSkin;
import mx.controls.Label;
import mx.core.UIComponent;
import mx.charts.BarChart;
import mx.charts.series.items.BarSeriesItem;



public class LabeledRenderer extends UIComponent implements
IDataRenderer {

private var _label:Label;



public function LabeledRenderer():void
{
super();

_label = new Label();
addChild(_label);
_label.setStyle("color",getStyle("color"));
}

private var _chartItem:ChartItem;



public function get data():Object{
return _chartItem;
}



public function set data(value:Object):void {

if (_chartItem == value) return;

_chartItem = ChartItem(value);

if(_chartItem != null)
_label.text = BarSeriesItem(_chartItem).xValue.toString();
}



private static var fills:Array = [];



override protected function
updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void{

super.updateDisplayList(unscaledWidth, unscaledHeight);



fills = getStyle("fills");

var fill:Number = (_chartItem == null)? 0:fills[_chartItem.index %
fills.length];
var rc:Rectangle = new Rectangle(0, 0, width , height );



var g:Graphics = graphics;
g.clear();
g.moveTo(rc.left,rc.top);
g.beginFill(fill);
g.lineTo(rc.right,rc.top);
g.lineTo(rc.right,rc.bottom);
g.lineTo(rc.left,rc.bottom);
g.lineTo(rc.left,rc.top);
g.endFill();



_label.setActualSize(_label.getExplicitOrMeasuredWidth(),_label.getExpli\
citOrMeasuredHeight());
_label.move(unscaledWidth/2 - _label.getExplicitOrMeasuredWidth()/2,
unscaledHeight/2 - _label.getExplicitOrMeasuredHeight()/2);

}



}
}


--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Ok, so we're talking about a vertical axis. .
> >
> > * For a vertical axis, by default the labels are vertically
> aligned
> > to the tick marks (center). For these, you can adjust the label
> > position (up/down) slightly with the labelAlign property; on the
> axis
> > tag. This still might not get you what you want though. Hard to
> tell
> > without seeing an image.
> > * For a horizontal axis, use the labelGap property on the axis
> tag to
> > move the label down; from the axis line.
> > * And, of course, you can always create your own axisRenderer.
> This
> > can get a little dicey though.
> >
> > I'd try labelAlign before moving on to creating a custom
> axisRenderer. I
> > agree, the chart framework is a substantial step in a positive
> > direction. I think that Ely put it nicely here:
>
> No, I am talking about the labels WITHIN the bar. I've posted a
> graphic here, since the ascii art got mangled despite my best
> efforts: http://www.magnoliamultimedia.com/images/labels.jpg. This
> is the BarSeries, not the Axis. In Eli's chart explorer, he does this
> with a custom renderer, but it seems to me that it shouldn't be
> necessary...why would the team choose an ugly alignment for the
> default and give you no way to change it?
>
> I've seen places on people's blogs and even in the Flex 3 Cookbook
> where people used bunches of code to do something you could do with
> CSS or a property on the control, so just because there is an example
> on someone's website (no matter how respected) that solves a problem
> with a custom renderer, that doesn't mean that the custom renderer is
> the only or even the best way to solve the problem.
>
> Thanks;
>
> Amy
>




[flexcoders] Re: Flex overlay over HTML

2008-07-26 Thread Tim Hoff

Hi Easow,

You could just use an IFrame.

-TH

--- In flexcoders@yahoogroups.com, "Easow Jacob" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a *HTML* page with a small *flex* app embedded into it.
>
> When you click on the *flex* app, I want an *overlay* to come *over*
page
> showing my app.
>
>
> Just wondering how I would go about that.
>
> Or if there is a way to have the original small map SWF resize to show
the
> app.
>
> Cheers
> Mathew
>
>
> --
> Mathew Easow Jacob,
> Bangalore.
> +91-9886979038
>





[flexcoders] Re: Flex overlay over HTML

2008-07-27 Thread Tim Hoff

Sorry Easow,

With this kind of communication, comes disconnects concerning meaning;
from time to time, or region to region.  I thought that I had a handle
on what you were looking for.  But, alass, my specific interpretation
failed to grasp the requirement.  Perhaps more detail will get us closer
to helping you,

Best Wishes.

-TH

--- In flexcoders@yahoogroups.com, "Easow Jacob" <[EMAIL PROTECTED]> wrote:
>
> Tim,
>
> It is not about rendering of HTML page.
>
> Here is my exact issue..
> I have a PopupButton..When i click the popUpButton a TitleWindow is
> appearing.But here is my problem.I embeded
> this swf in an HTML but when I click the Popup,titleWindow is not
> appearing,because it was not able to overlay above the HTML...
> How can I achive the tilte window to appear above he HTML.
>
> Thanks
>
> On Sat, Jul 26, 2008 at 9:51 PM, Tim Hoff [EMAIL PROTECTED] wrote:
>
> >
> > Hi Easow,
> >
> > You could just use an IFrame.
> >
> > -TH
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Easow
> > Jacob" easowj@ wrote:
> > >
> > > Hi,
> > >
> > > I have a *HTML* page with a small *flex* app embedded into it.
> > >
> > > When you click on the *flex* app, I want an *overlay* to come
*over*
> > page
> > > showing my app.
> > >
> > >
> > > Just wondering how I would go about that.
> > >
> > > Or if there is a way to have the original small map SWF resize to
show
> > the
> > > app.
> > >
> > > Cheers
> > > Mathew
> > >
> > >
> > > --
> > > Mathew Easow Jacob,
> > > Bangalore.
> > > +91-9886979038
> > >
> >
> >
> >
>
>
>
> --
> Mathew Easow Jacob,
> Bangalore.
> +91-9886979038
>





[flexcoders] Re: Centering Bar Chart labels vertically

2008-07-27 Thread Tim Hoff

Cool, and I totally understand where you're coming from.  Believe me,
there have been many occasions that I've run into the same brick walls;
where there isn't a built-in property for what I need to do.  And yes,
from time to time, the phrase "what the heck?" comes out of my mouth. 
You know, even for little things, like having a global way to use the
hand cursor on buttons, and all controls that extend from it.  I also
don't want to come off like I'm jumping down your throat for speaking
up.  Obviously, mine is just a single voice in a big croud.  My take on
it however, is that Flex isn't quite a mature product just yet.  There
is still room to improve and I do think that the people at Adobe have
done an exceptional job getting to this point.  Hopefully, threads like
this, logging wish-list features and continued patience will help make
the product much more robust in the future.

Cheers,
-TH

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi Amy,
> >
> > I guess that everyone has their own perspective. Like you, I used to
> > complain that the flex styles weren't as comprehensive as the .net
> > controls that I was used to at the time. However, looking at it from
> an
> > 80-20 point of view, the basics are there; especially for charts.
The
> > point is that I'll gladly sacrifice some built-in properties, if the
> > framework supports rolling my own components and/or extending; to
> > customize properties. Sometimes, it takes more time and effort to
> > complain about something, than it does to just create it yourself.
> > Here's a solution that took very little time to create:
>
> Thanks, and I do appreciate it--I don't mean to sound ungrateful. But
> the point of my question was not to complain.
>
> Literally every time I have gone to "roll my own" solution to
something
> that at first seemed to be missing from Charts, I discovered that it
> was already covered by the charting FW. And this is nice--really
nice--
> since I have never had a week where I literally did not have to recode
> _anything_, it just worked as advertised.
>
> While exploring charting, the majority of examples I have found have
> used a hack to solve a problem that doesn't exist in charting:
>
> http://www.rphelan.com/2008/05/23/taking-control-of-flex-charting-
> styles/
> uses a tick mark the same color as the background instead of labelgap
>
> http://blogs.adobe.com/flexdoc/2008/07/customized_legend_layout.html
> rewrites the Legend control rather than just set a width on the Legend
>
> and on and on...
>
> The problem, as I see it, is that when people run up against a
> percieved limitation like this, they immediately run out and write
> something to "fix" it. This robs the Adobe team of the motivation to
> provide nice, user-friendly components like charting if they know
> people aren't going to use the in-built functionality if they can't
> find the feature in the 3 seconds they spend with the docs. After all,
> if it takes 20 hours to write a feature, 20 hours to qa it, and 20
> hours to document it, if nobody ever uses it because they are so used
> to running out an building their own at the first hint of trouble, why
> would Adobe invest the time?
>
> I've been as guilty of it as anyone, but I intent to do my absolute
> darnedest to make sure I'm leveraging what's in the features before I
> go off and write something custom. I come from a history of developing
> in a product Adobe doesn't make anymore--Authorware. Most Authorware
> developers say there's a double learning curve with that product.
> First, you learn the icons and flow line (analagous to MXML) and then
> you learn the code. Most developers stop there, but a very few take
> the third curve--going back and _really_ learning the icons and _not_
> coding features that were already beautifully, elegantly implemented
in
> the icons.
>
> Because I've been through all three curves with another product that
> is similar in some ways to Flex, I know that I can save myself a lot
of
> effort if I try to integrate the third curve with the first and second
> curves.
>
> I sincerely believe there _is_ a simple solution to this problem that
> already exists in the charting framework. And that is the answer I'm
> asking for. It's a question, not a complaint.
>
> Thanks :-)
>
> -Amy
>





[flexcoders] Re: flex 2/3 charting questions

2008-07-29 Thread Tim Hoff

As a related note, if you're automating a flex3 build (mxmlc) with
charts, using ant, you may want to to include the following files into
the project.   Otherwise, there will be compile errors; if the machine
doesn't have the pro version installed.

/libs/datavisualization.swc (add library path)
/locale/en_US/charts.properties

-TH

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Tuesday 29 Jul 2008, Maciek wrote:
> > We need to build a Flex 2 project that uses Flex Charting. Is it
> > possible to download Flex Charting 2?
>
> I think it's included in the SDK, but watermarked. Could be wrong.
>
> > seem to point to FlexBuilder 3. I know that FlexBuilder 3 includes
the
> > Flex 2 SDK: with the pro version (that includes Flex 3 Charting), is
it
> > possible to build a project with the Flex 2 SDK but using Flex 3
> > Charting?
>
> No.
>
> > from places like Amazon, but this is really sort of a one-time
> > build--the watermarks are not important and shortly afterwards we're
> > planning to move to Flex 3.
>
> Just use the Flex 2 SDK then.
>
> --
> Tom Chiverton
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at the
registered office. Any reference to a partner in relation to Halliwells
LLP means a member of Halliwells LLP. Regulated by The Solicitors
Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents. If you have received this
email in error please delete it and notify Halliwells LLP IT Department
on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>





[flexcoders] Re: Free Flex Gauge Component

2008-07-29 Thread Tim Hoff

Very cool Tom, thanks.

-TH

--- In flexcoders@yahoogroups.com, "twgonzalez" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "twgonzalez" tgonzalez@ wrote:
> Update v.04 released New features: Alert Levels Log Scale BounceEffect
> on/off More accurate tick marks You can see it here
>
 v04.html>  .
>





[flexcoders] Re: how to get the y position of item in list

2008-07-29 Thread Tim Hoff

Here's one way.   If you're scrolling to the index and setting the
currentItem, you an use this code with the change event:

private function onItemClick(event:ListEvent):void
{
 var pt:Point = new Point(event.itemRenderer.x,
event.itemRenderer.y);
 pt = event.currentTarget.localToGlobal(pt);
 Alert.show(pt.y.toString());
}


-TH

--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> Is there a way to get the y position of a row in a list or datagrid?
>
> I noticed that list has a protected var rowInfo that holds an array of
> ListRowInfo objects with x and y properties.
> From the list class I could do rowInfo[rowNumber].y but am trying to
> get the y value from outside the list though...
>
> Also, rowInfo only holds info for the visible rows.
> For example, I have a list with 65 items, 20 of which are shown before
> the scrollbar shows up.
>
> I want to get rowInfo[5], fine.
> I want to get rowInfo[25] it throws an error.
>
> So I need to scrollToIndex(25) but then I don't know which entry in
> rowInfo corresponds to my selected item.
>



[flexcoders] Re: how to get the y position of item in list

2008-07-29 Thread Tim Hoff

Ok, no worries.  Take 2:

import mx.controls.listClasses.IListItemRenderer;

private function scrollToListItem( index : Number )
{
  myList.scrollToIndex(index);
  myList.selectedIndex = index;



  var itemRenderer:IListItemRenderer =
myList.indexToItemRenderer(index);



  var pt:Point = new Point(itemRenderer.x, itemRenderer.y);
  pt = itemRenderer.localToGlobal(pt);
  Alert.show(pt.y.toString());
}





-TH

--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
>
> In order to get that I would have to click on the item.
> I'm not clicking, I just need to scroll then grab the position of the
> item.
> Thanks for the try, but this is not a viable solution.
>
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Here's one way. If you're scrolling to the index and setting the
> > currentItem, you an use this code with the change event:
> >
> > private function onItemClick(event:ListEvent):void
> > {
> > var pt:Point = new Point(event.itemRenderer.x,
> > event.itemRenderer.y);
> > pt = event.currentTarget.localToGlobal(pt);
> > Alert.show(pt.y.toString());
> > }
> >
> > 
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "blc187"  wrote:
> > >
> > > Is there a way to get the y position of a row in a list or
> datagrid?
> > >
> > > I noticed that list has a protected var rowInfo that holds an
> array of
> > > ListRowInfo objects with x and y properties.
> > > From the list class I could do rowInfo[rowNumber].y but am trying
> to
> > > get the y value from outside the list though...
> > >
> > > Also, rowInfo only holds info for the visible rows.
> > > For example, I have a list with 65 items, 20 of which are shown
> before
> > > the scrollbar shows up.
> > >
> > > I want to get rowInfo[5], fine.
> > > I want to get rowInfo[25] it throws an error.
> > >
> > > So I need to scrollToIndex(25) but then I don't know which entry
> in
> > > rowInfo corresponds to my selected item.
> > >
> >
>




[flexcoders] Re: Flex 2.01 date problem

2008-07-29 Thread Tim Hoff

Yes, but what Matt and Gordon are saying is if you're going to create a
date like this (adjust, instead of construct all at once), you may run
into a leap year issue.

var dtTest:Date = new Date - dtTest.toDateString()=Tue Jul 29 2008
dtTest.fullYear = 1987 - dtTest.toDateString()=Wed Jul 29 1987
dtTest.month = 1 - dtTest.toDateString()=Sun Mar 1 1987 - Here's where
the month rolled because there is no Feb 29th in 1987.
dtTest.date = 3 - dtTest.toDateString()=Tue Mar 3 1987

-TH

--- In flexcoders@yahoogroups.com, "aceoohay" <[EMAIL PROTECTED]> wrote:
>
> What you have shown is that if you use invalid data (February 29th
> of a non leap year) you get bad results. What I showed (February 3rd
> of a non leap year) was that if I use valid data I get invalid
> results.
>
> I truly believe this is a bug.
>
> Paul
> --- In flexcoders@yahoogroups.com, "Gordon Smith" gosmith@
> wrote:
> >
> > A simpler test is
> >
> >
> >
> > var d:Date = new Date(1987, 1, 29);
> > trace(d);
> >
> >
> >
> > This traces "Sun Mar 1 00:00:00 GMT-0800 1987", presumably because
> 1987
> > didn't have a February 29. So I doubt waht you're seeing is a bug.
> (I'd
> > have to check the Ecmascript spec to say for sure.) But it means
> that
> > using Date correctly is much trickier than I ever realized!
> >
> >
> >
> > Gordon Smith
> >
> > Adobe Flex SDK Team
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of Matt Chotin
> > Sent: Tuesday, July 29, 2008 2:31 PM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Re: Flex 2.01 date problem
> >
> >
> >
> > Try setting the date before you set the month? I think setting the
> month
> > while the current day is later than 28 is going to roll the month
> on you
> > potentially? Just by reording that I got it to work. When I tried
> to set
> > the Date's time to 0 to avoid it using the current date that
> didn't seem
> > to fix things...
> >
> > It does feel like an odd error though. Might be worth filing a
> Flash
> > Player bug at http://bugs.adobe.com/jira.
> 
> > Though would be good to test JavaScript to see if it behaves the
> same.
> >
> > Matt
> >
> > On 7/29/08 2:14 PM, "aceoohay" pauls@
> >  > wrote:
> >
> > Just as a test I used the following;
> >
> > dtTest = new Date(1987,1,3,0,0,0,0);
> >
> > This returned;
> >
> > dtTest.toDateString()=Tue Feb 3 1987
> >
> > which is what I expected. I am so confused.
> >
> > Any ideas?
> >
> > Paul
> >
> > --- In flexcoders@yahoogroups.com  40yahoogroups.com>
> >  , "aceoohay"  wrote:
> > >
> > > The following code yields unexpected results on a date;
> > >
> > > var dtTest:Date = new Date;
> > > dtTest.fullYear = 1987;
> > > dtTest.month = 1;
> > > dtTest.date = 3;
> > > trace('dtTest.toDateString()=' +
> > > dtTest.toDateString());
> > >
> > > The result is;
> > >
> > > dtTest.toDateString()=Tue Mar 3 1987
> > >
> > > It is my understanding that this should be February not March.
> > What am
> > > I doing wrong? or is there a bug in the Date object?
> > >
> > > Paul
> > >
> >
>




  1   2   3   4   5   6   7   8   9   10   >