RE: [flexcoders] Re: Actionscript sum function

2009-12-18 Thread Karthik Kailash
Or use an anonymous function with one of the array operation methods, like
every
(http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html#every(
))

 

In this case your anonymous function would be something that increments a
value in its parent scope by the value of the current element it is
processing.

 

Daryl's point about input validation is really good

 

Karthik

 

Karthik Kailash | Product

SocialVision, Online Television Becomes a Social Experience

CELL . 408.768.7704  | WEB . www.socialvisioninc.com | FACEBOOK .
 facebook.com/socialvision | TWITTER .
 twitter.com/socialvision

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of daryl_ducharme
Sent: Friday, December 18, 2009 6:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Actionscript sum function

 

  

If a function doesn't exist, roll your own.

Something like the following should work.

function getSum( ... nums ):Number
{
var total:Number = 0;
for each( var number:Number in nums )
{
total += number;
}
return total;
}

You may want to validate your inputs to have better error handling.

--- In flexcoders@yahoogroups.com  ,
"AJC2357"  wrote:
>
> Is there really no way to sum a simple array w/o adding element by
element?
> 
> var myArray:Array = [1,2,3,4,5];
> 
> I've found min and max functions, but nothing to sum...
> 
> Any tips appreciated!
>





[flexcoders] Re: dynamic source for flvplayback in flex

2009-12-18 Thread stinasius
Anyone with a solution to this, please help. thanks



[flexcoders] Re: Actionscript sum function

2009-12-18 Thread daryl_ducharme
If a function doesn't exist, roll your own.

Something like the following should work.

function getSum( ... nums ):Number
{
  var total:Number = 0;
  for each( var number:Number in nums )
  {
total += number;
  }
  return total;
}

You may want to validate your inputs to have better error handling.

--- In flexcoders@yahoogroups.com, "AJC2357"  wrote:
>
> Is there really no way to sum a simple array w/o adding element by element?
> 
> var myArray:Array = [1,2,3,4,5];
> 
> I've found min and max functions, but nothing to sum...
> 
> Any tips appreciated!
>




[flexcoders] Re: capturing SHIFT+TAB on keyDown event

2009-12-18 Thread flexcoder2008
Thanks for the replies - I got this working using this logic in the keydown 
handler:

if(event.shiftKey){
if(event.keyCode == Keyboard.TAB){ // SHIFT-TAB 
   // logic goes here
}
}



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> The actual work of tabbing is done in a FocusEvent.KEY_FOCUS_CHANGE which has 
> a property that tells you if the shift key was down.
> 
> 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 invertedspear
> Sent: Friday, December 18, 2009 3:59 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: capturing SHIFT+TAB on keyDown event
> 
> 
> 
> I don't have time to look it up right now, but I'm pretty sure you catch the 
> Tab key down, then check if the shift key was down at the same time. 
> Hopefully this gets you going in the right direction.
> 
> --- In flexcoders@yahoogroups.com, 
> "flexcoder2008"  wrote:
> >
> > Trying to capture the SHIFT+TAB key event on my DataGrid. It seems the 
> > Keydown handler can only handle 1 key at a time. What is the best way to 
> > handle this?
> >
>




RE: [flexcoders] Re: capturing SHIFT+TAB on keyDown event

2009-12-18 Thread Alex Harui
The actual work of tabbing is done in a FocusEvent.KEY_FOCUS_CHANGE which has a 
property that tells you if the shift key was down.

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 invertedspear
Sent: Friday, December 18, 2009 3:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: capturing SHIFT+TAB on keyDown event



I don't have time to look it up right now, but I'm pretty sure you catch the 
Tab key down, then check if the shift key was down at the same time. Hopefully 
this gets you going in the right direction.

--- In flexcoders@yahoogroups.com, 
"flexcoder2008"  wrote:
>
> Trying to capture the SHIFT+TAB key event on my DataGrid. It seems the 
> Keydown handler can only handle 1 key at a time. What is the best way to 
> handle this?
>



