Re: [flexcoders] Re: check for daylight savings time

2009-04-14 Thread Dennis Falling
Thanks, that's exactly what I needed.  The isDST function didn't seem to
work for me (always returned false), but comparing my date's against the dst
start and dst end worked.  I'm using a range of dates from March 5th (not
DST) to now (DST).

On Mon, Apr 13, 2009 at 6:54 PM, lampei lam...@gmail.com wrote:



 My FlexDateUtils library has a class in it to check for DST

 http://code.google.com/p/flexdateutils/


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis
 Falling dfall...@... wrote:
 
  I'm trying to print the time zone for a date, and need to know the
 daylight
  savings time. Is there a way to get this in flex?
  Thanks.
 

  



[flexcoders] can't copy/paste

2009-04-13 Thread Dennis Falling
On some TextInputs/TextArea's, I'm completely unable to use keyboard
copy/paste shortcuts, but the mouse contextual menu works.  This happens on
mac and pc.  The code's too complicated to submit, so does anyone know of
things that prevent copy/paste from working?
Thanks.


[flexcoders] check for daylight savings time

2009-04-13 Thread Dennis Falling
I'm trying to print the time zone for a date, and need to know the daylight
savings time.  Is there a way to get this in flex?
Thanks.


[flexcoders] non-editable datagrid cells

2009-03-06 Thread Dennis Falling
Is there a way to prevent a specific cell from triggering its renderer?  I
need other cells in that column to be editable, but not it.


Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Dennis Falling
Wow, I don't know how many times I've typed ,0 and ignored priority.
 Thanks!

On Thu, Feb 5, 2009 at 12:14 PM, Alex Harui aha...@adobe.com wrote:

Sure, because it set up its listener first.  You can set your listener
 at a higher priority.  I'd still start with my list selection example on my
 blog.  You should be able to tweak it to just not allow selection if the
 event.target is a button.



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Dennis Falling
 *Sent:* Wednesday, February 04, 2009 10:20 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting
 row?



 That's what I was trying- stopping propagation and preventing default.
  Apparently the datagrid gets the event first.

 On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@yahoo.com wrote:

 Can you have the items catch the click event of the button and prevent
 propagation?



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis
 Falling dfall...@... wrote:
 

  I'm using a DataGrid. But the problem is that I want the selection
 behavior
  to behave normally, except for when the buttons are clicked.
  Thanks
 
  On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos 

  fotis.chatzini...@... wrote:
 
   if you are using a list or tile list there is a property selectable
   which you can make false.
  
  
  

   On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@... wrote:
  
   Is there one involving item renderers? I believe I scoured
 your site
   pretty thoroughly, but the only time I see selection behavior being
   overriden is inside an extended list or DataGrid. Is it possible
 to pull
   this off with only an item renderer?
  
   Thanks
  

   On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@... wrote:
  
   There a example on preventing list selection on my blog
  
  
  
   *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
   Behalf Of *Dennis Falling
   *Sent:* Tuesday, February 03, 2009 5:30 PM
   *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from
   selecting row?
  
  
  
   That would work for invalidating my selection, but I simply want the
   selection to never occur. That way if something was previously
 selected, it
   isn't altered.
  

   On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@... wrote:
  
   have you tried datagrid.selectedItems=null?
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com

 flexcoders%40yahoogroups.com, Dennis


   Falling dfalling@ wrote:
   
I have an ItemRenderer with buttons in it. In the click listener
   functions
