Re: [flexcoders] Problem with binding of selectedIndex proprty in Combobox Component

2006-07-27 Thread Martina Smith



Thank Ralf,Could you please elaborate on this?I am using cairngorm architecture. According to this architecture, the command should modify the model, and the view willreceive the updated values through binding with model. The problem here is that the model has the updated values, but the view is not refreshed with the latest values.I tried using callLater function but it did not silve the problem. One more problem with callLater is that it works only with UIComponent.Thanks  Regards,  Martina.Ralf Bokelberg [EMAIL PROTECTED] wrote:  Hi Martina, you could try to set the selectedIndex using callLater after the dataProvider has changed. Cheers,Ralf.   On 7/24/06, Martina Smith martina_smith_[EMAIL PROTECTED]co.in wrote:Hi,I am using the ComboBox component (mx:ConboBox) in flex 2.0. I am attaching the dataprovider to the combobox by the bind property. The Dataprovider is actually an array. The items in the dataprovider get refreshed dynamically. Here is how I populate the
 combobox items:  mx:ComboBox id="contactListDropDown" selectedIndex="{TestModelLocator.getInstance ().selectedUserIndexAsNumber}" dataProvider="{TestModelLocator.getInstance().dataProviderArray}" change="contactListChangeHandler(event)"/ I want to maintain the old selectedIndex everytime I refresh the dataprovider.The problem I am facing is that the 'selectedIndex' property is not getting refreshed even if I store the old value. The ' selectedIndex' resets to 0 once the dataprovider is refreshed.I need to get this thing solved as my functionality depends on the current selected index of the combobox.Thanks in Advance,   
 MartinaFind out what India is talking about on Yahoo! Answers India.   -- Ralf Bokelberg ralf.bokelberg@gmail.comFlex  Flash Consultant based in Cologne/Germany
	

	
		 
Here’s a new way to find what you're looking for - Yahoo! Answers 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Formatting a bound ArrayCollection in a model

2006-07-27 Thread polestar11
Hi there

I have an ArrayCollection value in my model class, which I would like
to run through a formatter function in my view. This method works with
a string, but performs strangely for a collection, where:
1) The format function is never called on update
2) The bound control reflects the update if I return the
ArrayCollection reference from the function, and doesn't reflect the
update if I return a reference to a different object (even though the
function is never called)


View:
 snip ---
// formatting function 
public function formatTree(data:ArrayCollection) {
data.addItem(new MoveVO());
return data;
}
 /snip ---
 snip ---
// tree control
mx:Tree id=moveTree x=203 y=2
dataProvider={formatTree(model.currentMoves)} labelField=text
height=190 width=193/mx:Tree


 /snip ---

I have also tried using a mx:Binding tag to perform the operation,
as well as Paul Williams 'smallest tag'*, both of which do not reflect
an update to the ArrayCollection value. Trying to follow up on this in
the documentation I found the following, which seems to imply that the
formatting function should work:

You can use ActionScript functions as the source of binding
expressions. You usually do this when using a bindable property as an
argument of a function. When the bindable property changes, the
function executes, and the result is used in the binding destination ...

Regards
Tracy

*http://weblogs.macromedia.com/paulw/archives/2006/05/the_worlds_smal.cfm






--
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/

* 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: [Junk E-Mail - LOW] RE: [flexcoders] How does Flex 2.0 handle ColdFusion Query results?

2006-07-27 Thread Shannon Hicks





Try this instead:

categories = new 
ArrayCollection(event.result);
Shan




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Mike 
AndersonSent: Thursday, July 27, 2006 12:57 AMTo: 
flexcoders@yahoogroups.comSubject: [Junk E-Mail - LOW] RE: 
[flexcoders] How does Flex 2.0 handle ColdFusion Query 
results?



Hello Shannon :)

Yes, I am doing precisely that. I was trying to avoid 
posting code, but it's the easiest way to show you everything I am trying to 
do. You can assume too, that yes I am bringing back a valid RecordSet from 
ColdFusion, and the FieldNames match up exactly with what was brought 
back. Since the data is all there, Flex for some reason, is not iterating 
through all the data and parsing it out properly. I just have a hard time 
with this - since this works fine with my Flash Remoting app, and that I am 
bringing back a native Query Object from ColdFusion. I must be missing 
something, or am not properly casting something. As far as I can tell, I 
am properly coding the Grid Columns - but maybe I am not... One last thing 
- I am running something similar to Flash's NetConnection Debugger - and I am 
for sure getting back a valid response from the CF Server - an Array of Objects, 
all properly formatted and casted.

If you could shed further light, as to why no data shows up 
in my DataGrid when the app runs, I'd be very grateful :)

Thanks - Mike

=

?xml version="1.0" 
encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"initialize="remoteService.getCategories()"mx:Script![CDATA[import 
mx.rpc.events.*;import 
mx.collections.*;[Bindable]public 
var categories:ArrayCollection;public 
function 
getCategories_Handler(event:ResultEvent):void{categories 
= new ArrayCollection(event.result as 
Array);}]]/mx:Scriptmx:RemoteObject 
id="remoteService"destination="ColdFusion"source="infonexus.services.infoNexus"showBusyCursor="true"mx:method 
name="getCategories" 
result="getCategories_Handler(event)"//mx:RemoteObjectmx:Panel 
left="10" top="10" bottom="10" right="10" title="Welcome to the Information 
Nexus"mx:DataGrid 
id="categoriesGrid" dataProvider="{categories}" width="100%" 
height="100%" 
borderStyle="none"mx:columnsmx:Arraymx:DataGridColumn 
headerText="Icon ID" dataField="IconID" 
/mx:DataGridColumn 
headerText="Icon Filename" dataField="IconFileName" 
/mx:DataGridColumn 
headerText="Icon Name" dataField="IconName" 
//mx:Array/mx:columns/mx:DataGrid/mx:Panel/mx:Application


From: [EMAIL PROTECTED]ups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Shannon 
HicksSent: Thursday, July 27, 2006 12:17 AMTo: 
[EMAIL PROTECTED]ups.comSubject: RE: [flexcoders] How does 
Flex 2.0 handle ColdFusion Query results?

When you get a query back from a CFC via the flexgateway, 
you should cast it as an ArrayCollection right there...

someFunction(event:EventResult):void 
{
 myArrayCollection = event.result as 
ArrayCollection;
}

Shan


From: [EMAIL PROTECTED]ups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Mike 
AndersonSent: Thursday, July 27, 2006 12:13 AMTo: 
[EMAIL PROTECTED]ups.comSubject: [flexcoders] How does Flex 
2.0 handle ColdFusion Query results?


Hello All,I finally got my Flex Remoting working properly, and now I 
am portingall my Flash Applications over to Flex 2.0 as well as reusing all 
myexisting .CFC's (since they all worked fine for Flash 
Remoting).The problem is, Flex 2.0 doesn't properly display my data - 
for example,in my DataGrid control, when I set my dataProvider property. 
ThedataProvider variable which is bound to the DataGrid, is cast as 
an"ArrayCollection" - and of course, after I get the "result" of 
myRemoting Call, I set the variable to "event.result As Array".This 
code works fine, for another Remoting project I am working on - butin that 
project, I am sending "Typed Objects" back and forth (whichreside both in 
the App itself, and the ColdFusion server).Before I start posting code, 
I'd like to first begin this thread byasking a general question:How 
should I cast Flex 2.0 variables, that will contain "Query" Objects(or 
RecordSet Objects, for you Flashers out there) returned from aColdFusion 
server?I have a "Service Browser" program running, during execution of 
my FlexApp, and I am getting a valid Remoting Result back from the 
server.It's basically an Array of Objects, with each Object 
containingRecordSet Data.Thanks in advance for any advice you can 
throw my way.Mike
--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/399 - Release Date: 
7/25/2006
--No virus found in this outgoing message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/399 - Release Date: 
7/25/2006

--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/399 - Release Date: 
7/25/2006
__._,_.___





--
Flexcoders Mailing 

[flexcoders] Re: Flex AMFPHP and VOs

2006-07-27 Thread Renaun Erickson
Stefan,

The RemoteObjectAMF0 source and sample code have just been updated to
reflect the latest Cairngorm, which you can get off the labs.adobe.com
site.  

Have fun,

Renaun

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

 --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote:
 
  I have updated the RemoteObjectAMF0 examples to demonstrate it working
  with out the error.  
 
 Thank you very much. I successfully tested your example. Just two
things:
 
 1. Since you use the old org.nevis namespace for the Cairngorm
 package I assume this is an older Cairngorm version. I tried to
 replace your Cairngorm package with the current com.adobe Cairngorm
 implementation but then your example stopped working (although I added
 getRPCService() to the Cairngorm ServiceLocator).
 
 2. Another thing that confused me was the fact that the VOs reside in
 two different places:
 
 org.nevis.cairngorm.samples.login.vo.LoginVO.as
 com.renaun.samples.vo.BookVO.as
 
 I guess these are typical complaints from a newbie. ;-) So no offense
 here. I'm grateful that you share your knowledge with us!
 
 Stefan








--
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/

* 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] Problem with binding of selectedIndex proprty in Combobox Component

2006-07-27 Thread Ralf Bokelberg



Hi Martina, whenever the dataprovider is updated, you need to refresh the selectedIndex. You can use a binding function for this. This should work with cairngorm also. Here is a little example. ?xml version=
1.0 encoding=utf-8?mx:Application  xmlns:mx=http://www.adobe.com/2006/mxml  layout=vertical 
 mx:Script  ![CDATA[   import mx.collections.ArrayCollection;   import mx.binding.utils.ChangeWatcher; private var generation : int = 0;
 [Bindable]   private var dataProvider : ArrayCollection = createData();  [Bindable]   private var selectedIndex : int = 0;   
   private function createData() : ArrayCollection   {generation++;var result : ArrayCollection = new ArrayCollection();for( var i : int = 0; i  10; i++ )
{ result.addItem( item  + i + : + generation);}return result;   }  private function onChange( event : Event ) : void
   {selectedIndex = event.target.selectedIndex;   }  private function assignDataProvider() : void   {dataProvider = createData();
   }  private function assignSelectedIndex() : void   {cb.selectedIndex = selectedIndex;   }   private function onUpdateDataProvider( dp : Object ) : Object   
   {cb.callLater( assignSelectedIndex );return dp;   }  ]] /mx:Script   mx:ComboBox id=cb 
  dataProvider={ onUpdateDataProvider( dataProvider )}   selectedIndex={ selectedIndex }  change=onChange( event )  / mx:Button   label=assign new data
  click=assignDataProvider();   //mx:ApplicationCheers,Ralf. On 7/27/06, Martina Smith 
[EMAIL PROTECTED] wrote:



Thank Ralf,Could you please elaborate on this?I am using cairngorm architecture. According to this architecture, the command should modify the model, and the view willreceive the updated values through binding with model. 
The problem here is that the model has the updated values, but the view is not refreshed with the latest values.I tried using callLater function but it did not silve the problem. One more problem with callLater is that it works only with UIComponent.
Thanks  Regards,  Martina.Ralf Bokelberg 
[EMAIL PROTECTED] wrote:  Hi Martina, 
you could try to set the selectedIndex using callLater after the dataProvider has changed. Cheers,Ralf.   On 7/24/06, Martina Smith 
[EMAIL PROTECTED] wrote:  
  Hi,I am using the ComboBox component (mx:ConboBox) in flex 2.0. I am attaching the dataprovider to the combobox by the bind property. The Dataprovider is actually an array. The items in the dataprovider get refreshed dynamically. 
Here is how I populate the
 combobox items:  mx:ComboBox id=contactListDropDown selectedIndex={TestModelLocator.getInstance ().selectedUserIndexAsNumber} dataProvider={TestModelLocator.getInstance
().dataProviderArray} change=contactListChangeHandler(event)/ I want to maintain the old selectedIndex everytime I refresh the dataprovider.  
  The problem I am facing is that the 'selectedIndex' property is not getting refreshed even if I store the old value. The ' selectedIndex' resets to 0 once the dataprovider is refreshed.
I need to get this thing solved as my functionality depends on the current selected index of the combobox.Thanks in Advance,   
 MartinaFind out what India is talking about on 
Yahoo! Answers India.   -- Ralf Bokelberg 
[EMAIL PROTECTED]Flex  Flash Consultant based in Cologne/Germany   
 
	

	
		 
Here's a new way to find what you're looking for - 
Yahoo! Answers 



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

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] How does Flex 2.0 handle ColdFusion Query results?

2006-07-27 Thread Dekayd
I don't know if this is still true with CF 7.0.2 but if I remember
correctly CF returns column names in all uppercase.

That might be why your columns in the datagrid don't display anything.

--Kelly




--
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/

* 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] [Flex2 final] Application look blury when using FlashType

2006-07-27 Thread Carlos Rovira



Thanks for listen Matt,I know there are many task in works now, only knowing that Adobe has this thing into account and thinking in the best way to do it is great.Thanks for the support.C.
On 7/27/06, Matt Chotin [EMAIL PROTECTED] wrote:













  














Don't get your hopes up on this happening
soon (like before our next updater). We certainly understand the value in
doing something like this but we have a ton of other tasks that have to take
higher priority right now.



I'm not sure we're announcing when we
think the first updater will come out, we're fixing bugs and reviewing what we
see out in the field and coordinating among all the teams.



Matt











From:
[EMAIL PROTECTED]ups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Carlos Rovira
Sent: Wednesday, July 26, 2006
12:31 AM
To: [EMAIL PROTECTED]ups.com
Subject: Re: [flexcoders] [Flex2
final] Application look blury when using FlashType











Hi Stacy,

Thanks for your response. Hope Adobe release an updater soon with fixes all the
bugs currently known. Remember talk some weeks ago in this list about the
possibility to have a SVN or another way to get updates quickly so people don't
have to wait untile next relase. 

Someone at Adobe could give some insight about those plans?

Thanks.

C.



On 7/26/06, Stacy
Young 
[EMAIL PROTECTED] wrote:














Yes, few known problems
with FlashType in Flex L
 


Blurry, offset a few
pixels …





Stace














From:
[EMAIL PROTECTED] ups.com [mailto:
[EMAIL PROTECTED] ups.com] On Behalf Of 
Carlos Rovira
Sent: Tuesday, July 25, 2006 4:49
PM
To: [EMAIL PROTECTED]ups.com

Subject: [flexcoders] [Flex2
final] Application look blury when using FlashType













Hi,

I create an Arial font face with Flash 8 to use the new FlashType with antialias
advanced. It was all ok for a while, and fonts look so good, but now I'm
starting to experience that controls and containers in the application looks a
little blured and even I can see a strange grey lines as tooltips renders or
list in comboboxes pops. If I remove the FlashType font all loks good. 

Someone notice something like that? there's a know bug out there?

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













 
  

  AVIS IMPORTANT
  
  

  WARNING
  
 
 
  
  Ce message électronique et ses pièces jointes
  peuvent contenir des renseignements confidentiels, exclusifs ou légalement
  privilégiés destinés au seul usage du destinataire visé. L'expéditeur
  original ne renonce à aucun privilège ou à aucun autre droit si le présent
  message a été transmis involontairement ou s'il est retransmis sans son
  autorisation. Si vous n'êtes pas le destinataire visé du présent message ou
  si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et
  le supprimer, ainsi que toutes ses pièces jointes, de votre système. La
  lecture, la distribution, la copie ou tout autre usage du présent message ou
  de ses pièces jointes par des personnes autres que le destinataire visé ne
  sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
  électronique par erreur, veuillez en aviser l'expéditeur. 
  
  
  This electronic message and its attachments
  may contain confidential, proprietary or legally privileged information,
  which is solely for the use of the intended recipient. No privilege or other
  rights are waived by any unintended transmission or unauthorized
  retransmission of this message. If you are not the intended recipient of this
  message, or if you have received it in error, you should immediately stop
  reading this message and delete it and all attachments from your system. The
  reading, distribution, copying or other use of this message or its
  attachments by unintended recipients is unauthorized and may be unlawful. If
  you have received this e-mail in error, please notify the sender. 
  
 





















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










  













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

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Cairngorm Events

2006-07-27 Thread Tom Chiverton
On Wednesday 26 July 2006 16:56, JesterXL wrote:
 Not anymore, no, as he's usually embedded at the top of the tree.  

I'm not sure what you mean.

 could utilize ViewLocator I guess, but that is bleh.

Indeed. We tend to pass the view into the event instead.

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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] Adobe guys - Support Issue

2006-07-27 Thread Tom Chiverton
On Wednesday 26 July 2006 18:25, Nick Collins wrote:
 tried downloading Eclipse 3.1.2 and replacing all the core features and
 plugins. 

Don't do that.
Just add the Flex Builder plugins to it 

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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] Cleaning a file in eclipse ?

2006-07-27 Thread Jean-Luc ESSER





Hi all !

I'm not talking about about the 'clean project' 
here.

Is there a way to clean your file for all unused 
imports for exemple ?
I know this is somehow possible in Java in eclipse, 
but it doesn't seem to work with Flex.

Best,
Jean-Luc
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] Cleaning a file in eclipse ?

2006-07-27 Thread Benoit Hediard





Hello Jean-Luc!

Nice to see you here... ;)

In .as files, you can re-organize your imports with 
Ctrl+Shift+O (very cool), but unfortunately, it does notclean the unused 
ones...
In .mxml files, nothing to re-orgnaize your imports 
yet...

I suppose that this kind of features as well as 
re-factoring are high on the enhancements list of the Flex Builder team for a 
future release.

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Jean-Luc 
ESSEREnvoyé: jeudi 27 juillet 2006 10:55À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Cleaning a file 
in eclipse ?

Hi all !

I'm not talking about about the 'clean project' 
here.

Is there a way to clean your file for all unused 
imports for exemple ?
I know this is somehow possible in Java in eclipse, 
but it doesn't seem to work with Flex.

Best,
Jean-Luc 
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Identifying tree item (right click)

2006-07-27 Thread Torben Nielsen










Hi,



I have been asked by a client to integrate the following functionality
in an application with a Tree component.

Custom context menu with the following items:



Delete item

Duplicate item



With item I mean an item within the tree.

My problem is as follows:



How do I identify which item in the tree was right clicked?



Thanks.



Torben








__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





[flexcoders] Re: flex2 final - CheckBox itemrenderer question

2006-07-27 Thread bhaq1972
I found a way to make it generic. all i did was implement 
IDropInListItemRenderer (code below).

so now u can have 

mx:DataGridColumn dataField=any itemRenderer=myCheckBox/
mx:DataGridColumn dataField=name itemRenderer=myCheckBox/
mx:DataGridColumn dataField=you itemRenderer=myCheckBox/
mx:DataGridColumn dataField=like itemRenderer=myCheckBox/
mx:DataGridColumn dataField=focusIn itemRenderer=myCheckBox/

you can replace the following code
if(data.focusIn) 
checkbox1.selected = data.focusIn;
if(data.any)
checkbox1.selected = data.any;
etc

instead u can do 

var myListData:DataGridListData = DataGridListData(listData);
var myDataField:String = myListData.dataField;

checkbox1.selected = data[myDataField];


MyCheckBox
--
mx:HBox implements=mx.controls.listClasses.IDropInListItemRenderer
 preinitialize =initTA(); horizontalAlign=center

mx:Script
   // Internal variable for the property value.
   private var _listData:BaseListData;

   // Make the listData property bindable.
   [Bindable(dataChange)]

   // Define the getter method.
   public function get listData():BaseListData
   {
 return _listData;
   }

// Define the setter method,
public function set listData(value:BaseListData):void
{
  _listData = value;
}

public function initTA():void 
{ 
   this.addEventListener(dataChange, handleDataChanged);
}

public function handleDataChanged(event:Event):void 
{ 
   // Cast listData to DataGridListData. 
   var myListData:DataGridListData = DataGridListData(listData);
   var myDataField:String = myListData.dataField;

   checkbox1.selected = data[myDataField];
}
/mx:Script

