Re: [flexcoders] NumericStepper with formatting?

2007-03-14 Thread Harish Sivaramakrishnan

Hi,

I have a prototype of this feature which can be found in the following link.
This component extends from NumericStepper. You can achieve currency /
number formatting in by setting the format property to CurrencyFormatter ot
NumberFormatter.

http://flexgeek.wordpress.com/2007/03/14/formattedstepper-numericstepper-with-formatting-support/

HTH, Thanks
Harish


On 3/12/07, beancounter <[EMAIL PROTECTED]> wrote:


  Someone posted last Sep. asking about a NumericStepper that could
have e.g. currency formatting - I wonder if anyone has solved this.

I could create a custom control from whole cloth or use the hack
someone's posted elsewhere of overlaying a read-only text field and
swapping on click, but would love it if someone had a custom
NumericStepper that let me have a text field (in addition to numeric
value) that was used for display, and let me apply a Formatter of my
choice to it. Or, if someone's found a way to do this with the
standard NumericStepper. I need both currency and % formatting.

Alternatively, a way to achieve the NumericStepper-style validation
constraint behavior with a standard text field would be workable - I
don't absolutely need the stepper controls, but I do need a field
that, like NumericStepper, simply does not accept invalid input
(outside a specified numeric range). Because, I want to KISS and
never have bad data bound to my client-side domain model.

Thanks in advance.


 



Re: [flexcoders] Re: Drag and Drop Example Needed

2007-03-14 Thread Harish Sivaramakrishnan

Hi Dave,

Not sure if you have decided against using flex and going back to Flash 8 :)
Please go through the following link, I have tried to give a sample solution
to the problem you are facing. It may not be exactly your requirement, but
it more or less solves your chief issues ie, dragging from List to canvas
and dragging a dropped image within the canvas and positioning them. Please
do go through it and please dont hesitate to email me if you need any help

http://flexgeek.wordpress.com/2007/03/15/drag-drop-example/

Thanks
Harish
Flex QE, Adobe India.

On 3/14/07, tosadavemgr <[EMAIL PROTECTED]> wrote:


  I have looked through most of the past posts on this site (especially
since Flex 2 was released). Many of the search results on
Flexsearch.org are from this board. I tried to list some specific
things that I'm trying to learn, such as using Drop and Drag to an
item that isn't DnD enabled by default, have the dropped item be
re-draggable, etc. Even using the built in Drop Manager, I'd like to
see a working sample somewhat similar to my generic needs to see if
I'm close (from a best practice standpoint) to doing things the right
way. I'm tempted to just re-trench and use Flash 8 for my project, but
Flex seems so promising.

Dave

--- In flexcoders@yahoogroups.com , "Igor
Costa" <[EMAIL PROTECTED]> wrote:
>
> Dave.
>
> Try a little search at www.flexsearch.org or
>

http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avcq0-ng&q=Drag+and+Drop+Example&sa=Search&cof=FORID%3A9#1135
>
> Will help to find lots of them.
>
> Regards
>
> Igor Costa
> www.igorcosta.org
>
>
> On 3/12/07, tosadavemgr <[EMAIL PROTECTED]> wrote:
> >
> > Does anyone have a working example of the following. I have a
list of
> > products in a tilelist, represented by thumbnail images. The product
> > list is stored in a static XML file accessed via HTTPService.
> > My TileList:
> >  > itemRenderer="thumbnail" columnCount="2" columnWidth="85"
> > dragEnabled="true" dragMoveEnabled="false"
> > >
> >
> > My itemRenderer:
> > 
> > http://www.adobe.com/2006/mxml";
> > horizontalAlign="center"
> > verticalGap="0" borderStyle="none" paddingLeft="0"
> > paddingRight="0">
> >  > source="{data.thumbnail}" toolTip="{data.code}"/>
> > 
> >
> > I need to be able to drag a product from the TileList and make a COPY
> > on a canvas that would also draggable (so after a few items are
> > dragged, they could be arranged anywhere on the canvas). Also in the
> > XML is a icon view of the image that is a vector drawing, so I want to
> > use that as the Proxy view while dragging and also as the item to be
> > dropped. It can be accessed as source="{data.icon}".
> >
> > I have been looking at the samples with the updated Chapter 29 Using
> > Drag and Drop from the Flex Documentation, but I seem to be making my
> > application worse, not generating a workable solution.
> > I've also looked at this site -
> > http://demo.quietlyscheming.com/DragTile/DragDrop.html - which has a
> > really cool example, but there is so much interactivity going on with
> > the tweening that it is hard to understand the basic drop and drag
> > functions.
> >
> > Any help or a pointer to a good (simple) example would be appreciated.
> >
> > Dave
> >
> >
> >
>
>
>
> --
> 
> Igor Costa
> www.igorcosta.org
> www.igorcosta.com
> skype: igorpcosta
>

 



Re: [flexcoders] Show\Hide Column in DataGrid

2007-03-15 Thread Harish Sivaramakrishnan

do not use the column names, just store the indices of the columns and do
datagridInstance.columns[columnIndex].visible= true / false.

this is the right way of doing it.

On 05 Mar 2007 22:20:28 -0800, sanjaypmg <[EMAIL PROTECTED]> wrote:


  Hi All,

I am facing an Error while making Grid columns visible\Invisible at
runtime.

I have made a function showHideColumns in my application which accepts
2 arrays as parameters. One is "colNameArr" Which has all the column
names of GRID and another one is "colStatusArr", which has TRUE or
FALSE corresponding to that partifular column.

When I call the method "showHideColumns" It is making the column
visible\invisible but showing an ERROR also Which is "Cannot Create a
Property on String".

How Can I remove that error? pls suggest me something. the function is
given below:

** FUNCTION *
public function showHideColumns(colNameArr:Array,
colStatusArr:Array):void{

for(var i:int=0; i 



Re: [flexcoders] edit Datagrid selected cell in seperate component

2006-11-07 Thread Harish Sivaramakrishnan



You will need to call the setItemAt() method on the dataprovider to reset the edited value. Why dont you try using a richtexteditor as the item editor of the datagrid cell. (or is that what you are doing now?)
On 11/6/06, Emile Swain <[EMAIL PROTECTED]> wrote:













  













Hi All

 

I'm doing some pretty simple stuff
but having a couple of issues with binding the content of a selected datagrid
cell (selectedItem) with the RichTextEditor in a separate component.

 

Pseudo code



    

    

    



 

 

When I select an editable cell in a
datagrid I want to be able to also manipulate it using the RichTextEditor
component within myTextEditComp.

 

Has anyone had any luck doing this? Any
decent examples? I've gone someway towards achieving this, I haven't
been able to bind any changes back to the cell though.

 

Is it possible to bind the text property
of the richtexteditor to a specific datafield within the bound data of the
selected cell in the datagrid?

 

 

Thanks

Emile

 








  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] checkCellRender Validation

2006-11-07 Thread Harish Sivaramakrishnan



Hi,The following code achieves validation on an editable cell. I am not sure if this is what you are looking for, but this might be a good start point. This example validates for a value < 100 for the price field.
//-http://www.adobe.com/2006/mxml" width="800" height="700">


   itemEditEnd="validateData(event)" >                                 
                ThanksHarishOn 11/8/06, 
Stephen Gilson <[EMAIL PROTECTED]> wrote:













  






Hi Valy,
 
This issue will be fixed in the upcoming Flex release. I'm 
not aware of a workaround, but maybe someone else in the group had come up with 
one.
 
Stephen


From: [EMAIL PROTECTED]ups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Valy 
SivecSent: Tuesday, November 07, 2006 2:27 PMTo: 
[EMAIL PROTECTED]ups.comSubject: Re: [flexcoders] checkCellRender 
Validation




Hi 
Stephen,
Sorry, didn't realize that the 
page was part of the frame... Here is the document I was referencing: 
http://livedocs.macromedia.com/flex/2/docs/0867.html
The ! tasks I have seems pretty 
basic, have a grid with multiple columns and only 2 columns should be editable. 
I want to be able validate the cell  content at edit. As you said the 
reason property of the DataGrid event doen't work correctly and seems that I 
have ran out of luck tryingDo you have any work around? Any 
advice?I'm kinda stuck right 
nowThank you for the 
message.Valy
- Original Message From: Stephen Gilson e.com>To: [EMAIL PROTECTED]ups.comSent: Tuesday, November 
7, 2006 1:24:16 PMSubject: RE: [flexcoders] checkCellRender 
Validation


Hi Valy,
 
In Flex 2, there was an issue with the reason property of 
the DataGridEvent and ListEvent class not being set properly when you change 
cell focus. Which example is this? The page you mention takes me to a page with 
no example on it.
 
Stephen


From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Valy 
SivecSent: Tuesday, November 07, 2006 1:18 AMTo: 
[EMAIL PROTECTED] ups.comSubject: RE: [flexcoders] checkCellRender 
Validation


Hello flexcoders,I've spent the last few hours trying to validate a 
cell on a editable datagrid without any luck. Do you have any example?. The 
example from the adobe docs doesn't work :(. It seems that preventDefault( ) 
always works for tab but not for the mousehttp://livedocs. macromedia. com/flex/ 
2/docs/wwhelp/ wwhimpl/common/ html/wwhelp. htm?context= LiveDocs_ 
Parts&file=0857. html#230761Any help is greatly 
appreciated,Thanks,Valy


Get your email and see which of your friends are online - Right on the 
new Yahoo.com 



  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: Error #1010: A term is undefined and has no properties -- RTE with Datagrid

2006-12-07 Thread Harish Sivaramakrishnan

Hi,


From your description, I get a feeling that this might be a bug within

datagrid. Can you please send me a code snippet which would reproduce this
issue?

Many thanks
Harish
Flex SDK QE

On 12/7/06, jmorpher03 <[EMAIL PROTECTED]> wrote:


  Sorry for not being clear earlier. Once the data is populated in the
DataGrid, whenever I try to scroll (using the scroll bar as well as
the mouse wheel) this runtime error comes up and the whole display
goes bad.


--- In flexcoders@yahoogroups.com , "Tracy
Spratt" <[EMAIL PROTECTED]> wrote:
>
> What is the line of code that is producing the error?
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com ] On
> Behalf Of jmorpher03
> Sent: Tuesday, December 05, 2006 7:34 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Error #1010: A term is undefined and has no
> properties -- RTE with Datagrid
>
>
>
> Hi,
>
> I have a DataGrid with a custom item renderer (containing a
Checkbox
> and Label). As soon as the data is populated via an XML returned by
> the server, the following error comes up:
>
> TypeError: Error #1010: A term is undefined and has no properties.
> at
>
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::sc
> rollVertically()
> at
> mx.controls::DataGrid/mx.controls:DataGrid::scrollVertically()
> at mx.controls.listClasses::ListBase/set
> verticalScrollPosition()
> at
>
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::mo
> useWheelHandler()
> at
> mx.controls::DataGrid/mx.controls:DataGrid::mouseWheelHandler()
>
> I saw in a couple posts that this is a bug, if yes, is this fixed ?
>
> Regards,
> Asgar.
>

 



Re: [flexcoders] bug: creationpolicy=all screws up grid column widths

2006-12-19 Thread Harish Sivaramakrishnan

Hi Pan,

We are indeed looking into this issue and see what could be done to fix this
/ provide an acceptable solution to the problem. Thank you for providing the
code snippet as well as the problem description.

Thanks
Harish

Flex SDK QE - Adobe.

On 12/20/06, Pan Troglodytes <[EMAIL PROTECTED]> wrote:


  Wasn't slamming you for the suggestion, just wanted to make sure nobody
at Adobe saw it and thought it was a non-issue.  The way I got around was to
turn the creationPolicy back to auto as well, though the rest of the window
was on all.  Worked in this case, but Adobe will want to fix the bug
(hopefully).