for these buttons, I call event.stopImmediatePropagation (and
preventDefault, though that doesn't seem relevant), but the row is
   still
selected. How can I prevent it from receiving the click and
   highlighting
itself?
Thanks.
   
  
  
  
  
  
  
  
   --
   Fotis Chatzinikos, Ph.D.
   Founder,
   Phinnovation

   fotis.chatzini...@...,
  
  
  
 



   



Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-04 Thread Dennis Falling
Is there one involving item renderers?  I believe I scoured your site pretty
thoroughly, but the only time I see selection behavior being overriden is
inside an extended list or DataGrid.  Is it possible to pull this off with
only an item renderer?
Thanks

On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@adobe.com wrote:

There a example on preventing list selection on my blog



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, February 03, 2009 5:30 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting
 row?



 That would work for invalidating my selection, but I simply want the
 selection to never occur.  That way if something was previously selected, it
 isn't altered.

 On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@yahoo.com wrote:

 have you tried datagrid.selectedItems=null?



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis
 Falling dfall...@... wrote:
 
  I have an ItemRenderer with buttons in it. In the click listener
 functions
  for these buttons, I call event.stopImmediatePropagation (and
  preventDefault, though that doesn't seem relevant), but the row is still
  selected. How can I prevent it from receiving the click and highlighting
  itself?
  Thanks.
 



   



Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-04 Thread Dennis Falling
I'm using a DataGrid.  But the problem is that I want the selection behavior
to behave normally, except for when the buttons are clicked.
Thanks

On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos 
fotis.chatzini...@gmail.com wrote:

   if you are using a list or tile list there is a property selectable
 which you can make false.



 On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@gmail.com wrote:

   Is there one involving item renderers?  I believe I scoured your site
 pretty thoroughly, but the only time I see selection behavior being
 overriden is inside an extended list or DataGrid.  Is it possible to pull
 this off with only an item renderer?

 Thanks

 On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@adobe.com wrote:

There a example on preventing list selection on my blog



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, February 03, 2009 5:30 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from
 selecting row?



 That would work for invalidating my selection, but I simply want the
 selection to never occur.  That way if something was previously selected, it
 isn't altered.

 On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@yahoo.com wrote:

 have you tried datagrid.selectedItems=null?



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis
 Falling dfall...@... wrote:
 
  I have an ItemRenderer with buttons in it. In the click listener
 functions
  for these buttons, I call event.stopImmediatePropagation (and
  preventDefault, though that doesn't seem relevant), but the row is
 still
  selected. How can I prevent it from receiving the click and
 highlighting
  itself?
  Thanks.
 







 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@gmail.com,

  



Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-04 Thread Dennis Falling
That's what I was trying- stopping propagation and preventing default.
 Apparently the datagrid gets the event first.

On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@yahoo.com wrote:

   Can you have the items catch the click event of the button and prevent
 propagation?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis
 Falling dfall...@... wrote:
 
  I'm using a DataGrid. But the problem is that I want the selection
 behavior
  to behave normally, except for when the buttons are clicked.
  Thanks
 
  On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos 
  fotis.chatzini...@... wrote:
 
   if you are using a list or tile list there is a property selectable
   which you can make false.
  
  
  
   On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfall...@... wrote:
  
   Is there one involving item renderers? I believe I scoured
 your site
   pretty thoroughly, but the only time I see selection behavior being
   overriden is inside an extended list or DataGrid. Is it possible
 to pull
   this off with only an item renderer?
  
   Thanks
  
   On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aha...@... wrote:
  
   There a example on preventing list selection on my blog
  
  
  
   *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
   Behalf Of *Dennis Falling
   *Sent:* Tuesday, February 03, 2009 5:30 PM
   *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from
   selecting row?
  
  
  
   That would work for invalidating my selection, but I simply want the
   selection to never occur. That way if something was previously
 selected, it
   isn't altered.
  
   On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@... wrote:
  
   have you tried datagrid.selectedItems=null?
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 flexcoders%40yahoogroups.com, Dennis
   Falling dfalling@ wrote:
   
I have an ItemRenderer with buttons in it. In the click listener
   functions
for these buttons, I call event.stopImmediatePropagation (and
preventDefault, though that doesn't seem relevant), but the row is
   still
selected. How can I prevent it from receiving the click and
   highlighting
itself?
Thanks.
   
  
  
  
  
  
  
  
   --
   Fotis Chatzinikos, Ph.D.
   Founder,
   Phinnovation
   fotis.chatzini...@...,
  
  
  
 

  



[flexcoders] Prevent ItemRenderer click from selecting row?

2009-02-03 Thread Dennis Falling
I have an ItemRenderer with buttons in it.  In the click listener functions
for these buttons, I call event.stopImmediatePropagation (and
preventDefault, though that doesn't seem relevant), but the row is still
selected.  How can I prevent it from receiving the click and highlighting
itself?
Thanks.


Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-03 Thread Dennis Falling
That would work for invalidating my selection, but I simply want the
selection to never occur.  That way if something was previously selected, it
isn't altered.

On Tue, Feb 3, 2009 at 5:08 PM, fourctv four...@yahoo.com wrote:

   have you tried datagrid.selectedItems=null?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dennis
 Falling dfall...@... wrote:
 
  I have an ItemRenderer with buttons in it. In the click listener
 functions
  for these buttons, I call event.stopImmediatePropagation (and
  preventDefault, though that doesn't seem relevant), but the row is still
  selected. How can I prevent it from receiving the click and highlighting
  itself?
  Thanks.
 

  



Re: [flexcoders] Re: DataGrid selection w/ filtered contents

2009-01-16 Thread Dennis Falling
Thanks...I wish I had a good example of when that didn't work for me...  I
had times when the data would be filtered down such that the item previously
selected was still selected, but its index had changed.  If I tried to tell
the grid to select the new index, it ignored my command because the same
item was selected.  I had to toggle no selection/selection to get it to
behave properly.

The selectedIndex behavior really seems like a bug to me...  
http://flexninja.com/examples/DGFilterTest/DGFilterTest.html.  If you type
'3' for example, only 3 and 13 will be left, but the grid will claim the
selectedIndex is 3 (because that's 3's previous index.)

On Thu, Jan 15, 2009 at 6:03 PM, Tim Hoff timh...@aol.com wrote:


 One way is to bind a variable to the selectedIndex of the DataGrid:

 [Bindable]
 private var selectedIndex:int = -1;

 mx:DataGrid selectedIndex={ selectedIndex }/

 Then when you filter the collection:

 myCollection.filterFunction = myFilterFunction;
 myCollection.refresh();

 selectedIndex = (myCollection.length  0 ? 0 : -1);

 -TH


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 dfalling dfall...@... wrote:
 
  Is there a way of getting accurate selectedIndex from an datagrid
  that's bound to a filtered data provider? I'm running into the same
  problem from several different angles... I ask a datagrid what its
  selectedIndex is and it claims it's 10. I tell it to select index 0
  instead, at which point it dispatches the change event and is still
  set to 0.
 
  I'm simply trying to make sure that when the collection is filtered,
  the grid selects the first item in the list to allow for easy keyboard
  navigation.
 
  Cheers.
 

  



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

2008-07-11 Thread Dennis Falling
Right, I dug around for a while in the framework and CSS looking for the
actual skin.  In LinkButtonSkin.as, it specifies the upskin and overskin,
but because this is all inside a single file and it uses the appropriate
skin, it seems that I can't tell it to use the upskin for the overskin

case overSkin:
{
drawRoundRect(
0, 0, w, h, cornerRadius,
rollOverColor, 1);
break;
}

If I ever run into any issues with my .png I can just copy the skin file and
replace rollOverColor, 1 with 0, 0 for every state and I'll get the same
effect.

Thanks


On Fri, Jul 11, 2008 at 10:55 AM, 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] wrote:

 Copy the LinkButton CSS and assign whatever was in upSkin to overSkin


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Thursday, July 10, 2008 4:13 PM


 *To:* 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] wrote:

   Maybe setStyle(overSkin, getStyle(upSkin))


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Thursday, July 10, 2008 12:52 PM
 *To:* 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] 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 flexcoders%40yahoogroups.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: [EMAIL PROTECTED] 
  flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
 flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com] On
  Behalf Of Tim Hoff
  Sent: Monday, July 07, 2008 10:02 AM
  To: [EMAIL PROTECTED] 
  flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.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 [EMAIL PROTECTED] 
  flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com  
 flexcodersmailto:flexcodersflexcoders
 %
 40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Skin the way you normally do, but set the alpha=0
  
  
  
   
  
   From: [EMAIL PROTECTED] 
   flexcoders

Re: [flexcoders] So I guess I don't understand states

2008-07-11 Thread Dennis Falling
Yeah, I didn't understand states.  Changing from one state to another always
unplays the properties and styles set in the previous state.  Not a fan of
that at all but that explains all my confusion.



On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] wrote:

   I thought I had states down pat until the last few days.

 **States:**
 normal state:
 - change viewstack to show data renderers
 no data state:
 - change viewstack to show no data error view
 fetching data state:
 - empty

 **Transitions:**
 to fetching data state:
 - display fetching data view
 from fetching data state:
 - hide fetching data view

 My problem is that whenever I went into the fetchingData state, it
 would properly perform the transitions for that state (showing the
 fetching data view), but would also incorrectly perform whatever code
 was inside the no data state. It also performed the code in the
 fetching data state.

 I created a function to watch the state changes and the no data state
 was never being entered, but its properties were definitely being applied.

 I now have it working by doing everything in transitions, but does
 anyone know why this problem would happen? I tried to write a small
 sample app to demo this problem, but of course it worked fine.

 Thanks

  



Re: [flexcoders] So I guess I don't understand states

2008-07-11 Thread Dennis Falling
Not sure what you mean...I didn't research it beyond figuring out my
problem...  I had a viewstack with normal and no data views and wanted it to
stay the same (either in no data or normal) when going to the
updating/downloading state.  Was frustrated when my normal state was
inexplicably showing the no data view when it went to the updating state.  I
finally figured out it was undoing the current state (normal) and reverting
back to the previous values, which incidentally were applied by the no data
state.  Once I moved all the code to transitions which are not undone, it
worked fine.  My current understanding is that anything you wish to be
undone after you move to another state should be done in states.  Any effect
or permanent change should be done in transitions.


On Fri, Jul 11, 2008 at 8:11 PM, Alex Harui [EMAIL PROTECTED] wrote:

I don't use states much, but aren't there derived states so it will
 only unplay to a certain point?


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Friday, July 11, 2008 1:46 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] So I guess I don't understand states



 Yeah, I didn't understand states.  Changing from one state to another
 always unplays the properties and styles set in the previous state.  Not a
 fan of that at all but that explains all my confusion.


  On Tue, Jul 8, 2008 at 5:07 PM, dfalling [EMAIL PROTECTED] wrote:

 I thought I had states down pat until the last few days.

 **States:**
 normal state:
 - change viewstack to show data renderers
 no data state:
 - change viewstack to show no data error view
 fetching data state:
 - empty

 **Transitions:**
 to fetching data state:
 - display fetching data view
 from fetching data state:
 - hide fetching data view

 My problem is that whenever I went into the fetchingData state, it
 would properly perform the transitions for that state (showing the
 fetching data view), but would also incorrectly perform whatever code
 was inside the no data state. It also performed the code in the
 fetching data state.

 I created a function to watch the state changes and the no data state
 was never being entered, but its properties were definitely being applied.

 I now have it working by doing everything in transitions, but does
 anyone know why this problem would happen? I tried to write a small
 sample app to demo this problem, but of course it worked fine.

 Thanks



  



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