[flexcoders] Re: capturing SHIFT+TAB on keyDown event

2009-12-18 Thread invertedspear
I don't have time to look it up right now, but I'm pretty sure you catch the 
Tab key down, then check if the shift key was down at the same time. Hopefully 
this gets you going in the right direction.

--- In flexcoders@yahoogroups.com, "flexcoder2008"  wrote:
>
> Trying to capture the SHIFT+TAB key event on my DataGrid.  It seems the 
> Keydown handler can only handle 1 key at a time.  What is the best way to 
> handle this?
>




[flexcoders] Tilelist scrolling using mousewheel

2009-12-18 Thread azona26
I have a tile list which when (vertically) scrolling thru with the mousewheel 
immediately jumps to the last item - several rows. How can I set the scrollsize 
in a tile list so that each row is shown when using the mousewheel? If I use 
the scrollbar's thumb bar it scrolls as expected.

Thanks for the assistance. 



[flexcoders] Printing vs font

2009-12-18 Thread Richard Rodseth
Is there a simple sample anywhere of printing a chart with legend?

My legend text is getting cut off. I believe I'm using the default font and
am not embedding.

Thanks.


[flexcoders] capturing SHIFT+TAB on keyDown event

2009-12-18 Thread flexcoder2008
Trying to capture the SHIFT+TAB key event on my DataGrid.  It seems the Keydown 
handler can only handle 1 key at a time.  What is the best way to handle this?  



[flexcoders] Re: Flex datagrid with Excel-like behaviour

2009-12-18 Thread flexcoder2008
I have version 3.0

Thanks Alex, I was able to fix the problem, it was something to do with the way 
I was checking row values - is working now.




--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Which version of Flex are you using?  That might be fixed in more recent 
> versions.
> 
> 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 flexcoder2008
> Sent: Friday, December 18, 2009 11:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Flex datagrid with Excel-like behaviour
> 
> 
> 
> Hi Alex,
> 
> Yes, I am using that to block particular cells from being edited. When I 
> click on a cell, this event fires and I can check the dataProvider to 
> determine if this is a cell that should be non-editable and successfully 
> prevent the cell from being editable by calling event.preventDefault.
> 
> The problem is if I am in an editable cell and then hit tab. If the next cell 
> should be non-editable, this event fires, and I call event.preventDefault but 
> the cell still becomes editable and the itemEditor displays. This only 
> happens when tabbing to a cell that should be non-editable. It doesn't happen 
> when you click on the cell.
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > ITEM_EDIT_BEGINNING event can be used to block editing of a cell.
> >
> > I have a DataGrid Footer example on my blog.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of flexcoder2008
> > Sent: Friday, December 18, 2009 9:44 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Flex datagrid with Excel-like behaviour
> >
> >
> >
> > In my application I am trying to create an Excel-type spreadsheet using a 
> > DataGrid. I need the ability to "lock" certain cells so that they are not 
> > editable. I need to be able to tab between editable cells (this is the 
> > default behaviour) when navigating between cells, but be able to skip over 
> > locked (non-editable) cells. This should work both with Tab and alt-Tab to 
> > go backwards.
> >
> > As with a spreadsheet too - I need to be able to total columns.
> >
> > I am particularly having trouble getting the tab key functionality working.
> >
> > Has anyone else attempted something like this or can they point me in the 
> > direction of an existing component that may have this functionality?
> >
> > Thanks
> >
>




[SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite

2009-12-18 Thread turbo_vb
Hi Dennis,

I don't want to poach Tracy here, but what is the parent class that you are 
adding the PanelGradient component to?  If it's a UIComponent, you will have to 
move the child in updateDisplayList(); because UIComponent doesn't use the same 
layout framework code as say a Canvas.  So, you can change the parent to 
Canvas, and your constraint styles will work, or position the child yourself.

-TH

--- In flexcoders@yahoogroups.com, "dennis"  wrote:
>
> Hi Tracy. I hope you are ok.
> 
>  
> 
> I do the follow:
> 
>   var d:PanelGradient=new
> PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
> *1.5);
> 
>   d.setStyle("right",10);
> 
>   d.setStyle("bottom",10);
> 
>   addChild(d);
> 
>  
> 
> In the above code, setting the "right" and "bottom", I expect, in case of
> resizing the browser, the PanelGrandient must be kept anchored in the right
> bottom corner. 
> 
>  
> 
> What I do wrong?
> 
>  
> 
> p.s. The PanelGradient extends the UIComponent and in real is a container of
> a Shape with a matrix.
> 
>  
> 
>  
> 
> dennis
> 
> ...we are what we are doing...  P Think! before you print. 
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Tracy Spratt
> Sent: Saturday, November 28, 2009 12:24 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
> extended Sprite object REFdn6025643069
> 
>  
> 
>   
> 
> The constraints are styles, not properties.  So to use constraints in AS,
> you need to define them in a style sheet, and/or use setStyle().
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of dennis
> Sent: Thursday, November 26, 2009 9:48 AM
> To: flexcoders@yahoogroups.com
> Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
> extended Sprite object REFdn6025643069
> 
>  
> 
>   
> 
> Thank you for your reply.
> 
>  
> 
> I work only with AS, I mean with no MXML. 
> 
> I tried to use the Canvas container but using the mx.containers.Canvas,
> there is no right property (even top, bottom, left).
> 
>  
> 
> What do I miss?
> 
>  
> 
> dennis
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of jamesfin
> Sent: Wednesday, November 18, 2009 7:01 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
> Sprite object REFdn6025643069
> 
>  
> 
>   
> 
> 
> 
> You can always do this where the right / top is constraining the item.
> 
> 
> http://www.adobe.com/2006/mxml"; layout="absolute"
> creationComplete="init()">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com  ,
> "dennis"  wrote:
> >
> > Hello people..
> > 
> > 
> > 
> > I have an extended Sprite object and I put in on the Stage (via addChild).
> > 
> > How may I "anchor" it on runtime on the Stage? 
> > 
> > How may I constraint it in Columns and Rows?
> > 
> > 
> > 
> > Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
> > right edge of the Stage, even if the Stage resized.
> > 
> > 
> > 
> > Thank in advance.
> > 
> > Dennis
> >
> 
> 
> 
> __ NOD32 4618 (20091118) Information __
> 
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
> 
> 
> 
> 
> 
> __ NOD32 4643 (20091127) Information __
> 
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>




RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on extended Sprite object REFdn6025643069

2009-12-18 Thread dennis
Hi Tracy. I hope you are ok.

 

I do the follow:

  var d:PanelGradient=new
PanelGradient(0,0,stg.width/2,stg.height/2,30,30,stg.width/2*1.5,stg.width/2
*1.5);

  d.setStyle("right",10);

  d.setStyle("bottom",10);

  addChild(d);

 

In the above code, setting the "right" and "bottom", I expect, in case of
resizing the browser, the PanelGrandient must be kept anchored in the right
bottom corner. 

 

What I do wrong?

 

p.s. The PanelGradient extends the UIComponent and in real is a container of
a Shape with a matrix.

 

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Saturday, November 28, 2009 12:24 AM
To: flexcoders@yahoogroups.com
Subject: RE: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

The constraints are styles, not properties.  So to use constraints in AS,
you need to define them in a style sheet, and/or use setStyle().

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dennis
Sent: Thursday, November 26, 2009 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] RE: [flexcoders] Re: constraintColumns/constraintRows on
extended Sprite object REFdn6025643069

 

  

Thank you for your reply.

 

I work only with AS, I mean with no MXML. 

I tried to use the Canvas container but using the mx.containers.Canvas,
there is no right property (even top, bottom, left).

 

