[flexcoders] Re: External Item Renderer Question

2008-10-08 Thread jmfillman
I just went with dispatchEvent, and it's working fine. Thank you for 
the help!



[flexcoders] Re: Flex and BlazeDS in internet environment

2008-10-08 Thread Joshua Partogi
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Tuesday 07 Oct 2008, Joshua Partogi wrote:
  endpoint=http://localhost:8080/messagebroker/amf;
  Do we have to change the URL?
 
 Do you expect 'localhost' to resolve to the correct thing for your 
users, on 
 their machines ?

Yes. I expect user to be able to access the apps and resolve the 
correct thing on their machine.

Thanks in advance



[flexcoders] Re: External Item Renderer Question

2008-10-08 Thread Tim Hoff

Cool.  Probably parentDocument or Application.application.blah.blah.blah
would have fixed that.  But, you're better off going with the event
approach (loose coupling).

-TH

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

 I just went with dispatchEvent, and it's working fine. Thank you for
 the help!






Re: [flexcoders] Re: Flex and BlazeDS in internet environment

2008-10-08 Thread Tom Chiverton
On Wednesday 08 Oct 2008, Joshua Partogi wrote:
  Do you expect 'localhost' to resolve to the correct thing for your
  users, on
  their machines ?

 Yes. I expect user to be able to access the apps and resolve the
 correct thing on their machine.

You expect them to be running your server on their local machine ?
Or you expect 'localhost' to resolve to something that isn't the local 
machine ?

-- 
Tom Chiverton
Helping to synergistically synergize e-markets





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Re: Problem handling RemoteObject Errors

2008-10-08 Thread reflexactions
Yeah,
the code I showed in an earlier message shows that Adobe have a try 
catch already which is supposed to then raise the Fault Event so us 
putting a try catch round their try catch would achieve nothing.

This whole issue is about Adobe raising an event in a catch block and 
that the Adobe code uses an object with holding a ref to it.




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

 On Monday 06 Oct 2008, reflexactions wrote:
  So for us server fault are just great but client fault are the
  issue...
 
 Did you mention why you can't put your send() method inside a 
try/catch  ?
 
 -- 
 Tom Chiverton
 Helping to proactively architect customized web-enabled initiatives
 
 
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
England and Wales under registered number OC307980 whose registered 
office address is at Halliwells LLP, 3 Hardman Square, 
Spinningfields, Manchester, M3 3EB.  A list of members is available 
for inspection at the registered office. Any reference to a partner 
in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Re: Action script 3 JSON

2008-10-08 Thread GYANPRAKASH PANDEY
Dear Kyle,

I did not get the error. Here is my php code;
?
class Order
{
    public $id;
    public $d_date;
    public $name;
    
}


if(isset($_GET['getOrder']))
{
    $p = new Order();
    $p-id= '1';
    $p-d_date= '02-03-2008';
    $p-name = 'Gyanprakash Pandey';
    
    echo gyanprakash;
    echo ($p);
    echo gyan;
}
else
{
    $p = new Order();
    $p-id= '1';
    $p-d_date= '02-03-2008';
    $p-name = 'Gyanprakash Pandey';
    
    
    echo json_encode($p);


?

Out put of json encoded data is :
{id:1,d_date:02-03-2008,name:Gyanprakash Pandey}

Action script function i used to decode is :

var rawData:String= event.result.toString();
                var orders:Object= (JSON.decode(rawData) as Object);
myText.text= orders.id + orders.d_date + orders.name;
                Alert.show(Data transmitted successfully);



Still i'm getting the same error.

Can you please find out the exact error! It'll be a great help.

thank you very much,

Regards,
Gyanprakash Pandey

--- On Tue, 7/10/08, Kyle [EMAIL PROTECTED] wrote:
From: Kyle [EMAIL PROTECTED]
Subject: [flexcoders] Re: Action script 3 JSON
To: flexcoders@yahoogroups.com
Date: Tuesday, 7 October, 2008, 12:06 AM













If you can't find the error, post the json output that is causing the

error to be thrown (the json encoded data that is being returned from

your php script), as well as the AS3 code that you wrote to decode the

json data here and I can take a look at it for you. However, like

Haykel said, more often than not this type of error is caused by a

simple syntax error in your json return.



-Kyle



--- In [EMAIL PROTECTED] ups.com, Haykel BEN JEMIA [EMAIL PROTECTED] .

wrote:



 Seems that you have a syntax error in the JSON string. Inspect its

content

 before sending it to the JSON decoder.

 

 On Sat, Oct 4, 2008 at 2:35 PM, GYANPRAKASH PANDEY 

 gyanprakash_ [EMAIL PROTECTED] wrote:

 

Dear all,

 

  I'm using JSON and php for back end data transfer in flex. But,

i'm getting

  following error:

  Error: Unexpected g encountered

  at com.adobe.serializa tion.json: :JSONTokenizer/ parseError( )

  at com.adobe.serializa tion.json: :JSONTokenizer/ getNextToken( )

  at com.adobe.serializa tion.json: :JSONDecoder/ ::nextToken( )

  at com.adobe.serializa tion.json: :JSONDecoder$ iinit()

  at com.adobe.serializa tion.json: :JSON$/decode( )

  at adminPage/handlePla inJSON()

  at adminPage/__ pendingOrderRpc_ result()

  at

 

flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEventFu 
nction()

  at flash.events: :EventDispatcher /dispatchEvent( )

  at mx.rpc.http. mxml::HTTPServic e/

 

http://www.adobe. com/2006/ flex/mx/internal ::dispatchRpcEve 
nt()http://www.adobe. com/2006/ flex/mx/internal ::dispatchRpcEve nt%28%29

  at mx.rpc::AbstractInv oker/

 

http://www.adobe. com/2006/ flex/mx/internal 
::resultHandler()http://www.adobe. com/2006/ flex/mx/internal ::resultHandler% 
28%29

  at mx.rpc::Responder/ result()

  at mx.rpc::AsyncReques t/acknowledge( )

  at ::DirectHTTPMessage Responder/ completeHandler( )

  at

 

flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEventFu 
nction()

  at flash.events: :EventDispatcher /dispatchEvent( )

  at flash.net::URLLoade r/flash.net: URLLoader: :onComplete( )

 

 

  Can u please help me out in this case..

 

  Thanx alot in advance..

 

  Regards,

  Gyanprakash Pandey

 

 

   - -

  Unlimited freedom, unlimited storage. Get it

nowhttp://in.rd. yahoo.com/ tagline_mail_ 2/*http:/ /help.yahoo. com/l/in/ 
yahoo/mail/ yahoomail/ tools/tools- 08.html/

  

 

 

 

 

 -- 

 Haykel Ben Jemia

 

 Allmas

 Web  RIA Development

 http://www.allmas- tn.com






  




 

















  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[flexcoders] Re: Flex and BlazeDS in internet environment

2008-10-08 Thread Joshua Partogi
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Wednesday 08 Oct 2008, Joshua Partogi wrote:
   Do you expect 'localhost' to resolve to the correct thing for your
   users, on
   their machines ?
 
  Yes. I expect user to be able to access the apps and resolve the
  correct thing on their machine.
 
 You expect them to be running your server on their local machine ?
 Or you expect 'localhost' to resolve to something that isn't the local 
 machine ?

Hi Thom,

Thanks for the reply. It will be a website that is deployed on
internet. So user will access the flex application that is on a remote
machine from their browser on their local machine. What do I need to
write on the endpoint? Should I write the remote server domain name or
will localhost works?

Thanks in advance



Re: [flexcoders] Re: Flex and BlazeDS in internet environment

2008-10-08 Thread Tom Chiverton
On Wednesday 08 Oct 2008, Joshua Partogi wrote:
 internet. So user will access the flex application that is on a remote
 machine from their browser on their local machine. What do I need to
 write on the endpoint? Should I write the remote server domain name 

If you like. You might be able to user {server.name} (etc.) instead though, if 
appropriate.

 will localhost works?

No. Google what 'localhost' means.

-- 
Tom Chiverton
Helping to ambassadorially participate communities





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] amf php

2008-10-08 Thread Deniz Davutoglu
Hello Guys,
We are goint to write some application with flex/amfphp. Our php Guy
ask me how can we create inheritance in php classes or how we can
settle continuality in application.

For exsample 
we have one class to connect to database another that check login
status(which need to get some data from mysql) . in classical php way
you include db class in begining of login checkin class. how do we do
it in amfphp?

thanks

Deniz



[flexcoders] Is It possible to use ressources in a CustomPreloader

2008-10-08 Thread Farid SALAH
Hi folks,

We are using the FB3-AS3-BazeDS-Tomcat combination.
We are currently deploying a multi-language application (French,  
English and Russian).

But we are stuck with our CustomPreloader. It refuses to display a  
localized text.

Does someone know how to get a hold on the ResourceManager in the  
Preloader as we want to display some label with ProgressBar ?

Thanks again

Farid



Re: [flexcoders] Log4J like library

2008-10-08 Thread Josh McDonald
So cook it up and OSS it :)

It's really only a day or two's work.

-Josh

On Wed, Oct 8, 2008 at 3:41 PM, Shahid Faiz [EMAIL PROTECTED] wrote:

  Anatole,

 Thanks for the link. I have looked at myflex.org, 
 cimlogbookhttp://code.google.com/p/cimlogbook/,
 renaun.com http://renaun.com/blog/flex-components/, and 
 log4fhttp://sourceforge.net/projects/log4f/but they don't provide 
 functionalities that are required for an AIR app. For
 example I am searching for Rolling File Target, externally file based
 configuration etc.

 Thanks,
 Shahid


 On Tue, Oct 7, 2008 at 9:27 AM, Anatole Tartakovsky 
 [EMAIL PROTECTED] wrote:

   have you looked at myflex.org?Thank you
 Anatole


 On Mon, Oct 6, 2008 at 5:14 AM, Shahid Faiz [EMAIL PROTECTED]wrote:

   Hi,

 Does anyone know log4j like library for AIR applications? It is really
 hard to trace a problem when application is in testing or production without
 such utility.

 Thanks,
 Shahid



 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] skinClass in external library

2008-10-08 Thread albert.imaxel
My scenario:

I have a flex builder workspace with the main flex application, and
many flex libraries which are linked to the main flex app.
One of that libraries contains the assets, styleSheets... it's the
theme library.
In the stylesheet file of this library, there are some styles defined
which use the Embed(skinClass='whatever') directive, this skin
classes are in a swc file created with flash. This swc file is added
to the build path of the theme library.
Some of this styles are used in the main flex app.

When I try to compile the whole thing, I got a class for skin
'whatever' not found error from the main app.
If I compile the theme library only, i got no errors.

The only solution I've found is to add the swc file to the build path
of the main app.

But, and here is my question: I don't want my main flex app to depend
on the swc file. Is there any way I can accomplish that?



[flexcoders] skinClass in external library

2008-10-08 Thread Alfz

My scenario:

I have a flex builder workspace with the main flex application, and many
flex libraries which are linked to the main flex app.
One of that libraries contains the assets, styleSheets... it's the theme
library.
In the stylesheet file of this library, there are some styles defined which
use the Embed(skinClass='whatever') directive, this skin classes are in a
swc file created with flash. This swc file is added to the build path of the
theme library.
Some of this styles are used in the main flex app.

When I try to compile the whole thing, I got a class for skin 'whatever'
not found error from the main app.
If I compile the theme library only, i got no errors.

The only solution I've found is to add the swc file to the build path of the
main app.

But, and here is my question: I don't want my main flex app to depend on the
swc file. Is there any way I can accomplish that?
-- 
View this message in context: 
http://www.nabble.com/skinClass-in-external-library-tp19876791p19876791.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: How to default an Accordian to a closed state (Flex 3)

2008-10-08 Thread Erich Cervantez
Yes, the height of the Accordion would change whenever a user clicks a
header to open up that headers menu item contents.

Right now, the first header group in the Accordion defaults to open
when the application loads.  I'd like to have that first group closed
or collapsed initially and force the user to select a group.  It would
be great if the Accordion had some sort of defaultPosition property
of open or closed.   I could extend the Accordion and add that
property however I have to figure out how to close the Accordion
first ;)


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

 On Monday 06 Oct 2008, Erich Cervantez wrote:
  Anyone know of a simple (or not so simple) trick to default an
  accordian to a closed state.  Basically, I'd like to have none of
  the child containers open when the component is initially displayed.
 
 If none of the children is open, would you then expect the height to
increase 
 once one was clicked ?
 If not, just add an empty last child...
 
 -- 
 Tom Chiverton
 Helping to seamlessly establish high-end systems





[flexcoders] Passing variables from ASP to flex Application

2008-10-08 Thread Mark
I would like to pass session variables in to a flex application so it 
remembers the user one i get into my application(flex which im using 
as a platform).



[flexcoders] New to flex, why are the charts so tempermental?

2008-10-08 Thread Vince Gatto
Recently we decided to switch from an open source AS2 based flash chart
to using Flex 3 for our charting to get more control over the styling of
the chart.   I'm pretty new to Flex, but so far I'm pretty disappointed
by the out of the box behavior of the charts.   Basically, I'm trying to
do something very simple: dates on the x-axis, some numerical value on
the y-axis.   I need to control a little bit about the fonts, colors,
and data tips, but not much else.  I thought this would be easy, but
after a few days of toying around,  I'm really ready to gouge out my own
eyes.

After messing around for days, I went back and tried the simplest
possible thing, straight out of the docs:

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

  [Bindable]
  public var deck:ArrayCollection = new ArrayCollection([
 {date:08/01/2005, close:42.71},
 {date:08/02/2005, close:42.99},
 {date:08/03/2005, close:42.65}
  ]);
   ]]/mx:Script
   mx:Panel title=Sample DateTimeAxis
  mx:LineChart id=myChart dataProvider={deck}
showDataTips=true
 mx:horizontalAxis
mx:DateTimeAxis dataUnits=days /
 /mx:horizontalAxis
 mx:series
mx:LineSeries yField=close xField=date
displayName=DECK /
 /mx:series
  /mx:LineChart
  mx:Legend dataProvider={myChart}/
   /mx:Panel

/mx:Application

This gives you a nice little chart where the x-axis labels and tick
marks do not come close to lining up with any of the data points.  I
tried messing around with AxisRenderers and labelAlignment settings to
no avail.   My conclusion thus far is that DateTimeAxis is basically
useless.

Right now, I'm working around this by switching to a CategoryAxis, but
the DateTimeAxis has some nice features I'd like to take advantage of,
and the CategoryAxis seems to have its own hurdles to overcome.  Does
anyone know if there's a work around for this behavior?





[flexcoders] Create Application from Database (CAD)

2008-10-08 Thread Michael Oliver
I have installed Java and WTP on Flexbuilder 3 and have setup a MySql
database, and created a database user and created tables using the
DataSource Explorer and Sql Editors.  Way cool.

Then I used Data-Create Application from Database to create a CRUD
Application for a Table and that too worked great.  I got an editable
datagrid bound to the table with a viewstack and input form that
allows adding new rows and all is well, with that.

Then I was thinking, danger Will Robinson, that the REST of the story
should be the same for other Flex screens accessing that same database
table so I can have any number of screens with access to the REST
interface for the one I generated with Create Application from
Database, just include the same addressScript.as for my 'address'
table and change the grid references and that should work right?

When I take another application let's call it PersonComponent.mxml and add

mx:Script source=addressScript.as /

The same that is in my address.mxml that works just fine generated
from CAD I get a lot of problems 


1120: Access of undefined property addressCol.  Person/flex_src
addressScript.asline 178

so the references to things like dataGrid and column id in the
addressScript fail.  How do I get around this problem short of moving
all the script into the mxml

Ollie





[flexcoders] ToggleButtonBar with bindable labels of Buttons - resourceManager

2008-10-08 Thread Christoph Leva
Dear all, 

I am using the resourceManager to switch between languages in my flex app.
All labels (i.e. of buttons, textfields...) are bound to locale property
files, that they change immediately, when the user changes the language.

I have a toggleButtonBar in my app and want the labels of the buttons to
change as well. Therefore I use the BindableObjectClass, which extends
Object and has a bindable property label. I use it like that:

mx:ToggleButtonBar
mx:ArrayCollection
components:BindableObject
label={resourceManager.getString(MY_BUNDLE, 'NAME_1')}/
components:BindableObject
label={resourceManager.getString(MY_BUNDLE, 'NAME_2')}/
/mx:ArrayCollection
/mx:ToggleButtonBar 

The only problem I have is, that when I change the language, the
ToggleButtonBar disappears for a moment. It appears with the correct
language labels, when all other labels change language. I want the
ToggleButtonBar to remain on stage and just change the language. Does
anybody know another way to do it, that prevents the disappearing?

Thanks in advance, Christoph




[flexcoders] How to make a Docking Window Framework/component like Eclipse/InfoDock/JDocking

2008-10-08 Thread nathanleewei
How to make a Docking Window Framework/Component like
Eclipse/InfoDock/JDocking?

+RootWindow
|
+--SplitWindow
|
+--SplitWindow
|  |
|  +--TabWindow
|  +--TabWindow
|
+--TabWindow
   |
   +--Tabbar
   +--ViewStack
   +--Max Buttton
   +--Min Button


Where should I start?
How to implement TabWindow? TabNavigator + buttons or Tabbar+
ViewStack?