mx:CheckBox id=checkBox1 /

/mx:HBox


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

 thanks for the input guys. But i have one issue.
 
 In your example Tim, your checkbox item renderer is binding onto 
 the 'followUp' property of the dataProvider.
 eg
 
 mx:CheckBox id=cbFollowUp selected={data.followUp}/
 
 'followUp' is the name of your dgcolumn dataField. So wouldn't it 
be 
 better and more generic if you could do 
 
 mx:CheckBox id=cbFollowUp selected={data.dataField}/
 
 i'm applying this renderer across many datagrids and the dataField 
 name isn't the same.
 
 regards
 
 Bod
 
 
 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
  
  In addition to Ben's example for the label, here's a sample for 
the
  selected value:
  
  http://www.cflex.net/showfiledetails.cfm?
 ChannelID=1Object=FileobjectI\
  D=443
  http://www.cflex.net/showfiledetails.cfm?
 ChannelID=1Object=Fileobject\
  ID=443
  
  -TH
  
  --- In flexcoders@yahoogroups.com, ben.clinkinbeard
  ben.clinkinbeard@ wrote:
  
   mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
   horizontalAlign=center
  
   mx:CheckBox id=checkbox1 label=data.myLabelField /
  
   /mx:HBox
  
   --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
   
i have a checkbox renderer like this.
   
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
horizontalAlign=center
   
mx:CheckBox id=checkbox1/
   
/mx:HBox
   
How do i get access to the DataGridColumn its being 
referenced 
 in ie
   
mx:DataGridColumn dataField=col1 
 itemRenderer=myCheckBox /
   
i want to access the dataField.
   
   
regards
Bod
   
  
 








--
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/

* 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: flex2 final - CheckBox itemrenderer question

2006-07-27 Thread Tim Hoff
Absolutely,

That sample, at the time, was designed to illustrate itemRenderers.  
The better way to do it, would be to dispatch custom events.  Glad 
that it got you moving in the right direction; to come up with a 
better solution.

Cool,
-TH

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

 I found a way to make it generic. all i did was implement 
 IDropInListItemRenderer (code below).
 
 so now u can have 
 
 mx:DataGridColumn dataField=any itemRenderer=myCheckBox/
 mx:DataGridColumn dataField=name itemRenderer=myCheckBox/
 mx:DataGridColumn dataField=you itemRenderer=myCheckBox/
 mx:DataGridColumn dataField=like itemRenderer=myCheckBox/
 mx:DataGridColumn dataField=focusIn itemRenderer=myCheckBox/
 
 you can replace the following code
 if(data.focusIn) 
 checkbox1.selected = data.focusIn;
 if(data.any)
 checkbox1.selected = data.any;
 etc
 
 instead u can do 
 
 var myListData:DataGridListData = DataGridListData(listData);
 var myDataField:String = myListData.dataField;
 
 checkbox1.selected = data[myDataField];
 
 
 MyCheckBox
 --
 mx:HBox 
implements=mx.controls.listClasses.IDropInListItemRenderer
  preinitialize =initTA(); horizontalAlign=center
 
 mx:Script
// Internal variable for the property value.
private var _listData:BaseListData;
   
// Make the listData property bindable.
[Bindable(dataChange)]
 
// Define the getter method.
public function get listData():BaseListData
{
  return _listData;
}
   
 // Define the setter method,
 public function set listData(value:BaseListData):void
 {
   _listData = value;
 }
 
 public function initTA():void 
 { 
this.addEventListener(dataChange, handleDataChanged);
 }
 
 public function handleDataChanged(event:Event):void 
 { 
// Cast listData to DataGridListData. 
var myListData:DataGridListData = DataGridListData
(listData);
var myDataField:String = myListData.dataField;
 
checkbox1.selected = data[myDataField];
 }
 /mx:Script
 
 mx:CheckBox id=checkBox1 /
 
 /mx:HBox
 
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  thanks for the input guys. But i have one issue.
  
  In your example Tim, your checkbox item renderer is binding onto 
  the 'followUp' property of the dataProvider.
  eg
  
  mx:CheckBox id=cbFollowUp selected={data.followUp}/
  
  'followUp' is the name of your dgcolumn dataField. So wouldn't 
it 
 be 
  better and more generic if you could do 
  
  mx:CheckBox id=cbFollowUp selected={data.dataField}/
  
  i'm applying this renderer across many datagrids and the 
dataField 
  name isn't the same.
  
  regards
  
  Bod
  
  
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
   
   In addition to Ben's example for the label, here's a sample 
for 
 the
   selected value:
   
   http://www.cflex.net/showfiledetails.cfm?
  ChannelID=1Object=FileobjectI\
   D=443
   http://www.cflex.net/showfiledetails.cfm?
  ChannelID=1Object=Fileobject\
   ID=443
   
   -TH
   
   --- In flexcoders@yahoogroups.com, ben.clinkinbeard
   ben.clinkinbeard@ wrote:
   
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
horizontalAlign=center
   
mx:CheckBox id=checkbox1 label=data.myLabelField /
   
/mx:HBox
   
--- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:

 i have a checkbox renderer like this.

 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
 horizontalAlign=center

 mx:CheckBox id=checkbox1/

 /mx:HBox

 How do i get access to the DataGridColumn its being 
 referenced 
  in ie

 mx:DataGridColumn dataField=col1 
  itemRenderer=myCheckBox /

 i want to access the dataField.


 regards
 Bod

   
  
 







--
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/

* 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] Cairngorm: Managing Popup Windows

2006-07-27 Thread Stefan Schmalhaus
I've done some research on this list but haven't found any valid
information on what's considered best pratice in dealing with popup
windows. The few Cairngorm sample apps that are around don't seem to
use the TitleWindow component at all.

Let's say I have a simple DataGrid populated with some user data. If I
click on a row in the DataGrid a popup window opens with a form for
editing the user information. The popup window also has two buttons
for deleting or saving (updating) the user account. 

I have done stuff like this several times in Flash/AS2 but I've never
used a framework approach so far. Now, if I look at this rather simple
task from a Cairngorm perspective it doesn't seem to be that simple
any more. (But I guess that's because I'm not yet too familiar with
Cairngorm.) I know how to establish databinding between the data
provider and {model.users} and all this basic Cairngorm stuff. 

But what happens when a row is clicked? I'm not even sure if I'm
supposed to treat this event as a single event (selectUser or
openPopup?) or as a chain of two events (selectUser -
openPopup). Since my user information is organized as an array of
value objects it's easy to assign the selected user VO to
model.selectedUser: 

model.selectedUser = UserVO(userList.selectedItem);

But am I allowed to directly access the ModelLocator from my view
component? Or am I supposed to route this simple action through the
Cairngorm command chain (Cairngorm Event - Front Controller -
Command Class - ModelLocator)?

Next question, what about the popup itself? Can I simply use
PopUpManager.createPopUp( this, UserFormView , true)? Or am I supposed
to treat this as a Cairngorm Event, too?

I feel in safe Cairngorm terrain again with the updateUser and
deleteUser actions on the buttons. But what about closing the popup
window? Is this even worth a Cairngorm event?

I guess these questions sound rather stupid to those of you who are
more experienced with frameworks. But at the moment these questions
are obstacles on my way to master Cairngorm (which I will hopefully do
one day). I apologize for my verbose post and my bad English, but I
hope that someone can shed some light on these issues.

Stefan





















--
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/

* 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: Cleaning a file in eclipse ?

2006-07-27 Thread Tim Hoff
Thanks for the Ctrl+Shift+O tip.  Every little bit helps.

-TH

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

 Hello Jean-Luc!
  
 Nice to see you here... ;)
  
 In .as files, you can re-organize your imports with Ctrl+Shift+O 
(very
 cool), but unfortunately, it does not clean the unused ones... 
 In .mxml files, nothing to re-orgnaize your imports yet...
  
 I suppose that this kind of features as well as re-factoring are 
high on the
 enhancements list of the Flex Builder team for a future release.
  
 Benoit Hediard
 
   _  
 
 De : flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la
 part de Jean-Luc ESSER
 Envoyé : jeudi 27 juillet 2006 10:55
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] Cleaning a file in eclipse ?
 
 
 Hi all !
  
 I'm not talking about about the 'clean project' here.
  
 Is there a way to clean your file for all unused imports for 
exemple ?
 I know this is somehow possible in Java in eclipse, but it doesn't 
seem to
 work with Flex.
  
 Best,
 Jean-Luc








--
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/

* 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: Cleaning a file in eclipse ?

2006-07-27 Thread Tim Hoff
Thanks for the Ctrl+Shift+O tip.  Every little bit helps.

-TH

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

 Hello Jean-Luc!
  
 Nice to see you here... ;)
  
 In .as files, you can re-organize your imports with Ctrl+Shift+O 
(very
 cool), but unfortunately, it does not clean the unused ones... 
 In .mxml files, nothing to re-orgnaize your imports yet...
  
 I suppose that this kind of features as well as re-factoring are 
high on the
 enhancements list of the Flex Builder team for a future release.
  
 Benoit Hediard
 
   _  
 
 De : flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la
 part de Jean-Luc ESSER
 Envoyé : jeudi 27 juillet 2006 10:55
 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] Cleaning a file in eclipse ?
 
 
 Hi all !
  
 I'm not talking about about the 'clean project' here.
  
 Is there a way to clean your file for all unused imports for 
exemple ?
 I know this is somehow possible in Java in eclipse, but it doesn't 
seem to
 work with Flex.
  
 Best,
 Jean-Luc







--
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/

* 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] Remoteobject help

2006-07-27 Thread Jeremy Rottman
I am trying to get my test app to work with remoteobjects, but thus
far I have been sol. I am using a simple tutorial I found online, but
I keep getting this error.

faultCode:InvokeFailed faultString:'[MessagingError message='Unknown
destination 'ColdFusion'.']' faultDetail:'Couldn't establish a
connection to 'ColdFusion''

I have checked my services-config.xml and it seems to be fine. Below
is code from the tutorial and my services-config.xml. Does anyone see
anything wrong here?


test.mxml

?xml version=1.0 encoding=utf-8?
mx:Application 
xmlns:mx=http://www.adobe.com/2006/mxml; 
xmlns:comp=components.*
layout=absolute
creationComplete=initApp()

mx:Script
![CDATA[
import mx.controls.Alert;
import mx.rpc.Fault;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.soap.mxml.WebService; 

import mx.events.ValidationResultEvent;

private var vResult:ValidationResultEvent;

public function initApp():void {
}

public function 
handleFormResult(event:ResultEvent):void {
Alert.show(Your Book Has Been Submitted!);
}

public function 
handleRemotingResult(event:ResultEvent):void {
Alert.show(Remoting Result Received!);
qryDG_dg.dataProvider = event.result;
}

public function 
handleWebServiceResult(event:ResultEvent):void {
Alert.show(Webservice Result Received!);
wsdlDG01_dg.dataProvider = event.result;
}

public function errorHandler(event:FaultEvent):void {
Alert.show(event.fault.message);
error.text = event.fault.message;   

}

public function submitBook():void {
var validFlag:Boolean = true;
var authorResult:ValidationResultEvent = 
authorV.validate();
var titleResult:ValidationResultEvent = 
titleV.validate();
var genreResult:ValidationResultEvent = 
genreV.validate();
var linkResult:ValidationResultEvent = 
linkV.validate();

if (authorResult.type == 
ValidationResultEvent.INVALID) {
validFlag = false;
Alert.show(Author Name must be four or 
more characters and no
less than 1 character.);
}

if (titleResult.type == 
ValidationResultEvent.INVALID) {
validFlag = false;
Alert.show(Title is required.);
}

if (genreResult.type == 
ValidationResultEvent.INVALID) {
validFlag = false;
Alert.show(Genre is required and 
cannot be less than three
characters.);
}

if (linkResult.type == 
ValidationResultEvent.INVALID) {
validFlag = false;
Alert.show(Link is required and cannot 
be less than three
characters.);
}

if (validFlag)
insertBookService.addBook.send();
}
]]
/mx:Script

mx:RemoteObject
id=qryService 
destination=ColdFusion
source=remotingExample 
result=handleRemotingResult(event) 
showBusyCursor=true 
fault=errorHandler(event)/

mx:WebService
id=insertBookService 
wsdl=http://localhost:8500/remotingExample.cfc?wsdl;
result=handleFormResult(event) 
showBusyCursor=true 
fault=errorHandler(event)
mx:operation name=addBook
mx:request
   

[flexcoders] integrating map24 maps with FLEX2

2006-07-27 Thread duccio del ministro
Does anyone have any experience in integrating map24 maps
(http://devnet.map24.com) with a flex2 application? I saw the
flex-ajax bridge in adobe.labs and i'm using it to pass he right
parameters but  the resulting maps need to be visualized inside an
html div tag, how can i integrate them inside a complex flex layout?
Thanks in advance
Duccio


--
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/

* 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] Repositioning pop up window

2006-07-27 Thread Robs
Hi all,
   Can a popup window created with the createpopup method be 
repositioned to a desired x,y location. If yes, how?

Thanks in advance,
Robi.





--
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/

* 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: printing/zooming bugs

2006-07-27 Thread Samuel Reuben



This is still an open issue Peter. I remember it had been fixed but then some how it got back. Will press for it to be fixed ASAP.

Thanks,
-sam
On 7/25/06, Daniel Tuppeny [EMAIL PROTECTED] wrote:







I was playing with your code, and discovered you don't need to create a new context menu, just call hideBuiltInItems() on the existing one:




function init:void()
{
 contextMenu.hideBuiltInItems();

}


From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] On Behalf Of 
Pan TroglodytesSent: 18 July 2006 00:14To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: printing/zooming bugs
I know this was asked a long time ago, but somehow I must have missed it. Either that or I learned how to do it later. In any case, do this: import flash.ui.ContextMenu; var menu:ContextMenu = new ContextMenu(); 
 menu.hideBuiltInItems(); contextMenu = menu;


On 6/30/06, Daniel Tuppeny 
[EMAIL PROTECTED]  wrote: 








Is there a way to hide the context menu (or at least the zoom part)? Wehave a zoomable graph, and if the user right-clicks, they see Zoom,think it's ours, click it, and then they're stuffed until reloading the
page!
-Original Message-From: 
flexcoders@yahoogroups.com [mailto:
 flexcoders@yahoogroups.com] OnBehalf Of JasonSent: 29 June 2006 17:50To: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: printing/zooming bugsUnfortunately, it looks like the Zoom bug is still there in the releaseversion. I've entered it into the bug report page. But be aware.
--- In flexcoders@yahoogroups.com
, Jason [EMAIL PROTECTED] wrote:  Before I start talking about bugs, let me just say thanks for the  help. I demoed to the boss today and he was VERY pleased. Flex was a big hit with him. Hope the release doesn't slip too far behind, as 
 we're looking forward to writing that check! :D  Anyway, I've had a couple of problems that seem to be related. In  Flex 2beta3, whenever I create any app and run it, the Flash player's 
 Zoom options are broken. Right-click and say Zoom In. Right-click  and the Zoom Out option is not shown. You can Zoom In more and THEN  Zoom Out, but not all the way out. You're stuck with it zoomed in.
 And you can't pan around. This doesn't happening using the beta  player with non-Flex SWFs.  The printing problem seems similar. Here's my example app:  ?xml version=
1.0 encoding=utf-8? mx:Application  xmlns:mx=
http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ private function printClick(e:Event):void { import flash.printing.PrintJob;
 var myPrintJob:PrintJob = new PrintJob(); myPrintJob.start() ; myPrintJob.addPage(this); myPrintJob.send(); } ]] /mx:Script  mx:Button label=Print click=printClick(event) width=481
 x=10 y=10/ mx:DataGrid y=40 x=10 width=481  mx:dataProvider mx:ArrayCollection mx:source
 mx:Object mx:ArtistPavement/mx:Artist mx:Price11.99/mx:Price mx:AlbumSlanted and Enchanted/mx:Album /mx:Object mx:Object
 mx:ArtistPavement/mx:Artist mx:AlbumBrighten the Corners/mx:Album mx:Price11.99/mx:Price /mx:Object /mx:source /mx:ArrayCollection
 /mx:dataProvider /mx:DataGrid /mx:Application   If you click on the print button, you get a zoomed in printed  document. Just like the whole right-click and Zoom In problem. It's 
 like the player thinks that the normal size is zoomed in.  Can I get some confirmation or denial of the bug? Or if there's  something somehow messed up with my system, let me know. 
 Thanks.
 Yahoo! Groups Sponsor ~--Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM --~- 

--
Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


Yahoo! Groups Links[Inbound Mail Scanned by MessageLabs]__This email has been scanned by the MessageLabs Email Security System.For more information please visit 
http://www.messagelabs.com/email 
__


-- Jason [Inbound Mail Scanned by MessageLabs]__
This email has been scanned by the MessageLabs Email Security System.For more information please visit 
http://www.messagelabs.com/email __

 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  

   

[flexcoders] Re: Cairngorm: Managing Popup Windows

2006-07-27 Thread Tim Hoff
Hi Stephan,

Don't worry about good/bad English here, communication is the key.  
The beauty of Cairngorm and Flex is that you can accomplish the same 
thing several ways.  Chances are that your edit/delete form is a 
view also.  So you can either change view state (ModelLocator) to 
add the view child, or create a PopUp with the view as the child.  
Either way works, but PopUps add a level of event processing that 
can be tricky.  

To answer your question, the Cairngorm pundits would recommend that 
the DataGrid's selected event should trigger a Command that updates 
a ModelLocator state variable, and selected item, to display the 
form. That's one way.  Or you can launch a PopUp from the command 
itself.

Another approach is to not worry about the view knowing about the 
model.  I mean it's bound one way, why not the other.  Every bound 
view knows about the ModelLocator.  So it makes sense, since a view 
has a hard coded variable name for state, that you can also directly 
change a ModelLocator variable from the view.  Total encapsulation 
or limited encapsulation?

Just make sure that you keep the data in the model.  What you choose 
beyond that is apparently up to you.  I personally like the PopUp 
approach.  From the view, it's quicker and valid for local 
processing.   But, the Command/ModelLocator approach is considered 
more stable .02

-TH

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

 I've done some research on this list but haven't found any valid
 information on what's considered best pratice in dealing with popup
 windows. The few Cairngorm sample apps that are around don't seem 
to
 use the TitleWindow component at all.
 
 Let's say I have a simple DataGrid populated with some user data. 
If I
 click on a row in the DataGrid a popup window opens with a form for
 editing the user information. The popup window also has two buttons
 for deleting or saving (updating) the user account. 
 
 I have done stuff like this several times in Flash/AS2 but I've 
never
 used a framework approach so far. Now, if I look at this rather 
simple
 task from a Cairngorm perspective it doesn't seem to be that simple
 any more. (But I guess that's because I'm not yet too familiar with
 Cairngorm.) I know how to establish databinding between the data
 provider and {model.users} and all this basic Cairngorm stuff. 
 
 But what happens when a row is clicked? I'm not even sure if I'm
 supposed to treat this event as a single event (selectUser or
 openPopup?) or as a chain of two events (selectUser -
 openPopup). Since my user information is organized as an array of
 value objects it's easy to assign the selected user VO to
 model.selectedUser: 
 
 model.selectedUser = UserVO(userList.selectedItem);
 
 But am I allowed to directly access the ModelLocator from my view
 component? Or am I supposed to route this simple action through the
 Cairngorm command chain (Cairngorm Event - Front Controller -
 Command Class - ModelLocator)?
 
 Next question, what about the popup itself? Can I simply use
 PopUpManager.createPopUp( this, UserFormView , true)? Or am I 
supposed
 to treat this as a Cairngorm Event, too?
 
 I feel in safe Cairngorm terrain again with the updateUser and
 deleteUser actions on the buttons. But what about closing the 
popup
 window? Is this even worth a Cairngorm event?
 
 I guess these questions sound rather stupid to those of you who are
 more experienced with frameworks. But at the moment these questions
 are obstacles on my way to master Cairngorm (which I will 
hopefully do
 one day). I apologize for my verbose post and my bad English, but I
 hope that someone can shed some light on these issues.
 
 Stefan