On 12/19/06, Mike Anderson <[EMAIL PROTECTED]> wrote:
>
>I think I also had creationPolicy set to "auto" as well, for my
> side...
>
> I just wanted to throw my initial thoughts out there, in order to see if
> that could be a quick fix for you.
>
> Bottom line is, I went through the same crap myself, and after playing
> around with a few different settings, I finally got everything working
> properly.  All apps that I write, make extensive use of Tab Navigators - so
> if there is a problem out there relating to this control, I have experienced
> it.
>
> Sorry if my suggestions don't help you - but the problem definitely
> relates to timing issues - and can eventually be fixed, if you can find out
> where the problem is occurring, and then forcing the DataGrid to create
> itself at a more appropriate time.
>
> Hope this helps a tad...
>
> Mike
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Pan Troglodytes
> *Sent:* Tuesday, December 19, 2006 6:27 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] bug: creationpolicy=all screws up grid
> column widths
>
> Unfortunately, that doesn't work here.  You can try it out for yourself
> in the example.
>
> On 12/19/06, Mike Anderson < [EMAIL PROTECTED]> wrote:
> >
> >I had the same problem too -
> >
> > If you also set "minWidth" as well as "width", this should solve your
> > problem.  Well, at least, it did for me -
> >
> > Please let me know if this fixes your problem.
> >
> > Mike
> >
> >  --
> > *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
> > *On Behalf Of *Pan Troglodytes
> > *Sent:* Tuesday, December 19, 2006 11:37 AM
> > *To:* flexcoders
> > *Subject:* [flexcoders] bug: creationpolicy=all screws up grid column
> > widths
> >
> >  In the following code, there are two tab navigators with two pages of
> > grid each.  All the grids are coded identically.  They each have two
> > columns, the first of which has a fixed width of 50 and the second with no
> > fixed width.  The bug is that when you click on the second tab on the first
> > tab navigator, the grid does not obey the width setting for the first
> > column.  In the second tab navigator, it does.  The difference is that the
> > first has creationPolicy=all.
> >
> > 
> > http://www.adobe.com/2006/mxml";>
> >   
> > 
> >   
> > 
> >> dataField="name"/>
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> >> dataField="name"/>
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >> dataField="name"/>
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> >> dataField="name"/>
> >   
> > 
> >   
> > 
> >   
> > 
> >
> >
> > --
> > Jason
> >
> >
>
>
> --
> Jason
>
>


--
Jason

 



Re: [flexcoders] Null error when using specifying itemRenderer on dataGridColumn

2006-04-28 Thread Harish Sivaramakrishnan



you need to set rendererIsEditor=true in the code,  the RTE will be gone.ThanksHarishOn 4/28/06, Matt Chotin <
[EMAIL PROTECTED]> wrote:
















Random shot, try importing
mx.controls.Text and mx.controls.TextInput?  I think it should have been a
compiler error if it was necessary but…

 

Note that the error is for the item editor
when you say it's the renderer that you change to fix it.  Sounds like a
bug to me…  I'll forward it inside.

 

Matt

 









From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Scott Romer
Sent: Thursday, April 27, 2006
2:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Null error
when using specifying itemRenderer on dataGridColumn



 

I've been struggling for some time
now (and I'm assuming this must just be so brain-dead simple)...
Trying to set an ItemRenderer and ItemEditor on a datagridColumn.  For
certain ItemRenderer's, I am getting a null error.  (using Flex 2 beta 2)

NOTE: I am not trying to use these as my actual renderer and editor classes as
they don't really provide anything at all above the defaults.. but I noticed
this gives the EXACT same error.  (My actual renderer extends from
Canvas...)

If you change the itemRenderer to mx.controls.Label, then it works fine.. and
oddly enough Text extends Label.    Any ideas?




http://www.adobe.com/2006/mxml"
    backgroundAlpha="0" creationComplete="initApp()">


    



    variableRowHeight="true" editable="true"
rowHeight="50"
    width="300" height="300">
    
    
 &! nbsp;  
    itemRenderer="mx.controls.Text"
editorDataField="text"
itemEditor="mx.controls.TextInput">
    
    






Null error received when
trying to edit the dept column:
TypeError:
Error #1009: null has no properties.
    at mx.controls::DataGrid/createItemEditor()
    at mx.controls::DataGrid/itemEditorItemEditBeginHandler()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.controls::DataGrid/commitEditedItemPosition()
    at
mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()
    at ! mx.core::UIComponent/validateDisplayList()
  &nbs! p; at mx .managers::LayoutManager/validateDisplayList()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 

   To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
.



  

















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Locking Last row in a Flex Data Grid

2007-05-23 Thread Harish Sivaramakrishnan

http://blogs.adobe.com/aharui/2007/04/datagrid_footers.html

I suppose this is what u are looking for



On 5/23/07, Flexing... <[EMAIL PROTECTED]> wrote:


  One approach can be:


http://flex-apollo.blogspot.com/2007/05/adding-total-row-at-end-of-datagrid.html


On May 23, 2007, at 2:46 PM, Dharmendran A wrote:


hi,


Does anybody know how to lock a last row in a datagrid. I know that
lockedRowCount can lock all the rows abouve the specified index, but I need
to lock the last row in data grid in addition to header row. This last row
will show the Total value for each column and it should be locked


dharmendran a

--
Ready for the edge of your seat? Check out tonight's top 
pickson Yahoo! TV.


 


Re: [flexcoders] render values from datagrid

2007-05-27 Thread Harish Sivaramakrishnan

Hi Kanu

Please make your query a little more specific, it will make it easier to
understand and solve your problem. As you know, this is a high traffic forum
and most of the guys who solve issues are doing it by sneaking time from
their regular work . Please elaborate a little more on what you want to do,
it will be easier for folks to suggest a solution.

Thanks
Harish

On 5/28/07, kanu kukreja <[EMAIL PROTECTED]> wrote:


  Hello everyone,

i don't 9ow y but nobody replies to my queries. :(
I hope this time u all help me out.

i want to click on any particular data of datagrid and need to render its
value and open a different state for every column item click.
**
*My code:*


http://www.adobe.com/2006/mxml";
backgroundColor="#FF" creationComplete="start()">



 





*Best Regards*
*Kanu Kukreja*

--
Get the Yahoo! toolbar and be alerted to new email
wherever
you're surfing.

 



Re: [flexcoders] render values from datagrid

2007-05-28 Thread Harish Sivaramakrishnan

Hi Kanu

Please go thru the following example


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="start()">
   






It is strongly recommended that you look up the AS3 / Flex documentation on
the adobe website. Many of your questions will have solutions right there.

Happy Flexing!

Thanks
Harish


Re: [flexcoders] show value in combobox

2007-05-28 Thread Harish Sivaramakrishnan

Kanu,

It is not recommended to use scalar values into your dataProvider, instead
use the format {label:"varun"},{label:"manav"} instead of using varun, manav
... etc.

For solving your issue, use the selectedItem property on the combbox.

thanks
Harish

On 5/29/07, kanu kukreja <[EMAIL PROTECTED]> wrote:


  Tx for the quick reply Tracy

But i was expecting some property for this insted of applying this logic.

Is there is any property?


*Tracy Spratt <[EMAIL PROTECTED]>* wrote:

  You need to loop over the dataProvider, comparing the appropriate
property value to the match value, then set the comboBox selectedIndex when
you match.
 Tracy
  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *kanu kukreja
*Sent:* Monday, May 28, 2007 3:43 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] show value in combobox
   there is a combobox with 3 values:
 kanu
 manav
 varun
  through webservices i'm getting "varun"
  which i need to show in a combobox after clicking a button
   how to do this?
 *Best Regards*
 *Kanu Kukreja*

 --
 Looking for a deal? Find great prices on flights and 
hotelswith
 Yahoo! FareChase.




*Best Regards*
*Kanu Kukreja*

--
Luggage? GPS? Comic books?
Check out fitting gifts for 
gradsat
 Yahoo! Search.

 



Re: [flexcoders] Re: TextInput vs. ENTER key.

2007-05-31 Thread Harish Sivaramakrishnan

is bumping the user out a *requirement* or are you doing it to force the
validator to trigger? if latter, you could call validatePhoneNumber() when
enter event is fired?


On 5/31/07, Alex Harui <[EMAIL PROTECTED]> wrote:


   I think it should be



public function ExitValidatedField():void{
focusManager.getNextFocusManagerComponent().setFocus();
}

 Hitting the breakpoint shifts focus to the debugger and causes the player
and textinput to lose focus.

There might be some type-casting needed, but that should get you closer
 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *stevekpeak8
*Sent:* Wednesday, May 30, 2007 5:36 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: TextInput vs. ENTER key.



Alex,

Thanks again for your response.

It's VERY ODD.

I've created a public function thusly..

public function ExitValidatedField():void{
focusManager.getNextFocusManagerComponent();
}

And put the following attributes into my TextInput Fields:

enter="ExitValidatedField();"

If I put a BREAKPOINT on the line of code where focusManager is being
called, then the breakpoint DOES fire, and the focus DOES leave the
field. BUT... If I REMOVE the breakpoint, then the focus does NOT
leave the field.

Do I need to manually add some REFRESH to this procedure?

I'm S confused.

Best

Steve

--- In flexcoders@yahoogroups.com , "Alex
Harui" <[EMAIL PROTECTED]> wrote:
>
> The code looks like it should dispatch ENTER anyway. Did you not
get
> it?
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com ] On
> Behalf Of stevekpeak8
> Sent: Wednesday, May 30, 2007 8:50 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Re: TextInput vs. ENTER key.
>
>
>
> Alex,
>
> Thanks for your response. listening for ENTER is actually the first
> thing I tried, but it doesn't work as I'd expect. These controls
are
> NOT inside a FORM (explicitly, at least; it's inside a PANEL). Is
> that part of the problem?
>
> TIA
>
> Steve
>
> --- In flexcoders@yahoogroups.com 
40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Listen for the "enter" event and set focus somewhere else. You
can
> use
> > focusManager.getNextFocusManagerComponent if you're not sure
where
> to
> > set focus.
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
40yahoogroups.com>
>
> [mailto:flexcoders@yahoogroups.com 
40yahoogroups.com>
> ] On
> > Behalf Of Steve Kellogg
> > Sent: Tuesday, May 29, 2007 5:12 PM
> > To: flexcoders@yahoogroups.com  
40yahoogroups.com>
> > Subject: [flexcoders] TextInput vs. ENTER key.
> >
> >
> >
> > Hello,
> >
> >
> >
> > I have a number of TextInput controls that I'm using with
Validators
> > (phoneNumber, email, etc).
> >
> >
> >
> > It all works correctly, except that I want an ENTER (or RETURN)
to
> bump
> > the user out of the field (therefore triggering the validator).
> >
> >
> >
> > Any ideas how to do this? Will RESTRICT allow me to tell
> TextInput to
> > treat ENTER and RETURN the same as TAB?
> >
> >
> >
> > TIA
> >
> >
> >
> > Steve
> >
>

 



Re: [flexcoders] Re: Drag Drop functionality in Flex/AS3

2007-05-31 Thread Harish Sivaramakrishnan

http://flexgeek.wordpress.com/2007/03/15/drag-drop-example/

will help you get started.

On 5/30/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:


   Yes, then check the docs.  There are several simple examples to get you
started.  Peter Ent has a series of articles that go into some detail.



Tracy


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *junkfinn
*Sent:* Wednesday, May 30, 2007 12:12 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Drag Drop functionality in Flex/AS3



--- In flexcoders@yahoogroups.com ,
"zzberthod" <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I try to add Drag Drop functionality on my Flex application.
> But I don't know what to do?
>
> Do you know a core function that I can use in Flex/AS3?
>
> Thanks.
>
import mx.core.DragSource;
import mx.managers.DragManager;
import mx.events.DragEvent;

These are what you need to import for Drag and Drop.

Goodluck

 



Re: [flexcoders] Remember Username/Password !

2007-05-31 Thread Harish Sivaramakrishnan

you could write the username / password into a sharedObject (which is like a
cookie) on the client system and retrieve it.

On 5/31/07, Ravi Kumar Gummadi <[EMAIL PROTECTED]> wrote:


   Hi all,



How do we enable the functionality of remembering the credentials
(username/password) in a flex application?

Since we can't know the IP address of client, I don't see a way how we
achieve it.



Any inputs would really do a world of good.



Thanks in Advance



Regards

Ravi

Partygaming



 



Re: [flexcoders] Hyperlink in datagrid

2007-06-01 Thread Harish Sivaramakrishnan

it you are going the itemRenderer way, you could use the link button to open
the link. I personally wont do the rowIndex, colIndex based way because it
is not intutive to me as to what triggered the opening of URL since the
click is done on the cell itself.

On 6/1/07, Hara Jn <[EMAIL PROTECTED]> wrote:


  One way is to use the changeEvent. The other way is to use the
itemRender and insert a Txt component in to the cells. The you can play with
the text and make it like a actual hyper link

On 6/1/07, Ekta Aggarwal <[EMAIL PROTECTED]> wrote:
>
>Hi,
>
> I am displaying some data in a datagrid where dataprovider is a XML
> file. Now, I have a requirement where I need to provide a hyperlink on each
> data cell of the datagrid, so that clicking on the item can take me to some
> other page. e.g.
>
>
> --
> column1column2
> -
>  FailPass
>  FailPass
> --
>
> Clicking on fail/pass should display the log results.
>
> Any idea, how to provide the hyperlink?
>
> Regards,
> Ekta
>
>
> Ekta Gupta
>
>  www.geocities.com/aggarwalekta
>
> --
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
> 
mail, 
news, photos more.
>
>


Re: [flexcoders] Hyperlink in datagrid

2007-06-01 Thread Harish Sivaramakrishnan

well , I was following the example which has fail and pass which needs to be
hyperlinked. I still feel link button is the best as it is *not* very common
to display the url itself as a link in the applicattion

On 6/1/07, Hara Jn <[EMAIL PROTECTED]> wrote:


  LInk button wont solve your problem unless if the link is very text is
very small. when you use a domain name or a long URL Text component is the
best.


On 6/1/07, Harish Sivaramakrishnan <[EMAIL PROTECTED]> wrote:
>
>   it you are going the itemRenderer way, you could use the link button
> to open the link. I personally wont do the rowIndex, colIndex based way
> because it is not intutive to me as to what triggered the opening of URL
> since the click is done on the cell itself.
>
> On 6/1/07, Hara Jn <[EMAIL PROTECTED] > wrote:
> >
> >   One way is to use the changeEvent. The other way is to use the
> > itemRender and insert a Txt component in to the cells. The you can play with
> > the text and make it like a actual hyper link
> >
> > On 6/1/07, Ekta Aggarwal <[EMAIL PROTECTED] > wrote:
> > >
> > >Hi,
> > >
> > > I am displaying some data in a datagrid where dataprovider is a XML
> > > file. Now, I have a requirement where I need to provide a hyperlink on 
each
> > > data cell of the datagrid, so that clicking on the item can take me to 
some
> > > other page. e.g.
> > >
> > >
> > > --
> > > column1column2
> > > -
> > >  FailPass
> > >  FailPass
> > > --
> > >
> > > Clicking on fail/pass should display the log results.
> > >
> > > Any idea, how to provide the hyperlink?
> > >
> > > Regards,
> > > Ekta
> > >
> > >
> > > Ekta Gupta
> > >
> > >  www.geocities.com/aggarwalekta
> > >
> > > --
> > > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
> > > 
<http://us.rd.yahoo.com/evt=48253/*http://mobile.yahoo.com/go?refer=1GNXIC>mail,
> > > news, photos more.
> > >
> > >




Re: [flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-03 Thread Harish Sivaramakrishnan

Listen to itemClick on datagrid, It fires only when an item of the datagrid
is clicked.

On 6/4/07, Swaroop C H <[EMAIL PROTECTED]> wrote:


   You can monitor MouseEvent.DOUBLE_CLICK event and then use
mouseEventToItemRenderer to fetch the item renderer at the mouse position.

If the item renderer is not present in the listItems[0] array, that mean
it is not part of the header i.e. it is rendering a data/row.



Regards,

Swaroop
 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Derrick Anderson
*Sent:* Monday, June 04, 2007 3:40 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] click event handler of datagrid, make it fire
on rows only



thanks that event does work better, but hopefully this can be expanded
upon- for instance, using ListEvent.CHANGE fires when the user uses arrow
keys to switch between records- in my case that will open a popup each
time.  it would be best if i could fire an event on dbl click of a row only,
how can i do this?

- Original Message 
From: EECOLOR <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, June 3, 2007 4:50:36 PM
Subject: Re: [flexcoders] click event handler of datagrid, make it fire on
rows only

You should listen to ListEvent.CHANGE.

From the documentation:

change - Dispatched when the selectedIndex or selectedItem property
changes as a result of user interaction.


Greetz Erik

 On 6/3/07, *Derrick Anderson* > wrote:

hi,  anyone know how i can get the 'click' property of the datagrid to
only fire when i click a row?  right now it fires even if you are clicking
on one of the headers
...









 --

Shape Yahoo! in your own image. Join our Network Research Panel 
today!

 



Re: [flexcoders] Sleep / Blink Image

2007-06-03 Thread Harish Sivaramakrishnan

use flash.utils.Timer / setInterval() to call a method on timer.

On 6/4/07, Christopher Olsen <[EMAIL PROTECTED]> wrote:


  Is there a way to make flex sleep for a specified amount of miliseconds?

I'm trying to make an icon flash

or does anyone have any alternate solutions for this

 



Re: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread Harish Sivaramakrishnan

are you looking at something like this?
http://flexgeek.wordpress.com/2007/06/04/tips-tricks-itemeditors-iii/

On 6/3/07, Alex Harui <[EMAIL PROTECTED]> wrote:


   Tried it in hotfix2, tooltip came up and editor did not lose focus.
Which player, browser, os?


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *nxzone
*Sent:* Friday, June 01, 2007 12:08 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or...
WIsh...



Enter more then 10 character in the email and rollover the textinput :)


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


