[flexcoders] customising Adobe AutoComplete component (intercept tab keypress)

2007-03-03 Thread Adam Royle
Hey all,

I am wondering if anyone has had a shot at modding Adobe's AutoComplete 
component?

I changed a few things however there is one more mod I want that I can't figure 
out. Currently if you type something and press tab, it puts the current 
selected item into the input field. I would prefer that the typed text remains 
the same (the same functionality as when the escape key is pressed).

However, I can't seem to catch the tab keypress and override the functionality. 
Is flex working against me? Help anyone?

Thanks,
Adam

Re: [flexcoders] How to align chart items in two charts?

2007-03-03 Thread Mikhail Shevchuk

Wow. Its amazing how simple the solution is. Thanks, Ely.

2007/3/2, Ely Greenfield [EMAIL PROTECTED]:




by default charts compute their gutterLeft and gutterRight dynamically,
but if you need to get two charts to align, you can set them to explicit
values. You lose a little bit of flexibility in axis/label layout...it will
fit the axes to the space available rather than choosing the best space
available for the labels, but if you choose appropriate values it should
work fine.

Ely.


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Mikhail Shevchuk
*Sent:* Friday, March 02, 2007 1:44 AM
*To:* Flex
*Subject:* [flexcoders] How to align chart items in two charts?

 Hello, Flexcoders.

I have two charts one below another. They are quite similar and use the
same horizontal axeses. But the problem is that I can't get the correct
chart view. The problem is that they have different positions of start and
end points on the canvas. How to align those vertical axes vertically? I've
attached two small pictures to show you what I mean.

Saying another words, I need to align the chart points vertically, as
axes.

Thanks.
--
A vivid and creative mind characterizes you.

 





--
A vivid and creative mind characterizes you.


[flexcoders] 3gp sound video inside FLEX ?

2007-03-03 Thread Stephane Guyot
Hi list,


is there a simple way to view 3gp sound and video with FLEX ?

As a workaround I use embed object inside IFrame, I switch back to  
the HTML world, to rely on the QuickTime plug-in ;-)

Everything works well with Firefox, but I have trouble on Safari.  
When playing sound or video, QuickTime plug-in does not redisplay
correctly, only progress controls appears with sound, and for video  
the progress controls disapears.
How can I force FLEX, to be aware of the redisplay of the plug-in ?

Any suggestion, or other  simpler  solution are wellcome,

Thanks in adavance,
Stephane



[flexcoders] Determining the idle state of a flex application

2007-03-03 Thread Rick Root

Does anyone have any suggestions for monitoring idleness of a Flex
application?

The way my app works, pretty much any request to the server will renew a
cookie for another 30 minutes.. so I could just have flex make a generic
request every 10 minutes or so to avoid idling out, but I don't want to do
that.

What I'd like to do is perform that request - say every 5 minutes - if there
has been any kind of activity in the flex app.. keyboard or mouse activity..
that way the server session stays active, and then if the user has been
idle for more than 20 minutes (no keyboard or mouse activity) to actually
blank the flex app window and pop up a login window, forcing the user to
reauthenticate.

I'm just not entirely sure of the best way to go about this.

Rick

--
I'm not certified, but I have been told that I'm certifiable...
Visit http://www.opensourcecf.com today!


Re: [flexcoders] Re: Populate ComboBox from database - NOT using Flex Data Services

2007-03-03 Thread Steve Gustafson

First you need to change your mx:RemoteObject to

mx:RemoteObject id=jobSvc destination=ColdFusion source=path.to.cfc
showBusyCursor=true
   mx:method name=GetJob  result=getJobResult(event)/
/mx:RemoteObject

Then add a result handler:
private function getJobResult(event:Object):void
{
   jobNameCB.dataProvider = event.result as ArrayCollection;
}


Steve
On 3/2/07, April [EMAIL PROTECTED] wrote:


  Thank you very much for this response. I think this is still a bit over
my head at this point
(I have only done tutorials, and none of the tutorials interact with a
database the way I will
be) but I will give it a stab and see what I can do with it.

I was looking at an article on Ben Forta's blog (
http://www.forta.com/blog/index.cfm?
mode=eentry=1786) and following his example I did this... only it doesn't
work:

I'm very very new to Flash and we are using ColdFusion but are not using
Flex Data
Services. I've been trying to figure out how to populate a combobox from a
database and
I'm just not having any luck.

My project is called PreTraffic. I have my main file as JobSearch.mxml
and a folder
under the root named cfc with a file called job.cfc.

job.cfc contains the following code:

cfcomponent

!--- Get jobs ---
cffunction name=GetJob access=remote returntype=query
output=false

cfset var job=
cfset var results=

cfquery datasource=discsdev name=job
SELECT job_id, job_title
FROM job
WHERE status = 'O'
ORDER BY job_title
/cfquery
cfquery dbtype=query name=results
SELECT job_title AS label, job_id AS data
FROM job
ORDER BY label
/cfquery

cfreturn results

/cffunction

/cfcomponent

And JobSearch.mxml has the following code:

?xml version=1.0 encoding=utf-8?
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns=*
layout=absolute
backgroundGradientColors=[#ff, #d0d0d0]
creationComplete=InitApp()

mx:Style source=style.css /

mx:Script
![CDATA[

public function InitApp():void {
jobSvc.GetJob();
}
]]
/mx:Script

!-- ColdFusion CFC (via AMF) --
mx:RemoteObject id=jobSvc destination=PreTraffic
showBusyCursor=true /

mx:VBox label=Job History width=100% height=100% x=10 y=92
mx:Label text=Search jobs by/
mx:Form label=Task width=100%
mx:FormItem label=Job Name:
mx:ComboBox id=jobNameCB dataProvider={jobSvc.GetJob.results}/
mx:ComboBox
/mx:FormItem
/mx:Form
mx:HBox
mx:Button label=Search/
mx:Button label=Clear/
/mx:HBox

/mx:VBox
/mx:Application

My Compiler thingy points to:
-services /Volumes/flexwwwroot/WEB-INF/flex/job-services-config.xml
-locale en_US

and job-services-config.xml contains the following code:

destination id=PreTraffic
channels
channel ref=my-cfamf/
/channels
properties
sourceflex.pretraffic.cfc.job/source
lowercase-keystrue/lowercase-keys
/properties
/destination

Well, when I run the app... the combobox is not populated... Can anyone
help with what
I've done wrong?

Thanks!

 



[flexcoders] webtops ?

2007-03-03 Thread Luis Eduardo


  is there anything like this in flex word?

  http://g.ho.st/

  this one is pre-release (will be publicly launched in april, accord to 
the autors) and is made in OpenLaszlo.
  i found it pretty impressive.

  *in time*  can someone figure out how they could make the fullscreen 
effect AND normal user input?



   []'s


 Luís Eduardo





___ 
Yahoo! Mail - Sempre a melhor opção para você! 
Experimente já e veja as novidades. 
http://br.yahoo.com/mailbeta/tudonovo/
 



[flexcoders] Can I use Flash Library items in Flex, if so, how?

2007-03-03 Thread Mark
I'm trying to load a flash 9 SWF into Flex with some luck.  I can 
get it in there with SWFLoader but now how can I use something from 
the Flash Library… or can I?

I get this error when I run the code below ReferenceError: Error 
#1065: Variable Radar is not defined.  But when I Dismiss All 
then click the button in the app it will move the radar movieClip 
that sits on the Flash Stage.  I'm confused as to what this error is.

For the library item - If it was being done in Flash, I'd use  
attachMovie () like: 

var cPoint:MovieClip = circle.attachMovie(pointer, 'point' + 
counter, 0 + counter, {_x:centerX + x, _y:centerY + y, date:cDate});

which would place the item on the stage as many times as I need it 
depending on the number of nodes from my XML.  Is there a way to do 
this in Flex using my loaded SWF?

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=init(event)
mx:Script
![CDATA[
import flash.events.*;
import flash.net.URLRequest;
import mx.controls.SWFLoader;
import mx.utils.ObjectUtil;
[Bindable]
private var loaded:Boolean = false;
private var swfContent:MovieClip;
private var myLoader:SWFLoader = new SWFLoader();

private function init(e:Event):void{
myLoader.showBusyCursor = true;
myLoader.addEventListener
(Event.INIT,loadHandler);
this.addChild(myLoader);
myLoader.y = 25;
myLoader.x = 25;
myLoader.load(Flash/radarFlexNoScript.swf); 
}
private function loadHandler(e:Event):void{
loaded = true;
swfContent = e.target.content;  
}

private function setRadar ():void {
//swfContent.getChildByName('radar').x = 0;
swfContent.radar.y += 20;
//swfContent.addChild('myPoint');
}


]]
/mx:Script
mx:Button click=setRadar() label=Set Something /
/mx:Application




Re: [flexcoders] DB access in Apollo

2007-03-03 Thread Rich Tretola

This is what I am hoping for.

Rich

On 3/2/07, Gordon Smith [EMAIL PROTECTED] wrote:


   The Apollo team is considering integrating a SQL database into the
Apollo runtime.

- Gordon

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Shannon Hicks
*Sent:* Friday, March 02, 2007 7:00 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] DB access in Apollo

  Don't forget that Apollo will let us use our own installers… There's no
