RE: [flexcoders] Flex App w/ColdFusion to search PDF content?

2006-12-19 Thread Shannon Hicks
You will want to create a Verity collection of your PDF files... It's all
built-in to ColdFuion, no need for COM or anything else.
 
Look at the livedocs, they should set you on your way.
 
Shan

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Monday, December 18, 2006 11:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex App w/ColdFusion to search PDF content?



Hello All,

I was wondering if it was possible, for ColdFusion to scan a
subdirectory of PDF files, read in each file, and then perform a
Full-Text search - bringing back a list of files containing the search
criteria?

I know ColdFusion has some type of built-in PDF capabilities, but I
think that is to just create PDF files correct?

I suppose, for anything more elaborate, a COM Object would have to be
created within the ColdFusion process, launching an instance of the PDF
Reader (assuming it's installed on the Web Server), and then have the
Reader communicate back with the ColdFusion Server...

Can anybody point me in the right direction, as how to accomplish
something like this?

Thanks in advance, for any advice you can throw my way.

Mike


 


Re: [flexcoders] An architectural blueprint for Flex applications

2006-12-19 Thread Ralf Bokelberg

Please have a look at Adobe's Cairngorm framework. It serves very well for
all kinds of projects.
Cheers,
Ralf.

On 12/19/06, devisbalsemin [EMAIL PROTECTED] wrote:


  Hi,
We are making some test and study again, as blueprint we have read
this good article
http://www.adobe.com/devnet/flex/articles/blueprint.html.
We wish to understand if you have some other documentation as
blueprint or do you know other resource where we can get a lot of
documentation.
I wish to create here a great discussion and suggestion about Flex 2
blueprint architectural. We are agree with Joe Berkovitz
... Flex 2 s a great product, very easy to make applications go...
in short: Does the dream of easy Flex development crack up and fall
apart when assaulted by real-world complexity, change, and schedule
pressure? Well, it needn't—if you pay attention to the right details.
A modest up-front investment in structuring your application
thoughtfully will pay off later, big time, in the face of these
challenges.

Thanks a lot of yours suggestion..
Devis

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany


[flexcoders] Re: An architectural blueprint for Flex applications

2006-12-19 Thread devisbalsemin
yes we looked Cairngorm, but we think Cairngorm framework is an
alternative (good)...
We are not searching a fremework... but Flex Design Pattern for
implement An architectural..
Thanks for your rply...



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

 Please have a look at Adobe's Cairngorm framework. It serves very
well for
 all kinds of projects.
 Cheers,
 Ralf.
 
 On 12/19/06, devisbalsemin [EMAIL PROTECTED] wrote:
 
Hi,
  We are making some test and study again, as blueprint we have read
  this good article
  http://www.adobe.com/devnet/flex/articles/blueprint.html.
  We wish to understand if you have some other documentation as
  blueprint or do you know other resource where we can get a lot of
  documentation.
  I wish to create here a great discussion and suggestion about Flex 2
  blueprint architectural. We are agree with Joe Berkovitz
  ... Flex 2 s a great product, very easy to make applications go...
  in short: Does the dream of easy Flex development crack up and fall
  apart when assaulted by real-world complexity, change, and schedule
  pressure? Well, it needn't—if you pay attention to the right details.
  A modest up-front investment in structuring your application
  thoughtfully will pay off later, big time, in the face of these
  challenges.
  
  Thanks a lot of yours suggestion..
  Devis
 
   
 
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany





[flexcoders] Load swc instead of swf

2006-12-19 Thread ssundke
Hi

I was using a .swf file generated wrappers to show a flash file on the 
web. Due to some recent changes, I wanted to explore changing this to 
a .swc file since I need some resources (help files, etc) and they are 
better bundled in the swc file. Do html wrappers work with swc? I was 
able to generate the swc file (with a library.swf and catalog.xml) but 
done know how to use it with the wrapper (the .js files seem to use 
the .swf files)

What am i missing?

- Saba



[flexcoders] Flex 2 HTTPService: reading /writing browser cookies

2006-12-19 Thread Andriy Panas
Dear flexcoders,

Where can I find out more information regarding the support of reading /writing 
browser cookies by Flex 2 HTTPService component?

Christophe  Coenraets had written some blog entry regarding this matter back in 
2004 http://tinyurl.com/ykgo52, 
but currently his blog host is down and the neither demo cannot be started nor 
code reviewer.

It looks like from my testing that browser cookies are fully exposed to 
HTTPService calls without a need of extra work, but I want to receive an 
confirmation that HTTPService officialy supports browser cookies.

-
With best regards,
Andriy Panas 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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] calling a constructor after object created

2006-12-19 Thread Giles Roadnight
Hi all

 

I have 2 classes - Category and MovieData.

 

Category holds an array of MovieDatas that are initially created by passing
the movie name, id and description to it in the constructor. It is possible
that the desc is not initially known so I also want to pass the same data to
the constructor after the object has been created. This is the code:

 

for(i = 0; i  catStruct.movies.length; i++)

{

var movieStruct:Object = catStruct.movies[i];

trace(movie ID:  + movieStruct.id);

if(movieArray[movieStruct.id] == null){

currentMovie = movieArray[movieStruct.id] = new
MovieData(movieStruct.id,movieStruct.name,movieStruct.desc);

} else {

currentMovie = movieArray[movieStruct.id];

 
currentMovie.MovieData(movieStruct.id,movieStruct.name,movieStruct.desc);

}

this.movies.push(currentMovie);

}

 

This is pretty much identical to the code that adds categories to an array
of categories. If the category does not exist a new one is created, if it
does exist the same data is passed to the constructor.

 

For the above code though I get error on the 9th line:

 

currentMovie.MovieData(movieStruct.id,movieStruct.name,movieStruct.desc);

 

Call to a possibly undefined method MovieData through a reference with
static type components:MovieData

 

Is this the compiler getting it wrong or aren't I supposed to be able to do
this. If so why does the similar Category code work:

 

if(catArray[categoryID] != null){

catArray[categoryID] = new
Category(catStruct,catArray,movieArray,null,passedParams,1);

} else {

 
catArray[categoryID].Category(catStruct,catArray,movieArray,null,passedParam
s,1);

}

 

thanks

 

Giles Roadnight

 



Re: [flexcoders] how to start editing a datagridcolumn programmatically

2006-12-19 Thread hank williams

The way I handled this was to put a little button in the actual
itemrenderer.

The itemRenderer contains a little button and then, to the right of it, the
text of the cell. When you click the button it actually opens up a small
floating window which is where you do the editing.

When I wrote this code I was a younger flex coder and couldnt get certain
aspects of it right regarding having the editing happen in the cell. But it
actually worked out better from a UI perspective because I can give the user
the opportunity to easily save or cancel. The reason I put the button in the
cell is that as far as I know, there is no good way to indicate that a
specific column is selected. All I can do is select a row. so if you have
multiple columns and only want to edit one, your options are that clicking
on the cell puts you in edting mode, or clicking on a small piece of the
cell (a button) causes you to go into editing mode.

Regards
Hank

On 12/19/06, Pan Troglodytes [EMAIL PROTECTED] wrote:


How can I create a button click event that will start editing of the
selected grid column?  I want to have a rename button for clarity (for
those users who won't guess to click on the item to rename it).

--
Jason 



[flexcoders] Data driven Combo boxes and selectedValues

2006-12-19 Thread stephen50232
Hi,

I'm trying to work on a combo box which is populated by a ColdFusion
Component method, this method returns a list of users names and ID's.
In my combo box I want to display the user's names, but use the ID as
data field (so if some selects a user's name and saves the form, the
ID is inserted into the database).

What I want to do is when a user selects a record from a datagrid,
this populates a details form, and the user name is selected in the
combo box of names, by the userID, but displaying the user's name. 

I want to use this method of passing in an ID to a combo box and the
combo box displaying the correct name/value for that ID. One problem I
am having is setting the ID as a data field and displaying the name as
a label.

Can anyone suggest how I could do this?

Thanks

Stephen



[flexcoders] Flex contractors needed

2006-12-19 Thread pdflibpilot
We have several Flex projects and are looking to increase our
production capacity with several qualified Flex developers. Please,
only inidividual developers ready to work directly need to contact us.
All work may be performed through telecommute and could possibly lead
to full-time hire. 

alQemy is located mid-way between Atlanta and Charlotte is an Adobe
Solutions Network member and provides RIA solutions to enterprise and
mid-sized businesses alike. More details available upon request.
Please send your qualifications and hourly rate requirements to
[EMAIL PROTECTED] Again - individual developers only please. 



[flexcoders] Adobe site extremely slow

2006-12-19 Thread Ralf Bokelberg
Whenever i try to watch some webpage on the Adobe site it is extremely
slow. Be it the flex documentation, be it the flex exchange or be it
the new flex cookbook. I mean, how can Google search the whole
internet in a split of a second, and Adobe needs like 30 seconds to
open a webpage?
I wonder, if i'm the only one who encounters that. Or is it a
german/european problem?

I guess, it would be very helpful to sell flex to developers, if Adobe
could make the flex documentation site faster. At least i'm always
very delighted about speed and completeness of information, when i
have to look something up at MSDN.

Cheers,
Ralf.

-- 
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany


Re: [flexcoders] Re: FlexPrintJob PrintJob

2006-12-19 Thread Samuel Reuben

I'll file an enhancement request since the flash player now supports
Orientation, why not FlexPrintJob.

For now, if you are using FlexPrintJob the only option is to manually select
it when you print.

Thanks,
-sam

On 12/18/06, Uday M. Shankar [EMAIL PROTECTED] wrote:


  Just to make it more clear -
Though PrintJobOptions allows me to set orientation and works with
PrintJob, I am unable to set PrintJobOptions to FlexPrintJob. Thats
where I am stuck. Anybody? Any ideas?

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Uday M.
Shankar [EMAIL PROTECTED]
wrote:

 Hi,
 How do I set orientation with FlexPrintJob? FlexPrintJob is a wrapper
 on PrintJob. But, all properties of PrintJob are in FlexPrintJob. The
 PrintJob supports PrintJobOptions. And using PrintJobOptions allows me
 to set orientation. Has anybody done this?


 



[flexcoders] Re: Using an ID String as an Object Reference

2006-12-19 Thread Paul Whitelock
Thanks, that worked great! 

You commented though that this technique is not a good idea. What
happens in the code is that the component dispatches an event to the
main application which then makes an asynchronous RemoteObject call to
a function on ColdFusion. ColdFusion processes the data sent by the
component and then returns some data. I was passing the id of the
component to ColdFusion (which then passes it back with the result
data) so that when I receive a ResultEvent I know which component to
route the returned data to. Is there a better way to architect this?

Paul


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

 this[componentIdName].reload(), although I think sending component names
 from ColdFusion is a terrible idea.
 
 Patrick



Re: [flexcoders] Re: Setting dataprovider to itemrenderer in datatagrid.

2006-12-19 Thread Jorge Tejada

mx:ComboBox dataProvider={outerDocument.selectData}

On 12/18/06, Tero Pikala [EMAIL PROTECTED] wrote:


  Hi

This really doesn't work - that was the reason I originally asked the
question!).

It gives error message Access of undefined property selectData

After reading docs more carefully I noticed that I can use
mx:ComboBox dataProvider={parentApplication.selectData} which
seems to make sense for me.

Thanks

Tero Pikala

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
ben.clinkinbeard
[EMAIL PROTECTED] wrote:

 mx:ComboBox dataProvider={selectData}



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tero
Pikala tero.pikala@ wrote:
 
  I'd like to know if following code uses proper way to set
dataprovider.
 
  It works but should I do things some other way (maybe injecting
  dataprovider after application has initialized?)
 
  Thanks!
 
 
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
 
  mx:ArrayCollection id=myData
  mx:source
  mx:Object name=Tero Pikala location=London, U.K.
  phone=1234 /
  /mx:source
  /mx:ArrayCollection
 
  mx:ArrayCollection id=selectData
  mx:source
  mx:Object label=test1 data=1/
  mx:Object label=test2 data=2/
  mx:Object label=test3 data=3/
  /mx:source
  /mx:ArrayCollection
 
 
  mx:DataGrid dataProvider={myData}
  mx:columns
  mx:DataGridColumn dataField=name /
  mx:DataGridColumn dataField=location /
  mx:DataGridColumn dataField=phone
  mx:itemRenderer
  mx:Component
  mx:ComboBox
  dataProvider={mx.core.Application.application.selectData}
  /mx:ComboBox
  /mx:Component
  /mx:itemRenderer
  /mx:DataGridColumn
  /mx:columns
  /mx:DataGrid
  /mx:Application
 






[flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-12-19 Thread ben.clinkinbeard
Yep. Tom, Lach is correct, and here is an explanation with a bit more
detail.

If your DataGrid's dataProvider has 100 items, but it is only big
enough to display 10 at any given time, the DataGrid only actually
draws 10 items, in order to maximize performance. When you scroll the
DataGrid there aren't any new items being drawn, it is simply swapping
the data properties between the already drawn items. So scrolling down
one row means that the piece of data for the second item is switched
to be the data for the first item, the second item receives the third
item's data, and so on and so on.

I've written a couple of articles on my site about itemRenderers and
some key concepts around them in case you're interested.

HTH,
Ben
http://www.returnundefined.com/



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

 Sorry if this is out of left field (and wrong), as I haven't read  
 through the rest of the thread, but is it the case that dataChange is  
 fired during scrolling because the item renderers are reused by the  
 list control with different items in the dataProvider?
 
 Cheers,
 Lach
 
 
 On 19/12/2006, at 11:08 AM, Tom Lee wrote:
 
  as is so often the case, we have no answer to the question at hand  
  (why does a dataChange event fire when the datagrid is scrolled?)





[flexcoders] Handling serverside error on assemblers method (with data Management services)

2006-12-19 Thread fabio_sebastiano
Hi, i would like to know how i can intercept and throw server side
errors and show the message on client side.
I'm using several assemblers and, actually, i just catch the error
thrown by the method and throw a generic DataServiceException in
this way:

 public void deleteItem(Object prevVers){
try{
tributiService.deleteSchedaImposta((SchedaImposta)prevVers);
}catch (Exception e){
e.printStackTrace();
throw new DataServiceException();
}
}

But, when an error occur on that method, the fault.string is empty.
Any suggestion?

Thank you very much



[flexcoders] problem in passing array to javascript using FABridge

2006-12-19 Thread thiru vengadam

Hi All

I have a problem passing array to javascript using FABridge, If I am passing
array objects to javascript it is converted to string, I like to know how to
pass array objects to javascript from flex

Thanks  Regards
Thiru


[flexcoders] making simultaneous javascript calls from flex using FABridge

2006-12-19 Thread thiru vengadam

Hi Friends

I am working on communicating between flex and JavaScript, when I am trying
to call 2 JavaScript method simultaneous my first call fails, I like to know
how to make 2 calls at a same time, or is there any way we can make 2 calls
to JavaScript.

Regards
Thiru


[flexcoders] Flex-Ajax Bridge calls

2006-12-19 Thread thiru vengadam

Hi Friends

making simultaneous javascript calls from flex using FABridge

I am working on communicating between flex and JavaScript, when I am trying
to call 2 JavaScript method simultaneous my first call fails, I like to know
how to make 2 calls at a same time, or is there any way we can make 2 calls
to JavaScript.


Regards
Thiru


[flexcoders] problem in passing array to javascript using FABridge

2006-12-19 Thread thiru vengadam

Hi All

I have a problem passing array to javascript using FABridge, If I am passing
array objects to javascript it is converted to string, I like to know how to
pass array objects to javascript from flex

Thanks  Regards
Thiru


Re: [flexcoders] Flex and Maven2 managed project

2006-12-19 Thread Oliver Lietz
Am Montag, 18. Dezember 2006 08:19 schrieb Aldo Bucchi:
 Yeah Maven!,

 I'm a little surprised on the apparent low interest in the flex-maven
 front.

I'm not surprised ;). Most people will start with a shiny frontend which sells 
the application. Project (build/change/livecycle) management is not as sexy 
as eye candy for most of them.

 I am also flirting with the idea of building a plugin, but not 
 yet... not yet... tomorrow perhaps

:), same here

 I would really like to hear about Adobe's plans with respect to Maven.
 It would be a very good way to make things easier for new developers (
 by leveraging something that's already built for you ) and to make
 things more attractive to veterans.
 Really, maven is one of those little toys I really really love.

 My wishlist on this one ( thinking java here ):

 * mavenized standardization of folder structures for flex applications
 ( all flavors: standalone, fds, etc )
 ** src/main/flex, src/test/flex?

Did that already for my projects without integrating testing. Works fine - 
same layout (SVN+MVN) for Flex and Java projects.

 * maven plugins:
 ** flexunit ( or asunit )
 ** mxmlc
 ** asdoc
 *** including complex features (eg. auto compile and deploy examples)
 * definitions and workflow for continuous integration deployoment (
 cruise control and continuum hopefully )

 and then some extra would-be-nice-to-have plugins:
 * auto generate fds stubs/skeletons ( vos, assemblers, dataproviders,
 dataservices, etc ) for hibernate, JDO, other ORMs
 * springified fds
 ...?

Nice, indeed. I hope someone at Adobe is already working on Mavenization of 
Flex.

O.








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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: seeding arraycollection from a web service

2006-12-19 Thread ben.clinkinbeard
It depends on the structure of the data returned by your WS. Most of
them contain a top-level object above any array-like structure, so you
may need to do something like this:

mx:ArrayCollection id=myProvider
source={wsAlice.findUsers.lastResult.nameObject}/

HTH,
Ben


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

 Hello all,
 
 I believe I'm following the docs precisely (the Binding a
 result to an ArrayCollection object doc in the Flex IDE
 Help), but my app isn't working. What I'd like to do is map
 the results of a web service call into an ArrayCollection, but
 the ArrayCollection comes up empty when I try. 
 
 My app (below) demonstrates this problem, but unfortunately
 all of my data is password protected and I can't open it up.
 Here's what you'd see if you had access: When you enter an id
 into the box, the grid marked Uses the data provider
 directly, the Name data is populated as it should be. But the
 one that is supposed to be populated by my ArrayCollection is
 empty. 
 
 Can anyone comment on how to map the data from a web service
 into an ArrayCollection?
 
 -Kaylea
 
 ?xml version=1.0 encoding=utf-8 ?
 
 
 mx:Application xmlns:af=*
 xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
 width=960
 
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.utils.ArrayUtil;
 import flash.events.*;
 
 public function
 submitFindUserHandler(event:MouseEvent):void {
   var temp:String = new String();
   temp = lookup.text;
   wsAlice.findUsers.send(temp, );
 }
 ]]
 /mx:Script
 
   mx:WebService  id=wsAlice showBusyCursor=true
 destination=wsAlice

