RE: [flexcoders] Datagrid woes -- IFocusManagerComponent & ItemEditors

2009-11-20 Thread Alex Harui
itemEditEnd isn't intentionally messing with tab order.  Because it might 
destroy the editor, it affects what gets focus and when and affects when/if 
your keyFocusChange handler and other handlers run.  A good test might be to 
log events like focusIn, focusOut and the itemEdit* events and see if you can 
see a difference when tabbing with default renderers and with your renderer.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of sasuke
Sent: Friday, November 20, 2009 9:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Datagrid woes -- IFocusManagerComponent & ItemEditors



Hi Alex,

I'm pretty much sure given that the tabbing works when I remove the
itemEditEnd event handler. Removing the handler causes the value in the text
box to disappear or not update. :(

Is there any way to not make the itemEditEnd's preventDefault() not mess
with the tab order?

TIA,
sasuke

Alex Harui wrote:
>
> Hmm. There isn't that much going on in the default itemEditEnd handler.
> Are you sure that's the issue? When I looked at your code, I thought your
> logic as to when and where to set focus was suspect and not the same as my
> logic.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On
> Behalf Of sasuke
> Sent: Monday, November 16, 2009 12:34 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Datagrid woes -- IFocusManagerComponent &
> ItemEditors
>
>
>
> Hi Alex,
>
> Thanks for your suggestion. After comparing my code with your code, the
> difference I found was that you aren't using/capturing any sort of
> itemEditEnd event which I'm using in my code. The issue this is causing is
> that since I use the "event.preventDefault()" in the handler code, the
> tabbing code doesn't work correctly in the sense that I need to press TAB
> twice to move the control out of my custom editor. Something like:
>
> private function processData(event:DataGridEvent):void
> {
> if(event.reason == DataGridEventReason.CANCELLED) return;
> if(event.dataField == "married")
> {
> event.preventDefault();
> var data:Object = myGrid.editedItemRenderer.data;
> data['married'] =
>
> HboxRenderer(DataGrid(event.target).itemEditorInstance).checkBox.selected;
> data['numOfChildren'] =
>
> Number(HboxRenderer(DataGrid(event.target).itemEditorInstance).txtInput.text);
> (myGrid.dataProvider as
> ArrayCollection).itemUpdated(myGrid.itemEditorInstance.data);
> myGrid.destroyItemEditor();
> trace("Updating value of column: " + event.columnIndex + " row: " +
> event.rowIndex);
> }
> }
>
> Any suggestions to ensure that calling event.preventDefault just prevents
> the datagrid from messing with my binding values and not mess up the tab
> order? If the question is still unclear or hazy, please let me know! :)
>
> TIA,
> sasuke
>
> Alex Harui wrote:
>>
>> The longer it takes to understand the question(s), the less likely it is
>> that someone will have time to respond. Fortunately for you the source
>> code repository is undergoing maintenance so I had time to dig further.
>>
>> Everything looks ok, but you might want to compare your editor with the
>> one in this post:
>> http://blogs.adobe.com/aharui/2008/08/datagrid_itemeditor_with_two_i.html
>>
>> Alex Harui
>> Flex SDK Developer
>> Adobe Systems Inc.
>> Blog: http://blogs.adobe.com/aharui
>>
>> From: 
>> flexcoders@yahoogroups.com
>> [mailto:flexcoders@yahoogroups.com]
>> On
>> Behalf Of sasuke
>> Sent: Thursday, November 12, 2009 6:34 AM
>> To: 
>> flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Datagrid woes -- IFocusManagerComponent &
>> ItemEditors
>>
>>
>>
>> Apologies for the resurrection but any suggestion here would be
>> appreciated.
>> Is using external sites for pasting code [pastie, pastebin] not
>> acceptable
>> here? Would you like me to post the entire code here? Or maybe re-frame
>> my
>> question?
>>
>> TIA
>> -sasuke
>>
>> sasuke wrote:
>>>
>>> Hi folks,
>>>
>>> Recently I've been trying to code up a datagrid which would satisfy the
>>> following requirements:
>>> - should be keyboard enabled i.e. each and every column should be
>>> tab-aware
>>> - should support hybrid/custom renderers/editors
>>> - capable of communicating changes to the underlying dataprovider
>>>
>>> I have created a small sample application but it kinda fails miserably
>>> at
>>> meeting the above mentioned goals. The issues are:
>>> - Tabbing still d

RE: [flexcoders] Datagrid woes -- IFocusManagerComponent & ItemEditors

2009-11-20 Thread sasuke

Hi Alex,

I'm pretty much sure given that the tabbing works when I remove the
itemEditEnd event handler. Removing the handler causes the value in the text
box to disappear or not update. :(

Is there any way to not make the itemEditEnd's preventDefault() not mess
with the tab order?

TIA,
sasuke


Alex Harui wrote:
> 
> Hmm.  There isn't that much going on in the default itemEditEnd handler. 
> Are you sure that's the issue?  When I looked at your code, I thought your
> logic as to when and where to set focus was suspect and not the same as my
> logic.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of sasuke
> Sent: Monday, November 16, 2009 12:34 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Datagrid woes -- IFocusManagerComponent &
> ItemEditors
> 
> 
> 
> Hi Alex,
> 
> Thanks for your suggestion. After comparing my code with your code, the
> difference I found was that you aren't using/capturing any sort of
> itemEditEnd event which I'm using in my code. The issue this is causing is
> that since I use the "event.preventDefault()" in the handler code, the
> tabbing code doesn't work correctly in the sense that I need to press TAB
> twice to move the control out of my custom editor. Something like:
> 
> private function processData(event:DataGridEvent):void
> {
> if(event.reason == DataGridEventReason.CANCELLED) return;
> if(event.dataField == "married")
> {
> event.preventDefault();
> var data:Object = myGrid.editedItemRenderer.data;
> data['married'] =
> 
> HboxRenderer(DataGrid(event.target).itemEditorInstance).checkBox.selected;
> data['numOfChildren'] =
> 
> Number(HboxRenderer(DataGrid(event.target).itemEditorInstance).txtInput.text);
> (myGrid.dataProvider as
> ArrayCollection).itemUpdated(myGrid.itemEditorInstance.data);
> myGrid.destroyItemEditor();
> trace("Updating value of column: " + event.columnIndex + " row: " +
> event.rowIndex);
> }
> }
> 
> Any suggestions to ensure that calling event.preventDefault just prevents
> the datagrid from messing with my binding values and not mess up the tab
> order? If the question is still unclear or hazy, please let me know! :)
> 
> TIA,
> sasuke
> 
> Alex Harui wrote:
>>
>> The longer it takes to understand the question(s), the less likely it is
>> that someone will have time to respond. Fortunately for you the source
>> code repository is undergoing maintenance so I had time to dig further.
>>
>> Everything looks ok, but you might want to compare your editor with the
>> one in this post:
>> http://blogs.adobe.com/aharui/2008/08/datagrid_itemeditor_with_two_i.html
>>
>> Alex Harui
>> Flex SDK Developer
>> Adobe Systems Inc.
>> Blog: http://blogs.adobe.com/aharui
>>
>> From: flexcoders@yahoogroups.com
>> [mailto:flexcoders@yahoogroups.com]
>> On
>> Behalf Of sasuke
>> Sent: Thursday, November 12, 2009 6:34 AM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Datagrid woes -- IFocusManagerComponent &
>> ItemEditors
>>
>>
>>
>> Apologies for the resurrection but any suggestion here would be
>> appreciated.
>> Is using external sites for pasting code [pastie, pastebin] not
>> acceptable
>> here? Would you like me to post the entire code here? Or maybe re-frame
>> my
>> question?
>>
>> TIA
>> -sasuke
>>
>> sasuke wrote:
>>>
>>> Hi folks,
>>>
>>> Recently I've been trying to code up a datagrid which would satisfy the
>>> following requirements:
>>> - should be keyboard enabled i.e. each and every column should be
>>> tab-aware
>>> - should support hybrid/custom renderers/editors
>>> - capable of communicating changes to the underlying dataprovider
>>>
>>> I have created a small sample application but it kinda fails miserably
>>> at
>>> meeting the above mentioned goals. The issues are:
>>> - Tabbing still doesn't work with custom renderers/editors
>>> - Disappearing data from the datagrid i.e. changes made to the text
>>> field
>>> not reflected in original collection
>>>
>>> The three files used are as follows:
>>> - http://pastie.org/692226 Person VO
>>> - http://pastie.org/692229 Custom item editor
>>> - http://pastie.org/692233 Main application file
>>>
>>> Any kind of help/code review/suggestions/tips/links would be much
>>> appreciated.
>>>
>>> TIA,
>>> sasuke
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Datagrid-woesIFocusManagerComponent---ItemEditors-tp26287347p26319736.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>>
> 
> --
> View this message in context:
> http://old.nabble.com/Datagrid-woesIFocusManagerComponent---ItemEditors-tp26287347p26368358.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://old.n