reason you couldn't install your own database in addition to the Apollo
application.

Shan

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Abdul Qabiz
*Sent:* Thursday, March 01, 2007 12:20 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] DB access in Apollo

  I can imagine of doing that with Apollo. I would post soon .

On 3/1/07, Russell Sprague [EMAIL PROTECTED]rsprague%40infusion-studios.com
wrote:
 I noticed a while back that there wasn't any kind of local database
 access in Apollos feature list. Is this something that will/has
 changed, or are the devs thinking this will be a community
 contribution? It seems to me that DB access is a big part of desktop
 apps, I have built a couple using Flash, Zinc, and MySQL. It would be a
 shame to not be able to use Apollo for some projects because of this
 issue. Hopefully someone can tell me that I just missed it when Adobe
 added this to the feature list.

 Russ



  





--
Rich Tretola
mx:EverythingFlex/
http://www.EverythingFlex.com


[flexcoders] Flex resources list

2007-03-03 Thread Tracy Spratt
Please edit at will.
Tracy Spratt

Flex 2.x Resources

Flex sites/blogs:
Adobe:
http://www.adobe.com/devnet/flex/   DEVNET - start here!
http://www.adobe.com/products/flex/productinfo/faq/
http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepagepr
oductId=2
http://blogs.adobe.com/
http://weblogs.macromedia.com/mxna/
http://labs.adobe.com/
http://labs.adobe.com/community/
http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_usview=sn610vie
wName=Adobe%20Exchangeavm=1
http://blogs.adobe.com/flexdoc/

Other:
http://code.google.com/p/flexlib/
http://flexbox.mrinalwadhwa.com/
http://dougmccune.com/blog/
http://www.cflex.net/
http://www.quietlyscheming.com/blog/
http://www.everythingflex.com
http://www.waldosmeets.com/
http://www.jessewarden.com/
http://www.cbetta.com/blog/
http://www.cynergytv.com/
http://www.flexdaddy.info/
http://www.richinternet.de/blog/
http://www.brightworks.com/technology/overview.html
http://www.crossdomainxml.org/
http://flexsearch.org/
http://labs.flexcoders.nl/


Flex style Explorer:
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplo
rer.html

Documentation:
http://www.adobe.com/support/documentation/en/flex/
http://livedocs.macromedia.com/flex/2/
http://www.adobe.com/cfusion/knowledgebase/index.cfm

Lists:
http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60
http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcomponents/

Bugs/enhancement requests:
http://www.adobe.com/go/wish


Re: [flexcoders] Two Questions on which I am stumped

2007-03-03 Thread Jeremy Tooley
After much searching I have answered question 2 myself. I didnt realize 
I could create a custom event and dispatch it from my itemRenderer 
button within the datagrid.


Anyone have any ideas on question 1.

Thanks
Jeremy


We Made That design wrote:



Hi all,

I have two questions I am trying to figure out.

1. I have a client who has specifically requested an intro be played at
the start of the application( I have tried talking them out of it). I was
thinking I could use flash 9 ide as the intro was built in it. Can I just
load the flex app into an swf via flash 9 ide. And the real question for
me is how would I replay the intro as there is a button specified for
this?
I am so used to using modules now in flex.

2. I am using itemRenderers in my datagrid and have a link button in one
of the columns. I cant seem to access the selectedIndex on the row
selected when clicking the link button. I actually cant access any
functions either from my as class. How can I access functions from my main
mxml file and also access stuff like selectedIndex from my
arrayCollection. I can access the data from the grid no problem using
data.name or whatever.

Thanks
Jeremy

Jeremy Tooley
Creative Director
We Made That Design Group Inc.
[EMAIL PROTECTED] mailto:jeremy%40wemadethat.com
http://www.wemadethat.com http://www.wemadethat.com
p: 403.668.0857
c: 403.836.3048




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.5/707 - Release Date: 3/1/2007 2:43 PM
  




RE: [flexcoders] cannot loading data from database

2007-03-03 Thread Tracy Spratt
Do you have a fault handler?  Is it being called?  Are you getting an
error? What is it?  When you say ...in the root server..., where
exactly is that?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ravi chandran
Sent: Friday, March 02, 2007 7:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cannot loading data from database

 