What do I miss?

 

dennis

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of jamesfin
Sent: Wednesday, November 18, 2009 7:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: constraintColumns/constraintRows on extended
Sprite object REFdn6025643069

 

  



You can always do this where the right / top is constraining the item.


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









--- In flexcoders@yahoogroups.com  ,
"dennis"  wrote:
>
> Hello people..
> 
> 
> 
> I have an extended Sprite object and I put in on the Stage (via addChild).
> 
> How may I "anchor" it on runtime on the Stage? 
> 
> How may I constraint it in Columns and Rows?
> 
> 
> 
> Suppose that I want a Sprite(Panel) object, to be always 20 pixels from
> right edge of the Stage, even if the Stage resized.
> 
> 
> 
> Thank in advance.
> 
> Dennis
>



__ NOD32 4618 (20091118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com





__ NOD32 4643 (20091127) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



RE: [flexcoders] Re: Flex datagrid with Excel-like behaviour

2009-12-18 Thread Alex Harui
Which version of Flex are you using?  That might be fixed in more recent 
versions.

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 flexcoder2008
Sent: Friday, December 18, 2009 11:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex datagrid with Excel-like behaviour



Hi Alex,

Yes, I am using that to block particular cells from being edited. When I click 
on a cell, this event fires and I can check the dataProvider to determine if 
this is a cell that should be non-editable and successfully prevent the cell 
from being editable by calling event.preventDefault.

The problem is if I am in an editable cell and then hit tab. If the next cell 
should be non-editable, this event fires, and I call event.preventDefault but 
the cell still becomes editable and the itemEditor displays. This only happens 
when tabbing to a cell that should be non-editable. It doesn't happen when you 
click on the cell.

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> ITEM_EDIT_BEGINNING event can be used to block editing of a cell.
>
> I have a DataGrid Footer example on my blog.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of flexcoder2008
> Sent: Friday, December 18, 2009 9:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex datagrid with Excel-like behaviour
>
>
>
> In my application I am trying to create an Excel-type spreadsheet using a 
> DataGrid. I need the ability to "lock" certain cells so that they are not 
> editable. I need to be able to tab between editable cells (this is the 
> default behaviour) when navigating between cells, but be able to skip over 
> locked (non-editable) cells. This should work both with Tab and alt-Tab to go 
> backwards.
>
> As with a spreadsheet too - I need to be able to total columns.
>
> I am particularly having trouble getting the tab key functionality working.
>
> Has anyone else attempted something like this or can they point me in the 
> direction of an existing component that may have this functionality?
>
> Thanks
>



[flexcoders] Flex/Flash dev without FlexBuilder / FDT

2009-12-18 Thread Marcelo de Moraes Serpa
Hello list,

After almost 3 years away from the Flash Platform, a new venture of mine,
which can use the great potential of the Flash/AIR ecosystem, will require
me to go back to the field. I'm pleasured to do that, since I always loved
Flash and its potential to create high-quality use experiences.

However, I'm no longer a Eclipse guy, I don't like bloated software anymore
and learned to love the Ruby/Rails way of doing things. In this time I was
away from Flex, I was doing exclusivelly Rails/Ajax apps and some generic
Ruby work, and it was great. Now I want to mix this knowledge with Flash and
create the product I have in mind.

Well, introductions aside, what I'd like to know is, how many less-is-more
emacsers/textmaters we have around here? Here's what I'd like to  do:

1) Best case scenario: Setup a complete Flash/Flex3 dev env with emacs and
CLI tools. No Flex Builder whatsoever;
2) Good case scneario: Setup a complete Flash/Flex de env with Textmate and
CLI tools. No Flex Builder whatsoever;
3) Worst case/won'thappen scenario: Buy Flex Builder or (ouch) FDT3.

