RE: [flexcoders] Re: Drag and drop into Advanced Datagrid

2009-09-18 Thread Tracy Spratt
I am sure.  I have not done a lot with ADG but have done a lot with DnD in
general and suspect the process will be the same.  Declare your own drag
event handlers and perform the logic needed.  It is mostly irrelevant what
the UI is since you will be manipulating a dataProvider.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of timgerr
Sent: Friday, September 18, 2009 5:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag and drop into Advanced Datagrid

 

  

I have this advanced datagrid and I want to make sure that anything dropped
into the grid can only go into a folder, can this happen?

Thanks
timgerr

--- In flexcod...@yahoogro  ups.com,
"timgerr"  wrote:
>
> I was wondering if there are any examples of Drag and Drop into an
advanced datagrid with an array collection as the data provider?
> 
> Thanks for the help.
> timgerr
>





RE: [flexcoders] Re: How can we increase web service performance?

2009-09-18 Thread Tracy Spratt
How are you doing your timing?  As Steve has pointed out, there are two
distinct parts to this.  If the bottleneck is truly with the data service
call then you will not be able to do much from within Flex.

 

However, unless your data payload is huge, data transfer is rarely the
bottleneck.  Instead, the time is mostly taken up in the rendering of the
screen.

 

If you are judging the time based on when the screen displays, then you do
not know if the web service is slow or not.

 

To find out for sure, call getTimer and save the value in an instance
variable just before you invoke send().  Then call getTimer again in the
result handler and subtract.  This will tell you the actual data service
latency.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Krunal Panchal
Sent: Friday, September 18, 2009 2:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How can we increase web service performance?

 

  

getting time to take the data from the web service. 

 

for example:

 

In web method i am executing the storec procedure, which will executed in 3
secs.

 

but in the flex side data will retrive after 6-8 secs.
 

Regards,

  _  

Krunal Panchal 

 

 

  _  

From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Friday, 18 September, 2009 22:29:49
Subject: [flexcoders] Re: How can we increase web service performance?

  

So, again I ask... Is the problem with the amount of time Flex takes to
parse the data or with the amount of time taken to get the data from the web
service?

--- In flexcod...@yahoogro ups.com  ,
Krunal Panchal  wrote:
>
> hi hanks for prompt respose.
> 
> Actually the problem with getting data (parsing the data). After calling
web method, data will return after few seconds.which i want to solve.
>  
> Regards,
> 
>  _ _ __
> 
> Krunal Panchal 
> 
> 
> 
> 
>  _ _ __
> From: valdhor 
> To: flexcod...@yahoogro ups.com  
> Sent: Friday, 18 September, 2009 18:44:36
> Subject: [flexcoders] Re: How can we increase web service performance?
> 
>   
> Is the problem with Flex or with the web service itself? You can check
data latency with something like Charles (www.charlesproxy. com).
> In my experience, web services are not that fast. 
> 
> --- In flexcod...@yahoogro ups.com, Krunal Panchal 
wrote:
> >
> > Hi All,
> > 
> > I have create the web based flex application on which i am using the dot
net web service. When i call the web service method it is taking time to
retrive the data.
> > 
> > Web Service Configuration:
> > I have configure web service by importing option from Data menu. Which
we will automatically  generate all the action script files. So i have
calling the web service by calling its object. For example:
> > 
> > privatevarserviceMe nu : myWebService; privatefunctionr egisteredAppInit
() : void{// registered the eventserviceMenu = 
> > serviceMenu. addapplicationIn itEventListenern ewmyWebService(
null,strWebServi ceURI);
> > (function(event : ApplicationInitResu ltEvent) : void
{   var
> > arrLocation = event.result; arrLocation : ArrayCollection =
newArrayCollection( );}
> > serviceMenu. applicationInit(
> >  
> > Thank in Advance
> >  "para");
> >  }
> > Regards,
> > 
> >  _ _ __
> > 
> > Krunal Panchal )
> >
>

 





[flexcoders] Re: Still struggling with creation complete

2009-09-18 Thread reflexactions
Out of the box when using deferred instantiation the ViewStack was designed to 
only support animations on a child container 'hide' not 'show'.

If you only slide 'out' it should work fine, if you want to slide 'in' or both 
'in' and 'out' you need to roll you own version of ViewStack and build in the 
support.

This is something we have done, though I can't really help with the code 
because of copyright.

You need to override selectedIndex, commitSelectedIndex, and commitProperties 
as well as add a function to init the selected child container.

