Re: [flexcoders] Changing the modalTransparencyColor of an existing popup.

2010-04-27 Thread Alex Harui
The modal window is not looking for changes.  You should be able to find it in 
systemManager.popUpChildren and get its graphics and clear and draw a new fill.


On 4/27/10 4:45 PM, "aceoohay"  wrote:






I posted this question under another Subject.

I didn't realize precisely what the problem was and now I do, so I thought I 
would restate the question.

Is there anyway to change the transparency color of an existing modal popup?

I have tried the following, and it does not work.

var intRed:int = Math.round(Math.random() * (255));
var intBlue:int = Math.round(Math.random() * (255));
var intGreen:int = Math.round(Math.random() * (255));
this.setStyle("modalTransparencyColor",(intRed * 65536) + (intBlue*256) +
intGreen)
trace("xcolor=" + ((intRed * 65536) + (intBlue*256) + intGreen).toString());

Any ideas?

Paul






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: Modal windows and blur problem...

2010-04-27 Thread Alex Harui
I guess I didn’t understand your goal.  If you blur the systemManager, 
everything will be blurred.  If you put up a modal popup, it should go on top 
of every existing popup and blur everything below.  Make sure you set the 
childList param to POPUP.


On 4/27/10 2:08 PM, "aceoohay"  wrote:






Well, I no longer get an error, and more stuff gets blurred, but now everything 
gets blurred, including the titlewindow that is asking for the password.

I need to blur everything except the titleWindow accepting the password. The 
original problem was that other modal popups weren't getting blurred, 
curiously, the modalTransparencyColor was being applied to them.

My current code looks like this;

var blur:BlurFilter = new BlurFilter();
blur.blurX = 10;
blur.blurY = 10;
blur.quality = BitmapFilterQuality.MEDIUM;
DisplayObject(systemManager).filters = [blur];
evtScreenSaverTimer.stop();
this.removeEventListener(KeyboardEvent.KEY_DOWN, clearScreenSaverTimer);
this.removeEventListener(MouseEvent.CLICK, clearScreenSaverTimer);
var popScreenSaver:ScreenSaver = new ScreenSaver;
_intScreenSaverTimer = 0;
// popScreenSaver = 
ScreenSaver(PopUpManager.createPopUp(this,ScreenSaver,true));
popScreenSaver.setStyle("modalTrasparancy",0.2);
popScreenSaver.setStyle("modalTransparencyBlur",10);
popScreenSaver.setStyle("modalTransparencyColor",0x00ff67);
popScreenSaver.setStyle("modalTransparencyDuration",1500);
PopUpManager.addPopUp(popScreenSaver,this,true);
PopUpManager.centerPopUp(popScreenSaver);
popScreenSaver.init();

Paul
--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> Yeah, sorry.  I forgot that systemManager is an interface.  It is also a 
> DisplayObject so try:
>
> DisplayObject(systemManager).filters[blur];
>
> And to change it periodically, modify the blur and re-assign the entire array.
>
>
> On 4/27/10 10:27 AM, "aceoohay"  wrote:
>
>
>
>
>
>
> OK, so now I get;
>
> Access of possibly undefined property filters through a reference with static 
> type mx.managers:ISystemManager
>
> on either;
>
> this.systemManager.filters = [blur];
> or
> systemManager.filters = [blur];
>
> Paul
>
> --- In flexcoders@yahoogroups.com   
>  , "aceoohay"  wrote:
> >
> > Alex:
> >
> > The following;
> >
> > var blur:BlurFilter = new BlurFilter();
> > blur.blurX = 10;
> > blur.blurY = 10;
> > blur.quality = BitmapFilterQuality.MEDIUM;
> > SystemManager.filters = [blur];
> >
> > compiles with the following error;
> >
> > Access of possibly undefined property filters through a reference with 
> > static type Class.
> >
> > on the SystemManager... line.
> >
> > This brings to mind a couple of questions;
> >
> > 1) how to correct the error?
> >
> > 2) Where should this code be running? In the main app, or in the popup?
> >
> > 3) How to turn it off?
> >
> > Paul
> >
> >
> > --- In flexcoders@yahoogroups.com   
> >  , Alex Harui  wrote:
> > >
> > > I was thinking something like:
> > >
> > > SystemManager.filters = [ new BlurFilter(...) ];
> > >
> > >
> > > On 4/26/10 10:30 AM, "aceoohay"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Alex:
> > >
> > > How?
> > >
> > > systemManager.setStyle("modalTransparencyBlur",10) ?
> > >
> > > Paul
> > >
> > > --- In flexcoders@yahoogroups.com   
> > >   
> > >  , Alex Harui  wrote:
> > > >
> > > > What happens if you apply a filter to systemManager?
> > > >
> > > >
> > > > On 4/26/10 9:50 AM, "aceoohay"  wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Tom:
> > > >
> > > > How would I go about that? The two issues I see are;
> > > >
> > > > 1) Determine the width & height of the stage.
> > > >
> > > > 2) Create an object with a background that does the blur. I currently 
> > > > have a titlewindow in a canvas, so once I determine the height & width 
> > > > to use I can make the canvas as big as I want, but how do I make the 
> > > > canvas background blurry?
> > > >
> > > > Paul
> > > >
> > > > --- In flexcoders@yahoogroups.com  
> > > >    
> > > >   
> > > >  , Tom Chiverton  
> > > > wrote:
> > > > >
> > > > > On Monday 26 Apr 2010 16:07:27 you wrote:
> > > > > > Any ideas on how to blur everything including all modal windows.
> > > > >
> > > > > Add a new object the full width/height of the Stage ?
> > > > >
> > > > > --
> > > > > Helping to revolutionarily e-enable leading-edge virtual magnetic 
> > > > > industry-
> > > > > wide interfaces as part of the IT team of the year 2010, '09 and '08
> > > > >
> > > > > 
> > > > >
> > > > > This email is sent for and on behalf of Hall

Re: [flexcoders] Modal windows and event handlers...

2010-04-27 Thread Alex Harui
Try adding event listeners to systemManager.


On 4/27/10 4:36 PM, "aceoohay"  wrote:






It would appear that keystrokes and mouse clicks from a modal window 
(popupManager) do not invoke the key/mouse handler routines created at the 
application level.

what is the simplest way of trapping any keydown or mouse click event that 
occurs anywhere within an application including popups, alerts, etc?

Don't need to know anything about the event, other than it occurred.

Paul






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: flex/coldfusion paypal example

2010-04-27 Thread ZIONIST
Hey Guys, any help?



[flexcoders] Changing the modalTransparencyColor of an existing popup.

2010-04-27 Thread aceoohay
I posted this question under another Subject.

I didn't realize precisely what the problem was and now I do, so I thought I 
would restate the question.

Is there anyway to change the transparency color of an existing modal popup?

I have tried the following, and it does not work.

var intRed:int = Math.round(Math.random() * (255));
var intBlue:int = Math.round(Math.random() * (255));
var intGreen:int = Math.round(Math.random() * (255));
this.setStyle("modalTransparencyColor",(intRed * 65536) + (intBlue*256) +
intGreen)
trace("xcolor=" + ((intRed * 65536) + (intBlue*256) + intGreen).toString());

Any ideas?

Paul





[flexcoders] Modal windows and event handlers...

2010-04-27 Thread aceoohay
It would appear that keystrokes and mouse clicks from a modal window 
(popupManager) do not invoke the key/mouse handler routines created at the 
application level.

what is the simplest way of trapping any keydown or mouse click event that 
occurs anywhere within an application including popups, alerts, etc?

Don't need to know anything about the event, other than it occurred.

Paul



[flexcoders] blazeds doesnt take into consideration a collection that has been filtered. It sends the whole collection.

2010-04-27 Thread Fernando Wermus
Hi all,
I am filtering an arrayCollection to get the selected user item's. I can
see that this happend smoothly, but when I send this collection to the
server, using blazeds, my backend function receives all the original
collection without filering!