wsdl=https://parakeet.uchicago.edu:8443/ReservationsWebService/ReservationsWebService?wsdl;
 useProxy=false
   mx:operation name=findUsers
   mx:request
   userName/userName
   name/name
   /mx:request
   /mx:operation
   /mx:WebService
   mx:ArrayCollection id=myProvider

 source={mx.utils.ArrayUtil.toArray(wsAlice.findUsers.lastResult)}/
   
   mx:Panel x=95 y=69 width=646 height=435
 layout=absolute
   mx:DataGrid x=10 y=206
 dataProvider={wsAlice.findUsers.lastResult}
   mx:columns
   mx:DataGridColumn headerText=First Name
 dataField=firstName/
   mx:DataGridColumn headerText=Last Name
 dataField=lastName/
   /mx:columns
   /mx:DataGrid
   mx:DataGrid x=345 y=206 dataProvider={myProvider}
   mx:columns
   mx:DataGridColumn headerText=First Name
 dataField=firstName/
   mx:DataGridColumn headerText=Last Name
 dataField=lastName/
   
   /mx:columns
   /mx:DataGrid
   mx:TextInput x=92 y=96 id=lookup/
   mx:Text x=260 y=98 text=CNetID/
   mx:Button x=92 y=126 label=Look It Up
 click=submitFindUserHandler(event)/
   mx:Text x=21 y=180 text=Uses the data provider directly/
   mx:Text x=324 y=180 text=Uses a variable copy of the
 data provider/
   /mx:Panel
   
 /mx:Application





Re: [flexcoders] Re: FlexPrintJob PrintJob

2006-12-19 Thread Mike Weiland
Orientation is read only, it can't set the orientation, it's still up to the 
user to change it in the print dialog.

Mike Weiland

Original Message ---
I'll file an enhancement request since the flash player now supports
Orientation, why not FlexPrintJob.

For now, if you are using FlexPrintJob the only option is to manually select
it when you print.

Thanks,
-sam

On 12/18/06, Uday M. Shankar [EMAIL PROTECTED] wrote:

   Just to make it more clear -
 Though PrintJobOptions allows me to set orientation and works with
 PrintJob, I am unable to set PrintJobOptions to FlexPrintJob. Thats
 where I am stuck. Anybody? Any ideas?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Uday M.
 Shankar [EMAIL PROTECTED]
 wrote:
 
  Hi,
  How do I set orientation with FlexPrintJob? FlexPrintJob is a wrapper
  on PrintJob. But, all properties of PrintJob are in FlexPrintJob. The
  PrintJob supports PrintJobOptions. And using PrintJobOptions allows me
  to set orientation. Has anybody done this?
 

  




Re: [flexcoders] Re: An architectural blueprint for Flex applications

2006-12-19 Thread Oliver Lietz
Am Dienstag, 19. Dezember 2006 09:53 schrieb devisbalsemin:
 yes we looked Cairngorm, but we think Cairngorm framework is an
 alternative (good)...
 We are not searching a fremework... but Flex Design Pattern for
 implement An architectural..
 Thanks for your rply...

There are no Flex Design Patterns but Design Patterns. Design Patterns are 
language independent.

Search for MVP, MVC, Application/Presenter Model and Event-based programming.
Most examples are for Smalltalk and Java, but you can adapt them for AS/MXML.

You will find a lot of useful information and links on this two pages:
http://www.martinfowler.com/articles/enterprisePatterns.html
http://java.sun.com/blueprints/corej2eepatterns/Patterns/

O.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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: Form-based auth on Websphere

2006-12-19 Thread baardos
Hi Dimitrios,

Content of the config is pretty straight forward. There are 3 roles,
each one for accessing a separate set of functionality provided by
external applications.

This is how the web.xml security constraint looks like:

security-constraint
display-nameProtect App/display-name
web-resource-collection
web-resource-nameCore Application/web-resource-name
url-pattern/app/*/url-pattern
url-pattern/messagebroker/*/url-pattern
http-methodDELETE/http-method
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-nameapp1users/role-name
role-nameapp2users/role-name
role-nameapp3users/role-name
/auth-constraint
/security-constraint

login-config  
auth-methodFORM/auth-method 
form-login-config 
   
form-login-page/login/SecuritySandpitLogin.html/form-login-page 
   
form-error-page/login/SecuritySandpitLogin.html/form-error-page 
/form-login-config
/login-config 

security-role
role-nameapp1users/role-name
/security-role
security-role
role-nameapp2users/role-name
/security-role
security-role
role-nameapp3users/role-name
/security-role


The services-config.xml specifies channels and security constraints in
the following way:

?xml version=1.0 encoding=UTF-8?
services-config
services
service-include file-path=remoting-config.xml/
/services

security
login-command
class=flex.messaging.security.WebSphereLoginCommand server=WebSphere/
!-- Uncomment the correct app server
login-command
class=flex.messaging.security.JRunLoginCommand server=JRun/
login-command
class=flex.messaging.security.WeblogicLoginCommand server=Weblogic/
login-command
class=flex.messaging.security.TomcatLoginCommand server=Tomcat/
--   
security-constraint id=app1-constraint
auth-methodFORM/auth-method
roles
roleapp1users/role
/roles
   /security-constraint

security-constraint id=app2-constraint
auth-methodFORM/auth-method
roles
roleapp2users/role
/roles
   /security-constraint

   security-constraint id=app3-constraint
auth-methodFORM/auth-method
roles
roleapp3users/role
/roles
   /security-constraint

   security-constraint id=login-constraint
auth-methodFORM/auth-method
roles
roleapp1users/role
roleapp2users/role
roleapp3users/role
/roles
   /security-constraint

/security


channels
channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition

channel-definition id=amf-polling
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf-polling;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds10/polling-interval-seconds
/properties
/channel-definition
/channels

logging
target class=flex.messaging.log.ConsoleTarget level=debug
properties
prefix[Flex] /prefix
includeDatefalse/includeDate
includeTimetrue/includeTime
includeLevelfalse/includeLevel
includeCategoryfalse/includeCategory
/properties
 /target
/logging

system
redeploy
enabledtrue/enabled
watch-interval20/watch-interval
   
watch-file{context.root}/WEB-INF/flex/remoting-config.xml/watch-file
   
watch-file{context.root}/WEB-INF/flex/services-config.xml/watch-file
touch-file{context.root}/WEB-INF/web.xml/touch-file
/redeploy
/system

/services-config

The destinations are just like below:

destination id=app1-default
properties


[flexcoders] Secure RTMP on Websphere 5.1 and 5.1.1

2006-12-19 Thread baardos
Hi,

I've been trying to setup secure RTMP channel and the problem is that
a cosumer in the Flex client is timed out when it tries to subscribe.
I cannot see a subscibe message in the logs - for sure it is there
received by the server when I use unsecured RTMP. It seems like the
client was sending a request to a wrong location or it was ignored by
the server.

I've noticed one small thing there. RTMP on Websphere 5.1 and 5.1.1
works without setting up the Message Worker mentioned in the
documentation. Is it WAS 6.0 specific only? Is it by any chance
required by secured RTMP?

I would be grateful for any help.

Cheers,
Bartek 







[flexcoders] Re: Amfphp with AMF3 support: testers wanted

2006-12-19 Thread Jamie O
Hey,

Much like a virgin learning to navigate the salacious curves of his
first partner, I've tried putting it everywhere and had little
success. Typo's aside, I've managed to resolve the on-save error with
the FDS version by putting the destination in the remoting-config.xml. 

Now, when I load the .mxml in the browser I get a Error: Cannot
assign operations into an RPC Service (endpointdestination) at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::setProperty()
at com.post.mailbox.business::Services/::_WebService1_i() error message.

I think for the time being I'll un-FDS my project but this is
obviously not an optimal solution and one that I'm sure many are going
to run into down the road. Hopefully Patrick's efforts in bringing FDS
suppport to AMFPHP will resolve this quirk.

Jamie

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

 Jamie,
 
 You can try putting the the adapter in the remoting-config.xml. 
Leave the channel in the services-config.xml.  ColdFusion's default
remoting services-config.xml puts them all in one file, and thats what
I end up doing for my non FDS stuff.
 
 One thing I did notice in terms of the Cairngorm stuff is the line
of code that says:
 service = ServiceLocator.getInstance().getService(AMFPHPDestination)
 
 should read:
 service = ServiceLocator.getInstance().getService(roAMFPHPService)
 
 Hope that helps,
 
 Renaun
 




RE: [flexcoders] Data driven Combo boxes and selectedValues

2006-12-19 Thread Tero Pikala
Hi

 

Ben Forta blogged about related things: 

 

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

 

and following link in his blog is what should help you (it sure did help
me!) 

 

http://www.tristanhauser.com/flex/ExtendedComboBox.mxml

 

Just copy that to your project and use it instead of regular combo box. 

 

Hope this helps

 

 

Tero Pikala

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stephen50232
Sent: 19 December 2006 12:16
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data driven Combo boxes and selectedValues

 

Hi,

I'm trying to work on a combo box which is populated by a ColdFusion
Component method, this method returns a list of users names and ID's.
In my combo box I want to display the user's names, but use the ID as
data field (so if some selects a user's name and saves the form, the
ID is inserted into the database).

What I want to do is when a user selects a record from a datagrid,
this populates a details form, and the user name is selected in the
combo box of names, by the userID, but displaying the user's name. 

I want to use this method of passing in an ID to a combo box and the
combo box displaying the correct name/value for that ID. One problem I
am having is setting the ID as a data field and displaying the name as
a label.

Can anyone suggest how I could do this?

Thanks

Stephen

 



[flexcoders] repeater and style

2006-12-19 Thread bghoward3
hi

is there a way to remove the vertical gap between itmes when usiing a 
repeater, i see about a 10 pixel space between item list vertically

id like to remove it completely

thanks for any info



[flexcoders] Re: SQL Insert operation fails silently

2006-12-19 Thread nall_daniel
No one has any thoughts or suggestions on this?  I read another post
in CFlex describing the same problem but no solution there either. 
Has anyone else experienced this?

Dan




RE: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when dataProvider is updated?

2006-12-19 Thread Tom Lee
Thanks guys, I suspected that's how it worked - makes a lot of sense.  It'd
be cool if DataGrid had a creationPolicy property like other components do.
Then you could adjust this behavior if you wanted to.  BTW, nice site, Ben!!


 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, December 19, 2006 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How do I reset itemRenderer inside DataGrid when
dataProvider is updated?

 

Yep. Tom, Lach is correct, and here is an explanation with a bit more
detail.

If your DataGrid's dataProvider has 100 items, but it is only big
enough to display 10 at any given time, the DataGrid only actually
draws 10 items, in order to maximize performance. When you scroll the
DataGrid there aren't any new items being drawn, it is simply swapping
the data properties between the already drawn items. So scrolling down
one row means that the piece of data for the second item is switched
to be the data for the first item, the second item receives the third
item's data, and so on and so on.

I've written a couple of articles on my site about itemRenderers and
some key concepts around them in case you're interested.

HTH,
Ben
http://www.returnun http://www.returnundefined.com/ defined.com/

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
Lachlan Cotter [EMAIL PROTECTED] wrote:

 Sorry if this is out of left field (and wrong), as I haven't read 
 through the rest of the thread, but is it the case that dataChange is 
 fired during scrolling because the item renderers are reused by the 
 list control with different items in the dataProvider?
 
 Cheers,
 Lach
 
 
 On 19/12/2006, at 11:08 AM, Tom Lee wrote:
 
  as is so often the case, we have no answer to the question at hand 
  (why does a dataChange event fire when the datagrid is scrolled?)


 



RE: [flexcoders] Flex App w/ColdFusion to search PDF content?

2006-12-19 Thread Brian Holmes

Take a look at CFCollection, CFIndex and CFSearch. You create a verity
collection using CFCollection, Index it with CFIndex and then you can
search against with CFSearch. You'll have to look at Verity collections
to maximize pdf searching. Usually you'd set up a scheduled task to
refresh the collection on a daily or semi daily basis. Hope that helps.

B...
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Monday, December 18, 2006 10:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex App w/ColdFusion to search PDF content?

Hello All,

I was wondering if it was possible, for ColdFusion to scan a
subdirectory of PDF files, read in each file, and then perform a
Full-Text search - bringing back a list of files containing the search
criteria?

I know ColdFusion has some type of built-in PDF capabilities, but I
think that is to just create PDF files correct?

I suppose, for anything more elaborate, a COM Object would have to be
created within the ColdFusion process, launching an instance of the PDF
Reader (assuming it's installed on the Web Server), and then have the
Reader communicate back with the ColdFusion Server...

Can anybody point me in the right direction, as how to accomplish
something like this?

Thanks in advance, for any advice you can throw my way.

Mike


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


[flexcoders] Re: Ctrl+Enter causes line break in TextInput in IE!

2006-12-19 Thread Sergey Kovalyov
Run this application in Internet Explorer:

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
width=100%
height=100%
horizontalAlign=center
verticalAlign=middle

mx:TextInput /

/mx:Application

Then set focus on TextInput instance and write something, then click
Ctrl+Enter. TextInput acts almost like TextArea. New line is created.

Sergey.

On 12/18/06, Sergey Kovalyov [EMAIL PROTECTED] wrote:
 Hi All!

 Pressing Ctrl+Enter causes line break in TextInput in IE! How to fix
 this bug without subclassing TextInput?

 Sergey.


RE: [flexcoders] making simultaneous javascript calls from flex using FABridge

2006-12-19 Thread Tom Lee
Hi Thiru,

 

I haven't used the Flex/Ajax bridge.  However, I have done a lot of work
with Flash/JavaScript communication.  One thing I've learned is that if you
make multiple calls too rapidly, they have a tendency to fail at random in
certain browsers.  If possible, I would suggest that you combine your two
JavaScript calls into one call, or put some delay between them.

 

-tom

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thiru vengadam
Sent: Tuesday, December 19, 2006 3:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] making simultaneous javascript calls from flex using
FABridge

 