RE: [flexcoders] Re: how to enable stack traceback?

2009-11-20 Thread Alex Harui
My question was really whether you're running the app in the standalone 
debugger player or in Safari's debugger player or some other browser's debugger 
player.

The debugger player has a config file called mm.cfg.  I don't know where it 
goes on Mac.  I don't know if there is an option to shut off the dialog but if 
you find mm.cfg and post the contents I can look up what is in there.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mitchgrrt
Sent: Friday, November 20, 2009 4:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to enable stack traceback?



Capabilities.version = MAC 10,0,32,18
Capabilities.isDebugger = true

With this version I'm not seeing any stack tracebacks on unhandled exceptions. 
Just silent failures.

Is there some configuration somewhere where I might have turned it off by 
accident?

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> My colleagues confirm that the Mac standalone player shows the exception 
> dialog. Are you running some other debugger player?
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of mitchgrrt
> Sent: Friday, November 20, 2009 5:14 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: how to enable stack traceback?
>
>
>
> Thanks for the good suggestion. Running outside the debugger, 
> Capabilities.debug is true, but there's no stack traceback on a null pointer 
> exception. Capabilities.version is MAC 10,0,32,18.
>
> --- In 
> flexcoders@yahoogroups.com,
>  Alex Harui  wrote:
> >
> > I'm running both 9 and 10 on Windows. When you run without the debugger 
> > could you be launching a different player? Try displaying 
> > Capabilites.version and isDebugger. Could be a Mac thing. I don't have a 
> > Mac.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: 
> > flexcoders@yahoogroups.com
> >  
> > [mailto:flexcoders@yahoogroups.com]
> >  On Behalf Of mitchgrrt
> > Sent: Thursday, November 19, 2009 4:52 AM
> > To: 
> > flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: how to enable stack traceback?
> >
> >
> >
> > Yes I did try a simple case. I put some code that causes a null pointer 
> > exception into a screen's onCreationComplete handler. I see the traceback 
> > inside the debugger but nothing when running the program without the 
> > debugger.
> >
> > There seems to be a lot of confusion about this issue, and also just about 
> > the terminology to talk about it. I wonder if it's really just a Mac vs. 
> > Windows issue? In other kinds of software development it's common to see 
> > differences across platforms, but it's much less common with Flex.
> >
> > What version of the Flash player are you running? I was thinking maybe it 
> > was something that worked with version 9 and got broken with version 10.
> >
> > --- In 
> > flexcoders@yahoogroups.com,
> >  Alex Harui  wrote:
> > >
> > > If you have a debugger player you should be seeing the exception dialog 
> > > whether you are in the debugger or not. I still do on Windows. I don't 
> > > have a Mac to try it. Did you try a simple test case?
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> >
>



[flexcoders] custom scrollbar behavior

2009-11-20 Thread skwasha
I have a custom scrollbar that seems to work in some components but not others. 
Is there something simple I'm missing? Shouldn't the same assets with the same 
css look the same? It looks like the arrows are being shrunk and the thumb 
running over. Any ideas?



Re: [flexcoders] Syntax Question

2009-11-20 Thread Dan Pride
Sorry this line makes no sense to me
var myName:String = myval...@name.
What is the @ symbol?
Why does it end in a period?
The original Table field was "Name" but myValue.Name doesn't work either.

Thanks for the help.
Dan

--- On Fri, 11/20/09, Julian Alexander  wrote:

From: Julian Alexander 
Subject: Re: [flexcoders] Syntax Question
To: flexcoders@yahoogroups.com
Date: Friday, November 20, 2009, 10:53 PM







 



  



  
  
  You can't access the value from the column name - getting the selected 
value will give you the entire row that the datagrid is displaying from which 
you can get the value you're looking for.  In other words, if you have an 
XMLList as your dataProvider, you can do something like:

var myValue:XML = dataGrid.selectedIt em as XML;
var myName:String = myval...@name.

Make sense?

-Julian

From: Dan Pride
 
To: flexcod...@yahoogro ups.com
Sent: Fri, November 20, 2009 9:43:33 PM
Subject: [flexcoders] Syntax Question








 




  
  
  On Creation complete I am filling a datagrid and I want to select the 
first value listed from the Name Column (NameCol)



What is the syntax?

dataGrid.selectedIn dex = 0;

Value = dataGrid.selectedIt em.NameCol;



Does not work. why not?



Thanks

Dan






 









  


 





 



  






  

Re: [flexcoders] Syntax Question

2009-11-20 Thread Julian Alexander
You can't access the value from the column name - getting the selected value 
will give you the entire row that the datagrid is displaying from which you can 
get the value you're looking for.  In other words, if you have an XMLList as 
your dataProvider, you can do something like:

var myValue:XML = dataGrid.selectedItem as XML;
var myName:String = myval...@name.

Make sense?