what am I doing wrong?

thanks in advance

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Fernando Wermus
Oleg,
Thanks! I don't have Flex 4 so I cant try by this way. I would add the
selected attribute to the VO.


On Tue, Apr 27, 2010 at 5:53 PM, Oleg Sivokon  wrote:

>
>
> Sorry, I've got that one wrong :)
>
> public override function set data(value:Object):void
> {
> this.checkBox.checked =  this.parentDocument.amIChecked(this);
> super.data = value;
> }
>
>  
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


[flexcoders] Re: Explicitly setting the height of a row in a DataGrid

2010-04-27 Thread Amy


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I would do that by having a renderer that draws outside its given bounds, and 
> other renderers to the right that set alpha=0 so they don't show up.
> 
> 
> On 4/26/10 11:01 AM, "Jay Proulx"  wrote:
> 
> 
> 
> 
> 
> 
> Because I want to add a "colSpan" so to speak, so that I can have a row 
> renderer for child data.
> e.g.:
> 
> 
> |[ Cell ] [ Cell ] [ Cell ]|
> |[  Child]|
> [ Cell ] [  Cell  ] [ Cell ]
> [ Cell ] [  Cell  ] [ Cell ]
> [ Cell ] [  Cell  ] [ Cell ]
> 
> 
> i.e.: Child floats at the top of listContent, and the parent row is stretched 
> to create the gap for the child to inhabit.
> 
> ADG doesn't quite do it because it's tree column is only 1 column , the other 
> option would be to add columns to Tree.  The latter may be easier to 
> implement with a new default renderer.

ADG has SummaryRow...



[flexcoders] Re: Modal windows and blur problem...

2010-04-27 Thread aceoohay
Well, I no longer get an error, and more stuff gets blurred, but now everything 
gets blurred, including the titlewindow that is asking for the password.

I need to blur everything except the titleWindow accepting the password. The 
original problem was that other modal popups weren't getting blurred, 
curiously, the modalTransparencyColor was being applied to them.

My current code looks like this;

var blur:BlurFilter = new BlurFilter();
blur.blurX = 10;
blur.blurY = 10;
blur.quality = BitmapFilterQuality.MEDIUM;
DisplayObject(systemManager).filters = [blur];
evtScreenSaverTimer.stop();
this.removeEventListener(KeyboardEvent.KEY_DOWN, clearScreenSaverTimer);
this.removeEventListener(MouseEvent.CLICK, clearScreenSaverTimer);
var popScreenSaver:ScreenSaver = new ScreenSaver;
_intScreenSaverTimer = 0;
//  popScreenSaver = 
ScreenSaver(PopUpManager.createPopUp(this,ScreenSaver,true));
popScreenSaver.setStyle("modalTrasparancy",0.2);
popScreenSaver.setStyle("modalTransparencyBlur",10);
popScreenSaver.setStyle("modalTransparencyColor",0x00ff67); 
popScreenSaver.setStyle("modalTransparencyDuration",1500);
PopUpManager.addPopUp(popScreenSaver,this,true);
PopUpManager.centerPopUp(popScreenSaver);
popScreenSaver.init();

Paul
--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Yeah, sorry.  I forgot that systemManager is an interface.  It is also a 
> DisplayObject so try:
> 
> DisplayObject(systemManager).filters[blur];
> 
> And to change it periodically, modify the blur and re-assign the entire array.
> 
> 
> On 4/27/10 10:27 AM, "aceoohay"  wrote:
> 
> 
> 
> 
> 
> 
> OK, so now I get;
> 
> Access of possibly undefined property filters through a reference with static 
> type mx.managers:ISystemManager
> 
> on either;
> 
> this.systemManager.filters = [blur];
> or
> systemManager.filters = [blur];
> 
> Paul
> 
> --- In flexcoders@yahoogroups.com  , 
> "aceoohay"  wrote:
> >
> > Alex:
> >
> > The following;
> >
> > var blur:BlurFilter = new BlurFilter();
> > blur.blurX = 10;
> > blur.blurY = 10;
> > blur.quality = BitmapFilterQuality.MEDIUM;
> > SystemManager.filters = [blur];
> >
> > compiles with the following error;
> >
> > Access of possibly undefined property filters through a reference with 
> > static type Class.
> >
> > on the SystemManager... line.
> >
> > This brings to mind a couple of questions;
> >
> > 1) how to correct the error?
> >
> > 2) Where should this code be running? In the main app, or in the popup?
> >
> > 3) How to turn it off?
> >
> > Paul
> >
> >
> > --- In flexcoders@yahoogroups.com  , 
> > Alex Harui  wrote:
> > >
> > > I was thinking something like:
> > >
> > > SystemManager.filters = [ new BlurFilter(...) ];
> > >
> > >
> > > On 4/26/10 10:30 AM, "aceoohay"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Alex:
> > >
> > > How?
> > >
> > > systemManager.setStyle("modalTransparencyBlur",10) ?
> > >
> > > Paul
> > >
> > > --- In flexcoders@yahoogroups.com   
> > >  , Alex Harui  wrote:
> > > >
> > > > What happens if you apply a filter to systemManager?
> > > >
> > > >
> > > > On 4/26/10 9:50 AM, "aceoohay"  wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Tom:
> > > >
> > > > How would I go about that? The two issues I see are;
> > > >
> > > > 1) Determine the width & height of the stage.
> > > >
> > > > 2) Create an object with a background that does the blur. I currently 
> > > > have a titlewindow in a canvas, so once I determine the height & width 
> > > > to use I can make the canvas as big as I want, but how do I make the 
> > > > canvas background blurry?
> > > >
> > > > Paul
> > > >
> > > > --- In flexcoders@yahoogroups.com  
> > > >    
> > > >  , Tom Chiverton  
> > > > wrote:
> > > > >
> > > > > On Monday 26 Apr 2010 16:07:27 you wrote:
> > > > > > Any ideas on how to blur everything including all modal windows.
> > > > >
> > > > > Add a new object the full width/height of the Stage ?
> > > > >
> > > > > --
> > > > > Helping to revolutionarily e-enable leading-edge virtual magnetic 
> > > > > industry-
> > > > > wide interfaces as part of the IT team of the year 2010, '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 r

Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Oleg Sivokon
Sorry, I've got that one wrong :)