--
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/

* 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: Cairngorm: Managing Popup Windows

2006-07-27 Thread Tim Hoff
Sorry, my bad English.  Should be Stefan.

-TH

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

 Hi Stephan,
 
 Don't worry about good/bad English here, communication is the 
key.  
 The beauty of Cairngorm and Flex is that you can accomplish the 
same 
 thing several ways.  Chances are that your edit/delete form is a 
 view also.  So you can either change view state (ModelLocator) to 
 add the view child, or create a PopUp with the view as the child.  
 Either way works, but PopUps add a level of event processing that 
 can be tricky.  
 
 To answer your question, the Cairngorm pundits would recommend 
that 
 the DataGrid's selected event should trigger a Command that 
updates 
 a ModelLocator state variable, and selected item, to display the 
 form. That's one way.  Or you can launch a PopUp from the command 
 itself.
 
 Another approach is to not worry about the view knowing about the 
 model.  I mean it's bound one way, why not the other.  Every bound 
 view knows about the ModelLocator.  So it makes sense, since a 
view 
 has a hard coded variable name for state, that you can also 
directly 
 change a ModelLocator variable from the view.  Total encapsulation 
 or limited encapsulation?
 
 Just make sure that you keep the data in the model.  What you 
choose 
 beyond that is apparently up to you.  I personally like the PopUp 
 approach.  From the view, it's quicker and valid for local 
 processing.   But, the Command/ModelLocator approach is considered 
 more stable .02
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Stefan Schmalhaus stefan@ 
 wrote:
 
  I've done some research on this list but haven't found any valid
  information on what's considered best pratice in dealing with 
popup
  windows. The few Cairngorm sample apps that are around don't 
seem 
 to
  use the TitleWindow component at all.
  
  Let's say I have a simple DataGrid populated with some user 
data. 
 If I
  click on a row in the DataGrid a popup window opens with a form 
for
  editing the user information. The popup window also has two 
buttons
  for deleting or saving (updating) the user account. 
  
  I have done stuff like this several times in Flash/AS2 but I've 
 never
  used a framework approach so far. Now, if I look at this rather 
 simple
  task from a Cairngorm perspective it doesn't seem to be that 
simple
  any more. (But I guess that's because I'm not yet too familiar 
with
  Cairngorm.) I know how to establish databinding between the data
  provider and {model.users} and all this basic Cairngorm stuff. 
  
  But what happens when a row is clicked? I'm not even sure if I'm
  supposed to treat this event as a single event (selectUser or
  openPopup?) or as a chain of two events (selectUser -
  openPopup). Since my user information is organized as an array 
of
  value objects it's easy to assign the selected user VO to
  model.selectedUser: 
  
  model.selectedUser = UserVO(userList.selectedItem);
  
  But am I allowed to directly access the ModelLocator from my 
view
  component? Or am I supposed to route this simple action through 
the
  Cairngorm command chain (Cairngorm Event - Front Controller -
  Command Class - ModelLocator)?
  
  Next question, what about the popup itself? Can I simply use
  PopUpManager.createPopUp( this, UserFormView , true)? Or am I 
 supposed
  to treat this as a Cairngorm Event, too?
  
  I feel in safe Cairngorm terrain again with the updateUser 
and
  deleteUser actions on the buttons. But what about closing the 
 popup
  window? Is this even worth a Cairngorm event?
  
  I guess these questions sound rather stupid to those of you who 
are
  more experienced with frameworks. But at the moment these 
questions
  are obstacles on my way to master Cairngorm (which I will 
 hopefully do
  one day). I apologize for my verbose post and my bad English, 
but I
  hope that someone can shed some light on these issues.
  
  Stefan
 







--
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/

* 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] TileList Bug Flex Final... pretty serious.

2006-07-27 Thread Samuel Reuben



Hi Tim,

I tried this and I don't seem to see any tiles disappearing. Can you send me some code please?

Thanks,
-sam
On 7/25/06, sufibaba [EMAIL PROTECTED] wrote:






Hi ya,I found what seems to be a bug with the TileList Control. When theTileList
 is resized, not all of the images that are in the TileListare displayed. It seems that when TileList is made smaller, in widthand height, the vertical scrollbar will only display some of the images. 
Has anyone seen this problem. Is there a work around for this bug?Any light cast on this is Greatly appreciated.- Tim
 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: flex2 final - CheckBox itemrenderer question

2006-07-27 Thread bhaq1972
Tim
as always the credit goes to you. i'll have a look at trying it with 
a custom event as you described.

regards
bod


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

 Absolutely,
 
 That sample, at the time, was designed to illustrate 
itemRenderers.  
 The better way to do it, would be to dispatch custom events.  Glad 
 that it got you moving in the right direction; to come up with a 
 better solution.
 
 Cool,
 -TH
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  I found a way to make it generic. all i did was implement 
  IDropInListItemRenderer (code below).
  
  so now u can have 
  
  mx:DataGridColumn dataField=any itemRenderer=myCheckBox/
  mx:DataGridColumn dataField=name itemRenderer=myCheckBox/
  mx:DataGridColumn dataField=you itemRenderer=myCheckBox/
  mx:DataGridColumn dataField=like itemRenderer=myCheckBox/
  mx:DataGridColumn dataField=focusIn 
itemRenderer=myCheckBox/
  
  you can replace the following code
  if(data.focusIn) 
  checkbox1.selected = data.focusIn;
  if(data.any)
  checkbox1.selected = data.any;
  etc
  
  instead u can do 
  
  var myListData:DataGridListData = DataGridListData(listData);
  var myDataField:String = myListData.dataField;
  
  checkbox1.selected = data[myDataField];
  
  
  MyCheckBox
  --
  mx:HBox 
 implements=mx.controls.listClasses.IDropInListItemRenderer
   preinitialize =initTA(); horizontalAlign=center
  
  mx:Script
 // Internal variable for the property value.
 private var _listData:BaseListData;
  
 // Make the listData property bindable.
 [Bindable(dataChange)]
  
 // Define the getter method.
 public function get listData():BaseListData
 {
   return _listData;
 }
  
  // Define the setter method,
  public function set listData(value:BaseListData):void
  {
_listData = value;
  }
  
  public function initTA():void 
  { 
 this.addEventListener(dataChange, handleDataChanged);
  }
  
  public function handleDataChanged(event:Event):void 
  { 
 // Cast listData to DataGridListData. 
 var myListData:DataGridListData = DataGridListData
 (listData);
 var myDataField:String = myListData.dataField;
  
 checkbox1.selected = data[myDataField];
  }
  /mx:Script
  
  mx:CheckBox id=checkBox1 /
  
  /mx:HBox
  
  
  --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
  
   thanks for the input guys. But i have one issue.
   
   In your example Tim, your checkbox item renderer is binding 
onto 
   the 'followUp' property of the dataProvider.
   eg
   
   mx:CheckBox id=cbFollowUp selected={data.followUp}/
   
   'followUp' is the name of your dgcolumn dataField. So wouldn't 
 it 
  be 
   better and more generic if you could do 
   
   mx:CheckBox id=cbFollowUp selected={data.dataField}/
   
   i'm applying this renderer across many datagrids and the 
 dataField 
   name isn't the same.
   
   regards
   
   Bod
   
   
   --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
   

In addition to Ben's example for the label, here's a sample 
 for 
  the
selected value:

http://www.cflex.net/showfiledetails.cfm?
   ChannelID=1Object=FileobjectI\
D=443
http://www.cflex.net/showfiledetails.cfm?
   ChannelID=1Object=Fileobject\
ID=443

-TH

--- In flexcoders@yahoogroups.com, ben.clinkinbeard
ben.clinkinbeard@ wrote:

 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
 horizontalAlign=center

 mx:CheckBox id=checkbox1 label=data.myLabelField /

 /mx:HBox

 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ 
wrote:
 
  i have a checkbox renderer like this.
 
  mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
  horizontalAlign=center
 
  mx:CheckBox id=checkbox1/
 
  /mx:HBox
 
  How do i get access to the DataGridColumn its being 
  referenced 
   in ie
 
  mx:DataGridColumn dataField=col1 
   itemRenderer=myCheckBox /
 
  i want to access the dataField.
 
 
  regards
  Bod
 

   
  
 







--
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/

* 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: Repositioning pop up window

2006-07-27 Thread Tim Hoff
Hi Robi,

It doesn't look like you can explicetly set the x,y coordinates, but 
you can specify the parennt container of the PopUp.  Containers can be 
positioned with x,y in absolute positioning mode.  You also have the 
centerPopUp method available.

-TH

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

 Hi all,
Can a popup window created with the createpopup method be 
 repositioned to a desired x,y location. If yes, how?
 
 Thanks in advance,
 Robi.








--
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/

* 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] Remoteobject help

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 10:40, Jeremy Rottman wrote:
 uri=http://{server.name}:{server.port}{context.root}/flex2gateway/;

Try filling in actual values here.

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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] flex2 final - question about adding buttons to a panel.titlebar

2006-07-27 Thread bhaq1972
after adding a button to panel.titleBar

do we put our button positioning code in updateDisplayList() or in 
layoutChrome(). 

i'm sure i've seen suggestions for both. just wanted to know whats the 
difference.

regards
bod








--
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/

* 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] flex 1.5 : AMF and ports and Max users

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 01:28, Eric D Anderson wrote:
 application dependent, but our tests have shown that you can support 1000's
 of concurrent users per CPU.

Of course, this depends how fast your CPU is :-)
Some sort of metric on how much memory is used per connection maybe useful 
though, if you have one.

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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: Remoteobject help

2006-07-27 Thread Jeremy Rottman
even with defining the uri I get the same issue. Everywhere I have
looked not a single tutorial has said to define the uri in the
channels section of hte service-config.xml file

To give a little more info. 

My cf server runs on linux. 

cfserver install root: /opt/coldfusionmx7/
web root /var/www/html/
document root /var/www/html 

Not sure if this has anything to do with it, seeing has most tutorials
are win based.






--
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/

* 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] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 09:38, Stefan Schmalhaus wrote:
 definitely use the same AMFPHP services. What's the best way to tackle
 this? Should I treat them as two different Flex projects? Or can I
 develop them within one Flex project but with two different MXML
 application files?

We've just got one Flex project, and it switches views based on who logs in.
A better way maybe to put the shared components into a library SWC project, 
and then write two separate Flex projects for each front end.
Depends how big your dev. team and projects are, I suppose.

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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: Cairngorm: Managing Popup Windows

2006-07-27 Thread Stefan Schmalhaus
Tim,

No worries about the spelling of my name. ;-)

Thank you very much for your explanations. Once you are experienced
enough, you can value the beauty and FLEXibility of a software
development concept/tool. I'm still at the beginning of my learning
curve, and sometimes the complexity of Flex/Cairngorm overwhelmes me. 

In the past, when I developed smaller apps with Flash/AS2 I very often
found myself in a dead-end situation when clients asked for additional
features, etc. I'm familiar with some basic design patterns but I've
always missed a consistent framework for AS2. 

Cairngorm was really an eye-opener for me because now I have the
feeling that there's a powerful concept that helps me to develop
scalable applications. Since the use of popup windows is quite common,
I expected something like a standard procedure for Flex/Cairngorm.
I'm afraid to find myself in a dead-end situation again if I do it
the wrong way. 

The Command/ModelLocator approach you described sounds logical to me -
although at first sight it seems to overcomplicate the rather simple
task of updating model.selectedUser and opening a popup window. But
I guess it will make the application more consistent once it grows and
more and more functionality is added.

Thanks again.

Stefan 







--
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/

* 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] feature or security hole on flash sandBox?

2006-07-27 Thread Xavi Beumala



Hi,Today I've noticed that I can load images from diferent domains (which doesn't have a crossdomain file) without getting a security sandbox violation error.For example, when running the following application from my fileSystem I'm not receiving any error eventhough the domains don't have de crossdomain file (I also haven't trusted the file).
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical mx:Image source=
http://www.code4net.com/header/foto2.jpg width=800 height=160/ mx:Image source=http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg
 width=800 height=160//mx:ApplicationSo is this a new feature on the player or is it a security hole? I've been reading the document at 
www.adobe.com/devnet/flashplayer/
articles/flash_player_8_security.pdf and the most accurate thing I've found refering to images is: A SWF file from 
a.com may read from the server at b.com (using the ActionScript XML.load() method, for example) if b.com has a cross-domain policy file that permits access from 
a.com (or from all domains). So if the criteria for loading external images is the same as for .swf...Any ideas?BestX.

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Remoteobject help

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 11:52, Jeremy Rottman wrote:
 even with defining the uri I get the same issue.

If you request the URL by hand, what do you get ?

 looked not a single tutorial has said to define the uri in the
 channels section of hte service-config.xml file

shrug
mxmlc wasn't clever enough to make it work without doing so here, and I've got 
a fairly standard name based virtual host setup.

 My cf server runs on linux.

You've got almost the same setup as us.

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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] integrating map24 maps with FLEX2

2006-07-27 Thread Rich Tretola
Why don't you use the Yahoo maps which already support Flash and Flex
1.5 and should have Fle 2 support soon.  In the mean time you can use
localconnection to speak to your Flash 8 map from Flex 2.  This is how
I accomplished mapping at StatPods.com

Rich

On 7/27/06, duccio del ministro [EMAIL PROTECTED] wrote:
 Does anyone have any experience in integrating map24 maps
 (http://devnet.map24.com) with a flex2 application? I saw the
 flex-ajax bridge in adobe.labs and i'm using it to pass he right
 parameters but  the resulting maps need to be visualized inside an
 html div tag, how can i integrate them inside a complex flex layout?
 Thanks in advance
 Duccio


 --
 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










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


--
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/

* 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] Cleaning a file in eclipse ?

2006-07-27 Thread Jean-Luc ESSER





Nice tip Benoit !
I should have asked the question on flexeurs, but 
Tim would have been sad ;)

Adobe : If you can hear us for 2.01 update 
;)

Best,
JL


  - Original Message - 
  From: 
  Benoit Hediard 
  
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, July 27, 2006 11:04 
  AM
  Subject: RE: [flexcoders] Cleaning a file 
  in eclipse ?
  
  
  
  Hello Jean-Luc!
  
  Nice to see you here... ;)
  
  In .as files, you can re-organize your imports with 
  Ctrl+Shift+O (very cool), but unfortunately, it does notclean the unused 
  ones...
  In .mxml files, nothing to re-orgnaize your imports 
  yet...
  
  I suppose that this kind of features as well as 
  re-factoring are high on the enhancements list of the Flex Builder team for a 
  future release.
  
  Benoit Hediard
  
  
  De: [EMAIL PROTECTED]ups.com 
  [mailto:flexcoders@yahoogroups.com] De la part de Jean-Luc 
  ESSEREnvoyé: jeudi 27 juillet 2006 10:55À: 
  [EMAIL PROTECTED]ups.comObjet: [flexcoders] Cleaning a 
  file in eclipse ?
  
  Hi all !
  
  I'm not talking about about the 'clean project' 
  here.
  
  Is there a way to clean your file for all unused 
  imports for exemple ?
  I know this is somehow possible in Java in 
  eclipse, but it doesn't seem to work with Flex.
  
  Best,
  Jean-Luc
  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Cairngorm: Managing Popup Windows

2006-07-27 Thread Tim Hoff



Very true words Stefan - cheers!
The Command/ModelLocator approach you described sounds logical to me -although at first sight it seems to overcomplicate the rather simple task of updating "model.selectedUser" and opening a popup window. 
-TH--- In flexcoders@yahoogroups.com, "Stefan Schmalhaus" [EMAIL PROTECTED] wrote: Tim,  No worries about the spelling of my name. ;-)  Thank you very much for your explanations. Once you are experienced enough, you can value the beauty and FLEXibility of a software development concept/tool. I'm still at the beginning of my learning curve, and sometimes the complexity of Flex/Cairngorm overwhelmes me.   In the past, when I developed smaller apps with Flash/AS2 I very often found myself in a dead-end situation when clients asked for additional features, etc. I'm familiar with some basic design patterns but I've always missed a consistent framework for AS2.   Cairngorm was really an eye-opener for me because now I have the feeling that there's a powerful concept that helps me to develop scalable applications. Since the use of popup windows is quite common, I expected something like a "standard procedure" for Flex/Cairngorm. I'm afraid to find myself in a dead-end situation again if I do it "the wrong way".   The Command/ModelLocator approach you described sounds logical to me - although at first sight it seems to overcomplicate the rather simple task of updating "model.selectedUser" and opening a popup window. But I guess it will make the application more consistent once it grows and more and more functionality is added.  Thanks again.  Stefan

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Cleaning a file in eclipse ?

2006-07-27 Thread Tim Hoff
All I can say is ::: frowns with a big smile :::

-TH

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

 Nice tip Benoit !
 I should have asked the question on flexeurs, but Tim would have 
been sad ;)
 
 Adobe : If you can hear us for 2.01 update ;)
 
 Best,
 JL
 
   - Original Message - 
   From: Benoit Hediard 
   To: flexcoders@yahoogroups.com 
   Sent: Thursday, July 27, 2006 11:04 AM
   Subject: RE: [flexcoders] Cleaning a file in eclipse ?
 
 
 
   Hello Jean-Luc!
 
   Nice to see you here... ;)
 
   In .as files, you can re-organize your imports with Ctrl+Shift+O 
(very cool), but unfortunately, it does not clean the unused ones... 
   In .mxml files, nothing to re-orgnaize your imports yet...
 
   I suppose that this kind of features as well as re-factoring are 
high on the enhancements list of the Flex Builder team for a future 
release.
 
   Benoit Hediard
 
 
 
 ---
---
   De : flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de Jean-Luc ESSER
   Envoyé : jeudi 27 juillet 2006 10:55
   À : flexcoders@yahoogroups.com
   Objet : [flexcoders] Cleaning a file in eclipse ?
 
 
   Hi all !
 
   I'm not talking about about the 'clean project' here.
 
   Is there a way to clean your file for all unused imports for 
exemple ?
   I know this is somehow possible in Java in eclipse, but it 
doesn't seem to work with Flex.
 
   Best,
   Jean-Luc








--
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/

* 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: Remoteobject help

2006-07-27 Thread Jeremy Rottman
Well when I use this url I get the normal blank display.
http://fx3.homesmartagent.com/flex2gateway/

when I use the url with the context root I get a 404 error.
http://fx3.homesmartagent.com/test/flex2gateway/

I also use a named based virtual host setup.

Even when I define the uri with the
http://fx3.homesmartagent.com/flex2gateway/ url, I still get the same
error.





--
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/

* 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: Local Connection

2006-07-27 Thread flexnewbie06
Jester, I read the articles and fully understand what you meant...

I load one swf and then try to load a second and even though I've 
sent the first swf packing it's still in memory and listening to the 
menu.swf's local connection calls because GC hasn't come along and 
cleaned it up.  

Maybe if I get rid of the SWFLoader completely then try to create a 
new one dynamically when the next swf is loaded that would work?? 
I'll try it.  

Yes, the menu.swf is able to control the two main swf's outside of 
Flex. If they are all running at the same time, the menu.swf will 
control which ever main.swf was started first. Then if i close that 
main.swf the other will just start working.  That little experiment 
just provides more evidence (and helps me get it)...that the first 
swf is still there in Flex...

Anyway, Thanks again...if you have any more suggestions...as always 
appreciated. I'll keep working at it...
Jenn



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

 Oh it's deeper than emptying a source reference.  Welcome to the 
dark side 
 of ActionScript 3..
 
 http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 
 http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
 
 BTW, do your SWF's talk to eachother locally without Flex?
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 26, 2006 3:13 PM
 Subject: [flexcoders] Re: Local Connection
 
 
 okay, thanks...that works for loading a swf at runtime if the
 SWFLoader has no assigned source.  However, if the SWFLoader has an
 assigned source and you try to change it during runtime, then LC
 doesn't work anymore.
 
 That comes back to your last comment about garbage collection and 