(When I put Flash/Flex is because eventually I will be using Flash without
the Flex3/4 gorilla's framwork).

I would like to know the feasibility of NOT having FB or FDT, and relying on
CLI tools for Flex Dev. If anyone out there use emcas/Textmate and managed
to implement a highly-productivy flash/flex dev workflow with them, please
share, I would be really grateful!

Thanks,

Marcelo.


RE: [flexcoders] Re: 2 strange issues for begginer in action script ref REFdn4045341518

2009-12-18 Thread dennis
Thank you J!

 

I delayed because I am too busy =)

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexaustin
Sent: Monday, October 12, 2009 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: 2 strange issues for begginer in action script ref
REFdn4045341518

 

  

You need to import the Button so

import mx.controls.Button

But I think your main issue is that you can't create a Sprite component and
put mx components inside of it. You need to use UIComponent as your base
instead of Sprite. I believe you can go lower down the inheritance chain to
FlexSprite (don't quote me on the name I don't have my Flex posters in front
of me). But even if you use FlexSprite you have to implement a lot of
Classes and write a lot of functions (override possibly) to make FlexSprite
work so its just best to go with UIComponent.

J



 



[flexcoders] Re: Flex datagrid with Excel-like behaviour

2009-12-18 Thread flexcoder2008
Hi Alex,

Yes, I am using that to block particular cells from being edited.  When I click 
on a cell, this event fires and I can check the dataProvider to determine if 
this is a cell that should be non-editable and successfully prevent the cell 
from being editable by calling event.preventDefault.  

The problem is if I am in an editable cell and then hit tab.  If the next cell 
should be non-editable, this event fires, and I call event.preventDefault but 
the cell still becomes editable and the itemEditor displays.  This only happens 
when tabbing to a cell that should be non-editable.  It doesn't happen when you 
click on the cell.


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> ITEM_EDIT_BEGINNING event can be used to block editing of a cell.
> 
> I have a DataGrid Footer example on my blog.
> 
> 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 flexcoder2008
> Sent: Friday, December 18, 2009 9:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex datagrid with Excel-like behaviour
> 
> 
> 
> In my application I am trying to create an Excel-type spreadsheet using a 
> DataGrid. I need the ability to "lock" certain cells so that they are not 
> editable. I need to be able to tab between editable cells (this is the 
> default behaviour) when navigating between cells, but be able to skip over 
> locked (non-editable) cells. This should work both with Tab and alt-Tab to go 
> backwards.
> 
> As with a spreadsheet too - I need to be able to total columns.
> 
> I am particularly having trouble getting the tab key functionality working.
> 
> Has anyone else attempted something like this or can they point me in the 
> direction of an existing component that may have this functionality?
> 
> Thanks
>




RE: [flexcoders] Flex datagrid with Excel-like behaviour

2009-12-18 Thread Alex Harui
ITEM_EDIT_BEGINNING event can be used to block editing of a cell.

I have a DataGrid Footer example on my blog.

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 flexcoder2008
Sent: Friday, December 18, 2009 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex datagrid with Excel-like behaviour



In my application I am trying to create an Excel-type spreadsheet using a 
DataGrid. I need the ability to "lock" certain cells so that they are not 
editable. I need to be able to tab between editable cells (this is the default 
behaviour) when navigating between cells, but be able to skip over locked 
(non-editable) cells. This should work both with Tab and alt-Tab to go 
backwards.

As with a spreadsheet too - I need to be able to total columns.

I am particularly having trouble getting the tab key functionality working.

Has anyone else attempted something like this or can they point me in the 
direction of an existing component that may have this functionality?

Thanks



RE: [flexcoders] Reg: Tree Node Expand

2009-12-18 Thread Alex Harui
If the UIDs don't change, simply save and restore openItems

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 Abdul Nizar
Sent: Friday, December 18, 2009 7:16 AM
To: flexcoders@yahoogroups.com
Cc: flexcoders@yahoogroups.com
Subject: [flexcoders] Reg: Tree Node Expand