[flexcoders] coloring a box

2008-10-08 Thread gr33neye501
Does anyone know how to apply a gradient color to a Box control;
gradient going left to right, ie horizontally. 

I use style fillColors: #ff, #ff to get a vertical gradient,
top to bottom. but don't know how to do it horizontally.

your help guys is really needed.
;-)





Re: [flexcoders] Log4J like library

2008-10-08 Thread Howard Fore
How do envision such a component working? Given that Air and Flex are
front-end technologies, wouldn't the log storage be on the back-end, thus
implying both some communication between the two and the back-end component
that does the log writing and storage? You could create a web service
(written in Java, ColdFusion, .Net, etc) to catch the log events coming from
the AIR app.

On Wed, Oct 8, 2008 at 1:41 AM, Shahid Faiz [EMAIL PROTECTED] wrote:

 Thanks for the link. I have looked at myflex.org, 
 cimlogbookhttp://code.google.com/p/cimlogbook/,
 renaun.com http://renaun.com/blog/flex-components/, and 
 log4fhttp://sourceforge.net/projects/log4f/but they don't provide 
 functionalities that are required for an AIR app. For
 example I am searching for Rolling File Target, externally file based
 configuration etc.



-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


Re: [flexcoders] Re: How to make an RPC call secure

2008-10-08 Thread Tom Chiverton
On Wednesday 08 Oct 2008, Abdul Razak PM wrote:
   Yes Both flex and Java are my codes. Flex using Cairngorm framework
 for Java uses spring and tomcat

TLS with client certificates then. Probably using digest authentication, if 
you can.

-- 
Tom Chiverton
Helping to carefully deliver user-centric end-to-end granular prospective 
networks





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] How to make a Docking Window Framework/component like Eclipse/InfoDock/JDocking

2008-10-08 Thread Michael Schmalle
Hi,
No need to cross post from flexcomponents to flexcoders most of us read
both.

This is a bit of engineering on your part. This is like asking where do I
start to make a space ship. There are so many details, you will need to
design this from your knowledge of flex components.

You might look at the flexlib and it's MDI implementation. That might give
you some ideas on where to start.

Ironically, I am releasing a framework like this in 2 months. Truth be told,
I have spent 1 1/2 years creating a base framework that made it happen.

Mike

On Wed, Oct 8, 2008 at 12:39 AM, nathanleewei [EMAIL PROTECTED]wrote:

   How to make a Docking Window Framework/Component like
 Eclipse/InfoDock/JDocking?

 +RootWindow
 |
 +--SplitWindow
 |
 +--SplitWindow
 | |
 | +--TabWindow
 | +--TabWindow
 |
 +--TabWindow
 |
 +--Tabbar
 +--ViewStack
 +--Max Buttton
 +--Min Button

 Where should I start?
 How to implement TabWindow? TabNavigator + buttons or Tabbar+
 ViewStack?

  




-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
Hi
 I  have a ComboBox used as a Popup on a form component.
It saves fine using the following function

 private function closeGenderPop(event:Event):void {
   ComboBox(event.target).selectedItem.label}; 
   

I want to have it display the stored value the next time it is opened.
I tried this but no luck.  

   private function openGenderPop(event:Event):void {
   genderPop.selectedIndex = 1; 
ComboBox(event.target).selectedItem.label; }

Really appreciate the help

Dan Pride


  


Re: [flexcoders] Log4J like library

2008-10-08 Thread Shahid Faiz
@Howard: Actually I am developing AIR application and I don't have any my
own server side where I can deploy any web service for logging. That's why I
require some logging mechanism which will store information on user machine
like all desktop applications do.

@Dimitrios: I think, current logging framework provides TraceTarget and it
logs output only when application is running in Flash Player Debug version.
Isn't it? Also to enable this logging, we will have to first ask user to
configure this trace logging in mm.cfg and then application will start
logging and may be on second run actual problem doesn't happen.

Of course, build in framework provides a very nice foundation classes. I am
thinking of few helper classes like RollingFileTarget (which will log
messages to a file and it will be rolling), and LogConfigurator (it will
configure logging system from a config file) etc. Does this make sense?

- Shahid

On Wed, Oct 8, 2008 at 6:25 PM, Dimitrios Gianninas 
[EMAIL PROTECTED] wrote:

Howard is right... remember if you create a logging framework that logs
 things the client app is doing, the log will be generated on every end-users
 computer...do u intend to retrieve all logs files from all users when an
 error happens? Kinda difficult. Use the existing logging framework and logs
 all critical stuff in there, when an error occurs, have your tech dept call
 the end-user reproduce the problem and get the flashlog.txt file right then
 and there.

 *Dimitrios Gianninas*
 *RIA Developer Team Lead*
 *Optimal Payments Inc.*


  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Howard Fore
 *Sent:* Wednesday, October 08, 2008 6:30 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Log4J like library

   How do envision such a component working? Given that Air and Flex are
 front-end technologies, wouldn't the log storage be on the back-end, thus
 implying both some communication between the two and the back-end component
 that does the log writing and storage? You could create a web service
 (written in Java, ColdFusion, .Net, etc) to catch the log events coming from
 the AIR app.

 On Wed, Oct 8, 2008 at 1:41 AM, Shahid Faiz [EMAIL PROTECTED] wrote:

  Thanks for the link. I have looked at myflex.org, 
 cimlogbookhttp://code.google.com/p/cimlogbook/,
 renaun.com http://renaun.com/blog/flex-components/, and 
 log4fhttp://sourceforge.net/projects/log4f/but they don't provide 
 functionalities that are required for an AIR app. For
 example I am searching for Rolling File Target, externally file based
 configuration etc.



 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood

  *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,
 please notify the sender.
   



RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Tracy Spratt
ComboBox.selectedItem will only work if you assign a *reference to an
item in the ComboBox dataProvider*.  This is rarely possible and is not
in your case.

 

What you must do is loop over the items in the CobmoBox.dataProvider and
compare the appropriate property's value to the value you want to match.
When a match is found, use the loop indes to set the ComboBox's
selectedIndex.  This is simple enough to do in a one-off situation.  

 

If you need this often, then you might want to use an extended ComboBox.
Making a generic one is a bit tricky, because the Combo Box dataProvider
items can have any properties at all.  I have an example on
www.cflex.net http://www.cflex.net/  (it allows you to set the data
field you want to match) and Ben forta has done one and there are
others.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Wednesday, October 08, 2008 10:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox in Component won't open to Saved Value

 

Hi
I have a ComboBox used as a Popup on a form component.
It saves fine using the following function

private function closeGenderPop(event:Event):void {
ComboBox(event.target).selectedItem.label}; 


I want to have it display the stored value the next time it is opened.
I tried this but no luck. 

private function openGenderPop(event:Event):void {
genderPop.selectedIndex = 1; 
ComboBox(event.target).selectedItem.label; }

Really appreciate the help

Dan Pride

 



Re: [flexcoders] Log4J like library

2008-10-08 Thread George
Hi Shahid,

For AIR application it would be much easy to log into a SQLite database. 
I wrote some fast code a few weeks before.

http://www.neatfilm.com/2008/09/01/air-syslog-with-sqlite-source-code/

George

Shahid Faiz wrote:
 @Howard: Actually I am developing AIR application and I don't have any 
 my own server side where I can deploy any web service for logging. 
 That's why I require some logging mechanism which will store 
 information on user machine like all desktop applications do.

 @Dimitrios: I think, current logging framework provides TraceTarget 
 and it logs output only when application is running in Flash Player 
 Debug version. Isn't it? Also to enable this logging, we will have to 
 first ask user to configure this trace logging in mm.cfg and then 
 application will start logging and may be on second run actual problem 
 doesn't happen.

 Of course, build in framework provides a very nice foundation classes. 
 I am thinking of few helper classes like RollingFileTarget (which will 
 log messages to a file and it will be rolling), and LogConfigurator 
 (it will configure logging system from a config file) etc. Does this 
 make sense?

 - Shahid

 On Wed, Oct 8, 2008 at 6:25 PM, Dimitrios Gianninas 
 [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Howard is right... remember if you create a logging framework that
 logs things the client app is doing, the log will be generated on
 every end-users computer...do u intend to retrieve all logs files
 from all users when an error happens? Kinda difficult. Use the
 existing logging framework and logs all critical stuff in there,
 when an error occurs, have your tech dept call the end-user
 reproduce the problem and get the flashlog.txt file right then and
 there.
  
 *Dimitrios Gianninas*
 *RIA Developer Team Lead*
 *Optimal Payments Inc.*
  

 
 *From:* flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com] *On Behalf Of *Howard Fore
 *Sent:* Wednesday, October 08, 2008 6:30 AM
 *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Log4J like library

 How do envision such a component working? Given that Air and Flex
 are front-end technologies, wouldn't the log storage be on the
 back-end, thus implying both some communication between the two
 and the back-end component that does the log writing and storage?
 You could create a web service (written in Java, ColdFusion, .Net,
 etc) to catch the log events coming from the AIR app.

 On Wed, Oct 8, 2008 at 1:41 AM, Shahid Faiz [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 Thanks for the link. I have looked at myflex.org
 http://myflex.org, cimlogbook
 http://code.google.com/p/cimlogbook/,  renaun.com
 http://renaun.com/blog/flex-components/, and log4f
 http://sourceforge.net/projects/log4f/ but they don't
 provide functionalities that are required for an AIR app. For
 example I am searching for Rolling File Target, externally
 file based configuration etc.



 -- 
 Howard Fore, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff
 Atwood

 *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 

RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
Thanks for the response. I understand what needs to be done as you described 
but I still have one problem.
I tried this before.

  private function openGenderPop(event:Event):void {
   genderPop.selectedIndex = 1; 
}

The ComboBox opened to the zero value not the 1.
When I clicked on the box it opened to have the 1 value preselectect but did 
not present upon opening.

I am referencing it like this and must be missing some kind of kick event?

mx:ComboBox id=genderPop  close=closeGenderPop(event)   
open=openGenderPop(event)  dataProvider={arrGender} x=583.5 y=89 
width=116 /

Thanks again.
This board is GREAT !
Dan Pride

 


--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:

 From: Tracy Spratt [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 11:05 AM
 ComboBox.selectedItem will only work if you assign a
 *reference to an
 item in the ComboBox dataProvider*.  This is rarely
 possible and is not
 in your case.
 
  
 
 What you must do is loop over the items in the
 CobmoBox.dataProvider and
 compare the appropriate property's value to the value
 you want to match.
 When a match is found, use the loop indes to set the
 ComboBox's
 selectedIndex.  This is simple enough to do in a one-off
 situation.  
 
  
 
 If you need this often, then you might want to use an
 extended ComboBox.
 Making a generic one is a bit tricky, because the Combo Box
 dataProvider
 items can have any properties at all.  I have an example on
 www.cflex.net http://www.cflex.net/  (it allows you
 to set the data
 field you want to match) and Ben forta has done one and
 there are
 others.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 10:01 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ComboBox in Component won't open
 to Saved Value
 
  
 
 Hi
 I have a ComboBox used as a Popup on a form component.
 It saves fine using the following function
 
 private function closeGenderPop(event:Event):void {
 ComboBox(event.target).selectedItem.label}; 
 
 
 I want to have it display the stored value the next time it
 is opened.
 I tried this but no luck. 
 
 private function openGenderPop(event:Event):void {
 genderPop.selectedIndex = 1; 
 ComboBox(event.target).selectedItem.label; }
 
 Really appreciate the help
 
 Dan Pride


  


[flexcoders] Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-08 Thread cwicky99
I do have an SSL cert installed.  

So apparently I guess LCDS 2.6 is a bit different than LCDS 2.5.  I 
was able to use FireBug and see that when I tried to browse to my 
app I was getting 404's because it couldn't find FlexSwfServlet
which was defined in my web.xml (based on LCDS 2.5):

servlet
servlet-nameFlexSwfServlet/servlet-name
display-nameSWF Retriever/display-name
servlet-classflex.bootstrap.BootstrapServlet/servlet-
class
init-param
param-nameservlet.class/param-name
param-valueflex.webtier.server.j2ee.SwfServlet/param-
value
/init-param
!-- SwfServlet must be initialized after MxmlServlet --
load-on-startup2/load-on-startup
/servlet


Looking at the latest lcds.war in LCDS 2.6 the web.xml only has the 
MessageBrokerServlet defined, nothing else:

servlet
servlet-nameMessageBrokerServlet/servlet-name
display-nameMessageBrokerServlet/display-name
servlet-classflex.messaging.MessageBrokerServlet/servlet-
class
init-param
param-nameservices.configuration.file/param-name
param-value/WEB-INF/flex/services-config.xml/param-
value
   /init-param
init-param
param-nameflex.write.path/param-name
param-value/WEB-INF/flex/param-value
/init-param
load-on-startup1/load-on-startup
/servlet 


Anyone know if there is information on why 2.6 doesn't explicitly 
define the other servlets?  I know in LCDS 2.5 there was a JAR in 
the lcds.war/WEB-INF/lib named flex-bootstrap which is no longer in 
the lcds.war in LCDS 2.6.



RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Tracy Spratt
Why are you doing that in the open event?  Try creationComplete
instead.  Or set it directly without the function.  Or bind
selectedIndex to a bindable variable.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Wednesday, October 08, 2008 10:57 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox in Component won't open to Saved
Value

 

Thanks for the response. I understand what needs to be done as you
described but I still have one problem.
I tried this before.

private function openGenderPop(event:Event):void {
genderPop.selectedIndex = 1; 
}

The ComboBox opened to the zero value not the 1.
When I clicked on the box it opened to have the 1 value preselectect but
did not present upon opening.

I am referencing it like this and must be missing some kind of kick
event?

mx:ComboBox id=genderPop close=closeGenderPop(event)
open=openGenderPop(event) dataProvider={arrGender} x=583.5 y=89
width=116 /

Thanks again.
This board is GREAT !
Dan Pride

--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED]
mailto:tspratt%40lariatinc.com  wrote:

 From: Tracy Spratt [EMAIL PROTECTED]
mailto:tspratt%40lariatinc.com 
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved
Value
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Date: Wednesday, October 8, 2008, 11:05 AM
 ComboBox.selectedItem will only work if you assign a
 *reference to an
 item in the ComboBox dataProvider*. This is rarely
 possible and is not
 in your case.
 
 
 
 What you must do is loop over the items in the
 CobmoBox.dataProvider and
 compare the appropriate property's value to the value
 you want to match.
 When a match is found, use the loop indes to set the
 ComboBox's
 selectedIndex. This is simple enough to do in a one-off
 situation. 
 
 
 
 If you need this often, then you might want to use an
 extended ComboBox.
 Making a generic one is a bit tricky, because the Combo Box
 dataProvider
 items can have any properties at all. I have an example on
 www.cflex.net http://www.cflex.net/ http://www.cflex.net/  (it
allows you
 to set the data
 field you want to match) and Ben forta has done one and
 there are
 others.
 
 
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 10:01 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] ComboBox in Component won't open
 to Saved Value
 
 
 
 Hi
 I have a ComboBox used as a Popup on a form component.
 It saves fine using the following function
 
 private function closeGenderPop(event:Event):void {
 ComboBox(event.target).selectedItem.label}; 
 
 
 I want to have it display the stored value the next time it
 is opened.
 I tried this but no luck. 
 
 private function openGenderPop(event:Event):void {
 genderPop.selectedIndex = 1; 
 ComboBox(event.target).selectedItem.label; }
 
 Really appreciate the help
 
 Dan Pride

 



[flexcoders] Re: How to default an Accordian to a closed state (Flex 3)

2008-10-08 Thread Amy
--- In flexcoders@yahoogroups.com, Erich Cervantez [EMAIL PROTECTED] wrote:

 Yes, the height of the Accordion would change whenever a user clicks a
 header to open up that headers menu item contents.
 
 Right now, the first header group in the Accordion defaults to open
 when the application loads.  I'd like to have that first group closed
 or collapsed initially and force the user to select a group.  It would
 be great if the Accordion had some sort of defaultPosition property
 of open or closed.   I could extend the Accordion and add that
 property however I have to figure out how to close the Accordion
 first ;)

Have you thought of using includeInLayout to make the children of the 
containers populating the Accordion have no dimension?  This will 
visually look like the accordion is closed.

Like this

Accordion
--Canvas minHeight=0 label=Section 1
YourComponent includeinLayout=false
--Canvas minHeight=0 label=Section 2
YourComponent includeinLayout=false

Then when they click any tab, set the includeInLayout property of the 
child of the canvas to true.

HTH;

Amy



RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
As Homer would say doh !
Thanks
Dan