public override function set data(value:Object):void
{
this.checkBox.checked =  this.parentDocument.amIChecked(this);
super.data = value;
}


Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Oleg Sivokon
http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/spark/components/DataGroup.html#itemRendererFunction
( this is Flex 4, it didn't exist in Flex 3 )

But, no, it shouldn't work like that out of the box because renderers are
reused, when the list based control lays out a renderer it may use an old
one (since flex controls are in general very heavy, and it would be a huge
waste of resources to create them every time anew, or let you have a lot of
them in memory at a time). So, list based controls create the number of
visible renderers + 2-8 additional renderers for cases like scrolling.

If there aren't to many renderers, you could tell a parentDocument from
inside the item renderer, if the CB is checked, and then once the list
scrolls, the renderer would have it's data property reset, then, it could
check against parent document, and if it's index is registered as checked,
it would set the CB to checked, else, it would uncheck it.

Think of something like this:

public override function set data(value:Object):void
{
if ( this.parentDocument.amIChecked( this ) this.checkBox.checked = true;
else this.checkBox.checked = true;
super.data = value;
}

private function cb_clickHandler(event:MouseEvent):void
{
this.parentDocument.checkMe( this, (event.currentTarget as
CheckBox).checked);
}

/* parent document */

public function amIChecked(renderer:ItemRenderer):Boolean
{
return this._allCheckedArray[dg.itemIndex(renderer)];
}

public function checkMe(renderer:ItemRenderer, checked:Boolean):void
{
return this._allCheckedArray[dg.itemIndex(renderer)] = checked;
}


[flexcoders] Re: Two TextAreas not staying in sync with verticalScrollPosition.

2010-04-27 Thread slugolicious


Figured it out.  There are a sequence of 3 events (there are really more than 3 
but 3 that are relative to this problem).

TextEvent.TEXT_INPUT
ScrollEvent.SCROLL
Event.CHANGE

Most of my work is done in CHANGE.  That's where I add more line numbers.  When 
I step through the SCROLL event, I can see that a value of 500 is being set for 
UITextField.scrollV but upon returning from the Flash.Text code, it's set to 
120, so it is indeed checking how many lines of text are in the TextArea before 
it updates the scroll value.

The odd thing is that the TextArea.verticalScrollPosition is set to 500 but the 
internal UITextField.scrollV is set to 120, so they're out of sync.

To fix it I added a handler for TEXT_INPUT and that's where I add more line 
numbers.  Then when the SCROLL event happens, it successfully sets it to 500.



Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Fernando Wermus
Oleg,
I cant associate the state with the data, and I cant find any info
about itemRendereFunction. Do you have any link about it? According to my
code, I would think this just should happen.

I re write down my code:








On Tue, Apr 27, 2010 at 3:10 PM, Oleg Sivokon  wrote:

>
>
> Hi, the list based controls may reuse the item renderers, however they
> might not be aware of the changes that had happened to them. Normally you
> would store the state with the data which the renderer has to display. So
> that once the data is reset, the render appearance would reset with it. If,
> for whatever reason you cannot store the state of the renderer with the
> data, you would have to store the references to either manage the how the
> item renderers are created (by using the itemRendereFunction for example),
> or update the display of the control whenever the new (or an old new) item
> renderer is added - IMO complicated.
>
>  
>



-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: [flexcoders] Flash Builder 4 "java heap space" error.

2010-04-27 Thread Oleg Sivokon
Increase JVM memory

*-Xms Am -Xmx Bm*
*
*
(A is the initial memory size B is the maximum size in megabytes)
you may do this globally in jvm configuration file, or per application run.
I even think that MXMLC will accept -jvmargs parameter to pass arguments to
jvm before it starts (MXMLC exe is a launcher, that launches the mxmlc.jar).
More here:
http://www.caucho.com/resin-3.0/performance/jvm-tuning.xtp


Re: [flexcoders] Re: Modal windows and blur problem...

2010-04-27 Thread Alex Harui
Yeah, sorry.  I forgot that systemManager is an interface.  It is also a 
DisplayObject so try:

DisplayObject(systemManager).filters[blur];

And to change it periodically, modify the blur and re-assign the entire array.


On 4/27/10 10:27 AM, "aceoohay"  wrote:






OK, so now I get;

Access of possibly undefined property filters through a reference with static 
type mx.managers:ISystemManager

on either;

this.systemManager.filters = [blur];
or
systemManager.filters = [blur];

Paul

--- In flexcoders@yahoogroups.com  , 
"aceoohay"  wrote:
>
> Alex:
>
> The following;
>
> var blur:BlurFilter = new BlurFilter();
> blur.blurX = 10;
> blur.blurY = 10;
> blur.quality = BitmapFilterQuality.MEDIUM;
> SystemManager.filters = [blur];
>
> compiles with the following error;
>
> Access of possibly undefined property filters through a reference with static 
> type Class.
>
> on the SystemManager... line.
>
> This brings to mind a couple of questions;
>
> 1) how to correct the error?
>
> 2) Where should this code be running? In the main app, or in the popup?
>
> 3) How to turn it off?
>
> Paul
>
>
> --- In flexcoders@yahoogroups.com  , 
> Alex Harui  wrote:
> >
> > I was thinking something like:
> >
> > SystemManager.filters = [ new BlurFilter(...) ];
> >
> >
> > On 4/26/10 10:30 AM, "aceoohay"  wrote:
> >
> >
> >
> >
> >
> >
> > Alex:
> >
> > How?
> >
> > systemManager.setStyle("modalTransparencyBlur",10) ?
> >
> > Paul
> >
> > --- In flexcoders@yahoogroups.com   
> >  , Alex Harui  wrote:
> > >
> > > What happens if you apply a filter to systemManager?
> > >
> > >
> > > On 4/26/10 9:50 AM, "aceoohay"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Tom:
> > >
> > > How would I go about that? The two issues I see are;
> > >
> > > 1) Determine the width & height of the stage.
> > >
> > > 2) Create an object with a background that does the blur. I currently 
> > > have a titlewindow in a canvas, so once I determine the height & width to 
> > > use I can make the canvas as big as I want, but how do I make the canvas 
> > > background blurry?
> > >
> > > Paul
> > >
> > > --- In flexcoders@yahoogroups.com   
> > >   
> > >  , Tom Chiverton  
> > > wrote:
> > > >
> > > > On Monday 26 Apr 2010 16:07:27 you wrote:
> > > > > Any ideas on how to blur everything including all modal windows.
> > > >
> > > > Add a new object the full width/height of the Stage ?
> > > >
> > > > --
> > > > Helping to revolutionarily e-enable leading-edge virtual magnetic 
> > > > industry-
> > > > wide interfaces as part of the IT team of the year 2010, '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.
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe System, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


RE: [flexcoders] Flex 4 RichEditableText component ignores multipe space

2010-04-27 Thread Peter DeHaan
Can you please file a bug at http://bugs.adobe.com/flex/ and include your test 
case and we can take a look.

Peter



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of johanlopes
Sent: Tuesday, April 27, 2010 11:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 4 RichEditableText component ignores multipe space



I have a use case where we have two Flex 4 RichEditableText components. (Using 
the latest public Flash Builder 4; Flex 4 SDK version: 4.0.0.14159).

One of the component is bound to the other's 'text' property through 
TextConverter.importToFlow.

The problem is, after hitting the space key on the keyboard more than once, the 
whitespace is shown only once on the other RichEditableText component. It 
seems, the TextConverter.importToFlow stops updating and ignores the second and 
all subsequent space on the other text component. When we trace the 
TextConverter.importToFlow(editor.text, TextConverter.TEXT_FIELD_HTML_FORMAT) 
value, we can see multiple break tags as html, but the component displays only 
one of them.

What are we doing wrong? Is this even possible using the Spark components? 
Please note that this is not a simple matter of changing to a simple 2-way 
binding between these two components. Our use case dictates that we use 
TextConverter.importToFlow as we're working with a server-side model.

How to reproduce:

1. Place the cursor between "Test Test" and hit "Backspace" on your keyboard.

2. See how the two components now both display "TestTest".

3. Place the cursor between "TestTest" and hit the space key on your keyboard 
once, hit it twice Now see how the other component stops updating to show 
the space between "Test Test" after only the first space.

Result:

"Test Test"

Expected result (after hitting the space key twice):

"Test Test" on both text fields.

Code:


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">














Any pointers welcome.



[flexcoders] Flash Builder 4 "java heap space" error.

2010-04-27 Thread Christopher McArthur
Flash Builder 4 is crashing constantly for me with a "java heap space"
error when compiling. It is driving me nuts.

 

Im running on Windows Vista 64bit and 4GB of RAM. When this error occurs
FlashBuilder is using about 780MB of RAM, and I have about 1.5GB of ram
still free

 

Research online suggests messing around with the vmargs in
flashbuilder.ini. Ive tried changing the settings to ones people
reccomended online to no effect.  Im really not sure what these settings
actually mean, so not sure what effect changing them has or what the
right numbers are. I tried raising them all  and still get a lot of heap
errors.

 

 

Can anyone give me any advice?

 

-ctm

 

 



Re: [flexcoders] Explicitly setting the height of a row in a DataGrid

2010-04-27 Thread Jason Proulx
Excellent suggestion, thanks Alex!

Jay
Sent from my iPad

On 2010-04-27, at 10:54 AM, Alex Harui  wrote:



I would do that by having a renderer that draws outside its given bounds,
and other renderers to the right that set alpha=0 so they don’t show up.


On 4/26/10 11:01 AM, "Jay Proulx"
>
wrote:






Because I want to add a "colSpan" so to speak, so that I can have a row
renderer for child data.
e.g.:


|[ Cell ] [ Cell ] [ Cell ]|
|[  Child]|
[ Cell ] [  Cell  ] [ Cell ]
[ Cell ] [  Cell  ] [ Cell ]
[ Cell ] [  Cell  ] [ Cell ]


i.e.: Child floats at the top of listContent, and the parent row is
stretched to create the gap for the child to inhabit.

ADG doesn't quite do it because it's tree column is only 1 column , the
other option would be to add columns to Tree.  The latter may be easier to
implement with a new default renderer.

Thanks for the quick reply Alex :)


*Jay Proulx
*jason.pro...@pollensoft.com


http://blog.pollensoft.com 
http://twitter.com/pollensoft 
http://ca.linkedin.com/in/jayproulx 


*From:* flexcoders@yahoogroups.com  [
mailto:flexcoders@yahoogroups.com ] *On Behalf
Of *Alex Harui
*Sent:* Monday, April 26, 2010 1:15 PM
*To:* flexcoders@yahoogroups.com 
*Subject:* Re: [flexcoders] Explicitly setting the height of a row in a
DataGrid



I think rowInfo is going to get refreshed by makeRowsAndColumns.  Why are
you adding to listContent?  Normally you’d alter the measuredHeight of a
renderer to get a row to grow and add any new widgets to the renderer.


On 4/26/10 7:21 AM, "Jay Proulx"
>
wrote:







Good morning all,

I have a custom DataGrid that handles an event from one of its item
renderers, adds a new component to listContent (and positions and sizes it),
then I want to increase the height of the associated row.

Right now I'm setting rowInfo[rowId].height, and calling invalidate*(); but
I'm not getting the desired reaction.  I can see that the rendering is all
happening correctly and I have all of the correct values, but the row won't
change size.

Any thoughts/examples?  I've been searching around but haven't found what
I'm looking for...

*Jay Proulx
*jason.pro...@pollensoft.com
http://blog.pollensoft.com
http://twitter.com/pollensoft
http://ca.linkedin.com/in/jayproulx








-- 
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui 

 


[flexcoders] Flex 4 RichEditableText component ignores multipe space

2010-04-27 Thread johanlopes
I have a use case where we have two Flex 4 RichEditableText components. (Using 
the latest public Flash Builder 4; Flex 4 SDK version: 4.0.0.14159).

One of the component is bound to the other's 'text' property through 
TextConverter.importToFlow.

The problem is, after hitting the space key on the keyboard more than once, the 
whitespace is shown only once on the other RichEditableText component. It 
seems, the TextConverter.importToFlow stops updating and ignores the second and 
all subsequent space on the other text component. When we trace the 
TextConverter.importToFlow(editor.text, TextConverter.TEXT_FIELD_HTML_FORMAT) 
value, we can see multiple break tags as html, but the component displays only 
one of them. 

What are we doing wrong? Is this even possible using the Spark components? 
Please note that this is not a simple matter of changing to a simple 2-way 
binding between these two components. Our use case dictates that we use 
TextConverter.importToFlow as we're working with a server-side model.

How to reproduce:

1. Place the cursor between "Test Test" and hit "Backspace" on your keyboard.

2. See how the two components now both display "TestTest".

3. Place the cursor between "TestTest" and hit the space key on your keyboard 
once, hit it twice Now see how the other component stops updating to show 
the space between "Test Test" after only the first space.

Result:

"Test Test"

Expected result (after hitting the space key twice):

"Test  Test" on both text fields.

Code: 


http://ns.adobe.com/mxml/2009"; 
   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/mx">














Any pointers welcome.



Re: [flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Oleg Sivokon
Hi, the list based controls may reuse the item renderers, however they might
not be aware of the changes that had happened to them. Normally you would
store the state with the data which the renderer has to display. So that
once the data is reset, the render appearance would reset with it. If, for
whatever reason you cannot store the state of the renderer with the data,
you would have to store the references to either manage the how the item
renderers are created (by using the itemRendereFunction for example), or
update the display of the control whenever the new (or an old new) item
renderer is added - IMO complicated.


[flexcoders] Another Modal windows and blur problem...

2010-04-27 Thread aceoohay
I have created a modal window as described in an earlier post that acts as a 
privacy screen/screen saver for folks that walk away from their computer.

To make it a bit more entertaining I wanted to periodiaclly change the 
"modalTransparencyColor". I set up a 20 second timer in the popup and have 
tried to do a setStyle to a random color like this;

var intRed:int = Math.round(Math.random() * (255));
var intBlue:int = Math.round(Math.random() * (255));
var intGreen:int = Math.round(Math.random() * (255));
this.setStyle("modalTransparencyColor",(intRed * 65536) + (intBlue*256) + 
intGreen)
trace("xcolor=" + ((intRed * 65536) + (intBlue*256) + intGreen).toString());

Nothing changes although I see the trace every 20 seconds.

Any ideas?

Paul



[flexcoders] Re: Modal windows and blur problem...

2010-04-27 Thread aceoohay
OK, so now I get;

Access of possibly undefined property filters through a reference with static 
type mx.managers:ISystemManager

on either;

this.systemManager.filters = [blur];
or
systemManager.filters = [blur];

Paul

--- In flexcoders@yahoogroups.com, "aceoohay"  wrote:
>
> Alex:
> 
> The following;
> 
>   var blur:BlurFilter = new BlurFilter();
>   blur.blurX = 10;
>   blur.blurY = 10;
>   blur.quality = BitmapFilterQuality.MEDIUM;
>   SystemManager.filters = [blur];
> 
> compiles with the following error;
> 
> Access of possibly undefined property filters through a reference with static 
> type Class.
> 
> on the SystemManager... line.
> 
> This brings to mind a couple of questions;
> 
> 1) how to correct the error?
> 
> 2) Where should this code be running? In the main app, or in the popup?
> 
> 3) How to turn it off?
> 
> Paul 
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > I was thinking something like:
> > 
> > SystemManager.filters = [ new BlurFilter(...) ];
> > 
> > 
> > On 4/26/10 10:30 AM, "aceoohay"  wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > Alex:
> > 
> > How?
> > 
> > systemManager.setStyle("modalTransparencyBlur",10) ?
> > 
> > Paul
> > 
> > --- In flexcoders@yahoogroups.com  , 
> > Alex Harui  wrote:
> > >
> > > What happens if you apply a filter to systemManager?
> > >
> > >
> > > On 4/26/10 9:50 AM, "aceoohay"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Tom:
> > >
> > > How would I go about that? The two issues I see are;
> > >
> > > 1) Determine the width & height of the stage.
> > >
> > > 2) Create an object with a background that does the blur. I currently 
> > > have a titlewindow in a canvas, so once I determine the height & width to 
> > > use I can make the canvas as big as I want, but how do I make the canvas 
> > > background blurry?
> > >
> > > Paul
> > >
> > > --- In flexcoders@yahoogroups.com   
> > >  , Tom Chiverton  
> > > wrote:
> > > >
> > > > On Monday 26 Apr 2010 16:07:27 you wrote:
> > > > > Any ideas on how to blur everything including all modal windows.
> > > >
> > > > Add a new object the full width/height of the Stage ?
> > > >
> > > > --
> > > > Helping to revolutionarily e-enable leading-edge virtual magnetic 
> > > > industry-
> > > > wide interfaces as part of the IT team of the year 2010, '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.
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe System, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
>




[flexcoders] Re: AIR update blocked by proxy server

2010-04-27 Thread Randy P
The answer is that the client's boundary policies block transfer of data 
between the desktop and outside servers.  We need to add our server to the 
access control list.