the
 original swf not being cleaned up before the new one is loaded, i
 tried to research what you meant but as far i could tell all I could
 do in flex was to set the SWFLoader source to = before loading the
 next swf.  I could not find any unload methods.
 
 Thanks again for helping.
 
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Try again, but put an underscore in front of the name for both
 SWF's.
 
  _swfConnect instead of swfConnect.
 
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 1:59 PM
  Subject: [flexcoders] Re: Local Connection
 
 
  Jester,
  I have tried putting the local connection code in the main flex 
app
  and calling to the embedded SWF and this is the attempt at 
creating
 a
  second embedded swf (menu) to make the calls to the main
 SWF...either
  way if the swf is loaded at runtime...local connection is a no go.
 
  Thanks
 
  *This is my menu.swf local connection code...
 
  #include mc_tween2.as
  stop();
  var lcsend:LocalConnection = new LocalConnection();
  play_btn.onRelease = function(){
  lcsend.send (swfConnect, playFile);
  }
  stop_btn.onRelease = function () {
  lcsend.send (swfConnect, stopandrestart);
  }
  pause_btn.onRelease = function () {
  lcsend.send (swfConnect , pauseFile);
  }
 
  *And this is the Main.swf local connection code
 
  var lc:LocalConnection = new LocalConnection();
  lc.pauseFile = function() {
  stop();
  }
  lc.resumeFile = function() {
  play();
  }
  lc.stopandrestart = function() {
  gotoAndStop(1);
  }
  lc.playFile = function () {
  gotoAndPlay(1);
  }
  lc.getframeNum = function () {
 
  }
  lc.connect(swfConnect);
 
  ***
 
 
 
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Can you paste a snippet of your LocalConnection code in the 
Flash
  SWF?
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 1:02 PM
   Subject: [flexcoders] Local Connection
  
  
   I think I am going to go crazy over this.  I have tried this a
 few
   different ways and always ending with the same result...not
 working.
  
   I have 2 swf's loaded in my app with SWFLoader. They use local
   connection to talk to each other.  If i run app with swfloader
 with
   no source and then dynamically set the swf source when something
   happens in the app, local connection doesn't work.  If i load 
the
  swf
   in design the local connection works fine. For example Code 1
  doesn't
   work, Code 2 does...If you can lend a hand I would REALLY
  appreciate
   it.
  
   Jenn
  
   Code 1*
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute
   mx:Script
   ![CDATA[
   public function load():void {
   mainswf.source = file.swf;
   }
   ]]
   /mx:Script
   mx:Panel x=25 y=10 width=528 height=383
 layout=absolute
   mx:SWFLoader id=mainswf x=10 y=10 width=467
 height=271/
   mx:ApplicationControlBar x=10 y=0 width=539 height=60
   mx:SWFLoader id=menu source=menu.swf width=499
 height=58/
   

Re: [flexcoders] Re: Remoteobject help

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 12:51, Jeremy Rottman wrote:
 Well when I use this url I get the normal blank display.
 http://fx3.homesmartagent.com/flex2gateway/

If you leave of the / do you get a '500 No configured channel has an endpoint 
path' error ?
-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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: Remoteobject help

2006-07-27 Thread Jeremy Rottman
ok well I got it to work with this code. But this isnt exactly how I
want it to work. Do I have to use test.component name and do I have
to add the end point. 


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

mx:Script
![CDATA[
import mx.controls.Alert;
import mx.rpc.Fault;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;

private function qryService_userSearch(lastName){
qryService.userSearch(lastName)
}

private function 
qryService_userSearch_Result(event:ResultEvent):void{
testDG.dataProvider = event.result;
}

private function 
qryService_userSearch_Fault(event:FaultEvent):void{
Alert.show(event.fault.message);
}
]]
/mx:Script


mx:RemoteObject
id=qryService 
destination=ColdFusion
source=test.ROtest 
result=qryService_userSearch_Result(event)
endpoint=http://fx3.homesmartagent.com/flex2gateway/;
showBusyCursor=true 
fault=qryService_userSearch_Fault(event)/
mx:Canvas x=0 y=0 width=100% height=100%
mx:Label x=10 y=10 text=Name:/
mx:TextInput id=lastName x=60 y=8/
mx:Button x=228 y=8
click=qryService_userSearch(lastName.text) label=Button/
mx:DataGrid x=10 y=38 id=testDG width=90% 
height=100%
mx:columns
mx:DataGridColumn headerText=Column 1
dataField=fld_agentFullName/
mx:DataGridColumn headerText=Column 2 
dataField=fld_agentId/
mx:DataGridColumn headerText=Column 3 
dataField=fld_agentEmail/
/mx:columns
/mx:DataGrid
/mx:Canvas









/mx:Application







--
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/

* 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: feature or security hole on flash sandBox?

2006-07-27 Thread ben.clinkinbeard
There are no restrictions when running the file on your local system.
Access it through a web server and your calls will fail.

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

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

 Hi,
 
 Today I've noticed that I can load images from diferent domains (which
 doesn't have a crossdomain file) without getting a security sandbox
 violation error.
 
 For example, when running the following application from my