Its not really difficult, you should take a look at the adobe code in the 
ViewStack and basically emulate that.


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I still believe that all children of a viewstack are created no matter the 
> creationpolicy.  CreationPolicy affects the grandchildren.  CreationComplete 
> on the child is long gone.  Try listening to SHOW as well, and call 
> validateNow on the entire viewstack, not just the child.  Children get their 
> size from the parent.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of dfalling
> Sent: Friday, September 18, 2009 12:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Still struggling with creation complete
> 
> 
> 
> I have a viewstack that animates its children by sliding them in and out. It 
> works fine when the creationPolicy is set to all, but when it's set to auto, 
> uncreated views slide in blank, then render themselves.
> 
> I thought that I could fix this by checking to see if a view has been created 
> yet (the only way I could figure out how to do this is 
> mx_internal::numChildrenCreated), and then trigger its creation with 
> createComponentFromDescriptor. For some reason this isn't working though- my 
> creationComplete function is never called...what am I doing wrong?
> 
> override public function set selectedIndex(value:int):void
> {
> _lastIndex = selectedIndex;
> 
> if(value != _lastIndex && value >= 0 && _lastIndex >= 0)
> {
> _newIndex = value;
> var targetChild:Container = getChildAt(value) as Container;
> if (targetChild.mx_internal::numChildrenCreated < 0)
> {
> targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
> createComponentFromDescriptor(targetChild.descriptor,true);
> targetChild.validateNow();
> return;
> }
> else
> {
> slideTabs(_lastIndex,_newIndex);
> }
> }
> }
> 
> private function child_creation(event:Event):void
> {
> slideTabs(_lastIndex,_newIndex);
> }
>




[flexcoders] Re: Set default font size on RichTextEditor

2009-09-18 Thread gotgoose09
Thanks for the links, but I already tried changing the selection of the 
fontSizeCombo, and that did not work.  Does anyone here know if changing the 
fontSizeCombo selection should work?  Is there a better way of changing the 
font programatically?

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> These links should help...
> 
> http://flexonblog.wordpress.com/2008/01/19/usable-properties-of-richtexteditor-control-in-flex/
> 
> http://www.axelscript.com/2008/02/13/mxrichtexteditor-issues-font-too-large/
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "gotgoose09"  wrote:
> >
> > I want to set the default text size on an RTE to something other than 10.  
> > How can I do this?
> > 
> > Thanks,
> > Ben Goosman
> >
>




[flexcoders] Highlighting a day in DateChooser

2009-09-18 Thread David Harris
Hi Everyone,

Is it possible with a DateField/DateChooser to highlight a specific day? EG:
I have 2 DateChoosers.
The user selectes a date in the first one, and then when they open the
second one I would like the selected date from the first one to be
highlighted.
I see there is the ability to disable specific days, but I don't want
to disable anything, just highlight it

I might be missing something in the docs, but I can't see what I am looking for!

Cheers!


[flexcoders] Using Just Some Components of Flexlib

2009-09-18 Thread Angelo Anolin
Hi FlexCoders,

I have been browsing out the Flexlib in Google Code and I am thinking of using 
just some of the controls, particularly the Propt TextInput control.

I have downloaded the ZIP file and have extracted the same.

As I am using more of the command line compiler in Vista, how do I use only the 
PromptingTextInput control?  I have already extracted the file 
PromptingTextInput.as.

How would I reference it in my MXML and just use the control?

Thanks.

Rgds,

Angelo



  

[flexcoders] Logic diagram library for Flex

2009-09-18 Thread twcrone70
Anyone know of any Flex libraries for creating logic diagrams or the like?  
Basically something that facilitates dragging 'items' on to a canvas and 
connecting with logical operations to create 'flows' with branching.

Thanks,

- Todd



RE: [flexcoders] Re: Still struggling with creation complete

2009-09-18 Thread Alex Harui
The code for a SHOW event runs before things are drawn to the screen.  Sound 
like something is causing an extra invalidation of the children so they aren't 
ready right away.  Can you make a simple test case?

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dfalling
Sent: Friday, September 18, 2009 2:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Still struggling with creation complete



I'm not sure how SHOW would help me as I want to make everything happen before 
rendering the child.

As an experiment, I made the child createComponentsFromDescriptors and called 
validateNow() at the viewstack level. I also replaced the event listener with a 
timer since I have no idea what event to watch.

All my attempts to make the child render itself aren't working- even if the 
timer waits for several seconds to allow an empty view to render, it still 
won't show up until after sliding in. Even once I get this working, I still 
won't know what event to listen for to know when the child's children are 
created. There's the lovely childrenCreationComplete event, but that's only 
dispatched for creation types of none and queued.

Here's my current code:

override public function set selectedIndex(value:int):void
{
_lastIndex = selectedIndex;

if(value != _newIndex && value != _lastIndex && value >= 0 && _lastIndex >= 0)
{
_newIndex = value;
var targetChild:Container = getChildAt(value) as Container;
if (targetChild.mx_internal::numChildrenCreated < 0)
{
targetChild.createComponentsFromDescriptors(true);
validateNow();
_creationTimer = new Timer(3000,1);
_creationTimer.addEventListener(TimerEvent.TIMER,child_creation,false,0,true);
_creationTimer.start();
return;
}
else
{
slideTabs(_lastIndex,_newIndex);
}
}
}