The customer's netadmin wants to know what ports the UPDATE FRAMEWORK uses for 
inbound and outbound traffic. Does anyone know??

TIA,

RT




--- In flexcoders@yahoogroups.com, Randy Tinfow  wrote:
>
> We have an AIR app on many desktops.  When it tries to update content the 
> client gets the message:
> 
> "Update request blocked by proxy server."
> 
> My understanding is that AIR reads the client browser's proxy settings and 
> uses them.  Any further understanding as to what the problem might be and how 
> to get around it?
> 
> Randy Tinfow
> IMAGE PLANT
>




[flexcoders] AIR update blocked by proxy server

2010-04-27 Thread Randy P
We have an AIR app running on corporate desktops. When it tries to update 
content some clients get the message:

"Update request blocked by proxy server."

My understanding is that AIR reads the client browser's proxy settings and uses 
them.  Any further understanding as to what the problem might be and how to get 
around it?

TIA,

Randy Tinfow
IMAGE PLANT




[flexcoders] checkbox change while I move the datagrid scroll bar

2010-04-27 Thread Fernando Wermus
Hi all,
   I just want to check and uncheck a checkbox in a datagrid. What I do is
to add or remove from the selected's collection. But I got an error index
when removing. Futhermore, the checked item change! when I move the datagrid
scroll bar. This is my code,













-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
Thanks. That worked!

Something else I tried also worked. Its based on original skin and uses 
updateDisplayList()...code below

But your suggestion is more elegant and better! 

Thanks for your help


code




override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number) : void
{   
  if(myUpImage)
  {
myUpImage.source = getStyle("upSkin");
  }
  if(myOverImage)
  {
myOverImage.source = getStyle("overSkin");
  }
  if(myDownImage)
  {
myDownImage.source = getStyle("downSkin");
  }

 super.updateDisplayList(unscaledWidth, unscaledHeight);
}
}



--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> Of course! The getStyle function calls need to be set in curly braces like:
> 
> source.up="{getStyle('upSkin')}"
> 
> Sorry!
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Tue, Apr 27, 2010 at 3:03 PM, bhaq1972  wrote:
> 
> >
> >
> > Hasn't worked.
> >
> > --- In flexcoders@yahoogroups.com , Haykel
> > BEN JEMIA  wrote:
> > >
> > > If it does not work try replacing getStyle with hostComponent.getStyle.
> > >
> > > Haykel Ben Jemia
> > >
> > > Allmas
> > > Web & RIA Development
> > > http://www.allmas-tn.com
> > >
> > >
> > >
> > >
> > > On Tue, Apr 27, 2010 at 1:43 PM, bhaq1972  wrote:
> > >
> > > >
> > > >
> > > > Its a great idea but I haven't been able to make it work.
> > > >
> > > > I will try again after lunch (need a break)
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com 
> > > >  > 40yahoogroups.com>, Haykel
> >
> > > > BEN JEMIA  wrote:
> > > > >
> > > > > Try this (not etsted):
> > > > >
> > > > >  > > > > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > > > xmlns:s="library://ns.adobe.com/flex/spark">
> > > > >
> > > > > 
> > > > > [HostComponent("spark.components.Button")]
> > > > > 
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >  > > > > source.up="getStyle('upSkin')"
> > > > > source.over="getStyle('overSkin')"
> > > > > source.down="getStyle('downSkin')"
> > > > > />
> > > > >
> > > > > 
> > > > >
> > > > >
> > > > > Haykel Ben Jemia
> > > > >
> > > > > Allmas
> > > > > Web & RIA Development
> > > > > http://www.allmas-tn.com
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Apr 27, 2010 at 12:47 PM, bhaq1972  wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > I have a set of button skins which all look like the following skin
> > > > > >
> > > > > >  > > > > > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > > > > xmlns:s="library://ns.adobe.com/flex/spark">
> > > > > >
> > > > > > 
> > > > > > [HostComponent("spark.components.Button")]
> > > > > > 
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > 
> > > > > >  > > > > > includeIn="up" />
> > > > > >
> > > > > > 
> > > > > >  > > > > > includeIn="over" />
> > > > > >
> > > > > > 
> > > > > >  > > > includeIn="down"
> > > > > > />
> > > > > >
> > > > > > 
> > > > > > ---
> > > > > > The only difference between all the skins is the image source they
> > use.
> > > > > > Is it possible to make this generic so I can define the image
> > source in
> > > > the
> > > > > > style sheet.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > Btw, In Flex 3, it was very easy to change the image skin in the
> > style
> > > > > > sheets using styleName. eg
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > .LeftArrow
> > > > > > {
> > > > > > upSkin: Embed(source="assets/previous_default.png");
> > > > > > overSkin: Embed(source="assets/previous_hover.png");
> > > > > > downSkin: Embed(source="assets/previous_down.png");
> > > > > > }
> > > > > > .RightArrow
> > > > > > {
> > > > > > upSkin: Embed(source="assets/right_default.png");
> > > > > > overSkin: Embed(source="assets/right_hover.png");
> > > > > > downSkin: Embed(source="assets/right_down.png");
> > > > > > }
> > > > > > 
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread Haykel BEN JEMIA
Of course! The getStyle function calls need to be set in curly braces like:

source.up="{getStyle('upSkin')}"

Sorry!

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Apr 27, 2010 at 3:03 PM, bhaq1972  wrote:

>
>
> Hasn't worked.
>
> --- In flexcoders@yahoogroups.com , Haykel
> BEN JEMIA  wrote:
> >
> > If it does not work try replacing getStyle with hostComponent.getStyle.
> >
> > Haykel Ben Jemia
> >
> > Allmas
> > Web & RIA Development
> > http://www.allmas-tn.com
> >
> >
> >
> >
> > On Tue, Apr 27, 2010 at 1:43 PM, bhaq1972  wrote:
> >
> > >
> > >
> > > Its a great idea but I haven't been able to make it work.
> > >
> > > I will try again after lunch (need a break)
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, Haykel
>
> > > BEN JEMIA  wrote:
> > > >
> > > > Try this (not etsted):
> > > >
> > > >  > > > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > > xmlns:s="library://ns.adobe.com/flex/spark">
> > > >
> > > > 
> > > > [HostComponent("spark.components.Button")]
> > > > 
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > >  > > > source.up="getStyle('upSkin')"
> > > > source.over="getStyle('overSkin')"
> > > > source.down="getStyle('downSkin')"
> > > > />
> > > >
> > > > 
> > > >
> > > >
> > > > Haykel Ben Jemia
> > > >
> > > > Allmas
> > > > Web & RIA Development
> > > > http://www.allmas-tn.com
> > > >
> > > >
> > > >
> > > >
> > > > On Tue, Apr 27, 2010 at 12:47 PM, bhaq1972  wrote:
> > > >
> > > > >
> > > > >
> > > > > I have a set of button skins which all look like the following skin
> > > > >
> > > > >  > > > > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > > > xmlns:s="library://ns.adobe.com/flex/spark">
> > > > >
> > > > > 
> > > > > [HostComponent("spark.components.Button")]
> > > > > 
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > 
> > > > >  > > > > includeIn="up" />
> > > > >
> > > > > 
> > > > >  > > > > includeIn="over" />
> > > > >
> > > > > 
> > > > >  > > includeIn="down"
> > > > > />
> > > > >
> > > > > 
> > > > > ---
> > > > > The only difference between all the skins is the image source they
> use.
> > > > > Is it possible to make this generic so I can define the image
> source in
> > > the
> > > > > style sheet.
> > > > >
> > > > > Thanks
> > > > >
> > > > > Btw, In Flex 3, it was very easy to change the image skin in the
> style
> > > > > sheets using styleName. eg
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > .LeftArrow
> > > > > {
> > > > > upSkin: Embed(source="assets/previous_default.png");
> > > > > overSkin: Embed(source="assets/previous_hover.png");
> > > > > downSkin: Embed(source="assets/previous_down.png");
> > > > > }
> > > > > .RightArrow
> > > > > {
> > > > > upSkin: Embed(source="assets/right_default.png");
> > > > > overSkin: Embed(source="assets/right_hover.png");
> > > > > downSkin: Embed(source="assets/right_down.png");
> > > > > }
> > > > > 
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Explicitly setting the height of a row in a DataGrid