--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:

 From: Tracy Spratt [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 11:34 AM
 Why are you doing that in the open event?  Try
 creationComplete
 instead.  Or set it directly without the function.  Or bind
 selectedIndex to a bindable variable.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 10:57 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] ComboBox in Component won't
 open to Saved
 Value
 
  
 
 Thanks for the response. I understand what needs to be done
 as you
 described but I still have one problem.
 I tried this before.
 
 private function openGenderPop(event:Event):void {
 genderPop.selectedIndex = 1; 
 }
 
 The ComboBox opened to the zero value not the 1.
 When I clicked on the box it opened to have the 1 value
 preselectect but
 did not present upon opening.
 
 I am referencing it like this and must be missing some kind
 of kick
 event?
 
 mx:ComboBox id=genderPop
 close=closeGenderPop(event)
 open=openGenderPop(event)
 dataProvider={arrGender} x=583.5
 y=89
 width=116 /
 
 Thanks again.
 This board is GREAT !
 Dan Pride
 
 --- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED]
 mailto:tspratt%40lariatinc.com  wrote:
 
  From: Tracy Spratt [EMAIL PROTECTED]
 mailto:tspratt%40lariatinc.com 
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved
 Value
  To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  Date: Wednesday, October 8, 2008, 11:05 AM
  ComboBox.selectedItem will only work if you assign a
  *reference to an
  item in the ComboBox dataProvider*. This is rarely
  possible and is not
  in your case.
  
  
  
  What you must do is loop over the items in the
  CobmoBox.dataProvider and
  compare the appropriate property's value to the
 value
  you want to match.
  When a match is found, use the loop indes to set the
  ComboBox's
  selectedIndex. This is simple enough to do in a
 one-off
  situation. 
  
  
  
  If you need this often, then you might want to use an
  extended ComboBox.
  Making a generic one is a bit tricky, because the
 Combo Box
  dataProvider
  items can have any properties at all. I have an
 example on
  www.cflex.net http://www.cflex.net/
 http://www.cflex.net/  (it
 allows you
  to set the data
  field you want to match) and Ben forta has done one
 and
  there are
  others.
  
  
  
  Tracy
  
  
  
  
  
  From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of Dan Pride
  Sent: Wednesday, October 08, 2008 10:01 AM
  To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] ComboBox in Component won't
 open
  to Saved Value
  
  
  
  Hi
  I have a ComboBox used as a Popup on a form component.
  It saves fine using the following function
  
  private function closeGenderPop(event:Event):void {
  ComboBox(event.target).selectedItem.label}; 
  
  
  I want to have it display the stored value the next
 time it
  is opened.
  I tried this but no luck. 
  
  private function openGenderPop(event:Event):void {
  genderPop.selectedIndex = 1; 
  ComboBox(event.target).selectedItem.label; }
  
  Really appreciate the help
  
  Dan Pride


  


Re: [flexcoders] Passing variables from ASP to flex Application

2008-10-08 Thread Adrian Williams

Hi Mark,

   The way I solved this challenge in our app (which is using C#/.NET 
for the data layer) was to create a web service call from our flex app, 
calling a C# WSDL.  The WSDL calls a process that extracts the session 
variables and returns them as normal data points into the flex app, 
which I then store in private vars.


HTH,
Adrian

Mark wrote:


I would like to pass session variables in to a flex application so it
remembers the user one i get into my application(flex which im using
as a platform).

 


Re: [flexcoders] skinClass in external library

2008-10-08 Thread Maciek Sakrejda
Short answer: no.

Longer answer: What exactly are you trying to do? You're defining assets
in an external swc, configuring your swf to use those assets, but you
don't want a dependency on the swc? That doesn't really make any sense:
the embedded skin lives in the swc. What do you expect to happen when
the swf references assets that are not there?
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: albert.imaxel [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] skinClass in external library
Date: Wed, 08 Oct 2008 11:24:16 -

My scenario:

I have a flex builder workspace with the main flex application, and
many flex libraries which are linked to the main flex app.
One of that libraries contains the assets, styleSheets... it's the
theme library.
In the stylesheet file of this library, there are some styles defined
which use the Embed(skinClass='whatever') directive, this skin
classes are in a swc file created with flash. This swc file is added
to the build path of the theme library.
Some of this styles are used in the main flex app.

When I try to compile the whole thing, I got a class for skin
'whatever' not found error from the main app.
If I compile the theme library only, i got no errors.

The only solution I've found is to add the swc file to the build path
of the main app.

But, and here is my question: I don't want my main flex app to depend
on the swc file. Is there any way I can accomplish that?




 




[flexcoders] Re: flex and amfphp

2008-10-08 Thread valdhor
Instead of AMFPHP I would suggest looking into WebORB
(http://www.themidnightcoders.com/weborb/php/).

I started out with AMFPHP but ran into some problems. These all went
away once I switched to WebORB.

There are some great tutorials at the site (Just click on the Flex
Integration tab).

Also this thread may help you out:
http://tech.groups.yahoo.com/group/flexcoders/message/126783


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

 Hi guys,
   I'm a flex newbie and I'm trying to use amfphp with flex. Can 
 someone suggest a good tutorial on flex and amfphp. I've gone through a 
 few links but they just demonstrate a simple app, like a helloworld 
 example where data is sent from the server(one way). one of the links 
 I've referred is this
 
 http://blogs.adobe.com/mikepotter/Flex%20and%20PHP%20060221.pdf
 
 but even here, data is sent from the server and not to it. I wanna know 
 how to send data to the server from the flex frontend using amfphp. 
 
 One more question is that, when data is sent using amfphp, should the 
 php code be always object oriented? 
 
 Cheers,
 Karthik





[flexcoders] Flex, remote shared objects and functions...

2008-10-08 Thread grimmwerks

Can anyone tell me if stuff like this is possible:

so_Chat = SharedObject.getRemote(so_Chat, url, false);
so_Chat.onJump = function(str:String){trace(str)}


-- I thought I could set functions on a remote object? But I get  
errors in Flex.

[flexcoders] Re: amf php

2008-10-08 Thread valdhor
PHP inheritance is available now. A good tutorial is at
http://www.webreference.com/programming/php/class_inherit/

AMFPHP (And WebORB) allow you to map objects between PHP and Flex.
You would connect to your database in PHP and create an array of
objects to return to Flex. AMFPHP serializes these objects and sends
them to Flex. Flex then unserializes these objects and creates local
objects of the same type.

You may like to check into some tutorials and read up on Value Objects
or Data Transfer Objects.



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

 Hello Guys,
 We are goint to write some application with flex/amfphp. Our php Guy
 ask me how can we create inheritance in php classes or how we can
 settle continuality in application.
 
 For exsample 
 we have one class to connect to database another that check login
 status(which need to get some data from mysql) . in classical php way
 you include db class in begining of login checkin class. how do we do
 it in amfphp?
 
 thanks
 
 Deniz





[flexcoders] Re: How to default an Accordian to a closed state (Flex 3)

2008-10-08 Thread valdhor
Have you checked into WindowShade in FlexLib?
http://code.google.com/p/flexlib/wiki/ComponentList


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

 Anyone know of a simple (or not so simple) trick to default an
 accordian to a closed state.  Basically, I'd like to have none of
 the child containers open when the component is initially displayed.
 
 Thanks in advance!
 Erich





[flexcoders] Re: coloring a box

2008-10-08 Thread Amy
--- In flexcoders@yahoogroups.com, gr33neye501 [EMAIL PROTECTED] wrote:

 Does anyone know how to apply a gradient color to a Box control;
 gradient going left to right, ie horizontally. 
 
 I use style fillColors: #ff, #ff to get a vertical gradient,
 top to bottom. but don't know how to do it horizontally.
 
 your help guys is really needed.

http://livedocs.adobe.com/flex/3/html/help.html?content=skinstyle_3.html

HTH;

Amy



[flexcoders] Re: Action script 3 JSON

2008-10-08 Thread Kyle
Is the php script that is returning the json data live somewhere on
the web? Can you give me a url that I could ping that will return the
json data?

Thanks,

Kyle







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

 Dear Kyle,
 
 I did not get the error. Here is my php code;
 ?
 class Order
 {
     public $id;
     public $d_date;
     public $name;
     
 }
 
 
 if(isset($_GET['getOrder']))
 {
     $p = new Order();
     $p-id= '1';
     $p-d_date= '02-03-2008';
     $p-name = 'Gyanprakash Pandey';
     
     echo gyanprakash;
     echo ($p);
     echo gyan;
 }
 else
 {
     $p = new Order();
     $p-id= '1';
     $p-d_date= '02-03-2008';
     $p-name = 'Gyanprakash Pandey';
     
     
     echo json_encode($p);
 
 
 ?
 
 Out put of json encoded data is :
 {id:1,d_date:02-03-2008,name:Gyanprakash Pandey}
 
 Action script function i used to decode is :
 
 var rawData:String= event.result.toString();
                 var orders:Object= (JSON.decode(rawData)
as Object);
 myText.text= orders.id + orders.d_date + orders.name;
                 Alert.show(Data transmitted successfully);
 
 
 
 Still i'm getting the same error.
 
 Can you please find out the exact error! It'll be a great help.
 
 thank you very much,
 
 Regards,
 Gyanprakash Pandey
 
 --- On Tue, 7/10/08, Kyle [EMAIL PROTECTED] wrote:
 From: Kyle [EMAIL PROTECTED]
 Subject: [flexcoders] Re: Action script 3 JSON
 To: flexcoders@yahoogroups.com
 Date: Tuesday, 7 October, 2008, 12:06 AM
 
 
 
 
 
 
 
 
 
 
 
 
 
 If you can't find the error, post the json output that is causing the
 
 error to be thrown (the json encoded data that is being returned from
 
 your php script), as well as the AS3 code that you wrote to decode the
 
 json data here and I can take a look at it for you. However, like
 
 Haykel said, more often than not this type of error is caused by a
 
 simple syntax error in your json return.
 
 
 
 -Kyle
 
 
 
 --- In [EMAIL PROTECTED] ups.com, Haykel BEN JEMIA haykelbj@ .
 
 wrote:
 
 
 
  Seems that you have a syntax error in the JSON string. Inspect its
 
 content
 
  before sending it to the JSON decoder.
 
  
 
  On Sat, Oct 4, 2008 at 2:35 PM, GYANPRAKASH PANDEY 
 
  gyanprakash_ 108@ wrote:
 
  
 
 Dear all,
 
  
 
   I'm using JSON and php for back end data transfer in flex. But,
 
 i'm getting
 
   following error:
 
   Error: Unexpected g encountered
 
   at com.adobe.serializa tion.json: :JSONTokenizer/ parseError( )
 
   at com.adobe.serializa tion.json: :JSONTokenizer/
getNextToken( )
 
   at com.adobe.serializa tion.json: :JSONDecoder/ ::nextToken( )
 
   at com.adobe.serializa tion.json: :JSONDecoder$ iinit()
 
   at com.adobe.serializa tion.json: :JSON$/decode( )
 
   at adminPage/handlePla inJSON()
 
   at adminPage/__ pendingOrderRpc_ result()
 
   at
 
  
 
 flash.events: :EventDispatcher /flash.events: EventDispatcher:
:dispatchEventFu nction()
 
   at flash.events: :EventDispatcher /dispatchEvent( )
 
   at mx.rpc.http. mxml::HTTPServic e/
 
  
 
 http://www.adobe. com/2006/ flex/mx/internal ::dispatchRpcEve
nt()http://www.adobe. com/2006/ flex/mx/internal ::dispatchRpcEve
nt%28%29
 
   at mx.rpc::AbstractInv oker/
 
  
 
 http://www.adobe. com/2006/ flex/mx/internal
::resultHandler()http://www.adobe. com/2006/ flex/mx/internal
::resultHandler% 28%29
 
   at mx.rpc::Responder/ result()
 
   at mx.rpc::AsyncReques t/acknowledge( )
 
   at ::DirectHTTPMessage Responder/ completeHandler( )
 
   at
 
  
 
 flash.events: :EventDispatcher /flash.events: EventDispatcher:
:dispatchEventFu nction()
 
   at flash.events: :EventDispatcher /dispatchEvent( )
 
   at flash.net::URLLoade r/flash.net: URLLoader: :onComplete( )
 
  
 
  
 
   Can u please help me out in this case..
 
  
 
   Thanx alot in advance..
 
  
 
   Regards,
 
   Gyanprakash Pandey
 
  
 
  
 
    - -
 
   Unlimited freedom, unlimited storage. Get it
 
 nowhttp://in.rd. yahoo.com/ tagline_mail_ 2/*http:/ /help.yahoo.
com/l/in/ yahoo/mail/ yahoomail/ tools/tools- 08.html/
 
   
 
  
 
  
 
  
 
  
 
  -- 
 
  Haykel Ben Jemia
 
  
 
  Allmas
 
  Web  RIA Development
 
  http://www.allmas- tn.com
 
 
 
 
 
 
   
 
 
 
   

   
   
 
 
 
 
 
 
 
 
   
 
 
   
   
 
 
   Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/





[flexcoders] AMFPHP and HierarchicalData

2008-10-08 Thread Amy
Does anyone have an example of using AMFPHP to serialize and 
deserialize hierarchical collections of typed objects?

Thanks;

Amy



[flexcoders] Re: skinClass in external library

2008-10-08 Thread Adnan Doric
It is possible using ANT scripts and library-path to compile your
CSS sheet containing skinClass reference.

Maciek, dependency can be satisfied with style sheets loaded at
runtime. This way you can change skin without recompiling your
application.

Cheers.



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

 Short answer: no.
 
 Longer answer: What exactly are you trying to do? You're defining assets
 in an external swc, configuring your swf to use those assets, but you
 don't want a dependency on the swc? That doesn't really make any sense:
 the embedded skin lives in the swc. What do you expect to happen when
 the swf references assets that are not there?
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com
 
 -Original Message-
 From: albert.imaxel [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] skinClass in external library
 Date: Wed, 08 Oct 2008 11:24:16 -
 
 My scenario:
 
 I have a flex builder workspace with the main flex application, and
 many flex libraries which are linked to the main flex app.
 One of that libraries contains the assets, styleSheets... it's the
 theme library.
 In the stylesheet file of this library, there are some styles defined
 which use the Embed(skinClass='whatever') directive, this skin
 classes are in a swc file created with flash. This swc file is added
 to the build path of the theme library.
 Some of this styles are used in the main flex app.
 
 When I try to compile the whole thing, I got a class for skin
 'whatever' not found error from the main app.
 If I compile the theme library only, i got no errors.
 
 The only solution I've found is to add the swc file to the build path
 of the main app.
 
 But, and here is my question: I don't want my main flex app to depend
 on the swc file. Is there any way I can accomplish that?





[flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread valdhor
Tracy

I must be missing something here.

I have a combobox with a dataprovider of an arraycollection that is
returned from a MySQL database. This is populated on creationcomplete.
Once this arrayCollection is populated I make another call to get
specific data. Part of this data is a field that corresponds to an
item in the combobox.

When the second call returns, all I do is:

platformComboBox.selectedItem = SDActionItem.platform;

SDActionItem is the DTO returned from the second call and platform is
one of it's fields that correspond to an item in the combobox.

This works every time and I do not have to loop through the data provider.

Are you telling me that this should not work?


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

 ComboBox.selectedItem will only work if you assign a *reference to an
 item in the ComboBox dataProvider*.  This is rarely possible and is not
 in your case.
 
  
 
 What you must do is loop over the items in the CobmoBox.dataProvider and
 compare the appropriate property's value to the value you want to match.
 When a match is found, use the loop indes to set the ComboBox's
 selectedIndex.  This is simple enough to do in a one-off situation.  
 
  
 
 If you need this often, then you might want to use an extended ComboBox.
 Making a generic one is a bit tricky, because the Combo Box dataProvider
 items can have any properties at all.  I have an example on
 www.cflex.net http://www.cflex.net/  (it allows you to set the data
 field you want to match) and Ben forta has done one and there are
 others.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 10:01 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ComboBox in Component won't open to Saved Value
 
  
 
 Hi
 I have a ComboBox used as a Popup on a form component.
 It saves fine using the following function
 
 private function closeGenderPop(event:Event):void {
 ComboBox(event.target).selectedItem.label}; 
 
 
 I want to have it display the stored value the next time it is opened.
 I tried this but no luck. 
 
 private function openGenderPop(event:Event):void {
 genderPop.selectedIndex = 1; 
 ComboBox(event.target).selectedItem.label; }
 
 Really appreciate the help
 
 Dan Pride





[flexcoders] ANSWER - Re: LiveCycleDS - Problem Accessing RemoteObject over Secure AMF

2008-10-08 Thread cwicky99
So I guess LCDS 2.6 did change some things, such as not having the 
flex-bootstrap JAR (not sure if this code moved somewhere else or not).

But basically I updated my web.xml so all of the LCDS 2.5 stuff (as 
mentioned in the earlier post) is gone and I only have the servlet 
mapping and definition for MessageBrokerServlet and now all is well.



RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
Creation complete works the first time but the component is displayed when you 
click on a list, and subsequent selections are not displayed. I am having 
trouble figuring out which on is the correct event.?
Sorry but I am relatively new at this kind of programming.
Thanks
Dan


--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:

 From: Tracy Spratt [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 11:34 AM
 Why are you doing that in the open event?  Try
 creationComplete
 instead.  Or set it directly without the function.  Or bind
 selectedIndex to a bindable variable.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 10:57 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] ComboBox in Component won't
 open to Saved
 Value
 
  
 
 Thanks for the response. I understand what needs to be done
 as you
 described but I still have one problem.
 I tried this before.
 
 private function openGenderPop(event:Event):void {
 genderPop.selectedIndex = 1; 
 }
 
 The ComboBox opened to the zero value not the 1.
 When I clicked on the box it opened to have the 1 value
 preselectect but
 did not present upon opening.
 
 I am referencing it like this and must be missing some kind
 of kick
 event?
 
 mx:ComboBox id=genderPop
 close=closeGenderPop(event)
 open=openGenderPop(event)
 dataProvider={arrGender} x=583.5
 y=89
 width=116 /
 
 Thanks again.
 This board is GREAT !
 Dan Pride
 
 --- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED]
 mailto:tspratt%40lariatinc.com  wrote:
 
  From: Tracy Spratt [EMAIL PROTECTED]
 mailto:tspratt%40lariatinc.com 
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved
 Value
  To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  Date: Wednesday, October 8, 2008, 11:05 AM
  ComboBox.selectedItem will only work if you assign a
  *reference to an
  item in the ComboBox dataProvider*. This is rarely
  possible and is not
  in your case.
  
  
  
  What you must do is loop over the items in the
  CobmoBox.dataProvider and
  compare the appropriate property's value to the
 value
  you want to match.
  When a match is found, use the loop indes to set the
  ComboBox's
  selectedIndex. This is simple enough to do in a
 one-off
  situation. 
  
  
  
  If you need this often, then you might want to use an
  extended ComboBox.
  Making a generic one is a bit tricky, because the
 Combo Box
  dataProvider
  items can have any properties at all. I have an
 example on
  www.cflex.net http://www.cflex.net/
 http://www.cflex.net/  (it
 allows you
  to set the data
  field you want to match) and Ben forta has done one
 and
  there are
  others.
  
  
  
  Tracy
  
  
  
  
  
  From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of Dan Pride
  Sent: Wednesday, October 08, 2008 10:01 AM
  To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] ComboBox in Component won't
 open
  to Saved Value
  
  
  
  Hi
  I have a ComboBox used as a Popup on a form component.
  It saves fine using the following function
  
  private function closeGenderPop(event:Event):void {
  ComboBox(event.target).selectedItem.label}; 
  
  
  I want to have it display the stored value the next
 time it
  is opened.
  I tried this but no luck. 
  
  private function openGenderPop(event:Event):void {
  genderPop.selectedIndex = 1; 
  ComboBox(event.target).selectedItem.label; }
  
  Really appreciate the help
  
  Dan Pride


  


RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
Creation complete works the first time but the component is displayed when you 
click on a list, and subsequent selections are not displayed. I am having 
trouble figuring out which on is the correct event.?
Sorry but I am relatively new at this kind of programming.
Thanks
Dan


--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:

 From: Tracy Spratt [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 11:34 AM
 Why are you doing that in the open event?  Try
 creationComplete
 instead.  Or set it directly without the function.  Or bind
 selectedIndex to a bindable variable.
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 10:57 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] ComboBox in Component won't
 open to Saved
 Value
 
  
 
 Thanks for the response. I understand what needs to be done
 as you
 described but I still have one problem.
 I tried this before.
 
 private function openGenderPop(event:Event):void {
 genderPop.selectedIndex = 1; 
 }
 
 The ComboBox opened to the zero value not the 1.
 When I clicked on the box it opened to have the 1 value
 preselectect but
 did not present upon opening.
 
 I am referencing it like this and must be missing some kind
 of kick
 event?
 
 mx:ComboBox id=genderPop
 close=closeGenderPop(event)
 open=openGenderPop(event)
 dataProvider={arrGender} x=583.5
 y=89
 width=116 /
 
 Thanks again.
 This board is GREAT !
 Dan Pride
 
 --- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED]
 mailto:tspratt%40lariatinc.com  wrote:
 
  From: Tracy Spratt [EMAIL PROTECTED]
 mailto:tspratt%40lariatinc.com 
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved
 Value
  To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  Date: Wednesday, October 8, 2008, 11:05 AM
  ComboBox.selectedItem will only work if you assign a
  *reference to an
  item in the ComboBox dataProvider*. This is rarely
  possible and is not
  in your case.
  
  
  
  What you must do is loop over the items in the
  CobmoBox.dataProvider and
  compare the appropriate property's value to the
 value
  you want to match.
  When a match is found, use the loop indes to set the
  ComboBox's
  selectedIndex. This is simple enough to do in a
 one-off
  situation. 
  
  
  
  If you need this often, then you might want to use an
  extended ComboBox.
  Making a generic one is a bit tricky, because the
 Combo Box
  dataProvider
  items can have any properties at all. I have an
 example on
  www.cflex.net http://www.cflex.net/
 http://www.cflex.net/  (it
 allows you
  to set the data
  field you want to match) and Ben forta has done one
 and
  there are
  others.
  
  
  
  Tracy
  
  
  
  
  
  From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com ] On
  Behalf Of Dan Pride
  Sent: Wednesday, October 08, 2008 10:01 AM
  To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] ComboBox in Component won't
 open
  to Saved Value
  
  
  
  Hi
  I have a ComboBox used as a Popup on a form component.
  It saves fine using the following function
  
  private function closeGenderPop(event:Event):void {
  ComboBox(event.target).selectedItem.label}; 
  
  
  I want to have it display the stored value the next
 time it
  is opened.
  I tried this but no luck. 
  
  private function openGenderPop(event:Event):void {
  genderPop.selectedIndex = 1; 
  ComboBox(event.target).selectedItem.label; }
  
  Really appreciate the help
  
  Dan Pride


  


[flexcoders] Re: Action script 3 JSON

2008-10-08 Thread valdhor
It appears from the original post that the error is

Unexpected g encountered

In your code you have

echo gyanprakash

if $_GET['getOrder'] is set.

So, is $_GET['getOrder'] set? if so, you will get the error as the
response will be gyanprakash (NOT JSON encoded).


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

 Is the php script that is returning the json data live somewhere on
 the web? Can you give me a url that I could ping that will return the
 json data?
 
 Thanks,
 
 Kyle
 
 
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, GYANPRAKASH PANDEY
 gyanprakash_108@ wrote:
 
  Dear Kyle,
  
  I did not get the error. Here is my php code;
  ?
  class Order
  {
      public $id;
      public $d_date;
      public $name;
      
  }
  
  
  if(isset($_GET['getOrder']))
  {
      $p = new Order();
      $p-id= '1';
      $p-d_date= '02-03-2008';
      $p-name = 'Gyanprakash Pandey';
      
      echo gyanprakash;
      echo ($p);
      echo gyan;
  }
  else
  {
      $p = new Order();
      $p-id= '1';
      $p-d_date= '02-03-2008';
      $p-name = 'Gyanprakash Pandey';
      
      
      echo json_encode($p);
  
  
  ?
  
  Out put of json encoded data is :
  {id:1,d_date:02-03-2008,name:Gyanprakash Pandey}
  
  Action script function i used to decode is :
  
  var rawData:String= event.result.toString();
                  var orders:Object= (JSON.decode(rawData)
 as Object);
  myText.text= orders.id + orders.d_date + orders.name;
                  Alert.show(Data transmitted
successfully);
  
  
  
  Still i'm getting the same error.
  
  Can you please find out the exact error! It'll be a great help.
  
  thank you very much,
  
  Regards,
  Gyanprakash Pandey
  
  --- On Tue, 7/10/08, Kyle ktyacke@ wrote:
  From: Kyle ktyacke@
  Subject: [flexcoders] Re: Action script 3 JSON
  To: flexcoders@yahoogroups.com
  Date: Tuesday, 7 October, 2008, 12:06 AM
  
  
  
  
  
  
  
  
  
  
  
  
  
  If you can't find the error, post the json output that is causing the
  
  error to be thrown (the json encoded data that is being returned from
  
  your php script), as well as the AS3 code that you wrote to decode the
  
  json data here and I can take a look at it for you. However, like
  
  Haykel said, more often than not this type of error is caused by a
  
  simple syntax error in your json return.
  
  
  
  -Kyle
  
  
  
  --- In [EMAIL PROTECTED] ups.com, Haykel BEN JEMIA haykelbj@ .
  
  wrote:
  
  
  
   Seems that you have a syntax error in the JSON string. Inspect its
  
  content
  
   before sending it to the JSON decoder.
  
   
  
   On Sat, Oct 4, 2008 at 2:35 PM, GYANPRAKASH PANDEY 
  
   gyanprakash_ 108@ wrote:
  
   
  
  Dear all,
  
   
  
I'm using JSON and php for back end data transfer in flex. But,
  
  i'm getting
  
following error:
  
Error: Unexpected g encountered
  
at com.adobe.serializa tion.json: :JSONTokenizer/
parseError( )
  
at com.adobe.serializa tion.json: :JSONTokenizer/
 getNextToken( )
  
at com.adobe.serializa tion.json: :JSONDecoder/ ::nextToken( )
  
at com.adobe.serializa tion.json: :JSONDecoder$ iinit()
  
at com.adobe.serializa tion.json: :JSON$/decode( )
  
at adminPage/handlePla inJSON()
  
at adminPage/__ pendingOrderRpc_ result()
  
at
  
   
  
  flash.events: :EventDispatcher /flash.events: EventDispatcher:
 :dispatchEventFu nction()
  
at flash.events: :EventDispatcher /dispatchEvent( )
  
at mx.rpc.http. mxml::HTTPServic e/
  
   
  
  http://www.adobe. com/2006/ flex/mx/internal ::dispatchRpcEve
 nt()http://www.adobe. com/2006/ flex/mx/internal ::dispatchRpcEve
 nt%28%29
  
at mx.rpc::AbstractInv oker/
  
   
  
  http://www.adobe. com/2006/ flex/mx/internal
 ::resultHandler()http://www.adobe. com/2006/ flex/mx/internal
 ::resultHandler% 28%29
  
at mx.rpc::Responder/ result()
  
at mx.rpc::AsyncReques t/acknowledge( )
  
at ::DirectHTTPMessage Responder/ completeHandler( )
  
at
  
   
  
  flash.events: :EventDispatcher /flash.events: EventDispatcher:
 :dispatchEventFu nction()
  
at flash.events: :EventDispatcher /dispatchEvent( )
  
at flash.net::URLLoade r/flash.net: URLLoader: :onComplete( )
  
   
  
   
  
Can u please help me out in this case..
  
   
  
Thanx alot in advance..
  
   
  
Regards,
  
Gyanprakash Pandey
  
   
  
   
  
 - -
  
Unlimited freedom, unlimited storage. Get it
  
  nowhttp://in.rd. yahoo.com/ tagline_mail_ 2/*http:/ /help.yahoo.
 com/l/in/ yahoo/mail/ yahoomail/ tools/tools- 08.html/
  

  
   
  
   
  
   
  
   
  
   -- 
  
   Haykel Ben Jemia
  
   
  
   Allmas
  
   Web  RIA Development
  
   http://www.allmas- tn.com
  
  
  
  
  
  

  
  
  
  
   
  
  
  

Re: [flexcoders] Re: skinClass in external library

2008-10-08 Thread Maciek Sakrejda
Ah, I see. I didn't realize that's what Albert was asking (I don't want
my main flex app to depend on the swc file.). If that's the case, then
yes--he can compile the resources into a SWF and depend on any SWF that
delivers all the relevant resources, not specifically just that one.

Thanks for the clarification.


-Original Message-
From: Adnan Doric [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: skinClass in external library
Date: Wed, 08 Oct 2008 16:28:10 -

It is possible using ANT scripts and library-path to compile your
CSS sheet containing skinClass reference.

Maciek, dependency can be satisfied with style sheets loaded at
runtime. This way you can change skin without recompiling your
application.

Cheers.

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

 Short answer: no.
 
 Longer answer: What exactly are you trying to do? You're defining
assets
 in an external swc, configuring your swf to use those assets, but you
 don't want a dependency on the swc? That doesn't really make any
sense:
 the embedded skin lives in the swc. What do you expect to happen
when
 the swf references assets that are not there?
 -- 
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com
 
 -Original Message-
 From: albert.imaxel [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] skinClass in external library
 Date: Wed, 08 Oct 2008 11:24:16 -
 
 My scenario:
 
 I have a flex builder workspace with the main flex application, and
 many flex libraries which are linked to the main flex app.
 One of that libraries contains the assets, styleSheets... it's the
 theme library.
 In the stylesheet file of this library, there are some styles defined
 which use the Embed(skinClass='whatever') directive, this skin
 classes are in a swc file created with flash. This swc file is added
 to the build path of the theme library.
 Some of this styles are used in the main flex app.
 
 When I try to compile the whole thing, I got a class for skin
 'whatever' not found error from the main app.
 If I compile the theme library only, i got no errors.
 
 The only solution I've found is to add the swc file to the build path
 of the main app.
 
 But, and here is my question: I don't want my main flex app to depend
 on the swc file. Is there any way I can accomplish that?





 




[flexcoders] Re: AMFPHP and HierarchicalData

2008-10-08 Thread valdhor
Not with AMFPHP, but I do with WebORB. They should be fairly close.

I use it to create my menubar. I have Menu objects and MenuItem
objects. Each Menu object can contain MenuItem objects as well as Menu
objects. With this structure, the Flex menubar can take the entire
arraycollection as a dataprovider and automatically create my menubar.

Let me know if you would like me to create a small example.


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

 Does anyone have an example of using AMFPHP to serialize and 
 deserialize hierarchical collections of typed objects?
 
 Thanks;
 
 Amy





[flexcoders] Trying to Embrace MVC

2008-10-08 Thread shortgrass23
This question is one part philosphical, one part technical. I am
trying to embrace the idea of an MVC framework and abstraction. I
started a new project with the following setup and am wondering if
this is logical and, if so, how will this benefit me in the future?
Thanks for any feedback.

I have a main MXML page, which I refer to as the parent, which would
be considered the controller. The controller knows all about the other
components that it calls. On the controller I have code that makes
components visible, adds event listeners to UI elements like buttons
within the components, and functions that respond when those listeners
hear something.

I have many component MXML pages, which have no reference within them
to the controller since they are not suppose to depend on the
controller. They contain UI elements, code to populate drop-down
boxes, public variables that the controller can poke values into, and
models that hold the data that the controller will send to the web
service, which in my case is a cfc.

The cfc has functions in it which call table-valued functions and
stored procedures.

This is so different than traditional CF programming, I can't even
tell if it makes sense or not.



RE: [flexcoders] Log4J like library

2008-10-08 Thread Dimitrios Gianninas
I guess because you have no server-side component then will have to build what 
you are suggesting. Because yes, only by configuring debug will it spit out the 
logging statements. But be very careful, doing a rolling log is nice, but this 
is on a client PC and you dont want to fill up the hard drive, make sure it 
only keeps the last 5 days of something like that.
 
Best of luck and do share with the community, maybe someone else will have the 
same use case in the future.
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shahid 
Faiz
Sent: Wednesday, October 08, 2008 10:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Log4J like library



@Howard: Actually I am developing AIR application and I don't have any my own 
server side where I can deploy any web service for logging. That's why I 
require some logging mechanism which will store information on user machine 
like all desktop applications do.

@Dimitrios: I think, current logging framework provides TraceTarget and it logs 
output only when application is running in Flash Player Debug version. Isn't 
it? Also to enable this logging, we will have to first ask user to configure 
this trace logging in mm.cfg and then application will start logging and may be 
on second run actual problem doesn't happen.

Of course, build in framework provides a very nice foundation classes. I am 
thinking of few helper classes like RollingFileTarget (which will log messages 
to a file and it will be rolling), and LogConfigurator (it will configure 
logging system from a config file) etc. Does this make sense?

- Shahid


On Wed, Oct 8, 2008 at 6:25 PM, Dimitrios Gianninas [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]  wrote:




Howard is right... remember if you create a logging framework that logs 
things the client app is doing, the log will be generated on every end-users 
computer...do u intend to retrieve all logs files from all users when an error 
happens? Kinda difficult. Use the existing logging framework and logs all 
critical stuff in there, when an error occurs, have your tech dept call the 
end-user reproduce the problem and get the flashlog.txt file right then and 
there.
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com  
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On 
Behalf Of Howard Fore
Sent: Wednesday, October 08, 2008 6:30 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Log4J like library





How do envision such a component working? Given that Air and Flex are 
front-end technologies, wouldn't the log storage be on the back-end, thus 
implying both some communication between the two and the back-end component 
that does the log writing and storage? You could create a web service (written 
in Java, ColdFusion, .Net, etc) to catch the log events coming from the AIR app.


On Wed, Oct 8, 2008 at 1:41 AM, Shahid Faiz [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]  wrote:


Thanks for the link. I have looked at myflex.org, cimlogbook 
http://code.google.com/p/cimlogbook/ ,  renaun.com 
http://renaun.com/blog/flex-components/ , and log4f 
http://sourceforge.net/projects/log4f/  but they don't provide 
functionalities that are required for an AIR app. For example I am searching 
for Rolling File Target, externally file based configuration etc.




-- 
Howard Fore, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
The universe tends toward maximum irony. Don't push it. - Jeff Atwood




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 

RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
This seems absurdly difficult for so simple a function.

I am trying to save a value from a popup and get it back when the list is 
double clicked and the form is represented with a different record selected. 
Not exactly rocket science.

I have tried every single event and nada.
Is there an on Load  Why not? It seems so obvious.
Creation complete only works the first time the form component is presented.

The functions are

 private function closeRolePop(event:Event):void {
   ComboBox(event.target).selectedItem.label}; 
   
   private function openRolePop(event:Event):void {
var i:uint;
for(i=0; i  arrRoles.length; i++){
if(arrRoles.getItemAt(i).label == currentPerson.Role){
   rolePop.selectedIndex = i;
}}}

Help Please this is really getting to me cause it should be so simple


--- On Wed, 10/8/08, Dan Pride [EMAIL PROTECTED] wrote:

 From: Dan Pride [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 12:38 PM
 Creation complete works the first time but the component is
 displayed when you click on a list, and subsequent
 selections are not displayed. I am having trouble figuring
 out which on is the correct event.?
 Sorry but I am relatively new at this kind of programming.
 Thanks
 Dan
 
 
 --- On Wed, 10/8/08, Tracy Spratt
 [EMAIL PROTECTED] wrote:
 
  From: Tracy Spratt [EMAIL PROTECTED]
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved Value
  To: flexcoders@yahoogroups.com
  Date: Wednesday, October 8, 2008, 11:34 AM
  Why are you doing that in the open event? 
 Try
  creationComplete
  instead.  Or set it directly without the function.  Or
 bind
  selectedIndex to a bindable variable.
  
  Tracy
  
   
  
  
  
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
  Behalf Of Dan Pride
  Sent: Wednesday, October 08, 2008 10:57 AM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] ComboBox in Component
 won't
  open to Saved
  Value
  
   
  
  Thanks for the response. I understand what needs to be
 done
  as you
  described but I still have one problem.
  I tried this before.
  
  private function openGenderPop(event:Event):void {
  genderPop.selectedIndex = 1; 
  }
  
  The ComboBox opened to the zero value not the 1.
  When I clicked on the box it opened to have the 1
 value
  preselectect but
  did not present upon opening.
  
  I am referencing it like this and must be missing some
 kind
  of kick
  event?
  
  mx:ComboBox id=genderPop
  close=closeGenderPop(event)
  open=openGenderPop(event)
  dataProvider={arrGender}
 x=583.5
  y=89
  width=116 /
  
  Thanks again.
  This board is GREAT !
  Dan Pride
  
  --- On Wed, 10/8/08, Tracy Spratt
 [EMAIL PROTECTED]
  mailto:tspratt%40lariatinc.com  wrote:
  
   From: Tracy Spratt [EMAIL PROTECTED]
  mailto:tspratt%40lariatinc.com 
   Subject: RE: [flexcoders] ComboBox in Component
  won't open to Saved
  Value
   To: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
   Date: Wednesday, October 8, 2008, 11:05 AM
   ComboBox.selectedItem will only work if you
 assign a
   *reference to an
   item in the ComboBox dataProvider*. This is
 rarely
   possible and is not
   in your case.
   
   
   
   What you must do is loop over the items in the
   CobmoBox.dataProvider and
   compare the appropriate property's value to
 the
  value
   you want to match.
   When a match is found, use the loop indes to set
 the
   ComboBox's
   selectedIndex. This is simple enough to do in a
  one-off
   situation. 
   
   
   
   If you need this often, then you might want to
 use an
   extended ComboBox.
   Making a generic one is a bit tricky, because the
  Combo Box
   dataProvider
   items can have any properties at all. I have an
  example on
   www.cflex.net http://www.cflex.net/
  http://www.cflex.net/  (it
  allows you
   to set the data
   field you want to match) and Ben forta has done
 one
  and
   there are
   others.
   
   
   
   Tracy
   
   
   
   
   
   From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  
   [mailto:flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com ] On
   Behalf Of Dan Pride
   Sent: Wednesday, October 08, 2008 10:01 AM
   To: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] ComboBox in Component
 won't
  open
   to Saved Value
   
   
   
   Hi
   I have a ComboBox used as a Popup on a form
 component.
   It saves fine using the following function
   
   private function closeGenderPop(event:Event):void
 {
   ComboBox(event.target).selectedItem.label}; 
   
   
   I want to have it display the stored value the
 next
  time it
   is opened.
   I tried this but no luck. 
   
   private function 

RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Battershall, Jeff
The Combobox by itself does not really support what you're trying to do.
As Tracy said there is sample code you can draw on to extend the
ComboBox to accept a 'selectedValue' parameter or something of the sort,
which in turn will fire internal logic to determine which item in the
dataProvider matches and to set the selectedIndex accordingly. 

The other part of this is using binding.  To have your instantiated
combobox to update its selectedIndex when a value changes you need to
reference a bindable value.  If another code alters that value, it will
then re-fire the internal logic in your custom ComboBox. 

{Bindable]
private var dp:Array =
[{data:'foo',label:'foo'},{data:'foo1',label:'foo1'},{data:'foo2',label:
'foo2'}];

[Bindable]
private var myVal:String = foo;

local:CustomComboBox dataProvider={dp} selectedValue={myVal}/

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Wednesday, October 08, 2008 1:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox in Component won't open to Saved
Value


This seems absurdly difficult for so simple a function.

I am trying to save a value from a popup and get it back when the list
is double clicked and the form is represented with a different record
selected. Not exactly rocket science.

I have tried every single event and nada.
Is there an on Load  Why not? It seems so obvious. Creation
complete only works the first time the form component is presented.

The functions are

 private function closeRolePop(event:Event):void {
   ComboBox(event.target).selectedItem.label}; 
   
   private function openRolePop(event:Event):void {
var i:uint;
for(i=0; i  arrRoles.length; i++){
if(arrRoles.getItemAt(i).label == currentPerson.Role){
   rolePop.selectedIndex = i;
}}}

Help Please this is really getting to me cause it should be so simple


--- On Wed, 10/8/08, Dan Pride [EMAIL PROTECTED] wrote:

 From: Dan Pride [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved 
 Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 12:38 PM
 Creation complete works the first time but the component is
 displayed when you click on a list, and subsequent
 selections are not displayed. I am having trouble figuring
 out which on is the correct event.?
 Sorry but I am relatively new at this kind of programming.
 Thanks
 Dan
 
 
 --- On Wed, 10/8/08, Tracy Spratt
 [EMAIL PROTECTED] wrote:
 
  From: Tracy Spratt [EMAIL PROTECTED]
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved Value
  To: flexcoders@yahoogroups.com
  Date: Wednesday, October 8, 2008, 11:34 AM
  Why are you doing that in the open event?
 Try
  creationComplete
  instead.  Or set it directly without the function.  Or
 bind
  selectedIndex to a bindable variable.
  
  Tracy
  
   
  
  
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]

  On Behalf Of Dan Pride
  Sent: Wednesday, October 08, 2008 10:57 AM
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] ComboBox in Component
 won't
  open to Saved
  Value
  
   
  
  Thanks for the response. I understand what needs to be
 done
  as you
  described but I still have one problem.
  I tried this before.
  
  private function openGenderPop(event:Event):void { 
  genderPop.selectedIndex = 1; }
  
  The ComboBox opened to the zero value not the 1.
  When I clicked on the box it opened to have the 1
 value
  preselectect but
  did not present upon opening.
  
  I am referencing it like this and must be missing some
 kind
  of kick
  event?
  
  mx:ComboBox id=genderPop
  close=closeGenderPop(event)
  open=openGenderPop(event)
  dataProvider={arrGender}
 x=583.5
  y=89
  width=116 /
  
  Thanks again.
  This board is GREAT !
  Dan Pride
  
  --- On Wed, 10/8/08, Tracy Spratt
 [EMAIL PROTECTED]
  mailto:tspratt%40lariatinc.com  wrote:
  
   From: Tracy Spratt [EMAIL PROTECTED]
  mailto:tspratt%40lariatinc.com 
   Subject: RE: [flexcoders] ComboBox in Component
  won't open to Saved
  Value
   To: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   Date: Wednesday, October 8, 2008, 11:05 AM ComboBox.selectedItem 
   will only work if you
 assign a
   *reference to an
   item in the ComboBox dataProvider*. This is
 rarely
   possible and is not
   in your case.
   
   
   
   What you must do is loop over the items in the 
   CobmoBox.dataProvider and compare the appropriate property's value

   to
 the
  value
   you want to match.
   When a match is found, use the loop indes to set
 the
   ComboBox's
   selectedIndex. This is simple enough to do in a
  one-off
   situation.
   
   
   
   If you need this often, then you might want to
 use an
   extended ComboBox.
   Making a generic one is a bit tricky, because the
  Combo Box
   dataProvider
   

[flexcoders] Re: How to default an Accordian to a closed state (Flex 3)

2008-10-08 Thread burttram
 Have you thought of using includeInLayout to make the children of the 
 containers populating the Accordion have no dimension?  This will 
 visually look like the accordion is closed.

I was asking about this not long ago
(http://tech.groups.yahoo.com/group/flexcoders/message/127045) and
would be very interested in hearing how you solve this.  I'm using
Flex 2 instead of 3, but I would think that the suggestion above may
work for both products/cases.  Please post any progress you're able to
make!

Thanks in advance,
Brian



[flexcoders] Transient data for Java - Flex

2008-10-08 Thread Collin Peters
So the [Transient] flex will prevent data in a Flex object from being
serialized across the wire.  What about the other way?  Declaring a
Java variable as 'transient' (Java keyword) doesn't seem to have the
same affect

Regards,
Collin


[flexcoders] Excel download from flex array with AMFPHP

2008-10-08 Thread aphexyuri
Hi

Help will be greatly appreciated...

I need to make a .xls file available for download with data from a
datagrid.

I'm using AMFPHP, as the datagrid info can be a lot, but i'm having
trouble prompting the user for the download.

The data gets to AMFPHP ok, then I build tab delimited string from an
incomming array, and that is where I'm stuck...getting that string to
a .xml file prompt for download, without saving the file to the server.

Any help please?



RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
Am I going down the wrong road with ComboBox?
Geez I can set a popup and get the value back with Php or any of a number of 
other languages.
Seems REALLY absurd that this is this difficult. 
Dan
P.S. Where do I get the custom combobox code? or will the binding approach work 
with a regular out of the box combobox?
thanks for you time.


--- On Wed, 10/8/08, Battershall, Jeff [EMAIL PROTECTED] wrote:

 From: Battershall, Jeff [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 1:38 PM
 The Combobox by itself does not really support what
 you're trying to do.
 As Tracy said there is sample code you can draw on to
 extend the
 ComboBox to accept a 'selectedValue' parameter or
 something of the sort,
 which in turn will fire internal logic to determine which
 item in the
 dataProvider matches and to set the selectedIndex
 accordingly. 
 
 The other part of this is using binding.  To have your
 instantiated
 combobox to update its selectedIndex when a value changes
 you need to
 reference a bindable value.  If another code alters that
 value, it will
 then re-fire the internal logic in your custom ComboBox. 
 
 {Bindable]
 private var dp:Array =
 [{data:'foo',label:'foo'},{data:'foo1',label:'foo1'},{data:'foo2',label:
 'foo2'}];
 
 [Bindable]
 private var myVal:String = foo;
 
 local:CustomComboBox dataProvider={dp}
 selectedValue={myVal}/
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 1:23 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] ComboBox in Component won't
 open to Saved
 Value
 
 
 This seems absurdly difficult for so simple a function.
 
 I am trying to save a value from a popup and get it back
 when the list
 is double clicked and the form is represented with a
 different record
 selected. Not exactly rocket science.
 
 I have tried every single event and nada.
 Is there an on Load  Why not? It seems so
 obvious. Creation
 complete only works the first time the form component is
 presented.
 
 The functions are
 
private function closeRolePop(event:Event):void {
ComboBox(event.target).selectedItem.label}; 

private function openRolePop(event:Event):void {
   var i:uint;
   for(i=0; i  arrRoles.length; i++){
   if(arrRoles.getItemAt(i).label ==
 currentPerson.Role){
  rolePop.selectedIndex = i;
   }}}
 
 Help Please this is really getting to me cause it should be
 so simple
 
 
 --- On Wed, 10/8/08, Dan Pride
 [EMAIL PROTECTED] wrote:
 
  From: Dan Pride [EMAIL PROTECTED]
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved 
  Value
  To: flexcoders@yahoogroups.com
  Date: Wednesday, October 8, 2008, 12:38 PM
  Creation complete works the first time but the
 component is
  displayed when you click on a list, and subsequent
  selections are not displayed. I am having trouble
 figuring
  out which on is the correct event.?
  Sorry but I am relatively new at this kind of
 programming.
  Thanks
  Dan
  
  
  --- On Wed, 10/8/08, Tracy Spratt
  [EMAIL PROTECTED] wrote:
  
   From: Tracy Spratt [EMAIL PROTECTED]
   Subject: RE: [flexcoders] ComboBox in Component
  won't open to Saved Value
   To: flexcoders@yahoogroups.com
   Date: Wednesday, October 8, 2008, 11:34 AM
   Why are you doing that in the open
 event?
  Try
   creationComplete
   instead.  Or set it directly without the
 function.  Or
  bind
   selectedIndex to a bindable variable.
   
   Tracy
   

   
   
   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED]
 
   On Behalf Of Dan Pride
   Sent: Wednesday, October 08, 2008 10:57 AM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] ComboBox in Component
  won't
   open to Saved
   Value
   

   
   Thanks for the response. I understand what needs
 to be
  done
   as you
   described but I still have one problem.
   I tried this before.
   
   private function openGenderPop(event:Event):void
 { 
   genderPop.selectedIndex = 1; }
   
   The ComboBox opened to the zero value not the 1.
   When I clicked on the box it opened to have the 1
  value
   preselectect but
   did not present upon opening.
   
   I am referencing it like this and must be missing
 some
  kind
   of kick
   event?
   
   mx:ComboBox id=genderPop
   close=closeGenderPop(event)
   open=openGenderPop(event)
   dataProvider={arrGender}
  x=583.5
   y=89
   width=116 /
   
   Thanks again.
   This board is GREAT !
   Dan Pride
   
   --- On Wed, 10/8/08, Tracy Spratt
  [EMAIL PROTECTED]
   mailto:tspratt%40lariatinc.com 
 wrote:
   
From: Tracy Spratt [EMAIL PROTECTED]
   mailto:tspratt%40lariatinc.com 
Subject: RE: [flexcoders] ComboBox in
 Component
   won't open to 

Re: [flexcoders] Re: Feeding complex XMLdata to charts: Flex3

2008-10-08 Thread john fisher
Hey I see what you are doing, including a call I didn't know about...
thanks
will try this afternoon, and probably have Qs.  Have to write some
release notes first.
I knew I was having a forest and trees problem, but sometimes you just
get stuck.
John

Amy wrote:

 You might find this useful 
 http://flexdiary.blogspot.com/2008/08/charting-example.html

 HTH;

 Amy


   


[flexcoders] mxmlc precedence between -library-path and -external-library-path

2008-10-08 Thread Engkee Kwang
When using the command line compiler... if the same SWC file exist in 
the -library-path and -external-library-path, which takes precedence?

For example, if I compile an application using the command line and the 
degrafa.swc file exist in both the directories specified by the -
librayr-path and -external-library-path option, would the degrafa 
classes be embedded in my SWF or excluded?

-Engkee




[flexcoders] Re: Excel download from flex array with AMFPHP

2008-10-08 Thread valdhor
I do this all the time from PHP. Here are the functions that I use:

function sendHeader($FileName)
{
 header(Pragma: public);
 header(Expires: 0);
 header(Cache-Control: must-revalidate, post-check=0, pre-check=0);
 header(Content-Type: application/force-download);
 header(Content-Type: application/octet-stream);
 header(Content-Type: application/download);
 $DispositionHeader = Content-Disposition: attachment;filename= .
$FileName . .xls;
 header($DispositionHeader);
 header(Content-Transfer-Encoding: binary);
}

function xlsBOF()
{
 echo pack(ss, 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);
 return;
}

function xlsEOF()
{
 echo pack(ss, 0x0A, 0x00);
 return;
}

function xlsWriteNumber($Row, $Col, $Value)
{
 echo pack(s, 0x203, 14, $Row, $Col, 0x0);
 echo pack(d, $Value);
 return;
}

function xlsWriteLabel($Row, $Col, $Value )
{
 $L = strlen($Value);
 echo pack(ss, 0x204, 8 + $L, $Row, $Col, 0x0, $L);
 echo $Value;
 return;
}

And here is how I would use these functions:
$FileName = MyFileName;
sendHeader($FileName);
xlsBOF();
//xlsWriteLabel($Row, $Col, $Value );
xlsWriteLabel(0, 0, Name);
xlsWriteLabel(0, 1, Age);
$xlsRow = 1;
arsort($theArrayIWantToSend);
foreach ($theArrayIWantToSend as $key = $value)
{
  //xlsWriteLabel($Row, $Col, $Value );
  xlsWriteLabel($xlsRow, 0, trim($key));
  //xlsWriteNumber($Row, $Col, $Value );
  xlsWriteNumber($xlsRow, 1, $value);
  $xlsRow++;
}
xlsEOF();

You use xlsWriteLabel to write a string and xlsWriteNumber to write a
number.

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

 Hi

 Help will be greatly appreciated...

 I need to make a .xls file available for download with data from a
 datagrid.

 I'm using AMFPHP, as the datagrid info can be a lot, but i'm having
 trouble prompting the user for the download.

 The data gets to AMFPHP ok, then I build tab delimited string from an
 incomming array, and that is where I'm stuck...getting that string to
 a .xml file prompt for download, without saving the file to the
server.

 Any help please?




Re: [flexcoders] Trying to Embrace MVC