Hi Friends

 

I am working on communicating between flex and JavaScript, when I am trying
to call 2 JavaScript method simultaneous my first call fails, I like to know
how to make 2 calls at a same time, or is there any way we can make 2 calls
to JavaScript. 

 

 Regards 

Thiru

 



RE: [flexcoders] Flex App w/ColdFusion to search PDF content?

2006-12-19 Thread Mike Anderson
Thank you Sharon and Brian - I will definitely check this out right
away.

Your help is most appreciated :)

Mike 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Holmes
Sent: Tuesday, December 19, 2006 10:21 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex App w/ColdFusion to search PDF content?


Take a look at CFCollection, CFIndex and CFSearch. You create a verity
collection using CFCollection, Index it with CFIndex and then you can
search against with CFSearch. You'll have to look at Verity collections
to maximize pdf searching. Usually you'd set up a scheduled task to
refresh the collection on a daily or semi daily basis. Hope that helps.

B...
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Monday, December 18, 2006 10:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex App w/ColdFusion to search PDF content?

Hello All,

I was wondering if it was possible, for ColdFusion to scan a
subdirectory of PDF files, read in each file, and then perform a
Full-Text search - bringing back a list of files containing the search
criteria?

I know ColdFusion has some type of built-in PDF capabilities, but I
think that is to just create PDF files correct?

I suppose, for anything more elaborate, a COM Object would have to be
created within the ColdFusion process, launching an instance of the PDF
Reader (assuming it's installed on the Web Server), and then have the
Reader communicate back with the ColdFusion Server...

Can anybody point me in the right direction, as how to accomplish
something like this?

Thanks in advance, for any advice you can throw my way.

Mike


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





***
The information in this e-mail is confidential and intended solely for
the individual or entity to whom it is addressed.  If you have received
this e-mail in error please notify the sender by return e-mail delete
this e-mail and refrain from any disclosure or action based on the
information.
***


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





[flexcoders] Re: Amfphp with AMF3 support: testers wanted

2006-12-19 Thread Jamie O
I've never been so happy to realize I made such a stupid mistake! The
subsequent error was related to a web service that I had somehow put
an 'endpointdestination' reference instead of a 'destination'. 

Splitting the pieces of the example services-config.xml as I
previously posted does work quite well with FDS / cairngorm. Thank you
so much guys!

Jamie

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

 Hey,
 
 Much like a virgin learning to navigate the salacious curves of his
 first partner, I've tried putting it everywhere and had little
 success. Typo's aside, I've managed to resolve the on-save error with
 the FDS version by putting the destination in the remoting-config.xml. 
 
 Now, when I load the .mxml in the browser I get a Error: Cannot
 assign operations into an RPC Service (endpointdestination) at

mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::setProperty()
 at com.post.mailbox.business::Services/::_WebService1_i() error
message.
 
 I think for the time being I'll un-FDS my project but this is
 obviously not an optimal solution and one that I'm sure many are going
 to run into down the road. Hopefully Patrick's efforts in bringing FDS
 suppport to AMFPHP will resolve this quirk.
 
 Jamie
 
 --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote:
 
  Jamie,
  
  You can try putting the the adapter in the remoting-config.xml. 
 Leave the channel in the services-config.xml.  ColdFusion's default
 remoting services-config.xml puts them all in one file, and thats what
 I end up doing for my non FDS stuff.
  
  One thing I did notice in terms of the Cairngorm stuff is the line
 of code that says:
  service = ServiceLocator.getInstance().getService(AMFPHPDestination)
  
  should read:
  service = ServiceLocator.getInstance().getService(roAMFPHPService)
  
  Hope that helps,
  
  Renaun
 





[flexcoders] Re: 3D Charts for Flex 2

2006-12-19 Thread sanjaypmg
Ya, I am interested.


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

 I'd like to gauge flexcoders' interest in collaborating on an
 open-source project to build 3D Charts for Flex 2.  Of particular
 interest to me are Multiscapes and 3D Scatterplots.  Before going
 through the trouble of setting up a sourceforge project, I wanted to
 see if anyone has interest or need in this area and also if there are
 developers with relevant experience that would be willing to devote
 some time to benefit the community.





[flexcoders] Re: Spell Checker

2006-12-19 Thread sanjaypmg
Hi Guys,

I have developed spell checker functionality in Flex 1.5. I have 
developed in flex and integrated it with coldfusion. to develop this 
spellchecker component, I have used Java's Jazzy which i available 
on net.

I have developed the same functionality which provided by MSWord.

you can use this Java Jazzy open source dictionary to develop this 
functionily in flex 2.

Thanks
Sanjay

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

 I've seen the Component on the Flex Exchange, and it's not going 
to 
 meet my needs, primarily because my app won't always have an 
internet 
 connection to use the Google API. Also, I need the custom 
dictionary 
 to be in my DB so users have access to it regardless of what PC 
they 
 are using.
 
 So, I'm asking for some advice and ideas on creating my own Spell 
 Check feature using PHP and MySQL.
 
 I've been thinking about this in theory, and here are my initial 
 questions where I would like feedback.
 
 Do I call a remoteObject after every keystroke to compare against 
a 
 database table of words or do I wait until all the fields are 
filled 
 out and then have the user click a button to Spell Check the 
fields? 
 Maybe both?
 
 How efficient is this going to be with say 100,000 words in the 
word 
 list to check against?
 
 What about integrating a PHP spell checking function?
 
 How do I loop backward until I find a space so I am only checking 
the 
 last word?
 
 How to allow the user to add words not in the standard dictionary 
to 
 their custom table, from where they are in the application?
 
 How do I then set the style of the last word to red underline, 
change 
 the text color, or some other visual representation to note an 
 incorrect word?
 
 If using a Spell Check button, I'd like to change the tab color to 
a 
 different color, if there are spelling mistakes in fields on that 
 tab. I'd also like to highlight fields where there are spelling 
 mistakes.





RE: [flexcoders] Load swc instead of swf

2006-12-19 Thread Roger Gonzalez
SWC files are compile-time only.  A HTML wrapper wouldn't know what to
do with it.
 
In theory, you could write an unzip implementation in Actionscript, load
a SWC as raw data, decompress it, extract its bits, and then send those
bits around to AS or JS or whatever, but realistically, you're not going
to do that.  :-)
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of ssundke
Sent: Tuesday, December 19, 2006 1:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Load swc instead of swf



Hi

I was using a .swf file generated wrappers to show a flash file
on the 
web. Due to some recent changes, I wanted to explore changing
this to 
a .swc file since I need some resources (help files, etc) and
they are 
better bundled in the swc file. Do html wrappers work with swc?
I was 
able to generate the swc file (with a library.swf and
catalog.xml) but 
done know how to use it with the wrapper (the .js files seem to
use 
the .swf files)

What am i missing?

- Saba



 



[flexcoders] Flex Vs Ajax

2006-12-19 Thread sanjaypmg
Hi All,

Can anyone tell me Flex Advantages over Ajax and Vise-Versa.

And a comparision table, in which, The different functionality, 
components available and enviornment supported by them.

Pls do let me know.

Thanks,
SS



RE: [flexcoders] Data driven Combo boxes and selectedValues

2006-12-19 Thread Dimitrios Gianninas
Attached is what u need... enjoy!
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
stephen50232
Sent: Tuesday, December 19, 2006 7:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data driven Combo boxes and selectedValues



Hi,

I'm trying to work on a combo box which is populated by a ColdFusion
Component method, this method returns a list of users names and ID's.
In my combo box I want to display the user's names, but use the ID as
data field (so if some selects a user's name and saves the form, the
ID is inserted into the database).

What I want to do is when a user selects a record from a datagrid,
this populates a details form, and the user name is selected in the
combo box of names, by the userID, but displaying the user's name. 

I want to use this method of passing in an ID to a combo box and the
combo box displaying the correct name/value for that ID. One problem I
am having is setting the ID as a data field and displaying the name as
a label.

Can anyone suggest how I could do this?

Thanks

Stephen



 

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

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



ListUtils.as
Description: ListUtils.as


[flexcoders] Re: bug: creationpolicy=all screws up grid column widths

2006-12-19 Thread Pan Troglodytes

Aside: Whoever decided a limit of 2000 characters was appropriate for the
Flex Request/Bug Report Form should really rethink it.

On 12/19/06, Pan Troglodytes [EMAIL PROTECTED] wrote:


In the following code, there are two tab navigators with two pages of grid
each.  All the grids are coded identically.  They each have two columns, the
first of which has a fixed width of 50 and the second with no fixed width.
The bug is that when you click on the second tab on the first tab navigator,
the grid does not obey the width setting for the first column.  In the
second tab navigator, it does.  The difference is that the first has
creationPolicy=all.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:TabNavigator width=300 height=200 creationPolicy=all
 mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
  mx:TabNavigator width=300 height=299
mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
/mx:Application


--
Jason





--
Jason


RE: [flexcoders] Flex Vs Ajax

2006-12-19 Thread Ian Skinner
Can anyone tell me Flex Advantages over Ajax and Vise-Versa.

 

The one that I know of is that a full Flex implementation has the capability to 
PUSH as well as PULL data, while Ajax only has the ability to PULL.  Probably, 
most of the time, pulling is fine and can get the job done.  But when one 
really wants to push, they want to push.

-
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-

C code. C code run. Run code run. Please!
- Cynthia Dunning

 

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 


---BeginMessage---
Hi All,

Can anyone tell me Flex Advantages over Ajax and Vise-Versa.

And a comparision table, in which, The different functionality, 
components available and enviornment supported by them.

Pls do let me know.

Thanks,
SS



 
---End Message---


[flexcoders] bug: creationpolicy=all screws up grid column widths

2006-12-19 Thread Pan Troglodytes

In the following code, there are two tab navigators with two pages of grid
each.  All the grids are coded identically.  They each have two columns, the
first of which has a fixed width of 50 and the second with no fixed width.
The bug is that when you click on the second tab on the first tab navigator,
the grid does not obey the width setting for the first column.  In the
second tab navigator, it does.  The difference is that the first has
creationPolicy=all.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:TabNavigator width=300 height=200 creationPolicy=all
   mx:Canvas label=Tab1
 mx:DataGrid width=100% height=100%
   mx:columns
 mx:DataGridColumn headerText=Name width=50 dataField=name/
 mx:DataGridColumn headerText=Value dataField=value/
   /mx:columns
 /mx:DataGrid
   /mx:Canvas
   mx:Canvas label=Tab2
 mx:DataGrid width=100% height=100%
   mx:columns
 mx:DataGridColumn headerText=Name width=50 dataField=name/

 mx:DataGridColumn headerText=Value dataField=value/
   /mx:columns
 /mx:DataGrid
   /mx:Canvas
 /mx:TabNavigator
 mx:TabNavigator width=300 height=299
   mx:Canvas label=Tab1
 mx:DataGrid width=100% height=100%
   mx:columns
 mx:DataGridColumn headerText=Name width=50 dataField=name/

 mx:DataGridColumn headerText=Value dataField=value/
   /mx:columns
 /mx:DataGrid
   /mx:Canvas
   mx:Canvas label=Tab2
 mx:DataGrid width=100% height=100%
   mx:columns
 mx:DataGridColumn headerText=Name width=50 dataField=name/

 mx:DataGridColumn headerText=Value dataField=value/
   /mx:columns
 /mx:DataGrid
   /mx:Canvas
 /mx:TabNavigator
/mx:Application


--
Jason


RE: [flexcoders] Flex Vs Ajax

2006-12-19 Thread Ben Lucyk
Hi SS,
 
This topic has been much talked about: 
 
http://ansiguy.blogspot.com/2006/08/flex-vs-ajax-which-one-is-better-and
.html 
 
http://www.flexsearch.org/index.shtml?cx=017079146949617508304%3Ama9avcq
0-ngq=flex+vs+ajaxsa=Searchcof=FORID%3A9#1189
 
http://blogs.flexsearch.org/index.shtml?cx=017079146949617508304%3A5jhb9
aarm4ccof=FORID%3A9q=flex%20vs%20ajax#994
 
;)
 
HTH,
Ben Lucyk
http://esria.com  
p 1.877.TRY.ESRIA ext 718
c 1.408.489.3913
f  1.877.828.4436
[EMAIL PROTECTED]
 
 
 
 
 
 
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Tuesday, December 19, 2006 12:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Vs Ajax
 
Hi All,

Can anyone tell me Flex Advantages over Ajax and Vise-Versa.

And a comparision table, in which, The different functionality, 
components available and enviornment supported by them.

Pls do let me know.

Thanks,
SS
 


image001.gif
Description: image001.gif


[flexcoders] Flex 2 Compilation problem

2006-12-19 Thread sanjaypmg
Hi,

I am facing a strange problem while compling flex mxml file.

I code and compile my mxml file in flex builder thereafter when I 
place that SWF in my project's folder and open my JSP file which 
contains my SWF, It show some RO error, SOME_RO destination not 
found.

If I put mxml in my project folder and put the followin URL in browser:

http://localhost:8080/flexnjspproject/flexapplication.mxml

It also make SWF in the same folder where MXML lies. thereafter when I 
call the JSP, It works fine without any error.

I couldnt make out wht could be the reason behind it.

Can anyone tell me abt this?

I am using JBOSS.

Thanks,
SS



Re: [flexcoders] Flex Vs Ajax

2006-12-19 Thread Carlos Rovira

Sacalability, Maintainability and OOP programing model, could be 3 great
adventages over AJAX

others could say more things to the huge list of adventages...

On 12/19/06, Ian Skinner [EMAIL PROTECTED] wrote:


   Can anyone tell me Flex Advantages over Ajax and Vise-Versa.



The one that I know of is that a full Flex implementation has the
capability to PUSH as well as PULL data, while Ajax only has the ability to
PULL. Probably, most of the time, pulling is fine and can get the job done.
But when one really wants to push, they want to push.

-
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-

C code. C code run. Run code run. Please!
- Cynthia Dunning


 Confidentiality Notice: This message including any attachments is for the
sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender and delete any copies of this message.

 



-- Forwarded message --
From: sanjaypmg [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Date: Tue, 19 Dec 2006 09:31:34 -0800
Subject: [flexcoders] Flex Vs Ajax

Hi All,

Can anyone tell me Flex Advantages over Ajax and Vise-Versa.

And a comparision table, in which, The different functionality,
components available and enviornment supported by them.

Pls do let me know.

Thanks,
SS






--
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com


[flexcoders] Re: Flex Vs Ajax

2006-12-19 Thread sanjaypmg
Thank Ian,

Thanks Ben

Thanks a lot.

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

 Hi SS,
  
 This topic has been much talked about: 
  
 http://ansiguy.blogspot.com/2006/08/flex-vs-ajax-which-one-is-
better-and
 .html 
  
 http://www.flexsearch.org/index.shtml?cx=017079146949617508304%
3Ama9avcq
 0-ngq=flex+vs+ajaxsa=Searchcof=FORID%3A9#1189
  
 http://blogs.flexsearch.org/index.shtml?cx=017079146949617508304%
3A5jhb9
 aarm4ccof=FORID%3A9q=flex%20vs%20ajax#994
  
 ;)
  
 HTH,
 Ben Lucyk
 http://esria.com  
 p 1.877.TRY.ESRIA ext 718
 c 1.408.489.3913
 f  1.877.828.4436
 [EMAIL PROTECTED]
  
  
  
  
  
  
  
  
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of sanjaypmg
 Sent: Tuesday, December 19, 2006 12:32 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Vs Ajax
  
 Hi All,
 
 Can anyone tell me Flex Advantages over Ajax and Vise-Versa.
 
 And a comparision table, in which, The different functionality, 
 components available and enviornment supported by them.
 
 Pls do let me know.
 
 Thanks,
 SS





Re: [flexcoders] Flex Vs Ajax

2006-12-19 Thread Rachel Maxim

There are lots of reasons which are probably covered in the links others
suggested, but it depends on your project and resources too.
I chose Flex over Ajax also to avoid the cross-browser issues (Ajax =
JavaScript = lots of cross browser compatibility issues and workarounds). Of
course you still need the Flash Plugin, but it's easier to get someone to
install or upgrade a plugin than to switch or update a browser.
Personally I also found Flex easier to learn than Ajax techniques, although
that probably depends on your comfort level with JavaScript vs ActionScript.
The FlexBuilder IDE helps the learning curve too.
I think you will find that even with all the Ajax libraries out there, Flex
is still a more rapid UI development option than Ajax.
-Rachel