2010-04-27 Thread Alex Harui
I would do that by having a renderer that draws outside its given bounds, and 
other renderers to the right that set alpha=0 so they don’t show up.


On 4/26/10 11:01 AM, "Jay Proulx"  wrote:






Because I want to add a "colSpan" so to speak, so that I can have a row 
renderer for child data.
e.g.:


|[ Cell ] [ Cell ] [ Cell ]|
|[  Child]|
[ Cell ] [  Cell  ] [ Cell ]
[ Cell ] [  Cell  ] [ Cell ]
[ Cell ] [  Cell  ] [ Cell ]


i.e.: Child floats at the top of listContent, and the parent row is stretched 
to create the gap for the child to inhabit.

ADG doesn't quite do it because it's tree column is only 1 column , the other 
option would be to add columns to Tree.  The latter may be easier to implement 
with a new default renderer.

Thanks for the quick reply Alex :)


Jay Proulx
jason.pro...@pollensoft.com 
http://blog.pollensoft.com 
http://twitter.com/pollensoft 
http://ca.linkedin.com/in/jayproulx 


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Monday, April 26, 2010 1:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Explicitly setting the height of a row in a DataGrid



I think rowInfo is going to get refreshed by makeRowsAndColumns.  Why are you 
adding to listContent?  Normally you’d alter the measuredHeight of a renderer 
to get a row to grow and add any new widgets to the renderer.


On 4/26/10 7:21 AM, "Jay Proulx"  wrote:






Good morning all,

I have a custom DataGrid that handles an event from one of its item renderers, 
adds a new component to listContent (and positions and sizes it), then I want 
to increase the height of the associated row.

Right now I'm setting rowInfo[rowId].height, and calling invalidate*(); but I'm 
not getting the desired reaction.  I can see that the rendering is all 
happening correctly and I have all of the correct values, but the row won't 
change size.

Any thoughts/examples?  I've been searching around but haven't found what I'm 
looking for...

Jay Proulx
jason.pro...@pollensoft.com
http://blog.pollensoft.com
http://twitter.com/pollensoft
http://ca.linkedin.com/in/jayproulx








--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: Modal windows and blur problem...

2010-04-27 Thread Alex Harui
Sorry, my email keeps capitalizing things.  It should be systemManager.  You 
set it from app or popup, shouldn’t matter, and set filters to null when done.  
Or maybe empty array, I don’t remember OTOH.


On 4/27/10 7:11 AM, "aceoohay"  wrote:






Alex:

The following;

var blur:BlurFilter = new BlurFilter();
blur.blurX = 10;
blur.blurY = 10;
blur.quality = BitmapFilterQuality.MEDIUM;
SystemManager.filters = [blur];

compiles with the following error;

Access of possibly undefined property filters through a reference with static 
type Class.

on the SystemManager... line.

This brings to mind a couple of questions;

1) how to correct the error?

2) Where should this code be running? In the main app, or in the popup?

3) How to turn it off?

Paul

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> I was thinking something like:
>
> SystemManager.filters = [ new BlurFilter(...) ];
>
>
> On 4/26/10 10:30 AM, "aceoohay"  wrote:
>
>
>
>
>
>
> Alex:
>
> How?
>
> systemManager.setStyle("modalTransparencyBlur",10) ?
>
> Paul
>
> --- In flexcoders@yahoogroups.com   
>  , Alex Harui  wrote:
> >
> > What happens if you apply a filter to systemManager?
> >
> >
> > On 4/26/10 9:50 AM, "aceoohay"  wrote:
> >
> >
> >
> >
> >
> >
> > Tom:
> >
> > How would I go about that? The two issues I see are;
> >
> > 1) Determine the width & height of the stage.
> >
> > 2) Create an object with a background that does the blur. I currently have 
> > a titlewindow in a canvas, so once I determine the height & width to use I 
> > can make the canvas as big as I want, but how do I make the canvas 
> > background blurry?
> >
> > Paul
> >
> > --- In flexcoders@yahoogroups.com   
> >   
> >  , Tom Chiverton  
> > wrote:
> > >
> > > On Monday 26 Apr 2010 16:07:27 you wrote:
> > > > Any ideas on how to blur everything including all modal windows.
> > >
> > > Add a new object the full width/height of the Stage ?
> > >
> > > --
> > > Helping to revolutionarily e-enable leading-edge virtual magnetic 
> > > industry-
> > > wide interfaces as part of the IT team of the year 2010, '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.
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Modal windows and blur problem...

2010-04-27 Thread aceoohay
Alex:

The following;

var blur:BlurFilter = new BlurFilter();
blur.blurX = 10;
blur.blurY = 10;
blur.quality = BitmapFilterQuality.MEDIUM;
SystemManager.filters = [blur];

compiles with the following error;

Access of possibly undefined property filters through a reference with static 
type Class.

on the SystemManager... line.

This brings to mind a couple of questions;

1) how to correct the error?

2) Where should this code be running? In the main app, or in the popup?

3) How to turn it off?

Paul 


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I was thinking something like:
> 
> SystemManager.filters = [ new BlurFilter(...) ];
> 
> 
> On 4/26/10 10:30 AM, "aceoohay"  wrote:
> 
> 
> 
> 
> 
> 
> Alex:
> 
> How?
> 
> systemManager.setStyle("modalTransparencyBlur",10) ?
> 
> Paul
> 
> --- In flexcoders@yahoogroups.com  , 
> Alex Harui  wrote:
> >
> > What happens if you apply a filter to systemManager?
> >
> >
> > On 4/26/10 9:50 AM, "aceoohay"  wrote:
> >
> >
> >
> >
> >
> >
> > Tom:
> >
> > How would I go about that? The two issues I see are;
> >
> > 1) Determine the width & height of the stage.
> >
> > 2) Create an object with a background that does the blur. I currently have 
> > a titlewindow in a canvas, so once I determine the height & width to use I 
> > can make the canvas as big as I want, but how do I make the canvas 
> > background blurry?
> >
> > Paul
> >
> > --- In flexcoders@yahoogroups.com   
> >  , Tom Chiverton  
> > wrote:
> > >
> > > On Monday 26 Apr 2010 16:07:27 you wrote:
> > > > Any ideas on how to blur everything including all modal windows.
> > >
> > > Add a new object the full width/height of the Stage ?
> > >
> > > --
> > > Helping to revolutionarily e-enable leading-edge virtual magnetic 
> > > industry-
> > > wide interfaces as part of the IT team of the year 2010, '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.
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: Creating Spark controlBar with ActionScript

2010-04-27 Thread bhaq1972
I did this little test. It should help.


  

  



 


--- In flexcoders@yahoogroups.com, "de.newsight"  wrote:
>
> Hi all,
> 
> I'm looking for an example how to create a Spark controlbar with AS not MXML. 
> Any ideas are more than appreciated.
> 
> Artur
>