fileSystem I'm
 not receiving any error eventhough the domains don't have de crossdomain
 file (I also haven't trusted the file).
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
 mx:Image source=http://www.code4net.com/header/foto2.jpg;
width=800
 height=160/
 mx:Image source=
 http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg;
width=800
 height=160/
 /mx:Application
 
 So is this a new feature on the player or is it a security hole?
 
 I've been reading the document at www.adobe.com/devnet/*flash*player/
 articles/*flash*_player_8_*security*.pdf and the most accurate thing
I've
 found refering to images is: A SWF file from a.com may read from
the server
 at b.com (using the ActionScript XML.load() method, for example) if
 b.comhas a cross-domain policy file that permits access from
 a.com (or from all domains). So if the criteria for loading
external images
 is the same as for .swf...
 
 Any ideas?
 
 Best
 X.







--
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/

* 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: feature or security hole on flash sandBox?

2006-07-27 Thread Xavi Beumala



I think you're wrong. It's also working on web server. And from local system you've also restrictions. Just try an application running from the local file system and consuming remote data throgh HTTPService, it's going to fail. But it's not failing with mx:Image.
X.On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
There are no restrictions when running the file on your local system.Access it through a web server and your calls will fail.HTH,Benhttp://www.returnundefined.com/
--- In flexcoders@yahoogroups.com, Xavi Beumala [EMAIL PROTECTED] wrote: Hi, Today I've noticed that I can load images from diferent domains (which
 doesn't have a crossdomain file) without getting a security sandbox violation error. For example, when running the following application from myfileSystem I'm not receiving any error eventhough the domains don't have de crossdomain
 file (I also haven't trusted the file). mx:Application xmlns:mx=http://www.adobe.com/2006/mxmllayout=vertical mx:Image source=
http://www.code4net.com/header/foto2.jpgwidth=800 height=160/ mx:Image source= 
http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpgwidth=800 height=160/ /mx:Application So is this a new feature on the player or is it a security hole?
 I've been reading the document at www.adobe.com/devnet/*flash*player/ articles/*flash*_player_8_*security*.pdf and the most accurate thing
I've found refering to images is: A SWF file from a.com may read fromthe server at b.com (using the ActionScript XML.load() method, for example) if
 b.comhas a cross-domain policy file that permits access from a.com (or from all domains). So if the criteria for loadingexternal images is the same as for .swf...
 Any ideas? Best X.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] TileList Bug Flex Final... pretty serious.

2006-07-27 Thread Douglas Knudsen



you using a custom item renderer?DKOn 7/25/06, sufibaba [EMAIL PROTECTED] wrote:
Hi ya,I found what seems to be a bug with the TileList Control. When theTileList is resized, not all of the images that are in the TileListare displayed.It seems that when TileList is made smaller, in width
and height, the vertical scrollbar will only display some of the images.Has anyone seen this problem.Is there a work around for this bug?Any light cast on this is Greatly appreciated.- Tim
 Yahoo! Groups Sponsor ~--See what's inside the new Yahoo! Groups email.http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/
-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Tools for listing objects

2006-07-27 Thread jeff tapper
Well, that experiment failed as well.  14 hours later, the same 
objects are still listed in the dictionary.
Wed Jul 26 17:07:23 GMT-0400 2006
Testing56:Testing56
Testing19:Testing19
Testing38:Testing38
Thu Jul 27 08:50:31 GMT-0400 2006
Testing56:Testing56
Testing19:Testing19
Testing38:Testing38

Am I misunderstanding the usage of Weak References in the 
Dictionary?  Does anyone have any idea how this can be used to keep 
track of what objects exist and which dont?

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

 Ok, heres a sketch of what im trying now. 
 App.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=vertical creationComplete=initApp()
   mx:Script
   ![CDATA[
   import mx.managers.PopUpManager;
   import mx.managers.PopUpManagerChildList;
   import mx.core.IFlexDisplayObject;
   private var screenDict:Dictionary;
   private var scr1:IFlexDisplayObject;
   private function initApp():void{
   screenDict = new Dictionary(true);
   }
   public function createScreen
 (parent:DisplayObjectContainer, 
 screen:Class,modal:Boolean=false):IFlexDisplayObject{
   var s:IFlexDisplayObject = 
 PopUpManager.createPopUp(parent, screen, 
 modal,PopUpManagerChildList.APPLICATION);
   screenDict[s] = s.name
   return s;
   }
   public function showObjects():void{
   trace(new Date());
   for (var i:* in screenDict){
   trace(i+:+screenDict[i]);
   }
   }
   public function removeScreen
 (screen:IFlexDisplayObject):void{
   PopUpManager.removePopUp(screen);
   }
   private function makeScreen():void{
   if(scr1 == null){   
   scr1 = createScreen
 (this,Testing,false);
   }
   }
   private function destroyScreen():void{
   removeScreen(scr1);
   scr1 = null;
   }
   
   ]]
   /mx:Script
   mx:Button click=makeScreen() label=make/
   mx:Button click=destroyScreen() label=kill/
   mx:Button click=showObjects() label=show/
 /mx:Application
 
 Testing.mxml
 =
 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=400 
 height=300
   mx:Button click=this.dispatchEvent(new Event('foo'))/
 /mx:Panel
 
 Now, as i run this, if i click make, kill, make, kill, show, The 
 trace shows:
 Wed Jul 26 17:07:14 GMT-0400 2006
 Testing58:Testing58
 Testing20:Testing20
 Testing39:Testing39
 
 Implying that the screens arent really being destroyed.  Perhaps I 
 didnt wait long enough, so 5 minutes later, I tried the same 
thing, 
 with the same results.  Maybe 5 minutes isnt long enough, so I'll 
 leave it running over night and try again in the morning.  But, 
the 
 fundemental question is, have i done enough to remove the 
screens?  
 Should the garbage collector clean the unused ones up, or have i 
 somehow left a reference lingering?
 
 We have a very complex app, which I want to ensure we clean up all 
 unused objects, but im having trouble finding a way to verify they 
 are removed.







--
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/

* 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: Cairngorm Events

2006-07-27 Thread JesterXL
Typically, in my Application, I'll put the Controller.  The Application can 
only capture deeply nested events if they bubble, and unless you utilize 
classpaths as your event names, you run the danger of name collisions for 
bubbling events in bigger apps.  The Controller can only get events from the 
CairngormEventDispatcher; he no longer supports the built-in EventDispatcher 
through the normal display list.  So, although he does extend UIComponent, 
he ignores regular events dispatched up to Application.  Could you make it 
work?  Sure, but then that's not the latest way Cairngorm works.  I don't 
mind modding Cairngorm, to be sure, just pointing it out.


- Original Message - 
From: Tom Chiverton [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 4:26 AM
Subject: Re: [flexcoders] Re: Cairngorm Events


On Wednesday 26 July 2006 16:56, JesterXL wrote:
 Not anymore, no, as he's usually embedded at the top of the tree.

I'm not sure what you mean.

 could utilize ViewLocator I guess, but that is bleh.

Indeed. We tend to pass the view into the event instead.

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
St James's Court Brown Street Manchester M2 2JF.  A list of members is 
available for inspection at the registered office. Any reference to a 
partner in relation to Halliwells LLP means a member of Halliwells LLP. 
Regulated by the Law Society.

CONFIDENTIALITY

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

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



--
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 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/

* 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: feature or security hole on flash sandBox?

2006-07-27 Thread ben.clinkinbeard
Hmm, I've not read enough about the newer security models to be sure,
I just assumed it was that way since earlier versions were. One thing
I did notice though was that you said you're reading from the security
whitepaper for FP8. You should be reading about FP9 since that is what
Flex and AS3 target.

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

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

 I think you're wrong. It's also working on web server. And from
local system
 you've also restrictions. Just try an application running from the local
 file system and consuming remote data throgh HTTPService, it's going to
 fail. But it's not failing with mx:Image.
 
 X.
 
 On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
 
  There are no restrictions when running the file on your local system.
  Access it through a web server and your calls will fail.
 
  HTH,
  Ben
  http://www.returnundefined.com/
 
  --- In flexcoders@yahoogroups.com, Xavi Beumala xavi@ wrote:
  
   Hi,
  
   Today I've noticed that I can load images from diferent domains
(which
   doesn't have a crossdomain file) without getting a security sandbox
   violation error.
  
   For example, when running the following application from my
  fileSystem I'm
   not receiving any error eventhough the domains don't have de
crossdomain
   file (I also haven't trusted the file).
  
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
   mx:Image source=http://www.code4net.com/header/foto2.jpg;
  width=800
   height=160/
   mx:Image source=
   http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg;
  width=800
   height=160/
   /mx:Application
  
   So is this a new feature on the player or is it a security hole?
  
   I've been reading the document at
www.adobe.com/devnet/*flash*player/
   articles/*flash*_player_8_*security*.pdf and the most accurate thing
  I've
   found refering to images is: A SWF file from a.com may read from
  the server
   at b.com (using the ActionScript XML.load() method, for example) if
   b.comhas a cross-domain policy file that permits access from
   a.com (or from all domains). So if the criteria for loading
  external images
   is the same as for .swf...
  
   Any ideas?
  
   Best
   X.
  
 
 
 
 
 
 
  --
  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 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/

* 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] throwing exceptions from FDS fill() method

2006-07-27 Thread Jeff Vroom












If you are talking about the fill method
on the flex.data.assemblers.Assembler interface, yeah by the rules of Java it
can only throw runtime exceptions (those exceptions which extend from
java.lang.RuntimeException). You can add another method on your class with a
different method signature that does not conflict with any method on the
Assembler interface that returns a Collection. Then add a fill-method tag in
your data-management-services.xml file which points to this method (just as
though you did not implement the Assembler interface). That method can then
throw whatever exception it wants, even those that extend from Exception as it
is invoked via reflection.



When you have a fill-method tag in the
definition file that matches the fill call on the client, it will be called
instead of the Assembler interface methods fill call. 



Jeff











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric
 D Anderson
Sent: Wednesday, July 26, 2006
5:29 PM
To: flexcoders@yahoogroups.com
Cc: Eric
 D Anderson
Subject: RE: [flexcoders] throwing
exceptions from FDS fill() method













Hi,



Are you looking to have the exception be returned to the client? 


Eric











From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com]
On Behalf Of Dmitry Miller
Sent: Tuesday, July 11, 2006 6:09
PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] throwing exceptions
from FDS fill() method











Is there
a way to throw custom exception from Assembler.fill() method?
For now I have managed to throw only RuntimeException. Is this intended?














__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] stop mailing list

2006-07-27 Thread Ferry Tristanto
i want to stop my mailing list, because my final
project already fineshed. thamnk you

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


--
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/

* 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] type declaration for constructor

2006-07-27 Thread Dan Rossi
Hi another problem i face is, i keep getting type declaration errors  
for this constructor, i cant seem to get it to remove at all ? I even  
renamed the file to double check it wasnt some compiler cache thing.  
I only get it with this class aswell. classes in the same package are  
fine.

package com.project.settings
{
public class AudioFormats2
{
public function Audioformats2()
{
var test:Number;
}

public function get audioCompressions():Array
{
return [{label:11.025 kbps, 5.512 kHz, mono, 
data:5.5125},
{label:16 kbps, 8 kHz, mono, data:8}, {label:22.05 
kbps, 11.025  
kHz, mono, data:11.025},
{label:44.1 Kbps, 22.050 kHz, mono, 
data:22.050},{label:88.2  
Kbps, 44.100 kHz, mono, data:44.100}];
}
}
}

Any ideas ?

Dan


--
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/

* 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] VideoDisplay extendable ?

2006-07-27 Thread Dan Rossi
Hi im tryingt to extend the VideoDisplay flex component, however im  
trying to work out how to inherit its NetConnection properties,  
obviouslly its using it, but i cant work out where ? let me know.

Daniel


--
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/

* 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] Issues with flex2, custom components and paths

2006-07-27 Thread Dan Rossi
Hi there, Im fairly new to flex, however im very familiar with the  
eclipse IDE. Im experiencing a problem where ive broken down my  
application into components. Ie i have seperate panels doing  
particular things , and seperate popup windows.

Now when i moved the flex files from the root directory into  
something cleaner like components/panels/ and components/popups the  
custom class package path that the root application is able to import  
ok, is not possible with some of them, I have the actionscript source  
seperated from the flex files using source includes. Strangely enough  
some of the components is able to import the custom package and its  
classes fine.

I keep getting errors like

SeverityDescription ResourceIn Folder   Location
Creation Time   Id
2   1172: Definition com.company.settings:VideoFormats could not be  
found.  CompressionSettings.as  Broadcaster/components/popups   line 4   
May 13, 2006 8:13:52 AM 3589

however when i go and move that component flex file to the root  
source it dissapears. What extra source paths do i need to add ? Also  
funny enough if i try to import com.adobe.*; it does the same thing ,

SeverityDescription ResourceIn Folder   Location
Creation Time   Id
2   1172: Definition com.adobe could not be found.   
CompressionSettings.as  Broadcaster/components/popups   line 10 May 13,  
2006 8:21:43 AM 3593

There is probably something im doing wrong,  ive added a namespace  
for the panels in the application tag   
xmlns:panels=components.panels.* could that be it ?

let me know thanks.

Dan


--
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/

* 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] Repositioning pop up window

2006-07-27 Thread JesterXL
popup = PopUpManager.createPopUp(this, YourComp, true);
popup.move( 100, 200);

- Original Message - 
From: Robs [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 5:56 AM
Subject: [flexcoders] Repositioning pop up window


Hi all,
   Can a popup window created with the createpopup method be 
repositioned to a desired x,y location. If yes, how?

Thanks in advance,
Robi.





--
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 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/

* 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] A bug with flash player 9??

2006-07-27 Thread flexava
Hi,I wonder if there's a bug with the flash play 9.When I specify that
a web service be called when a button is clicked,like this:
mx:WebService id=demoService service=Demo port=DemoSoap
wsdl=some wsdl here showBusyCursor=true
  mx:operation name=demo
mx:request
  param1param/param1
/mx:request
  /mx:operation
/mx:WebService
mx:Button label=Demo click=demoService.demo.send()/
The call isn't made when the button is clicked for the first
time,seeming that nothing happend(and actually nothing didn't
happen!!),but everything is ok in the successive clicks.Does anybody
else run into similar situation??






--
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/

* 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] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread JesterXL
Put 'em in seperate projects, or sub-projects.  Like:

com.company.project.admin.*
com.company.project.client.

Or:

com.company.projectadmin.*
com.company.projectclient.*

You should take advantage of the fact you may be using similiar code; both 
of the above in the same Flex project allows you to easily do that.

- Original Message - 
From: Stefan Schmalhaus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 4:38 AM
Subject: [flexcoders] Backend/Frontend Application Development (Cairngorm)


I'm going to develop a Flex (Cairngorm-based) intranet application for
training resources. There will be a backend part for user and content
administration, and there will be a frontend for the end user.

Both parts, backend and fronted, will presumably share a lot of the
underlying data structure, value objects, views, etc. They will
definitely use the same AMFPHP services. What's the best way to tackle
this? Should I treat them as two different Flex projects? Or can I
develop them within one Flex project but with two different MXML
application files?

Your ideas and thoughts are very much appreciated.

Stefan





--
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 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/

* 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] LocalConnection and complex data types

2006-07-27 Thread Kevin Hammer



Hi,

I'm going to have to go down the Flex 2 / Flash 8 route to build my next project. I'll be passing a lot of data between the two VMs and I'd like to know if anyone has done that. Any suggestions on passing complex data types coming to the AVM2 from Flex Data Services into a SWF built in the Flash 8 IDE. I'm loading a single SWF using the SWFLoader and using the whole LocalConnection technique described by Adobe. I haven't done much testing with passing through complex types yet and was hoping there was someone with insight to share.
-- Kevin Hammer

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] WSDLError:Element not resolvable

2006-07-27 Thread flexava
I ran into a strange problem when I was trying to call a web
service.Here's the source:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
mx:Script
![CDATA[
import mx.rpc.events.FaultEvent;
import mx.controls.Alert;
import mx.rpc.events.ResultEvent;
import 
com.adobe.cairngorm.control.CairngormEventDispatcher;
import com.ceno.umc.control.LoginEvent;

private function onResult(event : ResultEvent) : void
{
Alert.show(event.result.toString(),result);
}

private function onFault(event : FaultEvent) : void
{

Alert.show(event.fault.faultString,faultString);
}
]]
/mx:Script
mx:WebService id=aService service=umc/umc/auth
port=umc/umc/authHttpPort 
wsdl=http://localhost:8008/ws/services/umc/umc/auth?wsdl;
showBusyCursor=true
result=onResult(event) fault=onFault(event) 
  mx:operation name=login resultFormat=e4x
mx:request
req
subject
admin
/subject
username
admin
/username
password
admin
/password
/req
/mx:request
  /mx:operation 
/mx:WebService
mx:Button label=Login click=aService.login.send()/
/mx:Application
when I clicked the login button it first showed me an error dialog saying:
[WSDLError faultString=Element http://cmd.umc.ceno.com:loginResponse
not resolvable faultCode=WSDL.BadElement faultDetail=null]
at
mx.rpc.soap::WSDLParser/http://www.adobe.com/2006/flex/mx/internal::parseMessage()
at mx.rpc.soap::WSDLOperation/parseMessages()
at
mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/internal::invokePendingCall()
at mx.rpc.soap::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.soap.mxml::Operation/send()
at WSTest/___Button1_click()
then I clicked the login button again,eveything worked.Any idea? Thanks.





--
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/

* 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] Cairngorm: Managing Popup Windows

2006-07-27 Thread JesterXL
Popups were really valuble in Flex 1.5.  Most didn't know about the depth  
scoping capabilites in Flash Player, nor needed to care.  Popups worked 
great for putting stuff above everything and making it modal.

Nowadays, with states and the DisplayList, the only valid reason I can see 
is modality.

Thus, I'd avoid 'em like the plague unless you can answer yes to the 
following question: Does the form need to be modal?.


- Original Message - 
From: Stefan Schmalhaus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 5:37 AM
Subject: [flexcoders] Cairngorm: Managing Popup Windows


I've done some research on this list but haven't found any valid
information on what's considered best pratice in dealing with popup
windows. The few Cairngorm sample apps that are around don't seem to
use the TitleWindow component at all.

Let's say I have a simple DataGrid populated with some user data. If I
click on a row in the DataGrid a popup window opens with a form for
editing the user information. The popup window also has two buttons
for deleting or saving (updating) the user account.

I have done stuff like this several times in Flash/AS2 but I've never
used a framework approach so far. Now, if I look at this rather simple
task from a Cairngorm perspective it doesn't seem to be that simple
any more. (But I guess that's because I'm not yet too familiar with
Cairngorm.) I know how to establish databinding between the data
provider and {model.users} and all this basic Cairngorm stuff.

But what happens when a row is clicked? I'm not even sure if I'm
supposed to treat this event as a single event (selectUser or
openPopup?) or as a chain of two events (selectUser -
openPopup). Since my user information is organized as an array of
value objects it's easy to assign the selected user VO to
model.selectedUser:

model.selectedUser = UserVO(userList.selectedItem);

But am I allowed to directly access the ModelLocator from my view
component? Or am I supposed to route this simple action through the
Cairngorm command chain (Cairngorm Event - Front Controller -
Command Class - ModelLocator)?

Next question, what about the popup itself? Can I simply use
PopUpManager.createPopUp( this, UserFormView , true)? Or am I supposed
to treat this as a Cairngorm Event, too?

I feel in safe Cairngorm terrain again with the updateUser and
deleteUser actions on the buttons. But what about closing the popup
window? Is this even worth a Cairngorm event?

I guess these questions sound rather stupid to those of you who are
more experienced with frameworks. But at the moment these questions
are obstacles on my way to master Cairngorm (which I will hopefully do
one day). I apologize for my verbose post and my bad English, but I
hope that someone can shed some light on these issues.

Stefan





















--
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 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/

* 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: feature or security hole on flash sandBox?

2006-07-27 Thread Xavi Beumala



Sorrry,the quotation was taken from http://www.adobe.com/devnet/flashplayer/articles/flash_player_9_security.pdf not from flash player 8 specification.
X.On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:
Hmm, I've not read enough about the newer security models to be sure,I just assumed it was that way since earlier versions were. One thingI did notice though was that you said you're reading from the securitywhitepaper for FP8. You should be reading about FP9 since that is what
Flex and AS3 target.HTH,Benhttp://www.returnundefined.com/--- In flexcoders@yahoogroups.com, Xavi Beumala [EMAIL PROTECTED] wrote:
 I think you're wrong. It's also working on web server. And fromlocal system you've also restrictions. Just try an application running from the local file system and consuming remote data throgh HTTPService, it's going to
 fail. But it's not failing with mx:Image. X. On 7/27/06, ben.clinkinbeard [EMAIL PROTECTED] wrote:   There are no restrictions when running the file on your local system.
  Access it through a web server and your calls will fail.   HTH,  Ben  http://www.returnundefined.com/ 
  --- In flexcoders@yahoogroups.com, Xavi Beumala xavi@ wrote: Hi, Today I've noticed that I can load images from diferent domains
(which   doesn't have a crossdomain file) without getting a security sandbox   violation error. For example, when running the following application from my
  fileSystem I'm   not receiving any error eventhough the domains don't have decrossdomain   file (I also haven't trusted the file). mx:Application xmlns:mx=
http://www.adobe.com/2006/mxml  layout=vertical   mx:Image source=
http://www.code4net.com/header/foto2.jpg  width=800   height=160/   mx:Image source=   
http://us.i1.yimg.com/us.yimg.com/i/mntl/hlth/06q2/img_diet.jpg  width=800   height=160/   /mx:Application So is this a new feature on the player or is it a security hole?
 I've been reading the document atwww.adobe.com/devnet/*flash*player/   articles/*flash*_player_8_*security*.pdf and the most accurate thing
  I've   found refering to images is: A SWF file from a.com may read from  the server   at b.com (using the ActionScript 
XML.load() method, for example) if   b.comhas a cross-domain policy file that permits access from   a.com (or from all domains). So if the criteria for loading
  external images   is the same as for .swf... Any ideas? Best   X.
  --  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 Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Re: Local Connection

2006-07-27 Thread JesterXL
Geez, definately sounds like the GC then, that's harsh.  Um... uh... well, 
the only thing I can think of beyond doing it dynamically like you said is 
to ensure when you remove them that you kill all listeners, delete what you 
can, disconnect what you can, etc. BEFORE destroying the SWFLoader.

Good luck.

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 8:03 AM
Subject: [flexcoders] Re: Local Connection


Jester, I read the articles and fully understand what you meant...

I load one swf and then try to load a second and even though I've
sent the first swf packing it's still in memory and listening to the
menu.swf's local connection calls because GC hasn't come along and
cleaned it up.

Maybe if I get rid of the SWFLoader completely then try to create a
new one dynamically when the next swf is loaded that would work??
I'll try it.

Yes, the menu.swf is able to control the two main swf's outside of
Flex. If they are all running at the same time, the menu.swf will
control which ever main.swf was started first. Then if i close that
main.swf the other will just start working.  That little experiment
just provides more evidence (and helps me get it)...that the first
swf is still there in Flex...

Anyway, Thanks again...if you have any more suggestions...as always
appreciated. I'll keep working at it...
Jenn



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

 Oh it's deeper than emptying a source reference.  Welcome to the
dark side
 of ActionScript 3..

 http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html

 http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html

 BTW, do your SWF's talk to eachother locally without Flex?

 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 26, 2006 3:13 PM
 Subject: [flexcoders] Re: Local Connection


 okay, thanks...that works for loading a swf at runtime if the
 SWFLoader has no assigned source.  However, if the SWFLoader has an
 assigned source and you try to change it during runtime, then LC
 doesn't work anymore.

 That comes back to your last comment about garbage collection and
the
 original swf not being cleaned up before the new one is loaded, i
 tried to research what you meant but as far i could tell all I could
 do in flex was to set the SWFLoader source to = before loading the
 next swf.  I could not find any unload methods.

 Thanks again for helping.


 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Try again, but put an underscore in front of the name for both
 SWF's.
 
  _swfConnect instead of swfConnect.
 
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 1:59 PM
  Subject: [flexcoders] Re: Local Connection
 
 
  Jester,
  I have tried putting the local connection code in the main flex
app
  and calling to the embedded SWF and this is the attempt at
creating
 a
  second embedded swf (menu) to make the calls to the main
 SWF...either
  way if the swf is loaded at runtime...local connection is a no go.
 
  Thanks
 
  *This is my menu.swf local connection code...
 
  #include mc_tween2.as
  stop();
  var lcsend:LocalConnection = new LocalConnection();
  play_btn.onRelease = function(){
  lcsend.send (swfConnect, playFile);
  }
  stop_btn.onRelease = function () {
  lcsend.send (swfConnect, stopandrestart);
  }
  pause_btn.onRelease = function () {
  lcsend.send (swfConnect , pauseFile);
  }
 
  *And this is the Main.swf local connection code
 
  var lc:LocalConnection = new LocalConnection();
  lc.pauseFile = function() {
  stop();
  }
  lc.resumeFile = function() {
  play();
  }
  lc.stopandrestart = function() {
  gotoAndStop(1);
  }
  lc.playFile = function () {
  gotoAndPlay(1);
  }
  lc.getframeNum = function () {
 
  }
  lc.connect(swfConnect);
 
  ***
 
 
 
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Can you paste a snippet of your LocalConnection code in the
Flash
  SWF?
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 1:02 PM
   Subject: [flexcoders] Local Connection
  
  
   I think I am going to go crazy over this.  I have tried this a
 few
   different ways and always ending with the same result...not
 working.
  
   I have 2 swf's loaded in my app with SWFLoader. They use local
   connection to talk to each other.  If i run app with swfloader
 with
   no source and then dynamically set the swf source when something
   happens in the app, local connection doesn't work.  If i load
the
  swf
   in design the local connection works fine. For example Code 1
  doesn't
   work, Code 2 does...If you can lend a hand I would REALLY
  appreciate
   it.
  
   Jenn
  
   Code 1*
   ?xml version=1.0 

RE: [Junk E-Mail - MED] Re: [flexcoders] How does Flex 2.0 handle ColdFusion Query results?

2006-07-27 Thread Shannon Hicks





This is not true, at least when you're returning a query 
via the flexgateway.

Shan


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of DekaydSent: 
Thursday, July 27, 2006 1:56 AMTo: 
flexcoders@yahoogroups.comSubject: [Junk E-Mail - MED] Re: 
[flexcoders] How does Flex 2.0 handle ColdFusion Query 
results?


I don't know if this is still true with CF 7.0.2 but if I 
remembercorrectly CF returns column names in all uppercase.That 
might be why your columns in the datagrid don't display 
anything.--Kelly
--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/399 - Release Date: 
7/25/2006
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006
 


[flexcoders] Problems with ComboBox control

2006-07-27 Thread arnold_charming
Hi!

I have a XML file (look below) which is then send to the ComboBox as
'dataProvider={xmlFile.urednik.label}'. But now I want to access the
required id of selected item/label. I tried several things but none of
them worked. Please help me out.

XML File
--
root
urednik
id5/id
labelSomething/label
/urednik
/root







--
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/

* 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] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread Douglas Knudsen



curious how to share resources with this, say using Cairngorm. How to share a command that returns data to a modellocator? How to return th edata to the current model locator for a sub app?DK
On 7/27/06, JesterXL [EMAIL PROTECTED] wrote:
Put 'em in seperate projects, or sub-projects.Like:com.company.project.admin.*com.company.project.client.Or:com.company.projectadmin.*com.company.projectclient.*You should take advantage of the fact you may be using similiar code; both
of the above in the same Flex project allows you to easily do that.- Original Message -From: Stefan Schmalhaus [EMAIL PROTECTED]
To: flexcoders@yahoogroups.comSent: Thursday, July 27, 2006 4:38 AMSubject: [flexcoders] Backend/Frontend Application Development (Cairngorm)I'm going to develop a Flex (Cairngorm-based) intranet application for
training resources. There will be a backend part for user and contentadministration, and there will be a frontend for the end user.Both parts, backend and fronted, will presumably share a lot of theunderlying data structure, value objects, views, etc. They will
definitely use the same AMFPHP services. What's the best way to tacklethis? Should I treat them as two different Flex projects? Or can Idevelop them within one Flex project but with two different MXMLapplication files?
Your ideas and thoughts are very much appreciated.Stefan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links--Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/-- Douglas Knudsenhttp://www.cubicleman.com
this is my signature, like it?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



RE: [flexcoders] A bug with flash player 9??

2006-07-27 Thread Cathy Reilly
Is it possible that you're running into an issue with the new version of
IE?

http://www.adobe.com/devnet/activecontent/

You don't mention how your html wrapper is generated.  If you're using
FB 2, FDS 2 Web Tier Compiler, or the html-templates that ship with Flex
2 SDK, then you've correctly coded the html wrapper to work with the new
version of IE.  If you've hand coded, be sure that you've followed the
instructions in the link above.  One easy way to tell if you're runnning
into the Active Content issue is that you have a tooltip when you hover
over the swf before the click, saying that you need to click or press
enter to continue.  Thus, the first click is for activation and every
other click gets picked up.

- Cathy 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexava
Sent: Thursday, July 27, 2006 8:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] A bug with flash player 9??

Hi,I wonder if there's a bug with the flash play 9.When I specify that
a web service be called when a button is clicked,like this:
mx:WebService id=demoService service=Demo port=DemoSoap
wsdl=some wsdl here showBusyCursor=true
  mx:operation name=demo
mx:request
  param1param/param1
/mx:request
  /mx:operation
/mx:WebService
mx:Button label=Demo click=demoService.demo.send()/
The call isn't made when the button is clicked for the first
time,seeming that nothing happend(and actually nothing didn't
happen!!),but everything is ok in the successive clicks.Does anybody
else run into similar situation??






--
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 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/

* 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: Repositioning pop up window

2006-07-27 Thread Tim Hoff
Once again, Jesta in da house. :)

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

 popup = PopUpManager.createPopUp(this, YourComp, true);
 popup.move( 100, 200);
 
 - Original Message - 
 From: Robs [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 5:56 AM
 Subject: [flexcoders] Repositioning pop up window
 
 
 Hi all,
Can a popup window created with the createpopup method be 
 repositioned to a desired x,y location. If yes, how?
 
 Thanks in advance,
 Robi.
 
 
 
 
 
 --
 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 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/

* 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] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread JesterXL





// Assuming your in your Client Application for 
example
import 
com.company.project.admin.events.SomeEvent;
import 
com.company.project.client.events.ClientEvent;

var e:SomeEvent = new 
SomeEvent(SomeEvent.EVENT_NAME, false, true);
CairngormEventDispatcher.getInstance().dispatchEvent(e);

You could do the reverse in the admin. As a 
GUI guy, I probably would care more about sharing commonly used View's and 
utility classes vs. events and commands that were probably created for their 
specific projects, but it could be done.

- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 9:25 AM
Subject: Re: [flexcoders] Backend/Frontend Application Development 
(Cairngorm)
curious how to share resources with this, say using 
Cairngorm. How to share a command that returns data to a 
modellocator? How to return th edata to the current model locator for a 
sub app?DK
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote:
Put 
  'em in seperate projects, or 
  sub-projects.Like:com.company.project.admin.*com.company.project.client.Or:com.company.projectadmin.*com.company.projectclient.*You 
  should take advantage of the fact you may be using similiar code; both of 
  the above in the same Flex project allows you to easily do that.- 
  Original Message -From: "Stefan Schmalhaus" [EMAIL PROTECTED]To: 
  flexcoders@yahoogroups.comSent: 
  Thursday, July 27, 2006 4:38 AMSubject: [flexcoders] Backend/Frontend 
  Application Development (Cairngorm)I'm going to develop a Flex 
  (Cairngorm-based) intranet application for training resources. There will 
  be a backend part for user and contentadministration, and there will be a 
  frontend for the end user.Both parts, backend and fronted, will 
  presumably share a lot of theunderlying data structure, value objects, 
  views, etc. They will definitely use the same AMFPHP services. What's the 
  best way to tacklethis? Should I treat them as two different Flex 
  projects? Or can Idevelop them within one Flex project but with two 
  different MXMLapplication files? Your ideas and thoughts are very 
  much appreciated.Stefan--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links--Flexcoders Mailing List 
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links* To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/ 
  * 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/-- Douglas Knudsenhttp://www.cubicleman.com this is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Cairngorm Examples

2006-07-27 Thread Mark Wales

Are there any ultra-simple examples of Cairngorm using the GA of Flex 2 
that include the server-side java classes down to the data access 
objects  that might invoke a database? I am looking for the simplest 
possible implementation that shows all the code/classes on both the 
client and server.

I'd appreciate any links anyone can forward.

-Mark

  



--
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/

* 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: Repositioning pop up window

2006-07-27 Thread Robi Ray
Thanks Tim. I, somehow, got the soln to this:

var l:IFlexDisplayObject = PopUpManager.createPopUp(this, your custom
class, true);
l.x = some value;
l.y = some value;

Regards,
Robi.



--
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/

* 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: Remoteobject help

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 11:52, Jeremy Rottman wrote:
 even with defining the uri I get the same issue. Everywhere I have
 looked not a single tutorial has said to define the uri in the
 channels section of hte service-config.xml file

http://thefalken.livejournal.com/ ;-)

-- 
Tom Chiverton, mouth firmly over trumpet and blowing hard. I'm sure MXNA will 
wake up soon



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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: Remoteobject help

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 13:22, Jeremy Rottman wrote:
 ok well I got it to work with this code. But this isnt exactly how I
 want it to work. Do I have to use test.component name and do I have
 to add the end point.
   mx:RemoteObject
   id=qryService
   destination=ColdFusion
   source=test.ROtest
   result=qryService_userSearch_Result(event)
 endpoint=http://fx3.homesmartagent.com/flex2gateway/;
   showBusyCursor=true
   fault=qryService_userSearch_Fault(event)/

You are using the default ColdFusion endpoint, which has '*' as the CFC to 
connect to (source), so you have to use 'source' in the MXML to give it 
more of a hint.

It's more normal to have one endpoint per CFC (give the full CFC dotted path 
in the source section), and then you can use just destination in 
RemoteObject.

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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] Cairngorm Examples

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 14:35, Mark Wales wrote:
 Are there any ultra-simple examples of Cairngorm using the GA of Flex 2
 that include the server-side java classes down to the data access
 objects  that might invoke a database?

See the 'Cairngorm 2 - Sample Application?' thread in this very forum earlier.
-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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: Local Connection

2006-07-27 Thread Tim Hoff
This is a mystery area.  Go back and find all of the references to 
an object and remove them before the object is eligible for 
disposal?  That's a lot of work.  In .Net, the GC constantly spins 
around looking for memory to clear.  The objects are either 
automatically marked for disposal, when they go out of scope, or are 
manually marked for disposal.  This goes for connections as well.  
I'm sure many of us are wondering how to limit CPU usage.

-TH

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

 Geez, definately sounds like the GC then, that's harsh.  Um... 
uh... well, 
 the only thing I can think of beyond doing it dynamically like you 
said is 
 to ensure when you remove them that you kill all listeners, delete 
what you 
 can, disconnect what you can, etc. BEFORE destroying the SWFLoader.
 
 Good luck.
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 8:03 AM
 Subject: [flexcoders] Re: Local Connection
 
 
 Jester, I read the articles and fully understand what you meant...
 
 I load one swf and then try to load a second and even though I've
 sent the first swf packing it's still in memory and listening to 
the
 menu.swf's local connection calls because GC hasn't come along and
 cleaned it up.
 
 Maybe if I get rid of the SWFLoader completely then try to create a
 new one dynamically when the next swf is loaded that would work??
 I'll try it.
 
 Yes, the menu.swf is able to control the two main swf's outside of
 Flex. If they are all running at the same time, the menu.swf will
 control which ever main.swf was started first. Then if i close that
 main.swf the other will just start working.  That little experiment
 just provides more evidence (and helps me get it)...that the first
 swf is still there in Flex...
 
 Anyway, Thanks again...if you have any more suggestions...as always
 appreciated. I'll keep working at it...
 Jenn
 
 
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Oh it's deeper than emptying a source reference.  Welcome to the
 dark side
  of ActionScript 3..
 
  
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 
  
http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
 
  BTW, do your SWF's talk to eachother locally without Flex?
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 3:13 PM
  Subject: [flexcoders] Re: Local Connection
 
 
  okay, thanks...that works for loading a swf at runtime if the
  SWFLoader has no assigned source.  However, if the SWFLoader has 
an
  assigned source and you try to change it during runtime, then LC
  doesn't work anymore.
 
  That comes back to your last comment about garbage collection and
 the
  original swf not being cleaned up before the new one is loaded, i
  tried to research what you meant but as far i could tell all I 
could
  do in flex was to set the SWFLoader source to = before loading 
the
  next swf.  I could not find any unload methods.
 
  Thanks again for helping.
 
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Try again, but put an underscore in front of the name for both
  SWF's.
  
   _swfConnect instead of swfConnect.
  
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 1:59 PM
   Subject: [flexcoders] Re: Local Connection
  
  
   Jester,
   I have tried putting the local connection code in the main flex
 app
   and calling to the embedded SWF and this is the attempt at
 creating
  a
   second embedded swf (menu) to make the calls to the main
  SWF...either
   way if the swf is loaded at runtime...local connection is a no 
go.
  
   Thanks
  
   *This is my menu.swf local connection code...
  
   #include mc_tween2.as
   stop();
   var lcsend:LocalConnection = new LocalConnection();
   play_btn.onRelease = function(){
   lcsend.send (swfConnect, playFile);
   }
   stop_btn.onRelease = function () {
   lcsend.send (swfConnect, stopandrestart);
   }
   pause_btn.onRelease = function () {
   lcsend.send (swfConnect , pauseFile);
   }
  
   *And this is the Main.swf local connection code
  
   var lc:LocalConnection = new LocalConnection();
   lc.pauseFile = function() {
   stop();
   }
   lc.resumeFile = function() {
   play();
   }
   lc.stopandrestart = function() {
   gotoAndStop(1);
   }
   lc.playFile = function () {
   gotoAndPlay(1);
   }
   lc.getframeNum = function () {
  
   }
   lc.connect(swfConnect);
  
   ***
  
  
  
  
   --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ 
wrote:
   
Can you paste a snippet of your LocalConnection code in the
 Flash
   SWF?
   
- Original Message - 
From: flexnewbie06 flexnewbie06@
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 1:02 PM
Subject: [flexcoders] 

Re: [flexcoders] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread Douglas Knudsen



righto on that. Say I have a command GetUserCommand() that returns a userVO for the current user in session. This is returned to the apps modellocator, has stuff like name, etc, in it.so we have
com.company.project.admin.model.AModLoccom.company.project.client.model.CModLocHow does GetUserCommand() stick the userVO result into the proper model? Typically the model is hardcoded in the Command, eh? What I've done so far is used a generic model so to speak in 
com.company.project.model.GModLoc say. Then the client app and admin app can access it as well as their respective model. DKOn 7/27/06, 
JesterXL [EMAIL PROTECTED] wrote:









// Assuming your in your Client Application for 
example
import 
com.company.project.admin.events.SomeEvent;
import 
com.company.project.client.events.ClientEvent;

var e:SomeEvent = new 
SomeEvent(SomeEvent.EVENT_NAME, false, true);
CairngormEventDispatcher.getInstance().dispatchEvent(e);

You could do the reverse in the admin. As a 
GUI guy, I probably would care more about sharing commonly used View's and 
utility classes vs. events and commands that were probably created for their 
specific projects, but it could be done.

- Original Message - 
From: 
Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 

Sent: Thursday, July 27, 2006 9:25 AM
Subject: Re: [flexcoders] Backend/Frontend Application Development 
(Cairngorm)
curious how to share resources with this, say using 
Cairngorm. How to share a command that returns data to a 
modellocator? How to return th edata to the current model locator for a 
sub app?DK
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote:
Put 
  'em in seperate projects, or 
  sub-projects.Like:com.company.project.admin.*com.company.project.client.Or:com.company.projectadmin.*com.company.projectclient.*You 
  should take advantage of the fact you may be using similiar code; both of 
  the above in the same Flex project allows you to easily do that.- 
  Original Message -From: Stefan Schmalhaus [EMAIL PROTECTED]To: 
  flexcoders@yahoogroups.comSent: 
  Thursday, July 27, 2006 4:38 AMSubject: [flexcoders] Backend/Frontend 
  Application Development (Cairngorm)I'm going to develop a Flex 
  (Cairngorm-based) intranet application for training resources. There will 
  be a backend part for user and contentadministration, and there will be a 
  frontend for the end user.Both parts, backend and fronted, will 
  presumably share a lot of theunderlying data structure, value objects, 
  views, etc. They will definitely use the same AMFPHP services. What's the 
  best way to tacklethis? Should I treat them as two different Flex 
  projects? Or can Idevelop them within one Flex project but with two 
  different MXMLapplication files? Your ideas and thoughts are very 
  much appreciated.Stefan--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! 
  Groups Links--Flexcoders Mailing List 
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  Groups Links* To visit your group on the web, go 
  to:http://groups.yahoo.com/group/flexcoders/ 
  * 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/
-- Douglas Knudsenhttp://www.cubicleman.com this is my 
signature, like it?  



-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Problem with PopUps with Flash Player 9,0,16,0 ?

2006-07-27 Thread david_c_lowe
I only updated the Player ... I'm currently running beta3 Builder.

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

 The code is correct.  Did you also update your Flex Builder 2 
plugin / IDE 
 or just the player?
 
 - Original Message - 
 From: david_c_lowe [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, July 21, 2006 5:57 AM
 Subject: [flexcoders] Problem with PopUps with Flash Player 
9,0,16,0 ?
 
 
 Hello, Dave Lowe here.
 
 I've just updated my Flash Player from version 9,0,0,296 to
 version 9,0,16,0 and PopUps appear to have stopped working
 (no PopUp is displayed - see code at the end of this post).
 
 This code works under 9,0,0,296.
 
 Am I doing something wrong or is this a bug in 9,0,16,0?
 
 Cheers, Dave.
 
 _
 
 
 PopUpTest.mxml
 ==
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 
 mx:Script
 ![CDATA[
 
 import mx.managers.PopUpManager;
 import mx.containers.TitleWindow;
 
 
private function showPopUp():void {
 var popUpWindow:TitleWindow = TitleWindow
 (PopUpManager.createPopUp(this, ThePopUp, true));
 popUpWindow.title=PopUp Test;
 }
 
 
 ]]
 /mx:Script
 
 mx:Button
 label=Show PopUp
 click=showPopUp()
 /
 /mx:Application
 
 _
 
 ThePopUp.mxml
 =
 
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow
 xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=doInit()
 horizontalAlign=center
 backgroundColor=blue
 height=150
 width=400
 
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
 
 private function doInit():void {
 // Center the TitleWindow container over the 
control
 that created it.
 PopUpManager.centerPopUp(this);
 }
 
 private function removePopUp():void {
 // Remove pop up.
 PopUpManager.removePopUp(this);
 }
 ]]
 /mx:Script
 
 
 mx:Label
 text=PopUp Test
 textAlign=center
 color=white
 fontSize=20
 /
 
 mx:Spacer height=100%/
 
 mx:Button
 label=Continue
 click=removePopUp()
 /
 
 /mx:TitleWindow
 
 
 
 
 
 
 
 --
 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 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/

* 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] cairngorm Events and data payloads

2006-07-27 Thread Douglas Knudsen



can someone point me to a example of how to pass data in a cairngorm type event? I'm trying the below withpackage com.mycompany.events
{
 import com.adobe.cairngorm.control.CairngormEvent;
 
 public class LoadScorecardEvent extends CairngormEvent 
 { 
  public static var EVENT_LOAD_SCORECARD: String = 'LoadScorecardEvent';
  public var scorecardId:Number;
  /**
  * The constructor, 
  */
  public function LoadScorecardEvent( ) 
  {
   super( EVENT_LOAD_SCORECARD );
   
  }
  
 }
 
}then in a view dispatching like sovar devent : LoadScorecardEvent = new LoadScorecardEvent( );devent.scorecardId = 5;  CairngormEventDispatcher.getInstance().dispatchEvent( devent );
and in the command I havepublic function execute( eventHere : CairngormEvent ) : void  {  var del : MainDelegate = new MainDelegate( this );  del.getScorecard( eventHere.scorecardId
 ); }But this bombs out with a error about scorecardId not in eventHere.DK-- Douglas Knudsenhttp://www.cubicleman.com