-Julian





From: Dan Pride 
To: flexcoders@yahoogroups.com
Sent: Fri, November 20, 2009 9:43:33 PM
Subject: [flexcoders] Syntax Question

   
On Creation complete I am filling a datagrid and I want to select the first 
value listed from the Name Column (NameCol)

What is the syntax?
dataGrid.selectedIn dex = 0;
Value = dataGrid.selectedIt em.NameCol;

Does not work. why not?

Thanks
Dan


__.._,_.___
Reply to sender | Reply to group Messages in this topic (1) 
Recent Activity:* New Members 34   
Visit Your Group Start a New Topic 
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
MARKETPLACE
Mom Power: Discover the community of moms doing more for their families, for 
the world and for each other 
 
Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use
. 

 


  

[flexcoders] Syntax Question

2009-11-20 Thread Dan Pride
On Creation complete I am filling a datagrid and I want to select the first 
value listed from the Name Column (NameCol)

What is the syntax?
dataGrid.selectedIndex = 0;
Value = dataGrid.selectedItem.NameCol;

Does not work. why not?

Thanks
Dan




  


[flexcoders] Re: how to enable stack traceback?

2009-11-20 Thread mitchgrrt
Capabilities.version = MAC 10,0,32,18
Capabilities.isDebugger = true

With this version I'm not seeing any stack tracebacks on unhandled exceptions.  
Just silent failures.

Is there some configuration somewhere where I might have turned it off by 
accident?



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> My colleagues confirm that the Mac standalone player shows the exception 
> dialog.  Are you running some other debugger player?
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of mitchgrrt
> Sent: Friday, November 20, 2009 5:14 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: how to enable stack traceback?
> 
> 
> 
> Thanks for the good suggestion. Running outside the debugger, 
> Capabilities.debug is true, but there's no stack traceback on a null pointer 
> exception. Capabilities.version is MAC 10,0,32,18.
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > I'm running both 9 and 10 on Windows. When you run without the debugger 
> > could you be launching a different player? Try displaying 
> > Capabilites.version and isDebugger. Could be a Mac thing. I don't have a 
> > Mac.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of mitchgrrt
> > Sent: Thursday, November 19, 2009 4:52 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: how to enable stack traceback?
> >
> >
> >
> > Yes I did try a simple case. I put some code that causes a null pointer 
> > exception into a screen's onCreationComplete handler. I see the traceback 
> > inside the debugger but nothing when running the program without the 
> > debugger.
> >
> > There seems to be a lot of confusion about this issue, and also just about 
> > the terminology to talk about it. I wonder if it's really just a Mac vs. 
> > Windows issue? In other kinds of software development it's common to see 
> > differences across platforms, but it's much less common with Flex.
> >
> > What version of the Flash player are you running? I was thinking maybe it 
> > was something that worked with version 9 and got broken with version 10.
> >
> > --- In 
> > flexcoders@yahoogroups.com,
> >  Alex Harui  wrote:
> > >
> > > If you have a debugger player you should be seeing the exception dialog 
> > > whether you are in the debugger or not. I still do on Windows. I don't 
> > > have a Mac to try it. Did you try a simple test case?
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> >
>




Re: [flexcoders] Combo box right-anchor

2009-11-20 Thread Julian Alexander
Okay, I actually got a bit distracted and didn't end up working on this for the 
last day or so, however after a brief search I did find the solution in the 
archives, however I implemented it slightly differently (it's along the lines 
of what you were saying, Alex):

private function handleOpen (
aEvent:DropDownEvent
   ):void
{
  var myScreenWidth:Number  = Application(Application.application).width;
  var myCombo:cComboBox= aEvent.currentTarget as cComboBox;
  var myCurrentX:Number= localToGlobal(new Point(this.x, this.y)).x;

  if(myCurrentX + myCombo.dropdown.width - 50) > myScreenWidth) {
  myCombo.dropdown.x = myScreenWidth - myCombo.dropdown.width;
  }
}

This is specifically because I don't really care unless it's at the right edge 
of the screen and will be cut off, so only in that case do I do anything.  
cComboBox is my own extended combo box, and as you can tell the function is 
within it with the listener being added in the constructor.

Thanks for the direction!

-Julian





From: Alex Harui 
To: "flexcoders@yahoogroups.com" 
Sent: Thu, November 19, 2009 1:09:10 AM
Subject: RE: [flexcoders] Combo box right-anchor

   
There is no API for this.  You might find an old discussion of
this problem in the archives.  I think you have to get the dropdown, add an
eventListener for “show” and/or “move” and reposition then.  You may also have
to adjust the scrollRect.
 
Alex Harui
Flex SDK Developer
Adobe
Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Julian
Alexander
Sent: Wednesday, November 18, 2009 6:16 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Combo box right-anchor
 
  
That's kinda what I'm trying to
do - I've already got it solved where it sets the drop down width dynamically
based on the content of the lookup, however the combo box is on the right side
of the screen and the drop down gets cut off by the right side of the screen,
thus I'm trying to anchor it on the right.

Is there any way to do this?
 


 
From:Alex Harui

To: "flexcod...@yahoogro ups.com" 
Sent: Wed, November 18, 2009 6:39:23 PM
Subject: RE: [flexcoders] Combo box right-anchor

  
Setting dropDownWidth will make it
wider, but you may not like where it puts the left edge.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/
aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf
Of wb...@ymail. com
Sent: Wednesday, November 18, 2009 12:19 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Combo box right-anchor
 
  
Dear All,

I am trying to make a combo box with an extended drop down (wider than the
control) anchor to the right. Basically I want

 
 +-+
 
|My Combo_|V|
   -
+
  |___ _ 
|
  |___ _ 
|
  |___ _ 
|

Hopefully my little ascii diagram makes sense...

Does aynyone know how this could be do! ne?
 
 


  

[flexcoders] Re: I've got a [Bindable] boolean var - can I setup a eventlistener on it?

2009-11-20 Thread jamesfin

This should get you on your way...

http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_4.html



--- In flexcoders@yahoogroups.com, "luvfotography"  wrote:
>
> I've declared a [Bindable] private var changeme:Boolean;
> 
> Is there a way to execute a function whenever this var changes?
> 
> thanks,
>




RE: [flexcoders] Re: how to enable stack traceback?

2009-11-20 Thread Alex Harui
My colleagues confirm that the Mac standalone player shows the exception 
dialog.  Are you running some other debugger player?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mitchgrrt
Sent: Friday, November 20, 2009 5:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how to enable stack traceback?