[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
Hasn't worked. 



--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> If it does not work try replacing getStyle with hostComponent.getStyle.
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Tue, Apr 27, 2010 at 1:43 PM, bhaq1972  wrote:
> 
> >
> >
> > Its a great idea but I haven't been able to make it work.
> >
> > I will try again after lunch (need a break)
> >
> >
> > --- In flexcoders@yahoogroups.com , Haykel
> > BEN JEMIA  wrote:
> > >
> > > Try this (not etsted):
> > >
> > >  > > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > xmlns:s="library://ns.adobe.com/flex/spark">
> > >
> > > 
> > > [HostComponent("spark.components.Button")]
> > > 
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > >  > > source.up="getStyle('upSkin')"
> > > source.over="getStyle('overSkin')"
> > > source.down="getStyle('downSkin')"
> > > />
> > >
> > > 
> > >
> > >
> > > Haykel Ben Jemia
> > >
> > > Allmas
> > > Web & RIA Development
> > > http://www.allmas-tn.com
> > >
> > >
> > >
> > >
> > > On Tue, Apr 27, 2010 at 12:47 PM, bhaq1972  wrote:
> > >
> > > >
> > > >
> > > > I have a set of button skins which all look like the following skin
> > > >
> > > >  > > > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > > xmlns:s="library://ns.adobe.com/flex/spark">
> > > >
> > > > 
> > > > [HostComponent("spark.components.Button")]
> > > > 
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > > >  > > > includeIn="up" />
> > > >
> > > > 
> > > >  > > > includeIn="over" />
> > > >
> > > > 
> > > >  > includeIn="down"
> > > > />
> > > >
> > > > 
> > > > ---
> > > > The only difference between all the skins is the image source they use.
> > > > Is it possible to make this generic so I can define the image source in
> > the
> > > > style sheet.
> > > >
> > > > Thanks
> > > >
> > > > Btw, In Flex 3, it was very easy to change the image skin in the style
> > > > sheets using styleName. eg
> > > >
> > > > 
> > > > 
> > > > 
> > > > .LeftArrow
> > > > {
> > > > upSkin: Embed(source="assets/previous_default.png");
> > > > overSkin: Embed(source="assets/previous_hover.png");
> > > > downSkin: Embed(source="assets/previous_down.png");
> > > > }
> > > > .RightArrow
> > > > {
> > > > upSkin: Embed(source="assets/right_default.png");
> > > > overSkin: Embed(source="assets/right_hover.png");
> > > > downSkin: Embed(source="assets/right_down.png");
> > > > }
> > > > 
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] Large number of view states

2010-04-27 Thread Andrew
I am building a complex form, where what you choose in the first dropdown menu 
determines whether the next control is a text field, number picker, or menu; 
and the choice there governs the type and options of the third control; and so 
on to a maximum of six input controls in a single row. The full form has thirty 
rows.

I want to manage the appearance of the controls through states, as that seems 
to give me the simplest development path. Each row will be a component with a 
ton of view states. So here's my question: is there a recommended maximum 
number of states for a single component?

Thanks in advance.

Andrew



[flexcoders] Creating Spark controlBar with ActionScript

2010-04-27 Thread de.newsight
Hi all,

I'm looking for an example how to create a Spark controlbar with AS not MXML. 
Any ideas are more than appreciated.

Artur



Re: [flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread Haykel BEN JEMIA
If it does not work try replacing getStyle with hostComponent.getStyle.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Apr 27, 2010 at 1:43 PM, bhaq1972  wrote:

>
>
> Its a great idea but I haven't been able to make it work.
>
> I will try again after lunch (need a break)
>
>
> --- In flexcoders@yahoogroups.com , Haykel
> BEN JEMIA  wrote:
> >
> > Try this (not etsted):
> >
> >  > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > xmlns:s="library://ns.adobe.com/flex/spark">
> >
> > 
> > [HostComponent("spark.components.Button")]
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  > source.up="getStyle('upSkin')"
> > source.over="getStyle('overSkin')"
> > source.down="getStyle('downSkin')"
> > />
> >
> > 
> >
> >
> > Haykel Ben Jemia
> >
> > Allmas
> > Web & RIA Development
> > http://www.allmas-tn.com
> >
> >
> >
> >
> > On Tue, Apr 27, 2010 at 12:47 PM, bhaq1972  wrote:
> >
> > >
> > >
> > > I have a set of button skins which all look like the following skin
> > >
> > >  > > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > > xmlns:s="library://ns.adobe.com/flex/spark">
> > >
> > > 
> > > [HostComponent("spark.components.Button")]
> > > 
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > 
> > >  > > includeIn="up" />
> > >
> > > 
> > >  > > includeIn="over" />
> > >
> > > 
> > >  includeIn="down"
> > > />
> > >
> > > 
> > > ---
> > > The only difference between all the skins is the image source they use.
> > > Is it possible to make this generic so I can define the image source in
> the
> > > style sheet.
> > >
> > > Thanks
> > >
> > > Btw, In Flex 3, it was very easy to change the image skin in the style
> > > sheets using styleName. eg
> > >
> > > 
> > > 
> > > 
> > > .LeftArrow
> > > {
> > > upSkin: Embed(source="assets/previous_default.png");
> > > overSkin: Embed(source="assets/previous_hover.png");
> > > downSkin: Embed(source="assets/previous_down.png");
> > > }
> > > .RightArrow
> > > {
> > > upSkin: Embed(source="assets/right_default.png");
> > > overSkin: Embed(source="assets/right_hover.png");
> > > downSkin: Embed(source="assets/right_down.png");
> > > }
> > > 
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] 3d social graph

2010-04-27 Thread cholid cholid
hi all
can show to us some lib/app of 3D social graph?
thanks



  