Hi,
   Am using the dynamics generated XML input to the TREE.
   After update the TREE NODE DATA, I want to restore the TREE Structure.
  ( ie) I want to open the particular node in that tree after refresh.)
   What ll i do.


Regards,
Abdul.
Catch @ (0) 9790503327.





The INTERNET now has a personality. YOURS! See your Yahoo! 
Homepage.



[flexcoders] Reg: Tree Node Expand

2009-12-18 Thread Abdul Nizar
Hi,
   Am using the dynamics generated XML input to the TREE.
   After update the TREE NODE DATA, I want to restore the TREE Structure.
  ( ie) I want to open the particular node in that tree after refresh.)
   What ll i do.


Regards,
Abdul.
Catch @ (0) 9790503327.



  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

[flexcoders] Flex datagrid with Excel-like behaviour

2009-12-18 Thread flexcoder2008
In my application I am trying to create an Excel-type spreadsheet using a 
DataGrid.  I need the ability to "lock" certain cells so that they are not 
editable.  I need to be able to tab between editable cells (this is the default 
behaviour) when navigating between cells, but be able to skip over locked 
(non-editable) cells.  This should work both with Tab and alt-Tab to go 
backwards.  

As with a spreadsheet too - I need to be able to total columns.

I am particularly having trouble getting the tab key functionality working.  

Has anyone else attempted something like this or can they point me in the 
direction of an existing component that may have this functionality?

Thanks



[flexcoders] Actionscript sum function

2009-12-18 Thread AJC2357
Is there really no way to sum a simple array w/o adding element by element?

var myArray:Array = [1,2,3,4,5];

I've found min and max functions, but nothing to sum...

Any tips appreciated!





[flexcoders] Re: Flex 3 RichTextEditor - move controlbar to top

2009-12-18 Thread Greg Lafrance
Such a simple solution. Thanks very much!

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> Not sure if this helps, but I use this and it works at runtime.
> 
> 
> http://www.adobe.com/2006/mxml"; width="100%" 
> height="100%" initialize="init()">
> 
> 
> 
> 
> 
> 
> 
> From: "Greg Lafrance" 
> Sent: Friday, December 18, 2009 10:40 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 3 RichTextEditor - move controlbar to top
> 
>  
> 
> 
> 
> 
> 
> 
> 
> I want to move the controlbar of the RichTextEditor above the TextArea 
> instead of the default of being below the TextArea.
> 
> I've been playing around with it as follows but I have a feeling I should not 
> do this in the updateDisplayList method.
> 
> Should I do it in the initialize method?
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> This doesn't work either:
> 
> 
> http://www.adobe.com/2006/mxml";
> creationComplete="setupUI();">
> 
> 
> 
> 
>




re: [flexcoders] Flex 3 RichTextEditor - move controlbar to top

2009-12-18 Thread Wally Kolcz
Not sure if this helps, but I use this and it works at runtime.


http://www.adobe.com/2006/mxml"; width="100%" 
height="100%" initialize="init()">







From: "Greg Lafrance" 
Sent: Friday, December 18, 2009 10:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 3 RichTextEditor - move controlbar to top

 







I want to move the controlbar of the RichTextEditor above the TextArea instead 
of the default of being below the TextArea.

I've been playing around with it as follows but I have a feeling I should not 
do this in the updateDisplayList method.

Should I do it in the initialize method?


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





This doesn't work either:


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
















[flexcoders] Re: VideoPlayer and moving slider based on time

2009-12-18 Thread joel.sisko
Thanks for the help and was exactly what I was looking for.