this is my signature, like it?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Problems with ComboBox control

2006-07-27 Thread gotgoose09
Set the dataProvider to dataProvider={xmlFile.urednik}.  Then, set the
labelField of the ComboBox to label.  This should show the label to
the user and then you can get the id by typing
comboBox.selectedItem.id or the label: comboBox.selectedItem.label.
--- In flexcoders@yahoogroups.com, arnold_charming
[EMAIL PROTECTED] wrote:

 Hi!
 
 I have a XML file (look below) which is then send to the ComboBox as
 'dataProvider={xmlFile.urednik.label}'. But now I want to access the
 required id of selected item/label. I tried several things but none of
 them worked. Please help me out.
 
 XML File
 --
 root
 urednik
 id5/id
 labelSomething/label
 /urednik
 /root








--
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/

* 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] remote object mapping frustration

2006-07-27 Thread Douglas Knudsen



Ok, I got this CFC modeling a composite object. Lets say its com.myco.project.user. user has three members: userid a string, address a com.myco.project.adress, and say cars a array of com.myco.project.car
. The CFCs work fine in that DAOs do their magik. On the Flex side I have com.myco.project.vo.user, com.myco.project.vo.address, and com.myco.project.car all mapping to the above. sounds good so far, eh? Now, the Flex code kicks a event off that does the remoteobject connection to the CF server requesting a user object. It gets built and according to the debug data I can see at the DOS prompt from CFServer, it is returned to Flex as the proper 
com.myco.project.car object containing the other objects properly. BUT in the FlexBuilder debugger the returned object is listed as result = mx.utils.ObjectProxy (@5824481) I've been bangin my head for hours on this. I have many other setups like this working fine, suddenly this one doesn't.
My onresult() has a line like which throws a runtime error about type coercionfoo = event.result as user; any thoughts?-- Douglas Knudsenhttp://www.cubicleman.com
this is my signature, like it?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] Cairngorm Examples

2006-07-27 Thread Vikas Bhatia



Try this, I have left the db access out of it, but if you are failiar with hibernate or the like, it should be fairly easy to plugin.http://flamingrain.com/blog/?p=4
On 7/27/06, Mark Wales [EMAIL PROTECTED] wrote:
Are there any ultra-simple examples of Cairngorm using the GA of Flex 2that include the server-side java classes down to the data accessobjectsthat might invoke a database? I am looking for the simplestpossible implementation that shows all the code/classes on both the
client and server.I'd appreciate any links anyone can forward.-Mark--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Local Connection - RESOLVED!

2006-07-27 Thread flexnewbie06
Thanks again jesterXL...

Added just a few lines...can't believe i didn't think of this 
earlier...it was definitly a light bulb moment...cleans up local 
connection...so it can be used by next loaded swf.  Had to make 
changes to swf's and just wasn't thinking about them.

added - to main flex app every time swfLoader changes it's source...
lc.send (_swfConnect, killAll);

added - to the main.swf's called functions
lc.killAll = function () {
lc.close()
}

okay...what's next...;o)

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

 Geez, definately sounds like the GC then, that's harsh.  Um... 
uh... well, 
 the only thing I can think of beyond doing it dynamically like you 
said is 
 to ensure when you remove them that you kill all listeners, delete 
what you 
 can, disconnect what you can, etc. BEFORE destroying the SWFLoader.
 
 Good luck.
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 8:03 AM
 Subject: [flexcoders] Re: Local Connection
 
 
 Jester, I read the articles and fully understand what you meant...
 
 I load one swf and then try to load a second and even though I've
 sent the first swf packing it's still in memory and listening to the
 menu.swf's local connection calls because GC hasn't come along and
 cleaned it up.
 
 Maybe if I get rid of the SWFLoader completely then try to create a
 new one dynamically when the next swf is loaded that would work??
 I'll try it.
 
 Yes, the menu.swf is able to control the two main swf's outside of
 Flex. If they are all running at the same time, the menu.swf will
 control which ever main.swf was started first. Then if i close that
 main.swf the other will just start working.  That little experiment
 just provides more evidence (and helps me get it)...that the first
 swf is still there in Flex...
 
 Anyway, Thanks again...if you have any more suggestions...as always
 appreciated. I'll keep working at it...
 Jenn
 
 
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Oh it's deeper than emptying a source reference.  Welcome to the
 dark side
  of ActionScript 3..
 
  http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 
  
http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
 
  BTW, do your SWF's talk to eachother locally without Flex?
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 3:13 PM
  Subject: [flexcoders] Re: Local Connection
 
 
  okay, thanks...that works for loading a swf at runtime if the
  SWFLoader has no assigned source.  However, if the SWFLoader has 
an
  assigned source and you try to change it during runtime, then LC
  doesn't work anymore.
 
  That comes back to your last comment about garbage collection and
 the
  original swf not being cleaned up before the new one is loaded, i
  tried to research what you meant but as far i could tell all I 
could
  do in flex was to set the SWFLoader source to = before loading 
the
  next swf.  I could not find any unload methods.
 
  Thanks again for helping.
 
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Try again, but put an underscore in front of the name for both
  SWF's.
  
   _swfConnect instead of swfConnect.
  
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 1:59 PM
   Subject: [flexcoders] Re: Local Connection
  
  
   Jester,
   I have tried putting the local connection code in the main flex
 app
   and calling to the embedded SWF and this is the attempt at
 creating
  a
   second embedded swf (menu) to make the calls to the main
  SWF...either
   way if the swf is loaded at runtime...local connection is a no 
go.
  
   Thanks
  
   *This is my menu.swf local connection code...
  
   #include mc_tween2.as
   stop();
   var lcsend:LocalConnection = new LocalConnection();
   play_btn.onRelease = function(){
   lcsend.send (swfConnect, playFile);
   }
   stop_btn.onRelease = function () {
   lcsend.send (swfConnect, stopandrestart);
   }
   pause_btn.onRelease = function () {
   lcsend.send (swfConnect , pauseFile);
   }
  
   *And this is the Main.swf local connection code
  
   var lc:LocalConnection = new LocalConnection();
   lc.pauseFile = function() {
   stop();
   }
   lc.resumeFile = function() {
   play();
   }
   lc.stopandrestart = function() {
   gotoAndStop(1);
   }
   lc.playFile = function () {
   gotoAndPlay(1);
   }
   lc.getframeNum = function () {
  
   }
   lc.connect(swfConnect);
  
   ***
  
  
  
  
   --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
   
Can you paste a snippet of your LocalConnection code in the
 Flash
   SWF?
   
- Original Message - 
From: flexnewbie06 flexnewbie06@
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 

[flexcoders] TextLineMetrics anyone?

2006-07-27 Thread jeff tapper
Has anyone successfully used TextLineMetrics with multiline text 
fields?  All my experiments are showing that it always computes 
assuming a single, not wrapping line of text.  I'm not sure if im 
using it wrong (the most likely scenario), if its a documentation 
error, or a bug.  According to the docs, the TextLineMetrics width 
property should be the width of the text within a text field, 
however, I'm finding if I have a Text control with a width of 300, 
and a few lines of text within it, the width property shows the 
width as if it were on one line of text, and the height is 
indicating the height of a single line of text.  

Here is an example:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical
mx:Style
.bigRed{
font-family:Arial;
font-size:40;
color:#33;
}
/mx:Style
mx:HBox
mx:Button label=Measure click=measureTheText()/
mx:Button label=Style click=doStyle()/
mx:Button label=Clear Style click=clearTheStyle()/
/mx:HBox
mx:TextInput id=enteredText/
mx:Text id=output text={enteredText.text} width=300 /
mx:Script
![CDATA[
import mx.controls.Alert;
private function measureTheText():void{
var tlm:TextLineMetrics = output.measureText
(enteredText.text);
var h:int = tlm.height;
var w:int = tlm.width;
Alert.show(text is  + w.toString() +x+h.toString
());
}
private function doStyle():void{
output.setStyle(styleName,bigRed)
}
private function clearTheStyle():void{
output.clearStyle(styleName);
}
]]
/mx:Script
/mx:Application






--
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/

* 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] stop mailing list

2006-07-27 Thread Paul Andrews
- Original Message - 
From: Ferry Tristanto [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 7:03 AM
Subject: [flexcoders] stop mailing list


i want to stop my mailing list, because my final
 project already fineshed. thamnk you

Reading to the bottom of the list emails, might be an idea..

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


 --
 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 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/

* 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: [Junk E-Mail - MED] [flexcoders] remote object mapping frustration

2006-07-27 Thread Shannon Hicks





I had similar problems at one point Turned out my 
RemoteClass alias was wrong.

I think I also had the same problem when the alias in the 
cfcomponent tag didn't match, too.

Shan


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas 
KnudsenSent: Thursday, July 27, 2006 9:12 AMTo: 
flexcoders@yahoogroups.comSubject: [Junk E-Mail - MED] [flexcoders] 
remote object mapping frustration


Ok, I got this CFC modeling a composite object. Lets say 
its com.myco.project.user. user has three members: userid a 
string, address a com.myco.project.adress, and say cars a array of 
com.myco.project.car . The CFCs work fine in that DAOs do their 
magik. On the Flex side I have com.myco.project.vo.user, 
com.myco.project.vo.address, and com.myco.project.car all mapping to 
the above. sounds good so far, eh? Now, the Flex code kicks a event 
off that does the remoteobject connection to the CF server requesting a user 
object. It gets built and according to the debug data I can see at the DOS 
prompt from CFServer, it is returned to Flex as the proper 
com.myco.project.car object containing the other objects properly. 
BUT in the FlexBuilder debugger the returned object is listed as result = 
mx.utils.ObjectProxy (@5824481) I've been bangin my head for 
hours on this. I have many other setups like this working fine, suddenly 
this one doesn't. My onresult() has a line like which throws a runtime 
error about type coercionfoo = event.result as user; any 
thoughts?-- Douglas Knudsenhttp://www.cubicleman.com this is 
my signature, like it? 
--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 
7/26/2006
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006
 


[flexcoders] Using VBox with Image inside as a TileList itemRenderer strangeness

2006-07-27 Thread Sergey Kovalyov
Hi All!

Why should I make VBox width 4 pixels more than actual image width,
but keep its height the same as actual image height in order to make 2
pixels border around the image when either mouse overing the item or
selecting it?

mx:TileList width=100% height=100% dataProvider={_dataProvider}
mx:itemRenderer
mx:Component
mx:VBox width=54 height=50 
horizontalAlign=center
horizontalScrollPolicy=off verticalScrollPolicy=off
mx:Image width=50 height=50 
source={data.image} /
/mx:VBox
/mx:Component
/mx:itemRenderer
/mx:TileList

Thank you in advance!

Regards, Sergey.


--
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/

* 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] FDS NullPointerException