[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
Its a great idea but I haven't been able to make it work. 

I will try again after lunch (need a break)



--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> Try this (not etsted):
> 
>  xmlns:fx="http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark">
> 
> 
> [HostComponent("spark.components.Button")]
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  source.up="getStyle('upSkin')"
> source.over="getStyle('overSkin')"
> source.down="getStyle('downSkin')"
> />
> 
> 
> 
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Tue, Apr 27, 2010 at 12:47 PM, bhaq1972  wrote:
> 
> >
> >
> > I have a set of button skins which all look like the following skin
> >
> >  > xmlns:fx="http://ns.adobe.com/mxml/2009";
> > xmlns:s="library://ns.adobe.com/flex/spark">
> >
> > 
> > [HostComponent("spark.components.Button")]
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> >  > includeIn="up" />
> >
> > 
> >  > includeIn="over" />
> >
> > 
> >  > />
> >
> > 
> > ---
> > The only difference between all the skins is the image source they use.
> > Is it possible to make this generic so I can define the image source in the
> > style sheet.
> >
> > Thanks
> >
> > Btw, In Flex 3, it was very easy to change the image skin in the style
> > sheets using styleName. eg
> >
> > 
> > 
> > 
> > .LeftArrow
> > {
> > upSkin: Embed(source="assets/previous_default.png");
> > overSkin: Embed(source="assets/previous_hover.png");
> > downSkin: Embed(source="assets/previous_down.png");
> > }
> > .RightArrow
> > {
> > upSkin: Embed(source="assets/right_default.png");
> > overSkin: Embed(source="assets/right_hover.png");
> > downSkin: Embed(source="assets/right_down.png");
> > }
> > 
> >
> >  
> >
>




Re: [flexcoders] Hello All FlexeeFriends...

2010-04-27 Thread Shabir Gilkar
Registration process is not working, showing some RPC error 404 Url error

On Mon, Apr 19, 2010 at 3:23 PM, srini_stellarip
wrote:

>
>
> Hello..
> Check this cool site to practice FLex online..signup and start practising
> Flex
>
> http://www.flexatschool.com
>
> 
>



-- 
With Regards

Shabir Ahmad Gilkar

Srinagar Kashmir J&K

Voice: +91 9419942501
email: shabirgil...@gmail.com
URL:   http://shabirgilkar.wordpress.com
Skype: shabirgilkar


Re: [flexcoders] FB4: editing one project, not finding classes from another referenced project

2010-04-27 Thread Margo Powell

Selecting File>Refresh on the project should help.(or press F5 key)

On 4/26/2010 2:03 PM, technusiast wrote:
 


Hi FlexCoders,

I'm using Flashbuilder 4 and have 2 different projects that are both 
open. Project A is set up so that it references the source folder of 
Project B. When editing files from A, the code hints show the classes 
from B. I just inherited this setup.


I just added new classes in Project B, and noticed that these new 
classes are not visible from Project A. The code hints do not show 
these new classes, and compiling A results in errors stating that the 
class is not found. I've looked at all the location for specifying 
project properties for A, but couldn't seem to find the fix for this 
problem.


Any ideas what the fix to this problem is?

Thanks,
Henry





--
Margo Powell
Applications Analyst
MS Computer Science
Department of Nutrition
University of North Carolina at Chapel Hill
800 Eastowne Dr, Suite 100
Chapel Hill, NC 27514
919-408-3320 ext 30
margo_pow...@unc.edu

<>

Re: [flexcoders] Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread Haykel BEN JEMIA
Try this (not etsted):

http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark">


[HostComponent("spark.components.Button")]














Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Apr 27, 2010 at 12:47 PM, bhaq1972  wrote:

>
>
> I have a set of button skins which all look like the following skin
>
>  xmlns:fx="http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark">
>
> 
> [HostComponent("spark.components.Button")]
> 
>
> 
> 
> 
> 
> 
> 
>
> 
>  includeIn="up" />
>
> 
>  includeIn="over" />
>
> 
>  />
>
> 
> ---
> The only difference between all the skins is the image source they use.
> Is it possible to make this generic so I can define the image source in the
> style sheet.
>
> Thanks
>
> Btw, In Flex 3, it was very easy to change the image skin in the style
> sheets using styleName. eg
>
> 
> 
> 
> .LeftArrow
> {
> upSkin: Embed(source="assets/previous_default.png");
> overSkin: Embed(source="assets/previous_hover.png");
> downSkin: Embed(source="assets/previous_down.png");
> }
> .RightArrow
> {
> upSkin: Embed(source="assets/right_default.png");
> overSkin: Embed(source="assets/right_hover.png");
> downSkin: Embed(source="assets/right_down.png");
> }
> 
>
>  
>


[flexcoders] Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
I have a set of button skins which all look like the following skin

http://ns.adobe.com/mxml/2009"; 
 xmlns:s="library://ns.adobe.com/flex/spark"> 

  
   [HostComponent("spark.components.Button")] 
 

  




   

 
  

 
 

 
 


---
The only difference between all the skins is the image source they use. 
Is it possible to make this generic so I can define the image source in the 
style sheet. 

Thanks


Btw, In Flex 3, it was very easy to change the image skin in the style sheets 
using styleName. eg




  .LeftArrow
  {
upSkin: Embed(source="assets/previous_default.png");
overSkin: Embed(source="assets/previous_hover.png");
downSkin: Embed(source="assets/previous_down.png");
   }
  .RightArrow
  {
upSkin: Embed(source="assets/right_default.png");
overSkin: Embed(source="assets/right_hover.png");
downSkin: Embed(source="assets/right_down.png");
   }




[flexcoders] Retrieving a logged in userid

2010-04-27 Thread James
My app displays items dynamically based on the value of a variable userid i.e. 
if userid is 1 all of the items in my array collection that have the user id of 
1 will be displayed in a tilelist.

What I want to do is have a log in system which will log users in but will also 
get the user id for that specific user and set it as my userid variable in my 
app so the app knows what user is logged in and can display any information 
relevant to that user.

My mysql table that stores all the users has the columns userid (the value I 
want which is specific to each user) username and password.

I've been using this tutorial which lets the user log in and if the login is 
successful some type of message is displayed but this solution doesn't allow 
the app to store what user is logged in via user id:-

http://cookbooks.adobe.com/post_Create_a_login_system_with_Flex_and_PHP-7243.html

Can anyone give me any advice on how to do this or what I'd need to do to 
modify this example to get the userid for the logged in user into my userid 
variable in my app please?



[flexcoders] Hello All FlexeeFriends...

2010-04-27 Thread srini_stellarip
Hello..
Check this cool site to practice FLex online..signup and start practising Flex

http://www.flexatschool.com



[flexcoders] FB4: editing one project, not finding classes from another referenced project

2010-04-27 Thread technusiast
Hi FlexCoders,

I'm using Flashbuilder 4 and have 2 different projects that are both open.  
Project A is set up so that it references the source folder of Project B.  When 
editing files from A, the code hints show the classes from B.  I just inherited 
this setup.

I just added new classes in Project B, and noticed that these new classes are 
not visible from Project A.  The code hints do not show these new classes, and 
compiling A results in errors stating that the class is not found.  I've looked 
at all the location for specifying project properties for A, but couldn't seem 
to find  the fix for this problem.

Any ideas what the fix to this problem is?

Thanks,
Henry





RE: [flexcoders] Explicitly setting the height of a row in a DataGrid

2010-04-27 Thread Jay Proulx
Because I want to add a "colSpan" so to speak, so that I can have a row
renderer for child data.

e.g.:

 



|[ Cell ] [ Cell ] [ Cell ]|

|[  Child ]|

[ Cell ] [  Cell  ] [ Cell ]

[ Cell ] [  Cell  ] [ Cell ]

[ Cell ] [  Cell  ] [ Cell ]



 

i.e.: Child floats at the top of listContent, and the parent row is
stretched to create the gap for the child to inhabit.

 

ADG doesn't quite do it because it's tree column is only 1 column , the
other option would be to add columns to Tree.  The latter may be easier to
implement with a new default renderer.

 

Thanks for the quick reply Alex :)

 

Jay Proulx

  jason.pro...@pollensoft.com

  http://blog.pollensoft.com

  http://twitter.com/pollensoft

  http://ca.linkedin.com/in/jayproulx

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Monday, April 26, 2010 1:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Explicitly setting the height of a row in a
DataGrid

 

  

I think rowInfo is going to get refreshed by makeRowsAndColumns.  Why are
you adding to listContent?  Normally you'd alter the measuredHeight of a
renderer to get a row to grow and add any new widgets to the renderer.


On 4/26/10 7:21 AM, "Jay Proulx"  wrote:


 
 
   

Good morning all,
 
I have a custom DataGrid that handles an event from one of its item
renderers, adds a new component to listContent (and positions and sizes it),
then I want to increase the height of the associated row.
 
Right now I'm setting rowInfo[rowId].height, and calling invalidate*(); but
I'm not getting the desired reaction.  I can see that the rendering is all
happening correctly and I have all of the correct values, but the row won't
change size.
 
Any thoughts/examples?  I've been searching around but haven't found what
I'm looking for...
 
Jay Proulx
jason.pro...@pollensoft.com
http://blog.pollensoft.com   
http://twitter.com/pollensoft
http://ca.linkedin.com/in/jayproulx

 
 
 
   




-- 
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui





[flexcoders] Flex 4: using controlBarLayout, controlBarGroup, controlBarContent with AS3

2010-04-27 Thread de.newsight
Hi all,

I have a AS3 class extended form a spark TitleWindow class, and now I am 
looking for a way how I can change the controlBarLayout, controlBarGroup and 
add items to controlBarContent directly with AS. I'vo goggled a lot but 
couldn't find any example. Can anyone help me?

Thanks, Artur



[flexcoders] Collapse Code and JavaDoc - Shortcut Not working OsX

2010-04-27 Thread Karim Beyrouti
Hello All - 

This has been bugging me for a while - 

the shortcut key to collapse / fold functions / javadoc in Flash Builder ( and 
Flex ) does not seem on OsX ( 10.6 ), and i have never been able to get it to 
work 
( CMD - SHIFT - NumPad / ) . Any idea why?


Cheers



Karim




[flexcoders] AIR update blocked by proxy server

2010-04-27 Thread Randy Tinfow
We have an AIR app on many desktops.  When it tries to update content the 
client gets the message:

"Update request blocked by proxy server."

My understanding is that AIR reads the client browser's proxy settings and uses 
them.  Any further understanding as to what the problem might be and how to get 
around it?

Randy Tinfow
IMAGE PLANT