Thanks for the good suggestion. Running outside the debugger, 
Capabilities.debug is true, but there's no stack traceback on a null pointer 
exception. Capabilities.version is MAC 10,0,32,18.

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> I'm running both 9 and 10 on Windows. When you run without the debugger could 
> you be launching a different player? Try displaying Capabilites.version and 
> isDebugger. Could be a Mac thing. I don't have a Mac.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of mitchgrrt
> Sent: Thursday, November 19, 2009 4:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: how to enable stack traceback?
>
>
>
> Yes I did try a simple case. I put some code that causes a null pointer 
> exception into a screen's onCreationComplete handler. I see the traceback 
> inside the debugger but nothing when running the program without the debugger.
>
> There seems to be a lot of confusion about this issue, and also just about 
> the terminology to talk about it. I wonder if it's really just a Mac vs. 
> Windows issue? In other kinds of software development it's common to see 
> differences across platforms, but it's much less common with Flex.
>
> What version of the Flash player are you running? I was thinking maybe it was 
> something that worked with version 9 and got broken with version 10.
>
> --- In 
> flexcoders@yahoogroups.com,
>  Alex Harui  wrote:
> >
> > If you have a debugger player you should be seeing the exception dialog 
> > whether you are in the debugger or not. I still do on Windows. I don't have 
> > a Mac to try it. Did you try a simple test case?
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
>



[flexcoders] I've got a [Bindable] boolean var - can I setup a eventlistener on it?

2009-11-20 Thread luvfotography
I've declared a [Bindable] private var changeme:Boolean;

Is there a way to execute a function whenever this var changes?

thanks,




RE: [flexcoders] Re: HorizontalList itemRenderer size does not resize on refresh

2009-11-20 Thread Alex Harui
You might have to call measureWidthOfItems/measureHeightOfItems and set 
columnWidth and rowHeight.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mattgarland2000
Sent: Friday, November 20, 2009 10:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HorizontalList itemRenderer size does not resize on 
refresh



Thx. Gave it a whirl, no dice.

I need somehow to make the HorizontalList act like it had multiple image sizes, 
and measure them to get the largest rather than going with the first.

--- In flexcoders@yahoogroups.com, 
"jamesfin"  wrote:
>
>
>
>
> I had a similar predicament recently...
>
> In my renderer code, I setup a listener to respond to external data changes. 
> In my case, I just needed to call invalidateDisplayList but you could reset 
> your sizes/etc. based upon the new data.
>
> ReportHorizontalList(this.parent.parent).dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,
>  outsideCollectionChanged);
>
> private function outsideCollectionChanged(evt:CollectionEvent):void{
> invalidateDisplayList();
> }
>
>
>
> --- In flexcoders@yahoogroups.com, 
> "mattgarland2000"  wrote:
> >
> > I am using a horizontallist as an answer bar in an e-learning app. The 
> > designer wants the answer boxes to stretch according to content (all should 
> > have the same size, and there is a minimum).
> >
> > This works fine when the dataProvider is set. BUT there is another 
> > requirement: after a wrong answer is clicked, there is feedback and the 
> > answers are scrambled.
> >
> > protected function tryAgain(event:Event):void
> > {
> > answers=CollectionUtils.noRepeatRandomizeXMLList(answers);
> > answerListRef.dataProvider=answers;
> > }
> >
> > After the scrambling, the text values are represented in their new places, 
> > and the itemRenderers are resized--but all at the minimum size, so any over 
> > the min size need scrollbars. The resize code is called it seems before the 
> > data is set.
> >
> > I should mention that I have a similar vertical list, with 
> > "variableRowHeight" set to true as well, and there the same code works fine.
> >
> > How do I force the HorizontalList to resize the renderers en masse after 
> > the new text values are set?
> >
>



Re: [flexcoders] Re: Any issues with Windows 7(64bit) and Flex Builder

2009-11-20 Thread Greg Hess
Thanks folks, I am taking the plunge to Windows 7 64bit :-)


On Thu, Nov 19, 2009 at 1:36 PM, seanmcmonahan  wrote:

>
>
> Had an issue when using copylocale.exe with JRE not being installed. Never
> had this problem on Vista x64 but it was easily fixed by installing Java.
> Aside from that everything seems fine to me.
>
>
> --- In flexcoders@yahoogroups.com , Jeffry
> Houser  wrote:
> >
> >
> > I've had no issues. ;)
> >
> > Greg Hess wrote:
> > >
> > >
> > > Hi All,
> > >
> > > I would like to replace my dev workstation with a farrari, slow
> > > compiles are killing me. I have been shopping around and would like to
> > > buy a new quad core, 8G ram and Windows 7(64bit) but want to make sure
> > > I wont have any issues with my dev tools before making the plunge.
> > >
> > > Has any one had any issues moving to Windows 7(64bit), it is not
> > > listed as a supported OS in the Flex builder system requirements?
> > >
> > > I am running Eclipse with the Flex builder plugin.
> > >
> > > Any help much appreciated,
> > >
> > > Greg
> > >
> > >
> >
> > --
> > Jeffry Houser, Technical Entrepreneur
> > Adobe Community Expert: http://tinyurl.com/684b5h
> > http://www.twitter.com/reboog711 | Phone: 203-379-0773
> > --
> > Easy to use Interface Components for Flex Developers
> > http://www.flextras.com?c=104
> > --
> > http://www.theflexshow.com
> > http://www.jeffryhouser.com
> > --
> > Part of the DotComIt Brain Trust
> >
>
>  
>


Re: [flexcoders] Re: Flex SDK Open Source

2009-11-20 Thread Matt Chotin
http://opensource.adobe.com/wiki/display/flexsdk/Submitting+a+Patch

On Nov 20, 2009, at 12:29 PM, cuttenv wrote:

> Awesome thanks for the heads up. How would we go about contributing to the 
> SDK if we wanted to change something like say... oh for instance the 
> DragManager :)
> 
> --- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
> >
> > When we upgraded to Subversion 1.6 I think the nice web viewer broke. We're 
> > looking at getting that rebuilt for the newer Subversion but it's going to 
> > take our IT folks a while since they're swamped with other things. Might be 
> > worth getting an SVN client that can browse the repository.
> > 
> > You can still view on port 80 though: 
> > http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/
> > 
> > Matt
> > 
> > On Nov 19, 2009, at 5:25 PM, cuttenv wrote:
> > 
> > > yah it's been like this for a couple days. I guess I'll try using svn 
> > > later tonight
> > > 
> > > --- In flexcoders@yahoogroups.com, "steveb805"  wrote:
> > > >
> > > > No, I get a "Oops! This link appears to be broken." message (chrome)
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "cuttenv"  wrote:
> > > > >
> > > > > Hey guys,
> > > > > Can anyone browse the source for the flex sdk on adobe's site?
> > > > > http://opensource.adobe.com:81/svn/opensource/flex/sdk/
> > > > > 
> > > > > I followed the link from the confluence site:
> > > > > http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code
> > > > >
> > > >
> > > 
> > >
> >
> 
> 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
flexcoders-dig...@yahoogroups.com 
flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Re: Flex SDK Open Source

2009-11-20 Thread cuttenv
Awesome thanks for the heads up. How would we go about contributing to the SDK 
if we wanted to change something like say... oh for instance the DragManager :)

--- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
>
> When we upgraded to Subversion 1.6 I think the nice web viewer broke.  We're 
> looking at getting that rebuilt for the newer Subversion but it's going to 
> take our IT folks a while since they're swamped with other things.  Might be 
> worth getting an SVN client that can browse the repository.
> 
> You can still view on port 80 though: 
> http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/
> 
> Matt
> 
> On Nov 19, 2009, at 5:25 PM, cuttenv wrote:
> 
> > yah it's been like this for a couple days. I guess I'll try using svn later 
> > tonight
> > 
> > --- In flexcoders@yahoogroups.com, "steveb805"  wrote:
> > >
> > > No, I get a "Oops! This link appears to be broken." message (chrome)
> > > 
> > > --- In flexcoders@yahoogroups.com, "cuttenv"  wrote:
> > > >
> > > > Hey guys,
> > > > Can anyone browse the source for the flex sdk on adobe's site?
> > > > http://opensource.adobe.com:81/svn/opensource/flex/sdk/
> > > > 
> > > > I followed the link from the confluence site:
> > > > http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code
> > > >
> > >
> > 
> >
>




[flexcoders] Re: HorizontalList itemRenderer size does not resize on refresh

2009-11-20 Thread mattgarland2000
Thx. Gave it a whirl, no dice. 

I need somehow to make the HorizontalList act like it had multiple image sizes, 
and measure them to get the largest rather than going with the first. 

--- In flexcoders@yahoogroups.com, "jamesfin"  wrote:
>
> 
> 
> 
> I had a similar predicament recently...
> 
> In my renderer code, I setup a listener to respond to external data changes.  
> In my case, I just needed to call invalidateDisplayList but you could reset 
> your sizes/etc. based upon the new data.
> 
>   
> ReportHorizontalList(this.parent.parent).dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,
>  outsideCollectionChanged);
> 
> private function outsideCollectionChanged(evt:CollectionEvent):void{
> invalidateDisplayList();
> }
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "mattgarland2000"  wrote:
> >
> > I am using a horizontallist as an answer bar in an e-learning app. The 
> > designer wants the answer boxes to stretch according to content (all should 
> > have the same size, and there is a minimum).
> > 
> > This works fine when the dataProvider is set. BUT there is another 
> > requirement: after a wrong answer is clicked, there is feedback and the 
> > answers are scrambled. 
> > 
> > protected function tryAgain(event:Event):void
> > {
> > 
> > answers=CollectionUtils.noRepeatRandomizeXMLList(answers);
> > answerListRef.dataProvider=answers;
> > } 
> > 
> > After the scrambling, the text values are represented in their new places, 
> > and the itemRenderers are resized--but all at the minimum size, so any over 
> > the min size need scrollbars. The resize code is called it seems before the 
> > data is set. 
> > 
> > I should mention that I have a similar vertical list, with 
> > "variableRowHeight" set to true as well, and there the same code works 
> > fine. 
> > 
> > How do I force the HorizontalList to resize the renderers en masse after 
> > the new text values are set?
> >
>




[flexcoders] Re: HorizontalList itemRenderer size does not resize on refresh

2009-11-20 Thread mattgarland2000


I just noticed that when the largest answer randomly ends up in the first 
position, the result is fine, so it's definitely a matter of getting the 
horizontal list to act as if "variableRowHeight" is set to true, and not just 
take the measurement of the first renderer and go with that. 

--- In flexcoders@yahoogroups.com, "mattgarland2000"  wrote:
>
> I am using a horizontallist as an answer bar in an e-learning app. The 
> designer wants the answer boxes to stretch according to content (all should 
> have the same size, and there is a minimum).
> 
> This works fine when the dataProvider is set. BUT there is another 
> requirement: after a wrong answer is clicked, there is feedback and the 
> answers are scrambled. 
> 
>   protected function tryAgain(event:Event):void
>   {
>   
> answers=CollectionUtils.noRepeatRandomizeXMLList(answers);
>   answerListRef.dataProvider=answers;
>   } 
> 
> After the scrambling, the text values are represented in their new places, 
> and the itemRenderers are resized--but all at the minimum size, so any over 
> the min size need scrollbars. The resize code is called it seems before the 
> data is set. 
> 
> I should mention that I have a similar vertical list, with 
> "variableRowHeight" set to true as well, and there the same code works fine. 
> 
> How do I force the HorizontalList to resize the renderers en masse after the 
> new text values are set?
>



[flexcoders] Re: HorizontalList itemRenderer size does not resize on refresh

2009-11-20 Thread jamesfin



I had a similar predicament recently...

In my renderer code, I setup a listener to respond to external data changes.  
In my case, I just needed to call invalidateDisplayList but you could reset 
your sizes/etc. based upon the new data.


ReportHorizontalList(this.parent.parent).dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,
 outsideCollectionChanged);

private function outsideCollectionChanged(evt:CollectionEvent):void{
invalidateDisplayList();
}



--- In flexcoders@yahoogroups.com, "mattgarland2000"  wrote:
>
> I am using a horizontallist as an answer bar in an e-learning app. The 
> designer wants the answer boxes to stretch according to content (all should 
> have the same size, and there is a minimum).
> 
> This works fine when the dataProvider is set. BUT there is another 
> requirement: after a wrong answer is clicked, there is feedback and the 
> answers are scrambled. 
> 
>   protected function tryAgain(event:Event):void
>   {
>   
> answers=CollectionUtils.noRepeatRandomizeXMLList(answers);
>   answerListRef.dataProvider=answers;
>   } 
> 
> After the scrambling, the text values are represented in their new places, 
> and the itemRenderers are resized--but all at the minimum size, so any over 
> the min size need scrollbars. The resize code is called it seems before the 
> data is set. 
> 
> I should mention that I have a similar vertical list, with 
> "variableRowHeight" set to true as well, and there the same code works fine. 
> 
> How do I force the HorizontalList to resize the renderers en masse after the 
> new text values are set?
>




[flexcoders] HorizontalList itemRenderer size does not resize on refresh

2009-11-20 Thread mattgarland2000
I am using a horizontallist as an answer bar in an e-learning app. The designer 
wants the answer boxes to stretch according to content (all should have the 
same size, and there is a minimum).

This works fine when the dataProvider is set. BUT there is another requirement: 
after a wrong answer is clicked, there is feedback and the answers are 
scrambled. 

protected function tryAgain(event:Event):void
{

answers=CollectionUtils.noRepeatRandomizeXMLList(answers);
answerListRef.dataProvider=answers;
} 

After the scrambling, the text values are represented in their new places, and 
the itemRenderers are resized--but all at the minimum size, so any over the min 
size need scrollbars. The resize code is called it seems before the data is 
set. 

I should mention that I have a similar vertical list, with "variableRowHeight" 
set to true as well, and there the same code works fine. 

How do I force the HorizontalList to resize the renderers en masse after the 
new text values are set? 