2008-07-10 Thread Dennis Falling
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] 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, 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 
 






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

2008-07-10 Thread Dennis Falling
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] wrote:


Maybe setStyle(“overSkin”, getStyle(“upSkin”))



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Dennis Falling

Sent: Thursday, July 10, 2008 12:52 PM
To: 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]  
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, 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 
 









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

2008-07-10 Thread Dennis Falling
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] wrote:

Copy the LinkButton CSS and assign whatever was in upSkin to overSkin


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Thursday, July 10, 2008 4:13 PM

 *To:* 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] wrote:

   Maybe setStyle(overSkin, getStyle(upSkin))


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Thursday, July 10, 2008 12:52 PM
 *To:* 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] 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 flexcoders%40yahoogroups.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: [EMAIL PROTECTED] 
  flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com
 [mailto:[EMAIL PROTECTED] 
 flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com] On
  Behalf Of Tim Hoff
  Sent: Monday, July 07, 2008 10:02 AM
  To: [EMAIL PROTECTED] 
  flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.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 [EMAIL PROTECTED] 
  flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com  
 flexcodersmailto:flexcodersflexcoders
 %
 40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Skin the way you normally do, but set the alpha=0
  
  
  
   
  
   From: [EMAIL PROTECTED] 
   flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com  
 flexcodersmailto:flexcodersflexcoders
 %
 40yahoogroups.com
  [mailto:[EMAIL PROTECTED] 
  flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com  
 flexcodersmailto:flexcodersflexcoders
 %
 40yahoogroups.com
  ]
  On
   Behalf Of Dennis Falling
   Sent: Sunday, July 06, 2008 12:43 PM
   To: [EMAIL PROTECTED] 
   flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 ups.com flexcoders%40yahoogroups.com  
 flexcodersmailto:flexcodersflexcoders
 %
 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@
ultrakymailto:ultraky 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

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

2008-07-06 Thread Dennis Falling
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] Trick button into rendering mouseover/mouseout states

2008-07-05 Thread Dennis Falling
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-05 Thread Dennis Falling
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



Re: [flexcoders] Datagrid Password Column?

2008-06-11 Thread Dennis Falling
With backgroundAlpha=1, the box always has the white background, whether
it's selected or not:
http://dl.getdropbox.com/u/15760/alpha1.PNG

With backgroundAlpha=0, the box never has a white background, even when it
is selected:
http://dl.getdropbox.com/u/15760/alpha0.PNG