hello friends i am new to flex i have developed one sample appn in flex
using php and mysql as a backend , now i can get the values from the
database and show in to the data grid. but i can only see that data in
the grid.(http://192.168.1.2/flex/bin/example.html
http://192.168.1.2/flex/bin/example.html ) in my system which i
developed the appln.

if i open this page (http://192.168.1.2/flex/bin/example.html
http://192.168.1.2/flex/bin/example.html ) in another system, i cant
able to see the data , only grid is showing.. i have also placed the
crossdomain.xml file in the root server

!DOCTYPE cross-domain-policy SYSTEM
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd 
cross-domain-policy
allow-access-from domain=* secure=true /
/cross-domain-policy

i dont know why this error is coming.. if anybody knows pls let me know
,it will be greatful.

from
ravi


__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/ http://in.answers.yahoo.com/ 

 



[flexcoders] problem in calling a webservice GBLNewsService.getNewsDetail

2007-03-03 Thread Arun Sadasivan

Hi ,
:
i had registered a webservice created in php as the following:

GBLNewsService.getNewsDetail  (classname.method name)  Since the method
made as webservice is a function of the class GBLNewsService.

Now the problem is  how can i call this webserice in flex using the
Webservice component.
When i tried to call it like GBLNewsService.getNewsDetail as i do in other
php clients it is giving me error.
All examples are also showing callng of a webservice in flex like
getNewsDetail  only.

So either provider or client should have some option to solve this problem.

Can anybody here help me . Really i got stuck with this problem.


--
Regards,
  ...Arun


Re: [flexcoders] cannot loading data from database

2007-03-03 Thread Sutuy or Duky
i'm a newbie in flex, i build my app and use HTTPService like yours, and i had 
an error when i run my app from client computer. it seems we have same problem. 
i have no idea to solve this error. but i think AMFPHP can solve it. you can 
download the sample from mike blogs.

http://blogs.adobe.com/mikepotter/2006/02/flex_and_php_us.html

i've try built app with AMFPHP and it works properly. i can load the data from 
client, but i'm still search ways, how to send parameters from flex to PHP 
through AMFPHP (input, edit,  delete the data). ^_^ hope you or anybody who 
has find the ways share with me...

thx
sutuy


ravi chandran [EMAIL PROTECTED] wrote:  hello 
friends i am new to flex i have developed one sample appn in flex using php and 
mysql as a backend , now i can get the values from the database and show in to 
the data grid. but i can only see that data in the 
grid.(http://192.168.1.2/flex/bin/example.html) in my system which i developed 
the appln.
 
 if i open this page (http://192.168.1.2/flex/bin/example.html) in another 
system, i cant able to see the data , only grid is showing..  i have also 
placed the crossdomain.xml file in the root server
 
 !DOCTYPE cross-domain-policy SYSTEM 
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd;
 cross-domain-policy
allow-access-from domain=* secure=true /
 /cross-domain-policy
 
 i dont know why this error is coming.. if anybody knows pls let me know ,it 
will be greatful.
 
 from
 ravi
 
   
 __
 Yahoo! India Answers: Share what you know. Learn something new
 http://in.answers.yahoo.com/
 
 
   

 
-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV.

[flexcoders] Problem with swc files

2007-03-03 Thread Guillermo Villasana
Hello I have been trying to add a swc file, but I have not been able to 
make the internal components of the swc file be recognized.

In my project I have the following structure

my_Project
-swc_folder
--flexunit.swc
-mainapp.mxml


I added the swc_folder into my library path

and in my mainapp.mxml I added
xmlns:flexlib=flexunit.flexui.*

I get the following error:

1046: Type was not found or was not a compile-time constant: 
SuperTabNavigator

What am I doing wrong?
Thanks
Terius


[flexcoders] FileReference.upload, URLVariables,uploadDataFieldName not working as expected.

2007-03-03 Thread w4kpm
I know I'm probably just doing something wrong - I'm a Noob w/ flex.

I'm using FileReference.upload to upload a file to a server and it's
uploading the file OK, but some of the 'options' are not working for
me. For example I'm trying to use the uploadDataFieldName parameter to
change the fieldname that is being uploaded. (I know I can just change 
it on the server, and I probably will, but it just bugs me) 

from the docs:
public function upload(request:URLRequest, uploadDataFieldName:String
= Filedata, testUpload:Boolean = false):void

so the second parameter should be used to change that name. 

The other problem is probably bigger for me, I am trying to send some
other values along with the post. I set up my URLVariables and assign
values in there and set request.data = variables, just like is shown
in the docs, but these don't come through.

Here is a section of the code (along with a few things I'm doing to
convince myself that I didn't have a cached swf or something):

var request:URLRequest = new URLRequest();
var uploadname:String = new String();
request.url = UPLOAD_URL;
var variables:URLVariables = new URLVariables();
variables.description = Hello from flash;

request.data = variables;
request.method = URLRequestMethod.POST
import mx.controls.Alert;
uploadname = attached_file
Alert.show(uploadname);   
fr.upload(request,uploadname);

and here is my post data:

--5a2537304aa5
Content-Disposition: form-data; name=Filename

testfile.txt
--5a2537304aa5
Content-Disposition: form-data; name=Filedata; filename=testfile.txt
Content-Type: application/octet-stream

*** begin file ***

This is my file

*** end file ***
--5a2537304aa5
Content-Disposition: form-data; name=Upload

Submit Query
--5a2537304aa5--

I haven't got the slightest idea where the 'Upload' is coming from
fr is the FileReference and most of the rest of the code is straight
out of an example from Programming in ActionScript 3.0 that I found
somewhere.

Any pointers??

Thanks in advance,

Kelly




[flexcoders] Issues with Flex Ant Tasks

2007-03-03 Thread daveeeeo
All,
Relative newbie here and very much enjoying my immersion into Flex. 
I'm trying to put together an Ant script to do my builds/deployments
and am running into a couple of issues.. documentation is lean, so I'm
hoping someone has run into these before.

Of importance:  the app is using FDS using several mx:RemoteObjects. 
We're using Cairngorm so we have a Services.xml file and have our
remote delegates defined in remoting-config.xml.

I've got my tasks compiling and outputting correctly, but the
following two things keep happening:

1) When accessing the generated HTML page, I immediately get a runtime
error saying that the app could not establish a connection to my
remote delegate.  

In code, I first get the Service from cairngorm:
utilDelegate = ServiceLocator.getInstance().getService(UtilDelegate)
as RemoteObject;

then attempt a call to a method of this utilDelegate.  The code always
faults, and Weblogic never twitches.  This error is alerted:

The error is like this:
[RPC Fault faultString=[MessagingError message=Unknown destination
'utilDelegate'.] faultCode=InvokeFailed faultDetail=Couldn't
establish a connection to 'utilDelegate']

Can't seem to find the remoting-config.xml file.  I've added a
services=/PATH/flex-config.xml to the mxmlc task.. seems to do
something with it because if I enter an invalid path I get an error.

2) The SWF size is always being defaulted to 400x400.  I think I've
figured out how to set it to a different static size, but how can I
force it to generate at 100%x100% like Flex Builder does?  Whenever I
try to enter a percentage I get a compiler error.

Hope someone can help with this, I'm throwing darts right now.

Thanks!
Dave



[flexcoders] How to load TTF fonts at runtime

2007-03-03 Thread core_rico
Is it possible to load TTF fonts at runtime? I do not want to embed
all the fonts on the swf because it will produce quite a large file. I
am developing an online designer of some sort and I would like the
user to be able to use custom fonts but embedding all of them on the
swf would be costly, we need to load them at runtime. Is this possible?



Re: [flexcoders] Setting up command line

2007-03-03 Thread Mike and Stephie

Hi Dimitrios!

Thanks for the response !
Calling from the dos prompt to compile a single standalone .mxml file
Our hope is to be able to do this from the shell in any directory.
At the moment it works only from the ..\bin directory which contains 
mxmlc.exe

Appreciate any comments
Prema


Dimitrios Gianninas wrote:


How are u calling mxmlc? by using ant and calling the mxmlc.exe ? or 
calling via the mxmlc.jar ?


Dimitrios Gianninas
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
on behalf of Mike and Stephie

Sent: Fri 3/2/2007 3:27 PM
To: FlexCoders
Subject: [flexcoders] Setting up command line

Hi People !
We're new to Flex and having some fun with it!
Just trying to run mxmlc from command line in Windows XP and get
*Error: could not find a JVM.
*Have just installed the JDK1.6 and JAVA_HOME is set to \jdk\bin
Does anyone have any tips please
Thanks for your help
Prema

--
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the 
use of the intended recipient. No privilege or other rights are waived 
by any unintended transmission or unauthorized retransmission of this 
message. If you are not the intended recipient of this message, or if 
you have received it in error, you should immediately stop reading 
this message and delete it and all attachments from your system. The 
reading, distribution, copying or other use of this message or its 
attachments by unintended recipients is unauthorized and may be 
unlawful. If you have received this e-mail in error, please notify the 
sender.


AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé. L'expéditeur original ne 
renonce à aucun privilège ou à aucun autre droit si le présent message 
a été transmis involontairement ou s'il est retransmis sans son 
autorisation. Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système. La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux. Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.


 




[flexcoders] Customizing header's datagrid to merge cols

2007-03-03 Thread wazzameleon
Hie,

I'm trying to custom the header of a datagrid to merge header's column
to have something like that :

-
|   | column 2 and 3 merged |   |
| column 1  |---| column 4  |
|   | column 2 | column 3   |   |
-
|   |  ||   |
|   |  ||   |
|   |  ||   |


Does someone has already done that ?

Thanks




[flexcoders] Unknown configuaration variable 'complier.keep-as3-metadata'

2007-03-03 Thread neil_durbin
I keep getting the error  Unknown configuaration variable 
'complier.keep-as3-metadata'  in the flex-config.xml file whenever I 
run a project using FDS compile application on the server when the 
page is viewed.  Does anyone know how to fix this?  Cheers!



RE: [flexcoders] Setting up command line

2007-03-03 Thread Dimitrios Gianninas
Ok I know what your problem is, in the \bin folder there is a jvm.config file, 
in that file there is a variable that points to your JDK/JRE... obviously it is 
pointing to the wrong location, so correct it, save and try again.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike 
and Stephie
Sent: Saturday, March 03, 2007 5:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Setting up command line



Hi Dimitrios!

Thanks for the response !
Calling from the dos prompt to compile a single standalone .mxml file
Our hope is to be able to do this from the shell in any directory.
At the moment it works only from the ..\bin directory which contains mxmlc.exe
Appreciate any comments
Prema


Dimitrios Gianninas wrote: 

How are u calling mxmlc? by using ant and calling the mxmlc.exe ? or 
calling via the mxmlc.jar ?

Dimitrios Gianninas
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
on behalf of Mike and Stephie
Sent: Fri 3/2/2007 3:27 PM
To: FlexCoders
Subject: [flexcoders] Setting up command line

Hi People !
We're new to Flex and having some fun with it!
Just trying to run mxmlc from command line in Windows XP and get
*Error: could not find a JVM.
*Have just installed the JDK1.6 and JAVA_HOME is set to \jdk\bin
Does anyone have any tips please
Thanks for your help
Prema

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient. No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message. If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system. The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful. If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système. La lecture, la distribution, la copie ou tout 
autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.




 


[flexcoders] AMFPHP pass objects???

2007-03-03 Thread Kevin
I am trying to pass an object type from Flex (Cairngorm) to PHP5  
through AMFPHP 1.9 and I can't seem to get it to work.  It seems that  
PHP only recognizes the object as an array and ignores any private  
variables in the object.  Can anyone think of a reason that this  
would be happening?


At it's simplest, I tried this just to try to get the object to be  
recognized:


FLEX:
var tempVO:Object = new Object;
tempVO.name = 'kevin';
tempVO.pass = '123';
var call : Object = service.login( tempVO );

PHP:

public function login( $UserVO )
{
	$this-Debug-write_log(passed from flex:\n\n.print_r($UserVO,  
true));

return $UserVO;
}

LOG:

passed from flex:

Array
(
[name] = kevin
[pass] = 123
)




[flexcoders] optimal way to declare styles

2007-03-03 Thread Johannes Nel

hi

i am creating a video controller bar. so this controller bar consits of
several buttons and 2 sliders.

so for each of these buttons i want someone to be able to specify all the
different skins. so my style declaration looks something like this
   /**
* Default controller fastforward button selected disabled skin
*/
   [Style(name=fastforwardSelectedDisabledIcon, type=Class,
inherit=yes)]
   /**
* Default controller fastforward button over skin
*/
   [Style(name=fastforwardOverIcon, type=Class, inherit=yes)]
   /**
* Default controller fastforward button down skin
*/
   [Style(name=fastforwardDownIcon, type=Class, inherit=yes)]
   /**
* Default controller fastforward button disabled skin
*/
   [Style(name=fastforwardDisabledIcon, type=Class,
inherit=yes)]

for each button i declare each skin :(
so my css style would look something like this
.myVideoControlBar
{
   fastforwardSelectedDisabledIcon:
Embed(source=../../assets/barbuttons.swf, symbol=fastforward);
   fastforwardSelectedDownIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforward);
   fastforwardSelectedOverIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforwardOver);
}
and then i have to write the code to set this and flag the changes in
styleChanged, invalidate displaylist and write default style values for each
in the classConstruct function.

this looks clumsy and requires a lot of code, time, difficult testing and
high maintenance :(
i could ofcourse  do this
mx:Button  id=fastforwardButton
   styleName=forwardButton
   buttonDown=fastforward()
   autoRepeat=true/
but now i am tying the user of this component into a naming convention in
their stylesheet. also undesireble.


my ideal would be doing this:
declaring a style i want to use for the button in my style sheet
.fastforwardStyle
{
   fillColors: #E7E7E7, #EFEFEF, #EFEFEF, #E7E7E7;
   cornerRadius: 0;
   disabledIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforward);
   downIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforward);
   overIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforwardOver);
   selectedDisabledIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforward);
   selectedDownIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforward);
   selectedOverIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforwardOver);
   selectedUpIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforward);
   upIcon: Embed(source=../../assets/barbuttons.swf,
symbol=fastforward);
}