[flexcoders] Help! - AdvancedDataGrid - Applying sort as if user clicked column header

2009-11-20 Thread InvertedSpear

Check out the advancedDataGrid below in the ***s. After I group I loose the
sorting I applied to the dataprovider, and no matter what I try or when I
try it, sorting the dataprovider has no effect. But the user can sort by
clicking on a column header. So I want to simulate that click in a function
but I am having no success.

I'm trying this code in the ///s and calling it after I refresh the grouping
collection. I know this code isn't breaking with any sort of error cause the
Alert.show I fire right after it works fine. Anyone know what I'm doing
wrong?


gridTemplates.dispatchEvent(
new AdvancedDataGridEvent(
AdvancedDataGridEvent.HEADER_RELEASE,
false,
false,
0
)
);






Here's the AdvancedDataGrid:
***
















  









***
-- 
View this message in context: 
http://old.nabble.com/Help%21---AdvancedDataGrid---Applying-sort-as-if-user-clicked-column-header-tp26443587p26443587.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Is thereany way using a Image Renderer ,I can change the widtth or height of an image?

2009-11-20 Thread mitchgrrt
3. Width and height are properties of Image, not styles, so setStyle()
won't work.

--- In flexcoders@yahoogroups.com, Chris  wrote:
>
> I am assuming that your list control has a set width and height. If
you have
> variableRowHeight=true, or you want a variable row height, then this
answer
> probably isn't what you are after.
>
> 1. Currently you are using Image as a base class. The way item
renderers
> work, the width, height, and background can be controlled by the item
> renderer's parent. I think you would want to wrap your Image within a
> canvas, so that the image's dimensions won't be controlled by the
parent,
> and can instead be set by you. The parent of the renderer will set the
> width/height of the canvas, and you can set the image width/height.
>
> 2. I don't know what a PopupMenu is. Is that the dropdown that is
created by
> a ComboBox?
>
>
> On Fri, Nov 20, 2009 at 8:42 AM, Thomas Silvester thomas_...@...wrote:
>
> >
> >
> > Hi All,
> > I have 2 questions?
> > 1.I would like to chnage the width and height of an image using an
Imagae
> > renderer, how do i do that?
> > 2. Can I chnage the widht or height of a POPUPMenu using the same
style  as
> > below uing a renderer.
> >
> > Any information regarding this is appreciated.
> > Thanks in Advance,
> > Anitha.
> >
> > I tried this, but it did not chnage the width or height of the
image..
> >
> > *
> >
> > package
> > *
> >
> > {
> >
> > *import* mx.controls.*;
> >
> > *public* *class* ImageRenderer *extends* Image
> >
> > {
> >
> >
> >
> > *private* *var* slaimage:Image;
> >
> >  *public* *function* ImageRenderer()
> >
> > {
> >
> > *super*();
> >
> > }
> >
> > *override* *public* *function* *set* data(value:Object) :*void*
> >
> > {
> >
> > *if*(value != *null*)
> >
> > {
> >
> > *super*.data = value;
> >
> > slaimage=
> > *new* Image();
> >
> > slaimage.source=value.CurrentSLA;
> >
> > slaimage.setStyle(
> > *"width"*,15);
> >
> > slaimage.setStyle(*"height"*
> > ,15);
> >
> >  }
> >
> > }
> >
> >
> >
>



Re: [flexcoders] Is thereany way using a Image Renderer ,I can change the widtth or height of an image?

2009-11-20 Thread Chris
Sorry, didn't catch this. There is no style for width and height. The width
and height are properties, not styles of Image/UIComponent/etc. So are you
attempting to style the DataGridColumn's header or the column itself?



On Fri, Nov 20, 2009 at 9:21 AM, Thomas Silvester wrote:

>
>
> My images are in an Advanced DataGridColumn and that coulmn has a width,
> but if i chnage that width to a very small value the column header becomes
> in visible , so i do not want to do that, instead i have an Image renderer
> for the ADvDataGridColumn which has this Image. but setting the style
> attribute width like below did not work for me.
> thanks,
> Anitha.
> --- On *Fri, 11/20/09, Chris * wrote:
>
>
> From: Chris 
> Subject: Re: [flexcoders] Is thereany way using a Image Renderer ,I can
> change the widtth or height of an image?
> To: flexcoders@yahoogroups.com
> Date: Friday, November 20, 2009, 9:42 PM
>
>
>
> I am assuming that your list control has a set width and height. If you
> have variableRowHeight= true, or you want a variable row height, then this
> answer probably isn't what you are after.
>
> 1. Currently you are using Image as a base class. The way item renderers
> work, the width, height, and background can be controlled by the item
> renderer's parent. I think you would want to wrap your Image within a
> canvas, so that the image's dimensions won't be controlled by the parent,
> and can instead be set by you. The parent of the renderer will set the
> width/height of the canvas, and you can set the image width/height.
>
> 2. I don't know what a PopupMenu is. Is that the dropdown that is created
> by a ComboBox?
>
>
> On Fri, Nov 20, 2009 at 8:42 AM, Thomas Silvester  com
> > wrote:
>
>>
>> Hi All,
>> I have 2 questions?
>> 1.I would like to chnage the width and height of an image using an Imagae
>> renderer, how do i do that?
>> 2. Can I chnage the widht or height of a POPUPMenu using the same style
>>  as below uing a renderer.
>>
>> Any information regarding this is appreciated.
>> Thanks in Advance,
>> Anitha.
>>
>> I tried this, but it did not chnage the width or height of the image..
>>
>> *
>>
>> package
>> *
>>
>> {
>>
>> *import* mx.controls. *;
>>
>> *public* *class* ImageRenderer *extends* Image
>
> {
>
>
>
> *private* *var* slaimage:Image;
>
>  *public* *function* ImageRenderer( )
>
> {
>
> *super*();
>
> }
>
> *override* *public* *function* *set* data(value:Object) :*void*
>
> {
>
> *if*(value != *null*)
>
> {
>
> *super*.data = value;
>
> slaimage=
> *new* Image();
>
> slaimage.source= value.CurrentSLA ;
>
> slaimage.setStyle(
> *"width"*,15);
>
> slaimage.setStyle(*"height"*
> ,15);
>
>  }
>
> }
>
>
>
>  
>


[flexcoders] Re: Subclassed DataGridColumn does not render in FB3 design view mode

2009-11-20 Thread fourctv
Thanks Amy,

But that did not help.
I already have all that in my library.
I have a bunch of components there and all render quite well in design mode.
The only one that does not is the DataGridColumn subclass.

As I mentioned before, all my subclass does is add a couple properties to DGC. 
Pretty basic, just some custom public properties, which are used by my DataGrid 
extension.

I even looked into the DG & DGC source code and found no reference/use of the 
design mode flag. DG or DGC does not do anything special while in design mode.

I believe that wireframe preview is rendered by FB3 itself, in DataGrid's case 
and maybe it does not recognize DGC from a different namespace, or something 
like that.

So far, that was the only component extension I made that has failed to render.

cheers,
julio
--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> 
> 
> --- In flexcoders@yahoogroups.com, "fourctv"  wrote:
> >
> > Amy,
> > 
> > it is already in a swc library.
> > 
> > what do you mean by 'program for the design time view'?
> > all my DGC subclass does is add a couple extra properties. no changes or 
> > overrides of any sort.
> > 
> > tia
> > julio
> 
> http://blogs.digitalprimates.net/codeSlinger/index.cfm/2007/4/9/Ah-design-view
> http://tv.adobe.com/watch/adc-presents/create-live-previews-for-custom-components-in-flex/
> 
> HTH;
> 
> Amy
>




Re: [flexcoders] Is thereany way using a Image Renderer ,I can change the widtth or height of an image?

2009-11-20 Thread Thomas Silvester
My images are in an Advanced DataGridColumn and that coulmn has a width, but if 
i chnage that width to a very small value the column header becomes in 
visible , so i do not want to do that, instead i have an Image renderer for the 
ADvDataGridColumn which has this Image. but setting the style attribute width 
like below did not work for me.
thanks, 
Anitha.
--- On Fri, 11/20/09, Chris  wrote:


From: Chris 
Subject: Re: [flexcoders] Is thereany way using a Image Renderer ,I can change 
the widtth or height of an image?
To: flexcoders@yahoogroups.com
Date: Friday, November 20, 2009, 9:42 PM


  



I am assuming that your list control has a set width and height. If you have 
variableRowHeight= true, or you want a variable row height, then this answer 
probably isn't what you are after.

1. Currently you are using Image as a base class. The way item renderers work, 
the width, height, and background can be controlled by the item renderer's 
parent. I think you would want to wrap your Image within a canvas, so that the 
image's dimensions won't be controlled by the parent, and can instead be set by 
you. The parent of the renderer will set the width/height of the canvas, and 
you can set the image width/height.

2. I don't know what a PopupMenu is. Is that the dropdown that is created by a 
ComboBox?



On Fri, Nov 20, 2009 at 8:42 AM, Thomas Silvester  wrote:


  








Hi All,
I have 2 questions?
1.I would like to chnage the width and height of an image using an Imagae 
renderer, how do i do that?
2. Can I chnage the widht or height of a POPUPMenu using the same style  as 
below uing a renderer.
 
Any information regarding this is appreciated.
Thanks in Advance,
Anitha.
 
I tried this, but it did not chnage the width or height of the image..
 
package
{

import mx.controls. *; 
public class ImageRenderer extends Image 
{ 
  
private var slaimage:Image; 


public function ImageRenderer( ) 
{ 
super(); 
} 

override public function set data(value:Object) :void 
{ 
if(value != null) 
{ 
super.data = value; 
slaimage=new Image(); 
slaimage.source= value.CurrentSLA ; 
slaimage.setStyle("width",15); 
slaimage.setStyle("height",15); 


} 
} 

 








Re: [flexcoders] Is thereany way using a Image Renderer ,I can change the widtth or height of an image?

2009-11-20 Thread Chris
I am assuming that your list control has a set width and height. If you have
variableRowHeight=true, or you want a variable row height, then this answer
probably isn't what you are after.

1. Currently you are using Image as a base class. The way item renderers
work, the width, height, and background can be controlled by the item
renderer's parent. I think you would want to wrap your Image within a
canvas, so that the image's dimensions won't be controlled by the parent,
and can instead be set by you. The parent of the renderer will set the
width/height of the canvas, and you can set the image width/height.

2. I don't know what a PopupMenu is. Is that the dropdown that is created by
a ComboBox?


On Fri, Nov 20, 2009 at 8:42 AM, Thomas Silvester wrote:

>
>
> Hi All,
> I have 2 questions?
> 1.I would like to chnage the width and height of an image using an Imagae
> renderer, how do i do that?
> 2. Can I chnage the widht or height of a POPUPMenu using the same style  as
> below uing a renderer.
>
> Any information regarding this is appreciated.
> Thanks in Advance,
> Anitha.
>
> I tried this, but it did not chnage the width or height of the image..
>
> *
>
> package
> *
>
> {
>
> *import* mx.controls.*;
>
> *public* *class* ImageRenderer *extends* Image
>
> {
>
>
>
> *private* *var* slaimage:Image;
>
>  *public* *function* ImageRenderer()
>
> {
>
> *super*();
>
> }
>
> *override* *public* *function* *set* data(value:Object) :*void*
>
> {
>
> *if*(value != *null*)
>
> {
>
> *super*.data = value;
>
> slaimage=
> *new* Image();
>
> slaimage.source=value.CurrentSLA;
>
> slaimage.setStyle(
> *"width"*,15);
>
> slaimage.setStyle(*"height"*
> ,15);
>
>  }
>
> }
>
>  
>


[flexcoders] Is thereany way using a Image Renderer ,I can change the widtth or height of an image?

2009-11-20 Thread Thomas Silvester
Hi All,
I have 2 questions?
1.I would like to chnage the width and height of an image using an Imagae 
renderer, how do i do that?
2. Can I chnage the widht or height of a POPUPMenu using the same style  as 
below uing a renderer.
 
Any information regarding this is appreciated.
Thanks in Advance,
Anitha.
 
I tried this, but it did not chnage the width or height of the image..
 
package 
{

import mx.controls.*;
public class ImageRenderer extends Image
{
 
private var slaimage:Image;


public function ImageRenderer()
{
super();
}

override public function set data(value:Object) :void
{
if(value != null)
{ 
super.data = value; 
slaimage=new Image(); 
slaimage.source=value.CurrentSLA; 
slaimage.setStyle("width",15);
slaimage.setStyle("height",15);


}
}

 

RE: [SPAM] [SPAM] [flexcoders] Re: how to insert checkbox value into database

2009-11-20 Thread Tracy Spratt
".flex ui the checkbox is checked then the checkbox is also checked in the
access table."  Yes, that is the theory, but you say it is not happening.
"Boolean" is more of an abstract data type, not a database column data type.
Does the Yes/no field expect a string containing "yes"/"no"? Or "true"
/"false, or 1/0?  Obviously you are not giving it what it wants.

 

On the CF side, hard code some values until you see what is needed for the
insert, then convert the Flex Boolean into that.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Friday, November 20, 2009 12:57 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [SPAM] [flexcoders] Re: how to insert checkbox value into
database

 

  

yes/no is looking for a boolean value. when the checkbox in the flex ui is
checked the value recorded in database is yes but remember yes/no in access
is a checkbox in the database column so if in the flex ui the checkbox is
checked then the checkbox is also checked in the access table and if its not
checked in the flex ui then the same in access table.





Re: [flexcoders] [SPAM] Re: Passing an object to a rendererProvider

2009-11-20 Thread InvertedSpear

Any chance you can explain further, maybe with a simple example? 


Amy-28 wrote:
> 
> That's what styleFunction on ADG is for.  And why the Data Visualization
> Components take things that would be properties on other components (like
> dataProvider) as styles.
> 

-- 
View this message in context: 
http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26442371.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: combining multiple styles

2009-11-20 Thread Joel Stransky
Thanks Mitch,
You're showing multiple selectors where I wanted to combine multiple styles
in one selector.
The CSS equivalent of:
myBox.x = myBox.y = 10;
Is what I was hoping for.


On Fri, Nov 20, 2009 at 8:22 AM, mitchgrrt  wrote:

>
>
> Sort of.
>
> .leftTab, .rightTab {
> fontFamily: "Rockwell";
> fontSize: 20;
> }
>
> .leftTab {
> color: #ff;
> }
>
> .rightTab {
> color: #00ff00;
> }
>
> leftTab and rightTab will share the first set of declarations, and then
> each one will use the additional declarations that are just for it. Not sure
> if that's what you wanted.
>
>
> --- In flexcoders@yahoogroups.com , Joel
> Stransky  wrote:
> >
> > In a Flex .css document, is there any shorthand for using the same value
> on
> > multiple styles?
> > For instance:
> >
> > .leftTab{
> > selectedUpSkin, selectedOverSkin, selectedDownSkin:
> > Embed(source="myImage.png");
> > }
> >
> > --
> > --Joel Stransky
> > stranskydesign.com
> >
>
>  
>



-- 
--Joel Stransky
stranskydesign.com


RE: [flexcoders] ASDoc & MXML

2009-11-20 Thread Stephen Gilson
Hi Amy,

Are you using Flex 3 or the Flex 4 Beta? For Flex 3, the asdoc compiler does 
not really support MXML files.

For the Flex 4 Beta, we have added support for MXML files to asdoc. You can 
find the doc un using it here: 
http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WSd0ded3821e0d52fe1e63e3d11c2f44bb7b-7fe7.html

Stephen

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Amy
Sent: Thursday, November 19, 2009 4:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ASDoc & MXML



When you give a component defined in MXML an ID, you essentially make it a 
public property of your component, so I want to document all of these 
properties. Unfortunatley, I'm not sure how to "inline" ASDOC comments on them.

Has anyone done this before?

TIA;

Amy

<><>

[flexcoders] Re: combining multiple styles

2009-11-20 Thread mitchgrrt
Sort of.

.leftTab, .rightTab {
fontFamily: "Rockwell";
fontSize: 20;
}

.leftTab {
color: #ff;
}

.rightTab {
color: #00ff00;
}

leftTab and rightTab will share the first set of declarations, and then each 
one will use the additional declarations that are just for it.  Not sure if 
that's what you wanted.



--- In flexcoders@yahoogroups.com, Joel Stransky  wrote:
>
> In a Flex .css document, is there any shorthand for using the same value on
> multiple styles?
> For instance:
> 
> .leftTab{
>   selectedUpSkin, selectedOverSkin, selectedDownSkin:
> Embed(source="myImage.png");
> }
> 
> -- 
> --Joel Stransky
> stranskydesign.com
>




[flexcoders] Re: how to enable stack traceback?

2009-11-20 Thread mitchgrrt
Thanks for the good suggestion.  Running outside the debugger, 
Capabilities.debug is true, but there's no stack traceback on a null pointer 
exception.  Capabilities.version is MAC 10,0,32,18.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I'm running both 9 and 10 on Windows.  When you run without the debugger 
> could you be launching a different player?  Try displaying 
> Capabilites.version and isDebugger.  Could be a Mac thing.  I don't have a 
> Mac.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of mitchgrrt
> Sent: Thursday, November 19, 2009 4:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: how to enable stack traceback?
> 
> 
> 
> Yes I did try a simple case. I put some code that causes a null pointer 
> exception into a screen's onCreationComplete handler. I see the traceback 
> inside the debugger but nothing when running the program without the debugger.
> 
> There seems to be a lot of confusion about this issue, and also just about 
> the terminology to talk about it. I wonder if it's really just a Mac vs. 
> Windows issue? In other kinds of software development it's common to see 
> differences across platforms, but it's much less common with Flex.
> 
> What version of the Flash player are you running? I was thinking maybe it was 
> something that worked with version 9 and got broken with version 10.
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > If you have a debugger player you should be seeing the exception dialog 
> > whether you are in the debugger or not. I still do on Windows. I don't have 
> > a Mac to try it. Did you try a simple test case?
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
>




[flexcoders] Re: TabNavigator changes page (html) title

2009-11-20 Thread ynotob
Update.  I was able to get fix the issue with a minor change to the original 
reply.  I had to set the title to the string explicitly.

Thanks again.

private var applicationName:String = "User status and admin option";

private function initApp():void
{
browserManager = BrowserManager.getInstance();
browserManager.setTitle(applicationName);
browserManager.addEventListener(BrowserChangeEvent.APPLICATION_URL_CHANGE, 
uRLChange);
}

private function uRLChange(event:BrowserChangeEvent):void
{
browserManager.setTitle(applicationName);
}




--- In flexcoders@yahoogroups.com, "ynotob"  wrote:
>
> Thanks, I'll give that a try, appreciate the detailed response.
> 
> Do you know if it is fixed in more recent SDK releases?  
> 
> I've been meaning to upgrade the SDK for a while but have delayed because I'm 
> not sure how painful / painless the process is.
> 
> --- In flexcoders@yahoogroups.com, "Flex Boy"  wrote:
> >
> > Yea I know, it's a bug in the historymangager(sdk 3.2), you have to set the 
> > pagetitle manual after pressing the tab..
> > 
> > work around:
> > 
> > private var browserManager:IBrowserManager;
> > 
> > private function initApp():void
> > {
> > browserManager = BrowserManager.getInstance();
> > browserManager.setTitle('your page title');
> > browserManager.addEventListener(BrowserChangeEvent.APPLICATION_URL_CHANGE, 
> > uRLChange);
> > }
> > 
> > private function uRLChange(event:BrowserChangeEvent):void
> > {
> >browserManager.setTitle(browserManager.title);
> > }
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "ynotob"  wrote:
> > >
> > > I've added a TabNavigator to a flex application.
> > > 
> > > The application is launched from html that is generated by a java server 
> > > page (main.jsp).  The generated html includes a html page title.  
> > > 
> > > Up until I added the TabNavigator to the application, the generated html 
> > > page title would display as expected when the flex application is run in 
> > > the browser.
> > > 
> > > Now that I've added a TabNavigator, the html page title shows as expected 
> > > until the flex application shows the TabNavigator.  Then the page title 
> > > changes to that of the jsp (main.jsp) along with the full url to main.jsp.
> > > 
> > > Any idea of how to stop the TabNavigator from changing my page title?
> > > 
> > > Tony
> > >
> >
>