2008-10-08 Thread Simon Bailey

Hi,

I tend to use the PureMVC framework and would typically architecture  
like this:


View = the UI interface i.e. form, grid, lsit etc.
(in PureMVC a Mediator handles responses from the UI and pushes to the  
rest of the framework)


Controller = handles these responses and passes to the Model.

Model = interacts with the remoting aspect i.e. CF and passes the data  
back out in an event system.


http://www.nutrixinteractive.com/blog/?page_id=111

Check that link for my WIKI and see my PureMVC AS3 / Flex / CF Demo -  
Query a CFC


Cheers,

Simon

On 8 Oct 2008, at 16:58, shortgrass23 wrote:

This question is one part philosphical, one part technical. I am
trying to embrace the idea of an MVC framework and abstraction. I
started a new project with the following setup and am wondering if
this is logical and, if so, how will this benefit me in the future?
Thanks for any feedback.

I have a main MXML page, which I refer to as the parent, which would
be considered the controller. The controller knows all about the other
components that it calls. On the controller I have code that makes
components visible, adds event listeners to UI elements like buttons
within the components, and functions that respond when those listeners
hear something.

I have many component MXML pages, which have no reference within them
to the controller since they are not suppose to depend on the
controller. They contain UI elements, code to populate drop-down
boxes, public variables that the controller can poke values into, and
models that hold the data that the controller will send to the web
service, which in my case is a cfc.

The cfc has functions in it which call table-valued functions and
stored procedures.

This is so different than traditional CF programming, I can't even
tell if it makes sense or not.






[flexcoders] Scaling text

2008-10-08 Thread Richard Rodseth
I have a requirement to display some text overlaid on some graphics. The
catch is that the whole thing must render at different sizes and the length
of the text is variable (data driven). And of course, the aspect ratio of
the graphic should be preserved.

I've dabbled with Degrafa. I've fiddled with font size computed dynamically
in a binding expression. I've mucked with measureText(). I even took a stab
at a custom component I sent to the list earlier, that tries to scale any
child to fit, preserving aspect ratio and centering as required. But the
variable length of the text really means that I can't have a reference
size for the whole composition unless I scale or size the text to fit in a
certain area.

Can anyone point me at some useful examples or components. Even just an
example of a label whose font size changes as its text does, and when its
container is resized.

Thanks.


Re: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Howard Fore
On Wed, Oct 8, 2008 at 2:04 PM, Dan Pride [EMAIL PROTECTED] wrote:

 Geez I can set a popup and get the value back with Php or any of a number
 of other languages.
 Seems REALLY absurd that this is this difficult.


Different things are difficult in different languages. That's why they
evolve, to make those difficult things easier and impossible things merely
difficult.

-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
 The Combobox by itself does not really support what
 you're trying to do.

Are you telling me that there is no simply way to have a user pick a value from 
a popup then redisplay that value in the popup if he goes back to the record 
again later?

Is this a joke or a programing language?

Somebody forgot to include an event that says if this record has a value show 
it in the popup?

No you got to be pulling my chain. If you are not then this is a useless joke. 
Its an everyday need.

Dan Pride


--- On Wed, 10/8/08, Battershall, Jeff [EMAIL PROTECTED] wrote:

 From: Battershall, Jeff [EMAIL PROTECTED]
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 1:38 PM
 The Combobox by itself does not really support what
 you're trying to do.
 As Tracy said there is sample code you can draw on to
 extend the
 ComboBox to accept a 'selectedValue' parameter or
 something of the sort,
 which in turn will fire internal logic to determine which
 item in the
 dataProvider matches and to set the selectedIndex
 accordingly. 
 
 The other part of this is using binding.  To have your
 instantiated
 combobox to update its selectedIndex when a value changes
 you need to
 reference a bindable value.  If another code alters that
 value, it will
 then re-fire the internal logic in your custom ComboBox. 
 
 {Bindable]
 private var dp:Array =
 [{data:'foo',label:'foo'},{data:'foo1',label:'foo1'},{data:'foo2',label:
 'foo2'}];
 
 [Bindable]
 private var myVal:String = foo;
 
 local:CustomComboBox dataProvider={dp}
 selectedValue={myVal}/
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 1:23 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] ComboBox in Component won't
 open to Saved
 Value
 
 
 This seems absurdly difficult for so simple a function.
 
 I am trying to save a value from a popup and get it back
 when the list
 is double clicked and the form is represented with a
 different record
 selected. Not exactly rocket science.
 
 I have tried every single event and nada.
 Is there an on Load  Why not? It seems so
 obvious. Creation
 complete only works the first time the form component is
 presented.
 
 The functions are
 
private function closeRolePop(event:Event):void {
ComboBox(event.target).selectedItem.label}; 

private function openRolePop(event:Event):void {
   var i:uint;
   for(i=0; i  arrRoles.length; i++){
   if(arrRoles.getItemAt(i).label ==
 currentPerson.Role){
  rolePop.selectedIndex = i;
   }}}
 
 Help Please this is really getting to me cause it should be
 so simple
 
 
 --- On Wed, 10/8/08, Dan Pride
 [EMAIL PROTECTED] wrote:
 
  From: Dan Pride [EMAIL PROTECTED]
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved 
  Value
  To: flexcoders@yahoogroups.com
  Date: Wednesday, October 8, 2008, 12:38 PM
  Creation complete works the first time but the
 component is
  displayed when you click on a list, and subsequent
  selections are not displayed. I am having trouble
 figuring
  out which on is the correct event.?
  Sorry but I am relatively new at this kind of
 programming.
  Thanks
  Dan
  
  
  --- On Wed, 10/8/08, Tracy Spratt
  [EMAIL PROTECTED] wrote:
  
   From: Tracy Spratt [EMAIL PROTECTED]
   Subject: RE: [flexcoders] ComboBox in Component
  won't open to Saved Value
   To: flexcoders@yahoogroups.com
   Date: Wednesday, October 8, 2008, 11:34 AM
   Why are you doing that in the open
 event?
  Try
   creationComplete
   instead.  Or set it directly without the
 function.  Or
  bind
   selectedIndex to a bindable variable.
   
   Tracy
   

   
   
   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED]
 
   On Behalf Of Dan Pride
   Sent: Wednesday, October 08, 2008 10:57 AM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] ComboBox in Component
  won't
   open to Saved
   Value
   

   
   Thanks for the response. I understand what needs
 to be
  done
   as you
   described but I still have one problem.
   I tried this before.
   
   private function openGenderPop(event:Event):void
 { 
   genderPop.selectedIndex = 1; }
   
   The ComboBox opened to the zero value not the 1.
   When I clicked on the box it opened to have the 1
  value
   preselectect but
   did not present upon opening.
   
   I am referencing it like this and must be missing
 some
  kind
   of kick
   event?
   
   mx:ComboBox id=genderPop
   close=closeGenderPop(event)
   open=openGenderPop(event)
   dataProvider={arrGender}
  x=583.5
   y=89
   width=116 /
   
   Thanks again.
   This board is GREAT !
   Dan Pride
   
   --- On Wed, 10/8/08, Tracy Spratt
  [EMAIL PROTECTED]
   

[flexcoders] Reading sound thru remote cgi-bin generating wav

2008-10-08 Thread Mat Mikul
Hi,