then in my videocontrol bar
   /**
* Default controller fastforward button skin
  * @copy Button#Styles
*/
   [Style(name=fastforwardButtonStyle, type=String,
inherit=yes)]

mx:Button  id=fastforwardButton
   buttonDown=fastforward()
   autoRepeat=true/

//
and in the video control bar style
.myVideoControlBar
{
fastforward-button-style:fastforwardStyle;
}

and finally assinging the style in my component i would just do this
fastforwardButton.styleName = fastforwardStyle;


this obviously does not work, hence me posting here.

has anyone got any suggestions how i can do this with the least amount of
code?

thanks
johan
--
j:pn
http://www.lennel.org


[flexcoders] Re: Determining the idle state of a flex application

2007-03-03 Thread julien castelain
Hi Rick,

Maybe i'm wrong but i'd probably use a Timer to handle this time of
behavior.



--- In flexcoders@yahoogroups.com, Rick Root [EMAIL PROTECTED] wrote:

 Does anyone have any suggestions for monitoring idleness of a Flex
 application?
 
 The way my app works, pretty much any request to the server will renew a
 cookie for another 30 minutes.. so I could just have flex make a generic
 request every 10 minutes or so to avoid idling out, but I don't want
to do
 that.
 
 What I'd like to do is perform that request - say every 5 minutes -
if there
 has been any kind of activity in the flex app.. keyboard or mouse
activity..
 that way the server session stays active, and then if the user has been
 idle for more than 20 minutes (no keyboard or mouse activity) to
actually
 blank the flex app window and pop up a login window, forcing the user to
 reauthenticate.
 
 I'm just not entirely sure of the best way to go about this.
 
 Rick
 
 -- 
 I'm not certified, but I have been told that I'm certifiable...
 Visit http://www.opensourcecf.com today!





RE: [flexcoders] problem in calling a webservice GBLNewsService.getNewsDetail

2007-03-03 Thread Karl Johnson
Declare your web service in an mxml webservice tag and add
getNewsDetail as an mx:operation child node to the webservice tag.
Then give your webservice tag a name myService or whatever. When you
want to call the method, you do myService.getNewsDetail().

 

Of course the call will only work if you specified a valid wsdl, and
that wsdl contains the getNewsDetail method defined in it.

 

Karl

Cynergy

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Arun Sadasivan
Sent: Friday, March 02, 2007 11:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem in calling a webservice
GBLNewsService.getNewsDetail

 

Hi ,
:
 i had registered a webservice created in php as the following:

GBLNewsService.getNewsDetail  (classname.method name)  Since the
method made as webservice is a function of the class GBLNewsService. 

Now the problem is  how can i call this webserice in flex using the
Webservice component.
When i tried to call it like GBLNewsService.getNewsDetail as i do in
other php clients it is giving me error. 
All examples are also showing callng of a webservice in flex like
getNewsDetail  only.

So either provider or client should have some option to solve this
problem. 

Can anybody here help me . Really i got stuck with this problem.


-- 
Regards,
   ...Arun 

 



[flexcoders] Drag Drop Compiler Bug/Problem

2007-03-03 Thread richmcgillicuddy
I have a very (very) simple demo program that is listed below. I was
having trouble dropping a tilelist item onto a canvas. I was able to
get the drop to work only if I set the toolTip of the canvas. This
seems very odd, like the canvas was not initialized yet. The drag
operation starts OK enough but I get the cannot drop marker when I try
to drop on the canvas, UNLESS I set the tooltip to something. Any ideas?


Rich


--







?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=onInit()
mx:Script
![CDATA[
import mx.utils.ObjectProxy;
import mx.collections.ArrayCollection;
import mx.core.DragSource;
import mx.managers.DragManager;
import mx.events.*;

var anArrayCollection : ArrayCollection = new 
ArrayCollection();
private function onInit() : void {

var thisItem : ObjectProxy = new ObjectProxy();
thisItem.title = Item 1;
anArrayCollection.addItem(thisItem);
thisItem = new ObjectProxy();
thisItem.title = Item 2;
anArrayCollection.addItem(thisItem);
tlTest.dataProvider = anArrayCollection;


cvsDropTarget.addEventListener(DragEvent.DRAG_ENTER,
onSpaceDragEnter);
cvsDropTarget.addEventListener(DragEvent.DRAG_DROP,
onSpaceDragDrop);   


}

private function onSpaceDragEnter(event : DragEvent) : void {
 var dropTarget: Canvas = Canvas(event.currentTarget);

// Accept the drag only if the user is dragging data 
// identified by the 'color' format value.
if (event.dragSource != null) {  
DragManager.acceptDragDrop(dropTarget);
}   
}

private function onSpaceDragDrop(event : DragEvent) : void {
var thisItem : SimpleThumbnail =  new SimpleThumbnail();
thisItem.lblName.text = Test;
thisItem.x = event.localX;
thisItem.y = event.localY;
thisItem.width  = 200;
thisItem.height = 200;  
cvsDropTarget.addChild(thisItem);

}

]]
/mx:Script
mx:Canvas id=cvsDropTarget  x=0 y=0 width=100% height=100%
toolTip= /
mx:TileList id=tlTest x=0 y=0 width=140 height=100%
itemRenderer=SimpleThumbnail dragEnabled=true
allowMultipleSelection=false /

/mx:Application



---
// Simple Thumbnail

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=120
height=120  
 verticalAlign=middle cornerRadius=10 borderStyle=solid
backgroundColor=#c0c0c0
mx:Label text={data.title} id=lblName fontSize=28
textAlign=center width=100%/

/mx:HBox



Re: [flexcoders] AMFPHP pass objects???

2007-03-03 Thread Kevin

in case you are having the same problem:

I solved some of my own problem...  One needs to set this var  
correctly in advancedsettings.php (amfphp dir) to have incoming PHP  
mapping work:


//One may choose to put mapped classes (incoming) outside of the  
services folder also

$gateway-setBaseCustomMappingsPath('services/vo');

- Kevin




On Mar 3, 2007, at 9:34 AM, Kevin wrote:

I am trying to pass an object type from Flex (Cairngorm) to PHP5  
through AMFPHP 1.9 and I can't seem to get it to work.  It seems  
that PHP only recognizes the object as an array and ignores any  
private variables in the object.  Can anyone think of a reason that  
this would be happening?



At it's simplest, I tried this just to try to get the object to be  
recognized:


FLEX:
var tempVO:Object = new Object;
tempVO.name = 'kevin';
tempVO.pass = '123';
var call : Object = service.login( tempVO );



PHP:



public function login( $UserVO )
{
	$this-Debug-write_log(passed from flex:\n\n.print_r($UserVO,  
true));

return $UserVO;
}


LOG:



passed from flex:

Array
(
[name] = kevin
[pass] = 123
)