--- In flexcoders@yahoogroups.com, Peter DeHaan  wrote:
>
> Use the seek() method to jump to a certain number of seconds in the video.
> My video was short (30 seconds), so you'll need to convert your times to 
> seconds accordingly.
> 
>  click="vdPlyr.seek(10);"/>
>  click="vdPlyr.seek(20);" />
>  click="vdPlyr.seek(25);" />
> 
> 
> Peter
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of joel.sisko
> Sent: Wednesday, December 16, 2009 3:26 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] VideoPlayer and moving slider based on time
> 
> 
> 
> flexcoders,
> 
> Is there a way to jump to a particular time within the videoplayer based on 
> an event such as a button click?
> 
> button id step1 would jump to 20 seconds into video
> button id step 2 would jump to 1:45 into video
> button is step 3 would jump to 4:05 into video
> 
> Joel
> 
> #Begin Code#
> 
> 
> http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  click="btn_clickHandler(event)">
>  click="btn_clickHandler(event)">
> 
>  verticalCenter="5"
> source="../assets/videos/videblue.flv" width="540" height="444"/>
> 
> 
> 
> 
> 
>  editable="false"/>
> 
> 
> 
> 
> 
> 
>




[flexcoders] Re: LCDS : jsvc suddenly takes 100% CPU

2009-12-18 Thread invertedspear
I'm not familiar with these log files, but it appears to be repeating a command 
over and over, can you post the section of your code that command is coming 
from?
~Mike

--- In flexcoders@yahoogroups.com, Besite - Bart  wrote:
>
> Hello,
> 
> We are running a Flex/LCDS application in a clustered environment.  We 
> use the Data Management Service
> and the Messaging Service over rtmp channels.
> 
> Our application works ok, but sometimes the CPU skyrockets suddenly, we 
> see the jsvc process uses 100% CPU and our Livecycle server hangs..
> 
> When the livecycle server hangs, the debug logs start showing the 
> following messages over and over again.
> Apperently there is a deadlock or infinite loop...  what could be the 
> cause of this ? What exactly does this message mean ?
> 
> Thanks for your help !
> Bart Ronsyn
> 
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=983224} from 0 to 1
> [LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
> Moving: {roomId=984015} from 0 to 1
> [LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
> Merge Step 3
>




[flexcoders] Flex 3 RichTextEditor - move controlbar to top

2009-12-18 Thread Greg Lafrance
I want to move the controlbar of the RichTextEditor above the TextArea instead 
of the default of being below the TextArea.
 
I've been playing around with it as follows but I have a feeling I should not 
do this in the updateDisplayList method.
 
Should I do it in the initialize method?
 

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

  


 
 
This doesn't work either:

 
 

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

  





[flexcoders] LCDS : jsvc suddenly takes 100% CPU

2009-12-18 Thread Besite - Bart
Hello,

We are running a Flex/LCDS application in a clustered environment.  We 
use the Data Management Service
and the Messaging Service over rtmp channels.

Our application works ok, but sometimes the CPU skyrockets suddenly, we 
see the jsvc process uses 100% CPU and our Livecycle server hangs..

When the livecycle server hangs, the debug logs start showing the 
following messages over and over again.
Apperently there is a deadlock or infinite loop...  what could be the 
cause of this ? What exactly does this message mean ?

Thanks for your help !
Bart Ronsyn

Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=983224} from 0 to 1
[LCDS]12/18/2009 15:13:19.528 [DEBUG] [InternalDataService] Sequence 
Merge Step 3
Moving: {roomId=984015} from 0 to 1
[LCDS]12/18/2009 15:13:19.566 [DEBUG] [InternalDataService] Sequence 
Merge Step 3


[flexcoders] Re: Drag and drop, custom cursor during drag not working

2009-12-18 Thread invertedspear
Just giving a bump, I keep coming back to this issue.

--- In flexcoders@yahoogroups.com, "invertedspear"  wrote:
>
> OK, That helped a little bit, I'm now doing this on rollOver "var 
> styleSheet:CSSStyleDeclaration =
> StyleManager.getStyleDeclaration("DragManager");
> styleSheet.setStyle("moveCursor", grabbingCursor);
> CursorManager.setCursor(grabCursor,CursorManagerPriority.LOW);
> 
> This is giving me the correct rollover and correct drag, but if I try to add 
> any function to rollOut it screws up again, so now I'm stuck with the 
> grabCursor. It seems like when I set a rollOut on the dataGrid it's firing 
> for each row, same with mouseOut, is there any way to avoid that?
> ~Thanks
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Chris  wrote:
> >
> > Just a thought, as I haven't tried the method you described. What about
> > setting the styles of the cursor on mouse down?
> > 
> > var styleSheet:CSSStyleDeclaration =
> > StyleManager.getStyleDeclaration("DragManager");
> > styleSheet.setStyle("moveCursor", grabCursor);
> > 
> > or
> > 
> > styleSheet.setStyle("copyCursor", grabCursor);
> > 
> > And you could set it back on mouse up. Just a thought because maybe
> > DragManager is setting things back to what it has set in its styles.
>




[flexcoders] LCDS : Nagios checks

2009-12-18 Thread Besite - Bart
Question :

We would like to check and monitor each hour if the Data Management 
Service en Messaging Service on our Livecycle server  still works.
Which checks could we perform to see if all is working well ?  The 
services are using the rtmp protocol.

Kind regards
Bart


Re: [flexcoders] Re: Passing parameters to flashplayer while launching from Flexbuilder

2009-12-18 Thread Tom Chiverton
On Thursday 17 Dec 2009, Chris wrote:
> Then build a browser using AIR and load your swc into a Webkit window! :D

Ohh, nice work around !

-- 
Helping to completely envisioneer supply-chains as part of the IT team of the 
year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] How load all html code of a page site