Both of these ways are inconsistent with the typical appearance of a
DataGridColumn.  That's all I'm going for- for it to look white when it
should (when it's in edit mode) and not white when it shouldn't (when it's
not being edited.)

I was completely overlooking the fact that you can have a renderer and an
editor.  I got it looking right by doing this:

mx:DataGridColumn dataField=username headerText=Username/
mx:DataGridColumn dataField=password headerText=Password
editorDataField=text
mx:itemEditor
mx:Component
mx:TextInput displayAsPassword=true borderStyle=none
backgroundAlpha=1/
/mx:Component
/mx:itemEditor
mx:itemRenderer
mx:Component
mx:TextInput displayAsPassword=true borderStyle=none
backgroundAlpha=0/
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn

The look I was going for:
http://dl.getdropbox.com/u/15760/correct.PNG


Thanks for the help!


On Wed, Jun 11, 2008 at 1:31 AM,  wrote:

A TextInput just contains a TextField and draws border and background
 around it.  DGIR extends TextField.  If you're ok with popup editors, I'd
 extends both DGIR as the renderer and TextInput as the editor.



 If you really need TextInput as the renderer, try setting
 backgroundColor=.  I'm not sure I understand what was wrong about
 backgroundAlpha=0


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, June 10, 2008 10:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Datagrid Password Column?



 I'm trying to make an editable password column in a datagrid that displays
 asterisks instead of the characters of the string that it's displaying.
 Simply using a TextInput with displayAsPassword does exactly this, but when
 the row is selected (whether the password field is selected or not), the
 password field has a solid white background.  This looks inconsistent
 compared to other editable column fields, so I'm hoping someone has a trick
 to fix this.  As Tracy suggested, I can make it's background alpha 0, but
 then it doesn't look right when it's selected.  This may seem petty, but it
 looks wrong.

 I can always create an item renderer that emulates the TextInput's
 displayAsPassword property, but I'm so close now, and was hoping there's a
 trick I'm missing to get this working.


  On Tue, Jun 10, 2008 at 11:56 PM, Alex Harui [EMAIL PROTECTED] wrote:

 Maybe I don't understand what you want.  Do you want rendererIsEditor or do
 you want an editor to popup over the cell?  My first instinct would be to
 have an editor popup over the cell so rendererIsEditor=false, and I subclass
 DGIR as the column renderer, and supply a custom TextInput as the editor
 with displayAsPassword=false.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, June 10, 2008 9:44 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Datagrid Password Column?



 I tried doing the same thing I'm doing now, except moving the TextInput
 into an external item renderer and listening for begin/end edit events to
 toggle the alpha, but that seemed really clunky.  So you're saying that is
 probably the best way?

 On Tue, Jun 10, 2008 at 11:34 PM, Alex Harui [EMAIL PROTECTED] wrote:

 You should be able to use DataGridItemRenderer and set its
 displayAsPassword=true in a subclass or in a custom classFactory


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tracy Spratt
 *Sent:* Tuesday, June 10, 2008 6:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Datagrid Password Column?



 Maybe set backgroundAlpha=0?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, June 10, 2008 7:28 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Datagrid Password Column?



 I have an editable DataGrid that displays usernames and masked passwords
 ().  To hide the password, I'm just using an inline item renderer:

 mx:DataGridColumn dataField=password headerText=Password
 editorDataField=text rendererIsEditor=true
 mx:itemRenderer
 mx:Component
 mx:TextInput displayAsPassword=true borderStyle=none/
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn

 This works exactly how I want it to, with very little code...except it
 doesn't look too hot when that row is selected: the TextInput always has a
 solid white background whether it's selected

[flexcoders] Datagrid Password Column?

2008-06-10 Thread Dennis Falling
I have an editable DataGrid that displays usernames and masked passwords
().  To hide the password, I'm just using an inline item renderer:

mx:DataGridColumn dataField=password headerText=Password
editorDataField=text rendererIsEditor=true
mx:itemRenderer
mx:Component
mx:TextInput displayAsPassword=true borderStyle=none/
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn

This works exactly how I want it to, with very little code...except it
doesn't look too hot when that row is selected: the TextInput always has a
solid white background whether it's selected or not.  Is there an easy way
to tell it to make it not show a background except when selected (appear
like the default item editor)?  I've listened to the various edit events but
can't figure out a clean way of doing this.

Thanks!


Re: [flexcoders] Datagrid Password Column?

2008-06-10 Thread Dennis Falling
If I do that then it's never white.  Again, I'm going for consistency with
the normal appearance of editable datagrid columns.

On Tue, Jun 10, 2008 at 8:06 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

Maybe set backgroundAlpha=0?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, June 10, 2008 7:28 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Datagrid Password Column?



 I have an editable DataGrid that displays usernames and masked passwords
 ().  To hide the password, I'm just using an inline item renderer:

 mx:DataGridColumn dataField=password headerText=Password
 editorDataField=text rendererIsEditor=true
 mx:itemRenderer
 mx:Component
 mx:TextInput displayAsPassword=true borderStyle=none/
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn

 This works exactly how I want it to, with very little code...except it
 doesn't look too hot when that row is selected: the TextInput always has a
 solid white background whether it's selected or not.  Is there an easy way
 to tell it to make it not show a background except when selected (appear
 like the default item editor)?  I've listened to the various edit events but
 can't figure out a clean way of doing this.

 Thanks!

  



Re: [flexcoders] Datagrid Password Column?

2008-06-10 Thread Dennis Falling
I tried doing the same thing I'm doing now, except moving the TextInput into
an external item renderer and listening for begin/end edit events to toggle
the alpha, but that seemed really clunky.  So you're saying that is probably
the best way?

On Tue, Jun 10, 2008 at 11:34 PM, Alex Harui [EMAIL PROTECTED] wrote:

You should be able to use DataGridItemRenderer and set its
 displayAsPassword=true in a subclass or in a custom classFactory


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tracy Spratt
 *Sent:* Tuesday, June 10, 2008 6:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Datagrid Password Column?



 Maybe set backgroundAlpha=0?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, June 10, 2008 7:28 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Datagrid Password Column?



 I have an editable DataGrid that displays usernames and masked passwords
 ().  To hide the password, I'm just using an inline item renderer:

 mx:DataGridColumn dataField=password headerText=Password
 editorDataField=text rendererIsEditor=true
 mx:itemRenderer
 mx:Component
 mx:TextInput displayAsPassword=true borderStyle=none/
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn

 This works exactly how I want it to, with very little code...except it
 doesn't look too hot when that row is selected: the TextInput always has a
 solid white background whether it's selected or not.  Is there an easy way
 to tell it to make it not show a background except when selected (appear
 like the default item editor)?  I've listened to the various edit events but
 can't figure out a clean way of doing this.

 Thanks!

  



Re: [flexcoders] Datagrid Password Column?

2008-06-10 Thread Dennis Falling
I'm trying to make an editable password column in a datagrid that displays
asterisks instead of the characters of the string that it's displaying.
Simply using a TextInput with displayAsPassword does exactly this, but when
the row is selected (whether the password field is selected or not), the
password field has a solid white background.  This looks inconsistent
compared to other editable column fields, so I'm hoping someone has a trick
to fix this.  As Tracy suggested, I can make it's background alpha 0, but
then it doesn't look right when it's selected.  This may seem petty, but it
looks wrong.

I can always create an item renderer that emulates the TextInput's
displayAsPassword property, but I'm so close now, and was hoping there's a
trick I'm missing to get this working.



On Tue, Jun 10, 2008 at 11:56 PM, Alex Harui [EMAIL PROTECTED] wrote:

Maybe I don't understand what you want.  Do you want rendererIsEditor
 or do you want an editor to popup over the cell?  My first instinct would be
 to have an editor popup over the cell so rendererIsEditor=false, and I
 subclass DGIR as the column renderer, and supply a custom TextInput as the
 editor with displayAsPassword=false.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, June 10, 2008 9:44 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Datagrid Password Column?



 I tried doing the same thing I'm doing now, except moving the TextInput
 into an external item renderer and listening for begin/end edit events to
 toggle the alpha, but that seemed really clunky.  So you're saying that is
 probably the best way?

 On Tue, Jun 10, 2008 at 11:34 PM, Alex Harui [EMAIL PROTECTED] wrote:

 You should be able to use DataGridItemRenderer and set its
 displayAsPassword=true in a subclass or in a custom classFactory


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Tracy Spratt
 *Sent:* Tuesday, June 10, 2008 6:06 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Datagrid Password Column?



 Maybe set backgroundAlpha=0?

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Tuesday, June 10, 2008 7:28 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Datagrid Password Column?



 I have an editable DataGrid that displays usernames and masked passwords
 ().  To hide the password, I'm just using an inline item renderer:

 mx:DataGridColumn dataField=password headerText=Password
 editorDataField=text rendererIsEditor=true
 mx:itemRenderer
 mx:Component
 mx:TextInput displayAsPassword=true borderStyle=none/
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn

 This works exactly how I want it to, with very little code...except it
 doesn't look too hot when that row is selected: the TextInput always has a
 solid white background whether it's selected or not.  Is there an easy way
 to tell it to make it not show a background except when selected (appear
 like the default item editor)?  I've listened to the various edit events but
 can't figure out a clean way of doing this.

 Thanks!



  



Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-06 Thread Dennis Falling
I finally got around to implementing the fix and am having issues on the
server... It basically is thinking that the ;jsessionid... is part of the
command name being called:
UnsupportedCommandException: cmd
'uploadfile;jsessionid=4913B7A92119CA91D683D8F884829475' is not supported.
Anyone know a fix for this, or a forum that would be more appropriate to
ask, as this is more of a Tomcat/jboss question?

Thanks.



On Thu, Jun 5, 2008 at 5:27 PM, Dennis Falling [EMAIL PROTECTED] wrote:

 Thanks for the reply...  That information was exactly what I needed.  I'm
 actually really surprised that I hadn't run across any of it- I've spent
 several hours googling trying to find a solution.  Thanks a lot!

 -dennis


 On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley [EMAIL PROTECTED]
 wrote:

   I'm guessing it's because the session is not retained when performing a
 file upload to the server - a new session id is created for each
 FileReference upload attempt.

 This is a known issue with various workarounds.
 Modify your server code to ignore any session or login details to be sure
 this is the problem you are seeing. If it works when you remove any
 requirement for authentication or any check of the session info, then you're
 one step closer to fixing the issue.

 You will then need to:

 1. Store the session number in Flex and send it back. On the server you
 validate against the sent session (a new one will still be created), then
 send back the new session details.

 or...

 2. Ignore a requirement on the session when doing the actual upload. Find
 another way of verifying the user is logged in.

 http://bugs.adobe.com/jira/browse/SDK-12851
 http://bugs.adobe.com/jira/browse/FP-78
 http://thanksmister.com/?p=59
 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html


 good luck,

 jon


 On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:

  I have this problem for standard uploads too, not just SSL...  Again, it
 works fine in IE, so I know that the address and file are valid.  Any ideas?

 On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED]
 wrote:

 I searched the web and the group and found a thread going about this
 without a resolution (started with msg. 88102).  Does anyone know a way
 around this?  I need to allow the user to upload files over SSL, which works
 fine from IE but explodes in Firefox.

 Code:
 var url:String =
 Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
 var request:URLRequest = new URLRequest(url);
 request.method = URLRequestMethod.POST;
 _file.upload(request,fileData,false);

 When run in Firefox, I get a flash exception:
 Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

 Watching it in Wireshark I see the initial post, then a number of
 subsequent lines Continuation or non-HTTP traffic.

 Thanks!


  





[flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Dennis Falling
I have this problem for standard uploads too, not just SSL...  Again, it
works fine in IE, so I know that the address and file are valid.  Any ideas?

On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED] wrote:

 I searched the web and the group and found a thread going about this
 without a resolution (started with msg. 88102).  Does anyone know a way
 around this?  I need to allow the user to upload files over SSL, which works
 fine from IE but explodes in Firefox.

 Code:
 var url:String =
 Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
 var request:URLRequest = new URLRequest(url);
 request.method = URLRequestMethod.POST;
 _file.upload(request,fileData,false);

 When run in Firefox, I get a flash exception:
 Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

 Watching it in Wireshark I see the initial post, then a number of
 subsequent lines Continuation or non-HTTP traffic.

 Thanks!



Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Dennis Falling
Thanks for the reply...  That information was exactly what I needed.  I'm
actually really surprised that I hadn't run across any of it- I've spent
several hours googling trying to find a solution.  Thanks a lot!

-dennis

On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley [EMAIL PROTECTED]
wrote:

   I'm guessing it's because the session is not retained when performing a
 file upload to the server - a new session id is created for each
 FileReference upload attempt.

 This is a known issue with various workarounds.
 Modify your server code to ignore any session or login details to be sure
 this is the problem you are seeing. If it works when you remove any
 requirement for authentication or any check of the session info, then you're
 one step closer to fixing the issue.

 You will then need to:

 1. Store the session number in Flex and send it back. On the server you
 validate against the sent session (a new one will still be created), then
 send back the new session details.

 or...

 2. Ignore a requirement on the session when doing the actual upload. Find
 another way of verifying the user is logged in.

 http://bugs.adobe.com/jira/browse/SDK-12851
 http://bugs.adobe.com/jira/browse/FP-78
 http://thanksmister.com/?p=59
 http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html


 good luck,

 jon


 On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:

 I have this problem for standard uploads too, not just SSL...  Again, it
 works fine in IE, so I know that the address and file are valid.  Any ideas?

 On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED] wrote:

 I searched the web and the group and found a thread going about this
 without a resolution (started with msg. 88102).  Does anyone know a way
 around this?  I need to allow the user to upload files over SSL, which works
 fine from IE but explodes in Firefox.

 Code:
 var url:String =
 Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
 var request:URLRequest = new URLRequest(url);
 request.method = URLRequestMethod.POST;
 _file.upload(request,fileData,false);

 When run in Firefox, I get a flash exception:
 Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

 Watching it in Wireshark I see the initial post, then a number of
 subsequent lines Continuation or non-HTTP traffic.

 Thanks!


  



[flexcoders] #2038: File I/O Error only in firefox

2008-06-04 Thread Dennis Falling
I searched the web and the group and found a thread going about this without
a resolution (started with msg. 88102).  Does anyone know a way around
this?  I need to allow the user to upload files over SSL, which works fine
from IE but explodes in Firefox.

Code:
var url:String =
Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
_file.upload(request,fileData,false);

When run in Firefox, I get a flash exception:
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

Watching it in Wireshark I see the initial post, then a number of subsequent
lines Continuation or non-HTTP traffic.

Thanks!


Re: [flexcoders] #2038: File I/O Error only in firefox

2008-06-04 Thread Dennis Falling
It isn't either of those problems.  The file is fine, and the path is
correct.  Internet Explorer successfully uploads the file with no problems.
I do have a handler for the error, but need to fix the problem causing the
error.