I am trying to play a sound which would be sent through a remote cgi-bin
executable which reads a wav file and writes it to stdout. When I access
that cgi-bin executable through IE, I can save the wav file (even if it
saves it as the same name as cgi-bin executable). However, when I connect to
it using Sound.load(URLRequest(http://xxx/cgi-bin/exec;), I don't hear any
sound despite a progress event saying that bytes are being loaded.

There could be several things going wrong, and I am not able to debug what's
up.

- I want to start playing to sound as soon as a sufficient amount is loaded,
that's why my progress event handler checks if number of bytes loaded is
more than 1MB and if so, it issues Sound.play. Is that correct? Do I need
something special for 'streaming'?

- The cgi-bin executable writes the Content-type: audio/x-wav\n\n first and
then the wav file. That works fine with a browser. Does that mess up
Sound.load though? Should the cgi-bin just send the wav file over? Will
URLRequest or load be smart enough to check the header (RIFF) and know it is
wav?

Any other clues why I may not be able to play the sound? Any place in
FlexBuilder where I can actually see the buffer that has been loaded by
Sound.load()?

Thank you


[flexcoders] Best Flex Graphics Library for me?

2008-10-08 Thread edlueze
An open ended question regarding the best choice in graphics libraries
for Flex...

I'm approaching the stage where I'm going to have to start including
some more sophisticated graphics in my application. Ultimately I need
to develop a flexible tree of linked icons (like an organizational
chart). Each icon will be relatively complex and active (a bitmap will
not work). The icons will initially be developed by graphics designers
who are not Flex-savvy, so I will need to work with a standard vector
format like SVG. The icons need to be joined by lines with arrow-heads
- preferably intelligent lines that flow around the icons.

Degrafa looked like an excellent choice because it looks like it
supports SVG, but Degrafa doesn't offer lines with arrow-heads, let
alone intelligent lines. FXG is emerging in Flex 4 but that is a
standard unknown to all graphics designers. The community has done a
lot of work, but all that code might become obsolete if a standard
emerges.

What's the best choice in graphics libraries for me?



Re: [flexcoders] Re: flex and amfphp

2008-10-08 Thread dnk

Just curious what kind of issues you ran into, and how weborb solved them.
Could you reply to me off list, since this is going OT?

Thanks!

DNK



On 08/10/08 8:39 AM, valdhor [EMAIL PROTECTED] wrote:

  
  
 
 Instead of AMFPHP I would suggest looking into WebORB
 (http://www.themidnightcoders.com/weborb/php/).
 
 I started out with AMFPHP but ran into some problems. These all went
 away once I switched to WebORB.
 
 There are some great tutorials at the site (Just click on the Flex
 Integration tab).
 
 Also this thread may help you out:
 http://tech.groups.yahoo.com/group/flexcoders/message/126783
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
 karthikeyan.sivanantham
 [EMAIL PROTECTED] wrote:
 
  Hi guys,
I'm a flex newbie and I'm trying to use amfphp with flex. Can
  someone suggest a good tutorial on flex and amfphp. I've gone through a
  few links but they just demonstrate a simple app, like a helloworld
  example where data is sent from the server(one way). one of the links
  I've referred is this
  
  http://blogs.adobe.com/mikepotter/Flex%20and%20PHP%20060221.pdf
  
  but even here, data is sent from the server and not to it. I wanna know
  how to send data to the server from the flex frontend using amfphp.
  
  One more question is that, when data is sent using amfphp, should the
  php code be always object oriented?
  
  Cheers,
  Karthik
 
 
  
 



Re: [flexcoders] flex and amfphp

2008-10-08 Thread dnk



On 07/10/08 4:46 PM, karthikeyan.sivanantham
[EMAIL PROTECTED] wrote:

  
  
 
 Hi guys,
  I'm a flex newbie and I'm trying to use amfphp with flex. Can
 someone suggest a good tutorial on flex and amfphp. I've gone through a
 few links but they just demonstrate a simple app, like a helloworld
 example where data is sent from the server(one way). one of the links
 I've referred is this
 
 http://blogs.adobe.com/mikepotter/Flex%20and%20PHP%20060221.pdf
 
 but even here, data is sent from the server and not to it. I wanna know
 how to send data to the server from the flex frontend using amfphp.
 
 One more question is that, when data is sent using amfphp, should the
 php code be always object oriented?
 
 Cheers,
 Karthik
 
 
  
 ---
 
 I had always found that the php ria kit from adobe had a VERY easy to
 understand example for both sending data to and from a Database using AMFPHP.
 
 I would check that out.
 
 DNK
 



[flexcoders] AdvancedDataGridHeaderRenderer loses focus on set dataProvider

2008-10-08 Thread Ryan Gravener
Take a look at this video (sorry the mouse cursor does not appear in it):

http://screencast.com/t/VECik0vjuk

Every time the dataProvider is set the textfield loses focus, and I can't
find a way to restore it.  So essentially on each key stroke the textfield
loses focus, which renders it useless inside the
advanceddatagridheaderrenderer.  I'll provide source if necessary, just
looking for a quick fix if there is one.

Sincerely,
Ryan Gravener
http://twitter.com/ryangravener


RE: [flexcoders] Re: Bad quality for JPEG encoded images ,,***(sample images INSIDE)***

2008-10-08 Thread Gordon Smith
Did you try playing with the 'quality' argument in the constructor?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of semelak1
Sent: Friday, September 26, 2008 1:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Bad quality for JPEG encoded images ,,***(sample 
images INSIDE)***


So, has anybody else experienced similar problems ?? Is there
something wrong in my code ?? How can improve the quality of the
encoded images ??

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Gregor 
Kiddie [EMAIL PROTECTED]
wrote:

 That's a fair point, it might not be public yet.

 Gk.

 Gregor Kiddie
 Senior Developer
 INPS

 Tel: 01382 564343

 Registered address: The Bread Factory, 1a Broughton Street, London
SW8
 3QJ

 Registered Number: 1788577

 Registered in the UK

 Visit our Internet Web site at www.inps.co.uk

 The information in this internet email is confidential and is
intended
 solely for the addressee. Access, copying or re-use of information
in it
 by anyone else is not authorised. Any views or opinions presented
are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact [EMAIL PROTECTED]

 -Original Message-
 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
On
 Behalf Of Tom Chiverton
 Sent: 24 September 2008 16:05
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Re: Bad quality for JPEG encoded images
 ,,***(sample images INSIDE)***

 On Tuesday 23 Sep 2008, Gregor Kiddie wrote:
  There is a compiler that can take C / C++ code and output
Actionscript
  that you might want to take a look at.

 AFAIK there is no public compiler to do this, is there ?




RE: [flexcoders] Re: Bad quality for JPEG encoded images ,,***(sample images INSIDE)***

2008-10-08 Thread Gordon Smith
 There is a compiler that can take C / C++ code and output Actionscript
 that you might want to take a look at.

 it might not be public yet.

As far as I know, this was a technology demo and Adobe hasn't committed to 
productizing it.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gregor 
Kiddie
Sent: Thursday, September 25, 2008 3:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Bad quality for JPEG encoded images ,,***(sample 
images INSIDE)***


That's a fair point, it might not be public yet.

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel: 01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]mailto:is.helpdesk%40inps.co.uk

-Original Message-
From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: 24 September 2008 16:05
To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: Re: [flexcoders] Re: Bad quality for JPEG encoded images
,,***(sample images INSIDE)***

On Tuesday 23 Sep 2008, Gregor Kiddie wrote:
 There is a compiler that can take C / C++ code and output Actionscript
 that you might want to take a look at.

AFAIK there is no public compiler to do this, is there ?



[flexcoders] Access of undefined property of type URLLoader

2008-10-08 Thread anuj181
Hi 
I am simply trying to load external XML file but the builder is not
recognizing one of my variable named urlLoader of type URLLoader. it
is saying Access of undefined property urlLoader, urlRequest and
completeListener. Does anyone has any idea what's going on.

Thanks 

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
  mx:Panel title=Login id=loginPanel 
horizontalScrollPolicy=off verticalScrollPolicy=off
horizontalCenter=1 verticalCenter=1 
mx:Form id=loginForm
mx:FormItem label=Username: id=username
mx:TextInput/
/mx:FormItem
mx:FormItem label=Password: id=password
mx:TextInput/
/mx:FormItem
mx:FormItem label=Domain: id=formitem1

/mx:FormItem
/mx:Form
mx:ControlBar
!-- Use the LinkButton control to change to 
the Register view state. --
mx:LinkButton label=Forgot your password?
id=registerLink
click=currentState='Recover';/
mx:Spacer width=100% id=spacer1/
mx:Button label=Login id=loginButton/
/mx:ControlBar
/mx:Panel

mx:Script
![CDATA[   
import flash.net.*;
import flash.display.*;
import flash.xml.*;
import flash.events.*;

private var xmlData:XML;
var urlLoader:URLLoader;

//Creating XML Loader
var urlRequest:URLRequest=new
URLRequest(LoginAuthenticatedUsers.xml);
urlLoader=new URLLoader();
urlLoader.addEventListener(Event.COMPLETE,completeListener);
urlLoader.load(urlRequest);

private function completeListener(e:Event):void
{
xmlData=new XML(urlLoader.data);
trace(xmlData.toString());
}

]]
/mx:Script

/mx:Application




[flexcoders] Re: Access of undefined property of type URLLoader

2008-10-08 Thread Tim Hoff

No import statement?

-TH

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

 Hi
 I am simply trying to load external XML file but the builder is not
 recognizing one of my variable named urlLoader of type URLLoader. it
 is saying Access of undefined property urlLoader, urlRequest and
 completeListener. Does anyone has any idea what's going on.

 Thanks

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 mx:Panel title=Login id=loginPanel
 horizontalScrollPolicy=off verticalScrollPolicy=off
 horizontalCenter=1 verticalCenter=1
 mx:Form id=loginForm
 mx:FormItem label=Username: id=username
 mx:TextInput/
 /mx:FormItem
 mx:FormItem label=Password: id=password
 mx:TextInput/
 /mx:FormItem
 mx:FormItem label=Domain: id=formitem1
 /mx:FormItem
 /mx:Form
 mx:ControlBar
 !-- Use the LinkButton control to change to
 the Register view state. --
 mx:LinkButton label=Forgot your password?
 id=registerLink
 click=currentState='Recover';/
 mx:Spacer width=100% id=spacer1/
 mx:Button label=Login id=loginButton/
 /mx:ControlBar
 /mx:Panel

 mx:Script
 ![CDATA[
 import flash.net.*;
 import flash.display.*;
 import flash.xml.*;
 import flash.events.*;

 private var xmlData:XML;
 var urlLoader:URLLoader;

 //Creating XML Loader
 var urlRequest:URLRequest=new
 URLRequest(LoginAuthenticatedUsers.xml);
 urlLoader=new URLLoader();
 urlLoader.addEventListener(Event.COMPLETE,completeListener);
 urlLoader.load(urlRequest);

 private function completeListener(e:Event):void
 {
 xmlData=new XML(urlLoader.data);
 trace(xmlData.toString());
 }

 ]]
 /mx:Script

 /mx:Application






Re: [flexcoders] flex and amfphp

2008-10-08 Thread Alan

http://www.amazon.com/Essential-Guide-Source-Flash-Development/dp/1430209933

On Oct 7, 2008, at 7:46 PM, karthikeyan.sivanantham wrote:


Can
someone suggest a good tutorial on flex and amfphp. I




Re: [flexcoders] Re: Access of undefined property of type URLLoader

2008-10-08 Thread anuj sharma
Thanks
I have fixed it


On Wed, Oct 8, 2008 at 4:34 PM, Tim Hoff [EMAIL PROTECTED] wrote:


 No import statement?

 -TH


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 anuj181 [EMAIL PROTECTED] wrote:
 
  Hi
  I am simply trying to load external XML file but the builder is not
  recognizing one of my variable named urlLoader of type URLLoader. it
  is saying Access of undefined property urlLoader, urlRequest and
  completeListener. Does anyone has any idea what's going on.
 
  Thanks
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  mx:Panel title=Login id=loginPanel
  horizontalScrollPolicy=off verticalScrollPolicy=off
  horizontalCenter=1 verticalCenter=1
  mx:Form id=loginForm
  mx:FormItem label=Username: id=username
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Password: id=password
  mx:TextInput/
  /mx:FormItem
  mx:FormItem label=Domain: id=formitem1
  /mx:FormItem
  /mx:Form
  mx:ControlBar
  !-- Use the LinkButton control to change to
  the Register view state. --
  mx:LinkButton label=Forgot your password?
  id=registerLink
  click=currentState='Recover';/
  mx:Spacer width=100% id=spacer1/
  mx:Button label=Login id=loginButton/
  /mx:ControlBar
  /mx:Panel
 
  mx:Script
  ![CDATA[
  import flash.net.*;
  import flash.display.*;
  import flash.xml.*;
  import flash.events.*;
 
  private var xmlData:XML;
  var urlLoader:URLLoader;
 
  //Creating XML Loader
  var urlRequest:URLRequest=new
  URLRequest(LoginAuthenticatedUsers.xml);
  urlLoader=new URLLoader();
  urlLoader.addEventListener(Event.COMPLETE,completeListener);
  urlLoader.load(urlRequest);
 
  private function completeListener(e:Event):void
  {
  xmlData=new XML(urlLoader.data);
  trace(xmlData.toString());
  }
 
  ]]
  /mx:Script
 
  /mx:Application
 

  



[flexcoders] Re: AMFPHP and HierarchicalData

2008-10-08 Thread Amy
--- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote:

 Not with AMFPHP, but I do with WebORB. They should be fairly close.
 
 I use it to create my menubar. I have Menu objects and MenuItem
 objects. Each Menu object can contain MenuItem objects as well as Menu
 objects. With this structure, the Flex menubar can take the entire
 arraycollection as a dataprovider and automatically create my menubar.
 
 Let me know if you would like me to create a small example.

I'd love to see it if you don't mind :-)

Thanks;

Amy



RE: [flexcoders] ComboBox in Component won't open to Saved Value

2008-10-08 Thread Tracy Spratt
Depends on what you mean by simple.  It will just take a few lines of
code.

 

The difficulty lies in knowing which lines.

 

Going ballistic in frustration is never helpful.

 

Take this one step at a time.  Make sure you can call your function when
the pop-up opens.  Make sure you have the value you want to set the
combo box to at that point.

 

You have not shown us much code, so we can't really say what is wrong.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Wednesday, October 08, 2008 4:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox in Component won't open to Saved
Value

 

 The Combobox by itself does not really support what
 you're trying to do.

Are you telling me that there is no simply way to have a user pick a
value from a popup then redisplay that value in the popup if he goes
back to the record again later?

Is this a joke or a programing language?

Somebody forgot to include an event that says if this record has a value
show it in the popup?

No you got to be pulling my chain. If you are not then this is a useless
joke. Its an everyday need.

Dan Pride

--- On Wed, 10/8/08, Battershall, Jeff [EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com  wrote:

 From: Battershall, Jeff [EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com 
 Subject: RE: [flexcoders] ComboBox in Component won't open to Saved
Value
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Date: Wednesday, October 8, 2008, 1:38 PM
 The Combobox by itself does not really support what
 you're trying to do.
 As Tracy said there is sample code you can draw on to
 extend the
 ComboBox to accept a 'selectedValue' parameter or
 something of the sort,
 which in turn will fire internal logic to determine which
 item in the
 dataProvider matches and to set the selectedIndex
 accordingly. 
 
 The other part of this is using binding. To have your
 instantiated
 combobox to update its selectedIndex when a value changes
 you need to
 reference a bindable value. If another code alters that
 value, it will
 then re-fire the internal logic in your custom ComboBox. 
 
 {Bindable]
 private var dp:Array =

[{data:'foo',label:'foo'},{data:'foo1',label:'foo1'},{data:'foo2',label:
 'foo2'}];
 
 [Bindable]
 private var myVal:String = foo;
 
 local:CustomComboBox dataProvider={dp}
 selectedValue={myVal}/
 
 Jeff
 
 -Original Message-
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com ] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 1:23 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: RE: [flexcoders] ComboBox in Component won't
 open to Saved
 Value
 
 
 This seems absurdly difficult for so simple a function.
 
 I am trying to save a value from a popup and get it back
 when the list
 is double clicked and the form is represented with a
 different record
 selected. Not exactly rocket science.
 
 I have tried every single event and nada.
 Is there an on Load  Why not? It seems so
 obvious. Creation
 complete only works the first time the form component is
 presented.
 
 The functions are
 
 private function closeRolePop(event:Event):void {
 ComboBox(event.target).selectedItem.label}; 
 
 private function openRolePop(event:Event):void {
 var i:uint;
 for(i=0; i  arrRoles.length; i++){
 if(arrRoles.getItemAt(i).label ==
 currentPerson.Role){
 rolePop.selectedIndex = i;
 }}}
 
 Help Please this is really getting to me cause it should be
 so simple
 
 
 --- On Wed, 10/8/08, Dan Pride
 [EMAIL PROTECTED] mailto:danielpride%40yahoo.com  wrote:
 
  From: Dan Pride [EMAIL PROTECTED]
mailto:danielpride%40yahoo.com 
  Subject: RE: [flexcoders] ComboBox in Component
 won't open to Saved 
  Value
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Date: Wednesday, October 8, 2008, 12:38 PM
  Creation complete works the first time but the
 component is
  displayed when you click on a list, and subsequent
  selections are not displayed. I am having trouble
 figuring
  out which on is the correct event.?
  Sorry but I am relatively new at this kind of
 programming.
  Thanks
  Dan
  
  
  --- On Wed, 10/8/08, Tracy Spratt
  [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com  wrote:
  
   From: Tracy Spratt [EMAIL PROTECTED]
mailto:tspratt%40lariatinc.com 
   Subject: RE: [flexcoders] ComboBox in Component
  won't open to Saved Value
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
   Date: Wednesday, October 8, 2008, 11:34 AM
   Why are you doing that in the open
 event?
  Try
   creationComplete
   instead. Or set it directly without the
 function. Or
  bind
   selectedIndex to a bindable variable.
   
   Tracy
   
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 

RE: [flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread Tracy Spratt
No, that should not work unless SDActionItem.platform is a reference to
an item in the ComboBox dataProvider.

 

Tracy

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Wednesday, October 08, 2008 12:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox in Component won't open to Saved
Value

 

Tracy

I must be missing something here.

I have a combobox with a dataprovider of an arraycollection that is
returned from a MySQL database. This is populated on creationcomplete.
Once this arrayCollection is populated I make another call to get
specific data. Part of this data is a field that corresponds to an
item in the combobox.

When the second call returns, all I do is:

platformComboBox.selectedItem = SDActionItem.platform;

SDActionItem is the DTO returned from the second call and platform is
one of it's fields that correspond to an item in the combobox.

This works every time and I do not have to loop through the data
provider.

Are you telling me that this should not work?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tracy Spratt [EMAIL PROTECTED] wrote:

 ComboBox.selectedItem will only work if you assign a *reference to an
 item in the ComboBox dataProvider*. This is rarely possible and is not
 in your case.
 
 
 
 What you must do is loop over the items in the CobmoBox.dataProvider
and
 compare the appropriate property's value to the value you want to
match.
 When a match is found, use the loop indes to set the ComboBox's
 selectedIndex. This is simple enough to do in a one-off situation. 
 
 
 
 If you need this often, then you might want to use an extended
ComboBox.
 Making a generic one is a bit tricky, because the Combo Box
dataProvider
 items can have any properties at all. I have an example on
 www.cflex.net http://www.cflex.net/ http://www.cflex.net/  (it
allows you to set the data
 field you want to match) and Ben forta has done one and there are
 others.
 
 
 
 Tracy
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Dan Pride
 Sent: Wednesday, October 08, 2008 10:01 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] ComboBox in Component won't open to Saved Value
 
 
 
 Hi
 I have a ComboBox used as a Popup on a form component.
 It saves fine using the following function
 
 private function closeGenderPop(event:Event):void {
 ComboBox(event.target).selectedItem.label}; 
 
 
 I want to have it display the stored value the next time it is opened.
 I tried this but no luck. 
 
 private function openGenderPop(event:Event):void {
 genderPop.selectedIndex = 1; 
 ComboBox(event.target).selectedItem.label; }
 
 Really appreciate the help
 
 Dan Pride


 



[flexcoders] Using PureMVC on a larger scale application

2008-10-08 Thread Kyle
I have been playing aroung with PureMVC a bit lately and the part that
I still get a bit confused on is how to use the framework in a larger
scale application. In general I find that various pieces of my
application could each use the MVC pattern by themself (for example if
I had a list component, a controlbar, and various other assets, each
of them could easily use the MVC pattern to define their own
functionality). What's confusing to me is how to marry such an
abstraction into a framework such as PureMVC. It would seem a bit
counter-intuitive to include all of these things under one Facade, but
maybe I'm wrong here? 

This question is raised again when I think of structuring out a large
application that contains many different screens each with their own
set of components and functionality (each of which could use the MVC
pattern).. How would you go about laying out such an application using
the MVC framework? 

This may all be completely obvious, and I'm just getting too caught up
in learning the framework to see the answer right in front of me, but
perhaps someone could point me in the right direction?

Thanks!

-Kyle




Re: [flexcoders] Scaling text

2008-10-08 Thread Josh McDonald
Idea:

for target width tw:

 1. Guess a font-size:
 2. Create a label, set text and font, call validateNow();
 3. Label.measuredWidth  tw ? goto 1
 4. label.scaleX = tw / label.width

-Josh

On Thu, Oct 9, 2008 at 4:55 AM, Richard Rodseth [EMAIL PROTECTED] wrote:

  I have a requirement to display some text overlaid on some graphics. The
 catch is that the whole thing must render at different sizes and the length
 of the text is variable (data driven). And of course, the aspect ratio of
 the graphic should be preserved.

 I've dabbled with Degrafa. I've fiddled with font size computed dynamically
 in a binding expression. I've mucked with measureText(). I even took a stab
 at a custom component I sent to the list earlier, that tries to scale any
 child to fit, preserving aspect ratio and centering as required. But the
 variable length of the text really means that I can't have a reference
 size for the whole composition unless I scale or size the text to fit in a
 certain area.

 Can anyone point me at some useful examples or components. Even just an
 example of a label whose font size changes as its text does, and when its
 container is resized.

 Thanks.
 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Best Flex Graphics Library for me?

2008-10-08 Thread Josh McDonald
Degrafa + Mocassin ( http://is.gd/3Kmy ) but you're probably still going to
roll your own arrow heads.

-Josh

On Thu, Oct 9, 2008 at 7:09 AM, edlueze [EMAIL PROTECTED] wrote:

 An open ended question regarding the best choice in graphics libraries
 for Flex...

 I'm approaching the stage where I'm going to have to start including
 some more sophisticated graphics in my application. Ultimately I need
 to develop a flexible tree of linked icons (like an organizational
 chart). Each icon will be relatively complex and active (a bitmap will
 not work). The icons will initially be developed by graphics designers
 who are not Flex-savvy, so I will need to work with a standard vector
 format like SVG. The icons need to be joined by lines with arrow-heads
 - preferably intelligent lines that flow around the icons.

 Degrafa looked like an excellent choice because it looks like it
 supports SVG, but Degrafa doesn't offer lines with arrow-heads, let
 alone intelligent lines. FXG is emerging in Flex 4 but that is a
 standard unknown to all graphics designers. The community has done a
 lot of work, but all that code might become obsolete if a standard
 emerges.

 What's the best choice in graphics libraries for me?


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] How to make a Docking Window Framework/component like Eclipse/InfoDock/JDocking

2008-10-08 Thread Josh McDonald
Mike, I'm very interested in this. Will it be for-pay, or OSS? If it's OSS,
need any help?

-Josh

On Wed, Oct 8, 2008 at 11:37 PM, Michael Schmalle
[EMAIL PROTECTED]wrote:



 Ironically, I am releasing a framework like this in 2 months. Truth be
 told, I have spent 1 1/2 years creating a base framework that made it
 happen.

 Mike




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: How to make a Docking Window Framework/component like Eclipse/InfoDock/JDocking

2008-10-08 Thread Tim Hoff

If it's anything like your components and/or framework Mike, it's going
to rock!  I've found them to be very useful.

-TH

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

 Mike, I'm very interested in this. Will it be for-pay, or OSS? If it's
OSS,
 need any help?

 -Josh

 On Wed, Oct 8, 2008 at 11:37 PM, Michael Schmalle
 [EMAIL PROTECTED]:

 
 
  Ironically, I am releasing a framework like this in 2 months. Truth
be
  told, I have spent 1 1/2 years creating a base framework that made
it
  happen.
 
  Mike
 
 


 --
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.

 http://flex.joshmcdonald.info/

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]






[flexcoders] could not establish connection to java data service from flex client using blazeDS

2008-10-08 Thread venkateswarlu naidu
Hi All,

We have a flex+blazeDS+Java based application, after deploying the application 
in QA env, java data service calls are not happening. When i see the URL log in 
HTTP sniffer tool, the request is getting stopped at URL 
context-root/messagebroker/amf and finally seeing 502 (CANNOT_CONNECT)status.

The same application is working fine in DEV environment.

Our QA environment: secured, HTTPS, running behind firewalls and clustered.

Why the flex client can not connect to the java data services?

Any help is greatly appreciated.

 Thanks  Regards,
Venkat.



  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


RE: [flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
My problem is there seems to be no way to kick the event to change the value. 
Here is the code, all of it.
It can be seen in action at 

http://www.archaeolibrary.com/Gezer/Staff.html

Note: I have view source enabled and all files should be represented.

Creation complete works on the first time only. Select another staff member 
with a double click and the creation complete does not go.
This is about as basic as data entry client server type programming (a very 
huge market possiblity here),... gets. 

This is not a flame. This is a valid point. This to me brings into question the 
entire language. I have spent months learning this stuff to start running into 
things so basic as this I wonder if I have been wise in my time investment. It 
tells me the creators are off on their own gig, and meeting simple data needs 
of clients like showing you what you picked the last time you were here, are 
not on their minds. That means this is probably not an isolated incidence. Is 
this really the product to use for data entry over the web? or should I be 
headed into Javascript and Ajax like everybody else. What else am I going to 
run into and how much of a pain is this going to be? Anyway here is the code, 
thank you for your time. A simple event to say NEW DISPLAY DO IT AGAIN just 
seems so damn basic.




--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:

 From: Tracy Spratt [EMAIL PROTECTED]
 Subject: RE: [flexcoders] Re: ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 9:22 PM
 No, that should not work unless SDActionItem.platform is a
 reference to
 an item in the ComboBox dataProvider.
 
  
 
 Tracy
 
  
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of valdhor
 Sent: Wednesday, October 08, 2008 12:31 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox in Component won't
 open to Saved
 Value
 
  
 
 Tracy
 
 I must be missing something here.
 
 I have a combobox with a dataprovider of an arraycollection
 that is
 returned from a MySQL database. This is populated on
 creationcomplete.
 Once this arrayCollection is populated I make another call
 to get
 specific data. Part of this data is a field that
 corresponds to an
 item in the combobox.
 
 When the second call returns, all I do is:
 
 platformComboBox.selectedItem = SDActionItem.platform;
 
 SDActionItem is the DTO returned from the second call and
 platform is
 one of it's fields that correspond to an item in the
 combobox.
 
 This works every time and I do not have to loop through the
 data
 provider.
 
 Are you telling me that this should not work?
 
 --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 , Tracy Spratt [EMAIL PROTECTED] wrote:
 
  ComboBox.selectedItem will only work if you assign a
 *reference to an
  item in the ComboBox dataProvider*. This is rarely
 possible and is not
  in your case.
  
  
  
  What you must do is loop over the items in the
 CobmoBox.dataProvider
 and
  compare the appropriate property's value to the
 value you want to
 match.
  When a match is found, use the loop indes to set the
 ComboBox's
  selectedIndex. This is simple enough to do in a
 one-off situation. 
  
  
  
  If you need this often, then you might want to use an
 extended
 ComboBox.
  Making a generic one is a bit tricky, because the
 Combo Box
 dataProvider
  items can have any properties at all. I have an
 example on
  www.cflex.net http://www.cflex.net/
 http://www.cflex.net/  (it
 allows you to set the data
  field you want to match) and Ben forta has done one
 and there are
  others.
  
  
  
  Tracy
  
  
  
  
  
  From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Dan Pride
  Sent: Wednesday, October 08, 2008 10:01 AM
  To: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] ComboBox in Component won't
 open to Saved Value
  
  
  
  Hi
  I have a ComboBox used as a Popup on a form component.
  It saves fine using the following function
  
  private function closeGenderPop(event:Event):void {
  ComboBox(event.target).selectedItem.label}; 
  
  
  I want to have it display the stored value the next
 time it is opened.
  I tried this but no luck. 
  
  private function openGenderPop(event:Event):void {
  genderPop.selectedIndex = 1; 
  ComboBox(event.target).selectedItem.label; }
  
  Really appreciate the help
  
  Dan Pride
 


  