2009-12-18 Thread Hero Colour
I use loader to load page source of a page site
My code is:

private function load_page_source( ):void
{
var addsearch:String = patent_num_txt. text;
var request:URLRequest = new URLRequest("http://en.wikipedia .org/wiki/ 
System");
loader.addEventList ener(Event. COMPLETE, handleResponse) ;
loader.load( request);
}

// handle
private function handleResponse( event:Event) :void
{
var temp:String = loader.data;
}

When I used hadleResponse function to handle Event butI only loaded a part of 
page source I don't know why. Now, I want to load all page source (or html code 
of it) such as when we click right-mouse to firefox and select view page 
source. How do I code?
Please help me!
Thanks,



[flexcoders] dynamic source for flvplayback in flex

2009-12-18 Thread stinasius
hi guys, am using the flvplayback flash component to load videos and its great 
with a static source path, but i have one problem, i have a datagrid with video 
paths from database and i would like to click on a particular row and the video 
loads in the flvplayback. any help guys?



Re: [flexcoders] How to dispatchevent in popup window?

2009-12-18 Thread Fotis Chatzinikos
Either what Valdor suggested, or in your pop window have a "componentOwner"
refrence which you use to dispatch your event:


popup:
public var componentOwner:DisplayObject ;


popup dispatches event:

componentOwner.dispatchEvent(...your event...) ;


application using the popup:

thePopUp = new MyCustomPopUp() ;
thePopUp.componentOwner = this ;
PopUpManager.addPopUp(thePopUp) ;


On Thu, Dec 17, 2009 at 10:05 PM, markflex2007 wrote:

>
>
> Hi,
>
> I want to dispatch event in popup window and capture the event
> in base page.
>
> Please give me a idea how to do this.
>
> Thanks
>
> Mark
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
LivinData Technologies
www.styledropper.com
fotis.chatzini...@gmail.com,


Re: [Spam] RE: [Spam] [flexcoders] Re: getters before setters

2009-12-18 Thread Nick Middleweek
Cheers Gordon... Thanks for the confirmation...




2009/12/18 Gordon Smith 

>
>
>  As far as I know, the setter never auomatically calls the getter. It
> certainly shouldn't, since the getter could have some undesirable
> side-effect that you wouldn't want happening in the setter.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>