On 12/19/06, sanjaypmg [EMAIL PROTECTED] wrote:


Hi All,

Can anyone tell me Flex Advantages over Ajax and Vise-Versa.

And a comparision table, in which, The different functionality,
components available and enviornment supported by them.

Pls do let me know.

Thanks,
SS



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






[flexcoders] Re: Call Document Style WebService in Flex 2

2006-12-19 Thread rd_grimes

Thanks Ben for responding to my inquiry.

I spent some more time trying to get this right and got it working and
here's what I can document for fellow consumers of Web Services via Flex
2. The following consumes web services that use document style wsdl's,
and without using FDS.



import mx.rpc.soap.WebService;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;

public var sessionID:String = new String('');
public var authorized:Boolean = new Boolean(false);

// Login user
public function login(event:flash.events.Event):void
{
// create login object with userID and Password
// properties to be passed to the web service
var login:Object = new Object();
login.UserID = userID_txt.text.toUpperCase();
login.Password = password_txt.text.toUpperCase();

// set up web service
var ws:WebService = new mx.rpc.soap.WebService();
ws.useProxy = false;
ws.LoginOperation.addEventListener(result, loginResultHandler);
ws.addEventListener(fault,  loginFaultHandler);
ws.loadWSDL('https://secure.mydomain.com/Login.wsdl');
ws.LoginOperation(login);
}

public function loginResultHandler(event:ResultEvent):void
{
var xmlDoc:XML = new XML(event.message.body);
var loginList:XMLList = new XMLList();
loginList = xmlDoc.children().children().children();
sessionID = loginList.children()[0].toString();
authorized = (loginList.children()[2].toString() == 'Y') ? true :
false;
Alert.show('Session: ' + sessionID + '\nauthorized: ' + authorized);
}

public function loginFaultHandler(event:FaultEvent):void
{
Alert.show('Fault: ' + event.fault.faultString.toString());
}


The principal difference between rpc and document type wsdl's is that a
document type wsdl requires you to invoke the operation by passing to it
an object with the parameters as object properties. With an RPC type
wsdl, you would typically pass the operation a set of parameters. In
other words, instead of

ws.LoginOperation(login);

you would have

ws.LoginOperation(UserID, Password);


Also, I should note that, in this particular case, I am receiving back
an xml structure like this, enclosed within a SOAP envelope:

login
SessionID123123456/SessionID
MessageSome message goes here/Message
AuthorizedY/Authorized
/login


Obviously, if I had programmed the web service to return this:


login
User SessionID=123123456 Message=Some message goes here
Authorized=Y /
/login


Then, the code would be slightly different to process it


import mx.rpc.soap.WebService;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;

public var sessionID:String = new String('');
public var authorized:Boolean = new Boolean(false);

// Login user
public function login(event:flash.events.Event):void
{
// create login object with userID and Password
// properties to be passed to the web service
var login:Object = new Object();
login.UserID = userID_txt.text.toUpperCase();
login.Password = password_txt.text.toUpperCase();

// set up web service
var ws:WebService = new mx.rpc.soap.WebService();
ws.useProxy = false;
ws.LoginOperation.addEventListener(result, loginResultHandler);
ws.addEventListener(fault,  loginFaultHandler);
ws.loadWSDL('https://secure.mydomain.com/Login.wsdl');
ws.LoginOperation(login);
}

public function loginResultHandler(event:ResultEvent):void
{
var xmlDoc:XML = new XML(event.message.body);
var loginList:XMLList = new XMLList();
loginList = xmlDoc.children().children().children();
sessionID = loginList.attribute('SessionID').toString();
authorized = (loginList.attribute('Authorized').toString() == 'Y') ?
true : false;
Alert.show('Session: ' + sessionID + '\nauthorized: ' + authorized);
}

public function loginFaultHandler(event:FaultEvent):void
{
Alert.show('Fault: ' + event.fault.faultString.toString());
}

Hope this makes sense. Also, if anyone sees anyway to further steamline
this code so that it is more efficient, please let me know.

Ron



[flexcoders] Re: Flex 2 Compilation problem

2006-12-19 Thread Renaun Erickson
Whats does your services-config.xml file look like?  Does it have the
SOME_RO destination defined?  Is the channel and endpoint used by the
destination correct?

Renaun

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

 Hi,
 
 I am facing a strange problem while compling flex mxml file.
 
 I code and compile my mxml file in flex builder thereafter when I 
 place that SWF in my project's folder and open my JSP file which 
 contains my SWF, It show some RO error, SOME_RO destination not 
 found.
 
 If I put mxml in my project folder and put the followin URL in browser:
 
 http://localhost:8080/flexnjspproject/flexapplication.mxml
 
 It also make SWF in the same folder where MXML lies. thereafter when I 
 call the JSP, It works fine without any error.
 
 I couldnt make out wht could be the reason behind it.
 
 Can anyone tell me abt this?
 
 I am using JBOSS.
 
 Thanks,
 SS





Re: [flexcoders] Re: SQL Insert operation fails silently

2006-12-19 Thread greg h

Dan,

What database are you using?  e.g. MySQL, MS SQL 2000, Oracle, DB2, Access,
etc?

Database vendor's implementations vary on how they automatically generate
surrogate primary keys.
  Oracle:  
sequencehttp://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/views.htm#sthref3092
  MySQL:  
AUTO_INCREMENThttp://dev.mysql.com/doc/refman/5.0/en/example-auto-increment.html(see
Forta
re: capturing using ColdFusion
http://www.forta.com/blog/index.cfm?mode=entryentry=A61BCDEA-3048-80A9-EFE79327EB7554DC
)
  Microsoft:  @@identityhttp://msdn2.microsoft.com/en-us/library/ms187342.aspx
(see Forta re: capturing using
ColdFusionhttp://www.forta.com/blog/index.cfm?mode=eentry=221
)
  etc.

Basically, after the parent row is inserted, your logic must know the new
primary key value before executing the insert into the child row.

I just cross checked for questions like this over on the CF-Talk
listhttp://www.houseoffusion.com/groups/CF-Talk/and found the
following link detailing How do I grab the ID of the record I
just created?:
http://mysecretbase.com/get_the_last_id.cfm

Regarding the code generated by the CF Wizard, I have not yet attempted
using it for any parent/child insert operations like you are attempting.  If
the code generated by the wizard is deficient in capturing the necessary
foreign key identifier before inserting the child, then you will need to
edit the code that it generates for you.

btw ... the error on the child inserts likely is not failing silently.  It
may be in your ColdFusion logs.  Or if you start ColdFusion from the command
prompthttp://www.forta.com/blog/index.cfm?mode=entryentry=A61BD25F-3048-80A9-EF9FCB7441C5C6C0you
will see all errors on the console.  It only appears to be silent
because there is no handling for it to display Flex.  (Gee, I sure wish
there were a NetConnection debugger for Flex 2/AS3/AMF3 ... hint, hint Adobe
;-)

If you test the CFC where the error is occurring by calling it from a .CFM
test page, likely you will see the full error message too.

Sorry that I can't be more helpful.  I can not say where you can get best
support specifically on issues related to the Flex CF Wizard. In addition to
posting here on FlexCoders, you might also try crossposting on these other
two lists:
  http://www.houseoffusion.com/groups/Flex/
  http://www.houseoffusion.com/groups/CF-Talk/

Of course, for ColdFusion specific issues you are likely to get the best
response on lists like
CF-Talkhttp://www.houseoffusion.com/groups/CF-Talk/rather than here
on the Flex list.

It would be nice if code generators worked perfectly.  Sometimes I think
they work best in helping experienced coders get their work done faster.

If you do resolve this problem, please post back on this thread with an
update on what the solution was.

hth,

g


On 12/19/06, nall_daniel [EMAIL PROTECTED] wrote:


No one has any thoughts or suggestions on this?  I read another post
in CFlex describing the same problem but no solution there either.
Has anyone else experienced this?

Dan



RE: [flexcoders] Re: Spell Checker

2006-12-19 Thread Dimitrios Gianninas
I used Jazzy as well with pur Java only... works great.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
sanjaypmg
Sent: Tuesday, December 19, 2006 11:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Spell Checker



Hi Guys,

I have developed spell checker functionality in Flex 1.5. I have 
developed in flex and integrated it with coldfusion. to develop this 
spellchecker component, I have used Java's Jazzy which i available 
on net.

I have developed the same functionality which provided by MSWord.

you can use this Java Jazzy open source dictionary to develop this 
functionily in flex 2.

Thanks
Sanjay

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

 I've seen the Component on the Flex Exchange, and it's not going 
to 
 meet my needs, primarily because my app won't always have an 
internet 
 connection to use the Google API. Also, I need the custom 
dictionary 
 to be in my DB so users have access to it regardless of what PC 
they 
 are using.
 
 So, I'm asking for some advice and ideas on creating my own Spell 
 Check feature using PHP and MySQL.
 
 I've been thinking about this in theory, and here are my initial 
 questions where I would like feedback.
 
 Do I call a remoteObject after every keystroke to compare against 
a 
 database table of words or do I wait until all the fields are 
filled 
 out and then have the user click a button to Spell Check the 
fields? 
 Maybe both?
 
 How efficient is this going to be with say 100,000 words in the 
word 
 list to check against?
 
 What about integrating a PHP spell checking function?
 
 How do I loop backward until I find a space so I am only checking 
the 
 last word?
 
 How to allow the user to add words not in the standard dictionary 
to 
 their custom table, from where they are in the application?
 
 How do I then set the style of the last word to red underline, 
change 
 the text color, or some other visual representation to note an 
 incorrect word?
 
 If using a Spell Check button, I'd like to change the tab color to 
a 
 different color, if there are spelling mistakes in fields on that 
 tab. I'd also like to highlight fields where there are spelling 
 mistakes.




 

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

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



[flexcoders] Radio items in PopUpMenuButton menus

2006-12-19 Thread Sean Voisen
Hello all,

Has anyone out there tried using radio items in the PopUpMenuButton's  
menu?  There seems to be some bug where the radio icons  
intermittently disappear on the menu when you select a new option,  
and this only happens when the radio selections are in the main  
(root) menu and not a sub-menu.  For instance, try using the  
following ArrayCollection as a dataprovider for a PopUpMenuButton,  
then selecting one of the menu items. The little bullet icon will  
disappear on selection, yet the toggled attribute will be set  
correctly in the data provider's data after selection? Any ideas?

var dp:ArrayCollection = new ArrayCollection([
{label:Test Item 1, data:test1, 
type:radio,  
groupName:test, toggled:true},
{label:Test Item 2, data:test2, 
type:radio, groupName:test}
]);

Cheers,
Sean





[flexcoders] Re: Is Unbinding possible ?

2006-12-19 Thread maikelsibbald
Binding 101 can be found here:
http://labs.flexcoders.nl/?p=24
--- In flexcoders@yahoogroups.com, EECOLOR [EMAIL PROTECTED] wrote:

 Jup, the bindProperty returns a value (dont know which type from the
top of
 my head), check out the docs for the instance it returns. That instance
 allows you to unbind.
 
 Greetz Erik
 
 
 On 11/23/06, dmandrio [EMAIL PROTECTED] wrote:
 
After using BindingUtils.bindProperty(a, b, c, d), is it possible to
  remove the binding ?
 
  
 





RE: [flexcoders] Re: seeding arraycollection from a web service

2006-12-19 Thread Tracy Spratt
Yes, and this is why I always advise against directly binding to
lastResult, it is hard to debug.  If you bind to an instance variable,
and then use a result handler function to assign the event.result
(properly cast) to that variable, you have the opportunity within that
handler to examine the structure of your data.  It might not be exactly
as you think, and you must be exact in your references into it.  If you
are using e4x XML, toXMLString() will show you precisely what you have.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, December 19, 2006 8:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: seeding arraycollection from a web service

 

It depends on the structure of the data returned by your WS. Most of
them contain a top-level object above any array-like structure, so you
may need to do something like this:

mx:ArrayCollection id=myProvider
source={wsAlice.findUsers.lastResult.nameObject}/

HTH,
Ben

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

 Hello all,
 
 I believe I'm following the docs precisely (the Binding a
 result to an ArrayCollection object doc in the Flex IDE
 Help), but my app isn't working. What I'd like to do is map
 the results of a web service call into an ArrayCollection, but
 the ArrayCollection comes up empty when I try. 
 
 My app (below) demonstrates this problem, but unfortunately
 all of my data is password protected and I can't open it up.
 Here's what you'd see if you had access: When you enter an id
 into the box, the grid marked Uses the data provider
 directly, the Name data is populated as it should be. But the
 one that is supposed to be populated by my ArrayCollection is
 empty. 
 
 Can anyone comment on how to map the data from a web service
 into an ArrayCollection?
 
 -Kaylea
 
 ?xml version=1.0 encoding=utf-8 ?
 
 
 mx:Application xmlns:af=*
 xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute
 width=960
 
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 import mx.utils.ArrayUtil;
 import flash.events.*;
 
 public function
 submitFindUserHandler(event:MouseEvent):void {
 var temp:String = new String();
 temp = lookup.text;
 wsAlice.findUsers.send(temp, );
 }
 ]]
 /mx:Script
 
 mx:WebService id=wsAlice showBusyCursor=true
 destination=wsAlice

wsdl=https://parakeet.uchicago.edu:8443/ReservationsWebService/Reservat
ionsWebService?wsdl
https://parakeet.uchicago.edu:8443/ReservationsWebService/ReservationsW
ebService?wsdl 
 useProxy=false
 mx:operation name=findUsers
 mx:request
 userName/userName
 name/name
 /mx:request
 /mx:operation
 /mx:WebService
 mx:ArrayCollection id=myProvider
 
 source={mx.utils.ArrayUtil.toArray(wsAlice.findUsers.lastResult)}/
 
 mx:Panel x=95 y=69 width=646 height=435
 layout=absolute
 mx:DataGrid x=10 y=206
 dataProvider={wsAlice.findUsers.lastResult}
 mx:columns
 mx:DataGridColumn headerText=First Name
 dataField=firstName/
 mx:DataGridColumn headerText=Last Name
 dataField=lastName/
 /mx:columns
 /mx:DataGrid
 mx:DataGrid x=345 y=206 dataProvider={myProvider}
 mx:columns
 mx:DataGridColumn headerText=First Name
 dataField=firstName/
 mx:DataGridColumn headerText=Last Name
 dataField=lastName/
 
 /mx:columns
 /mx:DataGrid
 mx:TextInput x=92 y=96 id=lookup/
 mx:Text x=260 y=98 text=CNetID/
 mx:Button x=92 y=126 label=Look It Up
 click=submitFindUserHandler(event)/
 mx:Text x=21 y=180 text=Uses the data provider directly/
 mx:Text x=324 y=180 text=Uses a variable copy of the
 data provider/
 /mx:Panel
 
 /mx:Application


 



RE: [flexcoders] repeater and style

2006-12-19 Thread Tracy Spratt
If you set verticalGap=0 on the parent *container*, that should fix
your problem.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bghoward3
Sent: Tuesday, December 19, 2006 11:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] repeater and style

 

hi

is there a way to remove the vertical gap between itmes when usiing a 
repeater, i see about a 10 pixel space between item list vertically

id like to remove it completely

thanks for any info

 



Re: [flexcoders] Flex Vs Ajax

2006-12-19 Thread Andrew Muller
SS

Here's one for you:

http://www.onflex.org/ted/2006/09/flex-2-and-flash-player-9-running-in.php

Andrew

On 20/12/06, sanjaypmg [EMAIL PROTECTED] wrote:






 Hi All,

  Can anyone tell me Flex Advantages over Ajax and Vise-Versa.

  And a comparision table, in which, The different functionality,
  components available and enviornment supported by them.

  Pls do let me know.

  Thanks,
  SS

  


-- 
---
Andrew Muller
http://www.webqem.com


RE: [flexcoders] Re: SQL Insert operation fails silently

2006-12-19 Thread Tracy Spratt
Greg h's response is pretty much on target.  You will just have to debug
this problem, and dispense with the wizard if required.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nall_daniel
Sent: Tuesday, December 19, 2006 11:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SQL Insert operation fails silently

 