Christina Coenraets
[EMAIL PROTECTED] 



















 



Re: [flexcoders] My component always returns width = 0

2007-06-04 Thread Harish Sivaramakrishnan

override the method createChildren() and then create the tab in that method,
after updateDisplayList is called you will be able to get the correct width
of the tab.

On 6/4/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:


On Monday 04 Jun 2007, Webdevotion wrote:
> tab = new Tab();
> children.push( tab );
> tab.label = _items[i];
> tab.x = remw;
> remw = tab.width;

Unless you wait for Tab to be drawn, it will have zero width.

--
Tom Chiverton
Helping to greatly entrench 24/365 platforms
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






Re: [flexcoders] HorizontalList shows image place holder instead of image

2007-06-04 Thread Harish Sivaramakrishnan

did you try setting source to graphicList.getItemAt(1).source ?

best way however will be to override the set data() in your itemRenderer.

On 6/5/07, Alex Harui <[EMAIL PROTECTED]> wrote:


   It looks like you made a custom renderer that just has an Image.  Image
doesn't know how to look for an "icon" property in the dataprovider.  You
might try customizing the .data setter.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Nathan Arizona
*Sent:* Monday, June 04, 2007 11:28 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] HorizontalList shows image place holder instead of
image



The code below shows that there are two image tags and one horizontal
list. The image tags show the images but the the horizontalList does
not. Can anyone see what I am doing wrong.

Just an FYI. I am using an example from the flex documenatation.
Prior to this the HorizontalList was using the same ArrayCollection
that the images are using for a source. I was getting the same result.


http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">






















 



Re: [flexcoders] Adding a menubar to a cell in a datagrid

2007-06-05 Thread Harish Sivaramakrishnan

menubar does not implement the interfaces IDropInListItemRenderer or
IListItemRenderer. For getting an itemRenderer to work it must be
implementing these interfaces. One way to get started on this is to subclass
menubar in such a way that it implements the abovementioned interfaces

Thanks
Harish


On 6/5/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:


On Monday 04 Jun 2007, bill.fogarty17 wrote:
> This is the error I get:
> 1195: Attempted access of inaccessible method menuHandler through a
> reference with static type


menuHandler isn't public

--
Tom Chiverton
Helping to augmentatively introduce granular e-commerce
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






Re: [flexcoders] Re: Problem with Sortable Draggable DataGrid

2006-09-08 Thread Harish Sivaramakrishnan



This issue has been logged into our bugbase. Will get back to you once we have a resolution on the same.ThanksHarishOn 9/8/06, Harris Reynolds
 <[EMAIL PROTECTED]> wrote:












  



Here's another question... when I drag a row to a different spot in 
the datagrid... how can I figure out where in the grid it landed?  I 
need to be able to have a user drag and drop rows to order the 
datagrid to their liking and then be able to get the current order 
of the rows.

Is this possible?

~harris

--- In flexcoders@yahoogroups.com, "Harris Reynolds" 
<[EMAIL PROTECTED]> wrote:
>
> Hi there.  I am having a problem with a DataGrid that allows users 
to 
> drag items in the control to new positions with the list.  
Dragging 
> items works when the control is initially loaded, but stops 
working 
> after a column header is clicked that sorts the items using the 
> default mechanism.
> 
> Is there a way to have dragging items to other positions within 
the 
> grid still work after sorting on the columns?
> 
> thanks,
> 
> ~harris
>


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] adding control bar to panel programitically

2006-09-14 Thread Harish Sivaramakrishnan