[flexcoders] Re: simulate datagrid header click, or set default sort column

2007-03-03 Thread iko_knyphausen

By dates, I meant, sorting the following

2/13/2007
11/13/2007

If you sort these as strings, November is smaller than February, which
is obviously wrong. Your sortFunction would have to create date objects
first and compare those, or pad the strings with leading zeros...


--- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote:

 OK, this was easier than anticipated. I didn't realise the DataGrid
would detect the sort on the ArrayCollection and update it's sort arrow
based on this.

 My code:

 import mx.collections.Sort;
 import mx.collections.SortField;



 var s:Sort = new Sort();
 s.fields = [new SortField(transaction_date,false,true)];
 dataProvider.sort = s;
 dataProvider.refresh();


 Thanks for your advice. By the way, I don't really understand what you
mean about sorting dates as strings. When I load my data I create date
objects from my strings, and the datagrid/sort classes sort it all
correctly. Although I do understand your labelFunction point.

 Cheers,
 Adam


 - Original Message -
 From: iko_knyphausen
 To: flexcoders@yahoogroups.com
 Sent: Saturday, March 03, 2007 9:52 AM
 Subject: [flexcoders] Re: simulate datagrid header click, or set
default sort column



 Yes, but you should provide for the sorting of these columns too,
 otherwise your sort competes against the builtin...

 Alternatively, you could detach your custom sort whenever a different
 header is clicked (meaning resetting the sort property of the
 collection) - but I think you can have much more control doing your
own.
 Also keep in mind, if you have any columns with calculated fields
 (meaning the dataField value is different than what is displayed), you
 may need a custom sort anyway (try sorting dates as strings... and you
 see what I mean)

 Iko

 --- In flexcoders@yahoogroups.com, Adam Royle adam@ wrote:
 
  OK, thanks for your response. Haven't tried this yet, but will do.
 Just a quick question, if I use do the way you recommend with a custom
 sort object, can the user still use the headers to change the sort
 column/direction? This is what I want.
 
  Thanks,
  Adam
 
  - Original Message -
  From: iko_knyphausen
  To: flexcoders@yahoogroups.com
  Sent: Saturday, March 03, 2007 5:09 AM
  Subject: [flexcoders] Re: simulate datagrid header click, or set
 default sort column
 
 
 
  BTW, I also fiddled with dispatching the HEADER_RELEASE event,
before
 I
  used a custom sort, and one problem is, that its behavior depends on
  whether the column to be sorted was the last sorted column or not.
If
 it
  was the previous sort column a header release event will reverse the
  sort order, if it was not the last column, it will reuse the same
sort
  order that it had when it was last used - in some cases you may end
up
  dispatching the header release twice, to get the desired sort order,
 and
  you can see... this is not a good solution ;-)
 
  --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote:
  
  
   I just went through the same exercise, and ended up using the
   recommended method, which is creating your own Sort object...
  
   The basic working is to
  
   1. take a collection (either arraycollection or xmllistcollection)
 as
   dataprovider
   2. define a Sort object for it (you do this by creating SortFields
 and
   putting them into the fields array of the Sort object)
   3. execute a Refresh on your collection
  
   If you trigger your sort via HeaderRelease events, you should call
   preventDefault() in that handler so that only your sort gets
 executed.
  
   You can find code samples if you look in the docs (the example I
 used
   was about sorting multiple columns at the same time)
  
   HTH
   --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote:
   
One thing to look at would be dispatch a HEADER_RELEASE event on
 the
datagrid. Its not the most straightforward fix, and will take a
  little
tweaking to get to work right, but it is doable.
   
   
   
   
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
Sent: Thursday, March 01, 2007 8:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] simulate datagrid header click, or set
default sort column
   
   
   
   
Hi guys,
   
This came up last week but no working response was given.
   
I have my data sorted in a dataProvider, however whenever I add
new data I add it to the end of the ArrayCollection. However
this
   means
the datagrid is no longer sorted correctly.
   
I wish I could execute the private method sortByColumn() that
exists in the DataGrid class, but it's private!!
   
Anyone with a solution? I have tried subclassing and also
copying code directly, but the sortByColumn method uses private
variables, so I'm stuck again.
   
Can anyone suggest a solution to my problem?
   
Cheers,
Adam
   
  
 






[flexcoders] Event Prioritsation ---MouseEvent.CLICK MouseEvent.DOUBLE_CLICK

2007-03-03 Thread mapanalysis
Hi Guys

Been wracking my brains over this and still can't get it to work. 
How do I get my app to tell the difference between a click and a 
double click event:-

I've seen some similar issues on this group but I couldn't find the 
definitive answer:


Here's the code I've been using:-


import flash.events.MouseEvent;
import mx.controls.Alert;
private function initApp():void{



this.addEventListener(MouseEvent.MOUSE_WHEEL,mw,false,2);
this.addEventListener(MouseEvent.DOUBLE_CLICK,dc,false,3);

this.addEventListener(MouseEvent.CLICK,lc,false,1)



}   

private function lc(evt:MouseEvent):void{

var x:Number = Number(evt.localX);
var y:Number = Number(evt.localY);

Alert.show(Center @  +   + x.toString() +   + 
y.toString());  






}

private function dc(evt:MouseEvent):void{

var x:Number = Number(evt.localX);
var y:Number = Number(evt.localY);

Alert.show(Zoom In  Center @  +   + x.toString
() +   + y.toString());   






}   

private function mw(evt:MouseEvent):void{
var i:Number = Number(evt.delta);
var x:Number = Number(evt.localX);
var y:Number = Number(evt.localY);
if(i0){
Alert.show(FWD +   + x.toString() +   + 
y.toString());  
}
if(i0){
Alert.show(BWD +   + x.toString() +   + 
y.toString());  
}


}   


Kind Regards


Jonathan



Re: [flexcoders] Flex resources list

2007-03-03 Thread Jeffry Houser


 A Podcast:  www.theflexshow.com

 And it's two creators Jeff Houser www.JeffryHouser.com (Me) and 
Ryan Stewart http://blog.digitalbackcountry.com/ .  Ryan blogs a lot 
about generic RIA-related issues.  I tend to be more tech.



At 12:54 PM 3/2/2007, Tracy Spratt wrote:


Please edit at will.

Tracy Spratt

Flex 2.x Resources

Flex sites/blogs:

Adobe:

http://www.adobe.com/devnet/flex/http://www.adobe.com/devnet/flex/ 
DEVNET - start here!


http://www.adobe.com/products/flex/productinfo/faq/http://www.adobe.com/products/flex/productinfo/faq/

http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepageproductId=2

http://blogs.adobe.com/http://blogs.adobe.com/

http://weblogs.macromedia.com/mxna/

http://labs.adobe.com/http://labs.adobe.com/

http://labs.adobe.com/community/

http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_usview=sn610viewName=Adobe%20Exchangeavm=1http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_usview=sn610viewName=Adobe%20Exchangeavm=1

http://blogs.adobe.com/flexdoc/

Other:

http://code.google.com/p/flexlib/http://code.google.com/p/flexlib/

http://flexbox.mrinalwadhwa.com/

http://dougmccune.com/blog/http://dougmccune.com/blog/

http://www.cflex.net/

http://www.quietlyscheming.com/blog/http://www.quietlyscheming.com/blog/

http://www.everythingflex.com

http://www.waldosmeets.com/http://www.waldosmeets.com/

http://www.jessewarden.com/

http://www.cbetta.com/blog/http://www.cbetta.com/blog/

http://www.cynergytv.com/

http://www.flexdaddy.info/http://www.flexdaddy.info/

http://www.richinternet.de/blog/

http://www.brightworks.com/technology/overview.htmlhttp://www.brightworks.com/technology/overview.html

http://www.crossdomainxml.org/

http://flexsearch.org/http://flexsearch.org/

http://labs.flexcoders.nl/

Flex style Explorer:

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.htmlhttp://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html

Documentation:

http://www.adobe.com/support/documentation/en/flex/http://www.adobe.com/support/documentation/en/flex/

http://livedocs.macromedia.com/flex/2/

http://www.adobe.com/cfusion/knowledgebase/index.cfmhttp://www.adobe.com/cfusion/knowledgebase/index.cfm

Lists:

http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60

http://groups.yahoo.com/group/flexcoders/

http://groups.yahoo.com/group/flexcomponents/http://groups.yahoo.com/group/flexcomponents/

Bugs/enhancement requests:

http://www.adobe.com/go/wishhttp://www.adobe.com/go/wish



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.com
Connecticut Macromedia User Group: http://www.ctmug.com


[flexcoders] SHA384 algorithm