On Wed, Jun 4, 2008 at 3:36 PM, Joseph Balderson [EMAIL PROTECTED] wrote:

   Either your file is corrupted, or the path to the file cannot be found,
 and you've not created an IOError event handler to catch the event.
 __

 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


 Dennis Falling wrote:
  I searched the web and the group and found a thread going about this
  without a resolution (started with msg. 88102). Does anyone know a way
  around this? I need to allow the user to upload files over SSL, which
  works fine from IE but explodes in Firefox.
 
  Code:
  var url:String =
  Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
  var request:URLRequest = new URLRequest(url);
  request.method = URLRequestMethod.POST;
  _file.upload(request,fileData,false);
 
  When run in Firefox, I get a flash exception:
  Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
 
  Watching it in Wireshark I see the initial post, then a number of
  subsequent lines Continuation or non-HTTP traffic.
 
  Thanks!
 
  



Re: [flexcoders] parsing complex xml

2008-05-27 Thread Dennis Falling
Yeah, I should have mentioned that the server sending this file to me is
wrapping it in con, making that the root and configuration the only element.

On Tue, May 27, 2008 at 6:34 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   Off the top of my head, If the root of your XML doc is configuration,
 you want xmlObject.category as a list of category elements, not
 xmlObject.configuration.category

 -J


 On Wed, May 28, 2008 at 8:09 AM, dfalling [EMAIL PROTECTED] wrote:

   I'm trying to parse a complex xml file (a log4j config file) and am
 running into a number of problems:

 * Flex seems to remove all the comments from the file. Is there any
 way to prevent this? I don't need access to them in Flex, but do want
 them to be untouched.
 * I have no idea how to iterate over the items or to set xml as a
 list's data provider. The tag containing everything I need to access
 is log4j:configuration, and when I try to access
 xml.log4j::configuration flex complains about not having the property
 log4j.

 If anyone knows of good xml tutorials that would help me to grasp this
 better I'd really appreciate it. Most of the ones I've found are
 basically the hello world of xml parsing...the few dealing with
 namespaces do little to explain what they're doing.

 log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
 debug=false
 category name=org.apache
 priority value=INFO/
 /category

 !-- Limit the org.jboss.serial (jboss-serialization) to INFO as
 its DEBUG is verbose --
 category name=org.jboss.serial
 priority value=INFO/
 /category

 !-- Limit the org.jgroups category to WARN as its INFO is verbose --
 category name=org.jgroups
 priority value=WARN/
 /category

 !-- Limit the jacorb category to WARN as its INFO is verbose --
 category name=jacorb
 priority value=WARN/
 /category
 .
 .
 .
 /log4j:configuration

 Thanks a lot!
 -dennis




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 



Re: [flexcoders] parsing complex xml

2008-05-27 Thread Dennis Falling
I was trying both routes- dataprovider and and iterating.

dataProvider:

function dataReceived(data:XML):void
{
   list.dataProvider = data.configuration.category;
}

With the above, nothing showed up in the list.  The xml sample I provided in
my original email was all wrapped by a con tag by the server.

Iterating over it I tried:

function dataReceived(data:XML):void
{
   for (var category:XML in data.configuration.category)
   {
  trace(category.toXMLString();
   }
}

The flex page that needs to render this will allow the user to configure
each item, so I need a way to read and write to those items while still
leaving the comments in tact.

Thanks!


On Tue, May 27, 2008 at 5:39 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

I don't know if I have ever noticed this removal of comments, I'd need
 to verify.



 To iterate over nodes, use an e4x expression to return an XMLList, then use
 a for loop.  Or For Each, or For In.  The docs have some more detail and
 examples.



 A list can also use XMLList as a dataProvider if you do not plan to
 programmaticlly update the dataprovider.  If you do, simply wrap the XMLList
 in an XMLListCollection.



 It looks like you will need to declare the default namespace, or use the
 namespace::node in all e4x expressions.



 You've not shown any expressions, so I can't say what you're doing wrong.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *dfalling
 *Sent:* Tuesday, May 27, 2008 6:10 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] parsing complex xml



 I'm trying to parse a complex xml file (a log4j config file) and am
 running into a number of problems:

 * Flex seems to remove all the comments from the file. Is there any
 way to prevent this? I don't need access to them in Flex, but do want
 them to be untouched.
 * I have no idea how to iterate over the items or to set xml as a
 list's data provider. The tag containing everything I need to access
 is log4j:configuration, and when I try to access
 xml.log4j::configuration flex complains about not having the property
 log4j.

 If anyone knows of good xml tutorials that would help me to grasp this
 better I'd really appreciate it. Most of the ones I've found are
 basically the hello world of xml parsing...the few dealing with
 namespaces do little to explain what they're doing.

 log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
 debug=false
 category name=org.apache
 priority value=INFO/
 /category

 !-- Limit the org.jboss.serial (jboss-serialization) to INFO as
 its DEBUG is verbose --
 category name=org.jboss.serial
 priority value=INFO/
 /category

 !-- Limit the org.jgroups category to WARN as its INFO is verbose --
 category name=org.jgroups
 priority value=WARN/
 /category

 !-- Limit the jacorb category to WARN as its INFO is verbose --
 category name=jacorb
 priority value=WARN/
 /category
 .
 .
 .
 /log4j:configuration

 Thanks a lot!
 -dennis

  



[flexcoders] CSS inheritance?

2008-05-23 Thread Dennis Falling
I'm trying to find a cleaner way of doing css.  Right now I have a common
border style used frequently throughout my app, and a couple common
container styles (background, padding, width, etc.).  I'd like a way to have
the different container styles reference the border style, instead of
duplicating those values.  Does anyone know if there's a good way to do this
in flex's limited css?  Right now I'm just trying to find the least common
denominators and split those out to separate classes.

Thanks!


[flexcoders] flex2 change sdk?

2008-05-20 Thread Dennis Falling
How do you select which SDK to use in flex builder 2?  In 3 you can specify
a default for all projects and set one for each project.


[flexcoders] Catch exceptions outside of try block?

2008-05-14 Thread Dennis Falling
I'm sure I'm going at this wrong, but don't know what to do...

I'm setting the data of a custom component with an image element.  When the
component finishes starting up the image grabs its source from the data
provider and a function catches the IOError event and throws its text as an
exception so the application can know about the failure.

The problem I'm having is with the delay between the set data and creation
complete of the component.  By the time the image tries to access the source
(and fails), my application is past that try/catch block and can't handle
it.

What's the right way to do this?  Better yet, is there a way in flex to try
to access various different kinds of files to see if the address is valid?

Thanks!
-dennis


Re: [flexcoders] Re: Can't figure out how to parse RSS

2008-04-26 Thread Dennis Falling
Nice...that's exactly what I needed.

Thanks a lot!