private function child_creation(event:Event):void
{
slideTabs(_lastIndex,_newIndex);
}

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> I still believe that all children of a viewstack are created no matter the 
> creationpolicy. CreationPolicy affects the grandchildren. CreationComplete on 
> the child is long gone. Try listening to SHOW as well, and call validateNow 
> on the entire viewstack, not just the child. Children get their size from the 
> parent.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of dfalling
> Sent: Friday, September 18, 2009 12:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Still struggling with creation complete
>
>
>
> I have a viewstack that animates its children by sliding them in and out. It 
> works fine when the creationPolicy is set to all, but when it's set to auto, 
> uncreated views slide in blank, then render themselves.
>
> I thought that I could fix this by checking to see if a view has been created 
> yet (the only way I could figure out how to do this is 
> mx_internal::numChildrenCreated), and then trigger its creation with 
> createComponentFromDescriptor. For some reason this isn't working though- my 
> creationComplete function is never called...what am I doing wrong?
>
> override public function set selectedIndex(value:int):void
> {
> _lastIndex = selectedIndex;
>
> if(value != _lastIndex && value >= 0 && _lastIndex >= 0)
> {
> _newIndex = value;
> var targetChild:Container = getChildAt(value) as Container;
> if (targetChild.mx_internal::numChildrenCreated < 0)
> {
> targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
> createComponentFromDescriptor(targetChild.descriptor,true);
> targetChild.validateNow();
> return;
> }
> else
> {
> slideTabs(_lastIndex,_newIndex);
> }
> }
> }
>
> private function child_creation(event:Event):void
> {
> slideTabs(_lastIndex,_newIndex);
> }
>



[flexcoders] Re: Creating Resize Handles

2009-09-18 Thread flexaustin
Robert, have you used the transformtool in a flex app before? When I try to add 
it via tool.target = mySprite and myOtherSprite.addChild(tool). 

It puts the tool on screen but its so small I can barely see it. If I try to 
set the w or h it stays the same size; tiny. Also when the tool is put on 
screen its about 200 pixels away on the x-axis.

Jason





--- In flexcoders@yahoogroups.com, "ag_rcuren"  wrote:
>
> ObjectHandles is ok but they do not handle rotation very well. Have a look at 
> this
> 
> http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php
> 
> --- In flexcoders@yahoogroups.com, Fotis Chatzinikos  
> wrote:
> >
> > Google ObjectHandles ;-)
> > 
> > On Thu, Sep 17, 2009 at 5:06 PM, flexaustin  wrote:
> > 
> > >
> > >
> > > Anyone ever create or see a tut/example on how to create resize/skew
> > > handles on Sprites or UIComponents?
> > >
> > > Say you click a Sprite on screen, the sprite would should show a bounding
> > > box, similar to Flash, Photoshop, Visio or Firefox, which allow you to 
> > > make
> > > the clicked Sprite wider, thinner, skew, or rotate the Sprite.
> > >
> > > TIA, J
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > Phinnovation
> > Fotis.Chatzinikos@,
> >
>




[flexcoders] Re: Still struggling with creation complete

2009-09-18 Thread dfalling
I'm not sure how SHOW would help me as I want to make everything happen before 
rendering the child.

As an experiment, I made the child createComponentsFromDescriptors and called 
validateNow() at the viewstack level.  I also replaced the event listener with 
a timer since I have no idea what event to watch.

All my attempts to make the child render itself aren't working- even if the 
timer waits for several seconds to allow an empty view to render, it still 
won't show up until after sliding in.  Even once I get this working, I still 
won't know what event to listen for to know when the child's children are 
created.  There's the lovely childrenCreationComplete event, but that's only 
dispatched for creation types of none and queued.

Here's my current code:

override public function set selectedIndex(value:int):void
{
  _lastIndex = selectedIndex;
  
  if(value != _newIndex && value != _lastIndex && value >= 0 && _lastIndex >= 0)
  {
_newIndex = value;
var targetChild:Container = getChildAt(value) as Container;
if (targetChild.mx_internal::numChildrenCreated < 0)
{
  targetChild.createComponentsFromDescriptors(true);
  validateNow();
  _creationTimer = new Timer(3000,1);
  
_creationTimer.addEventListener(TimerEvent.TIMER,child_creation,false,0,true);
  _creationTimer.start();
  return;
}
else
{
  slideTabs(_lastIndex,_newIndex);
}
  }
}

private function child_creation(event:Event):void
{
  slideTabs(_lastIndex,_newIndex);
}

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I still believe that all children of a viewstack are created no matter the 
> creationpolicy.  CreationPolicy affects the grandchildren.  CreationComplete 
> on the child is long gone.  Try listening to SHOW as well, and call 
> validateNow on the entire viewstack, not just the child.  Children get their 
> size from the parent.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of dfalling
> Sent: Friday, September 18, 2009 12:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Still struggling with creation complete
> 
> 
> 
> I have a viewstack that animates its children by sliding them in and out. It 
> works fine when the creationPolicy is set to all, but when it's set to auto, 
> uncreated views slide in blank, then render themselves.
> 
> I thought that I could fix this by checking to see if a view has been created 
> yet (the only way I could figure out how to do this is 
> mx_internal::numChildrenCreated), and then trigger its creation with 
> createComponentFromDescriptor. For some reason this isn't working though- my 
> creationComplete function is never called...what am I doing wrong?
> 
> override public function set selectedIndex(value:int):void
> {
> _lastIndex = selectedIndex;
> 
> if(value != _lastIndex && value >= 0 && _lastIndex >= 0)
> {
> _newIndex = value;
> var targetChild:Container = getChildAt(value) as Container;
> if (targetChild.mx_internal::numChildrenCreated < 0)
> {
> targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
> createComponentFromDescriptor(targetChild.descriptor,true);
> targetChild.validateNow();
> return;
> }
> else
> {
> slideTabs(_lastIndex,_newIndex);
> }
> }
> }
> 
> private function child_creation(event:Event):void
> {
> slideTabs(_lastIndex,_newIndex);
> }
>