2006-07-27 Thread dreuimar
Hi everyone,

I had a problem the other day with lazy loading using a Java backend.
Using the debugger and throwing Java exceptions, I've narrowed it down
to a NullPointerException.

Anyone know anything about how to overcome this? I'm guessing what's
happening is that a null value is being returned when getItem() is
called rather than a value object.

Here is more information:
http://groups.yahoo.com/group/flexcoders/message/44968

Any help would be greatly appreciated!

Thanks,
Brennan






--
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/

* 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] Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread JesterXL





If you use the same ModelLocator, yes. I'd 
assume, however, each would have their own ModelLocator. Additionally 
there is no reason you couldn't share the same one. Still, depends on the 
project, and I usually only have borrewed views between proejcts, not command 
 model stuff.
- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 9:53 AM
Subject: Re: [flexcoders] Backend/Frontend Application Development 
(Cairngorm)
righto on that. Say I have a command GetUserCommand() that 
returns a userVO for the current user in session. This is returned to the 
apps modellocator, has stuff like name, etc, in it.so we havecom.company.project.admin.model.AModLoccom.company.project.client.model.CModLocHow 
does GetUserCommand() stick the userVO result into the proper model? 
Typically the model is hardcoded in the Command, eh? What I've done so far 
is used a generic model so to speak in com.company.project.model.GModLoc 
say. Then the client app and admin app can access it as well as their 
respective model. DK
On 7/27/06, JesterXL 
[EMAIL PROTECTED] 
wrote:

  
  
  // Assuming your in your Client Application for 
  example
  import 
  com.company.project.admin.events.SomeEvent;
  import 
  com.company.project.client.events.ClientEvent;
  
  var e:SomeEvent = new 
  SomeEvent(SomeEvent.EVENT_NAME, false, true);
  CairngormEventDispatcher.getInstance().dispatchEvent(e);
  
  You could do the reverse in the admin. As a 
  GUI guy, I probably would care more about sharing commonly used View's and 
  utility classes vs. events and commands that were probably created for their 
  specific projects, but it could be done.
  
  
  - Original Message - 
  From: 
  Douglas Knudsen 

  To: flexcoders@yahoogroups.com 
  
  Sent: Thursday, July 27, 2006 9:25 AM
  Subject: Re: [flexcoders] Backend/Frontend Application Development 
  (Cairngorm)
  
  
  curious how to share resources with this, say using 
  Cairngorm. How to share a command that returns data to a 
  modellocator? How to return th edata to the current model locator for a 
  sub app?DK
  On 7/27/06, JesterXL [EMAIL PROTECTED] wrote: 
  Put 
'em in seperate projects, or 
sub-projects.Like:com.company.project.admin.*com.company.project.client.Or:com.company.projectadmin.*com.company.projectclient.*You 
should take advantage of the fact you may be using similiar code; both 
of the above in the same Flex project allows you to easily do 
that.- Original Message -From: "Stefan Schmalhaus" 
[EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, July 27, 
2006 4:38 AMSubject: [flexcoders] Backend/Frontend Application 
Development (Cairngorm)I'm going to develop a Flex 
(Cairngorm-based) intranet application for training resources. There 
will be a backend part for user and contentadministration, and there 
will be a frontend for the end user.Both parts, backend and fronted, 
will presumably share a lot of theunderlying data structure, value 
objects, views, etc. They will definitely use the same AMFPHP services. 
What's the best way to tacklethis? Should I treat them as two different 
Flex projects? Or can Idevelop them within one Flex project but with two 
different MXMLapplication files? Your ideas and thoughts are 
very much appreciated.Stefan--Flexcoders 
Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups 
Links--Flexcoders Mailing List 
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links* To visit your group on the web, go 
to:http://groups.yahoo.com/group/flexcoders/ 
* 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/-- Douglas Knudsenhttp://www.cubicleman.com 
  
  this is my signature, like it? -- 
Douglas Knudsenhttp://www.cubicleman.comthis is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email 

Re: [flexcoders] Re: Local Connection - RESOLVED!

2006-07-27 Thread JesterXL
Delete the ho!

after close:

lc = null;
delete lc;

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:11 AM
Subject: [flexcoders] Re: Local Connection - RESOLVED!


Thanks again jesterXL...

Added just a few lines...can't believe i didn't think of this 
earlier...it was definitly a light bulb moment...cleans up local 
connection...so it can be used by next loaded swf.  Had to make 
changes to swf's and just wasn't thinking about them.

added - to main flex app every time swfLoader changes it's source...
lc.send (_swfConnect, killAll);

added - to the main.swf's called functions
lc.killAll = function () {
lc.close()
}

okay...what's next...;o)

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

 Geez, definately sounds like the GC then, that's harsh.  Um... 
uh... well, 
 the only thing I can think of beyond doing it dynamically like you 
said is 
 to ensure when you remove them that you kill all listeners, delete 
what you 
 can, disconnect what you can, etc. BEFORE destroying the SWFLoader.
 
 Good luck.
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 8:03 AM
 Subject: [flexcoders] Re: Local Connection
 
 
 Jester, I read the articles and fully understand what you meant...
 
 I load one swf and then try to load a second and even though I've
 sent the first swf packing it's still in memory and listening to the
 menu.swf's local connection calls because GC hasn't come along and
 cleaned it up.
 
 Maybe if I get rid of the SWFLoader completely then try to create a
 new one dynamically when the next swf is loaded that would work??
 I'll try it.
 
 Yes, the menu.swf is able to control the two main swf's outside of
 Flex. If they are all running at the same time, the menu.swf will
 control which ever main.swf was started first. Then if i close that
 main.swf the other will just start working.  That little experiment
 just provides more evidence (and helps me get it)...that the first
 swf is still there in Flex...
 
 Anyway, Thanks again...if you have any more suggestions...as always
 appreciated. I'll keep working at it...
 Jenn
 
 
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Oh it's deeper than emptying a source reference.  Welcome to the
 dark side
  of ActionScript 3..
 
  http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
 
  
http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
 
  BTW, do your SWF's talk to eachother locally without Flex?
 
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, July 26, 2006 3:13 PM
  Subject: [flexcoders] Re: Local Connection
 
 
  okay, thanks...that works for loading a swf at runtime if the
  SWFLoader has no assigned source.  However, if the SWFLoader has 
an
  assigned source and you try to change it during runtime, then LC
  doesn't work anymore.
 
  That comes back to your last comment about garbage collection and
 the
  original swf not being cleaned up before the new one is loaded, i
  tried to research what you meant but as far i could tell all I 
could
  do in flex was to set the SWFLoader source to = before loading 
the
  next swf.  I could not find any unload methods.
 
  Thanks again for helping.
 
 
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Try again, but put an underscore in front of the name for both
  SWF's.
  
   _swfConnect instead of swfConnect.
  
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 1:59 PM
   Subject: [flexcoders] Re: Local Connection
  
  
   Jester,
   I have tried putting the local connection code in the main flex
 app
   and calling to the embedded SWF and this is the attempt at
 creating
  a
   second embedded swf (menu) to make the calls to the main
  SWF...either
   way if the swf is loaded at runtime...local connection is a no 
go.
  
   Thanks
  
   *This is my menu.swf local connection code...
  
   #include mc_tween2.as
   stop();
   var lcsend:LocalConnection = new LocalConnection();
   play_btn.onRelease = function(){
   lcsend.send (swfConnect, playFile);
   }
   stop_btn.onRelease = function () {
   lcsend.send (swfConnect, stopandrestart);
   }
   pause_btn.onRelease = function () {
   lcsend.send (swfConnect , pauseFile);
   }
  
   *And this is the Main.swf local connection code
  
   var lc:LocalConnection = new LocalConnection();
   lc.pauseFile = function() {
   stop();
   }
   lc.resumeFile = function() {
   play();
   }
   lc.stopandrestart = function() {
   gotoAndStop(1);
   }
   lc.playFile = function () {
   gotoAndPlay(1);
   }
   lc.getframeNum = function () {
  
   }
   lc.connect(swfConnect);
  
   ***
  
  
  
  
   --- In flexcoders@yahoogroups.com, JesterXL 

Re: [flexcoders] TextLineMetrics anyone?

2006-07-27 Thread JesterXL
Out of curiosity, turn on autoSize = left;
- Original Message - 
From: jeff tapper [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:14 AM
Subject: [flexcoders] TextLineMetrics anyone?


Has anyone successfully used TextLineMetrics with multiline text 
fields?  All my experiments are showing that it always computes 
assuming a single, not wrapping line of text.  I'm not sure if im 
using it wrong (the most likely scenario), if its a documentation 
error, or a bug.  According to the docs, the TextLineMetrics width 
property should be the width of the text within a text field, 
however, I'm finding if I have a Text control with a width of 300, 
and a few lines of text within it, the width property shows the 
width as if it were on one line of text, and the height is 
indicating the height of a single line of text.  

Here is an example:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=vertical
mx:Style
.bigRed{
font-family:Arial;
font-size:40;
color:#33;
}
/mx:Style
mx:HBox
mx:Button label=Measure click=measureTheText()/
mx:Button label=Style click=doStyle()/
mx:Button label=Clear Style click=clearTheStyle()/
/mx:HBox
mx:TextInput id=enteredText/
mx:Text id=output text={enteredText.text} width=300 /
mx:Script
![CDATA[
import mx.controls.Alert;
private function measureTheText():void{
var tlm:TextLineMetrics = output.measureText
(enteredText.text);
var h:int = tlm.height;
var w:int = tlm.width;
Alert.show(text is  + w.toString() +x+h.toString
());
}
private function doStyle():void{
output.setStyle(styleName,bigRed)
}
private function clearTheStyle():void{
output.clearStyle(styleName);
}
]]
/mx:Script
/mx:Application






--
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 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/

* 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: Tools for listing objects

2006-07-27 Thread Vikas Bhatia



Laszlo had a pretty nice debug window that you could embed in the client side swf. the debug window could provide complete introspection into the client side views. anything similar available for flex or is anything planned such as this?
On 7/27/06, Matt Chotin [EMAIL PROTECTED] wrote:













  













We've been thinking about trying to
expose a tool that would give you an accurate count of objects but it's
not something near-term. If the object is not on the display list (not in raw
children) but is still sticking around then you clearly have a reference to it
somewhere. Typically it would be an event listener that wasn't added
with a weak key or something that is referred to by another class that is on
the display list. Unfortunately I don't have a good technique for
finding those L












From:
[EMAIL PROTECTED]ups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of jeff tapper
Sent: Wednesday, July 26, 2006
12:47 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: Tools
for listing objects











Darn, I've been able to prove to myself that the
object can still 
exist in memory but not be in the rawchildren. How can i get a 
handle on these orphans? Do I need to resort to creating a 
Dictionary Object with weak keys, and store an reference of every 
object created in there? Is there a more elegant solution?

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

 Matt- 
 
 Your solutions didnt work for me, I suspect its because all the 
 children we create/destroy in this app are done via the popup 
 manager. Regardless how many children we created that way, I'm 
 always finding that:
 this.childDescriptors.toString();
 var o:Object = ObjectUtil.getClassInfo(Application.application);
 trace(ObjectUtil.toString(o));
 and Application.application.getChildren().toString()
return the 
same 
 things, whether there is 0 or 100 windows open. So far, the best 
 I've found for our needs is:
 
 var childList:IChildList = this.systemManager.rawChildren;
 for(var i:int=0;ichildList.numChildren;i++){
 trace(childList.getChildAt(i));
 }
 
 My fear is that there may be orphans, windows which have been 
 removed from the display list but which are still active in 
memory. 
 Any idea how to check on that?
 
 --- In flexcoders@yahoogroups.com,
Matt Horn mhorn@ wrote:
 
  I don't know about those tools you mention, but some ideas for 
 listing
  available objects:
  
  1) trace(this.childDescriptors.toString());
  
  2) var o:Object = ObjectUtil.getClassInfo
(Application.application);
  trace(ObjectUtil.toString(o));
  
  3) trace(Application.application.getChildren().toString());
  
  hth,
  
  matt horn
  flex docs 
  
   -Original Message-
   From: flexcoders@yahoogroups.com

   [mailto:flexcoders@yahoogroups.com]
On Behalf Of jeff tapper
   Sent: Wednesday, July 26, 2006 10:22 AM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Tools for listing objects
   
   Does any one know of a tool like OptimizeIt!
for java, or 
   like List Objects in Flash Studio for finding all
objects 
   currently in existance? We are looking to verify that we have 
   truely cleaned up objects no longer in use, and released them 
   to the GC, but without a tool like this, we cant tell what 
   exists and what doesnt. Does anyone have any tips?
   
   
   
   
  
 











  















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] cairngorm Events and data payloads

2006-07-27 Thread JesterXL





close. Do this, but extend CairngormEvent 
like you are doing:
http://www.darronschall.com/weblog/archives/000191.cfm


- Original Message - 
From: Douglas 
Knudsen 
To: flexcoders@yahoogroups.com 
Sent: Thursday, July 27, 2006 10:01 AM
Subject: [flexcoders] cairngorm Events and data payloads
can someone point me to a example of how to pass data in a 
cairngorm type event? I'm trying the below withpackage 
com.mycompany.events{ import 
com.adobe.cairngorm.control.CairngormEvent; 
 public class LoadScorecardEvent extends CairngormEvent 
 {  
 public static var EVENT_LOAD_SCORECARD: String = 
'LoadScorecardEvent';  public var 
scorecardId:Number;  
/**  * The constructor, 
  */ 
 public function LoadScorecardEvent( )  
 {   
super( EVENT_LOAD_SCORECARD );  
   
}   
} }then in a view dispatching like sovar 
devent : LoadScorecardEvent = new LoadScorecardEvent( 
);   
 devent.scorecardId = 5;  

CairngormEventDispatcher.getInstance().dispatchEvent( devent ); and in 
the command I havepublic function execute( eventHere : CairngormEvent ) 
: void  { 
 var del : MainDelegate = new MainDelegate( this 
);  del.getScorecard( 
eventHere.scorecardId );   
  }But this bombs out with a error 
about scorecardId not in eventHere.DK-- 
Douglas Knudsenhttp://www.cubicleman.com this is my 
signature, like it?  
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: cairngorm Events and data payloads

2006-07-27 Thread thunderstumpgesatwork
Hi,

The delegate function thinks you just have a CairngormEvent. I think
you just need to check to make sure the event you received is your
custom event type and then cast it.

so:

if (eventHere is LoadScorecardEvent)
{
del.getScorecard( LoadScorecardEvent(eventHere).scorecardId );
}
else
{
// do nothing, or raise error, or log warning, or whatever.
}


best of luck,
Thunder

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

 can someone point me to a example of how to pass data in a cairngorm
type
 event?  I'm trying the below with
 
 package com.mycompany.events
 {
 import com.adobe.cairngorm.control.CairngormEvent;
 
 public class LoadScorecardEvent extends CairngormEvent
 {
 public static var EVENT_LOAD_SCORECARD: String =
 'LoadScorecardEvent';
  public var scorecardId:Number;
 /**
  * The constructor,
  */
 public function LoadScorecardEvent( )
 {
 super( EVENT_LOAD_SCORECARD );
 
 }
 
 }
 
 }
 
 then in a view dispatching like so
 var devent : LoadScorecardEvent = new LoadScorecardEvent(  );
 devent.scorecardId = 5;

CairngormEventDispatcher.getInstance().dispatchEvent(
 devent );
 
 and in the command I have
 
 public function execute( eventHere : CairngormEvent ) : void
{
   var del : MainDelegate = new MainDelegate( this );
   del.getScorecard( eventHere.scorecardId );
 
}
 
 But this bombs out with a error about scorecardId not in eventHere.
 
 DK
 
 
 -- 
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?








--
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/

* 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: Local Connection - RESOLVED!

2006-07-27 Thread flexnewbie06
..works perfect.


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

 Delete the ho!
 
 after close:
 
 lc = null;
 delete lc;
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:11 AM
 Subject: [flexcoders] Re: Local Connection - RESOLVED!
 
 
 Thanks again jesterXL...
 
 Added just a few lines...can't believe i didn't think of this 
 earlier...it was definitly a light bulb moment...cleans up local 
 connection...so it can be used by next loaded swf.  Had to make 
 changes to swf's and just wasn't thinking about them.
 
 added - to main flex app every time swfLoader changes it's source...
 lc.send (_swfConnect, killAll);
 
 added - to the main.swf's called functions
 lc.killAll = function () {
 lc.close()
 }
 
 okay...what's next...;o)
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Geez, definately sounds like the GC then, that's harsh.  Um... 
 uh... well, 
  the only thing I can think of beyond doing it dynamically like 
you 
 said is 
  to ensure when you remove them that you kill all listeners, 
delete 
 what you 
  can, disconnect what you can, etc. BEFORE destroying the 
SWFLoader.
  
  Good luck.
  
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Thursday, July 27, 2006 8:03 AM
  Subject: [flexcoders] Re: Local Connection
  
  
  Jester, I read the articles and fully understand what you meant...
  
  I load one swf and then try to load a second and even though I've
  sent the first swf packing it's still in memory and listening to 
the
  menu.swf's local connection calls because GC hasn't come along and
  cleaned it up.
  
  Maybe if I get rid of the SWFLoader completely then try to create 
a
  new one dynamically when the next swf is loaded that would work??
  I'll try it.
  
  Yes, the menu.swf is able to control the two main swf's outside of
  Flex. If they are all running at the same time, the menu.swf will
  control which ever main.swf was started first. Then if i close 
that
  main.swf the other will just start working.  That little 
experiment
  just provides more evidence (and helps me get it)...that the first
  swf is still there in Flex...
  
  Anyway, Thanks again...if you have any more suggestions...as 
always
  appreciated. I'll keep working at it...
  Jenn
  
  
  
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Oh it's deeper than emptying a source reference.  Welcome to the
  dark side
   of ActionScript 3..
  
   
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
  
   
 http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
  
   BTW, do your SWF's talk to eachother locally without Flex?
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 3:13 PM
   Subject: [flexcoders] Re: Local Connection
  
  
   okay, thanks...that works for loading a swf at runtime if the
   SWFLoader has no assigned source.  However, if the SWFLoader 
has 
 an
   assigned source and you try to change it during runtime, then LC
   doesn't work anymore.
  
   That comes back to your last comment about garbage collection 
and
  the
   original swf not being cleaned up before the new one is loaded, 
i
   tried to research what you meant but as far i could tell all I 
 could
   do in flex was to set the SWFLoader source to = before 
loading 
 the
   next swf.  I could not find any unload methods.
  
   Thanks again for helping.
  
  
   --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
   
Try again, but put an underscore in front of the name for both
   SWF's.
   
_swfConnect instead of swfConnect.
   
   
- Original Message - 
From: flexnewbie06 flexnewbie06@
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 1:59 PM
Subject: [flexcoders] Re: Local Connection
   
   
Jester,
I have tried putting the local connection code in the main 
flex
  app
and calling to the embedded SWF and this is the attempt at
  creating
   a
second embedded swf (menu) to make the calls to the main
   SWF...either
way if the swf is loaded at runtime...local connection is a 
no 
 go.
   