[flexcoders] Collapse branch in Tree changes selection but does not trigger CHANGE event

2008-10-08 Thread Mark Carter

I think this is a bug, but am not sure.

If I have a tree with a child item selected and then I collapse/close the
branch containing that selection, the selection is automatically changed to
the item I collapsed but no CHANGE event is triggered.

Is this a bug?
-- 
View this message in context: 
http://www.nabble.com/Collapse-branch-in-Tree-changes-selection-but-does-not-trigger-CHANGE-event-tp19891670p19891670.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dan Pride
View source at
http://www.archaeolibrary.com/Gezer/srcview/
very nice feature by the way.
Dan


--- On Wed, 10/8/08, Dan Pride [EMAIL PROTECTED] wrote:

 From: Dan Pride [EMAIL PROTECTED]
 Subject: RE: [flexcoders] Re: ComboBox in Component won't open to Saved Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 11:19 PM
 My problem is there seems to be no way to kick the event to
 change the value. Here is the code, all of it.
 It can be seen in action at 
 
 http://www.archaeolibrary.com/Gezer/Staff.html
 
 Note: I have view source enabled and all files should be
 represented.
 
 Creation complete works on the first time only. Select
 another staff member with a double click and the creation
 complete does not go.
 This is about as basic as data entry client server type
 programming (a very huge market possiblity here),... gets. 
 
 This is not a flame. This is a valid point. This to me
 brings into question the entire language. I have spent
 months learning this stuff to start running into things so
 basic as this I wonder if I have been wise in my time
 investment. It tells me the creators are off on their own
 gig, and meeting simple data needs of clients like showing
 you what you picked the last time you were here, are not on
 their minds. That means this is probably not an isolated
 incidence. Is this really the product to use for data entry
 over the web? or should I be headed into Javascript and Ajax
 like everybody else. What else am I going to run into and
 how much of a pain is this going to be? Anyway here is the
 code, thank you for your time. A simple event to say
 NEW DISPLAY DO IT AGAIN just seems so damn
 basic.
 
 
 
 
 --- On Wed, 10/8/08, Tracy Spratt
 [EMAIL PROTECTED] wrote:
 
  From: Tracy Spratt [EMAIL PROTECTED]
  Subject: RE: [flexcoders] Re: ComboBox in Component
 won't open to Saved Value
  To: flexcoders@yahoogroups.com
  Date: Wednesday, October 8, 2008, 9:22 PM
  No, that should not work unless SDActionItem.platform
 is a
  reference to
  an item in the ComboBox dataProvider.
  
   
  
  Tracy
  
   
  
   
  
   
  
  
  
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
  Behalf Of valdhor
  Sent: Wednesday, October 08, 2008 12:31 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: ComboBox in Component
 won't
  open to Saved
  Value
  
   
  
  Tracy
  
  I must be missing something here.
  
  I have a combobox with a dataprovider of an
 arraycollection
  that is
  returned from a MySQL database. This is populated on
  creationcomplete.
  Once this arrayCollection is populated I make another
 call
  to get
  specific data. Part of this data is a field that
  corresponds to an
  item in the combobox.
  
  When the second call returns, all I do is:
  
  platformComboBox.selectedItem = SDActionItem.platform;
  
  SDActionItem is the DTO returned from the second call
 and
  platform is
  one of it's fields that correspond to an item in
 the
  combobox.
  
  This works every time and I do not have to loop
 through the
  data
  provider.
  
  Are you telling me that this should not work?
  
  --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  , Tracy Spratt [EMAIL PROTECTED] wrote:
  
   ComboBox.selectedItem will only work if you
 assign a
  *reference to an
   item in the ComboBox dataProvider*. This is
 rarely
  possible and is not
   in your case.
   
   
   
   What you must do is loop over the items in the
  CobmoBox.dataProvider
  and
   compare the appropriate property's value to
 the
  value you want to
  match.
   When a match is found, use the loop indes to set
 the
  ComboBox's
   selectedIndex. This is simple enough to do in a
  one-off situation. 
   
   
   
   If you need this often, then you might want to
 use an
  extended
  ComboBox.
   Making a generic one is a bit tricky, because the
  Combo Box
  dataProvider
   items can have any properties at all. I have an
  example on
   www.cflex.net http://www.cflex.net/
  http://www.cflex.net/  (it
  allows you to set the data
   field you want to match) and Ben forta has done
 one
  and there are
   others.
   
   
   
   Tracy
   
   
   
   
   
   From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of Dan Pride
   Sent: Wednesday, October 08, 2008 10:01 AM
   To: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] ComboBox in Component
 won't
  open to Saved Value
   
   
   
   Hi
   I have a ComboBox used as a Popup on a form
 component.
   It saves fine using the following function
   
   private function closeGenderPop(event:Event):void
 {
   ComboBox(event.target).selectedItem.label}; 
   
   
   I want to have it display the stored value the
 next
  time it is opened.
   I tried this but no luck. 
   
   private function 

[flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread Dmitri Girski
Nope, this won't work. 

Next call creates new instances which don't correspond to the
instances from the first call.
You have to loop through the dataProvider, find the corresponding item
(by label, id, whatever) and say 
Combo.selectedItem = ArrayCollection(Combo.dataProvider).getItemAt(i)

this will work.

Cheers,
Dmitri.



 I have a combobox with a dataprovider of an arraycollection that is
 returned from a MySQL database. This is populated on creationcomplete.
 Once this arrayCollection is populated I make another call to get
 specific data. Part of this data is a field that corresponds to an
 item in the combobox.
 
 When the second call returns, all I do is:
 
 platformComboBox.selectedItem = SDActionItem.platform;
 
 SDActionItem is the DTO returned from the second call and platform is
 one of it's fields that correspond to an item in the combobox.
 
 This works every time and I do not have to loop through the data
provider.
 
 Are you telling me that this should not work?






Re: [flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread Josh McDonald
Dan, what you're trying to do is a simple thing, but I think you're
complicating it.

Assuming you're using numbers or strings in your combobox and data, simply
bind selectedItem={ currentRecord.myValue }

If you're using something more complicated, say the dataprovider for the CB
is an array of objects and the record data has an ID in it, put this in your
popup:

[Bindable]
private var currentRecordOption : ComboOption;

function set currentRecord(value : newRecord) : void
{
  //Do whatever you normally do

  currentRecordOption = null;

  for each (var option : ComboOption in myValidOptions)
  {
if (option.id == value.optionId)
{
   currentRecordOption = option;
   break;
}
  }
}

ComboBox dataprovider={myValidOptions}
selectedItem={currentRecordOption}/

Now, various parts of this can be optimised such as the searching, etc. But
this *will* work.

-Josh


On Thu, Oct 9, 2008 at 1:19 PM, Dan Pride [EMAIL PROTECTED] wrote:

 My problem is there seems to be no way to kick the event to change the
 value. Here is the code, all of it.
 It can be seen in action at

 http://www.archaeolibrary.com/Gezer/Staff.html

 Note: I have view source enabled and all files should be represented.

 Creation complete works on the first time only. Select another staff member
 with a double click and the creation complete does not go.
 This is about as basic as data entry client server type programming (a very
 huge market possiblity here),... gets.

 This is not a flame. This is a valid point. This to me brings into question
 the entire language. I have spent months learning this stuff to start
 running into things so basic as this I wonder if I have been wise in my time
 investment. It tells me the creators are off on their own gig, and meeting
 simple data needs of clients like showing you what you picked the last time
 you were here, are not on their minds. That means this is probably not an
 isolated incidence. Is this really the product to use for data entry over
 the web? or should I be headed into Javascript and Ajax like everybody else.
 What else am I going to run into and how much of a pain is this going to be?
 Anyway here is the code, thank you for your time. A simple event to say NEW
 DISPLAY DO IT AGAIN just seems so damn basic.




 --- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:

  From: Tracy Spratt [EMAIL PROTECTED]
  Subject: RE: [flexcoders] Re: ComboBox in Component won't open to Saved
 Value
  To: flexcoders@yahoogroups.com
  Date: Wednesday, October 8, 2008, 9:22 PM
  No, that should not work unless SDActionItem.platform is a
  reference to
  an item in the ComboBox dataProvider.
 
 
 
  Tracy
 
 
 
 
 
 
 
  
 
  From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
  Behalf Of valdhor
  Sent: Wednesday, October 08, 2008 12:31 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: ComboBox in Component won't
  open to Saved
  Value
 
 
 
  Tracy
 
  I must be missing something here.
 
  I have a combobox with a dataprovider of an arraycollection
  that is
  returned from a MySQL database. This is populated on
  creationcomplete.
  Once this arrayCollection is populated I make another call
  to get
  specific data. Part of this data is a field that
  corresponds to an
  item in the combobox.
 
  When the second call returns, all I do is:
 
  platformComboBox.selectedItem = SDActionItem.platform;
 
  SDActionItem is the DTO returned from the second call and
  platform is
  one of it's fields that correspond to an item in the
  combobox.
 
  This works every time and I do not have to loop through the
  data
  provider.
 
  Are you telling me that this should not work?
 
  --- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com
  , Tracy Spratt [EMAIL PROTECTED] wrote:
  
   ComboBox.selectedItem will only work if you assign a
  *reference to an
   item in the ComboBox dataProvider*. This is rarely
  possible and is not
   in your case.
  
  
  
   What you must do is loop over the items in the
  CobmoBox.dataProvider
  and
   compare the appropriate property's value to the
  value you want to
  match.
   When a match is found, use the loop indes to set the
  ComboBox's
   selectedIndex. This is simple enough to do in a
  one-off situation.
  
  
  
   If you need this often, then you might want to use an
  extended
  ComboBox.
   Making a generic one is a bit tricky, because the
  Combo Box
  dataProvider
   items can have any properties at all. I have an
  example on
   www.cflex.net http://www.cflex.net/
  http://www.cflex.net/  (it
  allows you to set the data
   field you want to match) and Ben forta has done one
  and there are
   others.
  
  
  
   Tracy
  
  
  
   
  
   From: flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
  

RE: [flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread Paul Kukiel
Take a look at Ben Forta's extended comboBox:

 

http://www.forta.com/blog/index.cfm/2006/11/22/Flex-ComboBox-With-selectedVa
lue-Support

 

Paul

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, 9 October 2008 2:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: ComboBox in Component won't open to Saved
Value

 

Dan, what you're trying to do is a simple thing, but I think you're
complicating it.

Assuming you're using numbers or strings in your combobox and data, simply
bind selectedItem={ currentRecord.myValue }

If you're using something more complicated, say the dataprovider for the CB
is an array of objects and the record data has an ID in it, put this in your
popup:

[Bindable]
private var currentRecordOption : ComboOption;

function set currentRecord(value : newRecord) : void 
{
  //Do whatever you normally do

  currentRecordOption = null;

  for each (var option : ComboOption in myValidOptions)
  {
if (option.id == value.optionId)
{
   currentRecordOption = option;
   break;
}
  }
}

ComboBox dataprovider={myValidOptions}
selectedItem={currentRecordOption}/

Now, various parts of this can be optimised such as the searching, etc. But
this *will* work.
   
-Josh
  

On Thu, Oct 9, 2008 at 1:19 PM, Dan Pride [EMAIL PROTECTED] wrote:

My problem is there seems to be no way to kick the event to change the
value. Here is the code, all of it.
It can be seen in action at

http://www.archaeolibrary.com/Gezer/Staff.html

Note: I have view source enabled and all files should be represented.

Creation complete works on the first time only. Select another staff member
with a double click and the creation complete does not go.
This is about as basic as data entry client server type programming (a very
huge market possiblity here),... gets.

This is not a flame. This is a valid point. This to me brings into question
the entire language. I have spent months learning this stuff to start
running into things so basic as this I wonder if I have been wise in my time
investment. It tells me the creators are off on their own gig, and meeting
simple data needs of clients like showing you what you picked the last time
you were here, are not on their minds. That means this is probably not an
isolated incidence. Is this really the product to use for data entry over
the web? or should I be headed into Javascript and Ajax like everybody else.
What else am I going to run into and how much of a pain is this going to be?
Anyway here is the code, thank you for your time. A simple event to say NEW
DISPLAY DO IT AGAIN just seems so damn basic.





--- On Wed, 10/8/08, Tracy Spratt [EMAIL PROTECTED] wrote:

 From: Tracy Spratt [EMAIL PROTECTED]

 Subject: RE: [flexcoders] Re: ComboBox in Component won't open to Saved
Value
 To: flexcoders@yahoogroups.com
 Date: Wednesday, October 8, 2008, 9:22 PM

 No, that should not work unless SDActionItem.platform is a
 reference to
 an item in the ComboBox dataProvider.



 Tracy







 

 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
 Behalf Of valdhor
 Sent: Wednesday, October 08, 2008 12:31 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ComboBox in Component won't
 open to Saved
 Value



 Tracy

 I must be missing something here.

 I have a combobox with a dataprovider of an arraycollection
 that is
 returned from a MySQL database. This is populated on
 creationcomplete.
 Once this arrayCollection is populated I make another call
 to get
 specific data. Part of this data is a field that
 corresponds to an
 item in the combobox.

 When the second call returns, all I do is:

 platformComboBox.selectedItem = SDActionItem.platform;

 SDActionItem is the DTO returned from the second call and
 platform is
 one of it's fields that correspond to an item in the
 combobox.

 This works every time and I do not have to loop through the
 data
 provider.

 Are you telling me that this should not work?

 --- In flexcoders@yahoogroups.com

 mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%2540yahoogroups.com 

 , Tracy Spratt [EMAIL PROTECTED] wrote:
 
  ComboBox.selectedItem will only work if you assign a
 *reference to an
  item in the ComboBox dataProvider*. This is rarely
 possible and is not
  in your case.
 
 
 
  What you must do is loop over the items in the
 CobmoBox.dataProvider
 and
  compare the appropriate property's value to the
 value you want to
 match.
  When a match is found, use the loop indes to set the
 ComboBox's
  selectedIndex. This is simple enough to do in a
 one-off situation.
 
 
 
  If you need this often, then you might want to use an
 extended
 ComboBox.
  Making a generic one is a bit tricky, because the
 Combo Box
 dataProvider
  items can have any properties at all. I have an
 example on
  www.cflex.net http://www.cflex.net/
 http://www.cflex.net/  (it
 allows you to set the data
  field you want to 

Re: [flexcoders] Re: ComboBox in Component won't open to Saved Value

2008-10-08 Thread shaun
Dan Pride wrote:
 My problem is there seems to be no way to kick the event to change
 the value. Here is the code, all of it. It can be seen in action at

[snip]

Change:
public var currentPerson:Object = new Object();

To:
private  var _currentPerson:Object = new Object();
[Bindable] public funciton set currentPerson(p:Object) void{
_currentPerson = p;

openRolePop(null);
}

public funtion get currentPerson():Object{
return _currentPerson;
}

- shaun


[flexcoders] Re: How to make an RPC call secure

2008-10-08 Thread Abdul Razak PM
Hi Tom Chiverton,
Thanks for the reply
Please provide some links to study more about it. Also What's the
possibility of Hacking our code if we didn't make it secure?
It's very helpful to get it's theoretical explanations too.
Razak

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

 On Wednesday 08 Oct 2008, Abdul Razak PM wrote:
Yes Both flex and Java are my codes. Flex using Cairngorm framework
  for Java uses spring and tomcat
 
 TLS with client certificates then. Probably using digest
authentication, if 
 you can.
 
 -- 
 Tom Chiverton
 Helping to carefully deliver user-centric end-to-end granular
prospective 
 networks
 
 
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.