[flexcoders] Re: Drag and drop into Advanced Datagrid

2009-09-18 Thread timgerr
I have this advanced datagrid and I want to make sure that anything dropped 
into the grid can only go into a folder, can this happen?

Thanks
timgerr


--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> I was wondering if there are any examples of Drag and Drop into an advanced 
> datagrid with an array collection as the data provider?
> 
> Thanks for the help.
> timgerr
>




RE: [flexcoders] Still struggling with creation complete

2009-09-18 Thread Alex Harui
I still believe that all children of a viewstack are created no matter the 
creationpolicy.  CreationPolicy affects the grandchildren.  CreationComplete on 
the child is long gone.  Try listening to SHOW as well, and call validateNow on 
the entire viewstack, not just the child.  Children get their size from the 
parent.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dfalling
Sent: Friday, September 18, 2009 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Still struggling with creation complete



I have a viewstack that animates its children by sliding them in and out. It 
works fine when the creationPolicy is set to all, but when it's set to auto, 
uncreated views slide in blank, then render themselves.

I thought that I could fix this by checking to see if a view has been created 
yet (the only way I could figure out how to do this is 
mx_internal::numChildrenCreated), and then trigger its creation with 
createComponentFromDescriptor. For some reason this isn't working though- my 
creationComplete function is never called...what am I doing wrong?

override public function set selectedIndex(value:int):void
{
_lastIndex = selectedIndex;

if(value != _lastIndex && value >= 0 && _lastIndex >= 0)
{
_newIndex = value;
var targetChild:Container = getChildAt(value) as Container;
if (targetChild.mx_internal::numChildrenCreated < 0)
{
targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
createComponentFromDescriptor(targetChild.descriptor,true);
targetChild.validateNow();
return;
}
else
{
slideTabs(_lastIndex,_newIndex);
}
}
}

private function child_creation(event:Event):void
{
slideTabs(_lastIndex,_newIndex);
}



[flexcoders] Drag and drop into Advanced Datagrid

2009-09-18 Thread timgerr
I was wondering if there are any examples of Drag and Drop into an advanced 
datagrid with an array collection as the data provider?

Thanks for the help.
timgerr



[flexcoders] Still struggling with creation complete

2009-09-18 Thread dfalling
I have a viewstack that animates its children by sliding them in and out.  It 
works fine when the creationPolicy is set to all, but when it's set to auto, 
uncreated views slide in blank, then render themselves.

I thought that I could fix this by checking to see if a view has been created 
yet (the only way I could figure out how to do this is 
mx_internal::numChildrenCreated), and then trigger its creation with 
createComponentFromDescriptor.  For some reason this isn't working though- my 
creationComplete function is never called...what am I doing wrong?

override public function set selectedIndex(value:int):void
{
  _lastIndex = selectedIndex;
  
  if(value != _lastIndex && value >= 0 && _lastIndex >= 0)
  {
_newIndex = value;
var targetChild:Container = getChildAt(value) as Container;
if (targetChild.mx_internal::numChildrenCreated < 0)
{
  
targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
  createComponentFromDescriptor(targetChild.descriptor,true);
  targetChild.validateNow(); 
  return;
}
else
{
  slideTabs(_lastIndex,_newIndex);
}
  }
}

private function child_creation(event:Event):void
{
  slideTabs(_lastIndex,_newIndex);
}



[flexcoders] Help with resizing contents of a window in Flex app.

2009-09-18 Thread michelleny914
I'm trying to setup a system that will allow the user to view PDF forms within 
my Flex app. I have created a WindowedApplication  containing a HBox with 
contains a HTML control. My problem right now is that the PDF will display, but 
the window does not open at a good size for viewing. When I resize the window 
to better view the PDF, it appears that the HBOX or HTML control is not 
resizing properly. Here is the code I have so far:

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










   
   
   







As you can see this is a very basic form. This is the first project in FLEX so 
I'm still learning. My ResizeViewer and ResizeWindow functions don't seem to 
work as expected. Thanks for any advice that you can give.




[flexcoders] Hi All

2009-09-18 Thread Calbeans
I just joined the group today and I'm really excited to learn more about Flex 
and AS3.



[flexcoders] Re: How can we increase web service performance?

2009-09-18 Thread turbo_vb
While they are the easiest to create and implement, WebServices are inherently 
the slowest protocol of choice.  Consider switching to RemoteObject and 
BlazeDS; to realize a significant increase in performance.  Having the client 
parse-out SOAP xml, is like choosing to put an old VW engine in Ferrari.