On Thu, Apr 24, 2008 at 11:47 PM, ben.clinkinbeard 
[EMAIL PROTECTED] wrote:

   http://code.google.com/p/as3syndicationlib/

 HTH,
 Ben


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 dfalling [EMAIL PROTECTED] wrote:
 
  I'm trying to write a small app that will parse an inputted RSS feed.
  On some feeds (reddit.com) it works fine, but on others (slashdot.org)
  the xml seems to be cut off... the description and title for the feed
  are there, but none of the items. What is causing this? I've wandered
  tried to adapt code from dozens of different examples and still can't
  understand exactly what I need. Here's the minimal code that I'm using
  now, without all the hacks and attempts I've tried:
 
 
  import mx.collections.XMLListCollection;
  import mx.utils.ArrayUtil;
  import mx.rpc.http.HTTPService;
  import mx.rpc.events.ResultEvent;
  import mx.collections.ArrayCollection;
  import mx.events.FlexEvent;
 
  [Bindable] private var _dataProvider:XMLListCollection
 = new
  XMLListCollection();
  private var _httpService:HTTPService;
 
  private function urlSubmitted():void
  {
  var feedUrl:String = urlText.text;
  _httpService = new HTTPService();
  _httpService.url = feedUrl;
  _httpService.resultFormat = e4x;
 
 
 _httpService.addEventListener(ResultEvent.RESULT,dataReceived,false,0,tr\
  ue);
  _httpService.send();
  }
 
  private function dataReceived(event:ResultEvent):void
  {
  _dataProvider.source = event.result.channel.item as
  XMLList;
  noDataView.visible = false;
  dataGrid.visible = true;
  }
 

  



[flexcoders] VideoDisplay: why does play restart buffering after load?

2008-04-21 Thread Dennis Falling
I'm trying to avoid using VideoDisplay's default buffering and
loading/playing videos manually.  For some reason, calling load and then
play sometimes makes the player start buffering again from the very
beginning.  I assume this is caused by one of the booleans sourceChanged or
closeCalled not being reset by the load, but since they are private, I can't
access them.

Does anyone know a way around this?  I think I'm on my fourth attempt at
changing buffering because I keep hitting brick walls with the player...
Any advice would really be appreciated.

Thanks!


[flexcoders] VideoDisplay lies about bytesLoaded

2008-04-19 Thread Dennis Falling
I'm using a changewatcher to observe the bytesLoaded attribute of a
videoDisplay and update the UI accordingly.  This works well most of the
time, but once during each of the longer videos, bytesLoaded will jump, then
continue loading.

bytesLoaded / bytesTotal:
3186688/4971903
4971903/4971903 -- wrong
1900544/4971903
4247552/4971903
4971903/4971903

Does anyone know what could be causing this?  Is there a better way to do
this than using a changewatcher?

Thanks.


[flexcoders] VideoDisplay intelligent buffering?

2008-04-16 Thread Dennis Falling
Are there any tricks to make the VideoDisplay's buffering work a little
better?  The default behavior of simply waiting a number of seconds isn't
ideal because if it's a short video, this may be too long, and if it's a
long video, this may be too short.  If anyone has come up with a good way of
handling this, I'd love some advice.

Thanks!


Re: [flexcoders] Multiple sets of visual children have been specified for this component

2008-04-11 Thread Dennis Falling
That was it.  I changed it to add it programmatically if it is valid, rather
than always adding it only to turn around and delete it.

Thanks!

On Thu, Apr 10, 2008 at 11:06 PM, Alex Harui [EMAIL PROTECTED] wrote:

That stack implies that the initialized flag never got set or got
 reset.  Is it possible that it got reset?  Could you be removing those tabs
 before they are fully initialized?


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Thursday, April 10, 2008 3:22 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Multiple sets of visual children have been
 specified for this component



 Error: Multiple sets of visual children have been specified for this
 component (base component definition and derived component definition).
 at mx.core::Container/
 http://www.adobe.com/2006/flex/mx/internal::setDocumentDescriptor()[C:\Programhttp://www.adobe.com/2006/flex/mx/internal::setDocumentDescriptor%28%29%5bC:/ProgramFiles\Adobe\Flex
  Builder 2 Plug-in\Flex SDK
 2\frameworks\source\mx\core\Container.as:3460]
 at
 com.view.devices::DeviceDetailVQMInterfacesTab/initialize()[C:\chicago\Release1\web\flex\ChicagoGui\com\view\devices\DeviceDetailVQMInterfacesTab.mxml:0]
 at mx.core::UIComponent/
 http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\Programhttp://www.adobe.com/2006/flex/mx/internal::childAdded%28%29%5bC:/ProgramFiles\Adobe\Flex
  Builder 2 Plug-in\Flex SDK
 2\frameworks\source\mx\core\UIComponent.as:4838]
 at mx.core::Container/
 http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\Programhttp://www.adobe.com/2006/flex/mx/internal::childAdded%28%29%5bC:/ProgramFiles\Adobe\Flex
  Builder 2 Plug-in\Flex SDK
 2\frameworks\source\mx\core\Container.as:3346]
 at mx.core::Container/addChildAt()[C:\Program Files\Adobe\Flex Builder
 2 Plug-in\Flex SDK 2\frameworks\source\mx\core\Container.as:2281]
 at
 com.view.devices::DeviceDetailPanel/toggleVqm()[C:\chicago\Release1\web\flex\ChicagoGui\com\view\devices\DeviceDetailPanel.mxml:84]
 at 
 Function/http://adobe.com/AS3/2006/builtin::apply()http://adobe.com/AS3/2006/builtin::apply%28%29
 at mx.core::UIComponent/callLaterDispatcher2()[C:\Program
 Files\Adobe\Flex Builder 2 Plug-in\Flex SDK
 2\frameworks\source\mx\core\UIComponent.as:7975]
 at mx.core::UIComponent/callLaterDispatcher()[C:\Program
 Files\Adobe\Flex Builder 2 Plug-in\Flex SDK
 2\frameworks\source\mx\core\UIComponent.as:7918]

  On Wed, Apr 9, 2008 at 4:16 PM, Alex Harui [EMAIL PROTECTED] wrote:

 Please post the entire stack trace.



 You should be able to do it.



 Also, I think SuperTabNavigator can hide tabs.  Google for it.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dennis Falling
 *Sent:* Wednesday, April 09, 2008 12:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Multiple sets of visual children have been
 specified for this component



 I'm trying to programmatically hide/show a tab in an interface.  I found
 that there isn't a way to toggle visibility/include in layout, so decided to
 remove it when it's not applicable and add it back when it is.

 When I try to add it back, though, I get the error *Multiple sets of
 visual children have been specified for this component *and the add
 fails.  I'm trying to add it back to the same element I removed it from, so
 what am I doing wrong?  Is there a better way to do this, this feels like a
 hack.

 Thanks!



  



