[flexcoders] SystemManager????

2009-09-19 Thread flexaustin
I am building app that is something similar to photoshop or illustrator where
you have several tools to choose.

I want to use a State Object pattern, where selecting a tool changes the state
of the app. I then want to have the mouse throw different events depending on,
which tool is selected rather than have state objects in my listeners or having
conditionals or table look up in my listeners.

I am using custom mouse pointers for tools so what I am wondering is, is it
possible for my custom systemmanager or cursormanager to tell when a click,
doubleclick, or drag happens? If so then I was thinking the systemmanager or
cursormanager could know what tool is selected, thus what mode/state the app is
in, and send out different events for say mouse clicks.

So:

fingermouse's click = open thing clicked
zoommouse's click = zoom in 25%
mousepointer click = select to transform
pointer with a + on it = add a new thing to stage
ponter with a - on it = sub a new thing from stage

TIA, J



[flexcoders] Re: a simple way to search within a datagrid

2009-09-19 Thread ew6014
ah!! . i found the error. it seems there was some problem with the priceranges 
datacolumn. i deleted the entire line and it works.

one thing though... i have no idea how that code works. i know how to retrieve 
data and everything else except the search function. how exactly it is working.

perhaps i need to read about filterfunction


--- In flexcoders@yahoogroups.com, Paul Kukiel  wrote:
>
> This example might help
> 
> http://tutorial7.flexcf.com/
> 
> Paul.
> 
> 
> On Sep 19, 2009, at 7:57 PM, ew6014 wrote:
> 
> > hi guys. ive been searching for a easy way to search within a  
> > datagrid and found an answer from flex 3 cookbook from orielly. but  
> > for some strange reason it does not work. when i click on search it  
> > doesnt do anything. can someone help me please
> >
> > here is the code for the application
> > 
> >
> > http://www.adobe.com/2006/mxml";  
> > layout="vertical"
> > creationComplete="initApp()">
> >
> >  > resultFormat="object"
> > result="onResult(event)"/>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  > dataProvider="{homesForSale}">
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> >
> > here is the code for the xml
> > 
> > 
> > 
> > 
> > Tampa
> > FL
> > 1002
> > 
> > 70
> > 20
> > 10
> > 
> > 
> > 
> > Boston
> > MA
> > 2705
> > 
> > 30
> > 60
> > 10
> > 
> > 
> >
> >
>




[flexcoders] Re: a simple way to search within a datagrid

2009-09-19 Thread ew6014
hi paul

thank you for the link. its a good example. sadly i do not know how to use 
coldfusion. and i dont understand 90% the code. sorry i am a super newbie to 
programming.

wondering if you can point out whats wrong with the code from orielly cookbook? 
nothing happens when i click on search.

but if you think i need to understand the link please tell me a couple of 
pointers that i can look up more on.

--- In flexcoders@yahoogroups.com, Paul Kukiel  wrote:
>
> This example might help
> 
> http://tutorial7.flexcf.com/
> 
> Paul.
> 
> 
> On Sep 19, 2009, at 7:57 PM, ew6014 wrote:
> 
> > hi guys. ive been searching for a easy way to search within a  
> > datagrid and found an answer from flex 3 cookbook from orielly. but  
> > for some strange reason it does not work. when i click on search it  
> > doesnt do anything. can someone help me please
> >
> > here is the code for the application
> > 
> >
> > http://www.adobe.com/2006/mxml";  
> > layout="vertical"
> > creationComplete="initApp()">
> >
> >  > resultFormat="object"
> > result="onResult(event)"/>
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >  > dataProvider="{homesForSale}">
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> >
> > here is the code for the xml
> > 
> > 
> > 
> > 
> > Tampa
> > FL
> > 1002
> > 
> > 70
> > 20
> > 10
> > 
> > 
> > 
> > Boston
> > MA
> > 2705
> > 
> > 30
> > 60
> > 10
> > 
> > 
> >
> >
>