-TH

--- In flexcoders@yahoogroups.com, Krunal Panchal  wrote:
>
> getting time to take the data from the web service. 
> 
> for example:
> 
> In web method i am executing the storec procedure, which will executed in 3 
> secs.
> 
> but in the flex side data will retrive after 6-8 secs.
>  
> Regards,
> 
> 
> 
> Krunal Panchal 
> 
> 
> 
> 
> 
> From: valdhor 
> To: flexcoders@yahoogroups.com
> Sent: Friday, 18 September, 2009 22:29:49
> Subject: [flexcoders] Re: How can we increase web service performance?
> 
>   
> So, again I ask... Is the problem with the amount of time Flex takes to parse 
> the data or with the amount of time taken to get the data from the web 
> service?
> 
> --- In flexcod...@yahoogro ups.com, Krunal Panchal  wrote:
> >
> > hi hanks for prompt respose.
> > 
> > Actually the problem with getting data (parsing the data). After 
> > calling web method, data will return after few seconds.which i want to 
> > solve.
> >  
> > Regards,
> > 
> >  _ _ __
> > 
> > Krunal Panchal 
> > 
> > 
> > 
> > 
> >  _ _ __
> > From: valdhor 
> > To: flexcod...@yahoogro ups.com
> > Sent: Friday, 18 September, 2009 18:44:36
> > Subject: [flexcoders] Re: How can we increase web service performance?
> > 
> >   
> > Is the problem with Flex or with the web service itself? You can check data 
> > latency with something like Charles (www.charlesproxy. com).
> > In my experience, web services are not that fast. 
> > 
> > --- In flexcod...@yahoogro ups.com, Krunal Panchal  wrote:
> > >
> > > Hi All,
> > > 
> > > I have create the web based flex application on which i am using the dot 
> > > net web service. When i call the web service method it is taking time to 
> > > retrive the data.
> > > 
> > > Web Service Configuration:
> > > I have configure web service by importing option from Data menu. Which we 
> > > will automatically  generate all the action script files. So i have 
> > > calling the web service by calling its object. For example:
> > > 
> > > privatevarserviceMe nu : myWebService; privatefunctionr egisteredAppInit 
> > > () : void{    // registered the event    serviceMenu = 
> > >     serviceMenu. addapplicationIn itEventListenern ewmyWebService( 
> > > null,strWebServi ceURI);
> > >     (        function(event : ApplicationInitResu ltEvent) : void        
> > > {               var
> > >     arrLocation = event.result; arrLocation : ArrayCollection = 
> > > newArrayCollection( );        }
> > > serviceMenu. applicationInit(
> > >  
> > > Thank in Advance
> > >  "para");
> > >  }
> > > Regards,
> > > 
> > >  _ _ __
> > > 
> > > Krunal Panchal )
> > >
> >
>




Re: [flexcoders] Re: How can we increase web service performance?

2009-09-18 Thread Krunal Panchal
getting time to take the data from the web service. 

for example:

In web method i am executing the storec procedure, which will executed in 3 
secs.

but in the flex side data will retrive after 6-8 secs.
 
Regards,



Krunal Panchal 





From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Friday, 18 September, 2009 22:29:49
Subject: [flexcoders] Re: How can we increase web service performance?

  
So, again I ask... Is the problem with the amount of time Flex takes to parse 
the data or with the amount of time taken to get the data from the web service?

--- In flexcod...@yahoogro ups.com, Krunal Panchal  wrote:
>
> hi hanks for prompt respose.
> 
> Actually the problem with getting data (parsing the data). After calling web 
> method, data will return after few seconds.which i want to solve.
>  
> Regards,
> 
>  _ _ __
> 
> Krunal Panchal 
> 
> 
> 
> 
>  _ _ __
> From: valdhor 
> To: flexcod...@yahoogro ups.com
> Sent: Friday, 18 September, 2009 18:44:36
> Subject: [flexcoders] Re: How can we increase web service performance?
> 
>   
> Is the problem with Flex or with the web service itself? You can check data 
> latency with something like Charles (www.charlesproxy. com).
> In my experience, web services are not that fast. 
> 
> --- In flexcod...@yahoogro ups.com, Krunal Panchal  wrote:
> >
> > Hi All,
> > 
> > I have create the web based flex application on which i am using the dot 
> > net web service. When i call the web service method it is taking time to 
> > retrive the data.
> > 
> > Web Service Configuration:
> > I have configure web service by importing option from Data menu. Which we 
> > will automatically  generate all the action script files. So i have calling 
> > the web service by calling its object. For example:
> > 
> > privatevarserviceMe nu : myWebService; privatefunctionr egisteredAppInit () 
> > : void{    // registered the event    serviceMenu = 
> >     serviceMenu. addapplicationIn itEventListenern ewmyWebService( 
> > null,strWebServi ceURI);
> >     (        function(event : ApplicationInitResu ltEvent) : void        
> > {               var
> >     arrLocation = event.result; arrLocation : ArrayCollection = 
> > newArrayCollection( );        }
> > serviceMenu. applicationInit(
> >  
> > Thank in Advance
> >  "para");
> >  }
> > Regards,
> > 
> >  _ _ __
> > 
> > Krunal Panchal )
> >
>





  