No one has any thoughts or suggestions on this? I read another post
in CFlex describing the same problem but no solution there either. 
Has anyone else experienced this?

Dan

 



Re: [flexcoders] SEO Compatibility

2006-12-19 Thread John Dowdell
hank williams wrote:
 I want to apologize for the stridency of my earlier remarks.

No worries, you've contributed a lot over the years, forget about it. :)

I'm not sure how the various search engines do with query terms in URLs, 
though... some may index and/or rank on it, others may not. I don't know.

I do know that the various search engines explicitly warn against 
cloaking (redirecting search results to different content), but for 
understandable reasons they don't go into much detail on their 
implementations.

It sounds like our core current problem is in figuring out how to get 
search engine results for dynamic user-generated content piped through a 
standard interface... if someone types salmonella into a restaurant 
review, eg. I'm still not sure whether the search engines will support 
such a goal or not... the big thing this year for Google, Yahoo and MSN 
was to support a standard sitemap protocol, but this is again for the 
main static content, rather than the ongoing contributions held within a 
database:
http://www.sitemaps.org/

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


Re: [flexcoders] SEO Compatibility

2006-12-19 Thread dorkie dork from dorktown

On 12/18/06, John Dowdell [EMAIL PROTECTED] wrote:



This was the original question. Other topics came up during discussion.
I'd like to confirm that I have the correct understanding of the main
action item here... is the following wishlist item accurate?

I'd like Adobe to provide examples on how to expose user-entered text,
stored within my database and displayed and entered through a Flex SWF's
UI, so that any search engine could search for that user text and return
the address of the interface.

I'm on the right page here for the subsequent discussion, true...?




Yes. Yes that is it. That is what I want.

Even if it isn't exactly what everyone wants once something is going or
available you will have a plethora of people refactor it for you.

dorkie dork from dorktown


RE: [flexcoders] Re: Using an ID String as an Object Reference

2006-12-19 Thread Tracy Spratt
so that when I receive a ResultEvent I know which component to route
the returned data to. Is there a better way...

 

A more generic solution is to use an AsyncToken.  There are plenty of
docs, explanations of this, in the archives here, and in the docs
themselves.  Search for AsyncToken and ACT pattern, and even
closure.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Whitelock
Sent: Tuesday, December 19, 2006 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using an ID String as an Object Reference

 

Thanks, that worked great! 

You commented though that this technique is not a good idea. What
happens in the code is that the component dispatches an event to the
main application which then makes an asynchronous RemoteObject call to
a function on ColdFusion. ColdFusion processes the data sent by the
component and then returns some data. I was passing the id of the
component to ColdFusion (which then passes it back with the result
data) so that when I receive a ResultEvent I know which component to
route the returned data to. Is there a better way to architect this?

Paul

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

 this[componentIdName].reload(), although I think sending component
names
 from ColdFusion is a terrible idea.
 
 Patrick

 



[flexcoders] Re: Call Document Style WebService in Flex 2

2006-12-19 Thread ben.clinkinbeard
Glad you got it working. You should check out E4X, its the shiz. Will
let you change your xml parsing code to something like this:

var x:XML = new XML(event.message);
var sessionID:String = x..SessionID;
var auth:Boolean = (x..Authorized == Y);
// the attribute version
var auth:Boolean = ([EMAIL PROTECTED] == Y);

HTH,
Ben


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

 
 Thanks Ben for responding to my inquiry.
 
 I spent some more time trying to get this right and got it working and
 here's what I can document for fellow consumers of Web Services via Flex
 2. The following consumes web services that use document style wsdl's,
 and without using FDS.
 
 
 
 import mx.rpc.soap.WebService;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 
 public var sessionID:String = new String('');
 public var authorized:Boolean = new Boolean(false);
 
 // Login user
 public function login(event:flash.events.Event):void
 {
 // create login object with userID and Password
 // properties to be passed to the web service
 var login:Object = new Object();
 login.UserID = userID_txt.text.toUpperCase();
 login.Password = password_txt.text.toUpperCase();
 
 // set up web service
 var ws:WebService = new mx.rpc.soap.WebService();
 ws.useProxy = false;
 ws.LoginOperation.addEventListener(result, loginResultHandler);
 ws.addEventListener(fault,  loginFaultHandler);
 ws.loadWSDL('https://secure.mydomain.com/Login.wsdl');
 ws.LoginOperation(login);
 }
 
 public function loginResultHandler(event:ResultEvent):void
 {
 var xmlDoc:XML = new XML(event.message.body);
 var loginList:XMLList = new XMLList();
 loginList = xmlDoc.children().children().children();
 sessionID = loginList.children()[0].toString();
 authorized = (loginList.children()[2].toString() == 'Y') ? true :
 false;
 Alert.show('Session: ' + sessionID + '\nauthorized: ' + authorized);
 }
 
 public function loginFaultHandler(event:FaultEvent):void
 {
 Alert.show('Fault: ' + event.fault.faultString.toString());
 }
 
 
 The principal difference between rpc and document type wsdl's is that a
 document type wsdl requires you to invoke the operation by passing to it
 an object with the parameters as object properties. With an RPC type
 wsdl, you would typically pass the operation a set of parameters. In
 other words, instead of
 
 ws.LoginOperation(login);
 
 you would have
 
 ws.LoginOperation(UserID, Password);
 
 
 Also, I should note that, in this particular case, I am receiving back
 an xml structure like this, enclosed within a SOAP envelope:
 
 login
 SessionID123123456/SessionID
 MessageSome message goes here/Message
 AuthorizedY/Authorized
 /login
 
 
 Obviously, if I had programmed the web service to return this:
 
 
 login
 User SessionID=123123456 Message=Some message goes here
 Authorized=Y /
 /login
 
 
 Then, the code would be slightly different to process it
 
 
 import mx.rpc.soap.WebService;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 
 public var sessionID:String = new String('');
 public var authorized:Boolean = new Boolean(false);
 
 // Login user
 public function login(event:flash.events.Event):void
 {
 // create login object with userID and Password
 // properties to be passed to the web service
 var login:Object = new Object();
 login.UserID = userID_txt.text.toUpperCase();
 login.Password = password_txt.text.toUpperCase();
 
 // set up web service
 var ws:WebService = new mx.rpc.soap.WebService();
 ws.useProxy = false;
 ws.LoginOperation.addEventListener(result, loginResultHandler);
 ws.addEventListener(fault,  loginFaultHandler);
 ws.loadWSDL('https://secure.mydomain.com/Login.wsdl');
 ws.LoginOperation(login);
 }
 
 public function loginResultHandler(event:ResultEvent):void
 {
 var xmlDoc:XML = new XML(event.message.body);
 var loginList:XMLList = new XMLList();
 loginList = xmlDoc.children().children().children();
 sessionID = loginList.attribute('SessionID').toString();
 authorized = (loginList.attribute('Authorized').toString() == 'Y') ?
 true : false;
 Alert.show('Session: ' + sessionID + '\nauthorized: ' + authorized);
 }
 
 public function loginFaultHandler(event:FaultEvent):void
 {
 Alert.show('Fault: ' + event.fault.faultString.toString());
 }
 
 Hope this makes sense. Also, if anyone sees anyway to further steamline
 this code so that it is more efficient, please let me know.
 
 Ron





[flexcoders] caingorm httpservice and the servicelocator

2006-12-19 Thread bryter_daze
hello all,
If I use setCredentials in the ServiceLocater (services mxml), does it
pass them on to the services contained within? And if so, how so? I'm
tinkering with the del.icio.us api.



Re: [flexcoders] OT:Flex 2 adoption rates so far?

2006-12-19 Thread John Dowdell
pk_wasp wrote:
 Has anyone got info on this?
 The lastest investor webcast didn't mention much about Flex 2
 disappointly:
 http://www.adobe.com/aboutadobe/invrelations/06q4analyst/
 (every bit of press helps convince that skeptical client :) )

What type of info are you seeking? I don't think Adobe publicly breaks 
out revenue by product. The Adobe Flex 2 family of technologies has been 
getting some very strong press reviews, as well as earnest 
word-of-mouth, but what types of stats are you seeking...?

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


Re: [flexcoders] Passing flash vars to embedded swf doesn't work

2006-12-19 Thread John Dowdell
mikey_wilko wrote:
 I have a flex app that has a swfLoader.  I am loading different swf's 
 in to the swfloader and they're all working fine.  With one particular 
 swf, it requires a flashvar.  I've tried the following format : 
 swfLoader.source=xxx.swf?id=2.  This just doesn't work.  However, 
 running from the HTML wrapper and setting the flashvar in HTML, it 
 does work, so the swf being called is working ok.  Is there any 
 different way of calling it from Flex??  Am I calling it the wrong way?

flashvars per se is an HTML tag. Query terms in URLs are passed by the 
browser. If you're loading one SWF within another then the browser isn't 
involved. You can use localConnect to talk to two different top-level 
SWFs, and direct addressing for a host SWF to talk to a guest SWF, right...?

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


[flexcoders] Re: BindSetter?

2006-12-19 Thread maikelsibbald
Binding 101 can be found here:
http://labs.flexcoders.nl/?p=24

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

 Thank You Lachlan!!!
 
 I can't believe this isn't documented somewhere.
 Seems like a pretty basic thing.
 
 Anyway, glad to know I'm not going crazy..
 
 
 
 On 12/5/06, Lachlan Cotter [EMAIL PROTECTED] wrote:
 
I think you're right Steve. I have asked myself the same
question in the
  past and ended up using bindProperty… When you say *function set
():void*or function
  *get ():Something *you're really telling the method to masquerade as a
  property, so it makes sense that you can treat it as such. I have
used *
  BindingUtils.bindProperty* to bind a setter method and it seems to
work.
 
  Cheers,
  Lach
 
 
  On 04/12/2006, at 4:31 PM, Steve Hindle wrote:
 
  Sorry for reply to myself - but this is driving me _nuts_! I can't
  find an example of bindSetter with a 'real' accessor function with
  either yahoo or google. And the example on the 'bindUtils' page at
  adobe.com (stuck in the comments at the bottom) - doesn't bind to a
  'function set blah'... (isn't that the _required_ to consider a
  funciton/method a 'setter' ??) It just binds to a 'normal' function.
 
  Anyway, I'm starting to think that 'bindSetter' is really a poorly
  named 'bindFunction' and that _all_ properties - var OR accessor based
  should be using bindProperty.
 
  Can someone confirm/refute this and save my sanity please!
 
  Thanks
 
 
   
 





RE: [flexcoders] Re: Form-based auth on Websphere

2006-12-19 Thread Dimitrios Gianninas
Custom is the right thing to use in your services-config.xml. So its working 
fine now?
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of baardos
Sent: Tuesday, December 19, 2006 8:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Form-based auth on Websphere



Hi Dimitrios,

Content of the config is pretty straight forward. There are 3 roles,
each one for accessing a separate set of functionality provided by
external applications.

This is how the web.xml security constraint looks like:

security-constraint
display-nameProtect App/display-name
web-resource-collection
web-resource-nameCore Application/web-resource-name
url-pattern/app/*/url-pattern
url-pattern/messagebroker/*/url-pattern
http-methodDELETE/http-method
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-nameapp1users/role-name
role-nameapp2users/role-name
role-nameapp3users/role-name
/auth-constraint
/security-constraint

login-config 
auth-methodFORM/auth-method 
form-login-config 

form-login-page/login/SecuritySandpitLogin.html/form-login-page 

form-error-page/login/SecuritySandpitLogin.html/form-error-page 
/form-login-config
/login-config 

security-role
role-nameapp1users/role-name
/security-role
security-role
role-nameapp2users/role-name
/security-role
security-role
role-nameapp3users/role-name
/security-role

The services-config.xml specifies channels and security constraints in
the following way:

?xml version=1.0 encoding=UTF-8?
services-config
services
service-include file-path=remoting-config.xml/
/services

security
login-command
class=flex.messaging.security.WebSphereLoginCommand server=WebSphere/
!-- Uncomment the correct app server
login-command
class=flex.messaging.security.JRunLoginCommand server=JRun/
login-command
class=flex.messaging.security.WeblogicLoginCommand server=Weblogic/
login-command
class=flex.messaging.security.TomcatLoginCommand server=Tomcat/
-- 
security-constraint id=app1-constraint
auth-methodFORM/auth-method
roles
roleapp1users/role
/roles
/security-constraint 

security-constraint id=app2-constraint
auth-methodFORM/auth-method
roles
roleapp2users/role
/roles
/security-constraint 

security-constraint id=app3-constraint
auth-methodFORM/auth-method
roles
roleapp3users/role
/roles
/security-constraint 

security-constraint id=login-constraint
auth-methodFORM/auth-method
roles
roleapp1users/role
roleapp2users/role
roleapp3users/role
/roles
/security-constraint 

/security

channels
channel-definition id=my-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
/properties
/channel-definition

channel-definition id=amf-polling
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf-polling;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds10/polling-interval-seconds
/properties
/channel-definition
/channels

logging
target class=flex.messaging.log.ConsoleTarget level=debug
properties
prefix[Flex] /prefix
includeDatefalse/includeDate
includeTimetrue/includeTime
includeLevelfalse/includeLevel
includeCategoryfalse/includeCategory
/properties
/target
/logging

system
redeploy
enabledtrue/enabled
watch-interval20/watch-interval

watch-file{context.root}/WEB-INF/flex/remoting-config.xml/watch-file

watch-file{context.root}/WEB-INF/flex/services-config.xml/watch-file
touch-file{context.root}/WEB-INF/web.xml/touch-file
/redeploy
/system

/services-config

The destinations are just like below:

destination id=app1-default
properties
sourcecom.mdsuk.poc.flex.destination.App1Destination/source
/properties
channels
channel ref=my-amf/
/channels
security
security-constraint ref=app1-constraint/
/security 
/destination

destination id=app2-default
properties
sourcecom.mdsuk.poc.flex.destination.App2Destination/source
/properties
channels
channel ref=app2-amf/
/channels
security
security-constraint ref=app2-constraint/
/security 
/destination

destination id=app3-default
properties
sourcecom.mdsuk.poc.flex.destination.App3Destination/source
/properties
channels
channel ref=my-amf/
/channels
security
security-constraint ref=app3-constraint/
/security 
/destination


destination id=login-custom
properties
sourcecom.mdsuk.poc.flex.destination.LoginDestination/source
/properties
channels
channel ref=my-amf/
/channels 
security
security-constraint ref=login-constraint/
/security 
/destination

For now we decided to go with Custom security since it seems to work
without any problems, however I would be glad to know why FORM-based
security does not work for us. It seems to me that Websphere and its
security mechanims do not integrate 

Re: [flexcoders] Adobe site extremely slow

2006-12-19 Thread John Dowdell
Ralf Bokelberg wrote:
 Whenever i try to watch some webpage on the Adobe site it is extremely
 slow. Be it the flex documentation, be it the flex exchange or be it
 the new flex cookbook. I mean, how can Google search the whole
 internet in a split of a second, and Adobe needs like 30 seconds to
 open a webpage?
 I wonder, if i'm the only one who encounters that. Or is it a
 german/european problem?

I know that the symptom is real (although intermittent), and that the 
web team is aware of it, but I do not know details of why the site can 
perform at different speeds.

I'll try today to hook up with the web team, and again request that we 
get some type of document/explanation up on why pages sometimes take 
longer than usual to display. I don't know the situation well enough 
myself to be able to venture the context.

jd






-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


RE: [flexcoders] Adobe site extremely slow

2006-12-19 Thread Tracy Spratt
It may be traffic-oriented.  It seems to be much worse in the afternoon
(US Eastern time zone) than in the morning.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Tuesday, December 19, 2006 7:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe site extremely slow

 

Whenever i try to watch some webpage on the Adobe site it is extremely
slow. Be it the flex documentation, be it the flex exchange or be it
the new flex cookbook. I mean, how can Google search the whole
internet in a split of a second, and Adobe needs like 30 seconds to
open a webpage?
I wonder, if i'm the only one who encounters that. Or is it a
german/european problem?

I guess, it would be very helpful to sell flex to developers, if Adobe
could make the flex documentation site faster. At least i'm always
very delighted about speed and completeness of information, when i
have to look something up at MSDN.

Cheers,
Ralf.