Hi,Here is a partial solution to ur issue. The problem here is when you add a controlbar to the Panel as a child, you also need to tell the panel that the added Child is of the type controlBar. Once this property is set, the Panel itself takes care of layouting the controlbar at the required position. However adding a chind to programmatically added controlbar seems to be broken, I have logged a bug into the adobe bugbase to track this. In the meanwhile modify your 
ControlBarInPanel.as with the following code.The only modifications that i have done is extending the class from Panel and not from Canvas.The code:package{    import mx.containers.Canvas
;    import mx.containers.Panel;    import mx.containers.ControlBar;    import mx.controls.Button;    import mx.events.FlexEvent;       public class ControlBarInPanel extends Panel    {    public function ControlBarInPanel()
    {    super();    addEventListener( FlexEvent.CREATION_COMPLETE, handleCreationComplete );    }       private function handleCreationComplete( event:FlexEvent ):void
    {     }    override protected function createChildren():void    {        super.createChildren()    var tb:Button = new Button();    tb.label = "Test Button in Panel";
    var cb:ControlBar = new ControlBar();    var tb2:Button = new Button();    tb2.label = "Test Button in Control Bar";    cb.addChild( tb2 );    
cb.includeInLayout=true            addChild( tb );    addChild(tb)    addChild(cb);          controlBar = cb;
    //cb.invalidateDisplayList()    }    }}Hope this helpsHarishOn 9/14/06, aaron smith <
[EMAIL PROTECTED]> wrote:












  



I've been just messing around with how to do things through code. It seems adding a ControlBar to a panel in code doesn't do the same thing as it does in mxml.here is my mostly code example:
MXML:http://www.adobe.com/2006/mxml
" layout="vertical" creationComplete="initApp()">
            import ControlBarInPanel;                private function initApp():void        {            var cbip:ControlBarInPanel = new ControlBarInPanel();            addChild( cbip );
        }    AS3:package{    import mx.containers.Canvas;    import mx.containers.Panel;    import mx.containers.ControlBar;    import 
mx.controls.Button;    import mx.events.FlexEvent;        public class ControlBarInPanel extends Canvas    {        public function ControlBarInPanel()        {            super();            addEventListener( 
FlexEvent.CREATION_COMPLETE, handleCreationComplete );        }                private function handleCreationComplete( event:FlexEvent ):void        {    percentWidth = 100;
            percentHeight = 100;            var tb:Button = new Button();            tb.label = "Test Button in Panel";                        var p:Panel = new Panel();            p.title = "Test Control Bar in Panel";
            var cb:ControlBar = new ControlBar();                        var tb2:Button = new Button();            tb2.label = "Test Button in Control Bar";                        addChild( p );
            p.addChild( tb );            p.addChild( cb );            cb.addChild( tb2 );        }    }}this all works fine, but when the control bar gets added to the panel it is inside of the White content Area in the panel.
Now when I do the same thing but with MXML::
http://www.adobe.com/2006/mxml
" layout="vertical">            
                                
it puts the control bar under the white content area in a panel. what is going on behind the scenes in mxml that is causing the difference??


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] DataGrid labelFunction

2006-09-14 Thread Harish Sivaramakrishnan



Hi Rafael,Can you please add a code snippet here for the problem that you are encountering?ThanksHarishOn 9/13/06, rafael_magalhaes007
 <[EMAIL PROTECTED]> wrote:













  



Hi,

i have a datagrid with N column, 
in this datagrid there's a column in the end that makes the sum of all 
the other columns
this sum is made by the property labelFunction that calls out a 
function created by me to sum the values in the columns

the cells are editable and when i change the values of the first 2 
lines it works fine, but from the thrid line ahead nothing happens 
unless i change the values of the first 2 lines it works fine, but from 
the thrid line ahead nothing happens unless i change the values of 
column 1 or 2 again, then it works and does the Sum.

i want to know how to make it work for every line i change not neding 
to change line 1 and 2 for the other to work..

thanks for your help,
[]´
Rafael


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: adding control bar to panel programitically

2006-09-17 Thread Harish Sivaramakrishnan



You can add the children in any order as long as you call this function at the end of adding all children    createComponentsFromDescriptors ();ThanksHarishPS: This works when you extend from Panel. 
On 9/15/06, aaron smith <[EMAIL PROTECTED]> wrote:













  



hey thanks man. works as expected now. That does make sense that the order of adding children matters.. thanksAaronSmith
On 9/14/06, gustavo.saume
 <[EMAIL PROTECTED]> wrote:














  



Hello aaron,

i had the same problem recently...

you just have to change the order of you components when you add 
them to the panel, as far as i know the controlBar has to be the 
last one to be add in order to be under the white content area of 
the panel, try the following...

p.addChild( tb );
cb.addChild( tb2 );
p.addChild( cb );
addChild( p );  

and ill work fine.

--- In flexcoders@yahoogroups.com, "aaron smith" 

<[EMAIL PROTECTED]> wrote:
>
> I've been just messing around with how to do things through code. 
It seems
> adding a ControlBar to a panel in code doesn't do the same thing 
as it does
> in mxml.
> 
> here is my mostly code example:
> 
> MXML:
> 
> 
> http://www.adobe.com/2006/mxml" 
layout="vertical"
> creationComplete="initApp()">
> 
> import ControlBarInPanel;
> 
> private function initApp():void
> {
> var cbip:ControlBarInPanel = new ControlBarInPanel();
> addChild( cbip );
> }
> 
> 
> 
> AS3:
> 
> package
> {
> import mx.containers.Canvas;
> import mx.containers.Panel;
> import mx.containers.ControlBar;
> import mx.controls.Button;
> import mx.events.FlexEvent;
> 
> public class ControlBarInPanel extends Canvas
> {
> public function ControlBarInPanel()
> {
> super();
> addEventListener( FlexEvent.CREATION_COMPLETE,
> handleCreationComplete );
> }
> 
> private function handleCreationComplete( 
event:FlexEvent ):void
> {
> percentWidth = 100;
> percentHeight = 100;
> var tb:Button = new Button();
> tb.label = "Test Button in Panel";
> 
> var p:Panel = new Panel();
> p.title = "Test Control Bar in Panel";
> 
> var cb:ControlBar = new ControlBar();
> 
> var tb2:Button = new Button();
> tb2.label = "Test Button in Control Bar";
> 
> addChild( p );
> p.addChild( tb );
> p.addChild( cb );
> cb.addChild( tb2 );
> }
> }
> }
> 
> 
> this all works fine, but when the control bar gets added to the 
panel it is
> inside of the White content Area in the panel.
> 
> Now when I do the same thing but with MXML::
> 
> 
> http://www.adobe.com/2006/mxml" 
layout="vertical">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> it puts the control bar under the white content area in a panel.
> 
> 
> 
> 
> what is going on behind the scenes in mxml that is causing the 
difference??
>


  















  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: adding control bar to panel programitically

2006-09-18 Thread Harish Sivaramakrishnan



Calling createComponentsFromDescriptors () would invoke Panel'smethod which adds the ControlBar as the lastChild irrespective of the order in which it is added. Making an explicit call to the method will do the layouting for us.
HTHHarishOn 9/18/06, aaron smith <[EMAIL PROTECTED]> wrote:













  



beautiful, it must update the display?On 9/18/06, Harish Sivaramakrishnan <
[EMAIL PROTECTED]
> wrote:












  



You can add the children in any order as long as you call this function at the end of adding all children    createComponentsFromDescriptors ();ThanksHarishPS: This works when you extend from Panel. 
On 9/15/06, aaron smith <

[EMAIL PROTECTED]> wrote:













  



hey thanks man. works as expected now. That does make sense that the order of adding children matters.. thanksAaronSmith
On 9/14/06, gustavo.saume
 <[EMAIL PROTECTED]> wrote:
















  



Hello aaron,

i had the same problem recently...

you just have to change the order of you components when you add 
them to the panel, as far as i know the controlBar has to be the 
last one to be add in order to be under the white content area of 
the panel, try the following...

p.addChild( tb );
cb.addChild( tb2 );
p.addChild( cb );
addChild( p );  

and ill work fine.

--- In flexcoders@yahoogroups.com, "aaron smith" 

<[EMAIL PROTECTED]> wrote:
>
> I've been just messing around with how to do things through code. 
It seems
> adding a ControlBar to a panel in code doesn't do the same thing 
as it does
> in mxml.
> 
> here is my mostly code example:
> 
> MXML:
> 
> 
> http://www.adobe.com/2006/mxml" 
layout="vertical"
> creationComplete="initApp()">
> 
> import ControlBarInPanel;
> 
> private function initApp():void
> {
> var cbip:ControlBarInPanel = new ControlBarInPanel();
> addChild( cbip );
> }
> 
> 
> 
> AS3:
> 
> package
> {
> import mx.containers.Canvas;
> import mx.containers.Panel;
> import mx.containers.ControlBar;
> import mx.controls.Button;
> import mx.events.FlexEvent;
> 
> public class ControlBarInPanel extends Canvas
> {
> public function ControlBarInPanel()
> {
> super();
> addEventListener( FlexEvent.CREATION_COMPLETE,
> handleCreationComplete );
> }
> 
> private function handleCreationComplete( 
event:FlexEvent ):void
> {
> percentWidth = 100;
> percentHeight = 100;
> var tb:Button = new Button();
> tb.label = "Test Button in Panel";
> 
> var p:Panel = new Panel();
> p.title = "Test Control Bar in Panel";
> 
> var cb:ControlBar = new ControlBar();
> 
> var tb2:Button = new Button();
> tb2.label = "Test Button in Control Bar";
> 
> addChild( p );
> p.addChild( tb );
> p.addChild( cb );
> cb.addChild( tb2 );
> }
> }
> }
> 
> 
> this all works fine, but when the control bar gets added to the 
panel it is
> inside of the White content Area in the panel.
> 
> Now when I do the same thing but with MXML::
> 
> 
> http://www.adobe.com/2006/mxml" 
layout="vertical">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> it puts the control bar under the white content area in a panel.
> 
> 
> 
> 
> what is going on behind the scenes in mxml that is causing the 
difference??
>


  















  















  















  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] remove white content area in TitleWindow?

2006-09-18 Thread Harish Sivaramakrishnan



To get rid of the white contentPane, you need to override the layoutChrome method in your class AddSubscriptionModal.as. however, there is a catch, the layoutchrome triggres off a whole lot of layouting operations, most of them private to get the Panel work the way it should. Overriding the method typically means, we need to take care of all that on our own now! thats the deal :)
HarishOn 9/18/06, aaron smith <[EMAIL PROTECTED]> wrote:













  



is there a way to remove the white content area in a titleWindow? i'm experimenting with drawing the UI myself, and when I draw it then add children to it, it adds that white content area, which I don't want. I tried extending canvas and drawing it that way, but then you can't drag the window around.. 
here is my example code:::mxml::
http://www.adobe.com/2006/mxml
" layout="horizontal" creationComplete="initApp()">            import Startup;                private function initApp():void        {            var st:Startup = new Startup();
        }    Startup.as:::package{        import mx.managers.PopUpManager;    import mx.containers.Canvas;    import mx.core.Application

;    import AddSubscriptionModal;        public class Startup    {            public function Startup()        {            var cn:Canvas = new Canvas();            Application.application.addChild

( cn );            var asm:AddSubscriptionModal = PopUpManager.createPopUp( cn, AddSubscriptionModal, true ) as AddSubscriptionModal;        }    }}AddSubscriptionModal.as:::package

{        import mx.managers.PopUpManager;    import mx.events.CloseEvent;    import mx.events.FlexEvent;    import SelfCenteringTitleWindowPopUp;    import mx.graphics.RectangularDropShadow;    import 
flash.display.*;    import flash.geom.*;        import mx.controls.Button;        public class AddSubscriptionModal extends SelfCenteringTitleWindowPopUp    {                private var dropShadow:RectangularDropShadow;
                public function AddSubscriptionModal()        {            doInit();            addEventListener( CloseEvent.CLOSE, handleCloseModal );            addEventListener( FlexEvent.CREATION_COMPLETE

, haCreationComplete );        }                private function doInit():void        {            title = "test";            showCloseButton = true;            width = 350;            height = 100;
            selfCenter();        }                override protected function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number ):void        {            super.updateDisplayList( unscaledWidth, unscaledHeight );
            graphics.clear();                        //background            var fillType:String = GradientType.LINEAR;            var colors:Array = [0xFFFBC9, 0xFF];            var alphas:Array = [100, 100];
            var ratios:Array = [0x00, 0xFF];            var matr:Matrix = new Matrix();            matr.createGradientBox(width, 20, -60, -50, 50);            var spreadMethod:String = SpreadMethod.PAD;

            this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);              this.graphics.drawRect(0,0,width,height);                        //shadow            if (!dropShadow)
    dropShadow = new RectangularDropShadow();        dropShadow.distance = 3;    dropShadow.angle = 70;    dropShadow.color = 0;    dropShadow.alpha

 = 0.4;    dropShadow.drawShadow(graphics, 0, 0, unscaledWidth, unscaledHeight);            selfCenter();        }                private function haCreationComplete( fe:FlexEvent ):void        {
            var btn:Button = new Button();            btn.label = "TEST";            addChild( btn );        }                private function handleCloseModal( ce:CloseEvent ):void        {
            PopUpManager.removePopUp( this );        }    }}SelfCenteringTitleWindowPopUp.as:::