[flexcoders] Re: sorting a datagrid column with an itemrenderer

2009-09-18 Thread turbo_vb
Man, I have to ask, how did you come up with a custom DataGridColumn component 
solution, that uses an inline itemRenderer?  You're not doing anything crazy 
with the headerRenderer, so why not just create a custom itemRenderer instead?

-TH

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Use a sortCompareFunction 
> (http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#sortCompareFunction)
> 
> 
> --- In flexcoders@yahoogroups.com, "kpjj31"  wrote:
> >
> > How would I go about sorting a datagrid taht has one column.
> > This column has an item renderer.
> > 
> >  > id="enrolled_header">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  > buttonMode="true"  mouseChildren="false" disabledColor="#66" 
> > fontWeight="normal"/>
> > 
> >  > buttonMode="true"  mouseChildren="false" disabledColor="#66" 
> > fontWeight="normal" />
> > 
> >  > buttonMode="true" fontWeight="normal" mouseChildren="false" 
> > disabledColor="#66" />
> > 
> >  > buttonMode="true" fontWeight="normal" mouseChildren="false" 
> > disabledColor="#66"/>
> > 
> >  > buttonMode="true" fontWeight="normal" mouseChildren="false" 
> > disabledColor="#66"/>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
>




[flexcoders] Re: How can we increase web service performance?

2009-09-18 Thread valdhor
So, again I ask... Is the problem with the amount of time Flex takes to parse 
the data or with the amount of time taken to get the data from the web service?


--- In flexcoders@yahoogroups.com, Krunal Panchal  wrote:
>
> hi hanks for prompt respose.
> 
> Actually the problem with getting data (parsing the data). After calling web 
> method, data will return after few seconds.which i want to solve.
>  
> Regards,
> 
> 
> 
> Krunal Panchal 
> 
> 
> 
> 
> 
> From: valdhor 
> To: flexcoders@yahoogroups.com
> Sent: Friday, 18 September, 2009 18:44:36
> Subject: [flexcoders] Re: How can we increase web service performance?
> 
>   
> Is the problem with Flex or with the web service itself? You can check data 
> latency with something like Charles (www.charlesproxy. com).
> In my experience, web services are not that fast. 
> 
> --- In flexcod...@yahoogro ups.com, Krunal Panchal  wrote:
> >
> > Hi All,
> > 
> > I have create the web based flex application on which i am using the dot 
> > net web service. When i call the web service method it is taking time to 
> > retrive the data.
> > 
> > Web Service Configuration:
> > I have configure web service by importing option from Data menu. Which we 
> > will automatically  generate all the action script files. So i have calling 
> > the web service by calling its object. For example:
> > 
> > privatevarserviceMe nu : myWebService; privatefunctionr egisteredAppInit () 
> > : void{    // registered the event    serviceMenu = 
> >     serviceMenu. addapplicationIn itEventListenern ewmyWebService( 
> > null,strWebServi ceURI);
> >     (        function(event : ApplicationInitResu ltEvent) : void        
> > {               var
> >     arrLocation = event.result; arrLocation : ArrayCollection = 
> > newArrayCollection( );        }
> > serviceMenu. applicationInit(
> >  
> > Thank in Advance
> >  "para");
> >  }
> > Regards,
> > 
> >  _ _ __
> > 
> > Krunal Panchal )
> >
>




[flexcoders] Re: AdvancedDataGrid itemOpen() to resize Container

2009-09-18 Thread Matthew
I figured out one way to do it:

private function openRow():void{
var windowShade:WindowShade = this as 
WindowShade;
windowShade.height += appColl.source.length * 
20;
}

The problem seemed to be that I was referencing the parent container 
incorrectly. The thing I want to do now on the itemOpen() event of the 
AdvancedDataGrid is to get the height of its renderProvider (another 
AdvancedDataGrid) and then add that to the overall height. 

I've perused the properties available from the AdvancedDataGridEvent but all I 
get is access to the current item and an array of renderProviders, not the 
height of the renderProvider itself. 

Is there a way to get access to the height of an AdvancedDataGrid's 
renderProvider? 

Thank you. 



[flexcoders] Re: Positioning using the graphics class?

2009-09-18 Thread Tracy
Ah, ok, I was beginning to suspect that based on the endpoint images in the 
docs.

Thank you for the verification.

But ugh, fractional pixels are new to me.

Tracy

--- In flexcoders@yahoogroups.com, Keith H  wrote:
>
> Lines drawn with the drawing API spread their thickness from the center.
> (unless I there's a way to set their orientation that I dont know of)
> 
> You have to obviously compensate for the that...
> drawRect(1.5,1.5,canvas.width-1.5,canvas.height-1.5);
> 
> -- Keith H --
> www.keith-hair.net
> 
> 
> 
> 
> 
> Tracy Spratt wrote:
> >  
> >
> > I am using the Graphics class to draw borders on a Canvas.  I think I 
> > do not understand how the positioning works. 
> >
> >  
> >
> > For example, I set lineStyle to width of 3 and some color, then I use 
> > drawRect and specify x=0, y=0, width  = canvas.width and height = 
> > canvas.height.
> >
> >  
> >
> > I am expecting a 3 pixel border within the canvas.
> >
> >  
> >
> > But that is not what I see.  Instead, all of the drawn lines are 
> > partially clipped by the canvas.
> >
> >  
> >
> > With drawRect, what is the relation between the x,y, width, height, 
> > and the line width?
> >
> >  
> >
> > I am trying to figure this out by trial and error, but have not been 
> > able to infer the rules.
> >
> >  
> >
> > Tracy Spratt,
> >
> > Lariat Services, development services available
> >
> >  
> >
> >
>




Re: [flexcoders] Re: How can we increase web service performance?

2009-09-18 Thread Krunal Panchal
hi hanks for prompt respose.

Actually the problem with getting data (parsing the data). After calling web 
method, data will return after few seconds.which i want to solve.
 
Regards,



Krunal Panchal 





From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Friday, 18 September, 2009 18:44:36
Subject: [flexcoders] Re: How can we increase web service performance?

  
Is the problem with Flex or with the web service itself? You can check data 
latency with something like Charles (www.charlesproxy. com).
In my experience, web services are not that fast. 

--- In flexcod...@yahoogro ups.com, Krunal Panchal  wrote:
>
> Hi All,
> 
> I have create the web based flex application on which i am using the dot net 
> web service. When i call the web service method it is taking time to retrive 
> the data.
> 
> Web Service Configuration:
> I have configure web service by importing option from Data menu. Which we 
> will automatically  generate all the action script files. So i have calling 
> the web service by calling its object. For example:
> 
> privatevarserviceMe nu : myWebService; privatefunctionr egisteredAppInit () : 
> void{    // registered the event    serviceMenu = 
>     serviceMenu. addapplicationIn itEventListenern ewmyWebService( 
> null,strWebServi ceURI);
>     (        function(event : ApplicationInitResu ltEvent) : void        {    
>            var
>     arrLocation = event.result; arrLocation : ArrayCollection = 
> newArrayCollection( );        }
> serviceMenu. applicationInit(
>  
> Thank in Advance
>  "para");
>  }
> Regards,
> 
>  _ _ __
> 
> Krunal Panchal )
>





  

[flexcoders] Re: sorting a datagrid column with an itemrenderer

2009-09-18 Thread valdhor
Use a sortCompareFunction 
(http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#sortCompareFunction)


--- In flexcoders@yahoogroups.com, "kpjj31"  wrote:
>
> How would I go about sorting a datagrid taht has one column.
> This column has an item renderer.
> 
>  id="enrolled_header">
>   
> 
>   
> 
>   
> 
> 
>  buttonMode="true"  mouseChildren="false" disabledColor="#66" 
> fontWeight="normal"/>
> 
>  buttonMode="true"  mouseChildren="false" disabledColor="#66" 
> fontWeight="normal" />
> 
>  buttonMode="true" fontWeight="normal" mouseChildren="false" 
> disabledColor="#66" />
> 
>  buttonMode="true" fontWeight="normal" mouseChildren="false" 
> disabledColor="#66"/>
> 
>  buttonMode="true" fontWeight="normal" mouseChildren="false" 
> disabledColor="#66"/>
> 
> 
>   
> 
>   
> 
>   
> 
>




[flexcoders] sorting a datagrid column with an itemrenderer

2009-09-18 Thread kpjj31
How would I go about sorting a datagrid taht has one column.
This column has an item renderer.





























[flexcoders] Client/Server Synchronization Problem.

2009-09-18 Thread whiskerstasters
Hello everyone, I am currently experiencing some problems of Client/Server 
Synchronisation during the creation of a new entity with Cairngorm.
 
When I try to create an object, for example "User", I pass a new instance of 
UserVO with a NULL ID. 
COMMAND -> DELEGATE -> REMOTE OBJECT -> SERVER.
 
My backend is Java & Hibernate. 
My UserService successfully adds the new user to my DB.
When I get my object back in my result() function in my COMMAND, the ID of my 
object that was generated by my DB is never updated in my front end...
 
Is there a transparent mechanism that can synchronize a new created object with 
the one returned by my UserService?

Thank you
David



[flexcoders] Time tracking software

2009-09-18 Thread nrbilyk
Hi all,

I just completed some time tracking software that works directly with Google 
spreadsheets.  Thought I'd show it off to the group!

http://www.gtimetracking.com/

-N



[flexcoders] Re: switching from lcds to blazeds

2009-09-18 Thread Mete Atamel
No, you cannot use Data Management Service (and many other LCDS features) in 
BlazeDS.

-Mete

--- In flexcoders@yahoogroups.com, "prince_arora84"  wrote:
>
> 
> I am using live cycle data management services in my flex project for  
> backend connectivity. But now i am planning to switch from LCDS to Blazeds 
> which do not supports Data management services. When i am trying to start the 
> tomcat with blazeds exception is thrown regarding: 'AbstractAssembler' class 
> is not found which i think is a part of Data management services. So is there 
> any way around i can use data management service with blazeds. Is there any 
> open source plugin for blazeds which supports data management services in 
> blazeds.?
>




[flexcoders] Re: Set default font size on RichTextEditor

2009-09-18 Thread valdhor
These links should help...

http://flexonblog.wordpress.com/2008/01/19/usable-properties-of-richtexteditor-control-in-flex/

http://www.axelscript.com/2008/02/13/mxrichtexteditor-issues-font-too-large/



--- In flexcoders@yahoogroups.com, "gotgoose09"  wrote:
>
> I want to set the default text size on an RTE to something other than 10.  
> How can I do this?
> 
> Thanks,
> Ben Goosman
>




[flexcoders] Re: How can we increase web service performance?

2009-09-18 Thread valdhor
Is the problem with Flex or with the web service itself? You can check data 
latency with something like Charles (www.charlesproxy.com).
In my experience, web services are not that fast. 


--- In flexcoders@yahoogroups.com, Krunal Panchal  wrote:
>
> Hi All,
> 
> I have create the web based flex application on which i am using the dot net 
> web service. When i call the web service method it is taking time to retrive 
> the data.
> 
> Web Service Configuration:
> I have configure web service by importing option from Data menu. Which we 
> will automatically generate all the action script files. So i have calling 
> the web service by calling its object. For example:
> 
> privatevarserviceMenu : myWebService;privatefunctionregisteredAppInit() : 
> void{    // registered the event    serviceMenu = 
>     
> serviceMenu.addapplicationInitEventListenernewmyWebService(null,strWebServiceURI);
>     (        function(event : ApplicationInitResultEvent) : void        {     
>           var
>     arrLocation = event.result;arrLocation : ArrayCollection = 
> newArrayCollection();        }
> serviceMenu.applicationInit(
>  
> Thank in Advance
>  "para");
>  }
> Regards,
> 
> 
> 
> Krunal Panchal )
>




[flexcoders] switching from lcds to blazeds

2009-09-18 Thread prince_arora84

I am using live cycle data management services in my flex project for  backend 
connectivity. But now i am planning to switch from LCDS to Blazeds which do not 
supports Data management services. When i am trying to start the tomcat with 
blazeds exception is thrown regarding: 'AbstractAssembler' class is not found 
which i think is a part of Data management services. So is there any way around 
i can use data management service with blazeds. Is there any open source plugin 
for blazeds which supports data management services in blazeds.?



[flexcoders] How can we increase web service performance?

2009-09-18 Thread Krunal Panchal
Hi All,

I have create the web based flex application on which i am using the dot net 
web service. When i call the web service method it is taking time to retrive 
the data.

Web Service Configuration:
I have configure web service by importing option from Data menu. Which we will 
automatically generate all the action script files. So i have calling the web 
service by calling its object. For example:

privatevarserviceMenu : myWebService;privatefunctionregisteredAppInit() : 
void{    // registered the event    serviceMenu = 
    
serviceMenu.addapplicationInitEventListenernewmyWebService(null,strWebServiceURI);
    (        function(event : ApplicationInitResultEvent) : void        {       
        var
    arrLocation = event.result;arrLocation : ArrayCollection = 
newArrayCollection();        }
serviceMenu.applicationInit(
 
Thank in Advance
 "para");
 }
Regards,



Krunal Panchal )


  

Re: [flexcoders] Label Control Text Value Coming From a Function Call

2009-09-18 Thread Angelo Anolin
Alex,

I tried it initially and it did not worked.

Found out the reason.  The label control is inside a datagrid control column 
and what I did was I prepended the function call with the word "outerDocument" 
like:



And I also set the function to Public so it is accessible to the label control.

Am I correct in setting the function to be public?

Thanks.

Regards,

Angelo





From: Alex Harui 
To: "flexcoders@yahoogroups.com" 
Sent: Friday, 18 September, 2009 13:38:27
Subject: RE: [flexcoders] Label Control Text Value Coming From a Function Call

  
Did you try it?  I would expect that to work.
 
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs. adobe.com/ aharui
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Angelo Anolin
Sent: Thursday, September 17, 2009 8:10 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Label Control Text Value Coming From a Function Call
 
  
Hi FlexCoders,
 
I have a label control where the text value that should be displayed is coming 
from a defined function.
   
   For example:
   
   
   
   private function setDayName(monthNo: Number, dayNo:Number, yearNo:Number) 
:String
   {
 // Make some calculations on the day based on the date parameter passed.
 //..
 .
 
 //Assuming the day value is returned after parsing the date value parameters.
 return 'Monday'
   }
   
   Is it possible to assign that the LabelDay1 object would display in the text 
the value returned by the function setDayName.  Please take note that I have a 
lot of instances of the label control which is inside a datagrid column 
control's header renderer so placing them in a function outside would be 
tedious.
   
   Would this be possible:
   
   
   
   Appreciate your response. Thanks.
 
Regards,
 
Angelo