2007-03-03 Thread Marcel Schepers

Hello,

I'm looking for a SHA384 implementation in ActionScript.

Have a nice day,
Marcel Schepers


[flexcoders] WSDLifficulty - bad SOAP encoding

2007-03-03 Thread Sean McKibben
I ran in to a problem today with Flex's SOAP encoding which I think  
is a bug in the SOAP encoder.


It seems like whatever I did to call one of my webservice methods,  
Flex would give me an error as it was encoding my request. The error  
was something like the following:
TypeError: Error #1009: Cannot access a property or method of a null  
object reference.

...
at mx.rpc::AbstractService/dispatchEvent()[C:\dev\enterprise_bali 
\frameworks\mx\rpc\AbstractService.as:236]
	at mx.rpc.soap.mxml::WebService/dispatchEvent()[C:\dev 
\enterprise_bali\frameworks\mx\rpc\soap\mxml\WebService.as:226]
	at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/ 
internal::dispatchRpcEvent()[C:\dev\enterprise_bali\frameworks\mx\rpc 
\AbstractOperation.as:183]
	at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/ 
internal::invokePendingCall()[C:\dev\enterprise_bali\frameworks\mx\rpc 
\soap\Operation.as:584]
	at mx.rpc.soap::Operation/send()[C:\dev\enterprise_bali\frameworks\mx 
\rpc\soap\Operation.as:492]

at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.rpc.soap.mxml::Operation/send()[C:\dev\enterprise_bali 
\frameworks\mx\rpc\soap\mxml\Operation.as:140]

at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/ 
flash/proxy::callProperty()[C:\dev\enterprise_bali\frameworks\mx\rpc 
\AbstractService.as:287]


My program would always stop right at the encoding process. The trace  
stopped with these last lines:

...
19:41:19.740 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP request  
envelope

19:41:19.745 [DEBUG] mx.rpc.soap.SOAPEncoder Encoding SOAP request body


After many attempts to try to get my very simple 1-string request  
encoded, I started looking in to the WSDL. Luckily I could control  
the WSDL - in many webservice use cases, you can not.
From what I have been able to deduce, Flex's SOAP encoder will throw  
the above error if the name of the webservice Operation - i.e.  
ListInterviews - is not the same as the name of the message part  
element, i.e. ListInterviewsRequest.


As a more thorough example, consider this WSDL, which should be fully  
valid (Oxygenxml and XmlSpy are both ok with it, and can generate  
SOAP for it):


?xml version=1.0 encoding=UTF-8?
wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;  
xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:wsdl=http:// 
schemas.xmlsoap.org/wsdl/ xmlns:tns=http://www.yourURI.com/ 
OfficeService targetNamespace=http://www.yourURI.com/OfficeService;

wsdl:types
		s:schema targetNamespace=http://www.yourURI.com/OfficeService;  
elementFormDefault=qualified

s:element name=ListInterviewsRequest
s:complexType
s:sequence
s:element name=Token type=s:string 
minOccurs=1/
/s:sequence
/s:complexType
/s:element
s:element name=ListInterviewsResponse
s:complexType
s:sequence
s:element name=InterviewList 
type=s:string minOccurs=0/
/s:sequence
/s:complexType
/s:element
/s:schema
/wsdl:types
wsdl:message name=ListInterviewsSoapIn
wsdl:part name=parameters 
element=tns:ListInterviewsRequest/
/wsdl:message
wsdl:message name=ListInterviewsSoapOut
wsdl:part name=parameters 
element=tns:ListInterviewsResponse/
/wsdl:message
wsdl:portType name=OfficeServiceSoap
wsdl:operation name=ListInterviews
wsdl:input message=tns:ListInterviewsSoapIn/
wsdl:output message=tns:ListInterviewsSoapOut/
/wsdl:operation
/wsdl:portType
wsdl:binding name=OfficeServiceSoap type=tns:OfficeServiceSoap
soap:binding transport=http://schemas.xmlsoap.org/soap/http/
wsdl:operation name=ListInterviews
			soap:operation soapAction=http://www.yourURI.com/OfficeService/ 
ListInterviews style=document/

wsdl:input
soap:body use=literal/
/wsdl:input
wsdl:output
soap:body use=literal/
/wsdl:output
/wsdl:operation
/wsdl:binding
wsdl:service name=OfficeService
wsdl:port name=OfficeServiceSoap 
binding=tns:OfficeServiceSoap
			soap:address location=http://www.yourURI.com/OfficeService/ 
Implementation.page/

/wsdl:port
/wsdl:service
/wsdl:definitions


A 

[flexcoders] AMFPHP Sessions

2007-03-03 Thread Kevin
Can someone provide and example of how to use AMFPHP with sessions.   
I can't seem to get it to work.  The documentation states:

Cookieless sessions
AMFPHP automatically handles sessions for you and sends back a header  
to Flash with a redirect to the gateway with the PHPSESSID appended  
to the query, meaning cookieless sessions are supported.

I just don't know how to integrate this???

Thanks, Kevin


Re: [flexcoders] Re: simulate datagrid header click, or set default sort column

2007-03-03 Thread Adam Royle
Ahh yep, my date strings are in format -MM-DD anyway.

Cheers!
Adam


  - Original Message - 
  From: iko_knyphausen 
  To: flexcoders@yahoogroups.com 
  Sent: Sunday, March 04, 2007 3:11 AM
  Subject: [flexcoders] Re: simulate datagrid header click, or set default sort 
column



  By dates, I meant, sorting the following

  2/13/2007
  11/13/2007

  If you sort these as strings, November is smaller than February, which
  is obviously wrong. Your sortFunction would have to create date objects
  first and compare those, or pad the strings with leading zeros...

  --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote:
  
   OK, this was easier than anticipated. I didn't realise the DataGrid
  would detect the sort on the ArrayCollection and update it's sort arrow
  based on this.
  
   My code:
  
   import mx.collections.Sort;
   import mx.collections.SortField;
  
  
  
   var s:Sort = new Sort();
   s.fields = [new SortField(transaction_date,false,true)];
   dataProvider.sort = s;
   dataProvider.refresh();
  
  
   Thanks for your advice. By the way, I don't really understand what you
  mean about sorting dates as strings. When I load my data I create date
  objects from my strings, and the datagrid/sort classes sort it all
  correctly. Although I do understand your labelFunction point.
  
   Cheers,
   Adam
  
  
   - Original Message -
   From: iko_knyphausen
   To: flexcoders@yahoogroups.com
   Sent: Saturday, March 03, 2007 9:52 AM
   Subject: [flexcoders] Re: simulate datagrid header click, or set
  default sort column
  
  
  
   Yes, but you should provide for the sorting of these columns too,
   otherwise your sort competes against the builtin...
  
   Alternatively, you could detach your custom sort whenever a different
   header is clicked (meaning resetting the sort property of the
   collection) - but I think you can have much more control doing your
  own.
   Also keep in mind, if you have any columns with calculated fields
   (meaning the dataField value is different than what is displayed), you
   may need a custom sort anyway (try sorting dates as strings... and you
   see what I mean)
  
   Iko
  
   --- In flexcoders@yahoogroups.com, Adam Royle adam@ wrote:
   
OK, thanks for your response. Haven't tried this yet, but will do.
   Just a quick question, if I use do the way you recommend with a custom
   sort object, can the user still use the headers to change the sort
   column/direction? This is what I want.
   
Thanks,
Adam
   
- Original Message -
From: iko_knyphausen
To: flexcoders@yahoogroups.com
Sent: Saturday, March 03, 2007 5:09 AM
Subject: [flexcoders] Re: simulate datagrid header click, or set
   default sort column
   
   
   
BTW, I also fiddled with dispatching the HEADER_RELEASE event,
  before
   I
used a custom sort, and one problem is, that its behavior depends on
whether the column to be sorted was the last sorted column or not.
  If
   it
was the previous sort column a header release event will reverse the
sort order, if it was not the last column, it will reuse the same
  sort
order that it had when it was last used - in some cases you may end
  up
dispatching the header release twice, to get the desired sort order,
   and
you can see... this is not a good solution ;-)
   
--- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote:


 I just went through the same exercise, and ended up using the
 recommended method, which is creating your own Sort object...

 The basic working is to

 1. take a collection (either arraycollection or xmllistcollection)
   as
 dataprovider
 2. define a Sort object for it (you do this by creating SortFields
   and
 putting them into the fields array of the Sort object)
 3. execute a Refresh on your collection

 If you trigger your sort via HeaderRelease events, you should call
 preventDefault() in that handler so that only your sort gets
   executed.

 You can find code samples if you look in the docs (the example I
   used
 was about sorting multiple columns at the same time)

 HTH
 --- In flexcoders@yahoogroups.com, Robert Chyko rchyko@ wrote:
 
  One thing to look at would be dispatch a HEADER_RELEASE event on
   the
  datagrid. Its not the most straightforward fix, and will take a
