[flexcoders] Why are embedded fonts lighter color than device fonts?

2010-05-12 Thread dorkie dork from dorktown
I have two RichText fields in a simple application. The one that is
using the system device fonts are a dark black. The one that is using
the embedded font is about two shades lighter. Both are the same font
(the embedded font is in the assets folder). Why are embedded fonts
lighter than device fonts?

JP


[flexcoders] Re: How to verify if a Font is embedded in a TLF Label or RichText

2010-05-12 Thread iflexicious
Are you sure you are using  embedAsCFF: true;


Thanks,
Sincerely
http://www.flexicious.com


--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
 wrote:
>
> How can I verify if a font is correctly embedded in a spark RichText or Label?
> 
> JP
>




[flexcoders] Inconsistent Layout

2010-05-12 Thread Doug
Hey gang... I've noticed a few odd things with Flex that I need help with.  
When I load the application there are sometimes that Spark buttons and labels 
position themselves at x=0, y=0 or just y=0 to the container they're in even 
though they have an x and y position assigned to them.
If you hit refresh in the browser you can sometimes fix this, other times, not. 
 What causes this?  Is it the transition between states?  How can I make sure 
they don't do this?



[flexcoders] Flexicious - DataGrid for Flex

2010-05-12 Thread iflexicious
Hello, We are trying to spread the word about our component - 
http://www.flexicious.com, this is a Extension to the Base Flex Datagrid and 
AdvancedDataGrid, that provides Filter, Paging, Footer, Print, Excel Export, 
PDF export, Column chooser, preference persistence and a bunch of other 
features. I hope you find it useful, we would love to get feedback!



[flexcoders] Strange Behavior When Loading Sub Application

2010-05-12 Thread jmbo...@bellsouth.net
Hi,

I am experiencing an odd problem and I hope someone knows why.  I am loading a 
sub-application using SWFLoader.  I listen for the Event.COMPLETE command. Once 
the swf is loaded, I then add a listener to the SystemManager for the swf and 
listen for the FlexEvent.APPLICATION_COMPLETE event.  At that point, I add the 
application as a child to a Canvas that exists in a view stack (see code 
below).  This is great, the content loads, but it doesn't seem to load 
correctly.  The legends in my charts are not oriented the way they should be 
and whenever I roll over an item with a tooltip, I get errors like the 
following error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at mx.managers::SystemManager/get 
toolTipChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:1178]
at 
mx.charts.chartClasses::ChartBase/updateDataTipToMatchHitSet()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\ChartBase.as:3030]


Does anyone have any clue what is going on??  Thanks,

Jim



!! snippet where swf is loaded 

..
var loader:SWFLoader = null;
if (content.contentType == ContentData.SWF)
{
var uri:String = content.contentUri;

var loaderContext:LoaderContext = new 
LoaderContext();
loaderContext.applicationDomain = 
ApplicationDomain.currentDomain;
loaderContext.securityDomain = 
SecurityDomain.currentDomain;

/* Create the swf loader and add it as a child 
to a canvas
 * so that it will have a place to display on 
the display list
 */
loader = new SWFLoader();
loader.scaleContent = true;
loader.loaderContext = loaderContext;
loader.addEventListener(Event.COMPLETE, 
onLoadingComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, 
onModuleLoadError);

loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onModuleLoadError);
loader.load(uri);
.

private function onLoadingComplete(event:Event):void
{
var swfLoader:SWFLoader = event.currentTarget as 
SWFLoader;
if (swfLoader != null && swfLoader.content != null)
{
/* Create an annoymous listener that 
dispatches an event when the module is ready to show */

sm.addEventListener(FlexEvent.APPLICATION_COMPLETE, 
function(flexEvent:FlexEvent):void
{
var 
cmEvent:ContentManagementEvent = new 
ContentManagementEvent(ContentManagementEvent.CONTENT_READY_TO_SHOW);
cmEvent.moduleLoader = 
swfLoader;
// Grab a reference to 
the module application itself
if 
(flexEvent.currentTarget.application is IModule)
{

cmEvent.moduleApp = flexEvent.currentTarget.application as IModule;
}
dispatch(cmEvent);

});
}
}
}