Re: [flexcoders] a simple way to search within a datagrid

2009-09-19 Thread Paul Kukiel

This example might help

http://tutorial7.flexcf.com/

Paul.


On Sep 19, 2009, at 7:57 PM, ew6014 wrote:

hi guys. ive been searching for a easy way to search within a  
datagrid and found an answer from flex 3 cookbook from orielly. but  
for some strange reason it does not work. when i click on search it  
doesnt do anything. can someone help me please


here is the code for the application


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

creationComplete="initApp()">

resultFormat="object"

result="onResult(event)"/>










dataProvider="{homesForSale}">













here is the code for the xml




Tampa
FL
1002

70
20
10



Boston
MA
2705

30
60
10








[flexcoders] a simple way to search within a datagrid

2009-09-19 Thread ew6014
hi guys. ive been searching for a easy way to search within a datagrid and 
found an answer from flex 3 cookbook from orielly. but for some strange reason 
it does not work. when i click on search it doesnt do anything. can someone 
help me please



here is the code for the application


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




























here is the code for the xml




Tampa
FL
1002

70
20
10



Boston
MA
2705

30
60
10





[flexcoders] SystemManager???

2009-09-19 Thread flexaustin
I am building app that is something similar to photoshop or illustrator where 
you have several tools to choose.

I want to use a State Object pattern, where selecting a tool changes the state 
of the app. I then want to have the mouse throw different events depending on, 
which tool is selected rather than have state objects in my listeners or having 
conditionals or table look up in my listeners.

I am using custom mouse pointers for tools so what I am wondering is, is it 
possible for my custom mousepointer or cursormanager to tell when a click, 
doubleclick, or drag happens? If so then I was thinking the mousepointer or 
cursormanager could know what tool is selected, thus what mode/state the app is 
in, and send out different events for say mouse clicks. 

So:

fingermouse's click = open thing clicked
zoommouse's click = zoom in 25%
mousepointer click = select to transform
pointer with a + on it = add a new thing to stage
ponter with a - on it = sub a new thing from stage

TIA, J



[flexcoders] x and y localToGlobal

2009-09-19 Thread flexaustin
Can anyone tell me if any of these are correct?  I am using Senocular 
TransformTool (e.g. 
http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php) 
I have a Flex that has the following layers:

Flex Project Layers (top to bottom):
-Application
--main sprite
---visualization sprite
holder layer - where TARG and TOOL are located.

What I need is for TOOL's X & Y to be TARG's X & Y at all times. So if I drag 
TARG then TOOL needs to stay with it in the same spot (And no I can't put TOOL 
inside TARG). So I tried the following which doesn't work:

tool.x = targ.x; (in debug it shows this before assignment tool.x=289 and 
targ.x=0)

tool.y = targ.y; (in debug it shows this before assignment 
tool.y=200 and targ.y=0)


So, I tried each of the following (substituting in each var), but none of which 
works.
tool.x = gtlpt.x;

tool.y = gtlpt.y;


var gtlpt:Point = tool.globalToLocal( new Point( targ.x, targ.y ) );

var ltgpt:Point = tool.localToGlobal( new Point( targ.x, targ.y ) );



var toolgtlpt:Point = targ.globalToLocal( new Point(  
tool.x, tool.y ) );

var toolltgpt:Point = targ.localToGlobal( new Point( 
tool.x, tool.y ) );



var mgtlpt:Point = _vis.marks.globalToLocal( new Point(  
tool.x, tool.y ) );

var mltgpt:Point = _vis.marks.localToGlobal( new Point( 
tool.x, tool.y ) );



var mmgtlpt:Point = _vis.marks.globalToLocal( new Point(  
targ.x, targ.y ) );

var mmltgpt:Point = _vis.marks.localToGlobal( new Point( 
targ.x, targ.y ) );







[flexcoders] PyAMF 0.5.1 Released

2009-09-19 Thread Thijs Triemstra | Collab

The PyAMF team is proud to announce the release of 0.5.1!