little
  tweaking to get to work right, but it is doable.
 
 
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On Behalf Of Adam Royle
  Sent: Thursday, March 01, 2007 8:09 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] simulate datagrid header click, or set
  default sort column
 
 
 
 
  Hi guys,
 
  This came up last week but no working response was given.
 
  I have my data sorted in a dataProvider, 

[flexcoders] Storing VO in Sessions AMFPHP?

2007-03-03 Thread Kevin
Does anyone know of a problem with storing VO's in session with PHP?   
It doesn't seem to be working and before try to make it work, I  
figured it was best to see if it is even possible.

Thanks, Kevin


[flexcoders] legend on top of chart

2007-03-03 Thread mr19

Hi all -

Is there anyway to put the Legend component ON the chart?   I'd like to move
my legend to the upper left hand corner of my chart but can't seem to pull
it off.

TIA,
Marc
-- 
View this message in context: 
http://www.nabble.com/legend-on-top-of-chart-tf3340394.html#a9290337
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Storing VO in Sessions AMFPHP?

2007-03-03 Thread Kevin
looks like my problem is: __PHP_Incomplete_Class_Name
__PHP_Incomplete_Class Object


from PHP.net:
'If you have saved an object in session, you must define the class of  
the object before the session_start().
If you don't do that, php will not know the class of the object, and  
his type will be __PHP_Incomplete_Class.'


Has anyone found a work around for this with AMFPHP?  My thought is  
that i have to try to modify some of the AMFPHP code to add includes  
before the session start...I am wondering if it is worth it.


- Kevin




On Mar 3, 2007, at 4:23 PM, Kevin wrote:


Does anyone know of a problem with storing VO's in session with PHP?
It doesn't seem to be working and before try to make it work, I
figured it was best to see if it is even possible.

Thanks, Kevin






[flexcoders] Re: How to load TTF fonts at runtime

2007-03-03 Thread pkleppner
Yes, it's possible.  There's are a series of useful blog postings here 
that describe the techniques that can be used:

http://blog.739saintlouis.com/index.php?tag=css

--- In flexcoders@yahoogroups.com, core_rico [EMAIL PROTECTED] wrote:

 Is it possible to load TTF fonts at runtime? I do not want to embed
 all the fonts on the swf because it will produce quite a large file. I
 am developing an online designer of some sort and I would like the
 user to be able to use custom fonts but embedding all of them on the
 swf would be costly, we need to load them at runtime. Is this 
possible?





[flexcoders] [OT] swf 9 specification

2007-03-03 Thread Benjamin Schwehn
Hello all, sorry for the slightly off topic post.

Has Adobe made any Announcements yet when to expect an updated swf file 
format specifaction for flash 9?

http://www.adobe.com/licensing/developer/fileformat/faq/ just says

The most recent version of the specification covers version 8 of the 
Flash file format (SWF), though the specification does cover previous 
versions where supported. Adobe updates the Specification as soon as 
possible after each release.

and has been saying so for a while... How long after the release of 
Flash 8 did Adobe release the specs for Version 8?

Thanks
Ben



Re: [flexcoders] Re: Announcing FlexLib - open source flex component library

2007-03-03 Thread Troy Gilbert

Skip using the actual dialog, really... I've not dug in far enough to find
out exactly what it is that's different, but I know how to do it by editing
the project settings files directly. Just copy what's already done for the
playerglobal.swc, etc., they basically point to the swc then have an extra
attribute describing where the source is located. I find editing the XML
directly to be quicker and more dependable.

Troy.


On 3/2/07, Guillermo Villasana [EMAIL PROTECTED] wrote:


  I added it in the the Library path tab. Or i should add it int source
path?

Thanks
Terius

Troy Gilbert wrote:

 You've added the SWC to your project? Go to the Project Properties and
 its on one of the build related tabs.

 Troy.



 



[flexcoders] remove image from cache

2007-03-03 Thread pdflibpilot
I have an upload image process that allows users to change their photo
for their record - I want to replace the image on screen as soon as
the new photo is uploaded.

The photo name is constant so the new image does not refresh. Flex
does not recognized it as a new image source since the URL is the same.

I clear the image using image.source = '' while the new photo is
uploaded then once the upload is complete I re-call
image.source=http://mydomain.com/myimage.jpg; with no luck. Is there
a simple solution to clear this image from memory ?



[flexcoders] Re: remove image from cache

2007-03-03 Thread pdflibpilot
Dang - the solution was so simple - I just added ? to the end of the
URL and that forces the image to refresh ! Brilliant !


 I have an upload image process that allows users to change their photo
 for their record - I want to replace the image on screen as soon as
 the new photo is uploaded.
 
 The photo name is constant so the new image does not refresh. Flex
 does not recognized it as a new image source since the URL is the
same.
 
 I clear the image using image.source = '' while the new photo is
 uploaded then once the upload is complete I re-call
 image.source=http://mydomain.com/myimage.jpg; with no luck. Is there
 a simple solution to clear this image from memory ?





Re: [flexcoders] Re: Announcing FlexLib - open source flex component library

2007-03-03 Thread Doug McCune

Hey, sorry we haven't replied about you trying to use the SWC. I'm working
on getting a new zip file uploaded to the project page that has the SWC and
a sample app to show how to use the components. We're having some issues
with Google Code, but Ihopefully we'll get something up in the next few
days. You actually shouldn't use the SWC that's available right now, I set
it to deprecated in Google Code (they don't let you delete files once thy're
uploaded). It's an old version and I'm not sure what the namespace setup
was.

So if you want to use the components now you should follow the instructions
on how to check out the project from the SVN repository. And check back in a
few days and there should be a convenient zip file for distribution.

Doug

On 03 Mar 2007 16:19:27 -0800, Troy Gilbert [EMAIL PROTECTED] wrote:


  Skip using the actual dialog, really... I've not dug in far enough to
find out exactly what it is that's different, but I know how to do it by
editing the project settings files directly. Just copy what's already done
for the playerglobal.swc, etc., they basically point to the swc then have
an extra attribute describing where the source is located. I find editing
the XML directly to be quicker and more dependable.

Troy.


On 3/2/07, Guillermo Villasana [EMAIL PROTECTED] wrote:

   I added it in the the Library path tab. Or i should add it int source
 path?

 Thanks
 Terius

 Troy Gilbert wrote:
 
  You've added the SWC to your project? Go to the Project Properties and

  its on one of the build related tabs.
 
  Troy.
 
 


 



[flexcoders] Re: How does sprite listener work?

2007-03-03 Thread Sandwish
Thanks,Gordon!

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical
mx:Script
![CDATA[
import mx.controls.Alert;

private function mouseDoubleClickListener
(event:MouseEvent):void
{

var cmt:Sprite=new 
Sprite();

cmt.graphics.lineStyle
(2,0x00,1);
cmt.graphics.beginFill
(0xff,1);
cmt.graphics.drawCircle
(event.localX,event.localY,10); 

cmt.graphics.endFill();
a.rawChildren.addChild
(cmt);
cmt.addEventListener
(MouseEvent.ROLL_OVER, mouseOverListener);
cmt.addEventListener
(MouseEvent.ROLL_OUT, mouseOutListener);
//}
}

private function mouseOverListener
(event:MouseEvent):void 
{   
Alert.show(rollover);

}

private function mouseOutListener
(event:MouseEvent):void 
{   
Alert.show(rollout);
}

]]
/mx:Script
mx:Panel id=a
mx:Canvas id=b width=500 height=500 
doubleClick=mouseDoubleClickListener(event) 
doubleClickEnabled=true/
/mx:Panel
/mx:Application

Run the code and the problem is obvious.

Regards.

--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 It's not obvious to me why that would be happening.  Can you post 
the
 code for a simple app which demonstrates the problem?
  
 - Gordon
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Sandwish
 Sent: Tuesday, February 27, 2007 11:22 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How does sprite listener work?
 
 
 
 I new a sprite and addeventlistener which listens roll_over and
 roll_out event. But after a circle is drawn with beginfill and
 endfill, each time I roll inside the circle, both events get 
invoked.
 I don't know why? :(
 
 Thanks in advance!
 Regards,
 Sand





Re: [flexcoders] Setting up command line

2007-03-03 Thread Mike and Stephie

Hi Dimitrios !
Thanks very much for the pointer. Relative path in the jvm.config.
Very much appreciate the tip. With a full path mxmlc is callable from 
anywhere