Thanks
   
*This is my menu.swf local connection code...
   
#include mc_tween2.as
stop();
var lcsend:LocalConnection = new LocalConnection();
play_btn.onRelease = function(){
lcsend.send (swfConnect, playFile);
}
stop_btn.onRelease = function () {
lcsend.send (swfConnect, stopandrestart);
}
pause_btn.onRelease = function () {
lcsend.send (swfConnect , pauseFile);
}
   
*And this is the Main.swf local connection code
   
var lc:LocalConnection = new LocalConnection();
lc.pauseFile = function() {
stop();
}
lc.resumeFile = function() {
play();
}

[flexcoders] Re: Backend/Frontend Application Development (Cairngorm)

2006-07-27 Thread thunderstumpgesatwork
Hey guys,

I'm just starting with Cairngorm also, and I've never seen this done
specifically, but I don't see any reason you can't have multiple
ModelLocators... they're just singleton classes really.

So, you could for instance have a shared ModelLocator with state that
is shared between apps. Then state specific to a particular app
(client or server) could have their own ML. SO:

com.company.project.shared.model.SHModLoc
com.company.project.admin.model.AModLoc
com.company.project.client.model.CModLoc


what do you all think of this approach?

Thunder


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

 righto on that.  Say I have a command GetUserCommand() that returns
a userVO
 for the current user in session.  This is returned to the apps
modellocator,
 has stuff like name, etc, in it.
 
 so we have
 com.company.project.admin.model.AModLoc
 com.company.project.client.model.CModLoc
 
 
 How does GetUserCommand()  stick the userVO result into the proper
model?
 Typically the model is hardcoded in the Command, eh?  What I've done
so far
 is used a generic model so to speak in
 com.company.project.model.GModLocsay.  Then the client app and admin
 app can access it as well as their
 respective model.
 
 
 DK
 
 
 On 7/27/06, JesterXL [EMAIL PROTECTED] wrote:
 
   // Assuming your in your Client Application for example
  import com.company.project.admin.events.SomeEvent;
  import com.company.project.client.events.ClientEvent;
 
  var e:SomeEvent = new SomeEvent(SomeEvent.EVENT_NAME, false, true);
  CairngormEventDispatcher.getInstance().dispatchEvent(e);
 
  You could do the reverse in the admin.  As a GUI guy, I probably would
  care more about sharing commonly used View's and utility classes
vs. events
  and commands that were probably created for their specific
projects, but it
  could be done.
 
  - Original Message - *From:* Douglas
Knudsen[EMAIL PROTECTED]
  *To:* flexcoders@yahoogroups.com
  *Sent:* Thursday, July 27, 2006 9:25 AM
  *Subject:* Re: [flexcoders] Backend/Frontend Application Development
  (Cairngorm)
 
  curious how to share resources with this, say using Cairngorm.  How to
  share a command that returns data to a modellocator?  How to
return th edata
  to the current model locator for a sub app?
 
  DK
 
  On 7/27/06, JesterXL [EMAIL PROTECTED] wrote:
  
   Put 'em in seperate projects, or sub-projects.  Like:
  
   com.company.project.admin.*
   com.company.project.client.
  
   Or:
  
   com.company.projectadmin.*
   com.company.projectclient.*
  
   You should take advantage of the fact you may be using similiar
code;
   both
   of the above in the same Flex project allows you to easily do that.
  
   - Original Message -
   From: Stefan Schmalhaus [EMAIL PROTECTED]
   To: flexcoders@yahoogroups.com
   Sent: Thursday, July 27, 2006 4:38 AM
   Subject: [flexcoders] Backend/Frontend Application Development
   (Cairngorm)
  
  
   I'm going to develop a Flex (Cairngorm-based) intranet
application for
   training resources. There will be a backend part for user and
content
   administration, and there will be a frontend for the end user.
  
   Both parts, backend and fronted, will presumably share a lot of the
   underlying data structure, value objects, views, etc. They will
   definitely use the same AMFPHP services. What's the best way to
tackle
   this? Should I treat them as two different Flex projects? Or can I
   develop them within one Flex project but with two different MXML
   application files?
  
   Your ideas and thoughts are very much appreciated.
  
   Stefan
  
  
  
  
  
   --
   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 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
  
  
  
  
  
  
  
 
 
  --
  Douglas Knudsen
  http://www.cubicleman.com
  this is my signature, like it? 
 
 
 
 
 -- 
 Douglas Knudsen
 http://www.cubicleman.com
 this is my signature, like it?








--
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/

* 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: [Junk E-Mail - MED] [flexcoders] remote object mapping frustration

2006-07-27 Thread Douglas Knudsen



thanks, yeah, I checked that like 500 times now, all looks fine and dandy. errr, so frustrating. All my other cfcs are mapping fine. DKOn 7/27/06, 
Shannon Hicks [EMAIL PROTECTED] wrote:









I had similar problems at one point Turned out my 
RemoteClass alias was wrong.

I think I also had the same problem when the alias in the 
cfcomponent tag didn't match, too.

Shan


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas 
KnudsenSent: Thursday, July 27, 2006 9:12 AMTo: 
flexcoders@yahoogroups.comSubject: [Junk E-Mail - MED] [flexcoders] 
remote object mapping frustration


Ok, I got this CFC modeling a composite object. Lets say 
its com.myco.project.user. user has three members: userid a 
string, address a com.myco.project.adress, and say cars a array of 
com.myco.project.car . The CFCs work fine in that DAOs do their 
magik. On the Flex side I have com.myco.project.vo.user, 
com.myco.project.vo.address, and com.myco.project.car all mapping to 
the above. sounds good so far, eh? Now, the Flex code kicks a event 
off that does the remoteobject connection to the CF server requesting a user 
object. It gets built and according to the debug data I can see at the DOS 
prompt from CFServer, it is returned to Flex as the proper 
com.myco.project.car object containing the other objects properly. 
BUT in the FlexBuilder debugger the returned object is listed as result = 
mx.utils.ObjectProxy (@5824481) I've been bangin my head for 
hours on this. I have many other setups like this working fine, suddenly 
this one doesn't. My onresult() has a line like which throws a runtime 
error about type coercionfoo = event.result as user; any 
thoughts?-- Douglas Knudsenhttp://www.cubicleman.com this is 
my signature, like it? 
--No virus found in this incoming message.Checked by AVG 
Free Edition.Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 
7/26/2006




--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.4/401 - Release Date: 7/26/2006
 

-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it?

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] Re: Acegi/Spring/Flex authentication

2006-07-27 Thread zosoo7
Here are snippets from my Flex code, and my Acegi configuration. If
you notice, what we did, was set up Acegi, so it's successful and
unsucessful authentication url's point to XML documents that contains
the result of the login.

Point your http service to the acegi entry point
mx:HTTPService
id=loginService
url={InsightConfigurator.rootUrl}/loginCheck
showBusyCursor=true
result=loginServiceResultHandler()
mx:request
j_username{userName.text}/j_username
j_password{password.text}/j_password
 /mx:request
/mx:HTTPService

//check the result of xml that acegi returns
private function loginServiceResultHandler() : void
{
  if(loginService.lastResult.status == LOGGEDIN)
  {
 //user logged in
  }
  else
  {
 // failed to log in
  }
}


Here is my Acegi file (a couple modifications):

?xml version=1.0 encoding=UTF-8?
!DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN
http://www.springframework.org/dtd/spring-beans.dtd;

beans

bean id=filterChainProxy
class=org.acegisecurity.util.FilterChainProxy
property name=filterInvocationDefinitionSource
value
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT

/**=httpSessionContextIntegrationFilter,authenticationProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor
/value
/property
/bean

bean id=sunbridgeAcegiDAO

class=com.sunbridgecapital.security.acegi.SunbridgeAcegiDAOImp
property name=userDAO
ref bean=userDAO/
/property
/bean

bean id=daoAuthenticationProvider

class=org.acegisecurity.providers.dao.DaoAuthenticationProvider
property name=userDetailsService
ref local=sunbridgeAcegiDAO /
/property
/bean

bean id=authenticationManager
class=org.acegisecurity.providers.ProviderManager
property name=providers
list
ref bean=daoAuthenticationProvider /
/list
/property
/bean

bean id=authenticationProcessingFilter

class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter
property name=authenticationManager
ref bean=authenticationManager /
/property
property name=authenticationFailureUrl

value/UnSecure/xml/UnSuccessfulLoginResponse.xml/value
/property
property name=defaultTargetUrl
value/Secure/xml/SuccessfulLoginResponse.xml/value
/property
property name=filterProcessesUrl
value/loginCheck/value
/property
/bean

bean id=filterSecurityInterceptor

class=org.acegisecurity.intercept.web.FilterSecurityInterceptor
property name=authenticationManager
ref bean=authenticationManager /
/property
property name=accessDecisionManager
ref bean=accessDecisionManager /
/property
property name=objectDefinitionSource
value
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/secure/**=ROLE_USER
/value
/property
/bean

bean id=exceptionTranslationFilter
class=org.acegisecurity.ui.ExceptionTranslationFilter
  property name=authenticationEntryPointref
local=authenticationProcessingFilterEntryPoint//property
   /bean
   
   bean id=authenticationProcessingFilterEntryPoint
class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint
  property name=loginFormUrlvalue/login.htm/value/property
  property name=forceHttpsvaluefalse/value/property
   /bean

bean id=accessDecisionManager
class=org.acegisecurity.vote.AffirmativeBased
  property
name=allowIfAllAbstainDecisionsvaluefalse/value/property
  property name=decisionVoters
 list
ref bean=roleVoter/
 /list
  /property
   /bean
   
   bean id=roleVoter class=org.acegisecurity.vote.RoleVoter/
   
bean id=httpSessionContextIntegrationFilter
class=org.acegisecurity.context.HttpSessionContextIntegrationFilter /

/beans



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

 I am sorry but can you go to the 101 level with this one, I am not 
 very up to speed with acegi, just to the point of getting it working.
 
 Ok, in my 

Re: [flexcoders] Re: Local Connection - RESOLVED!

2006-07-27 Thread JesterXL
w00t!  GC got PWND!!!.

- Original Message - 
From: flexnewbie06 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, July 27, 2006 10:48 AM
Subject: [flexcoders] Re: Local Connection - RESOLVED!


..works perfect.


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

 Delete the ho!
 
 after close:
 
 lc = null;
 delete lc;
 
 - Original Message - 
 From: flexnewbie06 [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:11 AM
 Subject: [flexcoders] Re: Local Connection - RESOLVED!
 
 
 Thanks again jesterXL...
 
 Added just a few lines...can't believe i didn't think of this 
 earlier...it was definitly a light bulb moment...cleans up local 
 connection...so it can be used by next loaded swf.  Had to make 
 changes to swf's and just wasn't thinking about them.
 
 added - to main flex app every time swfLoader changes it's source...
 lc.send (_swfConnect, killAll);
 
 added - to the main.swf's called functions
 lc.killAll = function () {
 lc.close()
 }
 
 okay...what's next...;o)
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  Geez, definately sounds like the GC then, that's harsh.  Um... 
 uh... well, 
  the only thing I can think of beyond doing it dynamically like 
you 
 said is 
  to ensure when you remove them that you kill all listeners, 
delete 
 what you 
  can, disconnect what you can, etc. BEFORE destroying the 
SWFLoader.
  
  Good luck.
  
  - Original Message - 
  From: flexnewbie06 flexnewbie06@
  To: flexcoders@yahoogroups.com
  Sent: Thursday, July 27, 2006 8:03 AM
  Subject: [flexcoders] Re: Local Connection
  
  
  Jester, I read the articles and fully understand what you meant...
  
  I load one swf and then try to load a second and even though I've
  sent the first swf packing it's still in memory and listening to 
the
  menu.swf's local connection calls because GC hasn't come along and
  cleaned it up.
  
  Maybe if I get rid of the SWFLoader completely then try to create 
a
  new one dynamically when the next swf is loaded that would work??
  I'll try it.
  
  Yes, the menu.swf is able to control the two main swf's outside of
  Flex. If they are all running at the same time, the menu.swf will
  control which ever main.swf was started first. Then if i close 
that
  main.swf the other will just start working.  That little 
experiment
  just provides more evidence (and helps me get it)...that the first
  swf is still there in Flex...
  
  Anyway, Thanks again...if you have any more suggestions...as 
always
  appreciated. I'll keep working at it...
  Jenn
  
  
  
  --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
  
   Oh it's deeper than emptying a source reference.  Welcome to the
  dark side
   of ActionScript 3..
  
   
http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html
  
   
 http://www.gskinner.com/blog/archives/2006/07/as3_resource_ma_1.html
  
   BTW, do your SWF's talk to eachother locally without Flex?
  
   - Original Message - 
   From: flexnewbie06 flexnewbie06@
   To: flexcoders@yahoogroups.com
   Sent: Wednesday, July 26, 2006 3:13 PM
   Subject: [flexcoders] Re: Local Connection
  
  
   okay, thanks...that works for loading a swf at runtime if the
   SWFLoader has no assigned source.  However, if the SWFLoader 
has 
 an
   assigned source and you try to change it during runtime, then LC
   doesn't work anymore.
  
   That comes back to your last comment about garbage collection 
and
  the
   original swf not being cleaned up before the new one is loaded, 
i
   tried to research what you meant but as far i could tell all I 
 could
   do in flex was to set the SWFLoader source to = before 
loading 
 the
   next swf.  I could not find any unload methods.
  
   Thanks again for helping.
  
  
   --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
   
Try again, but put an underscore in front of the name for both
   SWF's.
   
_swfConnect instead of swfConnect.
   
   
- Original Message - 
From: flexnewbie06 flexnewbie06@
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 26, 2006 1:59 PM
Subject: [flexcoders] Re: Local Connection
   
   
Jester,
I have tried putting the local connection code in the main 
flex
  app
and calling to the embedded SWF and this is the attempt at
  creating
   a
second embedded swf (menu) to make the calls to the main
   SWF...either
way if the swf is loaded at runtime...local connection is a 
no 
 go.
   
Thanks
   
*This is my menu.swf local connection code...
   
#include mc_tween2.as
stop();
var lcsend:LocalConnection = new LocalConnection();
play_btn.onRelease = function(){
lcsend.send (swfConnect, playFile);
}
stop_btn.onRelease = function () {
lcsend.send (swfConnect, stopandrestart);
}
pause_btn.onRelease = function () {
lcsend.send (swfConnect , pauseFile);
}
   

Re: [flexcoders] Re: Tools for listing objects

2006-07-27 Thread Tom Chiverton
On Thursday 27 July 2006 15:37, Vikas Bhatia wrote:
 Laszlo had a pretty nice debug window that you could embed in the  client
 side swf. the debug window could provide complete introspection into the
 client side views. anything similar available for flex or is anything
 planned such as this?

Guess what this does:
http://www.mikenimer.com/index.cfm/2006/7/5/FlexDebugPanel
:-)

-- 
Tom Chiverton



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

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

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



--
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/

* 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] Architectural questions RE: Cairngorm 2

2006-07-27 Thread thunderstumpgesatwork
Bump... no response, so I'm going to ask this one again. I've made it
shorter so hopefully people will read. (see orig. for more details)

I'm using Cairngorm, and want to know ideas you have for:

1.  Dynamic views with dynamic data. How to put into the
ModelLocator...? I'm leaning towards creating a helper class that
wraps a collection of TileViewStates each with their own state, that
can be added/removed/accessed, etc. 

2.  How to use Cairngorm for Flex 2 Data Management Services and
specifically the DataService object. Who's responsibility is it to
manage that? I have begun writing a singleton class modeled after
ServiceLocator that is specifically for my DataServices. You ask for a
DataService by name, and if it doesn't exist, the locator creates it
for you, otherwise it returns the one already created. 


Comments or suggestions are greatly appreciated!

Thanks,
Thunder

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

 Hi all. I've only just started using Cairngorm in my application, and
 already it's helping to clean up a lot of code. Many cudos to all the
 contributors!
 
 I've been reading and soaking up every bit of documentation and
 Flexcoders posts I can.
 
 A couple of arshitectural questions have come up as to how I can
 leverage Cairngorm in my app.
 
 First a brief background: Our app is a BI Dashboard tool, that is uber
 configurable by the user. Selecting Grids/Charts/maps/other custom
 visualizations, and adding them to a layout on a dashboard.
 
 1.) How to maintain the data results in the ModelLocator dynamically
 for a dynamically created visualization?  Pretty much all of the
 examples I've seen are pretty 'static' in terms of the application
 data. There's a Search Results or a Shopping Cart. All the data
 and state I have is dynamically created as users add visualizations to
 the app, and bind it to data. Controls are used multiple times bound
 to different data, added to Visualization Tiles that are layed out
 on the dashboard. Do you guys have any suggestions on how to build and
 reference this dynamic data/dynamic views using the ModelLocator
pattern?
 
 
 2.) I'm using Flex Data Management Services to keep my application
 configuration current, synchronized between clients, and persisted
 (via Hibernate). I noticed that that the ServiceLocator is still
 directed at supporting RPC services... are there any patterns for Data
 Management Services? Something for managing and tracking the different
  DataServices? All of my managed classes are VO's that will be in the
 ModelLocator, but what about owning the DataService classes associated
 with the data?
 
 
 I hope this wasn't too wordy or unclear. I'm sure others must be
 dealing with the same kinds of things right?
 
 Thanks in advance,
 Thunder







--
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/

* 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: TextLineMetrics anyone?

2006-07-27 Thread jeff tapper
Jesse -

not sure I'm following you.  An mx:Text / control doesnt seem to 
have an autosize property.  They inherently automatically size 
themselves to fit the contained text.  Am i misunderstanding you?

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

 Out of curiosity, turn on autoSize = left;
 - Original Message - 
 From: jeff tapper [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, July 27, 2006 10:14 AM
 Subject: [flexcoders] TextLineMetrics anyone?
 
 
 Has anyone successfully used TextLineMetrics with multiline text 
 fields?  All my experiments are showing that it always computes 
 assuming a single, not wrapping line of text.  I'm not sure if im 
 using it wrong (the most likely scenario), if its a documentation 
 error, or a bug.  According to the docs, the TextLineMetrics width 
 property should be the width of the text within a text field, 
 however, I'm finding if I have a Text control with a width of 300, 
 and a few lines of text within it, the width property shows the 
 width as if it were on one line of text, and the height is 
 indicating the height of a single line of text.  
 
 Here is an example:
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=vertical
 mx:Style
 .bigRed{
 font-family:Arial;
 font-size:40;
 color:#33;
 }
 /mx:Style
 mx:HBox
 mx:Button label=Measure click=measureTheText()/
 mx:Button label=Style click=doStyle()/
 mx:Button label=Clear Style click=clearTheStyle()/
 /mx:HBox
 mx:TextInput id=enteredText/
 mx:Text id=output text={enteredText.text} width=300 /
 mx:Script
 ![CDATA[
 import mx.controls.Alert;
 private function measureTheText():void{
 var tlm:TextLineMetrics = output.measureText
 (enteredText.text);
 var h:int = tlm.height;
 var w:int = tlm.width;
 Alert.show(text is  + w.toString() 
+x+h.toString
 ());
 }
 private function doStyle():void{
 output.setStyle(styleName,bigRed)
 }
 private function clearTheStyle():void{
 output.clearStyle(styleName);
 }
 ]]
 /mx:Script
 /mx:Application
 
 
 
 
 
 
 --
 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 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/

* 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] Manuals/tutorials on subclassing, custom components? (1.5)

2006-07-27 Thread G
Does anyone know of the best, canonical documentation
explaining how properly to subclass a custom
component?  The interactions between init,
constructObject2, commitProperties, bindings, and so
on are very complicated, and I really need some
guidance for best practices.

I found one document,
http://download.macromedia.com/pub/documentation/en/flex/15/createcomponents.pdf
that is good.  Something like that, but four times
more detailed would be perfect.

Thanks,


Greg


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


--
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/

* 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/
 




  1   2   3   >