-- 
Ralf Bokelberg [EMAIL PROTECTED]
mailto:ralf.bokelberg%40gmail.com 
Flex  Flash Consultant based in Cologne/Germany

 



RE: [flexcoders] Adobe site extremely slow

2006-12-19 Thread Shannon Hicks
It seems like the fifth-largest software company should be able to handle
normal traffic, though. Sure, when the Photoshop CS3 beta came out, I knew
the sites would be all but unavailable, but the rest of the time, I expect
better.
 
Shan

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, December 19, 2006 1:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Adobe site extremely slow




It may be traffic-oriented.  It seems to be much worse in the afternoon (US
Eastern time zone) than in the morning.

Tracy

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Tuesday, December 19, 2006 7:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe site extremely slow

Whenever i try to watch some webpage on the Adobe site it is extremely
slow. Be it the flex documentation, be it the flex exchange or be it
the new flex cookbook. I mean, how can Google search the whole
internet in a split of a second, and Adobe needs like 30 seconds to
open a webpage?
I wonder, if i'm the only one who encounters that. Or is it a
german/european problem?

I guess, it would be very helpful to sell flex to developers, if Adobe
could make the flex documentation site faster. At least i'm always
very delighted about speed and completeness of information, when i
have to look something up at MSDN.

Cheers,
Ralf.

-- 
Ralf Bokelberg ralf.bokelberg@ mailto:ralf.bokelberg%40gmail.com
gmail.com
Flex  Flash Consultant based in Cologne/Germany

 


RE: [flexcoders] Data driven Combo boxes and selectedValues

2006-12-19 Thread Tracy Spratt
You define what gets displayed in the ComboBox by defining either a
labelField or a labelFunction.

 

When a user selects an item in the list, you can access any property of
the item object through the selectedItem property.

 

Post back if you need any more specific help.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stephen50232
Sent: Tuesday, December 19, 2006 7:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Data driven Combo boxes and selectedValues

 

Hi,

I'm trying to work on a combo box which is populated by a ColdFusion
Component method, this method returns a list of users names and ID's.
In my combo box I want to display the user's names, but use the ID as
data field (so if some selects a user's name and saves the form, the
ID is inserted into the database).

What I want to do is when a user selects a record from a datagrid,
this populates a details form, and the user name is selected in the
combo box of names, by the userID, but displaying the user's name. 

I want to use this method of passing in an ID to a combo box and the
combo box displaying the correct name/value for that ID. One problem I
am having is setting the ID as a data field and displaying the name as
a label.

Can anyone suggest how I could do this?

Thanks

Stephen

 



Re: [flexcoders] SEO Compatibility

2006-12-19 Thread hank williams

On 12/19/06, John Dowdell [EMAIL PROTECTED] wrote:


hank williams wrote:
 I want to apologize for the stridency of my earlier remarks.

No worries, you've contributed a lot over the years, forget about it. :)

I'm not sure how the various search engines do with query terms in URLs,
though... some may index and/or rank on it, others may not. I don't know.



I may not have been clear. The info in the url is just the same kind of info
that a regular website would use to indicated what to display. So its not
that google is indexing the url. Its that the server is, when it sees an
extended url, sending indexable html along with the rest of the webpage that
contains the swf. In this way, URLs are used to identify a particular set of
content, just like a non flash website.


I do know that the various search engines explicitly warn against

cloaking (redirecting search results to different content), but for
understandable reasons they don't go into much detail on their
implementations.



I am not suggesting this. I am just suggesting that when a url is sent to
the server that describes a particular  content set, for example a
particular myspace page like www.myspace.com/hank that the server sends
along invisible html data that exactly matches what the swf is going to show
once it gets up and running.

It sounds like our core current problem is in figuring out how to get

search engine results for dynamic user-generated content piped through a
standard interface...



Well, piped into html when an appropriate URL is delivered to a server.

if someone types salmonella into a restaurant

review, eg. I'm still not sure whether the search engines will support
such a goal or not...



They will if we can get the data into html

the big thing this year for Google, Yahoo and MSN

was to support a standard sitemap protocol, but this is again for the
main static content, rather than the ongoing contributions held within a
database:
http://www.sitemaps.org/




The sitemap thing solves an important half the problem. It identifies the
URLs that the spider should search. But then you need the server to actually
send indexable data/html when the given URLs are hit. And what I am saying
is that when one of these URLs are hit, that the server needs to provide
both the swf, and the invisible html that contains the indexable data that
you will see in the swf. This means the content will be accessible in the
swf, and accessible to the search engines in html. This is the thrust of my
earlier described content.

Regards
Hank


Re: [flexcoders] SEO Compatibility

2006-12-19 Thread John Dowdell
Doug McCune wrote:
 In addition to allowing a search to 
 return the address of the interface I think people also want the 
 capability to allow deep-linking, so the address could make the 
 interface load a particular content item from the database. I'd also 
 like to point out that what we really want in an ideal world is a simple 
 and automatic way for this to work in Flex, without requiring complex 
 additional work. The history manager in Flex is a good example of this. 

URLKit has been getting good word... how is it doing for you?
http://joeberkovitz.com/blog/urlkit/

jd




-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


RE: [flexcoders] Secure RTMP on Websphere 5.1 and 5.1.1

2006-12-19 Thread Seth Hodgson
Hi,

Two things:

1. I checked with the developer who worked on the Websphere RTMP support and 
was told that version 6 is supported, below that isn't explicitly. However, if 
things are working for you on 5.1/5.1.1 without configuring a WorkManager you 
wouldn't need to do anything differently for secure RTMPS connections.

2. For secure connections in general you'll want to serve the swf/html wrapper 
securely as well (over HTTPS) and use the same cert for both HTTP and RTMP. The 
player doesn't provide a way to import certs so if you're using a self-signed 
cert on the server when you attempt to make an RTMPS connection the browser 
won't pop up a cert accept dialog. Because the cert isn't in the browser store 
the RTMPS connection will fail. If you request the swf/mxml/html over HTTPS 
protected by the same cert you'll get the browser prompt. If you accept it the 
cert will be added to your browser store and then when the player makes its 
RTMPS connection and the server uses that same cert to secure the connection 
the cert will be found in the browser store and the connection will succeed.

You may also want to enable client logging (mx:TraceTarget) to see what's 
happening with your connection in more detail.

HTH,
Seth


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of baardos
Sent: Tuesday, December 19, 2006 6:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Secure RTMP on Websphere 5.1 and 5.1.1

Hi,

I've been trying to setup secure RTMP channel and the problem is that
a cosumer in the Flex client is timed out when it tries to subscribe.
I cannot see a subscibe message in the logs - for sure it is there
received by the server when I use unsecured RTMP. It seems like the
client was sending a request to a wrong location or it was ignored by
the server.

I've noticed one small thing there. RTMP on Websphere 5.1 and 5.1.1
works without setting up the Message Worker mentioned in the
documentation. Is it WAS 6.0 specific only? Is it by any chance
required by secured RTMP?

I would be grateful for any help.

Cheers,
Bartek 
 


Re: [flexcoders] Re: Amfphp with AMF3 support: testers wanted

2006-12-19 Thread Patrick Mineault
Awesome. Could you post your findings on a blog or something for future 
reference?

Patrick

Jamie O a écrit :

 I've never been so happy to realize I made such a stupid mistake! The
 subsequent error was related to a web service that I had somehow put
 an 'endpointdestinatio n' reference instead of a 'destination' .

 Splitting the pieces of the example services-config. xml as I
 previously posted does work quite well with FDS / cairngorm. Thank you
 so much guys!

 Jamie

 --- In [EMAIL PROTECTED] ups.com 
 mailto:flexcoders%40yahoogroups.com, Jamie O jamie.oastler@ ... 
 wrote:
 
  Hey,
 
  Much like a virgin learning to navigate the salacious curves of his
  first partner, I've tried putting it everywhere and had little
  success. Typo's aside, I've managed to resolve the on-save error with
  the FDS version by putting the destination in the remoting-config. xml.
 
  Now, when I load the .mxml in the browser I get a Error: Cannot
  assign operations into an RPC Service (endpointdestinatio n) at
 
 mx.rpc::AbstractSer vice/http://www.adobe. com/2006/ actionscript/ 
 flash/proxy: :setProperty 
 http://www.adobe.com/2006/actionscript/flash/proxy::setProperty()
  at com.post.mailbox. business: :Services/ ::_WebService1_ i() error
 message.
 
  I think for the time being I'll un-FDS my project but this is
  obviously not an optimal solution and one that I'm sure many are going
  to run into down the road. Hopefully Patrick's efforts in bringing FDS
  suppport to AMFPHP will resolve this quirk.
 
  Jamie
 
  --- In [EMAIL PROTECTED] ups.com 
 mailto:flexcoders%40yahoogroups.com, Renaun Erickson renaun@ wrote:
  
   Jamie,
  
   You can try putting the the adapter in the remoting-config. xml.
  Leave the channel in the services-config. xml. ColdFusion's default
  remoting services-config. xml puts them all in one file, and thats what
  I end up doing for my non FDS stuff.
  
   One thing I did notice in terms of the Cairngorm stuff is the line
  of code that says:
   service = ServiceLocator. getInstance( ).getService( 
 AMFPHPDestinati on)
  
   should read:
   service = ServiceLocator. getInstance( ).getService( 
 roAMFPHPService )
  
   Hope that helps,
  
   Renaun
  
 

  



[flexcoders] detect activity on audio stream

2006-12-19 Thread Jesús Iglesias
Hi,

I have an audio chat application that runs with flash media server. For each 
user I open a stream and all the user conects to this streams to hear each 
other.
I want to have an activity signal on each user, so I thought the best solution 
would be to detect activity on the stream, but there is no method. On 
microphone you get the activity event, but there is no similar thing on 
netstream.

Is there a way to know when there is activity on a netstream?

Thanks, 
Jesus


[flexcoders] integrating PageFlip (flash file) into container

2006-12-19 Thread danj520
Another newbie here...Has anyone been successful integrating this
Flash file into Flex?
http://www.iparigrafika.hu/pageflip/

How can it be put inside a container, i.e., panel, canvas, etc. to use
as a doc viewer? any help appreciated.

Thanks in advance..



[flexcoders] detect activity on audio stream

2006-12-19 Thread Jesús Iglesias
Hi,

I have an audio chat application that runs with flash media server. For each 
user I open a stream and all the user conects to this streams to hear each 
other.
I want to have an activity signal on each user, so I thought the best solution 
would be to detect activity on the stream, but there is no method. On 
microphone you get the activity event, but there is no similar thing on 
netstream.

Is there a way to know when there is activity on a netstream?

Thanks, 
Jesus


[flexcoders] Loading multiple XMLs in parallel with URLLoader

2006-12-19 Thread Sebastian Feher
Hi All,

I'm loading a number of XMLs in parallel and would like to know the 
context in which the loading started. 

In my case there's some dependency between the information contained in 
these XMLs and the results of processing a certain XML will be stored 
based on the information that triggered its loading.

Is there a way to pass the original context to the handler?!

Regards,
Sebastian




RE: [flexcoders] Transform XML with external CSS styleSheet via htmlText

2006-12-19 Thread Tom Lee
Jason,

Have you found a solution for this issue?  I can't seem to make this work
either, although I used to do this all the time in Flash.  

Thanks,

-tom

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Thursday, August 03, 2006 10:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transform XML with external CSS styleSheet via
htmlText

I am looking for a little help.  What was fairly easy to do in AS2 and
Flash 8 is proving to be very tricky in Flex 2 AS3.  What I want to do
is assign a stylesheet to a TextArea component and then add text via
htmlText.  The text is coming from XML.

In AS2/F8 I had a nice system were all my XML element names matched up
to a style name in an external CSS file.
styles.css SNIP
[CODE]
questions {
display: block;
margin-left: 30px;
}
question {
color: #00;
font-family: Arial;
font-size: 10;
display: block;
}
options {
display: block;
margin-left: 30px;
}
option {
color: #00;
font-family: Arial;
font-size: 10;
display: block;
}

[/CODE]

SNIP from XML file
[CODE]
interaction id=506
questions
questionWhile the nurse is explaining .../question
/questions
options
option id=1Anger/option
option id=2Denial/option
option id=3Anxiety/option
option id=4Depression/option
/options
[/CODE]

I could just assign the htmlText of a text field to the XML node, the
XML element tags would be treated as HTML tags and the appropriate
styles would be applied.

I have read through dozens of posts in this forum about this exact
problem, most people are just trying to get a links to underline.  I
have not found any solutions that make sense to me.

The help entry for TextArea.styleSheet just points to the
flash.text.StyleSheet class.  That class has one example,
http://livedocs.macromedia.com/flex/2/langref/flash/text/StyleSheet.html#inc
ludeExamplesSummary
, but I have not had any luck in getting the Example to work.  I am
not exactly sure what to do with the code.  I have tried to build a
StyleSheet object in the mx:Script tag, and I have also tried to
make an class file that has a method that returns a StyleSheet.  The
addChild(label); line in the example does not seem to be like a
document.write as I thought it was.  I can't get that to output
anything to the screen.  The constructor of the Class is firing however.

I am controlling the styles of all my components with no problem from
an external CSS file with mx:Style source=styles/main.css/.  I can
assign one specific style to a TextArea, but not an entire StyleSheet.
 my:Style does not accept an id attribute and there does not seem
to be any way to link that loaded CSS file to a TextArea.styleSheet
property.

I have read that AS 3 cannot currently load a CSS at runtime, that
sucks, but I am open to a work around even if it means having to
define all my styles in AS (ick).

Here is the big QUESTION:
How can I embed an external CSS StyleSheet into my SWF, give it an ID,
and assign it to a TextArea.styleSheet property at runtime?  

If that is not possible, how can I create a Class (Styles.as) that
will house all my styles and somehow return a flash.text.StyleSheet
object that I can assign to my TextArea.styleSheet property?

I seem to have exhausted the help file on this issue.  Thanks for any
insight you can give on this.  

--jason













--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links






[flexcoders] Re: Newbie help: model bindings work with some but not all

2006-12-19 Thread Tim Garver
Hi All,
  here is some snippets from my project that is not working.
  i have included some of the code, let me know if you need all of it. it quite 
large.
   
   
  The myTags data field is the one in question.
   
  This file is opened up as a windowed page from a calling page.
  the calling page passes in an object and the object is used by remoting to 
get the data on this page.
   
  THanks in advance.
  Tim
   
   
  Here is the result function:
  private function getByID_result(event:ResultEvent):void
   {
var detail:Users = event.result as Users;
  this.profileModel = detail;   // my model
   //Alert.show(ObjectUtil.toString(this.profileModel.myTags));
   //this alert will show the data, but it will display in the text fields.
   }
   
  Here is my model:
   
  assets:Users id=profileModel
  assets:Birthday{dob.selectedDate}/assets:Birthday
  assets:Gender{gender.selectedValue as String}/assets:Gender
  assets:AboutMe{aboutMe.htmlText as String}/assets:AboutMe
  assets:Occupation{occupation.text as String}/assets:Occupation
  assets:SexualPreference{sexualPref.selectedValue as 
String}/assets:SexualPreference
  assets:IMAddress1{IM1_Name.text as String}/assets:IMAddress1
  assets:IMAddress2{IM2_Name.text as String}/assets:IMAddress2
  assets:IMType1{IM1.selectedItem.data as int}/assets:IMType1
  assets:IMType2{IM2.selectedItem.data as int}/assets:IMType2
  assets:myTags{tags.text as String}/assets:myTags
  assets:myGenres{genres.selectedIndices}/assets:myGenres
 /assets:Users
   
  !-- textarea that refuses to show data.. i have had it bound to the model --
  mx:TextArea width=100% height=196 id=tags y=26 