Kind regards
Mike and Stephie

Dimitrios Gianninas wrote:


Ok I know what your problem is, in the \bin folder there is a 
jvm.config file, in that file there is a variable that points to your 
JDK/JRE... obviously it is pointing to the wrong location, so correct 
it, save and try again.
 
*Dimitrios Gianninas*

*Developer*
*Optimal Payments Inc.*
 



*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Mike and Stephie

*Sent:* Saturday, March 03, 2007 5:23 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Setting up command line

Hi Dimitrios!

Thanks for the response !
Calling from the dos prompt to compile a single standalone .mxml file
Our hope is to be able to do this from the shell in any directory.
At the moment it works only from the ..\bin directory which contains 
mxmlc.exe

Appreciate any comments
Prema


Dimitrios Gianninas wrote:

How are u calling mxmlc? by using ant and calling the mxmlc.exe ? or 
calling via the mxmlc.jar ?


Dimitrios Gianninas
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com on behalf of Mike and Stephie

Sent: Fri 3/2/2007 3:27 PM
To: FlexCoders
Subject: [flexcoders] Setting up command line

Hi People !
We're new to Flex and having some fun with it!
Just trying to run mxmlc from command line in Windows XP and get
*Error: could not find a JVM.
*Have just installed the JDK1.6 and JAVA_HOME is set to \jdk\bin
Does anyone have any tips please
Thanks for your help
Prema

--
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for 
the use of the intended recipient. No privilege or other rights are 
waived by any unintended transmission or unauthorized retransmission 
of this message. If you are not the intended recipient of this 
message, or if you have received it in error, you should immediately 
stop reading this message and delete it and all attachments from your 
system. The reading, distribution, copying or other use of this 
message or its attachments by unintended recipients is unauthorized 
and may be unlawful. If you have received this e-mail in error, 
please notify the sender.


AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé. L'expéditeur original ne 
renonce à aucun privilège ou à aucun autre droit si le présent 
message a été transmis involontairement ou s'il est retransmis sans 
son autorisation. Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système. La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux. Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.




*AVIS IMPORTANT*



*WARNING*

Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés 
destinés au seul usage du destinataire visé. L'expéditeur original ne 
renonce à aucun privilège ou à aucun autre droit si le présent message 
a été transmis involontairement ou s'il est retransmis sans son 
autorisation. Si vous n'êtes pas le destinataire visé du présent 
message ou si vous l'avez reçu par erreur, veuillez cesser 
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
jointes, de votre système. La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des 
personnes autres que le destinataire visé ne sont pas autorisés et 
pourraient être illégaux. Si vous avez reçu ce courrier électronique 
par erreur, veuillez en aviser l'expéditeur.




This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the 
use of the intended recipient. No privilege or other rights are waived 
by any unintended transmission or unauthorized retransmission of this 
message. If you are not the intended recipient of this message, or if 
you have received it in error, you should immediately stop reading 
this message and delete it and all attachments from your system. The 
reading, distribution, copying or other use of this message or its 
attachments by unintended recipients is unauthorized and may be 
unlawful. If you have received this e-mail in error, 

[flexcoders] flexcursion: a flex social network

2007-03-03 Thread potentialunfounded
I set a Ning social network to collect videos, screenshots, meet other
Flex enthusiasts and more.

http://www.flexcursion.com



[flexcoders] Re: Flex resources list

2007-03-03 Thread potentialunfounded
http://www.scalenine.com
http://www.flexcursion.com

--- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote:

 
   A Podcast:  www.theflexshow.com
 
   And it's two creators Jeff Houser www.JeffryHouser.com (Me) and 
 Ryan Stewart http://blog.digitalbackcountry.com/ .  Ryan blogs a lot 
 about generic RIA-related issues.  I tend to be more tech.
 
 
 At 12:54 PM 3/2/2007, Tracy Spratt wrote:
 
 Please edit at will.
 
 Tracy Spratt
 
 Flex 2.x Resources
 
 Flex sites/blogs:
 
 Adobe:
 
 http://www.adobe.com/devnet/flex/http://www.adobe.com/devnet/flex/ 
 DEVNET - start here!
 

http://www.adobe.com/products/flex/productinfo/faq/http://www.adobe.com/products/flex/productinfo/faq/
 

http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepageproductId=2
 
 http://blogs.adobe.com/http://blogs.adobe.com/
 
 http://weblogs.macromedia.com/mxna/
 
 http://labs.adobe.com/http://labs.adobe.com/
 
 http://labs.adobe.com/community/
 

http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_usview=sn610viewName=Adobe%20Exchangeavm=1http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_usview=sn610viewName=Adobe%20Exchangeavm=1
 
 http://blogs.adobe.com/flexdoc/
 
 Other:
 
 http://code.google.com/p/flexlib/http://code.google.com/p/flexlib/
 
 http://flexbox.mrinalwadhwa.com/
 
 http://dougmccune.com/blog/http://dougmccune.com/blog/
 
 http://www.cflex.net/
 

http://www.quietlyscheming.com/blog/http://www.quietlyscheming.com/blog/
 
 http://www.everythingflex.com
 
 http://www.waldosmeets.com/http://www.waldosmeets.com/
 
 http://www.jessewarden.com/
 
 http://www.cbetta.com/blog/http://www.cbetta.com/blog/
 
 http://www.cynergytv.com/
 
 http://www.flexdaddy.info/http://www.flexdaddy.info/
 
 http://www.richinternet.de/blog/
 

http://www.brightworks.com/technology/overview.htmlhttp://www.brightworks.com/technology/overview.html
 
 http://www.crossdomainxml.org/
 
 http://flexsearch.org/http://flexsearch.org/
 
 http://labs.flexcoders.nl/
 
 Flex style Explorer:
 

http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.htmlhttp://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
 
 Documentation:
 

http://www.adobe.com/support/documentation/en/flex/http://www.adobe.com/support/documentation/en/flex/
 
 http://livedocs.macromedia.com/flex/2/
 

http://www.adobe.com/cfusion/knowledgebase/index.cfmhttp://www.adobe.com/cfusion/knowledgebase/index.cfm
 
 Lists:
 

http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60
 
 http://groups.yahoo.com/group/flexcoders/
 

http://groups.yahoo.com/group/flexcomponents/http://groups.yahoo.com/group/flexcomponents/
 
 Bugs/enhancement requests:
 
 http://www.adobe.com/go/wishhttp://www.adobe.com/go/wish
 
 
 --
 Jeffry Houser, Software Developer, Writer, Songwriter, Recording
Engineer
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com
 Connecticut Macromedia User Group: http://www.ctmug.com





[flexcoders] Datagrid Filtering Help!

2007-03-03 Thread xmrcivicboix

I have an issue with live filtering with a datagrid. I'm able to filter on
columns thats has EVERY SINGLE ROW filled in. However, on the columns that
have multiple empty rows, the filtering function doesn't want to trigger?
When I do and Alert.show() it shows up the items. ODD Anyways, here is
my snippet..

private function filterEvent(): void
{
cPlayList.source.filterFunction = 
filterPlayList;
cPlayList.source.refresh();
}

private function filterPlayList(oItem:Object): Boolean
{
var bMatch:Boolean = false;
switch (filterComboBox.selectedItem.toString())
{
case Title:
bMatch =
(oItem.name.toLowerCase().search(filterSearchInput.text.toLowerCase()) !=
-1);
break;
case Artist:
bMatch =
(oItem.artist.toLowerCase().search(filterSearchInput.text.toLowerCase()) !=
-1);
break;
case Album:
bMatch =
(oItem.album.toLowerCase().search(filterSearchInput.text.toLowerCase()) !=
-1);
break;
case Genre:
bMatch =
(oItem.genre.toLowerCase().search(filterSearchInput.text.toLowerCase()) !=
-1);
break;
}
return bMatch;
}

mx:DataGrid 
x=169 y=91 width=475 
height=340
id=libraryDataGrid
dataProvider={cPlayList.source} 
styleName=libaryScroll
mx:columns
mx:DataGridColumn headerText=Title dataField=name/
mx:DataGridColumn headerText=Artist 
dataField=artist/
mx:DataGridColumn headerText=Album 
dataField=album/
mx:DataGridColumn headerText=Length 
dataField=total_time
labelFunction=formatDuration/
mx:DataGridColumn headerText=Genre 
dataField=genre/
/mx:columns
/mx:DataGrid
-- 
View this message in context: 
http://www.nabble.com/Datagrid-Filtering-Help%21-tf3341594.html#a9293557
Sent from the FlexCoders mailing list archive at Nabble.com.