package
{
    
    import mx.core.Application;
    import mx.containers.TitleWindow;
    import mx.events.FlexEvent;
    import mx.events.ResizeEvent;
    
    /**
    * a class that handles centering itself in the entire application window,
    * does a center when the swf is resized, or when you call selfCenter
    * from one of it's subclassed implementations
    */
    public class SelfCenteringTitleWindowPopUp extends TitleWindow
    {
        
        /**
        * constructor
        */
        public function SelfCenteringTitleWindowPopUp()
        {
            super();
            addEventListener( FlexEvent.CREATION_COMPLETE, handleCreationComplete );
        }
        
        /**
        * when the creation of the TitleWindow is complete, add listener for resize events
        * @param    fe
        */
        protected function handleCreationComplete( fe:FlexEvent ):void
        {
            Application.application.addEventListener( ResizeEvent.RESIZE, selfCenterFromResize );
        }
        
        /**
        * the resize event handler 

Re: [flexcoders] Object of a specified type

2006-09-18 Thread Harish Sivaramakrishnan



use typeof to find the type of an object.ex:var str:Stringtrace(typeof(str) : prints "string"Hope this helpsHarishOn 9/18/06, 
Daniel <[EMAIL PROTECTED]> wrote:













  



How can I konw if an object is an instance of a specified type, for
example String.

Thx!


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] horizontallist editable="true"

2006-09-18 Thread Harish Sivaramakrishnan



Here is a small example for editable TileList using itemRenderers, its a little unpolished, nevertheless will be a good starting point. This could be easly implemented for horizontal list alsoMain.mxml---
http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="setData()">
        
MyText.mxml (itemRenderer)http://www.adobe.com/2006/mxml" width="108" height="104">        
    
    Click on the text to pop a textinput to edit, on enter the value is committed. the focus handling is not completely done.Hope this helpsHarish
On 9/18/06, graysonpierce <[EMAIL PROTECTED]> wrote:













  



Hello,

I was expecing to find a editable="true" on the HorizontalList just
like on a vertical list.  

Are there any work-arounds to being able to edit the text of list
members in a HorizontalList?

Thanks,

Gray


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: How can I block a TabNavigator ?

2006-09-19 Thread Harish Sivaramakrishnan



Okay, Agree with many here that not allowing the tabs to be clickable in a tabNavigator is a little uncommon usecase, I have a solution for the problem. I have extended TabNavigator to make TabNavigatorX, which achieves exactly what the requirement here is . Use the following code:
Main.mxmlhttp://www.adobe.com/2006/mxml" xmlns="*" layout="absolute">    
                
                                        TabNavigatorX.as---
package{    import mx.containers.TabNavigator;    import mx.core.Container;    import mx.controls.TabBar    import flash.events.Event    public class TabNavigatorX extends TabNavigator    {
        public function TabNavigatorX()        {                    }        override protected function createChildren():void        {                        super.createChildren();
    if (!tabBar)            {                tabBar = new TabBar();                tabBar.name = "tabBar";                tabBar.focusEnabled = false;                tabBar.styleName = this;
                    tabBar.setStyle("borderStyle", "none");                tabBar.setStyle("paddingTop", 0);                tabBar.setStyle("paddingBottom", 0);
            }      }      override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void      {              super.updateDisplayList(unscaledWidth,unscaledHeight)              
rawChildren.addChild(tabBar);              tabBar.setStyle("disabledOverlayAlpha",1);              tabBar.setStyle("disabledColor",0x00);            tabBar.enabled=false;           }
          }    }    Hope this helps!ThanksHarish

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: How can I block a TabNavigator ?

2006-09-19 Thread Harish Sivaramakrishnan



PS: Deepa's method will work too, but that would mean the dev needs to write some code on to the main application

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] how to set 1px width image to be a 200width application control bar 's backgroundImage

2006-09-19 Thread Harish Sivaramakrishnan



set the backgroundSize property to 100%, not sure, worth a try!On 9/19/06, saicn <[EMAIL PROTECTED]> wrote:













  



Hello ,everyone:
    I wanna to know how to set 1px width image to be a 200width application control bar 's backgroundImage.

    i'm sorry for my poor english.

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Problem with "memory effect" on datagrid

2006-10-08 Thread Harish Sivaramakrishnan



In case of itemRenderers, when you scroll the renderers are recycled and they dont quite remember their states, one way to get over this problem is to override the public setter data in your itemRenderer codesomething like:
override public function set data( value:Object):void{}Hope this helpsHarishOn 10/9/06, Jesús Iglesias <
[EMAIL PROTECTED]> wrote:












  






I have a datagrid in which I have an itemRenderer 
(a canvas with a text field). Depend on certain value of data, I change the 
background color of the canvas and the text of textfild. The problem comes when 
I have many records and scrollbar appears on datagrid. When scrolling the values 
of this itemrenderer are not updated fine, so I have wrong values. I know Flex 
reuses the itemrenderes, so...How to avoid this 
"memory effect"?
 
Thanks, 
Jesus

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Dynamic DataGrid selectedItem

2006-10-08 Thread Harish Sivaramakrishnan



It is recommended that you query the underlying dataProvider. by doing mydatagrid.dataProvider.getItemAt(mydatagrid.selectedIndices[0]).colName;Generically dginstance.dataProvider.getItemAt(selectedIndex).colName;
In case of having only one selection make the selectedIndex as mydatagrid.selectedIndex;Hope this helpsHarishOn 10/9/06, Hari Kolasani
 <[EMAIL PROTECTED]> wrote:












  



Never Mind. I posted it too soon. I just figured a way to do this:

var:selectedRow = mydatagrid.selectedItems[0];

for (var colName:String in selectedRow ) {
   var colVal = selectedRow[colName]);
   }

Hari Kolasani wrote:
> 
> 
> Hello,
> 
> I have a Dynamic DataGrid (I create DataGrid columns dynamically based
> on the query Results from back-end.).
> 
> Once the datagrid is populated and a row is selected , I can get the
> selectedItem as an object and I can see the values of the columns (in
> FLex Builder debugger).
> 
> But, is there any to retrieve the column values using a dynamic column
> name.
> 
> For e.g something like
> 
> var colName:String = "Customer";
> 
> "mydatagrid.selectedItem.getColumnValue(colName)"
> 
> Insted of ""mydatagrid.selectedItem.Customer"
> 
> 

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Moving Panel's titleIcon programmatically

2006-10-08 Thread Harish Sivaramakrishnan



If you need to access an mx_internal variable in your subclass , add the following likes to your code:import mx.core.mx_internal;use namespace mx_internal;After doing this, you can access all variables marked mx_internal in  your subclass
Hope this helpsHarishOn 10/6/06, Ralph Hauwert <[EMAIL PROTECTED]> wrote:













  



Hi All,

We're kind of looking at the best practices in moving the titleIcon
outside of the boundaries of a panel, to the left. titleIconObject in
the Panel class is marked mx_internal.
Currently we are extending the panel object using the code behind
practice, and we think we'd move it there; this can't work, since we
can't touch the titleIconObject from a subclass.

Any suggestions ?

-- 
Ralph Hauwert
FlashCoder

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Variable Row Height?

2006-10-08 Thread Harish Sivaramakrishnan



By setting variableRowheight you can indeed have a list with multiple rowHeights. But there is a catch, this is done internally by the component by calculating the size of the child that is placed within a row of the List. That way you cannot directly set a different rowHeight to one of the rows of a List, unless you sublclass a list and override the variableRowHeight calculation with some new setters which would help you achieve what you want.
ThanksHarishOn 10/6/06, Steve Kellogg @ Project SOC <[EMAIL PROTECTED]> wrote:













  











Hello,

 

Perhaps I'm poorly understanding something in the
DOX.  Can anyone help me understand?

 

 

The docs mention that things like TileLists and Trees can
have VARIABLE ROW Height.

 

Do I correctly assume that this means that I can have MULTIPLE ROW HEIGHTS
in a single list at the same time?

 

If so, how do I set the height of a specific row in a Tile
List?

 

 

Best Regards,

 

 

Steve

 

 

Steve
Kellogg

Peak8
Solutions

1401 14th Street

Boulder, Colorado


80302, USA

Fax:
303.415.2597

E-Mail:
[EMAIL PROTECTED]

 







  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: Missing the ControlBar on my panel...

2006-10-08 Thread Harish Sivaramakrishnan



Alternatively, you can call createComponentsFromDescriptors(); after adding the controlBar as the child, by doing this we do not need to bother about the order in which the children are added to the base container.
ThanksHarishOn 10/6/06, Mark <[EMAIL PROTECTED]> wrote:













  



Thanks Dan.

mark

--- In flexcoders@yahoogroups.com, "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
>
> controlBar does not seem to be automatically added as a child within the
> Panel class.  You need to do it explicitly at the end of
createChildren().
> And as a preemptive reminded, make sure controlBar is the last child
added
> if you want it docked.
> 
> - Dan
> 
> On 10/6/06, Mark <[EMAIL PROTECTED]> wrote:
> >
> > I've extended Panel and based on numerous post here on FlexCoders I
> > believe I've added the ControlBar correctly, but it just doesn't
> > appear.  Here is my very simple example:
> >
> > package com.mh.controls
> > {
> > import mx.containers.Panel;
> > import mx.containers.ControlBar;
> > import mx.controls.Label;
> > import mx.controls.CheckBox;
> >
> > public class TestPanel extends Panel
> > {
> > public function TestPanel()
> > {
> > super();
> > title = "testing";
> > }
> >
> > protected override function createChildren():void
> > {
> > super.createChildren();
> >
> > controlBar = new ControlBar();
> >
> > var lbl:Label = new Label();
> > lbl.text = "testing ctrl bar";
> > ControlBar(controlBar).addChild(lbl);
> >
> > var chkBox:CheckBox = new CheckBox();
> > ControlBar(controlBar).addChild(chkBox);
> >
> > createComponentsFromDescriptors();
> > }
> >
> > }
> > }
> >
> > The end result is a panel, but with no control bar.  The interesting
> > thing is that if I didn't call createComponentsFromDescriptors at the
> > end, the bottom of the panel would have no padding.
> >
> > Thanks in advance for any help!
> >
> > mark
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] update cellrenderer on dataprovider change

2006-10-08 Thread Harish Sivaramakrishnan



override public setter data in your itemRenderer, each time ur data changes the itemRenderers will be forced to redraw, if you dont, they wont redraw!you need to do something like this:override public set data(value:Object):void
{}ThanksHarishOn 10/5/06, rmlsystem <[EMAIL PROTECTED]> wrote:













  



I have a datagrid with a checkBox cellrenderer in a column, i can
select some checkboxes if i change the dataprovider, but if i manually
check one or more checkboxes they still checked.

Is there a way to select the checkboxes from outside de datagrid, or
refresh all cellrenderers?


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: image display, display certain portion of a image

2006-10-08 Thread Harish Sivaramakrishnan



Did you try using the scaleContent property of the image? I guess that should solve your problem directlyThanksHarishOn 10/7/06, Willy Ci <
[EMAIL PROTECTED]> wrote:












  



thanks, I will try your way over the long weekend!WillyOn 10/6/06, Tim Hoff
 <[EMAIL PROTECTED]> wrote:













  



Hi Willy,

If this was Flash, you would just place a mask over the image.  In 
Flex, you can emulate this by placing the image inside a container 
that uses absolute positioning.


verticalScrollPolicy="off" 
horizontalScrollPolicy="off">



-TH

--- In flexcoders@yahoogroups.com, "Willy Ci" <[EMAIL PROTECTED]> wrote:
>
> hi
> 
> is there a way to display certain portion of a image using the 
image control
> 
> let;s say my large_image.jpg is 400x400, but my image box is only 
100x100,
> 
> is there a way to display part of the image from 200 to 300?
> 
> thanks ahead
> 
> 
> 
> -- 
> Willy
> 
> --
---
> maybe today is a good day to write some code,
> hold on, late me take a nap first  ... Zzzz
> --
---
>


  













-- Willy--maybe today is a good day to write some code,hold on, late me take a nap first  ... Zzzz
--

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Manipulating data before it populates the DataGrid

2006-10-15 Thread Harish Sivaramakrishnan



I suggest you take a look at the fiterFunction and labelFunction methods on the datagrid. Since the datagrid dataprovider is an arraycollection, you can apply all utilities that are available on the arraycollection class to manipulate what you display in the datagrid finally
HarishOn 10/16/06, Aaron West <[EMAIL PROTECTED]> wrote:













  



If you're using an ArrayCollection to populate your grid you could 
always
edit/adjust or otherwise manipulate the data in your event handler. For
instance, if you're using Web services, you can loop the data coming 
from
the server and manipulate it as you add it into your ArrayCollection.
Or, as suggested you can just use formatters to change *only* the 
display
of specific columns w/o affecting the actual data.

|  Aaron West
|  aaron AT trajiklyhip DOT com
|  http://www.trajiklyhip.com/blog/
|  Certified Advanced Adobe ColdFusion MX 7 Developer
|  Certified Macromedia FlashMX Developer
|  Adobe Community Expert

On Oct 14, 2006, at 10:23 PM, iko_knyphausen wrote:

>
> Hi,
>
> what would be the best way to inspect and possibly manipulate data that
> gets populated into a DataGrid via data binding? This could be used to
> filter data, transform values, compute calculated fields etc.
>
> Is there a hook similar to the itemRenderer (which you could even
> 'abuse' for this, I guess)? An event that gets fired per record while
> populating? Obviously I am new to Flex, so forgive if I have overlooked
> the obvious.
>
> Thanks much
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: DataGrid HeaderRenderer and DataProvider

2006-10-15 Thread Harish Sivaramakrishnan



Creating varying number of datagrid columns is fairly straightforward. Datagrid will by itself draw the columns if you do  not specify the  in your code. The columns will be created according to the properties that each dataProvider object contains. For displaying an icon on the header, you will have to extend the datagrid control and do some tweaks.
ThanksOn 10/16/06, Aaron West <[EMAIL PROTECTED]> wrote:













  



No problem jelentz, check out the link I've provided below. While you
are looking to dynamically set the dataProvider of a DataGrid the 
content
of the article discusses a ComboBox.  The takeaway from the article is
how to create your own custom DataGrid class (by extending DataGrid)
and then writing the appropriate code to manipulate the dataProvider.
The article does a good job explain this.

http://thesourcecode.org/?p=15

Let me know if you have questions (note, I didn't write the article.)

|  Aaron West
|  aaron AT trajiklyhip DOT com
|  http://www.trajiklyhip.com/blog/
|  Certified Advanced Adobe ColdFusion MX 7 Developer
|  Certified Macromedia FlashMX Developer
|  Adobe Community Expert

On Oct 14, 2006, at 12:20 PM, jlentz2112 wrote:

> Thanks for the reply, but unfortunately I don't follow all of it.  I'm
> new to Flex, so could you please explain more?  I get the AS3
> extending DataGrid.  How can you dynamically set the dataProvider to
> pass in info to the headerRenderer?  A small snippet of code would be
> greatly appreciated.
>
> Thanks again,
> jelentz
> --- In flexcoders@yahoogroups.com, Aaron West <[EMAIL PROTECTED]> wrote:
>>
>> jelentz,
>>
>> Based on my limited experience I would suggest creating a custom
>> AS3 class that extends DataGrid.  You can then dynamically set the
>> dataProvider, loop through whatever part of the data provider you
>> need, and based on the values therein create the number of
>> data grid columns you need.
>>
>>
>> |  Aaron West
>> |  aaron AT trajiklyhip DOT com
>> |  http://www.trajiklyhip.com/blog/
>> |  Certified Advanced Adobe ColdFusion MX 7 Developer
>> |  Certified Macromedia FlashMX Developer
>> |  Adobe Community Expert
>>
>>
>> On Oct 13, 2006, at 8:40 PM, jlentz2112 wrote:
>>
>>> Hi,
>>>
>>> I've got an app where I need a DataGrid that will have a varying
>>> number of columns based on the value from a database query.  I also
>>> need to be able to have each column header display a couple of images
>>> and the text provided by the database query.  Is there a way to use a
>>> dataprovider to   create a varying number of columns, and to use the
>>> dataprovider to pass in images and text?  I've looked for examples 
>>> and
>>> haven't had much luck finding any that I could follow.  A simplified
>>> explanation would be greatly appreciated.
>>>
>>> Thank you,
>>>
>>> jelentz
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Flexcoders Mailing List
>>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

>>> Search Archives:
>>> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] how to convert string to number

2006-10-16 Thread Harish Sivaramakrishnan



you can do one of these:Number(textinput.text)ORparseInt(textinput.text)On 10/16/06, Impudent1 <
[EMAIL PROTECTED]> wrote:Akash wrote:> Hi,  I am new to flex 
1.5. I searched a lot for this conversion> but didn't get anything helpful. Actually I am accepting  text from the> TextInput which accepts only the number. So I want to convert it to the> number but how to do it in flex?
blah.text = Number(blah.text);Impudent1LeapFrog Productions--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
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:mailto:
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Manipulating data before it populates the DataGrid

2006-10-16 Thread Harish Sivaramakrishnan



my bad, I should have said Collection. You are right - Having said that, you still can use the utilities on the collections to manipulate the data on the datagrid before the actual population.ThanksHarish
On 10/16/06, Douglas Knudsen <[EMAIL PROTECTED]> wrote:













  



'Since the datagrid dataprovider is an arraycollection'I don't mean to pick at this statement, but I was browsing through the source for DataGrid today, glutton for punishment I know.  The code trail eventually leads to 
ListBase.as.  In the dataProvider setter it appears that this is not always the case.  If you pass a Array or ArrayCollection as a dataProvider, then yes.  But if you pass it XML the dataProvider is actually a XMLListCollection for example.  Anyhow, the dataProvider is always converted to some sort of collection though.
DKOn 10/16/06, Harish Sivaramakrishnan <
[EMAIL PROTECTED]> wrote:



I suggest you take a look at the fiterFunction and labelFunction methods on the datagrid. Since the datagrid dataprovider is an arraycollection, you can apply all utilities that are available on the arraycollection class to manipulate what you display in the datagrid finally
HarishOn 10/16/06, Aaron West <

[EMAIL PROTECTED]> wrote:













  



If you're using an ArrayCollection to populate your grid you could 
always
edit/adjust or otherwise manipulate the data in your event handler. For
instance, if you're using Web services, you can loop the data coming 
from
the server and manipulate it as you add it into your ArrayCollection.
Or, as suggested you can just use formatters to change *only* the 
display
of specific columns w/o affecting the actual data.

|  Aaron West
|  aaron AT trajiklyhip DOT com
|  http://www.trajiklyhip.com/blog/
|  Certified Advanced Adobe ColdFusion MX 7 Developer
|  Certified Macromedia FlashMX Developer
|  Adobe Community Expert

On Oct 14, 2006, at 10:23 PM, iko_knyphausen wrote:

>
> Hi,
>
> what would be the best way to inspect and possibly manipulate data that
> gets populated into a DataGrid via data binding? This could be used to
> filter data, transform values, compute calculated fields etc.
>
> Is there a hook similar to the itemRenderer (which you could even
> 'abuse' for this, I guess)? An event that gets fired per record while
> populating? Obviously I am new to Flex, so forgive if I have overlooked
> the obvious.
>
> Thanks much
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


  


















-- Douglas Knudsenhttp://www.cubicleman.com
this is my signature, like it?

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Multi line Checkbox component has black border around label text

2006-10-16 Thread Harish Sivaramakrishnan



in the createChildren method,  try making textField.border=false; that might solve the issue. I am guessing, I havent tried it myself.On 10/16/06, Wally Randall
 <[EMAIL PROTECTED]> wrote:













  



A while ago Darron Schall posted this component for extending the
CheckBox to permit multiple lines.  It works great.  I have used this
method to do the same feature with RadioButtons.  However, the
resulting box places a black border around the label text.

How can I remove that black border?

This is Darron's component

package
{
import mx.controls.CheckBox;
import flash.text.TextFieldAutoSize;

public class MultiLineCheckBox extends CheckBox
{
public function MultiLineCheckBox()
{
super();

callLater( measure );
}

override protected function createChildren():void
{
super.createChildren();
textField.wordWrap = true;
textField.autoSize = TextFieldAutoSize.LEFT;
textField.border = true;
}

override protected function measure():void
{
super.measure();
// Make sure the text field has measured itself
if ( textField.height > 4 )
{
measuredMinHeight = minHeight = textField.height;
}
}
}
}


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: Multiline ComboBox

2006-10-18 Thread Harish Sivaramakrishnan



If you need to use a combobox and not a popupButton, you can set the dropDownFactory of a combobox to a List with variableRowHeight and wordWrap turned on. That will work too.ThanksHarish
On 10/17/06, Michael <[EMAIL PROTECTED]> wrote:













  













Thank you Mike, that helps, and saves a
lot of time trying to force the combobox to do something that was not made to
do.

 

Michael

 









From:
[EMAIL PROTECTED]ups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Michael Labriola
Sent: Monday, October 16, 2006
3:21 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re:
Multiline ComboBox



 








Michael,

Problem is that ComboBase uses a textInput control to display the
currently selected item. The TextInput is limited to displaying a
single line of text.

You could certianly change this, but, it seems as though it will
require extending ComboBox, not just making an itemRenderer.

--Mike

--- In flexcoders@yahoogroups.com,
"Michael" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know how I can get my combobox to display 2 lines as
opposed to
> only one line. I can display 2 lines in the dropdown area, but not
in the
> main combobox display.
> 
> 
> 
> Here is what I have so far:
> 
> 
> 
> public function initRenderer():void
> 
> {
> 
> var myRenderer:ClassFactory = new ClassFactory(mx.controls.Text);
> 
> myRenderer.properties = {maxHeight:60};
> 
> this.cb.itemRenderer = myRenderer;
> 
> }
> 
> 
> 
> 
> 
> dataProvider="{cbData}"
> 
> labelField="{cbLabelField}"
> 
> selectedIndex="{getSelectedIndex()}"
> 
> change="comboBoxChange(cb.selectedItem)"/>
> 
> 
> 
> Thanks in advance,
> 
> 
> 
> Michael
>










  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Datagrid Drag Row

2006-10-18 Thread Harish Sivaramakrishnan



I dint understand your problem completely, a code snippet would help! In the meanwhile, did u set the dragMoveEnabled property to true?ThanksHarishOn 10/17/06, 
KP <[EMAIL PROTECTED]> wrote:













  











Hi All,

 

I have a datagrid which contains around ten rows I have drag
enabled on datagrid and due to which I am able to drag corresponding rows.

What should I do to remove particular row on to which I am
dropping my current row which is selected.

 

Thanks

Kumar







  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] Re: Mouse Move Issue in Tree Control

2008-10-15 Thread Harish Sivaramakrishnan
user rollOverColor =  - Look up the tree
documentation u will get to know all properties.

On Wed, Oct 15, 2008 at 3:07 PM, selvant_2005 <[EMAIL PROTECTED]>wrote:

>   --- In flexcoders@yahoogroups.com , Flex
> Gangsta <[EMAIL PROTECTED]> wrote:
> >
> > You can change it by creating a CSS file for the tree control.
> >
> > Sent from my iPhone
> >
> > On Oct 10, 2008, at 4:47 AM, "selvant_2005" <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi,
> > > When i Move the Mouse Over the Tree Nodes by Default that Blue Colour
> > > is Coming ,I dont Want that Colour,
> > > If anybody Know How to change the clour
> > >
> > > Plese Tell Me
> > >
> > > Regards ,
> > >
> > > T.Selvan
> > >
> > >
> >Plese give that css file
>
>  
>


[flexcoders] Adobe RIA Architect Summit 2008 - 03 April - Bangalore, India

2008-03-14 Thread Harish Sivaramakrishnan
It's summit time again folks ! You might recollect the RIA Leadership
Summitthat
happened when Shantanu was in Bangalore, which saw industry leaders
from various IT Companies from across India attended the talk about Adobe's
vision and plans for the Rich Internet Application space. Since then, the
India RIA scene has been more dynamic than ever and there has been an
increasing demand for insights into architecture & design principles around
RIAs. As an acknowledgment to this Adobe brings "*The RIA Architect Summit*".


*What is in it for me?: *

   - Hear *Naresh Gupta* (MD, Adobe India), *David Wadhwani* (VP,
   Platform BU, Adobe) share the exciting future of RIAs using Flex & AIR
   - Meet acclaimed evangelists *James Ward* & *Ben Forta *
   - Hear about the success stories of leading IT Enterprises who have
   adopted Flex & AIR.
   - Experience RIAs built on Adobe platforms and hear from the teams
   that built them

*Who should attend ? :*

Architects, Technical Managers and Strategic Decision Makers

*When & Where? :*

Date : 03 April '08

Venue : The Chancery Pavillion, Bangalore

*How do I get in?: *

Register ASAP at http://adoberiarch.eventbrite.com/

Hurry! Registrations on a First Come First Serve basis…


Re: [flexcoders] Effect works on addPopUp, but not on removePopUp

2009-04-29 Thread Harish Sivaramakrishnan
may be you can try listening to the effectEnd event of the customPopClose
and then remove the popUp.

On Wed, Apr 29, 2009 at 12:58 AM, Tracy Spratt  wrote:

>
>
>  I want to apply a resize and move effect to a popup component, and “
> reverse” the effect when the popup is closed.  The effect works when I open
> the popup but not when I remove it.  Below are the snippets of relevant
> code.  Any suggestions will be welcome.
>
>  *** private function* showCCV():***void*
>
>   {
>
> _twCCV =*** new* ImageMapCCV();
>
> _twCCV.height = imgCCV.height;
>
> _twCCV.x = 190
>
> _twCCV.y = 455;
>
> _twCCV.addEventListener(***"rollOut"*,onRollOut);
>
> PopUpManager.addPopUp(_twCCV,***this*,***false*);
>
> customPop.end();WORKS FINE
>
> customPop.play();
>
>   }***//showCCV*
>
>
>
>
>
>  *** private function* onRollOut(event:Event):***void*
>
>   {
>
> customPopClose.end();   DOES NOT WORK
>
> customPopClose.play();
>
> PopUpManager.removePopUp(_twCCV);
>
>   }***//onRollOut*
>
>
>
> …
>
>   
>
> 
>
> 
> xTo="160"
>
> yTo="300" />
>
>   
>
>   
>
> 
>
> 
> xTo="190"
>
> yTo="455" />
>
>   
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
>  
>


Re: [flexcoders] Launch Failed

2009-05-08 Thread Harish Sivaramakrishnan
are you on Flex Builder 3 using Spark components?

On Fri, May 8, 2009 at 7:04 AM, markgoldin_2000
wrote:

>
>
> I am trying a simlpe Flex 4 application found in the Web:
> 
>  xmlns="http://ns.adobe.com/mxml/2009";
> xmlns:fx="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/halo">
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
>
> It compiles but does not start.
> Launch Failed
> File not found
> Path to an html wrapper
>
> What's wrong here?
>
> Thansk
>
>  
>


Re: [flexcoders] Swap Data Provider with a combo

2009-05-24 Thread Harish Sivaramakrishnan
put an if condition which checks for combobox.selectedItem and change the
dataProvider accordingly.

On Sun, May 24, 2009 at 3:08 PM, christophe_jacquelin <
christophe_jacque...@yahoo.fr> wrote:

>
>
> Hello,
>
> I have a combo with two items. For each Item I want to have a specific data
> provider for a tile list. How to swap the data provider of a tile list.
>
> Thank you,
> Christophe
>
>  
>


Re: [flexcoders] Label a Button just like Flex Builder helps

2009-06-12 Thread Harish Sivaramakrishnan
just curious, why can't you use removeChildAt()?

On Fri, Jun 12, 2009 at 11:58 AM, chandruflex  wrote:

>
>
> In my application, I have a Button. I want to double-click this Button, and
> edit its label, just like we do in Flex Builder.
>
> To do this, I have a double-click event-handler for my Button. In this
> event-handler, I have written code to create a TextInput control (in
> ActionScript). I have specified an enter-event-handler for this TextInput
> control. In the enter-event-handler of the TextInput control, I assign the
> typed-in Text to my Button control. I have to remove the TextInput control
> now. Here is where I have a problem. I want to remove this TextInput
> control, which has been created dynamically using ActionScript, only using
> "removeChild()" and not using "removeChildAt()".
>
> I get an error "Cannot access a property or method of a null object
> reference", when using the "removeChild()" to remove the TextInput control.
>
> I would like to know, how I can remove this TextInput control, that I have
> created using ActionScript.
>
>  
>


Re: [flexcoders] Read Items / Loop Through Datagrid Rows

2009-06-12 Thread Harish Sivaramakrishnan
use the itemEditEnd event on the DataGrid to get the value you entered in
the TextInputs. (It is fired when you tab out or change focus from rows.)

Harish

On Fri, Jun 12, 2009 at 5:25 AM, Angelo Anolin wrote:

>
>
> Hi,
>
> Would you care to share some codes of what you did previously?
> Thanks.
>
> Regards,
>
> Angelo
>
>
>
>  --
> *From:* Everson Alves 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Friday, 12 June, 2009 5:47:27
> *Subject:* Re: [flexcoders] Read Items / Loop Through Datagrid Rows
>
>  Hi,
>  I did something quite similar but using List + renderer manually added
> instead. The custom line renderer dispatches events when edited so I can
> save the values, remove or add new lines, block the others rows etc. My
> previous implementation was using datagrid like you is trying but this new
> approach is better for me, I've far more control over what I can do.
>
> On Thu, Jun 11, 2009 at 10:12 AM, Angelo Anolin  yahoo.com
> > wrote:
>
>>
>>
>>
>> Hi FlexCoders,
>>
>> I am dynamically creating a datagrid with 5 columns and 10 rows.  Columns
>> 2, 3, 4 and 5 are all rendered as textinput control where user can enter
>> some information.
>>
>> How do I loop through all the datagrid rows and store the values entered
>> in the datagrid into an array collection?
>>
>> Been trying to find some nice examples to achieve this but came up empty
>> handed. Would appreciate your inputs.
>>
>> By the way, I'd also like to ensure that no rows would be skipped by the
>> user when filling up the datagrid (i.e. He could only populate row 1 before
>> he can populate row 2 and so forth).  That way, when the array collection
>> stores the values of the datagrid, there is no blank or null value.  The
>> remaining blank rows would simply be ignored in the loop.
>>
>> Thanks.
>>
>> Regards,
>>
>> Angelo
>>
>>
>>
>>
>
>
> --
> Jhonny Everson
>
>  
>


Re: [flexcoders] Re: Label a Button just like Flex Builder helps

2009-06-12 Thread Harish Sivaramakrishnan
While you add the child (TextInput) , make a dictionary to track the
childIndex or even better the instance itself and bump it off once you
complete the editing

Harish

On Fri, Jun 12, 2009 at 6:06 PM, chandruflex  wrote:

>
>
> Ok, I can use removeChildAt() for the question that I have asked. Actually
> I had to think about the next step. In my application, I will have a lot of
> other components (both statically and dynamically created). One or many of
> those dynamically created components may be Button components.
>
>
> --- In flexcoders@yahoogroups.com , Harish
> Sivaramakrishnan  wrote:
> >
> > just curious, why can't you use removeChildAt()?
> >
> > On Fri, Jun 12, 2009 at 11:58 AM, chandruflex  wrote:
> >
> > >
> > >
> > > In my application, I have a Button. I want to double-click this Button,
> and
> > > edit its label, just like we do in Flex Builder.
> > >
> > > To do this, I have a double-click event-handler for my Button. In this
> > > event-handler, I have written code to create a TextInput control (in
> > > ActionScript). I have specified an enter-event-handler for this
> TextInput
> > > control. In the enter-event-handler of the TextInput control, I assign
> the
> > > typed-in Text to my Button control. I have to remove the TextInput
> control
> > > now. Here is where I have a problem. I want to remove this TextInput
> > > control, which has been created dynamically using ActionScript, only
> using
> > > "removeChild()" and not using "removeChildAt()".
> > >
> > > I get an error "Cannot access a property or method of a null object
> > > reference", when using the "removeChild()" to remove the TextInput
> control.
> > >
> > > I would like to know, how I can remove this TextInput control, that I
> have
> > > created using ActionScript.
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Sample of carousel menu navigation with button.

2009-06-17 Thread Harish Sivaramakrishnan
Hi Krunal:

This is a simple engineering problem. Solve it just the way you would in any
of your other languages.

Put your buttons in a canvas and increment / decrement the
horizontalScrollPosition on click of next_btn and prev_btn (that could be
one of the ways, there are gazillion others!)


Cheers
Harish

On Tue, Jun 16, 2009 at 9:56 AM, Krunal Panchal wrote:

>
>
>  Hi All,
>
>
> Following is my carousel menu.
>
> *Menu Bar*
> **
> *
> 
> *
> *Prev_btn*Btn_HomeBtn_ProcessBtn_Advance*Next_btn*
> *
> 
> *
> **
> Other Menu are Btn_ContactsUs, Btn_AboutUs.
> **
> **
> *Prev_btn *and *Next_btn *is my navigation buttons. When i cliked on *Next_btn
> *first button ( Btn_Home) should disapearred* *and Btn_ContactsUs* *menu
> added at the end of Btn_Advance*.* After cliked on *Prev_btn*, Last button
> will disappeared and first button should appeared.
>
> if anybody have sample or link of sample +++pls send me.
>
> *Thanks in Advanced.*
>
>*  Regards,
>   --
>
> Krunal Panchal | Senior Software Engineer
>
> Tel 91.98795 80689 | * panchal_...@yahoo.com
> *
>
>  
>


Re: [flexcoders] URLStream, RMTP, ByteArray?

2009-06-17 Thread Harish Sivaramakrishnan
The whole purpose of keeping it streaming is that you SHOULD NOT be able to
rip it using your client. I cannot think of a legal, straightforward way.

Cheers
Harish

On Wed, Jun 17, 2009 at 7:56 PM, Berkay Unal  wrote:

>
>
> Hi Coders,
>
> I am able to record,capture a video or an audio to desktop with AIR using
> URLStream, and byteArray. It works np.
>
> In the project client ask me to record the streaming video to desktop while
> the video is streaming. Been trying to use URLStream over RMTP but as can be
> thought it does not work? Any thoughts to achieve this?
>
> Best,
>
> Berkay UNAL
> www.berkayunal.com
> berkayu...@gmail.com
>  
>


Re: [flexcoders] How to pull youtube into a custom Flash/Flex Video Player [1 Attachment]

2009-06-17 Thread Harish Sivaramakrishnan
Google does not give you direct access to the video source through their
APIs. You will need to scrap (steal) that Information from the youtube page.
I had written a class which does it for some testing purposes. I have
attached the source in this mail. But AFAIK, its illegal to scrap
information from their site.

You can take a look at the attached code to get an idea. Again, use it at
your own risk :)

Cheers
Harish

On Wed, Jun 17, 2009 at 9:03 PM, Wally Kolcz  wrote:

>
>
> I found the docs from Google on how to query the user's information, but
> what element do you use as the source for the video player?
>  
>


Re: [flexcoders] Re: Flying text or passing text??

2009-06-17 Thread Harish Sivaramakrishnan
Joan Lafferty has a nice implementation of a marquee in her blog -
http://butterfliesandbugs.wordpress.com/2007/09/06/marquee-component/

On Wed, Jun 17, 2009 at 6:56 PM, valdhor wrote:

>
>
> AFAIK it is called a ticker. There are many examples available. Try a
> Google search. Here are a couple to start you off...
>
> http://dreamwagon.com/blog/?p=7
>
> http://dave.needlz.nl/index.php/2009/ticker/
>
>
> --- In flexcoders@yahoogroups.com , "hworke"
>  wrote:
> >
> >
> >
> > Hi, I am trying to create an effect using
> > text. I do not know what to call it - flying
> > text or passing text!! At the bottom of
> > the TV screen we always see Headline news
> > or stock market info text are moving from
> > right to left - I want to do something like
> > that. What is the best option for me?
> >
> > Regards..
> >
>
>  
>


Re: [flexcoders] Re: Binding two elements in a single datagrid column

2009-06-17 Thread Harish Sivaramakrishnan
Listen to the change event / enter event on the NumericSteppers and dispatch
an event to update the DataProvider with the new values. Once you override
the itemRenderer with a custom Renderer, you need to handle the commit of
values back to the DataProvider.

You can do something similar to this. Please note that this is NOT exact
code, but you could use this approach.

nsOutwardAgeYear.addEventListener("change" onnsOutwardChange);

private function onnsOutwardChange(event:Event):void
{
  dispatchEvent(new CustomEvent("valueChanged", (event.target as
NumericStepper).value);
}

*The custom event can have an extra property that holds the value of the
Stepper.*

*In your main app, add a listener to your DataGrid*

dg.addEventListener(CustomEvent.VALUE_CHANGED, onvalueChanged);

private function onvalueChanged(event:CustomEvent):void
{
   var selectedObject:Object = datagrid.selectedItem
   selectedObject.Age = event.value;
   (datagrid.dataProvider as ArrayCollection).setItemAt(selectedObject,
datagrid.selectedIndex)
}

Hope this helps!

Cheers
Harish

http://blog.flexgeek.in

On Wed, Jun 17, 2009 at 6:28 PM, valdhor wrote:

>
>
> I thought that was the idea.
>
> In the example, I wanted a new NumericStepper for each data item (Actually
> two new NumericSteppers). If createChildren only runs once, how would you
> get the required output? In other words, can you post your version of the
> example using createChildren ?
>
>
> --- In flexcoders@yahoogroups.com , "Tim
> Hoff"  wrote:
> >
> >
> > Yes, createChildren will only execute once; while set data will execute
> > many times. Perhaps it's not a problem if the same child gets added to
> > the display list everytime that the data is set. But usually, you only
> > need to add them once.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com ,
> "valdhor"  wrote:
> > >
> > > I use addChild in the set data function only because I always have.
> > >
> > > I have built hundreds of renderers this way and none of them have
> > given me a problem. If there's a good reason why I shouldn't do it this
> > way, I'm all ears.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com , "Tim
> Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > I'm with you Steve; about using AS for an itemRenderer. I do wonder
> > why
> > > > you would use addChild in the set data function though; rather than
> > in
> > > > createChildren . For mxml, this should work Angelo:
> > > >
> > > > 
> > > > 
> > > >  > > > width="100%" horizontalScrollPolicy="off"
> > verticalScrollPolicy="off">
> > > >  > > > textAlign="center"/>
> > > >  > > > textAlign="center"/>
> > > > 
> > > > 
> > > > 
> > > >
> > > > For the HBox, notice the use of horizontalGap, instead of a spacer
> > as
> > > > well. Just cleans it up a bit.
> > > >
> > > > Cheers,
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> "valdhor"  wrote:
> > > > >
> > > > > This is probably possible in MXML but I prefer to write my item
> > > > > renderers in ActionScript...
> > > > >
> > > > > main.mxml:
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > > layout="absolute">
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  > > > > itemRenderer="NumericStepperRenderer"/>
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > NumericStepperRenderer.as:
> > > > > package
> > > > > {
> > > > > import mx.containers.HBox;
> > > > > import mx.controls.NumericStepper;
> > > > >
> > > > > public class NumericStepperRenderer extends HBox
> > > > > {
> > > > > private var nsOutwardAgeYear:NumericStepper = new
> > > > > NumericStepper();
> > > > > private var nsOutwardAgeMonths:NumericStepper = new
> > > > > NumericStepper();
> > > > >
> > > > > public function NumericStepperRenderer()
> > > > > {
> > > > > super();
> > > > > nsOutwardAgeYear.minimum = 0;
> > > > > nsOutwardAgeMonths.minimum = 0;
> > > > > nsOutwardAgeYear.maximum = 200;
> > > > > nsOutwardAgeMonths.maximum = 200;
> > > > > nsOutwardAgeYear.stepSize = 1;
> > > > > nsOutwardAgeMonths.stepSize = 1;
> > > > > nsOutwardAgeYear.width = 50;
> > > > > nsOutwardAgeMonths.width = 50;
> > > > > nsOutwardAgeYear.setStyle("textAlign", "center");
> > > > > nsOutwardAgeMonths.setStyle("textAlign", "center");
> > > > > }
> > > > >
> > > > > override public function set data(value:Object):void
> > > > > {
> > > > > super.data = value;
> > > > > if(value != null)
> > > > > {
> > > > > nsOutwardAgeYear.value = value.Age;
> > > > > nsOutwardAgeMonths.value = value.Months;
> > > > > addChild(nsOutwardAgeMonths);
> > > > > addChild(nsOutwardAgeYear);
> > > > > }
> > > > > }
> > > > > }
> > > > > }
> > > > >
> > > > > I will leave it as an exercise for the reader how to add an event
> > > > > listener for the change event.
> > > > >
> > > > >
> > > > > HTH
> > > > >
> > > > >
> > > > >
> > > > > Steve
> > > > >
> > > > > --- In flexcoders@yahoogroups.com ,
> Angelo Anolin angelo_anolin@
> > > > > wrote:
> > > > > >
> > > > > > Hi FlexCoders,
> > > > > >
> > > > > > I have a datag

Re: [flexcoders] MXML draw dashed line between two text box

2009-06-17 Thread Harish Sivaramakrishnan
You can style the HRule Component to draw a dashed / dotted line or even
change the skin of the HRule component by overriding the programmatic skin
that is drawn by default.

Cheers
Harish

On Wed, Jun 17, 2009 at 5:56 AM, ram_yohi  wrote:

>
>
> Hi,
>
> I need some information.
>
> I have to draw on "dashed separator line" in FLEX.
>
> What code can help to put it in to MXML file.
>
> In the Picture you can see the dashed line in-between Radio Button and
> Search Button.
>
> I have to design like.
>
> I do not know what Code is for that to draw dashed line in MXML.
>
> Thanks,
>
> Ramesh
>
>  
>


Re: [flexcoders] Re: Radio Button in DataGrid urgent Plz

2009-06-22 Thread Harish Sivaramakrishnan
Use a boolean property (ex: selected) in the dataProvider Object and bind
the CheckBox in the itemRenderer's 'selected' property to {data.selected}

Cheers
Harish

On Sun, Jun 21, 2009 at 12:37 PM, vin.flex  wrote:

>
>
>
> Thanks for your response Harui.
>
> I have tried your checkbox renderer. I want to preselect a checkbox
> depending on the value of a field in my dataprovider.
>
> Can you help me how can I bind the check box to a field in my dataprovider?
>
> thanks
> vin
>
>
> --- In flexcoders@yahoogroups.com ,
> "vin.flex"  wrote:
> >
> > Hi there,
> >
> > I had requirment for having radio button for one of the column in
> Datagrid and the user should be able to select only one row radiobutton.
> >
> > I have used item renderer and assigned it to a RadioButton Group. But I
> got scrolling issues and also I was unable to preselect one row(which is
> required).
> >
> > Can any body help me and share the code if you have .
> >
> > Thanks in advance
> >
> > vin
> >
>
>  
>


[flexcoders] colrful desktop - Air App to search based on color

2009-01-28 Thread Harish Sivaramakrishnan
Hi All:

Colrful is a small AIR app that lets you search for images in flickr based
on color, kuler themes or similarity to any image on the internet. The app
uses Idée labs  Multicolr API to do the searching.
The app also lets you download the images to your desktop.

Try it out:
http://flexgeek.wordpress.com/2009/01/28/first-preview-colrful-desktop/

Thanks
Harish


Re: [flexcoders] ColorPicker - without the picker!

2009-02-06 Thread Harish Sivaramakrishnan
I have an implementation for the same. Find here
http://blog.flexgeek.in/?page_id=109

Let me know if thats what u are looking at.

On Thu, Feb 5, 2009 at 10:26 AM, tchredeemed  wrote:

>   I was wondering if I could build a flex app that has the SwatchPanel
> by default, instead of having to click on the icon to have it drop down.
>
> Yes/No?
>
>  
>


Re: [flexcoders] Re: ColorPicker - without the picker!

2009-02-08 Thread Harish Sivaramakrishnan
I have used the SwatchPanel.as for my implementation. I will share the code
tomorrow (today being sunday)

On Sat, Feb 7, 2009 at 2:16 AM, Alex Harui  wrote:

>The source code is out there.  SwatchPanel.as
>
>
>
> 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 *tchredeemed
> *Sent:* Friday, February 06, 2009 11:15 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: ColorPicker - without the picker!
>
>
>
> I'd rather just know how to implement that SwatchPanel component if
> that is possible... :)
>
>   
>


Re: [flexcoders] Re: Using Two returned Fields in a single DG Column.

2006-02-24 Thread Harish Sivaramakrishnan
Have a look at the attached files. This is a sample
implementation of a labelField in datagrid. This picks
up data from an xml, concatenates the first name and
last name into a single datagrid column and displays.
Have a look at the getName() functio  implementation.

Hope this helps,

Harish
Flex-QA
Adobe India.

--- Doug Lowder <[EMAIL PROTECTED]> wrote:


-
Have a look at DataGridColumn.labelFunction in the
docs.  You can 
specify a function for the column that returns a
concatenation of 
your two fields.

Doug

--- In flexcoders@yahoogroups.com, "Jeremy Rottman"
<[EMAIL PROTECTED]> 
wrote:
>
> I have a cfc function that I am using to search my
db and it 
returns
> results as a query. This works fine with my testing.
> 
> The issue that I have run into is. How I can use two
returned db
> fields in one dg column. 
> 
> Right now I am testing this.
> 
> 
>  
>   
> 
> 
> 
> The fields I am returning are FLD_FULLNAME AND
FLD_OAFULLNAME.
>







--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com

  

  SPONSORED LINKS  
Web
site design development   
Computer software development 
  Software design and development 
 
Macromedia flex   
Software development best practice
  

-
  YAHOO! GROUPS LINKS

  
Visit your group "flexcoders" on the web.
   
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.

  
-

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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






Christina
Coenraets

1289
1456
987
1675




Louis
Freligh

1143
1543
1054
1276




Joanne
Wall

1098
1345
876
1423




Mary
Jones

1145
1176
1456
1522




sample_new.mxml
Description: 3088593788-sample_new.mxml


Re: [flexcoders] Flex2 :: TileList :: ScrollBar

2006-02-24 Thread Harish Sivaramakrishnan
Thanks for the code snippet. I have logged this as a
bug for investigation .

Thanks
Harish

Flex-QA
Adobe India.

--- Teoti Graphix <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> This just seems like a dumb question but, I have the
> code below;
> 
> [code]
> 
> 
>  xmlns:mx="http://www.macromedia.com/2005/mxml";
> xmlns="*"
> layout="vertical"
> creationComplete="addHoldsToList();">
> 
> 
> 
> 
> 
>  layout="absolute">
> 
>  width="200"
> dataProvider="{dp}"
> direction="vertical"
> id="holdList"
> listItemRenderer="HandHold"
> columnCount="1"
> selectedIndex="2">
> 
> 
> 
> 
> 
> 
> [/code]
> 
> 
> Why is the vertical scrollbar not showing? There is
> defintely enough items
> in the dp to register the scroll bar.
> 
> If I ture vScrollPolicy to on, the scroll bar is
> there but no
> setScrollProperties(0 has been called on it?
> 
> Any thoughts?
> 
> Peace, Mike
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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




Re: [flexcoders] how to find out range start date and range end date of selectedRanges of date chooser control,

2006-02-24 Thread Harish Sivaramakrishnan
Hi

Please go through the attached file. Hopefully this
must solve your problem. however, the selectedRanges
property is capable of returning multiple ranges as an
array of objects. The example I have attached will
handle only one range. For getting values across
ranges you must loop through the array and get the
values. Also Please change "allowMultipleSelection"
property to "multipleSeletion" in the attached file
before you compile.

Hope this helps,

Harish
Flex-QA
Adobe India.

--- venkat eswar <[EMAIL PROTECTED]> wrote:

> hi,
>   i am new user of flex2.
>   now i am doing one module which requires range
> start  date and range end date  of selectedRanges of
> date chooser control.
>
>   if  u specify multipleselection property is "true"
> in date chooser
>it selects range of date.
>   i want  start range date and end range date.
>   how to capture these dates.
>   please help me.
>   thanking u
>   urs Eraga
>
> 
>   
> -
>  
>  What are the most popular cars? Find out at Yahoo!
> Autos 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


datechooserquestion.mxml
Description: 502419040-datechooserquestion.mxml


Re: [flexcoders] xml files embedded in swf?

2006-02-27 Thread Harish Sivaramakrishnan
Hi

 tag always embeds the xml at compile time,
hence there is also a limitation to the size of the
xml that you can load on to the swf. In order to read
an xml data at run time you could use


You could write ur logic in function foo() and use the
loaded xml data.

Hope this helps,

Harish.
Flex-QA 
Adobe India.

--- "Jan L. Nauta" <[EMAIL PROTECTED]> wrote:


-
Hi,

(Flex 2.0 Beta 1)

I noticed that xml files are always embedded in the
generated .swf file???



I thought it would work like images, so unless you
embed it explicit it
would be an external resource. The xml file even got
copied to the bin
directory, but the swf still uses it's 'internal'
version...

Regards,

Jan L. Nauta



--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com

  

  SPONSORED LINKS  
Web
site design development   
Computer software development 
  Software design and development 
 
Macromedia flex   
Software development best practice
  

-
  YAHOO! GROUPS LINKS

  
Visit your group "flexcoders" on the web.
   
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.

  
-




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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





Re: [flexcoders] Reading or Embedding SWFs?

2006-02-28 Thread Harish Sivaramakrishnan
Hi Bruce,

For getting rid of the Security Sandbox violation
error that you are getting, you will have to
explicitly trust the swfs / images that you are
loading. One way of doing this is the method that
abdul has suggested in his mail

alternatively, You could also do this:

Trust an SWF explicitly by adding it to the Trust
List. This could be done by adding a cfg file in the
following location:
C:\Windows\system32\Macromed\Flash\FlashPlayerTrust\TrustedStuff.cfg

Just enter the folder which you want to always trust.
For example if one wants to trust C:\Flex, just add
that in the cfg file. You could comment out things by
adding a #.

The following links have some useful info too:

http://livedocs.macromedia.com/flash/8/main/1604.html
http://flashplatform/dev/projects/maelstrom/specs/localfilesecurity/LocalFileSecurity.cfm
http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf

Hope this helps,

Thanks
Harish
Flex-QA
Adobe India.


--- Abdul Qabiz <[EMAIL PROTECTED]> wrote:

> Hi Bruce,
> 
> Loading local SWF might not be working because of
> Security Sandbox. Try
> giving the permission to your main to load SWFs from
> context-menu of Flash
> Player.
> 
> Context-menu > Settings >  Advanced
> 
> It would show advanced settings manager from
> macromedia.com, from there you
> can the directory.
> 
> Though, I expect somebody would confirm this. You
> can also try reading the
> security white paper for Flash Player 8 here:
>
http://www.macromedia.com/devnet/flashplayer/articles/flash_player_8_security.pdf
> 
> Things might be different in Macromedia Flash Player
> 8.5, so information in
> above white paper might not totally apply.
> 
> As far as embedding swfs is concerned, I think that
> should work. I don't
> remember the exact syntax, but if you do quick
> search to this mailing-list
> archive, I am sure you would find the exact syntax.
> Roger has replied many
> such queries.
> 
> A quick search gave me following results:
> 
>
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20285.html
>
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg20239.html
> 
> Hope that helps...
> 
> BTW! Are you Bruce Eckel of Mindview.net?
> 
> -abdul
> 
> 
> 
> 
> On 2/28/06, Bruce Eckel <[EMAIL PROTECTED]>
> wrote:
> >
> > I'm creating an app that displays SWF "slides" and
> plays MP3 files
> > associated with those slides. When I create this
> application under
> > Flexbuilder, at runtime it opens the external SWF
> slide files and plays the
> > MP3 files just fine. But when I move the
> application to a different
> > directory (containing the expected SWFs and MP3s)
> I get a runtime error
> > complaining about loading the SWF files. Even
> stranger is the fact that the
> > security message is only complaining about loading
> SWF files from the local
> > directory. When I comment out the SWF file
> loading, it's perfectly happy to
> > load MP3 files from the local directory.
> >
> > I've tried a number of experiments, including
> copying the SWF file from
> > the directory where flexbuilder creates it (where
> it works) to a different
> > directory (where it pops up a security message).
> >
> > I don't know if this is expected behavior or a
> bug, but if it is expected
> > behavior then I think I could solve it if I can
> compile the SWF files into
> > the app instead of having them as separate files,
> but I don't know how to do
> > that (and note my previous message about an
> apparent bug in the @Embed
> > command).
> >
> > I'd be perfectly happy to compile the external SWF
> slides directly into
> > the application as some kind of array of images
> (thus solving the access
> > problem), but so far I haven't been able to figure
> out how to do that. Any
> > hints would be greatly appreciated.
> >
> > --
> > Bruce Eckel
> >
> >
> >  --
> > Flexcoders Mailing List
> > FAQ:
>
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
>
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> >  SPONSORED LINKS
> >   Web site design
>
development
>  Computer
> > software
>
development
>  Software
> > design and
>
development
>   Macromedia
> >
>
flex

Re: [flexcoders] Exception using checkbox as cellEditor in DataGrid

2006-03-01 Thread Harish Sivaramakrishnan
Hi,

In addition to setting the isCellEditor=true flag you
also need to set  editorProperty=selected for your
code to function correctly with a
checkBoxCellRenderer. In your code, since the editable
is set to true, clicking on the Datagrid cell tries to
bring the default editor which is the textinput since
the editorproperty is not set. 

There is a known issue about the checkbox selections
getting messed up on scrolling after selecting the
checkboxes, which is currently under investigation.

Please have a look at the code below, This works
without the runtime error:

//

http://www.macromedia.com/2005/mxml";
width="600" height="600" >




  
   



   
  
  

//


Hope this helps!

Thanks,
Harish
Flex-QA
Adobe India.




--- thunderstumpgesatwork <[EMAIL PROTECTED]>
wrote:


-
Hi all, I have set up a "selected" column in a
datagrid and am using a
checkbox as the cell editor. Clicking around on
different rows of the
datagrid produced this error:

ReferenceError: Error #1069: Property text not found
on
mx.controls.CheckBox and there is no default value
at
mx.controls::DataGrid/mx.controls:DataGrid::cellEditorCellEndEditHandler()[C:\dev\beta1\sdk\frameworks\mx\controls\DataGrid.as:4311]
at flash.events::EventDispatcher/dispatchEvent()
at
mx.controls::DataGrid/endEdit()[C:\dev\beta1\sdk\frameworks\mx\controls\DataGrid.as:3089]
at
mx.controls::DataGrid/mouseDownHandler()[C:\dev\beta1\sdk\frameworks\mx\controls\DataGrid.as:3618]

The column definition is as such:


Any ideas? Is this a known bug?

thanks,
Thunder





--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com

  

  SPONSORED LINKS  
Web
site design development   
Computer software development 
  Software design and development 
 
Macromedia flex   
Software development best practice
  

-
  YAHOO! GROUPS LINKS

  
Visit your group "flexcoders" on the web.
   
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.

  
-




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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