text={profileModel.myTags}/
   
   
   
   
  --
  Users.as class
   
  package assets
{
 [RemoteClass(alias=CFC.DAO.Users)]
 [Bindable]
 public dynamic class Users
 {
public var UserID:Number = 0;
  public var LoginID:Number = 0;
  public var FirstName:String = ;
  public var LastName:String = ;
  public var Email:String = ;
  public var Birthday:Date = null;
  public var Gender:String = ;
  public var SexualPreference:String = ;
  public var Occupation:String = ;
  public var AboutMe:String = ;
  public var ProfilePhoto:String = ;
  public var IMType1:int = -1;
  public var IMType2:int = -1;
  public var IMAddress1:String = ;
  public var IMAddress2:String = ;
  public var cc_Name:String = ;
  public var cc_Number:String = ;
  public var cc_ExpirationMonth:Number = 0;
  public var cc_ExpirationYear:Number = 0;
  public var cell_Phone:String = ;
  public var bill_Company:String = ;
  public var bill_Address1:String = ;
  public var bill_Address2:String = ;
  public var bill_City:String = ;
  public var bill_StateId:String = ;
  public var bill_Province:String = ;
  public var bill_Zip:String = ;
  public var bill_CountryID:Number = 0;
  public var bill_Phone:String = ;
  public var bill_Fax:String = ;
  public var ship_Company:String = ;
  public var ship_Address1:String = ;
  public var ship_Address2:String = ;
  public var ship_City:String = ;
  public var ship_StateId:String = ;
  public var ship_Province:String = ;
  public var ship_Zip:String = ;
  public var ship_CountryID:Number = 0;
  public var ship_Phone:String = ;
  public var ship_Fax:String = ;
  public var Comments:String = ;
  public var Newsletter:Number = 0;
  public var Active:Number = 0;
  public var DateCreated:Date = null;
  public var DateModified:Date = null;
  public var CreatedByID:Number = 0;
  public var ModifiedByID:Number = 0;
  public var myTags:String = ;
  public var myGenres:Array = [];
  
  public function Users()
  {
   
  }
  
   
 }
}
   
   
   

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: [flexcoders] Loading multiple XMLs in parallel with URLLoader

2006-12-19 Thread Tracy Spratt
Use HTTPService instead of URLLoader.

 

All of the RPC data services return an AsyncToken from their send() or
operation invocation.  You can create a property on that AsyncToken
object to hold any info you want about the sending condition, even a
handler function.

 

Search the archives, the docs for AsyncToken, ACT, even closure.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sebastian Feher
Sent: Tuesday, December 19, 2006 2:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading multiple XMLs in parallel with URLLoader

 

Hi All,

I'm loading a number of XMLs in parallel and would like to know the 
context in which the loading started. 

In my case there's some dependency between the information contained in 
these XMLs and the results of processing a certain XML will be stored 
based on the information that triggered its loading.

Is there a way to pass the original context to the handler?!

Regards,
Sebastian

 



[flexcoders] Kill Drop Shadow on Pie Chart

2006-12-19 Thread Ethan Miller
Yikes. It's big and black and doesn't seem to have a style or  
property to remove it. Anyone know how to control the drop shadow on  
a pie chart?

cheers, ethan 


RE: [flexcoders] Re: BindSetter?

2006-12-19 Thread Stephen Gilson
Just a note, we added several examples on bindSetter() to the docs for
the 2.0.1 release.
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of maikelsibbald
Sent: Tuesday, December 19, 2006 12:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: BindSetter?



Binding 101 can be found here:
http://labs.flexcoders.nl/?p=24 http://labs.flexcoders.nl/?p=24 

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

 Thank You Lachlan!!!
 
 I can't believe this isn't documented somewhere.
 Seems like a pretty basic thing.
 
 Anyway, glad to know I'm not going crazy..
 
 
 
 On 12/5/06, Lachlan Cotter [EMAIL PROTECTED] wrote:
 
  I think you're right Steve. I have asked myself the same
question in the
  past and ended up using bindProperty... When you say *function set
():void*or function
  *get ():Something *you're really telling the method to masquerade as
a
  property, so it makes sense that you can treat it as such. I have
used *
  BindingUtils.bindProperty* to bind a setter method and it seems to
work.
 
  Cheers,
  Lach
 
 
  On 04/12/2006, at 4:31 PM, Steve Hindle wrote:
 
  Sorry for reply to myself - but this is driving me _nuts_! I can't
  find an example of bindSetter with a 'real' accessor function with
  either yahoo or google. And the example on the 'bindUtils' page at
  adobe.com (stuck in the comments at the bottom) - doesn't bind to a
  'function set blah'... (isn't that the _required_ to consider a
  funciton/method a 'setter' ??) It just binds to a 'normal' function.
 
  Anyway, I'm starting to think that 'bindSetter' is really a poorly
  named 'bindFunction' and that _all_ properties - var OR accessor
based
  should be using bindProperty.
 
  Can someone confirm/refute this and save my sanity please!
 
  Thanks
 
 
  
 




 


RE: [flexcoders] Kill Drop Shadow on Pie Chart

2006-12-19 Thread Ely Greenfield
 
 
Set the filters property on the PieSeries to an empty array.
 
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Tuesday, December 19, 2006 3:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Kill Drop Shadow on Pie Chart



Yikes. It's big and black and doesn't seem to have a style or 
property to remove it. Anyone know how to control the drop shadow on 
a pie chart?

cheers, ethan 


 


[flexcoders] Re: An architectural blueprint for Flex applications

2006-12-19 Thread pauland2513
--- In flexcoders@yahoogroups.com, Oliver Lietz [EMAIL PROTECTED] wrote:

 Am Dienstag, 19. Dezember 2006 09:53 schrieb devisbalsemin:
  yes we looked Cairngorm, but we think Cairngorm framework is an
  alternative (good)...
  We are not searching a fremework... but Flex Design Pattern for
  implement An architectural..
  Thanks for your rply...
 
 There are no Flex Design Patterns but Design Patterns. Design
Patterns are 
 language independent.

Yes, but Advanced ActionScript 3 with Design Patterns by Joey Lott and
Danny patterson is pretty
darn good..

http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568/sr=8-1/qid=1166537570/ref=sr_1_1/103-0521517-8384642?ie=UTF8s=books

Paul



Re: [flexcoders] Re: SEO Compatibility

2006-12-19 Thread Kevin Newman


hank williams wrote:
 Kevin,

 I had a few inline comments on some of what you wrote since I had a 
 few differences of opinion.

 On 12/18/06, *Kevin Newman*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:



 I think that's great and don't necessarily think Adobe needs to
 fix the
 problem, since I don't think it's Adobe's problem - I like the
 flexibility.


 I think its definitely adobe's problem to the extent that they offer 
 products that are client/server systems instead of just client tools.  
 FDS and Cold Fusion should offer a way to facilitate this most 
 important  of issues. Adobe has defined a significant part of its 
 business as building servers in the flash ecosystem. I dont think 
 solving this issue would limit any flexibility.
You are right about FDS and Cold Fusion servers - it should be possible 
for Adobe to create some kind of tools or solutions, even if it isn't 
hands off - but for the rest of us, and overview or best practices 
document would be nice.


 This is a problem for Google and others, to fix, or perhaps one that
 there is already a solution for. 


 I dont see why this would be googles issue really at all. More on this 
 below.

 The problem with Flex/Flash/AJAX/Expression Blend apps, is that
 they are
 not documents, they are applications.



 Actually, many such apps are *both* apps and documents and that is 
 where the problem is. For example a discussion board is an app that 
 manages and displays document type data that deserves to be indexed.
I guess it could be, but mixing it like that seems odd to me.


 How would Google or anyone else
 index something like Microsoft Word, or Adobe Photoshop. 


  
 You correctly point out that these do not make sense for indexing, but 
 these are not the kinds of apps that we are talking about for user 
 generated content or webapps that have significant indexable data.
I guess I see Flex/Ajax/Flash/etc. apps more like extension to the 
browser, than as web sites or content. To me they just extend the way 
the browser app access and displays information.
  


 To me the answer is as Claus suggests - to build an alternative,
 server
 side web app, that serves the documents to spiders and bots (BTW, this
 can be produced before or after the UI - it's up to the developer
 ;-) ).

 The interesting question, and the place that needs focus, is what
 is the
 right way to direct traffic from those search pages back into the web
 app. 


 This it seems is not that interesting a question because it is the 
 easy part. Flash/Flex apps can easily read data in the URL and go to 
 the right place in the app which can then use remoting to get the data 
 in the right format for the app.
Yeah, but it has to run to do that, and then the displayed data has to 
be interpretable by the bot - if that can be standardized enough for a 
spider to understand what it's got back from the server (maybe an event 
system that says hey I'm ready to be indexed, or read me now - 
screen readers have to be able to do this, so I guess it might be 
possible), that's great, but I don't know if spiders will be that smart, 
or if companies like google would be willing to build such a bot that 
can run apps like that. I suppose it would be more ideal than two 
different types of links into the app (hash # and query ?).

Of course the bot would still need to know how to crawl the site (where 
to get urls) - I guess sitemaps.org could come in handy here. A smart 
enough bot wouldn't even have to reload the app (if the app don't break 
at least).


 I think the easiest way to do that would be with a small snippet of
 JavaScript that would detect for Flash Player (or whatever the app
 requires) then location.replace you into the appropriate location
 within
 the application (which would need deep linking support, and there many
 ways to do that now).


 This, it seems to me is more complicated than necessary. I do this in 
 my current app without any javascript snippet (cuz I dont know jack 
 abou js!). I just read the parameter from the application object go to 
 the right place in my app and load the appropriate data from the server.
Do you do this after the page loads, or when the app is requested?


 What's needed now is a concrete example to follow, or a set of
 patterns
 or standards, or whatever, that will ease the development of this
 second
 view of your app's content.


 I think the server side code to do this is more than just a standard. 
 I think we need an entry point on the current adobe remoting products 
 for adding XML to the HTML response of a url with addition field or 
 query information.
For Adobe's products, a tool that would help developers build something 
like that into their content systems, would be useful.


 It would be nice if Google and Adobe (and whoever else) could get
 together and figure out what 

Re: [flexcoders] SEO Compatibility

2006-12-19 Thread Kevin Newman
hank williams wrote:

 I do know that the various search engines explicitly warn against
 cloaking (redirecting search results to different content), but for
 understandable reasons they don't go into much detail on their
 implementations.


 I am not suggesting this. I am just suggesting that when a url is sent 
 to the server that describes a particular  content set, for example a 
 particular myspace page like www.myspace.com/hank 
 http://www.myspace.com/hank that the server sends along invisible 
 html data that exactly matches what the swf is going to show once it 
 gets up and running.
I think the problem is that Flex or any single page web app doesn't use 
that style of url (which actually goes to the server and fetches another 
page). They tend to use hash based urls (#) to avoid page refreshes. So 
how to you reconcile the two url types - you don't want the 
Flex/Flash/etc. app refreshing every time the url changes, that's not 
cool. (more on this below).

 The sitemap thing solves an important half the problem. It identifies 
 the URLs that the spider should search. But then you need the server 
 to actually send indexable data/html when the given URLs are hit. And 
 what I am saying is that when one of these URLs are hit, that the 
 server needs to provide both the swf, and the invisible html that 
 contains the indexable data that you will see in the swf. This means 
 the content will be accessible in the swf, and accessible to the 
 search engines in html. This is the thrust of my earlier described 
 content.
That's correct, but how do you make sure to send the data back when your 
server recieves a hit for something like http://www.unfocus.com/#Contact 
- I'm not sure the hash portion of that url makes it to the server (I 
would be ecstatic to learn I'm wrong here) - or even that indexers 
(spiders) would use that part of the hash if it was in a link.

If spider bots are willing to run web apps (using whatever technology) 
and those apps are screen accessible, I guess it would be possible to 
actually index the content from within the app, but I'm just not sure 
how feasible such a setup would be (I have heard that google is playing 
with search tech that would load a copy of firefox and actually index 
based on what it's really displaying).

The other way is to just use two different link types, and Content views 
- one hash based (#foo=bar) for the client app (Flash/Flex/etc.), and 
one query string based (?foo=bar) for the html files that are indexed. 
And if we should avoid automatically forwarding the user from the query 
url to the hash url, then we are stuck presenting search engine users 
with html content, or loading the application, and refreshing the url at 
some point to main url (..com/?foo=bar#someother=location would just be 
wrong) and the app along with it (no seemless transition from a search 
engine link - which honestly, might not be the end of the world).

This is a tough nut. :-)

Kevin N.



[flexcoders] Checkbox MenuBar

2006-12-19 Thread Jeremy Rottman

I'm having trouble thinking of a way to accomplish the next step in my
application. Basically what we have right now is a menu bar that is created
from a mysql query. That part I have working fine. The next part that I'm
working on is a permission based system that say an admin were to login and
go to the menu bar admin screen and be able to select which items of the
menu a group has the ability to see. Now the easiest way I can think of
laying this out for the admin would be to just recreate the same menu with
the same queries but with checkboxes next to each menu item(including the
top level item that when clicked selects all children). Basically imitating
the TreeCheckBox component I have seen but in menu bar form. However I have
not been able to find any examples or even any talk about something like
this before. The reason I don't want to use the TreeCheckBox is because the
tree would be very long and cause a lot of scrolling with this many sub
items so really the best bet is to have something horizontal that I already
know fits the screen. Does anyone have any ideas of other components or
other ways that this task could be accomplished? Any help or opinions would
be much appreciated.


Re: [flexcoders] scheduled functions

2006-12-19 Thread Oliver Lietz
Am Montag, 18. Dezember 2006 22:00 schrieb Gordon Smith:
 You could do this using the Timer class in the flash.utils package. I'd
 create a Timer that fires once a minute, determines the clock time, and
 checks to see if there are any alarms to display.

Gordon,

I do something similar in my model to set (create) the current time for a 
desktop application. The application displays a running clock.
Below are the relevant snippets from my model class:

[...]
private var timer:Timer = new Timer(100, 0);

public var now:Date = new Date();
[...]
timer.addEventListener(timer, timerHandler);
timer.start();
[...]
private function timerHandler(timerEvent:TimerEvent):void {
now = new Date();
}

On Mac OS X the clock is always one second *ahead* (compared to the displayed 
time in the system panel under date/time). Is there a better way?

tia,
O.






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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] Re: SEO Compatibility

2006-12-19 Thread hank williams


 This it seems is not that interesting a question because it is the
 easy part. Flash/Flex apps can easily read data in the URL and go to
 the right place in the app which can then use remoting to get the data
 in the right format for the app.
Yeah, but it has to run to do that, and then the displayed data has to
be interpretable by the bot - if that can be standardized enough for a
spider to understand what it's got back from the server (maybe an event
system that says hey I'm ready to be indexed, or read me now -
screen readers have to be able to do this, so I guess it might be
possible), that's great, but I don't know if spiders will be that smart,
or if companies like google would be willing to build such a bot that
can run apps like that. I suppose it would be more ideal than two
different types of links into the app (hash # and query ?).

Of course the bot would still need to know how to crawl the site (where
to get urls) - I guess sitemaps.org could come in handy here. A smart
enough bot wouldn't even have to reload the app (if the app don't break
at least).



The html can definitely be formatted in such a way that bots can read it. I
am not at all an HTML, XHTML, or JS expert, but as I understand it from lots
of other folks this is no big deal.




 I think the easiest way to do that would be with a small snippet of
 JavaScript that would detect for Flash Player (or whatever the app
 requires) then location.replace you into the appropriate location
 within
 the application (which would need deep linking support, and there
many
 ways to do that now).


 This, it seems to me is more complicated than necessary. I do this in
 my current app without any javascript snippet (cuz I dont know jack
 abou js!). I just read the parameter from the application object go to
 the right place in my app and load the appropriate data from the server.
Do you do this after the page loads, or when the app is requested?



Well, I guess I dont know when it happens. In flex, when an app loads, you
can get the URL parameters in an object that is part of the applications
object. I guess that happens when the page loads and then the page loads the
swf.




 What's needed now is a concrete example to follow, or a set of
 patterns
 or standards, or whatever, that will ease the development of this
 second
 view of your app's content.


 I think the server side code to do this is more than just a standard.
 I think we need an entry point on the current adobe remoting products
 for adding XML to the HTML response of a url with addition field or
 query information.
For Adobe's products, a tool that would help developers build something
like that into their content systems, would be useful.


 It would be nice if Google and Adobe (and whoever else) could get
 together and figure out what these standards/patterns should look
 like,
 but there's no reason the development community can't get this
figured
 out. :-)



 I dont think google needs to do much here. If we can get the server
 product to easily allow XML to enhance the HTML response then googles
 indexing will just work.
I'd love to see this work in a concrete example. ;-)



Again, I am not an HTML expert, (Claus is really the guy that has the
expertise to be saying this) but this is really just the kind of stuff that
he has been talking about. I am just putting a little more specific meat on
the bone. I think Claus pointed to a flash website that does this that he
mentioned earlier in this thread.