PyAMF [1] is a lightweight library that allows Flash and Python  
applications to communicate via Adobe’s

ActionScript Message Format.

This is a bugfix release [2], see the changelog [3] for the complete  
list of changes. A brief overview of the

changes:
 - pyamf.register_package can now accept a list of classes
 - Fixed a regression in TwistedGateway where services would be  
called twice

 - Fixed a bug with encoding anonymous trait references
 - Moved IndexedCollection into cpyamf
 - amf3.encode_int now encodes signed 29bit ints, not unsigned

Check out the download page [4], installation instructions [5] or the  
documentation [6] for more

information.

Questions? First stop is the mailing list [7] but we also hang out on  
IRC [8].


Cheers,

the PyAMF team.

[1] http://pyamf.org
[2] http://pyamf.org/milestone/0.5.1
[3] http://pyamf.org/browser/pyamf/tags/release-0.5.1/CHANGES.txt
[4] http://pyamf.org/wiki/Download
[5] http://pyamf.org/wiki/Install
[6] http://docs.pyamf.org
[7] http://pyamf.org/wiki/MailingList
[8] irc://irc.collab.eu/pyamf

PGP.sig
Description: This is a digitally signed message part


Re: [flexcoders] Highlighting a day in DateChooser

2009-09-19 Thread Angelo Anolin
Datefield2.selectedDate = Datefield1.selectedDate







From: David Harris 
To: flexcoders@yahoogroups.com
Sent: Saturday, 19 September, 2009 10:50:51
Subject: [flexcoders] Highlighting a day in DateChooser

  
Hi Everyone,

Is it possible with a DateField/DateChoos er 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!

   


  

Re: [flexcoders] Trying to convince people to develop with Flex

2009-09-19 Thread Angelo Anolin
I believe the best way to do this is to port (convert) one of your slow, dull 
and hard to maintain application and show how the same could be done in Flex, 
albeit much better.

Manager would only see the value of a development platform if they know that 
their business bottom line is improved, which is in this case a better 
application that they utilize.

Angelo





From: Schnurgle Schnurgle 
To: flexcoders@yahoogroups.com
Sent: Saturday, 19 September, 2009 12:39:56
Subject: [flexcoders] Trying to convince people to develop with Flex

  
I'd like to get some people that I work with excited about developing RIAs with 
Flex. We currently do data visualization with fusion charts. I'd like to show 
folks here  Flex apps that go beyond what fusion charts can do. I've googled a 
bunch but I've not found much. Also, any links to flex business apps that would 
help make the case that we could be offering amazing user experiences if we 
were to build with Flex would be great ammo.

Thank you very much for any help with this.
sh


   


  

[flexcoders] Trying to convince people to develop with Flex

2009-09-19 Thread Schnurgle Schnurgle
I'd like to get some people that I work with excited about developing RIAs with 
Flex. We currently do data visualization with fusion charts. I'd like to show 
folks here  Flex apps that go beyond what fusion charts can do. I've googled a 
bunch but I've not found much. Also, any links to flex business apps that would 
help make the case that we could be offering amazing user experiences if we 
were to build with Flex would be great ammo.

Thank you very much for any help with this.
sh



  

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

2009-09-19 Thread Krunal Panchal
thanks for reponse.

 I have done that. what ever the time is mentioned is calculated the same way. 
Even my data is below the 1000 records. More even i used the object caching.

I also checked the calling same method independtly from web service. but it 
does not taking more time compare to calling from flex.

I also aware that web ORB is 10 times faster than this.But it should not be 
prefrable to change the architecture.

Again thanks a lot for your suggestion.

Regards,



Krunal Panchal 





From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Saturday, 19 September, 2009 10:48:38
Subject: RE: [flexcoders] Re: How can we increase web service performance?

  
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:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Krunal Panchal
Sent: Friday, September 18, 2009 2:08 PM
To: flexcod...@yahoogro ups.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: flexcod...@yahoogro ups.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 )
> >
>