!! snippet when adding to Canvas 

if (event.moduleApp != null)
{
Logger.debug("Setting parentInjector and 
starting the RL context for :" + moduleId);

// Make sure the content fills the page
var subAppComponent:SubAppBase = 
SubAppBase(subApp);
subAppComponent.percentHeight = 100;
subAppComponent.percentWidth = 100;

/* Add to contentViewStack here based upon 
position
   Simply add as a child to the stub canvas 
that already
   exists for the module
 */
  

[flexcoders] How to verify if a Font is embedded in a TLF Label or RichText

2010-05-12 Thread dorkie dork from dorktown
How can I verify if a font is correctly embedded in a spark RichText or Label?

JP


[flexcoders] Dragged Items Icons Disappearing Whilst Being Dragged

2010-05-12 Thread James
In my air app I have 2 tilelists which contain items that have a label and an 
icon. When I drag each item during the drag the dragged items icon is 
disappearing as it's being moved.
 
The array collections which populate my 2 tilelists are populated dynamically 
via remote xml/http request.
 
Is there any way to fix this and is it a known problem?




Re: [flexcoders] How to layer popup windows

2010-05-12 Thread Greg Hess
Thanks Alex, much appreciated!

-Greg

On Tue, May 11, 2010 at 4:21 PM, Alex Harui  wrote:

>
>
> The Application and all popups are parented by the SystemManager.  The
> SystemManager divides its children into four childlists (application, popup,
> tooltip, cursor).  The Application childlist is the lowest so that children
> in the popup childlist float over them, tooltips float over the application
> and popups and cursors float over everything.  The popup children probably
> should’ve been called “floating” or something like that.
>
> The PopUpManager always adds a popup over all the other children currently
> in the childlist specified in addPopUp/createPopUp, so depending on the
> order and childlist specified, you can get different things at different
> levels.
>
> I suspect you want the top level popup to go in the popup childlist
>
>
>
> On 5/11/10 12:52 PM, "Greg Hess"  wrote:
>
>
>
>
>
>
> Hi Alex,
>
> No, I was not specifying the childList and never understood the implication
> of using that argument.
>
> I updated my code however, same result.
>
> My top level popup, or the one I want on top specifies the parent as the
> main application and uses APPLICATION childList arg. My small "middle layer"
> popup specifies the module as the parent and specifies PARENT as the
> childList however, when the middle layer popup displayes on top of the top
> level popup.
>
> Should this be working or am I still missing something?
>
> Not sure if it makes a difference, but the actual code for displaying the
> popups is in the main application and it is being called from the module.
>
> Thanks,
>
> Greg
>
> On Tue, May 11, 2010 at 12:44 AM, Alex Harui  wrote:
>
>
> Are you using the childLIst parameter of PopUpManager?
>
>
>
> On 5/10/10 11:30 AM, "Greg Hess"  http://flexeff...@gmail.com> > wrote:
>
>
>
>
>
>
> Hi All,
>
> My application employs a modular architecture(main applications
> responsibility is just to load and unload modules). My module displays a
> popup window who's parent is the main application that covers the entire UI.
> Unfortunately, while this popup is displayed certain events occur in the
> module that it handles by displaying some small notification popups over UI
> components that are hidden by the big popup window, however the notification
> popups layer over the big popup.
>
> In reading the PopupManager docs I thought by simply assigning the module
> as the parent of my notification popups would resolve the issue by adding
> the popups to the module "layer" and not the top "application layer", but it
> is not working and I am not sure if this is supported with the parent
> argument to addPopUp or I am doing something wrong.
>
> Does anyone know how I can show popups in different layers per say?
>
> Any help much appreciated.
>
> Greg
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
> 
>


RE: [flexcoders] Best way to remove line breaks from Label text?

2010-05-12 Thread Gordon Smith
I would just use a RegExp to replace \r and \n with nothing or with a space.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Baz
Sent: Wednesday, May 12, 2010 11:39 AM
To: Google/Yahoo Groups
Subject: [flexcoders] Best way to remove line breaks from Label text?



I have an  whose text comes from a DB. What's the best way to remove, 
or not show, any line breaks that may be in that text? I could use another text 
element if that's easier/cleaner.

Thanks.



[flexcoders] Re: PopUpManager and FocusManager

2010-05-12 Thread Joshua
used callLater instead of waiting on the event to dispatch.  That worked

callLater(setNewFocus)

function setNewFocus():void {
focusManager.setFocus(this.augmentPackageForm.insuranceValue);
}

--- In flexcoders@yahoogroups.com, "Joshua"  wrote:
>
> This is driving me nuts.  I have a form that has several textInputs in it.  
> When you tab out of a textInput and you have entered something that is not 
> currently in the database I create a Popupwindow with another form in it so 
> the user can add more details (Quick Add for Quickbooks style) about the new 
> text entry.  I'm trying to get the form that is in the popupmanager to get 
> the focus and it kinda works... meaning it looks like it has focus (blue 
> box), but when I start typing I start filling out the next field in the 
> original form (behind the popup).  I have the form component that 'pops up', 
> implementing IFocusManagerContainer and have tried just about everything to 
> get this to work.  
> 
> this.augmentPackageWindow = new TitleWindow;
>   this.augmentPackageForm = new IndivdualizePackageForm;  
> this.augmentPackageWindow.addChild(this.augmentPackageForm);
> this.augmentPackageWindow.addEventListener( 
> Event.ADDED_TO_STAGE, setAugmentFocus);
> PopUpManager.addPopUp( this.augmentPackageWindow, this, true 
> );
> PopUpManager.centerPopUp( this.augmentPackageWindow );
> 
> in the function setAugmentFocus i have stuff like
> 
> var oldFm:FocusManager = new FocusManager(this);
> oldFm.deactivate;
> 
> var fm:FocusManager = new FocusManager(this.augmentPackageForm);
> fm.activate();
> fm.setFocus(this.augmentPackageForm.insuranceValue);
> 
> and like I said, when I run this the "focus" actually goes to the insurance 
> Value field in the augmentPackageForm which is a child in the 
> augmentPackageWindow, but as soon as I start typing I begin to fill out the 
> next field in the underlying form.   
> 
> Help Please!
>




[flexcoders] Best way to remove line breaks from Label text?

2010-05-12 Thread Baz
I have an  whose text comes from a DB. What's the best way to
remove, or not show, any line breaks that may be in that text? I could use
another text element if that's easier/cleaner.

Thanks.


Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
And of course I had to add to my renderers dragExit:

MyTreeSubclass(this.listData.
>
> owner).highlightItem(this,false );



On Wed, May 12, 2010 at 11:10 AM, Richard Rodseth wrote:

> Though I strive to avoid subclassing the standard components, the code I
> inherited already has a Tree subclass, so I added the following:
>
> public function highlightItem(item:IListItemRenderer,
> highlighted:Boolean):void {
> this.drawItem(item, false, highlighted);
> }
>
> And call it from the renderer's dragEnter handler:
>
> MyTreeSubclass(this.listData.owner).highlightItem(this, true);
>
> Seems to be working OK.
>
>
>
> On Wed, May 12, 2010 at 10:56 AM, Richard Rodseth wrote:
>
>> No, this is dragging items from a datagrid to a tree.
>>
>>
>> On Wed, May 12, 2010 at 10:43 AM, Baz  wrote:
>>
>>>
>>>
>>> Doesn't the node already highlight because you are rolling over it?
>>>  
>>>
>>
>>
>


Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
Though I strive to avoid subclassing the standard components, the code I
inherited already has a Tree subclass, so I added the following:

public function highlightItem(item:IListItemRenderer,
highlighted:Boolean):void {
this.drawItem(item, false, highlighted);
}

And call it from the renderer's dragEnter handler:

MyTreeSubclass(this.listData.owner).highlightItem(this, true);

Seems to be working OK.


On Wed, May 12, 2010 at 10:56 AM, Richard Rodseth wrote:

> No, this is dragging items from a datagrid to a tree.
>
>
> On Wed, May 12, 2010 at 10:43 AM, Baz  wrote:
>
>>
>>
>> Doesn't the node already highlight because you are rolling over it?
>>  
>>
>
>


[flexcoders] PopUpManager and FocusManager

2010-05-12 Thread Joshua
This is driving me nuts.  I have a form that has several textInputs in it.  
When you tab out of a textInput and you have entered something that is not 
currently in the database I create a Popupwindow with another form in it so the 
user can add more details (Quick Add for Quickbooks style) about the new text 
entry.  I'm trying to get the form that is in the popupmanager to get the focus 
and it kinda works... meaning it looks like it has focus (blue box), but when I 
start typing I start filling out the next field in the original form (behind 
the popup).  I have the form component that 'pops up', implementing 
IFocusManagerContainer and have tried just about everything to get this to 
work.  

this.augmentPackageWindow = new TitleWindow;
this.augmentPackageForm = new IndivdualizePackageForm;  
this.augmentPackageWindow.addChild(this.augmentPackageForm);
this.augmentPackageWindow.addEventListener( 
Event.ADDED_TO_STAGE, setAugmentFocus);
PopUpManager.addPopUp( this.augmentPackageWindow, this, true );
PopUpManager.centerPopUp( this.augmentPackageWindow );

in the function setAugmentFocus i have stuff like

var oldFm:FocusManager = new FocusManager(this);
oldFm.deactivate;

var fm:FocusManager = new FocusManager(this.augmentPackageForm);
fm.activate();
fm.setFocus(this.augmentPackageForm.insuranceValue);

and like I said, when I run this the "focus" actually goes to the insurance 
Value field in the augmentPackageForm which is a child in the 
augmentPackageWindow, but as soon as I start typing I begin to fill out the 
next field in the underlying form.   

Help Please!



Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
No, this is dragging items from a datagrid to a tree.

On Wed, May 12, 2010 at 10:43 AM, Baz  wrote:

>
>
> Doesn't the node already highlight because you are rolling over it?
>  
>


Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Baz
Doesn't the node already highlight because you are rolling over it?


Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
Could you elaborate a bit, please? The component is already used with a
custom renderer. Are you suggesting that the dragEnter method should just do
the highlighting directly? Makes sense, I suppose.

On Wed, May 12, 2010 at 10:24 AM, Alex Harui  wrote:

>
>
> I would use a custom renderer.
>
>
>
> On 5/12/10 9:50 AM, "Richard Rodseth"  wrote:
>
>
>
>
>
>
> I'm now aware of dropIndicatorSkin and found an example that
> customized the skin to do this:
>
> g.beginFill(0xa1bde2, 0.5);
> g.drawRect(-5, -1, w, 23);
>
> which is obviously a bit, er, hard-coded.
>
> The location and height for the skin appear to be set for drawing a
> line between nodes. Recall that I just want to highlight the node
> itself, as though it were being selected.
>
> Tree.showDropFeedback and ListBase.showDropFeedback are quite large
> methods (with side-effects) to be overriding. Is that my best option,
> or can I have my skin access the tree node?
>
> Recommendations or examples appreciated.I feel sure someone must have
> used a tree to represent a folder hierarchy.
> Thanks.
>
> On Tue, May 11, 2010 at 3:40 PM, Richard Rodseth  mailto:rrodseth%40gmail.com > > wrote:
> > I'm maintaining some code which has a dragEnter handler which sets
> > selectedIndex in order to highlight the destination tree node
> >
> > Can anyone point me at some sample code to do this, or a public method
> > to highlight the item without selecting it? The showDropFeedback
> > method draws a line between items, which is not the desired effect.
> >
> > Thanks.
> >
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>  
>


Re: [flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Alex Harui
I would use a custom renderer.


On 5/12/10 9:50 AM, "Richard Rodseth"  wrote:






I'm now aware of dropIndicatorSkin and found an example that
customized the skin to do this:

g.beginFill(0xa1bde2, 0.5);
g.drawRect(-5, -1, w, 23);

which is obviously a bit, er, hard-coded.

The location and height for the skin appear to be set for drawing a
line between nodes. Recall that I just want to highlight the node
itself, as though it were being selected.

Tree.showDropFeedback and ListBase.showDropFeedback are quite large
methods (with side-effects) to be overriding. Is that my best option,
or can I have my skin access the tree node?

Recommendations or examples appreciated.I feel sure someone must have
used a tree to represent a folder hierarchy.
Thanks.

On Tue, May 11, 2010 at 3:40 PM, Richard Rodseth mailto:rrodseth%40gmail.com> > wrote:
> I'm maintaining some code which has a dragEnter handler which sets
> selectedIndex in order to highlight the destination tree node
>
> Can anyone point me at some sample code to do this, or a public method
> to highlight the item without selecting it? The showDropFeedback
> method draws a line between items, which is not the desired effect.
>
> Thanks.
>





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


Re: [flexcoders] SystemManager and RSL linkage

2010-05-12 Thread Alex Harui
So, don’t reference the app from the preloader, or define an interface they can 
both use.


On 5/12/10 2:10 AM, "Fotis Chatzinikos"  wrote:






Thanks Oleg, that makes sense.

On Wed, May 12, 2010 at 11:57 AM, Oleg Sivokon  wrote:





Preloader is in the first frame, by making dependency to your main class from 
the second frame you brought all it's dependencies into the first. Since the 
classes from the first frame cannot be externalized (they must be loaded some 
time, and at that time the first frame should be constructed already) they are 
compiled into the first frame.

Best.

Oleg






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


[flexcoders] Re: Folder-style dragOver highlight on tree

2010-05-12 Thread Richard Rodseth
I'm now aware of dropIndicatorSkin and found an example that
customized the skin to do this:

g.beginFill(0xa1bde2, 0.5);
g.drawRect(-5, -1, w, 23);

which is obviously a bit, er, hard-coded.

The location and height for the skin appear to be set for drawing a
line between nodes. Recall that I just want to highlight the node
itself, as though it were being selected.

Tree.showDropFeedback and ListBase.showDropFeedback are quite large
methods (with side-effects) to be overriding. Is that my best option,
or can I have my skin access the tree node?

Recommendations or examples appreciated.I feel sure someone must have
used a tree to represent a folder hierarchy.
Thanks.




On Tue, May 11, 2010 at 3:40 PM, Richard Rodseth  wrote:
> I'm maintaining some code which has a dragEnter handler which sets
> selectedIndex in order to highlight the destination tree node
>
> Can anyone point me at some sample code to do this, or a public method
> to highlight the item without selecting it? The showDropFeedback
> method draws a line between items, which is not the desired effect.
>
> Thanks.
>


[flexcoders] Issue:Authentication issue on edge server + LCDS 3.1 java based loadtesting tool

2010-05-12 Thread sanjitcs
I am using LCDS 3.1 java based load testing tool to generate 100 concurrent 
consumer to subscribe to the topic. 
Since I am using edge server to communicate with application server. It dose 
not be able to subscribe the consumer because getway service is not be able to 
authenticate client.
I am getting Following error.

Exception in thread "main" java.lang.RuntimeException: Consumer '0' failed to 
subscribe:
Flex Message (flex.messaging.messages.ErrorMessage) 
clientId = C06AF337-0D68-2A86-C855-8AA0BC025252
correlationId = D383DB46-081D-9083-A00B-81B06DD4AA31
destination = application_data
messageId = C06B06BF-0C3F-F7CF-1701-B1EA4F1FB678
timestamp = 1273679434799
timeToLive = 0
body = null
hdr(DSErrorHint) = true
code =  Server.Authentication
message =  Gateway service 'gateway-to-app' requires an authenticated 
client. Please login before interacting with any gateway service destinations.
details =  null
rootCause =  null
body =  null
extendedData =  null
at javaclientexamples.LCDSDriver.doMain(LCDSDriver.java:274)
at javaclientexamples.LCDSDriver.main(LCDSDriver.java:131)


In Flex client we are using setCredential of consumer class to set credential 
to authenticate client.

But i am not be able to set credential for consumer in java based load testing 
tool. Consumer /MessageAgent/ ChannelSet class does not have setCredential  
method. is there any way to set the credential in consumer/Channel so that it 
can subscribe. 

Or any tool which can help me to generate 100 simultaneous user load on server 
(edge server + application) and do load testing for messaging on  RTMP/RTMPS 
protocol.




[flexcoders] Re: spark ButtonBar selectedIndex out of view

2010-05-12 Thread bhaq1972
Thanks. 



--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  wrote:
>
> You can use the getScrollPositionDeltaToElement() function of the layout and
> add the x value of the returned point to the horizontalScrollPosition.
> Basically something like this (not tested):
> 
> buttonbar1.layout.horizontalScrollPosition +=
> buttonbar1.layout.getScrollPositionDeltaToElement(buttonbar1.selectedIndex).x;
> 
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Tue, May 11, 2010 at 9:14 AM, bhaq1972  wrote:
> 
> >
> >
> > I have a spark ButtonBar with a horizontalLayout. The width of the
> > ButtonBar is small ...so the end buttons don't show.
> > When I set the selectedIndex to one of the end buttons...its not coming
> > into view.
> >
> > How can I ensure the selectedItem is in view?
> >
> > thanks
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  
> >
>




[flexcoders] Re: spark ButtonBar selectedIndex out of view

2010-05-12 Thread bhaq1972
Thanks.
I haven't played with the Scroller so I will try it out (but a quick initial 
test gives a compile error ...a Scroller cant have a ButtonBar assigned to the 
default viewport property)

I will probably go with Haykel's suggestion for now.


thanks guys





--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Maybe put the ButtonBar in a Scroller or put a Scroller in the ButtonBar skin?
> 
> 
> On 5/11/10 1:14 AM, "bhaq1972"  wrote:
> 
> 
> 
> 
> 
> 
> I have a spark ButtonBar with a horizontalLayout. The width of the ButtonBar 
> is small ...so the end buttons don't show.
> When I set the selectedIndex to one of the end buttons...its not coming into 
> view.
> 
> How can I ensure the selectedItem is in view?
> 
> thanks
> 
> 
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> 
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




Re: [flexcoders] Use a Popup as itemEditor in Datagrids

2010-05-12 Thread DevSachin

Now problem has been solved. I use preventDefault in Item_Edit_Begin event
after closing the popup. but it prevent it on same condition as in
ITEM_EDIT_BEGINNING. it works fine now

Thanks
Sachin


Alex Harui wrote:
> 
> You may not be able to prevent another edit session from ITEM_EDIT_END,
> but there should be an ITEM_EDIT_BEGINNING right after that you can use to 
> cancel the editing of that renderer.
> 
> 
> On 5/11/10 4:51 AM, "DevSachin"  wrote:
> 
> 
> 
> 
> 
> 
> 
> Hi Alex,
> Thanks for Quick reply. Yes, it is not readonly but editedItemRenderer is
> readonly. Now, My 50% problem is solved but 50% is still remaining. After
> closing popup and returning focus to grid, cell is opened in edit mode. I
> want this cell in renderer mode. How should I dispatch itemEditEnd event
> from popup so after closing the popup, cell will not goes to edit mode?
> 
> Thanks In advance
> Sachin dev tripathi
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Use-a-Popup-as-itemEditor-in-Datagrids-tp7071004p28535120.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Logout question

2010-05-12 Thread Fotis Chatzinikos
Christophe to be safe you need to track the user session on the server. In
java there are session destroy filters - if not on a java server google how
to catch the session destroy event on your server

On Wed, May 12, 2010 at 1:56 PM, p...@vin Uttarwar
wrote:

>
>
> What you are trying to achieve by doing this?
> what is the exact requirement?
>
> Thanks & Regards,
>
> Pravin Uttarwar | Perennial Systems
>
>
>
>
> On 12 May 2010 15:08, Akshar Kaul  wrote:
>
>>
>>
>> for capturing that you will need to use javascript.
>>
>> Akshar Kaul
>>
>>
>> On Wed, May 12, 2010 at 14:58, Christophe 
>> wrote:
>>
>>>
>>>
>>> Hello,
>>>
>>> How to know if a user on a flex application is logout. Because the logout
>>> is not always made with the logout button, he can close the explorer.
>>>
>>> Thank you,
>>> Christophe,
>>>
>>>
>>
>  
>



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


[flexcoders] Re: Problems with upload

2010-05-12 Thread sderamon
Hi,

I solve the problem. The problem was that the port in the router was closed

Thank



Re: [flexcoders] Logout question

2010-05-12 Thread p...@vin Uttarwar
What you are trying to achieve by doing this?
what is the exact requirement?

Thanks & Regards,

Pravin Uttarwar | Perennial Systems



On 12 May 2010 15:08, Akshar Kaul  wrote:

>
>
> for capturing that you will need to use javascript.
>
> Akshar Kaul
>
>
> On Wed, May 12, 2010 at 14:58, Christophe 
> wrote:
>
>>
>>
>> Hello,
>>
>> How to know if a user on a flex application is logout. Because the logout
>> is not always made with the logout button, he can close the explorer.
>>
>> Thank you,
>> Christophe,
>>
>>
>  
>


Re: [flexcoders] Logout question

2010-05-12 Thread Akshar Kaul
for capturing that you will need to use javascript.

Akshar Kaul


On Wed, May 12, 2010 at 14:58, Christophe wrote:

>
>
> Hello,
>
> How to know if a user on a flex application is logout. Because the logout
> is not always made with the logout button, he can close the explorer.
>
> Thank you,
> Christophe,
>
>  
>


[flexcoders] Logout question

2010-05-12 Thread Christophe
Hello, 

How to know if a user on a flex application is logout. Because the logout is 
not always made with the logout button, he can close the explorer.  

Thank you,
Christophe, 




Re: [flexcoders] SystemManager and RSL linkage

2010-05-12 Thread Fotis Chatzinikos
Thanks Oleg, that makes sense.

On Wed, May 12, 2010 at 11:57 AM, Oleg Sivokon wrote:

>
>
> Preloader is in the first frame, by making dependency to your main class
> from the second frame you brought all it's dependencies into the first.
> Since the classes from the first frame cannot be externalized (they must be
> loaded some time, and at that time the first frame should be constructed
> already) they are compiled into the first frame.
>
> Best.
>
> Oleg
>  
>



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


Re: [flexcoders] SystemManager and RSL linkage

2010-05-12 Thread Oleg Sivokon
Preloader is in the first frame, by making dependency to your main class
from the second frame you brought all it's dependencies into the first.
Since the classes from the first frame cannot be externalized (they must be
loaded some time, and at that time the first frame should be constructed
already) they are compiled into the first frame.

Best.

Oleg


[flexcoders] Problems with upload

2010-05-12 Thread sderamon
Hi,

I have created a small flex application to upload file to a server. It work 
fine from a lot of internet conexions, but in some internet conexions it 
doesn't work (the progress bar doesn't appears and don't upload the file).

do you know what happens? I don't konw if there are limitations in the router.

Thanks in advance for your answers





[flexcoders] Help regarding Grouping collection

2010-05-12 Thread hai_srividhya
Hello friends,

I need to implement an AdvancedDataGrid with custom checkbox renderer, tree 
column and some editable renderers. I need to group the tree column and the 
last column and summarize it . Could anyone help with the idea please.


Srividhya 



Re: [flexcoders] Error #2063: Error attempting to execute IME command anyone?

2010-05-12 Thread claudiu ursica


It seems that the error is generated when I use the Alert.show(""); Removed all 
the aAlert and it doesn't show anymore.

The weird thing is that on the development machine I don't get this error. I 
use win7 with flex 4. However when deployed it is happening. The strage thing 
is that when deployed I cannot get the data-s from the server anymore on any 
machine except mine. SO on My machine everything is fine, even when I look on 
the app from the url from server. But on other machines is not working. I used 
a generated webservice., make a call and get the data. On my machine everything 
is fine, but on others (win xp or win vista or win7) the code does not react 
the servvice for some reasons.

Now I got read of the error by removing the Alert.show but cannot get the 
data...

C





From: Alex Harui 
To: "flexcoders@yahoogroups.com" 
Sent: Wed, May 12, 2010 12:08:02 AM
Subject: Re: [flexcoders] Error #2063: Error attempting to execute IME command 
anyone?

   
This seems to be for an unexpected error in the IME OS library.  Which version 
of Windows?  Which IME is installed?  Which Browser and Player Version?  Is it 
only one one system or everywhere you try it?

Anything else unusual?  Are you running an automated test where the app is not 
the active window?  Is there some other app that might be fighting for control 
of the IME?


On 5/11/10 2:40 PM, "claudiu"  wrote:



>> 
>> 
>>   
>
>>Hi,
>>I am getting this error and I cannot seem to find why. I googled for it but 
>>couldn't find anything useful to get rid of it. Has anyone encountered this?
>
>>Error #2063: Error attempting to execute IME command.
>> at flash.system: :IME$/set enabled()
>> at mx.managers: :FocusManager/ focusInHandler( )[E:\dev\ 4.0.0\frameworks 
>> \projects\ framework\ src\mx\managers\ FocusManager. as:642]
>> at flash.display: :Stage/set focus()
>
>>Running flex 4, windows.
>
>>i run this code
>
>>if (Capabilities. hasIME)
>>{
>>if (IME.enabled)
>>{
>>Alert.show("IME is installed and enabled.");
>>}
>>else
>>{
>>Alert.show("IME is installed but not enabled. Please enable your IME and try 
>>again.");
>>}
>>}
>>else
>>{
>>Alert.show("IME is not installed. Please install an IME and try again.");
>>}
>
>>and it tells me that IME is installed but not enabled. If I try to set 
>>enabled to true I get another error.
>
>>Error: Error #2063: Error attempting to execute IME command.
>> at flash.system: :IME$/set enabled() 
>
>>on the line that sets enabled to true
>
>>Any input is appreciated;
>>10x,
>>C
>
>> 
>>   
>
>
>
-- 
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs. adobe.com/ aharui
 
 


  

Re: [flexcoders] SystemManager and RSL linkage

2010-05-12 Thread Fotis Chatzinikos
Alex, you were right. Including the system manager does not add any bytes in
the project...

The problematic bit that adds ~400KBs is casting the application to its ...
class:

the offending line is the following: - IT ADDS 400KBs to the release build
!!!

((event.currentTarget.parent as SystemManager).application as
Main).customPreloader = this ;

This line is in a custom preloader (used in Main (which is the Application
entry point)).

What i do not understand is why it is adding 400 KBs as Main is the default
application - everything should already be included...

Any ideas?



On Wed, May 12, 2010 at 9:46 AM, Fotis Chatzinikos <
fotis.chatzini...@gmail.com> wrote:

> Nope, no custom loading classes at all.
>
> That is strange then... Is there a way to see what gets included in an swf
> (appart from decompiling it)?
>
> The link report is not very helpful here...
>
> Thanks,
> Fotis
>
>
> On Tue, May 11, 2010 at 8:04 PM, Alex Harui  wrote:
>
>>
>>
>> SystemManager and its dependencies are always in the SWF because it is
>> their code that loads the RSLs.  However, importing it should not change the
>> size of your SWF since it should already be in the SWF.  Unless you’ve built
>> out a completely different loading class.
>>
>>
>>
>> On 5/11/10 2:59 AM, "fotis.chatzinikos" 
>> wrote:
>>
>>
>>
>>
>>
>>
>> I am building my flex 3 project using the external RSL support.
>>
>> What confuses me is that when I try to use the SystemManager (and thus
>> import it) my swf increases in size (~250KBs).
>>
>> Why is that? Is not SystemManager included in the RSL?
>> Can somebody explain?
>> Any ideas on what classes are included in the RSL?
>>
>> TIA,
>> Fotis
>>
>>
>>
>>
>>
>>
>> --
>> Alex Harui
>> Flex SDK Team
>> Adobe System, Inc.
>> http://blogs.adobe.com/aharui
>>  
>>
>
>
>
>