Regards,
Hank


[flexcoders] Re: Call Document Style WebService in Flex 2

2006-12-19 Thread rd_grimes

Very cool, Ben. I gave it a whirl and got it to work with e4x. Much
better syntax than having to specify the
children().children().children() garbage.

I've been developing business apps in Flash 8 for the past year and a
half, and am just now converting over to using Flex 2. So, now it's a
bit of retooling for me, but I'm really loving Flex 2 so far.

So now I have a login web service like this:


import mx.rpc.soap.WebService;


import mx.rpc.events.ResultEvent;

import mx.rpc.events.FaultEvent;



// globals

public var sessionID:String = new String('');

public var partnerID:String = new String('');

public var statesArray:Array = new Array();

public var loginMessage:String = new String('');

public var ws:WebService = new mx.rpc.soap.WebService();



// Login user

public function login(event:flash.events.Event):void

{

var login:Object = new Object();

login.UserID = userID_txt.text.toUpperCase();

login.Password = password_txt.text.toUpperCase();



ws.useProxy = false;

ws.LoginOperation.addEventListener(result, loginResultHandler);

ws.LoginOperation.resultFormat = 'e4x';

ws.addEventListener(fault, loginFaultHandler);

ws.loadWSDL('https://myserver.com/Login.wsdl');

ws.LoginOperation(login);

}



public function loginResultHandler(event:ResultEvent):void

{

var xmlDoc:XML = new XML(ws.LoginOperation.lastResult);

sessionID = xmlDoc.*::[EMAIL PROTECTED];

partnerID = xmlDoc.*::[EMAIL PROTECTED];

var states:String = xmlDoc.*::[EMAIL PROTECTED];

loginMessage = xmlDoc.*::[EMAIL PROTECTED];

Alert.show('session: ' + sessionID + '\npartner: ' + partnerID +
'\nstates: ' + states + '\nmessage: ' + loginMessage);



// Convert states string to array

statesArray = states.split(',');



// Set up app based on user authorities

setAuthorities();



}



public function loginFaultHandler(event:FaultEvent):void { }



I guess what I'm wondering about now is there a cleaner way to handle
the result event? What I mean is that the event:ResultEvent that is
automatically passed to the handler seems a waste, since it is not
needed or referenced.

Thanks,



Ron



[flexcoders] SequenceCommands ... is there a point to their existence?

2006-12-19 Thread thegiffman
I'm building a live charting application which uses the Cairngorm
design pattern.  I'm running into a bit of an issue which I thought a
SequenceCommand might be just the ticket.  However, further
investigation has lead me to question not just the use of
SequenceCommands in this case, but their usefulness in general.

For me to create a new data set for the chart (which actually involves
two charts - one zoomed out fully and one zoomed in on an area), I
need to do several commands in sequence:

1 - create a data set with a unique id from the back end.
2 - query the back end for the coarse grain data.
3 - query the back end for the fine grain data.
4 - add the data set to the document model.

Basically these are four different commands that should be executed in
sequence.  And it makes sense from an architectural standpoint for
them to be separate - I can see wanting to query for fine data in
other situations than data set creation (like an update).

But here's the kicker - sequence commands don't really seem set up to
do this.  I can't really get at the commands themselves to set the
next event with the constructor, since the front controller handles
all this.  As such, the sequence command can really just do one action
- querying the back end for fine grain data will ALWAYS trigger an
event to add the data set.

To avoid this, I might include a flag in the event whether to stop or
go on to the next command.  But this raises the question - can't I do
this anyway with a call to the event dispatcher?  The value of having
sequence commands seems to be the ability to move to the next sequence
without the sequence being hardcoded.  Yet this functionality doesn't
really exist - it is hidden by the front controller.

Could someone set me straight here?



Re[2]: [flexcoders] Transform XML with external CSS styleSheet via htmlText

2006-12-19 Thread Andriy Panas
Dear Jason,

 Have you found a solution for this issue?  I can't seem to make this work
 either, although I used to do this all the time in Flash.  

Please, have a look at 
http://rantworld.blogs.com/flashlit/2006/08/styling_flex_te.html#more
--
With flex regards,
JabbyPanda


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! 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] bug: creationpolicy=all screws up grid column widths

2006-12-19 Thread Mike Anderson
I had the same problem too -
 
If you also set minWidth as well as width, this should solve your
problem.  Well, at least, it did for me - 
 
Please let me know if this fixes your problem.
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pan Troglodytes
Sent: Tuesday, December 19, 2006 11:37 AM
To: flexcoders
Subject: [flexcoders] bug: creationpolicy=all screws up grid column
widths


In the following code, there are two tab navigators with two pages of
grid each.  All the grids are coded identically.  They each have two
columns, the first of which has a fixed width of 50 and the second with
no fixed width.  The bug is that when you click on the second tab on the
first tab navigator, the grid does not obey the width setting for the
first column.  In the second tab navigator, it does.  The difference is
that the first has creationPolicy=all. 

?xml version=1.0 encoding=utf-8? 
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
  mx:TabNavigator width=300 height=200 creationPolicy=all
mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100% 
mx:columns  
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/ 
/mx:columns 
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2 
  mx:DataGrid width=100% height=100% 
mx:columns  
  mx:DataGridColumn headerText=Name width=50
dataField=name/ 
  mx:DataGridColumn headerText=Value dataField=value/ 
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
  mx:TabNavigator width=300 height=299 
mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100% 
mx:columns  
  mx:DataGridColumn headerText=Name width=50
dataField=name/ 
  mx:DataGridColumn headerText=Value dataField=value/ 
/mx:columns
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2 
  mx:DataGrid width=100% height=100% 
mx:columns   
  mx:DataGridColumn headerText=Name width=50
dataField=name/ 
  mx:DataGridColumn headerText=Value dataField=value/ 
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
/mx:Application 


-- 
Jason  


Re: [flexcoders] SEO Compatibility

2006-12-19 Thread hank williams

On 12/19/06, Kevin Newman [EMAIL PROTECTED] wrote:


hank williams wrote:

 I do know that the various search engines explicitly warn against
 cloaking (redirecting search results to different content), but
for
 understandable reasons they don't go into much detail on their
 implementations.


 I am not suggesting this. I am just suggesting that when a url is sent
 to the server that describes a particular  content set, for example a
 particular myspace page like www.myspace.com/hank
 http://www.myspace.com/hank that the server sends along invisible
 html data that exactly matches what the swf is going to show once it
 gets up and running.
I think the problem is that Flex or any single page web app doesn't use
that style of url (which actually goes to the server and fetches another
page). They tend to use hash based urls (#) to avoid page refreshes. So
how to you reconcile the two url types - you don't want the
Flex/Flash/etc. app refreshing every time the url changes, that's not
cool. (more on this below).

 The sitemap thing solves an important half the problem. It identifies
 the URLs that the spider should search. But then you need the server
 to actually send indexable data/html when the given URLs are hit. And
 what I am saying is that when one of these URLs are hit, that the
 server needs to provide both the swf, and the invisible html that
 contains the indexable data that you will see in the swf. This means
 the content will be accessible in the swf, and accessible to the
 search engines in html. This is the thrust of my earlier described
 content.
That's correct, but how do you make sure to send the data back when your
server recieves a hit for something like http://www.unfocus.com/#Contact
- I'm not sure the hash portion of that url makes it to the server (I
would be ecstatic to learn I'm wrong here) - or even that indexers
(spiders) would use that part of the hash if it was in a link.



I dont think you need to use the hash based URL for the indexing thing. The
reason is that I dont think you need to use visible URLs to do this. The
only place these URLs would appear is in the sitemap, because all we are
concerned about is indexing. So you use a regular url using  ?foo=bar. When
the bot calls the URL, the server recognizes it and sends the additonal data
in the html wrapper, *and* the swf also gets the URL in the application
object so that the flex app can navigate to the appropriate screen and
dataset, possibly making a remoting call. I know this works because not
including the sitemap and the hiding of data in the html, I do this in my
current app. I am depending on Claus for the hiding of the data in the html
:).


If spider bots are willing to run web apps (using whatever technology)

and those apps are screen accessible, I guess it would be possible to
actually index the content from within the app, but I'm just not sure
how feasible such a setup would be (I have heard that google is playing
with search tech that would load a copy of firefox and actually index
based on what it's really displaying).



This seems way too complex to me. I think, as you suggest, it is
questionable whether one could make it work.

The other way is to just use two different link types, and Content views

- one hash based (#foo=bar) for the client app (Flash/Flex/etc.), and
one query string based (?foo=bar) for the html files that are indexed.
And if we should avoid automatically forwarding the user from the query
url to the hash url, then we are stuck presenting search engine users
with html content, or loading the application, and refreshing the url at
some point to main url (..com/?foo=bar#someother=location would just be
wrong) and the app along with it (no seemless transition from a search
engine link - which honestly, might not be the end of the world).



I think your basic thought here is right, and not too bad. For indexing you
use ?foo=bar. The user never needs to see this except in google as the link,
though if he did, and he used it, it would work no problem.
#foo=bar would be used for internal linking and what you see in the nav bar
when you navigate around the app. This doesnt seem too bad to me.

This is a tough nut. :-)


Aw come on... its not that bad - I think we are making good progress here!

Hank


Re: [flexcoders] SequenceCommands ... is there a point to their existence?

2006-12-19 Thread Ralf Bokelberg

Some time back there was a version of the frontcontroller, which registered
command instances instead of the command class. I guess the current sequence
command is leftover from this version.
Cheers,
Ralf.


On 12/19/06, thegiffman [EMAIL PROTECTED] wrote:


  I'm building a live charting application which uses the Cairngorm
design pattern. I'm running into a bit of an issue which I thought a
SequenceCommand might be just the ticket. However, further
investigation has lead me to question not just the use of
SequenceCommands in this case, but their usefulness in general.

For me to create a new data set for the chart (which actually involves
two charts - one zoomed out fully and one zoomed in on an area), I
need to do several commands in sequence:

1 - create a data set with a unique id from the back end.
2 - query the back end for the coarse grain data.
3 - query the back end for the fine grain data.
4 - add the data set to the document model.

Basically these are four different commands that should be executed in
sequence. And it makes sense from an architectural standpoint for
them to be separate - I can see wanting to query for fine data in
other situations than data set creation (like an update).

But here's the kicker - sequence commands don't really seem set up to
do this. I can't really get at the commands themselves to set the
next event with the constructor, since the front controller handles
all this. As such, the sequence command can really just do one action
- querying the back end for fine grain data will ALWAYS trigger an
event to add the data set.

To avoid this, I might include a flag in the event whether to stop or
go on to the next command. But this raises the question - can't I do
this anyway with a call to the event dispatcher? The value of having
sequence commands seems to be the ability to move to the next sequence
without the sequence being hardcoded. Yet this functionality doesn't
really exist - it is hidden by the front controller.

Could someone set me straight here?

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany


Re: [flexcoders] bug: creationpolicy=all screws up grid column widths

2006-12-19 Thread Pan Troglodytes

Unfortunately, that doesn't work here.  You can try it out for yourself in
the example.

On 12/19/06, Mike Anderson [EMAIL PROTECTED] wrote:


   I had the same problem too -

If you also set minWidth as well as width, this should solve your
problem.  Well, at least, it did for me -

Please let me know if this fixes your problem.

Mike

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Pan Troglodytes
*Sent:* Tuesday, December 19, 2006 11:37 AM
*To:* flexcoders
*Subject:* [flexcoders] bug: creationpolicy=all screws up grid column
widths

In the following code, there are two tab navigators with two pages of grid
each.  All the grids are coded identically.  They each have two columns, the
first of which has a fixed width of 50 and the second with no fixed width.
The bug is that when you click on the second tab on the first tab navigator,
the grid does not obey the width setting for the first column.  In the
second tab navigator, it does.  The difference is that the first has
creationPolicy=all.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:TabNavigator width=300 height=200 creationPolicy=all
mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
  mx:TabNavigator width=300 height=299
mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2
  mx:DataGrid width=100% height=100%
mx:columns
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value dataField=value/
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
/mx:Application


--
Jason

 





--
Jason


RE: [flexcoders] bug: creationpolicy=all screws up grid column widths

2006-12-19 Thread Mike Anderson
I think I also had creationPolicy set to auto as well, for my side...
 
I just wanted to throw my initial thoughts out there, in order to see if
that could be a quick fix for you.
 
Bottom line is, I went through the same crap myself, and after playing
around with a few different settings, I finally got everything working
properly.  All apps that I write, make extensive use of Tab Navigators -
so if there is a problem out there relating to this control, I have
experienced it.
 
Sorry if my suggestions don't help you - but the problem definitely
relates to timing issues - and can eventually be fixed, if you can find
out where the problem is occurring, and then forcing the DataGrid to
create itself at a more appropriate time.
 
Hope this helps a tad...
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Pan Troglodytes
Sent: Tuesday, December 19, 2006 6:27 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] bug: creationpolicy=all screws up grid column
widths


Unfortunately, that doesn't work here.  You can try it out for yourself
in the example.


On 12/19/06, Mike Anderson  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 



I had the same problem too -
 
If you also set minWidth as well as width, this should solve
your problem.  Well, at least, it did for me - 
 
Please let me know if this fixes your problem.
 
Mike



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes
Sent: Tuesday, December 19, 2006 11:37 AM
To: flexcoders
Subject: [flexcoders] bug: creationpolicy=all screws up grid
column widths



In the following code, there are two tab navigators with two
pages of grid each.  All the grids are coded identically.  They each
have two columns, the first of which has a fixed width of 50 and the
second with no fixed width.  The bug is that when you click on the
second tab on the first tab navigator, the grid does not obey the width
setting for the first column.  In the second tab navigator, it does.
The difference is that the first has creationPolicy=all. 

?xml version=1.0 encoding=utf-8? 
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  
  mx:TabNavigator width=300 height=200
creationPolicy=all
mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100% 
mx:columns  
  mx:DataGridColumn headerText=Name width=50
dataField=name/
  mx:DataGridColumn headerText=Value
dataField=value/ 
/mx:columns 
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2 
  mx:DataGrid width=100% height=100% 
mx:columns  
  mx:DataGridColumn headerText=Name width=50
dataField=name/ 
  mx:DataGridColumn headerText=Value
dataField=value/ 
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
  mx:TabNavigator width=300 height=299 
mx:Canvas label=Tab1
  mx:DataGrid width=100% height=100% 
mx:columns  
  mx:DataGridColumn headerText=Name width=50
dataField=name/ 
  mx:DataGridColumn headerText=Value
dataField=value/ 
/mx:columns
  /mx:DataGrid
/mx:Canvas
mx:Canvas label=Tab2 
  mx:DataGrid width=100% height=100% 
mx:columns   
  mx:DataGridColumn headerText=Name width=50
dataField=name/ 
  mx:DataGridColumn headerText=Value
dataField=value/ 
/mx:columns
  /mx:DataGrid
/mx:Canvas
  /mx:TabNavigator
/mx:Application 


-- 
Jason 








-- 
Jason  


[flexcoders] Populating Multiple Levels of Branches

2006-12-19 Thread Kyle Hayes
I am quite new to Flex and was planning on learning it very soon  
which ended up being sooner than I thought because of a project that  
could really use it. So here I am.

The application I am designing needs to display a hierarchal list of  
codes. All the codes are related to each other in that one is abover  
another.

For example the structure resembles the following:

AA
AAA
AAB
AABA
AABB
AABC
AABCA
AABCB
AABCC
AABCD
AABD
AAC
AAD
AB
ABA
ABB
ABC
ABD
ABE
ABF

Inside my database there is a table that raggedly displays this data  
in 11 columns (the 11 levels)

1   2   3   4   
5   6   7   
8   9   10  11
AA  AAA
AA  AAB AABA
AA  AAB AABB
AA  AAB AABCAABCA
AA  AAB AABCAABCB

etc

So I want to query this data in which case I have already built a  
function in ColdFusion to return the DISTINCT items for a level that  
I specify

Which in my example would produce

AA
AB

for level 1

I am able to return that much to a tree and have it display the  
folders by adding a column pragmatically to the Query called  
children. There are 10s of thousands of records in this table so I  
do not want to grab all this data at once. I want the next level for  
a specified entity to be pulled from the CFC when I click it. How do  
I append this information to a folder item?

Thanks a bunch!
-Kyle


  1   2   >