Re: [flexcoders] Can embedded fonts have tracking and word spacing?

2008-04-04 Thread Dennis Falling
Thank you, that's exactly what I wanted.


On Thu, Apr 3, 2008 at 4:55 PM, Daniel Freiman [EMAIL PROTECTED] wrote:

   The TextFormat, TextRange, and StyleSheet classes enumerate all your
 options.  Each class has the same capabilities as the others so just pick
 the one you're most comfortable with.  As for what the Flash Player has
 available, it has letterspacing (I think this is the same as tracking) and
 it supports kerning for embeded fonts.  The closest thing the player has
 to wordspacing is an alignment value of justify (or full) but that's
 obviously not the same thing.

 http://livedocs.adobe.com/flex/3/langref/flash/text/TextFormat.html

 http://livedocs.adobe.com/flex/3/langref/mx/controls/textClasses/TextRange.html
 http://livedocs.adobe.com/flex/3/langref/flash/text/StyleSheet.html

 You can also play the advanced styles shown in the UITextField class.
 Anti-aliasing, sharpness, etc can be set although I'm not sure how much good
 they do.

 - Daniel Freiman



 On Thu, Apr 3, 2008 at 5:26 PM, Dennis Falling [EMAIL PROTECTED] wrote:

I'm trying to make fonts more readable by adding character spacing to
  them.  Is this possible?  It's an embedded font, but I haven't been able to
  find a list of what parameters are valid when embedding a font.
 
  Thanks!
 

  



Re: [flexcoders] Any way to make legend scroll vertically?

2008-04-03 Thread Dennis Falling
In case anyone else hits this...

To make a legend scroll, just give it an unbounded width/height and wrap it
in a canvas that has a bounded width and height.  This will trigger the
canvas to create scrollbars when necessary.

On Wed, Mar 26, 2008 at 1:31 PM, dfalling [EMAIL PROTECTED] wrote:

   I have a legend with a ridiculous number of items that was
 ridiculously high until I set it its height to 100%. Now it is broken
 up into columns (I was surprised) that take up the entire area
 available to it and the chart. Is there a way to make a legend scroll
 just like a list? I know it's not idea, but this is an edge case that
 will rarely be hit, so I have no qualms with this as a solution.

 ps.. apparently yahoo really wants me to watch I Am Legend, I had to
 weed through dozens of links to it while searching the group.

  



[flexcoders] Can embedded fonts have tracking and word spacing?

2008-04-03 Thread Dennis Falling
I'm trying to make fonts more readable by adding character spacing to them.
Is this possible?  It's an embedded font, but I haven't been able to find a
list of what parameters are valid when embedding a font.

Thanks!


Re: [flexcoders] Re: flashvars hate me

2008-04-02 Thread Dennis Falling
Ok, I checked that page again (saw it during my current hunt) and think I'm
doing everything in it.

I'm sure there's something stupid that I'm missing, but this is my typical
flex problem: something really basic takes me hours to do because I can't
figure out the exact syntax.


On Wed, Apr 2, 2008 at 12:21 AM, Alexander Tsoukias [EMAIL PROTECTED]
wrote:

   I've had similar issues but this post had helped me a lot:

 http://thanksmister.com/?p=27

 thanks
 Alexander


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 dfalling [EMAIL PROTECTED] wrote:
 
  I can't get flashvars to work... It seems pretty basic, but no mater
  what I do they don't seem to show up in flex.
 
  AS:
  woo = Application.application.parameters.url;
 
  HTML:
  param name=FlashVars value=url=woo /
 
  embed ...
  flashvars=url=woo
  /embed
 
  What am I missing?
 
  Thanks!
 

  



Re: [flexcoders] flashvars hate me

2008-04-02 Thread Dennis Falling
No, I'm doing it with the template html file.  I've double-checked the html
source in my browser after running and they're all there.  I've added the
url=woo code in four places: the AC_FL function, the embed
src=...swf?url=woo, the param flashvars value=url=woo..., and the
FlashVars=url=woo.

I'm sure it's probably not supposed to be in that many places, but I kept
seeing different instructions and none of them have worked as of yet.  I'm
using Flex 3.



On Wed, Apr 2, 2008 at 12:35 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

It looks like you are doing this manually.  I always start with a
 wrapper generated by FlexBuilder, and edit the AC_FL_RunContent function as
 Rick suggests.  I have never had any problems.

 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *dfalling
 *Sent:* Wednesday, April 02, 2008 1:10 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] flashvars hate me



 I can't get flashvars to work... It seems pretty basic, but no mater
 what I do they don't seem to show up in flex.

 AS:
 woo = Application.application.parameters.url;

 HTML:
 param name=FlashVars value=url=woo /

 embed ...
 flashvars=url=woo
 /embed

 What am I missing?

 Thanks!

  



Re: [flexcoders] How do I set width to 100% in actionscript?

2008-03-25 Thread Dennis Falling
Someone's probably beaten me to this but, use percentWidth instead.

On Tue, Mar 25, 2008 at 1:43 PM, luvfotography 
[EMAIL PROTECTED] wrote:

   How do I set the width to 100% using actionscript??
 It only allows a number - not a string!?!

 var newcanvas:Canvas = new Canvas();

 newcanvas.width = 100%;

 1067: Implicit coercion of a value of type String to an unrelated type
 Number.

  



Re: [flexcoders] Re: independent vertical scrolling in hbox elements

2008-03-14 Thread Dennis Falling
But then the sidebar has knowledge of its container's height.  If the
container is resized, the sidebar will not resize.  I simply made the outer
container 150px to force scrolling and point out the problem.

On Fri, Mar 14, 2008 at 2:01 AM, arieljake [EMAIL PROTECTED] wrote:

   It works if I add height=150 to the sidebar.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 dfalling [EMAIL PROTECTED] wrote:
 
  This seems like a really simple question, but I can't figure it out...
  I have a two-column view and want the columns to scroll independently
  of each other (if one needs to scroll, then it will show scrollbars.)
  I've tried dozens of combinations of height and can't get it to work.
  Either neither columns scroll, or both scroll together.
 
  Here's a basic example I'm trying. The sidebar below is too tall, and
  causing the entire interface to scroll.
 
  mx:HBox height=150 width=100% backgroundColor=#efefef
  mx:VBox id=sidebar width=200
  mx:VBox backgroundColor=#33 height=250 width=100%/
  /mx:VBox
  mx:VBox id=main
  mx:Text fontWeight=bold fontSize=16 text=main/
  /mx:VBox
  /mx:HBox