[flexcoders] Flex 2.0 b2: Data binding

2006-04-18 Thread tyombria
Hi.
How can I use data binding in as3 code, not in mxml?
For example, in mxml:
Button enabled={someDataGrid.selectedItem} /

How can I rewrite it in as code:
var b : Button = new Button();
?







--
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: Flex 2.0 b2: Data binding

2006-04-18 Thread pk_wasp
think u can only using the mx:Binding / tags

or for an AS3 only option use event listeners/dispatchers?

don't think u can do binding programatically like u can in WPF (though 
Flex is alot easier when it comes to data binding :) ).

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

 Hi.
 How can I use data binding in as3 code, not in mxml?
 For example, in mxml:
 Button enabled={someDataGrid.selectedItem} /
 
 How can I rewrite it in as code:
 var b : Button = new Button();
 ?







--
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: Flex2B2 - few questions

2006-04-18 Thread bhaq1972
 3. I'm not clear on whether myBoxComponent is using myBox or myBox 
is
 using myBoxComponent, but I suspect what you are looking for is
 parentDocument to get at the component that is using you. So 
maybe you
 want
 
 parentDocument.someObject
 

What i wrote wasn't clear, sorry Gordon.

Virtualy all my components (~100 or more) use myBox.as as their 
container. About 20% of these components have an mx:XML 
id=myXML  tag eg. 
myBoxComponent.mxml
---
myBox xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
mx:XML id=myXML!--all have the same 'id'--
someXml/
/mx:XML
/myBox

I want to deal with myXML generically from within myBox.as rather 
than in the 20 odd components that use it.
eg  in myBox.as
private aFunction():void
{
 if(this.myXML) //this worked in flex 1.5
 {
  //do something
 }
}
the other way i could do this is declare myXML in myBox.as and then 
overide it in myBoxComponent.mxml (but how do you do overide a 
mx:XML tag in mxml).

the flex1.5 way (translated to flex2b2) gives a compile error saying 
this.myXML doesn't exist etc.

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

 1. This method has been removed. Just use dispatchEvent().
 
 2. Yes. Private vars can only be accessed from within the same 
class
 where they are declared.
 
 3. I'm not clear on whether myBoxComponent is using myBox or myBox 
is
 using myBoxComponent, but I suspect what you are looking for is
 parentDocument to get at the component that is using you. So 
maybe you
 want
 
 parentDocument.someObject
 
 - Gordon
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of bhaq1972
 Sent: Thursday, April 13, 2006 3:38 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex2B2 - few questions
 
 1) DispatchChangeEvent doesn't seem to be available is that 
correct?
 
 2) private variables no longer seem to be accesible in inherited 
 object. is that correct?
 eg. myBox.as
 package 
 {
   public class myBox extends mx.containers.Box 
   {
 public var string1:String=;
 private var boolean1:Boolean=false;   
   }
 }
 
 in myBoxComponent.mxml can't access this.boolean1.
 
 3) how do i access an object declared in myBoxComponent.mxml from 
 inside myBox.as i.e.
 
 in myBoxComponent.mxml i have 
 public var someObject:Object; //i then create an instance of it
 
 in myBox.as, i want to reference someObject. how? any help great
 
 
 
 
 
 
 
 --
 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] Flex beta 2: possible bug with image in Text component

2006-04-18 Thread Muzak
Not sure if this is supposed to work in Flex, but it does in Flash, so thought 
I'd try it out.
I have a Text component that contains html text. In the html text there's an 
image specified, using img.

pimg source=images/toy4.jpgsome text here../p

The image does display in the Text component, but clearing the Text component 
or changing the html text does not remove the image.

And here's a funny one. I have a custom Debug Panel (like the Output Panel in 
Flash) that floats above the application (popup 
titlewindow).
When I display that same html text in the Debug Panel (which contains a 
TextArea component), it also shows the image. If I then 
clear the Debug Panel, the image doesn't go away, but when dragging the Debug 
Panel around, the image remains in place. The image 
eventually disappears when moving the Panel all the way to one side (and 
appears again when moving the Panel back to the same 
position). So the Panel kinda works like a mask for the image.. very odd.

regards,
Muzak




--
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] File Upload and ColdFusion authentication

2006-04-18 Thread João Fernandes
Carson,

It's even worse. I'll try to make it clear:

Login with a flex form
Use setcredentials inside my delegate to my AuthenticationRO.
Use onRequestStart to handle cflogin authentication 

After that:

1) open a common.cfm page to see if user is authenticated
2) post files from within flex
3) call from Flex other CFCs using roles.

In FF:
1) It shows user credentials with no problem.
2) Doesn't work since it creates a new session.
3) It works perfectly as long I use the same endpoint (which is ok).

In IE:
1) Doesn't show user credentials
2) Doesn't work since 1) fails.
3) Doesn't work if I set only credentials for my authentication.cfc. If I set 
for all my RO, it works. 

When using setCredentials to all my RO I can see this weird behavior:
From FF - It goes through cflogin block only once 
From IE - It goes through cflogin block for each method request




João Fernandes
Dep. Informática - Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 185 200 . Fax (+351) 213 540 370
[EMAIL PROTECTED]

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson 
Hager
Sent: segunda-feira, 17 de Abril de 2006 19:27
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] [Flex 1.5] File Upload and ColdFusion authentication

This is definitely an FFX issue. I'm not sure if it happens across all versions 
but I know it was broken with 1.5.


Carson


 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João 
Fernandes
Sent: Monday, April 17, 2006 10:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] [Flex 1.5] File Upload and ColdFusion authentication


Indeed,

Firefox 1.5.0.2, I'm so used to validate against IE for all problems that might 
happen that I forgot to check this time if it was a Firefox problem. Is this a 
known issue?

João Fernandes

-Original Message-
From: flexcoders@yahoogroups.com on behalf of Carson Hager
Sent: Mon 17-Apr-06 6:08 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] [Flex 1.5] File Upload and ColdFusion authentication
 
Is this FireFox 1.5?
 
 
Carson

 
  
Carson Hager
Cynergy Systems, Inc. 
http://www.cynergysystems.com http://www.cynergysystems.com/  
  
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466 
  

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João 
Fernandes
Sent: Monday, April 17, 2006 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Flex 1.5] File Upload and ColdFusion authentication



Hi there,

 

I'm trying to protect my upload page using ColdFusion authentication but when 
using fileReference, it seems that a new session is created instead of using 
the current used by the App. 

 

I'm using Flex 1.5 integrated with ColdFusion 7. If I log in with Flex and 
access a cfm page, I can get the user name perfectly ( getauthuser() ) but when 
uploading with fileReference inside my Flex App, a new sessionID is generated 
for that request.

 

Any Ideas how to solve this?

 

Thanks, 

 

João Fernandes
Dep. Informática - Área de Desenvolvimento Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 
200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 



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



*Visit your group flexcoders 
http://groups.yahoo.com/group/flexcoders  on the web.
  
*To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
  
*Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
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
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] looking for flex developers in slovenia/croatia

2006-04-18 Thread kosirm2000
Hi,

I'm looking for flex developers in slovenia/croatia and neighbourhood.
We are building commercial ria for tourist branch in croatia, so
anybody with flex 2  oop skills (experience with Cairngorm) willing
to work with us please drop me a note on [EMAIL PROTECTED]
Project starts in May. 

Milan






--
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] Install Flex2 Beta2 in tomcat

2006-04-18 Thread sinacapho
Dear all,
   My tomcat version is 5.0.28 and i am try to install the Flex2
beta2 version in my debian machine. After that i move the flex.war
,samples.war to the tomcat directory and start depolyment. It ok but
when i run the mxml it get error. Even i have write a sample mxml
myself  and it return

VerifyError: Error #1053: Illegal override of SystemManager in
mx.managers.SystemManager
at global$init()


is that i have do something wrong?\
thx
capho





--
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] Flex Mystic connectivity

2006-04-18 Thread deepu_verma
Hi All,
I have installed flex and mystic on JRun server. What will be the flex
configuration settings so as to access the cfc using remote object.

On this page
http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity
I was able to find the settings for Flex builder.






--
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: [Flex 2b2] Changing a Chart's dataProvider at runtime?

2006-04-18 Thread flexabledev
Change it to a different one.  (See below) For example:

change dataProvider (via AS3) for summaryChart to {model.marketSummary}
add a ColumnSeries where yField equals mktQTY and categoryField
equals mktLabel

Thanks Ely!  Also, while I've got you...  

Any suggestion on how to drag a column as a way to select a group of
data to drop?
Are there any plans for additional chart types in the future?  Radar
Chart?

Martin


mx:ColumnChart id=summaryChart dataProvider={model.scoreSummary}
showDataTips=true
width=100% height=45% axisTitleStyle=axisStyle 

mx:horizontalAxis
mx:CategoryAxis dataProvider={model.scoreSummary}
categoryField=scrLabel /
/mx:horizontalAxis
mx:series
mx:Array
mx:ColumnSeries displayName=Leads 
yField=scrQTY /
/mx:Array
/mx:series
/mx:ColumnChart


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

 
 What do you mean by change the dataProvider? Modify it? Or change to a
 different one?
 
 
 And if you can give an example of how you're setting the series in the
 first place, I can give help adding a new one.
 
 Ely.
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of flexabledev
 Sent: Monday, April 17, 2006 6:38 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] [Flex 2b2] Changing a Chart's dataProvider at
 runtime?
 
 Can someone give me a real quick example (Flex 2 B2 please) on how to
 change the dataProvider and adding a series to a Chart at runtime?  It
 seems to have changed from Flex 1.5  and other than changing the yField
 of series for an existing dataProvider, I can't find a good example in
 the docs. Thanks in advance...
 
 
 
 
 
 
 
 --
 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] Workspace Overlapping

2006-04-18 Thread Bjorn Schultheiss
Hi List,

When my workspace is set to its default location

C:\Documents and Settings\user\My Documents\Flex

And I create a new flex project, with the location

C:\Documents and Settings\user\My Documents\Flex

Things work fine :)


Well if I switch workspaces to 

C:\DEV\FLEXB2\

And try to create a new project

Untick default location, which was still set to C:\Documents and
Settings\user\My Documents\Flex

And I try to set the location to

C:\DEV\FLEXB2\

I get C:\DEV\FLEXB2\ overlaps the workspace location C:\DEV\FLEXB2\

Isn't that contradicting



Bjorn Schultheiss 
Senior Flash Developer 

QDC
Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne
3205, VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au/qdc
 
((This transmission is confidential and intended solely for the
person or organization to whom it is addressed. It may contain privileged
and confidential information. If you are not the intended recipient, you
should not copy, distribute or take any action in reliance on it. If you
believe you received this transmission in error, please notify the
sender.---))



--
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] Install Flex2 Beta2 in tomcat

2006-04-18 Thread Xavi Beumala



Are you running a flash player previous to beta 2 release? I think this happened to me and was due to I was compiling with beta2 and running with a previous player (beta 1 in my case)...X.
On 4/18/06, sinacapho [EMAIL PROTECTED] wrote:
Dear all, My tomcat version is 5.0.28 and i am try to install the Flex2beta2 version in my debian machine. After that i move the flex.war,samples.war to the tomcat directory and start depolyment. It ok but
when i run the mxml it get error. Even i have write a sample mxmlmyselfand it returnVerifyError: Error #1053: Illegal override of SystemManager inmx.managers.SystemManagerat global$init()
is that i have do something wrong?\thxcapho--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/
-- Xavi Beumalahttp://www.code4net.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.



  









[flexcoders] mx.managers::HistoryManager$/save -- null has no properties

2006-04-18 Thread mdoberenz
I've been having some issues lately with the HistoryManager object 
lately.  I'm using some TabNavigators to display different pieces of 
information.  Some of the tabs have objects inside them that are 
created using AS, and they're based on custom components that I've 
made.

Sometimes when I try to remove a child from a specific tab, or when 
I select a different tab, I get the following error stack...

TypeError: Error #1009: null has no properties.
at mx.managers::HistoryManager$/save()[C:\dev\beta2
\sdk\frameworks\mx\managers\HistoryManager.as:554]
at 
mx.containers::ViewStack/mx.containers:ViewStack::commitSelectedIndex
()[C:\dev\beta2\sdk\frameworks\mx\containers\ViewStack.as:1052]
at 
mx.containers::ViewStack/mx.containers:ViewStack::commitProperties()
[C:\dev\beta2\sdk\frameworks\mx\containers\ViewStack.as:620]
at 
mx.containers::TabNavigator/mx.containers:TabNavigator::commitPropert
ies()[C:\dev\beta2\sdk\frameworks\mx\containers\TabNavigator.as:325]
at mx.core::UIComponent/validateProperties()[C:\dev\beta2
\sdk\frameworks\mx\core\UIComponent.as:5007]
at mx.managers::LayoutManager/validateProperties()
[C:\dev\beta2\sdk\frameworks\mx\managers\LayoutManager.as:496]
at 
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstant
iation()[C:\dev\beta2
\sdk\frameworks\mx\managers\LayoutManager.as:635]
at 
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()
[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:7379]
at 
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()
[C:\dev\beta2\sdk\frameworks\mx\core\UIComponent.as:7322]
at mx.core::UIComponent/setFocus()[C:\dev\beta2
\sdk\frameworks\mx\core\UIComponent.as:5814]
at mx.managers::FocusManager/setFocus()[C:\dev\beta2
\sdk\frameworks\mx\managers\FocusManager.as:375]
at 
mx.managers::FocusManager/mx.managers:FocusManager::mouseDownHandler
()[C:\dev\beta2\sdk\frameworks\mx\managers\FocusManager.as:1164]


Any ideas on why I'm getting this error and how I can fix it would 
be GREATLY appreciated.  I have a demo on Wednesday that I'll be 
showing the app I've made.  I'd really like to have this issue 
resolved by then.





--
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] Loader control size

2006-04-18 Thread jupepsa
I use the loader control to load other flex app into the principal swf. 
I put the width and height to 100%. When the app that is loaded on the 
loader has a defined size (i.e 600x300), the loader take the size, but 
when the app has the width and height to 100% the loader control take a 
standard size (504x440) .

Anyone has a clue? 

mx:Loader source=myapp.swf id=ldr height=100% width=100%/

myapp.mxml

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 
width=100% height=100% layout=vertical
mx:Panel width=100% height=100% title=Modify Line 
layout=horizontal headerHeight=15





--
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: looking for flex developers in slovenia/croatia

2006-04-18 Thread kosirm2000
--- In flexcoders@yahoogroups.com, kosirm2000 [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm looking for flex developers in slovenia/croatia and neighbourhood.
 We are building commercial ria for tourist branch in croatia, so
 anybody with flex 2  oop skills (experience with Cairngorm) willing
 to work with us please drop me a note on [EMAIL PROTECTED]
 Project starts in May. 
 
 Milan

Sorry, I forgot this list is email protected, so anybody interested
please drop note to kosir dot lidija at gmail dot 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] FDS (java dao adapter) problem with castings?

2006-04-18 Thread al77_t
Hi guys,

Was wondering if anyone faced this problem and what are the possible
workarounds..

I have been experimenting with Flex Data Services and ended up with a small
prototype where I have a list of users and each user can have several
addresses. 
Please  see  AS Classes below.
Visually it looks like 2 datagrids - the first one shows user, and once a
user is selected its address become visible in the second datagrid.

Well in general it works great, however I seem to have to explicitly cast 
each item of addressList to an instance of  Address class before sending to
the server (otherwise they will come as instances of ASObject class),
although I'm prettry sure they come ok from Java side... 

private function getAddresses():Array{
var aList:ICollectionView = ICollectionView(addrList);
var cursor:IViewCursor = aList.getCursor();
var arr:Array = new Array();
while (!cursor.afterLast)
{
   arr.push(Address(cursor.current));
   cursor.moveNext();
 }
  return arr;
}

However I'd expect AS to maintain the correct class instance?

 AS Classes 
package samples.user {

import mx.data.IManaged;
import mx.data.utils.Managed;
import mx.core.mx_internal;
import mx.collections.ArrayCollection;
import mx.utils.ObjectUtil;

[Managed]
[RemoteClass(alias=samples.user.User)]
public class User {
public var id:int;
public var firstName:String ;
public var lastName:String ;
public var email:String ;
public var addressList:Array;  //  it is mapped
as  public Set addressList;  on Java side
}
}



package samples.user {
import mx.data.IManaged;
import mx.data.utils.Managed;
import mx.core.mx_internal;
import mx.collections.ArrayCollection;
import samples.user.User;

[Managed]
[RemoteClass(alias=samples.user.Address)]
public class Address {
public var id:int;
public var street:String;
public var houseNum:int;
public var zip:String;
public var user:User;
}
}


Many thanks in advance,
Alex






--
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: Do RemoteObject results still not operate in parallel?

2006-04-18 Thread Peter Farland
The player team wouldn't change this before Flex is released. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sof4real03
Sent: Monday, April 17, 2006 6:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Do RemoteObject results still not operate in
parallel?

Yes, that was the workaround. Is there look into changing the behavior
of NetConnection in the player before Flex is released for production?

By the way, thanks for the code tip.

- Sof

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

 Was that the workaround that involved using a unique endpoint URL to 
 avoid connection sharing?
 
 If so, in FDS 2 you could create a new AMFChannel and assign it as 
 part of a service's channelSet:ChannelSet property.
 
 import mx.messaging.ChannelSet;
 import mx.messaging.Channel;
 import mx.messaging.channels.AMFChannel;
 
 ...
 
 var channelSet:ChannelSet = new ChannelSet(); var channel:Channel = 
 new AMFChannel(my-amf, 
 http://localhost:8700/cfusion/messagebroker/amf;);
 channelSet.addChannel(channel);
 remoteObject.channelSet = channelSet;
 
 ...
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of sof4real03
 Sent: Monday, April 17, 2006 4:26 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Do RemoteObject results still not operate in

 parallel?
 
 If RemoteObjects results do not come back in parallel then how would 
 one implement the workaround Peter Ent posted since the endpoint
 attribute is no longer supported in Flex 2.
 
 Thanks,
 Sof
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
 
  It isn't up to the Flex RemoteObject feature... it's how the flash 
  player NetConnection works with AMF requests (and continues to work 
  in
 
  FP 8.5).
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of sof4real03
  Sent: Monday, April 17, 2006 3:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Do RemoteObject results still not operate 
  in
 
  parallel?
  
  Does anyone know if this is a still an outstanding design of 
  RemoteObjects and AMF?
  
  Much thanks,
  Sof
  
  --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
  
   I've come across an article by Peter Ent regarding how AMF results

   using RemoteObjects do not return in parallel, but wait until all 
   requests are completed. He also posted a workaround. I was just 
   wondering if this is still a valid workaround or has the design 
   been
 
   revamped with the Data Services?
   
   Thanks,
   Sof
  
  
  
  
  
  
  
  
  --
  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








--
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: Do RemoteObject results still not operate in parallel?

2006-04-18 Thread Peter Farland
You can't open many HTTP based connections from any client. Off the top
of my head I think HTTP 1.1 suggests 2 connections and HTTP 1.0
suggested 4 connections. The flash player can't change this - it's up to
what is configured on each OS.

I see the batching as desired behavior because over a real connection
the network time is non-trivial and a batch makes that much more
manageable for lots of quickly made requests.

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sof4real03
Sent: Monday, April 17, 2006 9:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Do RemoteObject results still not operate in
parallel?

Thanks Matt, this may be an ignorant question, but why would be a
desired behavior? It seems like a more desired behavior would be how
HTTPService or WebService responds is more desired...

Thanks,
Sof

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

 I'm pretty sure we consider this desired behavior.  I will file an 
 enhancement to turn off the batching but I doubt it will make it into 
 Flex 2.
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of sof4real03
 Sent: Monday, April 17, 2006 3:01 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Do RemoteObject results still not operate in

 parallel?
 
 Yes, that was the workaround. Is there look into changing the behavior

 of NetConnection in the player before Flex is released for production?
 
 By the way, thanks for the code tip.
 
 - Sof
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote:
 
  Was that the workaround that involved using a unique endpoint URL to

  avoid connection sharing?
  
  If so, in FDS 2 you could create a new AMFChannel and assign it as
 part
  of a service's channelSet:ChannelSet property.
  
  import mx.messaging.ChannelSet;
  import mx.messaging.Channel;
  import mx.messaging.channels.AMFChannel;
  
  ...
  
  var channelSet:ChannelSet = new ChannelSet(); var channel:Channel = 
  new AMFChannel(my-amf, 
  http://localhost:8700/cfusion/messagebroker/amf;);
  channelSet.addChannel(channel);
  remoteObject.channelSet = channelSet;
  
  ...
  
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On
  Behalf Of sof4real03
  Sent: Monday, April 17, 2006 4:26 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Do RemoteObject results still not operate 
  in parallel?
  
  If RemoteObjects results do not come back in parallel then how would
 one
  implement the workaround Peter Ent posted since the endpoint
  attribute is no longer supported in Flex 2.
  
  Thanks,
  Sof
  
  --- In flexcoders@yahoogroups.com, Peter Farland pfarland@
wrote:
  
   It isn't up to the Flex RemoteObject feature... it's how the flash

   player NetConnection works with AMF requests (and continues to 
   work
 in
  
   FP 8.5).
   
   -Original Message-
   From: flexcoders@yahoogroups.com 
   [mailto:[EMAIL PROTECTED]
 
   On Behalf Of sof4real03
   Sent: Monday, April 17, 2006 3:15 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Do RemoteObject results still not 
   operate
 in
  
   parallel?
   
   Does anyone know if this is a still an outstanding design of 
   RemoteObjects and AMF?
   
   Much thanks,
   Sof
   
   --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@
wrote:
   
I've come across an article by Peter Ent regarding how AMF 
results
 
using RemoteObjects do not return in parallel, but wait until 
all requests are completed. He also posted a workaround. I was 
just wondering if this is still a valid workaround or has the 
design
 been
  
revamped with the Data Services?

Thanks,
Sof
   
   
   
   
   
   
   
   
   --
   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
 
 
 
 
 
 
 
 
 --
 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



 




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

* 

[flexcoders] LoadMovie in mx:Loader swf

2006-04-18 Thread Jonas Windey










Hi, Im trying to use a tile-based imageviewer made in
flash in a flex application, and it seems the .swf cant use loadMovie
for external jpg files.
Anyone has an idea how to solve this?



You can reproduce it like this:



In an empty .fla, put this:



this.createEmptyMovieClip(test_mc,1);

this.test_mc.loadMovie(test.jpg);



Put this .swf together with test.jpg in the folder where your
flex swf is created (bin directory)



In flex, load the swf with mx:Loader
source=loadMovieTest.swf width=800
height=600/mx:Loader



If I open the swf, it loads the image. In flex, it doesnt.



Thanks for the tips.









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



  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] Flex 2 on Mac OS X

2006-04-18 Thread Bolo Michelin



You really should download the SDK and use
the Mac shell scripts that do all the messy java stuff for you. Also, when you
use the shell scripts you don't have to specify the framework path or
default config file. They get included automatically.So i don't need to use java stuff ? i can do something like that mxmlc -file-specs flex/samples/flexstore/flexstore.mxml 
Bolo2006/4/13, Bolo Michelin [EMAIL PROTECTED]:



You really should download the SDK and use
the Mac shell scripts that do all the messy java stuff for you.I am not a flash guru, It's my first mac. So what is 

he Mac shell scripts ?Bolo





Tobias.











From:
flexcoders@yahoogroups.com [mailto:

flexcoders@yahoogroups.com] On Behalf Of Bolo Michelin
Sent: Thursday, April 13, 2006
10:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 2
on Mac OS X





Nobody Can help me with
flcompile ?



2006/4/12, Bolo Michelin
[EMAIL PROTECTED]:



:) It was my fist link. I sais was problem with
this point.

When i test it, i have this problem





Last login: Wed Apr 12 10:22:13 on ttyp1
java -jar flex/lib/mxmlc.jar -load-config flex/frameworks
-default-background-color '#FF' -default-frame-rate 25 -optimize
-default-size 550 400 -file-specs
'/Users/bolomichelin/Desktop/flCompile.1/HelloAS3.as' 
Welcome to Darwin!
Ordinateur-de-Bolo-Michelin:~ bolomichelin$ java -jar flex/lib/mxmlc.jar
-load-config flex/frameworks -default-background-color '#FF'
-default-frame-rate 25 -optimize -default-size 550 400 -file-specs
'/Users/bolomichelin/Desktop/flCompile.1/HelloAS3.as' 
null: /Users/bolomichelin/flex/frameworks (No such file or directory)

java.io.FileNotFoundException: /Users/bolomichelin/flex/frameworks (No such
file or directory)
 at
java.io.FileInputStream.open(Native Method) 
 at
java.io.FileInputStream.init(FileInputStream.java:106)
 at
java.io.FileInputStream.init(FileInputStream.java:66)
 at
flex2.compiler.io.FileUtil.openStream(FileUtil.java:99) 
 at
flex2.compiler.io.FileUtil.openStream(FileUtil.java:86)
 at flex2.compiler.io.LocalFile.getInputStream(LocalFile.java:93)
 at
flex2.tools.Compiler.processConfiguration(Compiler.java:371) 
 at
flex2.tools.Compiler.main(Compiler.java:66)
Ordinateur-de-Bolo-Michelin:~ bolomichelin$ 



I change flCompile and Test.workflow with the good command



if fileExtension is as then 
  set myScript to java -jar
flex/lib/mxmlc.jar -load-config flex/frameworks  amp; cmdLineParams
amp;  -file-specs ' amp; filePath amp; '
 else if fileExtension is mxml then 
  set myScript to java -jar
flex/lib/mxmlc.jar -load-config flex/frameworks -file-specs ' amp;
filePath amp; '
 else





2006/4/9, John Barrett  [EMAIL PROTECTED]
:











Hi,






http://www.gskinner.com/blog/archives/2005/12/easily_compile.html
 





I hope you like it`-`
John







Bolo Michelin 
[EMAIL PROTECTED] wrote:









Hello,

 I also tried the fCompile, but never got it
working. I think that it was an
 applescript that called the terminal, but who
knows.
 I use ANT to compile, which works great. 

What is it ? Can u give me a url ?

Bolo















How low will we go? Check out Yahoo! Messenger's low 

PC-to-Phone call rates.







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























-- 
Martinique Sans Fil
http://www.martiniquesansfil.com









-- 
Martinique Sans Fil
http://www.martiniquesansfil.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

.



  










-- Martinique Sans Filhttp://www.martiniquesansfil.com


-- Martinique Sans 

[flexcoders] Flex2B2 - PopupManager problem?

2006-04-18 Thread bhaq1972
i'm getting 2 runtime errors when i do the following

var pop:Object = mx.managers.PopUpManager.createPopUp(this, 
LoginPopUp, true);

LoginPopUp.mxml looks like this
?xml version=1.0 encoding=utf-8?
nx:myPanel xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:nx=*
mx:FormItem label=UserID
mx:TextInput/
/mx:FormItem
mx:FormItem label=Password
mx:TextInput/
/mx:FormItem
/nx:myPanel

and myPanel.mxml looks like this
?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml;
/mx:Panel

errors - 
TypeError: Error #1009: null has no properties.
at 
mx.containers::Panel/mx.containers:Panel::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.core::Container/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

-and --

Error: Multiple sets of visual children have been specified for this 
component (base component definition and derived component 
definition)
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::setDoc
umentDescriptor()
at myPanel/initialize()
at LoginPopUp/initialize()
at mx.managers::SystemManager/::initializeChild()
at mx.managers::SystemManager/addChild()
at mx.managers::PopUpManager$/addPopUp()
at mx.managers::PopUpManager$/createPopUp()
at test_pop/::getPopup()
at test_pop/___Button2_click()


not a problem in flex1.5








--
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] Install Flex2 Beta2 in tomcat

2006-04-18 Thread Bolo Michelin



I found this tuto for compile with xcodehttp://www.joshbuhler.com/2006/02/06/my-conversion-to-flex-and-how-to-use-xcode-with-flex-2/
i try but have a error :(Tool:0: Command /Developer/SDKs/Flex/bin/mxmlc failed with exit code 2Tool:0: Use 'mxmlc -help' for information about using the command line.Tool:0: command line: Error: default arguments may not be interspersed with other options
2006/4/18, Xavi Beumala [EMAIL PROTECTED]:



Are you running a flash player previous to beta 2 release? I think this happened to me and was due to I was compiling with beta2 and running with a previous player (beta 1 in my case)...X.

On 4/18/06, sinacapho [EMAIL PROTECTED] wrote:


Dear all, My tomcat version is 5.0.28 and i am try to install the Flex2beta2 version in my debian machine. After that i move the flex.war,samples.war to the tomcat directory and start depolyment. It ok but
when i run the mxml it get error. Even i have write a sample mxmlmyselfand it returnVerifyError: Error #1053: Illegal override of SystemManager inmx.managers.SystemManagerat global$init()
is that i have do something wrong?\thxcapho--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* 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/
-- Xavi Beumalahttp://www.code4net.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
.



  








-- Martinique Sans Filhttp://www.martiniquesansfil.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



  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] How i use timer????????

2006-04-18 Thread anil thakur











Hi Sir

I want to take the date from
database I am using select getDate() for that .But the date on mxml page is
refreshed after 1 or 2 second .There is timer but it gives error 

I am using flex1.5 .Can sir u give me
solution how can I use timer in mxml using my action script.

I am using java/j2ee with macromedia
flex.





Regards
Anil kumar
[EMAIL PROTECTED]
Software Engineer
Vanguard Info-Solutions Limited
78, JIL Tower-II, Sector-18,
Gurgaon-122001 (INDIA)











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



  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.



  








-- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately  forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" -- 


Re: [flexcoders] Flex2B2 - PopupManager problem?

2006-04-18 Thread Darron J. Schall
bhaq1972 wrote:
 i'm getting 2 runtime errors when i do the following

Take a look at Peter Ent's post regarding Component Tempaltes in Flex 
2, it should help:
http://weblogs.macromedia.com/pent/archives/2006/03/component_templ.cfm

-d



--
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] LoadMovie in mx:Loader swf

2006-04-18 Thread Andriy Panas
Hello Jonas,

 In flex, load the swf with mx:Loader source=loadMovieTest.swf
 width=800 height=600/mx:Loader
 If I open the swf, it loads the image. In flex, it doesn’t.

  First, use mx:Image tag to load images into Flex 1.5 app, this is
more performance wise.

  Second, check the correctness of your whole path to the image
relatively to your MXML file that holds mx:Application tag.

-- 
Best regards,
 Andriymailto:[EMAIL PROTECTED]



--
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] logout remote object in flex

2006-04-18 Thread jfournet



ok, I was able to kill the session by using an HttpService to run a jsp that executed session.invalidate. How do I create a new session. Now the gui just shows an hour glass when I try to access any of the remote objects on the server.Peter Farland [EMAIL PROTECTED] wrote:  When you compiled the AdministrationDataFacade did you using the exact same flashgateway.jar that is being used at runtime by the web application? (From the error it doesn't seem likely, but note that the HttpSession may not always exist... so I'd usually not do that all on one line). If none of this helps, try breaking the
 command up onto separate lines and use try/catch to determine exactly what happened... was it a ClassNotFoundException or some other exception saying some method or property didn't exist.   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Monday, April 17, 2006 2:31 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] logout remote object in flex13:23:09,910 INFO [STDOUT] Info: Request sent to http://localhost:8087/txm/amfgateway/administrationFacade from 127.0.0.1 received at 13:23:09.910 2006-04-1713:23:09,910 INFO [STDOUT] Info: Deserializing request (Message #0 targetURI=administrationFacade.logoutUser,
 responseURI=/2) (Array #0) [0] = (Object #1) _flag = "Envelope" headers = (Array #2) [0] = (Array #3) [0] = "ServiceType" [1] = false [2] = "stateless-class" [1] = (Array #4) [0] = "Credentials" [1] = true [2] = (Object
 #5) password = "txmpass" userid = "txmadmin" data = "" #6)13:23:09,910 INFO [STDOUT] Info: Processing batch of 1 request(s)13:23:09,910 INFO [STDOUT] Info: Requesting target 'administrationFacade.logoutUser'13:23:09,910 INFO [STDOUT] Info: Service 'com.bmc.txm.common.interfaces.presentation.facade.AdministrationDataFacade' sent to adapter 'Java Class Adapter'13:23:09,910 INFO [STDOUT] before getHttpRequest13:23:10,040 INFO [STDOUT] Error: flashgateway/Gateway13:23:10,040 INFO [STDOUT] flashgateway.GatewayException: flashgateway/Gateway13:23:10,040 INFO [STDOUT] at flashgateway.filter.AdapterFilter.invoke(AdapterFilter.java:152)13:23:10,040 INFO
 [STDOUT] at flashgateway.filter.MessageSecurityFilter.invoke(MessageSecurityFilter.java:144)13:23:10,040 INFO [STDOUT] at flashgateway.filter.ServiceNameFilter.invoke(ServiceNameFilter.java:101)13:23:10,040 INFO [STDOUT] at flashgateway.filter.EnvelopeFilter.invoke(EnvelopeFilter.java:102)13:23:10,080 INFO [STDOUT] at flashgateway.filter.SessionFilter.invoke(SessionFilter.java:28)13:23:10,080 INFO [STDOUT] at flashgateway.filter.LicenseFilter.invoke(LicenseFilter.java:57)13:23:10,080 INFO [STDOUT] at flashgateway.filter.ErrorFilter.invoke(ErrorFilter.java:39)13:23:10,080 INFO [STDOUT] at flashgateway.filter.LogFilter.invoke(LogFilter.java:46)13:23:10,080 INFO [STDOUT] at
 flashgateway.filter.BatchProcessFilter.invoke(BatchProcessFilter.java:63)13:23:10,080 INFO [STDOUT] at flashgateway.filter.PacketSecurityFilter.invoke(PacketSecurityFilter.java:68)13:23:10,080 INFO [STDOUT] at flashgateway.filter.DebugFilter.invoke(DebugFilter.java:38)13:23:10,080 INFO [STDOUT] at flashgateway.filter.SerializationFilter.invoke(SerializationFilter.java:89)13:23:10,080 INFO [STDOUT] at flashgateway.Gateway.invoke(Gateway.java:217)  13:23:10,080 INFO [STDOUT] at flashgateway.controller.GatewayServlet.service(GatewayServlet.java:69)13:23:10,080 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)13:23:10,080 INFO [STDOUT] at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)13:23:10,080 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)13:23:10,080 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)13:23:10,080 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)13:23:10,080 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)13:23:10,080 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)13:23:10,080 INFO [STDOUT] at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)13:23:10,080 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)13:23:10,080 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)13:23:10,080 INFO [STDOUT] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)13:23:10,080 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)13:23:10,080 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)13:23:10,080 INFO [STDOUT] at
 

[flexcoders] Re: Flex2B2 - PopupManager problem?

2006-04-18 Thread bhaq1972
Thanks Darron 

I've came across Peter Ents example. It was going to be my second 
choice way.but now its going to be my first choice (its been 
promoted)
regards
bod

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

 bhaq1972 wrote:
  i'm getting 2 runtime errors when i do the following
 
 Take a look at Peter Ent's post regarding Component Tempaltes in 
Flex 
 2, it should help:
 
http://weblogs.macromedia.com/pent/archives/2006/03/component_templ.cfm
 
 -d








--
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] AMF and J2EE sessions

2006-04-18 Thread Dmitry Miller
Hello, 

I am wondering if I would be able to access JRun session from my java
class that is used by AMF gateway. I am trying to use clustered
environment with shareable j2ee sessions. 

Thanks for your help in advance





--
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: Flex2B2 - PopupManager problem?

2006-04-18 Thread bhaq1972
i hit the 'send' too quickly!!
i should've mentioned, my simple LoginPopUp.mxml component when used 
in a test app doesn't have those runtime errors.
eg.
mx:Application 
 LoginPopUp /
/mx:Application

only get the problem when using with PopUpManager.

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

 Thanks Darron 
 
 I've came across Peter Ents example. It was going to be my second 
 choice way.but now its going to be my first choice (its 
been 
 promoted)
 regards
 bod
 
 --- In flexcoders@yahoogroups.com, Darron J. Schall darron@ 
 wrote:
 
  bhaq1972 wrote:
   i'm getting 2 runtime errors when i do the following
  
  Take a look at Peter Ent's post regarding Component Tempaltes 
in 
 Flex 
  2, it should help:
  
 
http://weblogs.macromedia.com/pent/archives/2006/03/component_templ.c
fm
  
  -d
 








--
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] F2B2: Deploying sample apps

2006-04-18 Thread Tom Ortega



Here's the error I've seen internally, with the site name and domain removed to protect the innocent. =)Error #2044: Unhandled SecurityErrorEvent: text=Error #2047: Security sandbox violation: 'LocalConnection.send
': 'corp.domain.com' may not access 'http://site.corp.domain.com/somedir/wgc.swf'.On 4/17/06, Matt Chotin 
[EMAIL PROTECTED] wrote:















What are the errors you see? There
shouldn't be much of a trick, I posted those samples to our hosted site
without changing any settings.











From:
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Tom Ortega
Sent: Monday, April 17, 2006 8:53
AM
To: flexcoders
Subject: [flexcoders] F2B2:
Deploying sample apps





Is there any tricks to
deploying FlexBuilder2 Beta2 apps? I've deployed some internally, and I
get an error message popup when I deploy the htmal and swf files from the bin
directory to an internal web server and try to browse it. 

I was thinking of putting up some sample stuff in
the coming weeks on a personal web server, but will that not work? Most of the
examples I see on the web run off the same labs server, so I'm guessing we
can't just post our own examples on the web? 

Hopefully someone can correct me and prove me
wrong! =)

Thanks,
Tom









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



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



  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] LoadMovie in mx:Loader swf

2006-04-18 Thread Jonas Windey
Nope, that isn't working, I've tried the mx:Image control too, and I tried
putting the .jpg in the root, or in the bin folder, no difference...

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
layout=absolute
mx:Loader source=loadMovieTest.swf width=800 height=600
x=200 y=300 /
mx:Image source=loadMovieTest.swf width=800 height=600
x=200 y=300/
/mx:Application

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: dinsdag 18 april 2006 16:42
To: Jonas Windey
Subject: Re: [flexcoders] LoadMovie in mx:Loader swf

Hello Jonas,

 In flex, load the swf with mx:Loader source=loadMovieTest.swf
 width=800 height=600/mx:Loader
 If I open the swf, it loads the image. In flex, it doesn't.

  First, use mx:Image tag to load images into Flex 1.5 app, this is
more performance wise.

  Second, check the correctness of your whole path to the image
relatively to your MXML file that holds mx:Application tag.

-- 
Best regards,
 Andriymailto:[EMAIL PROTECTED]



--
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] Flex2b2: Problem casting super to an Interface

2006-04-18 Thread Tobias Patton










Then it works as expected.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Monday, April 17, 2006 5:23
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex2b2:
Problem casting super to an Interface





What happens if you dont try
casting and just call super.InterfaceMethod()? 



Matt











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tobias Patton
Sent: Monday, April 17, 2006 9:38
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2b2:
Problem casting super to an Interface





Hello List:



Given the following classes and interfaces:



IInterface.as

-



package {


import flash.util.trace; 


public interface IInterface 


{


function InterfaceMethod() : void;


}

}



Base.as

-



package {


import flash.util.trace; 


public class Base implements IInterface


{


public function InterfaceMethod() : void


{ 


trace( Base::InterfaceMethod );


}


}

}



Derived.as:

---



package {


import flash.util.trace; 


public class Derived extends Base 


{


override public function InterfaceMethod() : void


{ 


trace( Derived::InterfaceMethod );


IInterface( super ).InterfaceMethod();


}





}

}



What would you expect as the output of the following?



var derived : Derived = new
Derived();


IInterface( derived ).InterfaceMethod();



I would expect:



Derived::InterfaceMethod

Base:InterfaceMethod



But instead I get:



Derived::InterfaceMethod

Derived::InterfaceMethod

Derived::InterfaceMethod

Derived::InterfaceMethod

... (repeats for
ever)



It seems the the cast: IInterface( super )
is returning this and not the base object for this.
Is this a bug, or am I misunderstanding something. (Please note that Im
a C++ programmer and have had little exposure to Java-style interfaces, so I
could be making a very naïve mistake and not know it.)



Tobias.

Kodak Graphic Communications Canada Company

Tobias Patton | Software Developer | Tel: +1.604.451.2700
ext: 5148 | mailto:[EMAIL PROTECTED] | http://www.creo.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] Flex 2 on Mac OS X

2006-04-18 Thread Tobias Patton










Thats right.











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bolo Michelin
Sent: Tuesday, April 18, 2006 6:36
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 2
on Mac OS X





You really should download the SDK and use the Mac shell
scripts that do all the messy java stuff for you. Also, when you use the shell
scripts you don't have to specify the framework path or default config file.
They get included automatically.

So i don't need to use java stuff ? i can do
something like that 
mxmlc -file-specs
flex/samples/flexstore/flexstore.mxml 

Bolo



2006/4/13, Bolo Michelin
[EMAIL PROTECTED]:









You
really should download the SDK and use the Mac shell scripts that do all the
messy java stuff for you.





I am not
a flash guru, It's my first mac. So what is  he Mac shell scripts ?

Bolo

















Tobias.











From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Bolo
Michelin
Sent: Thursday, April 13, 2006 10:10 AM






To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 2 on Mac OS
X









Nobody Can help me with flcompile ?







2006/4/12,
Bolo Michelin [EMAIL PROTECTED]:







:) It was my fist link. I sais was problem with this point.

When i
test it, i have this problem









Last
login: Wed Apr 12 10:22:13 on ttyp1
java -jar flex/lib/mxmlc.jar -load-config
flex/frameworks -default-background-color '#FF' -default-frame-rate 25
-optimize -default-size 550 400 -file-specs
'/Users/bolomichelin/Desktop/flCompile.1/HelloAS3.as' 
Welcome to Darwin!
Ordinateur-de-Bolo-Michelin:~ bolomichelin$ java
-jar flex/lib/mxmlc.jar -load-config flex/frameworks -default-background-color
'#FF' -default-frame-rate 25 -optimize -default-size 550 400 -file-specs
'/Users/bolomichelin/Desktop/flCompile.1/HelloAS3.as' 
null: /Users/bolomichelin/flex/frameworks (No such
file or directory)

java.io.FileNotFoundException:
/Users/bolomichelin/flex/frameworks (No such file or directory)
 at
java.io.FileInputStream.open(Native Method) 
 at
java.io.FileInputStream.init(FileInputStream.java:106)
 at
java.io.FileInputStream.init(FileInputStream.java:66)
 at
flex2.compiler.io.FileUtil.openStream(FileUtil.java:99) 
 at
flex2.compiler.io.FileUtil.openStream(FileUtil.java:86)
 at
flex2.compiler.io.LocalFile.getInputStream(LocalFile.java:93)
 at
flex2.tools.Compiler.processConfiguration(Compiler.java:371) 
 at
flex2.tools.Compiler.main(Compiler.java:66)
Ordinateur-de-Bolo-Michelin:~ bolomichelin$ 



I change
flCompile and Test.workflow with the good command



if
fileExtension is as then 
  set myScript
to java -jar flex/lib/mxmlc.jar -load-config flex/frameworks 
amp; cmdLineParams amp;  -file-specs ' amp; filePath
amp; '
 else if fileExtension is
mxml then 
  set myScript
to java -jar flex/lib/mxmlc.jar -load-config flex/frameworks -file-specs
' amp; filePath amp; '
 else





2006/4/9,
John Barrett  [EMAIL PROTECTED]
:











Hi,






http://www.gskinner.com/blog/archives/2005/12/easily_compile.html






I hope you
like it`-`
John
















Bolo Michelin 
[EMAIL PROTECTED] wrote:











Hello,

 I also tried the fCompile, but never got it
working. I think that it was an
 applescript that called the terminal, but who
knows.
 I use ANT to compile, which works great. 

What is it ? Can u give me a url ?

Bolo















How low
will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.











--






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 .































-- 
Martinique Sans Fil
http://www.martiniquesansfil.com 












-- 
Martinique Sans Fil
http://www.martiniquesansfil.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! 

[flexcoders] Re: Flex2B2 - PopupManager problem?

2006-04-18 Thread bhaq1972
I'm sure its a PopUpManager problem. i took Peter Ent's download and 
added the following in his SampleApp.mxml

mx:Button click=trythis()/
mx:Script
![CDATA[
 import mx.managers.PopUpManager;

 private function trythis():void
 {
  var pop:Object = mx.managers.PopUpManager.createPopUp(this, 
LoginPopUp, true); 
//my LoginPopUp - same as previously decribed, except i'm now using 
MinMaxPanel.mxml instead of myPanel.mxml
 }
]]
/mx:Script

but still same error

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

 i hit the 'send' too quickly!!
 i should've mentioned, my simple LoginPopUp.mxml component when 
used 
 in a test app doesn't have those runtime errors.
 eg.
 mx:Application 
  LoginPopUp /
 /mx:Application
 
 only get the problem when using with PopUpManager.
 
 --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote:
 
  Thanks Darron 
  
  I've came across Peter Ents example. It was going to be my 
second 
  choice way.but now its going to be my first choice (its 
 been 
  promoted)
  regards
  bod
  
  --- In flexcoders@yahoogroups.com, Darron J. Schall darron@ 
  wrote:
  
   bhaq1972 wrote:
i'm getting 2 runtime errors when i do the following
   
   Take a look at Peter Ent's post regarding Component Tempaltes 
 in 
  Flex 
   2, it should help:
   
  
 
http://weblogs.macromedia.com/pent/archives/2006/03/component_templ.c
 fm
   
   -d
  
 







--
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] Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread Harris Reynolds
Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2 
project?  I have tried two different components and each time I get the 
following error:

unable to load SWC componentnamehere.swc: unknown element swc found in 
componentPackage section in catalog.xml.

Does anything special need to be done to the SWC to make it compatible 
with Flex 2?

thanks,

~harris









--
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 and Amazon SOAP Web services, bug?

2006-04-18 Thread Benoit Hediard
Has anyone managed to port this example to Flex 2?
http://jeff.mxdj.com/using_amazons_itemsearch_webservice_from_flex.htm
 
Here is my Flex 2 version with REST and SOAP requests :
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
height=600 
width=800

mx:Script
![CDATA[
import mx.controls.Alert;
import mx.controls.dataGridClasses.DataGridColumn;
import flash.net.*;

private var subId:String = blahblah; // your
subscription id here
   
private function showRESTResult(event:Object):void {
items.dataProvider =
event.result.ItemSearchResponse.Items.Item;
}

private function showSOAPResult(event:Object):void {
items.dataProvider =
event.result.Items.Item;
if (!event.result.Items[0].IsValid) {

Alert.show(event.result.Items[0].Errors.Error.Code +  :  +
event.result.Items[0].Errors.Error.Message, Error in SOAP Request);
}
}

private function showTitle(item:Object,
column:DataGridColumn):String{
return item.ItemAttributes.Title;
}

private function showAuthor(item:Object,
column:DataGridColumn):String{
return item.ItemAttributes.Author;
}

private function showBook(url:String):void {
navigateToURL(new URLRequest(url));
} 
   
private function doRESTSearch():void {
var request:Object = new Object();
request.Operation = ItemSearch;
request.SearchIndex = Books;
request.Sort = salesrank;
request.SubscriptionId = subId;
request.Keywords = searchTerm.text;
amazonRESTService.send(request);
}

private function doSOAPSearch():void {
var itemSearchRequest:Object = new Object();
itemSearchRequest.SearchIndex = Books;
itemSearchRequest.Sort = salesrank;
itemSearchRequest.Keywords =
searchTerm.text;

var search:Object = new Object();
search.Request = itemSearchRequest;
search.SubscriptionId = subId; 
amazonSoapService.ItemSearch(search);
}
]]
/mx:Script

mx:HTTPService id=amazonRESTService
result=showRESTResult(event) 
showBusyCursor=true

url=http://webservices.amazon.com/onca/xml?Service=AWSECommerceService;
useProxy=false /

mx:WebService id=amazonSoapService 

wsdl=http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.
wsdl
result=showSOAPResult(event) 
showBusyCursor=true /

mx:HBox width=100%
mx:TextInput id=searchTerm width=50%/  
mx:Button click=doRESTSearch() label=REST Search/
mx:Button click=doSOAPSearch() label=SOAP Search/
/mx:HBox

mx:DataGrid 
id=items 
width=100% 
change=showBook(event.target.selectedItem.DetailPageURL)   
  
mx:columns
mx:Array
mx:DataGridColumn dataField=Title
labelFunction=showTitle width=400 /
mx:DataGridColumn dataField=Author
labelFunction=showAuthor width=150/
mx:DataGridColumn dataField=ASIN headerText=ID
width=75/
/mx:Array
/mx:columns

/mx:DataGrid

/mx:Application

The REST search version works well.
The SOAP version doesn't...
 
When analyzing the SOAP parameters in the HTTP request with ServiceCapture,
it does not send any Request parameter (only SubscriptionId).
When I comment the line search.Request = itemSearchRequest;, it correctly
sends a Request parameter (with a null value).
 
It looks like there is a conflict somewhere with the Request parameter?
 
Benoit Hediard




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 

Re: [flexcoders] Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread JesterXL
It needs to be created  compiled in Flex 2 Beta 2.  Flex 1, Flex 1.5, Flash 
MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2 projects.  That's 
because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player 8.5 
whereas the others do not.

- Original Message - 
From: Harris Reynolds [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 18, 2006 11:30 AM
Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2


Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2
project?  I have tried two different components and each time I get the
following error:

unable to load SWC componentnamehere.swc: unknown element swc found in
componentPackage section in catalog.xml.

Does anything special need to be done to the SWC to make it compatible
with Flex 2?

thanks,

~harris









--
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: [Flex 2b2] Changing a Chart's dataProvider at runtime?

2006-04-18 Thread Ely Greenfield


Let's see...

1) If you're going to use binding to assign the dataprovider, and you
want to swap in a different one at runtime, you either need to a) change
the value of the thing you're binding to, or b) don't use binding. i.e.,
you could do this:

Script
  [Bindable] public var currentDP:Array;

public function changeDP() {
currentDP = someOtherDP;
}



// Adding a series:
Function addSeries()
{
var newSeries:ColumnSeries = new ColumnSeries();
newSeries.yField = newYField;
chartSeries.push(newSeries);
myChart.series = chartSeries;
}

/Script


ColumnChart id=myChart dataProvider={currentDP}  
  series
 Array id=chartSeries
ColumnSeries ... /
/Array
  /series
/ColumnChart



I'm not sure exactly what you mean by dragging a column. You mean
drag-select a group of columns to then drag/drop?  Could be done, but it
would be non-trivial work. Selection unfortunately didn't make it into
this release.  But you could extend the ColumnSeries and CartesianChart
to support it.


Additional Types:  Yes, in theory, although nothing specific is planned
at this point.  PieChart is built on PolarChart, which could serve as
the basis for any type of Polar Coordinate based chart.  Which means a
RadarSeries shouldn't be too hard to build on the shipping Flex2 charts
(think of it as a LineSeries based on a PolarChart).

Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Monday, April 17, 2006 9:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: [Flex 2b2] Changing a Chart's dataProvider at
runtime?

Change it to a different one.  (See below) For example:

change dataProvider (via AS3) for summaryChart to
{model.marketSummary}
add a ColumnSeries where yField equals mktQTY and categoryField equals
mktLabel

Thanks Ely!  Also, while I've got you...  

Any suggestion on how to drag a column as a way to select a group of
data to drop?
Are there any plans for additional chart types in the future?  Radar
Chart?

Martin


mx:ColumnChart id=summaryChart
dataProvider={model.scoreSummary}
showDataTips=true
width=100% height=45% axisTitleStyle=axisStyle 

mx:horizontalAxis
mx:CategoryAxis
dataProvider={model.scoreSummary}
categoryField=scrLabel /
/mx:horizontalAxis
mx:series
mx:Array
mx:ColumnSeries displayName=Leads
yField=scrQTY /
/mx:Array
/mx:series
/mx:ColumnChart


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

 
 What do you mean by change the dataProvider? Modify it? Or change to a

 different one?
 
 
 And if you can give an example of how you're setting the series in the

 first place, I can give help adding a new one.
 
 Ely.
 
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of flexabledev
 Sent: Monday, April 17, 2006 6:38 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] [Flex 2b2] Changing a Chart's dataProvider at 
 runtime?
 
 Can someone give me a real quick example (Flex 2 B2 please) on how to 
 change the dataProvider and adding a series to a Chart at runtime?  It

 seems to have changed from Flex 1.5  and other than changing the 
 yField of series for an existing dataProvider, I can't find a good 
 example in the docs. Thanks in advance...
 
 
 
 
 
 
 
 --
 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



 





--
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: Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread Harris Reynolds
Thanks for the reply Jester... that stinks that things like the Yahoo 
Maps component can not be imported into Flex 2.  I tried importing 
the SWC directly *and* creating a new SWC with the MXP and obviously 
didn't have any luck with either approach.  I am sure support from 
Yahoo will be coming in the future, but it would be nice to have it 
now!

Thanks man,

~harris

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

 It needs to be created  compiled in Flex 2 Beta 2.  Flex 1, Flex 
1.5, Flash 
 MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2 
projects.  That's 
 because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player 
8.5 
 whereas the others do not.
 
 - Original Message - 
 From: Harris Reynolds [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, April 18, 2006 11:30 AM
 Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2
 
 
 Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 
2
 project?  I have tried two different components and each time I get 
the
 following error:
 
 unable to load SWC componentnamehere.swc: unknown element swc 
found in
 componentPackage section in catalog.xml.
 
 Does anything special need to be done to the SWC to make it 
compatible
 with Flex 2?
 
 thanks,
 
 ~harris
 
 
 
 
 
 
 
 
 
 --
 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: Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread JesterXL
Agreed.  We all tried to actually create a Yahoo Maps SWF in Flash 8, and 
then load the SWF into a Flex 2 Loader (component or flash intrinsic class), 
but no dice.

They are making one though, so maybe if we bitch more, they'll make it come 
out faster!

- Original Message - 
From: Harris Reynolds [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 18, 2006 12:56 PM
Subject: [flexcoders] Re: Loading an SWC into Flex 2 Beta 2


Thanks for the reply Jester... that stinks that things like the Yahoo
Maps component can not be imported into Flex 2.  I tried importing
the SWC directly *and* creating a new SWC with the MXP and obviously
didn't have any luck with either approach.  I am sure support from
Yahoo will be coming in the future, but it would be nice to have it
now!

Thanks man,

~harris

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

 It needs to be created  compiled in Flex 2 Beta 2.  Flex 1, Flex
1.5, Flash
 MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2
projects.  That's
 because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player
8.5
 whereas the others do not.

 - Original Message - 
 From: Harris Reynolds [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, April 18, 2006 11:30 AM
 Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2


 Has anyone had success importing a 3rd party SWC into a Flex 2 Beta
2
 project?  I have tried two different components and each time I get
the
 following error:

 unable to load SWC componentnamehere.swc: unknown element swc
found in
 componentPackage section in catalog.xml.

 Does anything special need to be done to the SWC to make it
compatible
 with Flex 2?

 thanks,

 ~harris









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








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

2006-04-18 Thread Simeon Bateman



On this page:http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_ConnectivityLook for the text:To use the CFC resource in your Flex Builder 
2.0 project:simeonOn 4/17/06, deepu_verma [EMAIL PROTECTED] wrote:



Hi All,
I have installed flex and mystic on JRun server. What will be the flex
configuration settings so as to access the cfc using remote object.

On this page
http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity

I was able to find the settings for Flex builder.










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



  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: Flex Mystic connectivity

2006-04-18 Thread flexnadobe
Hello,

I also have a question, I have been working with Mystic on the Windows
side and will eventually want to test this on my Xserves. My company
would like to go all Xserves has Anyone testedRich CF and Mystic on
OSX yet! I do have a Xeon Quad Server I could use for CF. What do you
guys recommend!

Rich

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

 Hi All,
 I have installed flex and mystic on JRun server. What will be the flex
 configuration settings so as to access the cfc using remote object.
 
 On this page
 http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity
 I was able to find the settings for Flex builder.







--
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: Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread ben.clinkinbeard
This being the case, I am curious as to what methods people are using
to get visual assets like movieclips into their Flex apps and
associated with custom classes.

Thanks,
Ben

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

 It needs to be created  compiled in Flex 2 Beta 2.  Flex 1, Flex
1.5, Flash 
 MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2 projects.
 That's 
 because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player 8.5 
 whereas the others do not.
 
 - Original Message - 
 From: Harris Reynolds [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, April 18, 2006 11:30 AM
 Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2
 
 
 Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2
 project?  I have tried two different components and each time I get the
 following error:
 
 unable to load SWC componentnamehere.swc: unknown element swc found in
 componentPackage section in catalog.xml.
 
 Does anything special need to be done to the SWC to make it compatible
 with Flex 2?
 
 thanks,
 
 ~harris
 
 
 
 
 
 
 
 
 
 --
 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: Flex Mystic connectivity

2006-04-18 Thread Simeon Bateman



I blogged on my site about getting mystic installed on mac osx (http://simb.net) There is no installer for mac, you need to get the correct files from a windows mystic install.But I have no no problems running it on my mac and linux. Works like a charm.
simeonOn 4/18/06, flexnadobe [EMAIL PROTECTED] wrote:



Hello,

I also have a question, I have been working with Mystic on the Windows
side and will eventually want to test this on my Xserves. My company
would like to go all Xserves has Anyone testedRich CF and Mystic on
OSX yet! I do have a Xeon Quad Server I could use for CF. What do you
guys recommend!

Rich

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

 Hi All,
 I have installed flex and mystic on JRun server. What will be the flex
 configuration settings so as to access the cfc using remote object.
 
 On this page
 http://labs.macromedia.com/wiki/index.php/ColdFusion/Flex_Connectivity

 I was able to find the settings for Flex builder.











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



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



  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: Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread JesterXL
Embedding to the class works best, although, you can embed to properties 
too.  Classes, to me, are just easier and make more sense from a Flash 
development standpoint.

package
{
import flash.display.MovieClip;
[Embed(source=my.swf, symbol=SomeSymbol]
public class MySomeSymbol extends MovieClip
{
public function MySomeSymbol()
{
}
}
}

import MySomeSymbol;

var a:MySomeSymbol = new MySomeSymbol();
addChild(a);

- Original Message - 
From: ben.clinkinbeard [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 18, 2006 1:10 PM
Subject: [flexcoders] Re: Loading an SWC into Flex 2 Beta 2


This being the case, I am curious as to what methods people are using
to get visual assets like movieclips into their Flex apps and
associated with custom classes.

Thanks,
Ben

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

 It needs to be created  compiled in Flex 2 Beta 2.  Flex 1, Flex
1.5, Flash
 MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2 projects.
 That's
 because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player 8.5
 whereas the others do not.

 - Original Message - 
 From: Harris Reynolds [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, April 18, 2006 11:30 AM
 Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2


 Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2
 project?  I have tried two different components and each time I get the
 following error:

 unable to load SWC componentnamehere.swc: unknown element swc found in
 componentPackage section in catalog.xml.

 Does anything special need to be done to the SWC to make it compatible
 with Flex 2?

 thanks,

 ~harris









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







--
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: Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread ben.clinkinbeard
Thanks Jesse, I will give that a whirl.

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

 Embedding to the class works best, although, you can embed to
properties 
 too.  Classes, to me, are just easier and make more sense from a Flash 
 development standpoint.
 
 package
 {
 import flash.display.MovieClip;
 [Embed(source=my.swf, symbol=SomeSymbol]
 public class MySomeSymbol extends MovieClip
 {
 public function MySomeSymbol()
 {
 }
 }
 }
 
 import MySomeSymbol;
 
 var a:MySomeSymbol = new MySomeSymbol();
 addChild(a);
 
 - Original Message - 
 From: ben.clinkinbeard [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Tuesday, April 18, 2006 1:10 PM
 Subject: [flexcoders] Re: Loading an SWC into Flex 2 Beta 2
 
 
 This being the case, I am curious as to what methods people are using
 to get visual assets like movieclips into their Flex apps and
 associated with custom classes.
 
 Thanks,
 Ben
 
 --- In flexcoders@yahoogroups.com, JesterXL jesterxl@ wrote:
 
  It needs to be created  compiled in Flex 2 Beta 2.  Flex 1, Flex
 1.5, Flash
  MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2 projects.
  That's
  because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player 8.5
  whereas the others do not.
 
  - Original Message - 
  From: Harris Reynolds hreynolds2@
  To: flexcoders@yahoogroups.com
  Sent: Tuesday, April 18, 2006 11:30 AM
  Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2
 
 
  Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2
  project?  I have tried two different components and each time I
get the
  following error:
 
  unable to load SWC componentnamehere.swc: unknown element swc
found in
  componentPackage section in catalog.xml.
 
  Does anything special need to be done to the SWC to make it compatible
  with Flex 2?
 
  thanks,
 
  ~harris
 
 
 
 
 
 
 
 
 
  --
  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







--
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] Deleted project files, uncompile swf?

2006-04-18 Thread Ryan Pieszak
In one of my brighter moments, I deleted my project files.  The swf, 
html, etc. was posted to a different server.  Is there anyway of 
uncompiling the swf to get the mxml or as files back?





--
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] Deleted project files, uncompile swf?

2006-04-18 Thread JesterXL
MXML, no, AS  Assets, most likely.
http://buraks.com/asv/

There are other decompilers on http://www.swftools.com/


- Original Message - 
From: Ryan Pieszak [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 18, 2006 1:44 PM
Subject: [flexcoders] Deleted project files, uncompile swf?


In one of my brighter moments, I deleted my project files.  The swf, 
html, etc. was posted to a different server.  Is there anyway of 
uncompiling the swf to get the mxml or as files back?





--
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: ItemListRenderer Error

2006-04-18 Thread sufibaba



Matt,Thanks for looking into this. I am taking another
approach to solve this problem. UsingBenoit's PhoneCairngorm
configuration. It seems to be working, however,I am getting a compiler
error message:Implicit coercion of a value with static type 'Object' to a possibly unrelated type'mx.collections.ArrayCollection'Note:
the red line in thecode below is the problem. The trace output
returns an array ofobjects of type categoryVO. 

BTW, I also tried to cast :

model.categoryList = ArrayCollection(event.result) but the same error from the compiler.
-package com.smartetailing.templateEditor.commands {  import com.smartetailing.templateEditor.model.ApplicationModel; import com.smartetailing.templateEditor.service.CategoryDelegate;  import com.smartetailing.templateEditor.controller.CategoryListGetEvent; import com.smartetailing.templateEditor.view.libraryTemplates.*;  import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent;  import org.nevis.cairngorm.business.Responder; import org.nevis.cairngorm.commands.Command; import org.nevis.cairngorm.control.CairngormEvent; import org.nevis.cairngorm.view.ViewLocator;   import flash.util.trace;   public class getCategoryListCommand implements Command, Responder {private static var model:ApplicationModel = ApplicationModel.getInstance();public function execute(cairngormEvent:CairngormEvent):void {   trace("executeGetCategoryCommand = ")   var event:CategoryListGetEvent = CategoryListGetEvent(cairngormEvent);  var delegate:CategoryDelegate = new CategoryDelegate(this);   delegate.getCategoryList(event.userId);  model.applicationState = Properties.STATE_LOADING;  }//-public function onResult(event:ResultEvent):void {  trace("categories = " + event.result)   model.categoryList = event.result;model.applicationState = Properties.STATE_DEFAULT;  }//-public function onFault(event:FaultEvent):void {
 Alert.show(event.fault.description
+ " : " + event.fault.detail, "Errorin getCategoryListCommand");  }  } } In flexcoders@yahoogroups.com, "Matt Chotin" [EMAIL PROTECTED] wrote: The data property is typed as Object so the binding code isn't going to know that it can safely read the data. Is your data object strongly typed? Maybe you can cast so binding will know what to do.  As for your GetIconFamily binding error, that sounds wrong. Can we see the code for that one? Maybe it's a bug.  Matt  -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sufibaba Sent: Friday, April 14, 2006 5:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ItemListRenderer Error  Hello Flexors,  I am getting a "binding" error while upgrading a working app from Flex2Beta1 to Flex2Beta2.   Below is the code that shows the TileList control with a custom ItemListRenderer myThumnail.mxml  - Error --  warning: unable to bind to property 'URL' on class 'Object' (class is not an IEventDispatcher)  -  Does anyone know what might be the cause.  Cheers,  Tim--- Calling.mxml  mx:TileList   xmlns:mx="http://www.adobe.com/2006/mxml"   dataProvider="{parentApplication.services.SEadminSvc.GetMyTemplates.resu lt}" width="100%" itemRenderer="myThumbnail" columnWidth="200" height="100%"  dragEnabled = "false" backgroundColor="#C0CCD2" creationComplete="InitEvent()"  /mx:TileList   myThumnail.mxml ---  ?xml version="1.0"? mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalGap="0"  horizontalGap="0" borderStyle=".5" width="100" height="150"mx:Metadata  [Event("thumbnailClicked")] /mx:Metadata  mx:Script ![CDATA[  import mx.controls.Alert; import flash.events.Event;  public var __templateIdSel:Number;  // Handler functionprivate function thumbClicked(templateIdSel:Number):void {__templateIdSel = templateIdSel;this.dispatchEvent(new Event('thumbClicked',true)); // bubbles set to true

trace("data.data.URL=
""helloMyMan");}// Getter functionspublic function get templateIdSel():uint { return __templateIdSel;}   ]] /mx:Script mx:Zoom id="zoomIn" zoomHeightTo="1.2" zoomWidthTo="1.2"/ mx:Zoom id="zoomOut" zoomHeightTo=".7" zoomWidthTo=".7"/mx:Model id="model"ID{data.data.ID}/ID   /mx:Model mx:Label text="{data.data.ID}. {data.label}" textAlign="left" fontWeight="bold"/   mx:Imageid="image" x="{image.width/2}" y="{image.height/2}"   horizontalAlign="center" source="http://xKc.seg2.net{data.data.URL}"click="thumbClicked(data.data.ID)" scaleX=".7" 

[flexcoders] Re: ItemListRenderer Error

2006-04-18 Thread sufibaba




Update: When the below is executed, 

  public function onResult(event:ResultEvent):void {
   
   trace("categories = " + event.result)
   model.categoryList = ArrayCollection(event.result);
   model.applicationState = Properties.STATE_DEFAULT;
  }

I get these runtime errors:

categories = [object CategoryVO],[object CategoryVO],[object
CategoryVO],[object CategoryVO],[object CategoryVO],[object
CategoryVO],[object CategoryVO],[object CategoryVO]
TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.collections.ArrayCollection







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



  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: ItemListRenderer Error

2006-04-18 Thread Benoit Hediard





Have you tried to put a breakpoint in order to look in the 
debugger the structure of your result?

You might also have a look with ServiceCapture (http://kevinlangdon.com/serviceCapture/).
It's a "must have" tool for debugging 
RPCrequests.

The result is probably an array.
So you might have to do :
model.categoryList = 
newArrayCollection(event.result);

Benoit Hediard


De: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] De la part de 
sufibabaEnvoyé: mardi 18 avril 2006 19:52À: 
flexcoders@yahoogroups.comObjet: [flexcoders] Re: 
ItemListRenderer Error
Matt,Thanks for looking into this. I am taking 
another approach to solve this problem. UsingBenoit's PhoneCairngorm 
configuration. It seems to be working, however,I am getting a compiler error 
message:Implicit coercion of a value with static 
type 'Object' to a possibly unrelated 
type'mx.collections.ArrayCollection'Note: the red line in thecode below is the problem. The 
trace output returns an array ofobjects of type categoryVO. 
BTW, I also tried to cast :model.categoryList = 
ArrayCollection(event.result) but the same error from the 
compiler.-package 
com.smartetailing.templateEditor.commands { 
 import 
com.smartetailing.templateEditor.model.ApplicationModel; 
import 
com.smartetailing.templateEditor.service.CategoryDelegate; 
 import 
com.smartetailing.templateEditor.controller.CategoryListGetEvent; 
import 
com.smartetailing..templateEditor.view.libraryTemplates.*; 
 import 
mx.collections.ArrayCollection; import 
mx.controls.Alert; import 
mx.rpc.events.FaultEvent; import 
mx.rpc.events.ResultEvent;  import 
org.nevis.cairngorm.business.Responder; import 
org.nevis.cairngorm.commands.Command; import 
org.nevis.cairngorm.control.CairngormEvent; import 
org.nevis.cairngorm.view.ViewLocator; 
  import 
flash.util.trace;  
 public class getCategoryListCommand implements Command, 
Responder {   
 private static var model:ApplicationModel = 
ApplicationModel.getInstance();  
  public function 
execute(cairngormEvent:CairngormEvent):void { 
  trace("executeGetCategoryCommand = 
")   var 
event:CategoryListGetEvent = 
CategoryListGetEvent(cairngormEvent);  

var delegate:CategoryDelegate = new 
CategoryDelegate(this);  
 delegate.getCategoryList(event.userId); 

 model.applicationState = 
Properties.STATE_LOADING;  
}   
 
//- 
   public function 
onResult(event:ResultEvent):void {  

trace("categories = " + event.result)  
 model.categoryList = event.result; 
   
model.applicationState = Properties.STATE_DEFAULT; 
 }  
  
//- 
   public function 
onFault(event:FaultEvent):void {  
Alert.show(event.fault.description + " : " + 
event.fault.detail, "Errorin getCategoryListCommand"); 
 }  
} 
} 
In flexcoders@yahoogroups.com, "Matt Chotin" [EMAIL PROTECTED] 
wrote: The data property is typed as Object so the binding code 
isn't going to know that it can safely read the data. Is your data 
object strongly typed? Maybe you can cast so binding will know 
what to do.  As for your GetIconFamily binding error, that 
sounds wrong. Can we see the code for that one? Maybe it's a 
bug.  Matt  -Original Message- 
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
Behalf Of sufibaba Sent: Friday, April 14, 2006 5:17 PM To: 
flexcoders@yahoogroups.com Subject: [flexcoders] ItemListRenderer 
Error  Hello Flexors,  I am getting a "binding" 
error while upgrading a working app from Flex2Beta1 to Flex2Beta2. 
  Below is the code that shows the TileList control with a 
custom ItemListRenderer myThumnail.mxml  - Error 
--  warning: 
unable to bind to property 'URL' on class 'Object' (class is not an 
IEventDispatcher)  -  Does 
anyone know what might be the cause.  Cheers,  
Tim--- Calling.mxml 
 mx:TileList  
 xmlns:mx="http://www.adobe.com/2006/mxml" 
  
dataProvider="{parentApplication.services.SEadminSvc.GetMyTemplates.resu 
lt}" 
width="100%" 
itemRenderer="myThumbnail" 
columnWidth="200" height="100%" 
 dragEnabled = 
"false" 
backgroundColor="#C0CCD2" 
creationComplete="InitEvent()"  
/mx:TileList   myThumnail.mxml 
---  ?xml 
version="1.0"? mx:VBox 
xmlns:mx="http://www.adobe.com/2006/mxml" 
horizontalAlign="center" 
verticalGap="0"  
horizontalGap="0" 
borderStyle=".5" 
width="100" 
height="150" 
   mx:Metadata  
[Event("thumbnailClicked")] /mx:Metadata 
 
mx:Script 
![CDATA[ 
 
import 
mx.controls.Alert; 
import 
flash.events.Event; 
 
public var __templateIdSel:Number;   
   // Handler function 
   private function 
thumbClicked(templateIdSel:Number):void {  
  
__templateIdSel = templateIdSel;   
 

Re: [flexcoders] Column Reorder

2006-04-18 Thread Tom Ortega



The code below works in that they don't reorder, even though it looks like it's going to.I have a question though while trying to figure this out (cuz I need it too), I saw this: at mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::shiftColumns
() at mx.controls::DataGrid/::columnDraggingMouseUpHandler()Matt, is there any way to access, override or inactiviate those functions?Here's the hack to keep the sort:*?xml version=
1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* creationComplete=init()
 mx:Script  import mx.events.DataGridEvent;  private var origArr:Array = new Array({Name:'Some Product',Price:'$1.44'});  public function init():void
 {  dg1.addEventListener(headerShift,hsFunct);  dg1.addEventListener(focusIn,deFunct); }  public function deFunct(e:Event):void
 {  origArr = dg1.columns; }  public function hsFunct(e:Event):void {  dg1.columns = origArr;  
dg1.invalidateDisplayList(); }/mx:Script mx:DataGrid id=dg1 dataProvider={origArr} //mx:Application
On 4/17/06, Brendan Meutzner [EMAIL PROTECTED]
 wrote:


Thanks Matt.On 4/17/06, Matt Chotin 

[EMAIL PROTECTED] wrote:

















Sorry, I can't see it in B2. In B3
you'll be able to set draggableColumns=false .











From: 


flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 


On Behalf Of Brendan Meutzner
Sent: Monday, April 17, 2006 8:50
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Column
Reorder





Hi All,

Is there a way to disable the ability to change
the display order (horizontal) of datagrid columns?


Brendan








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



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



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



  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 i use timer????????

2006-04-18 Thread Tracy Spratt










Below is a sample app that uses
setInterval() to add a row to a DataGrid every few seconds.

Perhaps it whill help you get started.

Tracy

?xml
version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* 

 creationComplete=startApp()

mx:Script![CDATA[


 var
_aDP:Array

 function
startApp() 

 {


 _aDP
= new Array();

 setInterval(this,do_output,5000);


 }


 function
do_output() { 

 var
mydate = new Date(); 

 _aDP.addItem({day:mydate.getDay(),month:mydate.getMonth(),year:mydate.getFullYear()})


 }


]]/mx:Script

 mx:DataGrid
id=dg dataProvider={_aDP} width=600 

 mx:columns

 mx:Array

 mx:DataGridColumn
columnName=day headerText=Day/

 mx:DataGridColumn
columnName=month headerText=Month/

 mx:DataGridColumn
columnName=year headerText=Year/

 /mx:Array

 /mx:columns

 /mx:DataGrid

/mx:Application











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anil thakur
Sent: Tuesday, April 18, 2006
10:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How i use
timer





Hi Sir

I want to take the date from
database I am using select getDate() for that .But the date on mxml page is
refreshed after 1 or 2 second .There is timer but it gives error 

I am using flex1.5 .Can sir u give me
solution how can I use timer in mxml using my action script.

I am using java/j2ee with macromedia
flex.





Regards
Anil kumar
[EMAIL PROTECTED]
Software Engineer
Vanguard Info-Solutions Limited
78, JIL Tower-II, Sector-18,
Gurgaon-122001 (INDIA)











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



  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.



  








-- "The information in this e-mail is the property of VanGuard Info-Solution Ltd.and may be confidential and privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you receive this message in error, please notify the sender immediately  forward a copy of this e-mail to [EMAIL PROTECTED].An E-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.This e-mail and any attachments has been scanned for the presence of computer viruses.Vanguard accept no responsibility for computer viruses once e-mail has been transmitted" -- 



RE: [flexcoders] Loader control size

2006-04-18 Thread Tracy Spratt
Perhaps this link will help: 
http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-contr
ol/

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jupepsa
Sent: Tuesday, April 18, 2006 4:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loader control size

I use the loader control to load other flex app into the principal swf. 
I put the width and height to 100%. When the app that is loaded on the 
loader has a defined size (i.e 600x300), the loader take the size, but 
when the app has the width and height to 100% the loader control take a 
standard size (504x440) .

Anyone has a clue? 

mx:Loader source=myapp.swf id=ldr height=100% width=100%/

myapp.mxml

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* 
width=100% height=100% layout=vertical
mx:Panel width=100% height=100% title=Modify Line 
layout=horizontal headerHeight=15





--
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: ItemListRenderer Error

2006-04-18 Thread sufibaba



Ca Va Benoit,When I do:model.categoryList = new ArrayCollection(event.result);I get: Implicit coercion of a value with static type 'Object' to a possibly unrelated type 'Array'When I do:  public function onResult(event:ResultEvent):void {  trace("categories = " + event.result)   model.categoryList = ArrayCollection(event.result);   model.applicationState = Properties.STATE_DEFAULT;  }I get: no compiler error and I get the following from the debugger:categories
= [object CategoryVO],[object CategoryVO],[objectCategoryVO],[object
CategoryVO],[object CategoryVO],[objectCategoryVO],[object
CategoryVO],[object CategoryVO]TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.collections.ArrayCollection I have your phoneCairngorm setup running fine but I am getting problems here.Tim--- In flexcoders@yahoogroups.com, "Benoit Hediard" [EMAIL PROTECTED] wrote: Have you tried to put a breakpoint in order to look in the debugger the structure of your result? You might also have a look with ServiceCapture (http://kevinlangdon.com/serviceCapture/). It's a "must have" tool for debugging RPC requests.The result is probably an array. So you might have to do : model.categoryList = new ArrayCollection(event.result);   Benoit Hediard 






--
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: [Flex 2b2] Changing a Chart's dataProvider at runtime?

2006-04-18 Thread flexabledev
Thanks Ely, That really helps!

Re: Dragging a column - Let me try to describe what I am trying to
accomplish:

Imagine a DataGrid with potentially thousands of rows (paged via data
services) and maybe 10 columns. Below the DataGrid is a Column Chart.
 Below the Column Chart is a row of images/buttons, with labels like
by Market, by Title, by Revenue, etc.  Click on a image/button
and the Chart above renders a summary of the data in the DataGrid by
one of it's columns (Market, Title, Revenue, etc.) A user can either
Select rows from the DataGrid or a Column (representing a group of
rows from the DataGrid where Column value equals category of Chart)
and drag them to a shopping cart in order to purchase. For Example: a
user could select individual rows from the DataGrid or select the
Telecom Column on the by Market Chart which would represent all
rows in the DataGrid where the value in the Market column equals
Telecom.   Does this make sense?

Re: New Chart Types - Where would I find someone that I can engage
(pay) to build a new Chart type, or modify an existing renderer?  Not
a big project I presume, and I'm finding that many firms are not
interested in small projects like that...

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

 
 
 Let's see...
 
 1) If you're going to use binding to assign the dataprovider, and you
 want to swap in a different one at runtime, you either need to a) change
 the value of the thing you're binding to, or b) don't use binding. i.e.,
 you could do this:
 
 Script
   [Bindable] public var currentDP:Array;
 
   public function changeDP() {
   currentDP = someOtherDP;
   }
 
 
 
 // Adding a series:
 Function addSeries()
 {
   var newSeries:ColumnSeries = new ColumnSeries();
   newSeries.yField = newYField;
   chartSeries.push(newSeries);
   myChart.series = chartSeries;
 }
 
 /Script
 
 
 ColumnChart id=myChart dataProvider={currentDP}  
   series
  Array id=chartSeries
   ColumnSeries ... /
   /Array
   /series
 /ColumnChart
 
 
 
 I'm not sure exactly what you mean by dragging a column. You mean
 drag-select a group of columns to then drag/drop?  Could be done, but it
 would be non-trivial work. Selection unfortunately didn't make it into
 this release.  But you could extend the ColumnSeries and CartesianChart
 to support it.
 
 
 Additional Types:  Yes, in theory, although nothing specific is planned
 at this point.  PieChart is built on PolarChart, which could serve as
 the basis for any type of Polar Coordinate based chart.  Which means a
 RadarSeries shouldn't be too hard to build on the shipping Flex2 charts
 (think of it as a LineSeries based on a PolarChart).
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of flexabledev
 Sent: Monday, April 17, 2006 9:12 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: [Flex 2b2] Changing a Chart's dataProvider at
 runtime?
 
 Change it to a different one.  (See below) For example:
 
 change dataProvider (via AS3) for summaryChart to
 {model.marketSummary}
 add a ColumnSeries where yField equals mktQTY and categoryField equals
 mktLabel
 
 Thanks Ely!  Also, while I've got you...  
 
 Any suggestion on how to drag a column as a way to select a group of
 data to drop?
 Are there any plans for additional chart types in the future?  Radar
 Chart?
 
 Martin
 
 
   mx:ColumnChart id=summaryChart
 dataProvider={model.scoreSummary}
 showDataTips=true
   width=100% height=45% axisTitleStyle=axisStyle 
   
   mx:horizontalAxis
   mx:CategoryAxis
 dataProvider={model.scoreSummary}
 categoryField=scrLabel /
   /mx:horizontalAxis
   mx:series
   mx:Array
   mx:ColumnSeries displayName=Leads
 yField=scrQTY /
   /mx:Array
   /mx:series
   /mx:ColumnChart
 
 
 --- In flexcoders@yahoogroups.com, Ely Greenfield egreenfi@
 wrote:
 
  
  What do you mean by change the dataProvider? Modify it? Or change to a
 
  different one?
  
  
  And if you can give an example of how you're setting the series in the
 
  first place, I can give help adding a new one.
  
  Ely.
  
   
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of flexabledev
  Sent: Monday, April 17, 2006 6:38 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] [Flex 2b2] Changing a Chart's dataProvider at 
  runtime?
  
  Can someone give me a real quick example (Flex 2 B2 please) on how to 
  change the dataProvider and adding a series to a Chart at runtime?  It
 
  seems to have changed from Flex 1.5  and other than changing the 
  yField of series for an existing dataProvider, I can't find a good 
  example in the docs. Thanks in advance...
  
  
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: 

[flexcoders] Accessing and binding to (and from) Application level vars

2006-04-18 Thread ben.clinkinbeard
Hello, I have a couple of questions relating to Application level
access and binding. First off, why can I not bind to a property using
this syntax even if the var is declared [Bindable]?:

dataProvider={Application.application.arr_selectedPlans}

I get the 'Data binding will not be able to detect assignments to
application' warning.


Secondly, I was also forced to change the following line that was
declared on the app root:

planInfo.debugPanel.getChildByName('config').info.text = xml_config;

to

Application.application.tabNav.getChildByName('planInfo').debugPanel.getChildByName('config').info.text
= xml_config;

I was getting the error 'Access of possibly undefined property 'info'
through a reference with static type 'flash.display:DisplayObject'.

Any help is appreciated.

Thanks,
Ben






--
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] Accessing and binding to (and from) Application level vars

2006-04-18 Thread Roger Gonzalez
 Hello, I have a couple of questions relating to Application level
 access and binding. First off, why can I not bind to a property using
 this syntax even if the var is declared [Bindable]?:
 
 dataProvider={Application.application.arr_selectedPlans}
 
 I get the 'Data binding will not be able to detect assignments to
 application' warning.

I believe this is because its a static, and we don't handle those.

Note: Application.application should be avoided at all costs.

-rg


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

2006-04-18 Thread Geoffrey
I've been trying for the last few days to get RemoteObject to work, 
but with little luck.  I've searched this site, and have tried to 
implement the examples found in developing rich clients with 
macromedia FLEX.  To make matters more confusing, I've also tried to 
implement the command/control/delegate patterns that the above book 
advocates.

Basically, I think the problem is that I'm not seeing the Java 
classes I've created.  Below are code snippets of (what I think) are 
the relevant files.

### My Java classes ###
{TOMCAT-HOME}\webapps\flex\WEB-
INF\classes\com\foo\test\business\SiteMaintenanceDelegate.class
  package com.foo.test.business;
  import com.foo.test.vo.SiteKeywordVO;
  public class SiteMaintenanceDelegate {
public SiteMaintenanceDelegate() {
}
public SiteKeywordVO reviewKeywords() {
SiteKeywordVO keywords = new SiteKeywordVO();
return keywords;
}
  }

{TOMCAT-HOME}\webapps\flex\WEB-
INF\classes\com\foo\test\vo\SiteKeywordVO.class
  package com.foo.test.vo;
  import java.io.Serializable;
  public class SiteKeywordVO implements Serializable {
public String[] keywords;
public void SiteKeywordVO() {
String[] keywords = {first agr, second agr, third agr};
}
  }

### My RO definition  ###
{TOMCAT-HOME}\webapps\flex\services\Services.mxml
  mx:RemoteObject id=siteDataServices
source=com.foo.test.business.SiteMaintenanceDelegate
result=event.call.resultHandler(event)
fault=event.call.faultHandler(event)
showBusyCursor=true
  mx:method name=reviewKeywords/
  /mx:RemoteObject

### My ActionScript VO ###
{TOMCAT-HOME}\webapps\flex\sdm\com\foo\test\vo\SiteKeywordVO.as
  class com.foo.test.vo.SiteKeywordVO {
public var keywords:Array;
public var _remoteClass;
public function SiteKeywordVO() {
 _remoteClass=com.foo.test.vo.SiteKeywordVO;
}
  }

### My testing mxml file ###
{TOMCAT-HOME}\webapps\flex\sdm\sdmUnitTest.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns:sdm=sdm.*
xmlns:services=services.*
sdm:SiteDataMaint/
services:Services id=myServices/
/mx:Application

### My SiteDataMaint component ###
{TOMCAT-HOME}\webapps\flex\sdm\SiteDataMaint.mxml
  ... //just the script part
  mx:Script
![CDATA[
import sdm.business.*;
import sdm.commands.*;
import sdm.control.*;
import com.foo.test.vo.*;
import mx.controls.Alert;
public function initApp() {
 var controller = new SDMController;
}
]]
  /mx:Script
  ...

The SDMController class seems to be working correctly.

### My Delegate class ###
{TOMCAT-HOME}\webapps\flex\sdm\business\SDMDelegate.as
  ... //just the constructor
  public function SDMDelegate(responder:Responder) {
this.service = 
mx.core.Application.application.myServices.siteDataServices;
Dumper.dump(service);
this.responder = responder;
  }

I think this is where the problem is.  When I dump 'service' (via 
Flex Trace Panel), I get 'undefined'.

I really have no idea where to go from here.  I've tried turning on 
all debug stuff, used NetConnectionDebugger, use Flex Trace Panel... 
nothing on all accounts.

Thanks for any suggestions you may have!
Geoff





--
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] Streaming Audio / Cache / Question from a Radio Station Owner

2006-04-18 Thread JEpoch
Hello,
I got referred to this list by my friend at Macromedia to ask a
question I have about streaming audio in Flash and the upcoming Flex
update.

I run a radio station called Proton Radio (www.protonradio.com) and
currently we broadcast in Shoutcast and Icecast to our users. We'd
like to add the ability to stream in Flash. 

We're able to do so with Icecast, and thats not my question. My
question comes from our desire to offer our various shows on demand to
our users. We're succefully doing this now by opening an authenticated
mp3 stream to the user. I want to also do this in Flash, but I'm
concerned about just serving an mp3 as-is-- I'd like it to actually
stream.

If we serve an mp3 normally in Flash, Flash downloads the whole file
and saves it into the cache. As our Shows are DJmixes and tend to be
over an hour long, I'd prefer if we did NOT do this, and instead,
provided an actual stream of the audio. Can Flash do this on its own,
or is Media Server needed?

Maybe I'm asking the wrong questions, and as I'm not a Flash developer
myself  I may be off base. I would appreciate any help or guidance,
thanks for your time.  I'm very excited about the possibilities Flex
is going to offer, and want to be able to provide a Flex player for
our site.

Jason Wohlstadter
Radio  Label Manager
www.protonradio.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: Accessing and binding to (and from) Application level vars

2006-04-18 Thread ben.clinkinbeard
What is the proper way to access application-level vars and methods then?

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

  Hello, I have a couple of questions relating to Application level
  access and binding. First off, why can I not bind to a property using
  this syntax even if the var is declared [Bindable]?:
  
  dataProvider={Application.application.arr_selectedPlans}
  
  I get the 'Data binding will not be able to detect assignments to
  application' warning.
 
 I believe this is because its a static, and we don't handle those.
 
 Note: Application.application should be avoided at all costs.
 
 -rg







--
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: [Flex 2b2] Changing a Chart's dataProvider at runtime?

2006-04-18 Thread Ely Greenfield



The devil's in the details, but here'so one way to get what you're
looking for

1) write a custom renderer for your column series.
2) the renderer should add a mouseDown handler to itself. On mousedown,
it should redraw itself with a different color (to give click feedback)
and do boilerplate mouse tracking to reset when the mouse is released.
3) on mouseDown, the renderer should add a mouseMove handler to itself.
When the mouse has moved some minimum number of pixels, it should call a
method to trigger a drag begin
4) in that method it calls the DragManager to initiate a drag operation.
It passes its item (this.chartItem.item) as the data being dragged, and
itself  originating object. That would get a drag image that matches the
column.



Regarding writing a custom renderer...there's probably not a lot of
people out there who have experience with this at this point.  You could
try Macromedia consulting..they've done more custom chart work that
anyone at this point...Or there's a bunch of people who have enough
experience with flex that writing this level of custom work shouldn't be
too difficult, with enough questions posted to flexcoders ;)


Ely.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexabledev
Sent: Tuesday, April 18, 2006 11:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: [Flex 2b2] Changing a Chart's dataProvider at
runtime?

Thanks Ely, That really helps!

Re: Dragging a column - Let me try to describe what I am trying to
accomplish:

Imagine a DataGrid with potentially thousands of rows (paged via data
services) and maybe 10 columns. Below the DataGrid is a Column Chart.
 Below the Column Chart is a row of images/buttons, with labels like by
Market, by Title, by Revenue, etc.  Click on a image/button and the
Chart above renders a summary of the data in the DataGrid by one of it's
columns (Market, Title, Revenue, etc.) A user can either Select rows
from the DataGrid or a Column (representing a group of rows from the
DataGrid where Column value equals category of Chart) and drag them to a
shopping cart in order to purchase. For Example: a user could select
individual rows from the DataGrid or select the Telecom Column on the
by Market Chart which would represent all rows in the DataGrid where
the value in the Market column equals
Telecom.   Does this make sense?

Re: New Chart Types - Where would I find someone that I can engage
(pay) to build a new Chart type, or modify an existing renderer?  Not a
big project I presume, and I'm finding that many firms are not
interested in small projects like that...

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

 
 
 Let's see...
 
 1) If you're going to use binding to assign the dataprovider, and you 
 want to swap in a different one at runtime, you either need to a) 
 change the value of the thing you're binding to, or b) don't use 
 binding. i.e., you could do this:
 
 Script
   [Bindable] public var currentDP:Array;
 
   public function changeDP() {
   currentDP = someOtherDP;
   }
 
 
 
 // Adding a series:
 Function addSeries()
 {
   var newSeries:ColumnSeries = new ColumnSeries();
   newSeries.yField = newYField;
   chartSeries.push(newSeries);
   myChart.series = chartSeries;
 }
 
 /Script
 
 
 ColumnChart id=myChart dataProvider={currentDP}  
   series
  Array id=chartSeries
   ColumnSeries ... /
   /Array
   /series
 /ColumnChart
 
 
 
 I'm not sure exactly what you mean by dragging a column. You mean 
 drag-select a group of columns to then drag/drop?  Could be done, but 
 it would be non-trivial work. Selection unfortunately didn't make it 
 into this release.  But you could extend the ColumnSeries and 
 CartesianChart to support it.
 
 
 Additional Types:  Yes, in theory, although nothing specific is 
 planned at this point.  PieChart is built on PolarChart, which could 
 serve as the basis for any type of Polar Coordinate based chart.  
 Which means a RadarSeries shouldn't be too hard to build on the 
 shipping Flex2 charts (think of it as a LineSeries based on a
PolarChart).
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 On Behalf Of flexabledev
 Sent: Monday, April 17, 2006 9:12 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: [Flex 2b2] Changing a Chart's dataProvider 
 at runtime?
 
 Change it to a different one.  (See below) For example:
 
 change dataProvider (via AS3) for summaryChart to 
 {model.marketSummary}
 add a ColumnSeries where yField equals mktQTY and categoryField 
 equals mktLabel
 
 Thanks Ely!  Also, while I've got you...  
 
 Any suggestion on how to drag a column as a way to select a group of 
 data to drop?
 Are there any plans for additional chart types in the future?  Radar 
 Chart?
 
 Martin
 
 
   mx:ColumnChart id=summaryChart
 dataProvider={model.scoreSummary}
 showDataTips=true
  

Re: [flexcoders] Streaming Audio / Cache / Question from a Radio Station Owner

2006-04-18 Thread JesterXL
I've managed to get Flash Player 6 with some help with PHP (massaging icy 
headers for various browsers)  to connect to streaming Icecast streams. 
Since it's a true stream it doesn't download in cache.  The problem is there 
isn't much control on the mp3 stream via the Sound object in Flash Player 6, 
7, and 8.  Thus, eventually you run out of RAM since Flash doesn't dispose 
of the stream incrementally like WinAMP and other media players do.

Hopefully someone else can give a more thorough answer regarding connecting 
the new binary socket to a ByteArray.  This would allow you to have a Flash 
Player 8.5 SWF connect to your server have it's own ability to manage the 
sound load.  What I don't know is if it's possible to connect a binary 
Socket's stream to a Sound object in Flash Player 8.5.

Finally, Flash Media Server (formerly Flash Communication Server) has the 
ability to do true streaming to the Flash Player in a supported, and 
scaleable fashion.  Originally created for streaming FLV's for enterprise 
level video solutions rivaling that of Real  Windows Media Server, it also 
supports MP3's.  This would fit well with your existing, previously recorded 
mixes because you can stream it to the client from a Flashcom server, and 
it's never cached.

It's been rumored there was going to be an FLV to mp3 conversion tool up on 
the labs, but no official dates were mentioned.  The reason this is relevant 
is because you could then more easily do live broadcasts via Flashcom (FMS / 
Flash Media Server, Flashcom is the slang term) and then conver the recorded 
FLV's to mp3 via a server tool.  If you are recording  publishing live, you 
wouldn't need this.

I know this isn't exactly sounding like it's itegrated well with ShoutCast, 
but I'm sure when the above tool is uploaded to the labs 
(labs.macromedia.com), then it might possibly do more or integrate... who 
knows.  You could also head on over to the Flashcom list since some of the 
Flashcom developers are actually there and ask them: chattyfig.figleaf.com, 
join Flashcom.

Hope that helps!


- Original Message - 
From: JEpoch [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, April 18, 2006 3:11 PM
Subject: [flexcoders] Streaming Audio / Cache / Question from a Radio 
Station Owner


Hello,
I got referred to this list by my friend at Macromedia to ask a
question I have about streaming audio in Flash and the upcoming Flex
update.

I run a radio station called Proton Radio (www.protonradio.com) and
currently we broadcast in Shoutcast and Icecast to our users. We'd
like to add the ability to stream in Flash.

We're able to do so with Icecast, and thats not my question. My
question comes from our desire to offer our various shows on demand to
our users. We're succefully doing this now by opening an authenticated
mp3 stream to the user. I want to also do this in Flash, but I'm
concerned about just serving an mp3 as-is-- I'd like it to actually
stream.

If we serve an mp3 normally in Flash, Flash downloads the whole file
and saves it into the cache. As our Shows are DJmixes and tend to be
over an hour long, I'd prefer if we did NOT do this, and instead,
provided an actual stream of the audio. Can Flash do this on its own,
or is Media Server needed?

Maybe I'm asking the wrong questions, and as I'm not a Flash developer
myself  I may be off base. I would appreciate any help or guidance,
thanks for your time.  I'm very excited about the possibilities Flex
is going to offer, and want to be able to provide a Flex player for
our site.

Jason Wohlstadter
Radio  Label Manager
www.protonradio.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: [flexcoders] Re: ItemListRenderer Error

2006-04-18 Thread Simeon Bateman



for the first part of your problem I think you need to cast the results as an arraychangemodel.categoryList = new ArrayCollection(event.result);tomodel.categoryList
 = new ArrayCollection(event.result as Array);I have something similiar in my app and this is how I get around the implicit type cast.simeonOn 4/18/06, 
sufibaba [EMAIL PROTECTED] wrote:



Ca Va Benoit,When I do:model.categoryList = new ArrayCollection(event.result);
I get: Implicit coercion of a value with static type 'Object' to a possibly unrelated type 'Array'When I do:  public function onResult(event:ResultEvent):void {
  trace(categories =  + event.result)   model.categoryList = ArrayCollection(event.result);
   model.applicationState = Properties.STATE_DEFAULT;  }I get: no compiler error and I get the following from the debugger:
categories
= [object CategoryVO],[object CategoryVO],[objectCategoryVO],[object
CategoryVO],[object CategoryVO],[objectCategoryVO],[object
CategoryVO],[object CategoryVO]TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.collections.ArrayCollection I have your phoneCairngorm setup running fine but I am getting problems here.
Tim--- In flexcoders@yahoogroups.com
, Benoit Hediard [EMAIL PROTECTED] wrote: Have you tried to put a breakpoint in order to look in the debugger the structure of your result? You might also have a look with ServiceCapture
 (http://kevinlangdon.com/serviceCapture/). It's a must have tool for debugging RPC requests. 
   The result is probably an array. So you might have to do : model.categoryList = new ArrayCollection(event.result);   Benoit Hediard 






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



  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] Combobox selected item

2006-04-18 Thread Jeremy Rottman
In my app, the admins can go from add record to edit record. When they
enter the edit record, the comobo boxes should be set to the selected
item that is stored in the database. How ever I cant get this to work.
Here is the code I am trying. The text inputs work fine, it is just the
comboboxes that I cant get populated with the database results.

 // POPLULATE EDIT SALE INPUTS
 function ConvertModPropdisplayDetailSaleQryResult (
result){
 parentApplication.etss.fileNum.text =
result.fld_fileNum;
 parentApplication.etss.fld_mlsNum.text =
result.fld_mlsNum;
 parentApplication.etss.fld_propNum.text =
result.fld_propNum;
 parentApplication.etss.fld_propStreet.text =
result.fld_propStreet;
 parentApplication.etss.fld_propDir.selectedItem =
result.fld_propDir;

parentApplication.etss.fld_propStreetDesignator.selectedItem =
result.fld_propStreetDesignator;

parentApplication.etss.fld_propDirSuffix.selectedItem =
result.fld_propDirSuffix;
 parentApplication.etss.fld_propCity.text =
result.fld_propCity;
 parentApplication.etss.fld_propState.text =
result.fld_propState;
 parentApplication.etss.fld_propZip.text =
result.fld_propZip;
 parentApplication.etss.fld_propContractDate.text =
result.fld_propContractDate;
 parentApplication.etss.fld_propCoe.text =
result.fld_propCoe;
 parentApplication.etss.fld_propUnitType.selectedItem
= result.fld_propUnitType;
 parentApplication.etss.fld_propUnitNum.text =
result.fld_propUnitNum;
 parentApplication.etss.fld_propPrice.text =
result.fld_propPrice;
 }






--
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: ItemListRenderer Error

2006-04-18 Thread sufibaba

Simeon,

You are a LEGEND... Been wacking my head on this.  That did the 
trick.

BTW, why is it that it one has to do a double cast.  In 
PhoneCairngorm from Benoit, the compiler didn't need this extra 
casting.  Is this some sort of bug do you think?


Tim

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

 for the first part of your problem I think you need to cast the 
results as
 an array
 
 change
 model.categoryList = new ArrayCollection(event.result);
 to
 model.categoryList = new ArrayCollection(event.result as Array);
 
 I have something similiar in my app and this is how I get around 
the
 implicit type cast.
 
 simeon
 
 





--
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] apache ant build.xml

2006-04-18 Thread arieltools
Is there a way to do a build with an ant task?

The manual just says Content TBW.

I infer you can select a new Builder on the project options, but can
not find anyone who has done it...

It is possible?

Some ideas?

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] Re: Accessing and binding to (and from) Application level vars

2006-04-18 Thread Roger Gonzalez
It depends.

Well, if you're in the main app, its just this, obviously.  But if
you're in a child component, you should build the application to pass
down a handle to the application class instance; make a var on the
component of type Application, initialized from outside.

I meant to elaborate a bit more in my previous message.
Application.application is ok for small toy apps, but it doesn't work
well once your app scales.  In general, relative paths of the sort you
were building will lock you in to a very rigid structure that is hard to
change.

Try to figure out the minimal data that a particular control needs to
attach to, then pass a reference to just that piece.

Example:

Application a
  MyController c
Button b
Slider s
  MyDisplay d
Label l
Grid g

Bad: bind Application.application.d.l.text into b.  You're baking
knowledge of internals of MyDisplay outside, it will make things hard to
rewrite.  Using Application.application will also probably break if your
app is dynamically loaded by another app.

Better: make have a getLabel() call on MyDisplay, hand that label to
MyController.

More Betterer: Make MyDisplay implement an interface that has a
setDisplayText method, and have code in a hand an instance of the
display interface to c.

-rg


 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
 Sent: Tuesday, April 18, 2006 12:16 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Accessing and binding to (and from) 
 Application level vars
 
 What is the proper way to access application-level vars and 
 methods then?
 
 --- In flexcoders@yahoogroups.com, Roger Gonzalez 
 [EMAIL PROTECTED] wrote:
 
   Hello, I have a couple of questions relating to Application level
   access and binding. First off, why can I not bind to a 
 property using
   this syntax even if the var is declared [Bindable]?:
   
   dataProvider={Application.application.arr_selectedPlans}
   
   I get the 'Data binding will not be able to detect assignments to
   application' warning.
  
  I believe this is because its a static, and we don't handle those.
  
  Note: Application.application should be avoided at all costs.
  
  -rg
 
 
 
 
 
 
 
 --
 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] mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService

2006-04-18 Thread ben.clinkinbeard
Why are these separate classes? More importantly, why does the mxml
version have capabilities that its super class does not? I like the
showBusyCursor functionality, but prefer to code in AS when possible.
Am I correct in assuming that these two things are mutually exclusive?

Thanks,
Ben





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

2006-04-18 Thread Peter Farland
Perhaps your SiteKeywordVO is never linked into the SWF because you
never create a dependency on the class name (as mxmlc will optimize and
remove unreferenced class definitions). An import statement is not
enough to create a dependency.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey
Sent: Tuesday, April 18, 2006 3:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoteObject Issue

I've been trying for the last few days to get RemoteObject to work, but
with little luck.  I've searched this site, and have tried to implement
the examples found in developing rich clients with macromedia FLEX.
To make matters more confusing, I've also tried to implement the
command/control/delegate patterns that the above book advocates.

Basically, I think the problem is that I'm not seeing the Java classes
I've created.  Below are code snippets of (what I think) are the
relevant files.

### My Java classes ###
{TOMCAT-HOME}\webapps\flex\WEB-
INF\classes\com\foo\test\business\SiteMaintenanceDelegate.class
  package com.foo.test.business;
  import com.foo.test.vo.SiteKeywordVO;
  public class SiteMaintenanceDelegate {
public SiteMaintenanceDelegate() {
}
public SiteKeywordVO reviewKeywords() {
SiteKeywordVO keywords = new SiteKeywordVO();
return keywords;
}
  }

{TOMCAT-HOME}\webapps\flex\WEB-
INF\classes\com\foo\test\vo\SiteKeywordVO.class
  package com.foo.test.vo;
  import java.io.Serializable;
  public class SiteKeywordVO implements Serializable {
public String[] keywords;
public void SiteKeywordVO() {
String[] keywords = {first agr, second agr, third agr};
}
  }

### My RO definition  ###
{TOMCAT-HOME}\webapps\flex\services\Services.mxml
  mx:RemoteObject id=siteDataServices
source=com.foo.test.business.SiteMaintenanceDelegate
result=event.call.resultHandler(event)
fault=event.call.faultHandler(event)
showBusyCursor=true
  mx:method name=reviewKeywords/
  /mx:RemoteObject

### My ActionScript VO ###
{TOMCAT-HOME}\webapps\flex\sdm\com\foo\test\vo\SiteKeywordVO.as
  class com.foo.test.vo.SiteKeywordVO {
public var keywords:Array;
public var _remoteClass;
public function SiteKeywordVO() {
 _remoteClass=com.foo.test.vo.SiteKeywordVO;
}
  }

### My testing mxml file ###
{TOMCAT-HOME}\webapps\flex\sdm\sdmUnitTest.mxml
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
xmlns:sdm=sdm.*
xmlns:services=services.*
sdm:SiteDataMaint/
services:Services id=myServices/
/mx:Application

### My SiteDataMaint component ###
{TOMCAT-HOME}\webapps\flex\sdm\SiteDataMaint.mxml
  ... //just the script part
  mx:Script
![CDATA[
import sdm.business.*;
import sdm.commands.*;
import sdm.control.*;
import com.foo.test.vo.*;
import mx.controls.Alert;
public function initApp() {
 var controller = new SDMController;
}
]]
  /mx:Script
  ...

The SDMController class seems to be working correctly.

### My Delegate class ###
{TOMCAT-HOME}\webapps\flex\sdm\business\SDMDelegate.as
  ... //just the constructor
  public function SDMDelegate(responder:Responder) {
this.service =
mx.core.Application.application.myServices.siteDataServices;
Dumper.dump(service);
this.responder = responder;
  }

I think this is where the problem is.  When I dump 'service' (via Flex
Trace Panel), I get 'undefined'.

I really have no idea where to go from here.  I've tried turning on all
debug stuff, used NetConnectionDebugger, use Flex Trace Panel... 
nothing on all accounts.

Thanks for any suggestions you may have!
Geoff





--
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] mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService

2006-04-18 Thread Peter Farland
(Note that this is Flex 2 Beta)

We didn't want the parent mx.rpc.soap.WebService to introduce extraneous
dependencies on other parts of the Application framework. So any
functionality that does introduce such a dependency (such as busy
cursors or bubbling of events to top level application handlers) must go
in this subclass.

You can use the mx.rpc.soap.mxml.WebService API in ActionScript too, you
just have to call
 
public function initialized(document : Object, id : String)
:void 

(see the ASDoc for this class for more detail).

Pete
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, April 18, 2006 4:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx.rpc.soap.mxml.WebService VS
mx.rpc.soap.WebService

Why are these separate classes? More importantly, why does the mxml
version have capabilities that its super class does not? I like the
showBusyCursor functionality, but prefer to code in AS when possible.
Am I correct in assuming that these two things are mutually exclusive?

Thanks,
Ben





--
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: Accessing and binding to (and from) Application level vars

2006-04-18 Thread Darin Kohles
I generally pass a reference to the parent or to the Application scope
in my constructor, depending on what scope I'm interested in having
access to within my custome component (in this cass class instances).
The code generally looks like this:

// where the instance is constructed could be a sub class could be at
application level
var myInst = new myClass(this);

// the class definition
public class myClass{
  private var owner:Object;
  public function myClass(obj:Object){
owner = obj;
  }
}

You can daisy chain this reference to instances used within this
class. You can also easily extend any class to incorporate this
method. The above code gives me access to all peer instances, and data
value that 'live' at the 'owner' level.

Good Luck

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

 It depends.
 
 Well, if you're in the main app, its just this, obviously.  But if
 you're in a child component, you should build the application to pass
 down a handle to the application class instance; make a var on the
 component of type Application, initialized from outside.
 
 I meant to elaborate a bit more in my previous message.
 Application.application is ok for small toy apps, but it doesn't work
 well once your app scales.  In general, relative paths of the sort you
 were building will lock you in to a very rigid structure that is hard to
 change.
 
 Try to figure out the minimal data that a particular control needs to
 attach to, then pass a reference to just that piece.
 
 Example:
 
 Application a
   MyController c
 Button b
 Slider s
   MyDisplay d
 Label l
 Grid g
 
 Bad: bind Application.application.d.l.text into b.  You're baking
 knowledge of internals of MyDisplay outside, it will make things hard to
 rewrite.  Using Application.application will also probably break if your
 app is dynamically loaded by another app.
 
 Better: make have a getLabel() call on MyDisplay, hand that label to
 MyController.
 
 More Betterer: Make MyDisplay implement an interface that has a
 setDisplayText method, and have code in a hand an instance of the
 display interface to c.
 
 -rg
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
  Sent: Tuesday, April 18, 2006 12:16 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Accessing and binding to (and from) 
  Application level vars
  
  What is the proper way to access application-level vars and 
  methods then?
  
  --- In flexcoders@yahoogroups.com, Roger Gonzalez 
  rgonzale@ wrote:
  
Hello, I have a couple of questions relating to Application level
access and binding. First off, why can I not bind to a 
  property using
this syntax even if the var is declared [Bindable]?:

dataProvider={Application.application.arr_selectedPlans}

I get the 'Data binding will not be able to detect assignments to
application' warning.
   
   I believe this is because its a static, and we don't handle those.
   
   Note: Application.application should be avoided at all costs.
   
   -rg
  
  
  
  
  
  
  
  --
  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: RemoteObject Issue

2006-04-18 Thread Doug Lowder
My guess would be that SDMDelegate's constructor can't access your
siteDataServices RemoteObject through mx.core.Application.application.
 Try this.service = parentApplication.myServices.siteDataServices
instead, or pass the service as a parameter to the constructor as you
do with the responder.

Doug

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

 I've been trying for the last few days to get RemoteObject to work, 
 but with little luck.  I've searched this site, and have tried to 
 implement the examples found in developing rich clients with 
 macromedia FLEX.  To make matters more confusing, I've also tried to 
 implement the command/control/delegate patterns that the above book 
 advocates.
 
 Basically, I think the problem is that I'm not seeing the Java 
 classes I've created.  Below are code snippets of (what I think) are 
 the relevant files.
 
 ### My Java classes ###
 {TOMCAT-HOME}\webapps\flex\WEB-
 INF\classes\com\foo\test\business\SiteMaintenanceDelegate.class
   package com.foo.test.business;
   import com.foo.test.vo.SiteKeywordVO;
   public class SiteMaintenanceDelegate {
   public SiteMaintenanceDelegate() {
   }
   public SiteKeywordVO reviewKeywords() {
   SiteKeywordVO keywords = new SiteKeywordVO();
   return keywords;
   }
   }
 
 {TOMCAT-HOME}\webapps\flex\WEB-
 INF\classes\com\foo\test\vo\SiteKeywordVO.class
   package com.foo.test.vo;
   import java.io.Serializable;
   public class SiteKeywordVO implements Serializable {
 public String[] keywords;
   public void SiteKeywordVO() {
 String[] keywords = {first agr, second agr, third agr};
   }
   }
 
 ### My RO definition  ###
 {TOMCAT-HOME}\webapps\flex\services\Services.mxml
   mx:RemoteObject id=siteDataServices  
   source=com.foo.test.business.SiteMaintenanceDelegate
   result=event.call.resultHandler(event)
   fault=event.call.faultHandler(event)
   showBusyCursor=true
 mx:method name=reviewKeywords/
   /mx:RemoteObject
 
 ### My ActionScript VO ###
 {TOMCAT-HOME}\webapps\flex\sdm\com\foo\test\vo\SiteKeywordVO.as
   class com.foo.test.vo.SiteKeywordVO {
   public var keywords:Array;
   public var _remoteClass;
   public function SiteKeywordVO() {
_remoteClass=com.foo.test.vo.SiteKeywordVO;
   }
   }
 
 ### My testing mxml file ###
 {TOMCAT-HOME}\webapps\flex\sdm\sdmUnitTest.mxml
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
   xmlns:sdm=sdm.*
   xmlns:services=services.*
   sdm:SiteDataMaint/
   services:Services id=myServices/
 /mx:Application
 
 ### My SiteDataMaint component ###
 {TOMCAT-HOME}\webapps\flex\sdm\SiteDataMaint.mxml
   ... //just the script part
   mx:Script
   ![CDATA[
   import sdm.business.*;
   import sdm.commands.*;
   import sdm.control.*;
   import com.foo.test.vo.*;
   import mx.controls.Alert;
   public function initApp() {
var controller = new SDMController;
   }
   ]]
   /mx:Script
   ...
 
 The SDMController class seems to be working correctly.
 
 ### My Delegate class ###
 {TOMCAT-HOME}\webapps\flex\sdm\business\SDMDelegate.as
   ... //just the constructor
   public function SDMDelegate(responder:Responder) {
   this.service = 
 mx.core.Application.application.myServices.siteDataServices;
   Dumper.dump(service);
   this.responder = responder;
   }
 
 I think this is where the problem is.  When I dump 'service' (via 
 Flex Trace Panel), I get 'undefined'.
 
 I really have no idea where to go from here.  I've tried turning on 
 all debug stuff, used NetConnectionDebugger, use Flex Trace Panel... 
 nothing on all accounts.
 
 Thanks for any suggestions you may have!
 Geoff








--
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: F2B2: Deploying sample apps

2006-04-18 Thread arieltools
Yes, this is a tipical error out of the security sandbox restrictions.

Read more on the livedocs or your help.

Also I were wondering HOW can I deploy to the local server and load
the  server page (i.e: ¡http://localhost/whatever') instead of
'd:\flexAppRoot\etc'

Cheers

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

 Here's the error I've seen internally, with the site name and domain
removed
 to protect the innocent.  =)
 
 Error #2044: Unhandled SecurityErrorEvent: text=Error #2047: Security
 sandbox violation: 'LocalConnection.send': 'corp.domain.com' may not
 access 'http://site.corp.domain.com/somedir/wgc.swf'.
 
 On 4/17/06, Matt Chotin [EMAIL PROTECTED] wrote:
 
   What are the errors you see?  There shouldn't be much of a trick, I
  posted those samples to our hosted site without changing any settings.
 
 
   --
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *Tom Ortega
  *Sent:* Monday, April 17, 2006 8:53 AM
  *To:* flexcoders
  *Subject:* [flexcoders] F2B2: Deploying sample apps
 
 
 
  Is there any tricks to deploying FlexBuilder2 Beta2 apps?  I've
deployed
  some internally, and I get an error message popup when I deploy
the htmal
  and swf files from the bin directory to an internal web server and
try to
  browse it.
 
  I was thinking of putting up some sample stuff in the coming weeks
on a
  personal web server, but will that not work? Most of the examples
I see on
  the web run off the same labs server, so I'm guessing we can't
just post our
  own examples on the web?
 
  Hopefully someone can correct me and prove me wrong!  =)
 
  Thanks,
  Tom
 
 
 
 
   --
  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
 
 
 -  Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders
 on the web.
 
 -  To unsubscribe from this group, send an email to:
 
[EMAIL PROTECTED][EMAIL PROTECTED]
 
 -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service 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 
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: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService

2006-04-18 Thread Tim Hoff
Ben,

You can use CursorManager to control the busy cursor.  Set before the 
call and remove onResult and onFault.  I have these controlled by a 
boolean, in case I wan't to make a call without notiying the user. 

import mx.managers.CursorManager;

CursorManager.setBusyCursor();
CursorManager.removeBusyCursor();

- Tim Hoff

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

 Why are these separate classes? More importantly, why does the mxml
 version have capabilities that its super class does not? I like the
 showBusyCursor functionality, but prefer to code in AS when possible.
 Am I correct in assuming that these two things are mutually 
exclusive?
 
 Thanks,
 Ben







--
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] Question about Flex Beta

2006-04-18 Thread nostra72





How easy is it to use Flex Beta to make an application where you have a 
password that is secure from being seen, you know to store information?






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





  




  
  
  YAHOO! GROUPS LINKS



  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: F2B2: Deploying sample apps

2006-04-18 Thread Tom Ortega



I just copy the .html and .swf files from my /bin directory and post them to the web server.That seems to work for me, minus the sandbox warnings. =)-TomOn 4/18/06, 
arieltools [EMAIL PROTECTED] wrote:



Yes, this is a tipical error out of the security sandbox restrictions.

Read more on the livedocs or your help.

Also I were wondering HOW can I deploy to the local server and load
the server page (i.e: ¡http://localhost/whatever') instead of
'd:\flexAppRoot\etc'

Cheers

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

 Here's the error I've seen internally, with the site name and domain
removed
 to protect the innocent. =)
 
 Error #2044: Unhandled SecurityErrorEvent: text=Error #2047: Security
 sandbox violation: 'LocalConnection.send': 'corp.domain.com' may not
 access 'http://site.corp.domain.com/somedir/wgc.swf'.
 
 On 4/17/06, Matt Chotin [EMAIL PROTECTED] wrote:
 
  What are the errors you see? There shouldn't be much of a trick, I
  posted those samples to our hosted site without changing any settings.
 
 
  --
 
  *From:* flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] *On
  Behalf Of *Tom Ortega
  *Sent:* Monday, April 17, 2006 8:53 AM
  *To:* flexcoders
  *Subject:* [flexcoders] F2B2: Deploying sample apps
 
 
 
  Is there any tricks to deploying FlexBuilder2 Beta2 apps? I've
deployed
  some internally, and I get an error message popup when I deploy
the htmal
  and swf files from the bin directory to an internal web server and
try to
  browse it.
 
  I was thinking of putting up some sample stuff in the coming weeks
on a
  personal web server, but will that not work? Most of the examples
I see on
  the web run off the same labs server, so I'm guessing we can't
just post our
  own examples on the web?
 
  Hopefully someone can correct me and prove me wrong! =)
 
  Thanks,
  Tom
 
 
 
 
  --
  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
 
 
  - Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders

  on the web.
 
  - To unsubscribe from this group, send an email to:
  
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service 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






  




  
  
  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 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: F2B2: Deploying sample apps

2006-04-18 Thread Oriol Gual



You can go to Project-Properties-Flex Build Path and here change the output folder to your local web server folder, and then, Run-Run...-default config(or create another one), uncheck Use defaults button and change the location to 
http://localhost/whatever/FlexIsCool.html or your location :-D Oriol.2006/4/18, Tom Ortega 
[EMAIL PROTECTED]:


I just copy the .html and .swf files from my /bin directory and post them to the web server.That seems to work for me, minus the sandbox warnings. =)-Tom
On 4/18/06, 
arieltools [EMAIL PROTECTED] wrote:




Yes, this is a tipical error out of the security sandbox restrictions.

Read more on the livedocs or your help.

Also I were wondering HOW can I deploy to the local server and load
the server page (i.e: ¡http://localhost/whatever') instead of
'd:\flexAppRoot\etc'

Cheers

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

 Here's the error I've seen internally, with the site name and domain
removed
 to protect the innocent. =)
 
 Error #2044: Unhandled SecurityErrorEvent: text=Error #2047: Security
 sandbox violation: 'LocalConnection.send': 'corp.domain.com' may not
 access 'http://site.corp.domain.com/somedir/wgc.swf'.
 
 On 4/17/06, Matt Chotin [EMAIL PROTECTED] wrote:
 
  What are the errors you see? There shouldn't be much of a trick, I
  posted those samples to our hosted site without changing any settings.
 
 
  --
 
  *From:* flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] *On
  Behalf Of *Tom Ortega
  *Sent:* Monday, April 17, 2006 8:53 AM
  *To:* flexcoders
  *Subject:* [flexcoders] F2B2: Deploying sample apps
 
 
 
  Is there any tricks to deploying FlexBuilder2 Beta2 apps? I've
deployed
  some internally, and I get an error message popup when I deploy
the htmal
  and swf files from the bin directory to an internal web server and
try to
  browse it.
 
  I was thinking of putting up some sample stuff in the coming weeks
on a
  personal web server, but will that not work? Most of the examples
I see on
  the web run off the same labs server, so I'm guessing we can't
just post our
  own examples on the web?
 
  Hopefully someone can correct me and prove me wrong! =)
 
  Thanks,
  Tom
 
 
 
 
  --
  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
 
 
  - Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders


  on the web.
 
  - To unsubscribe from this group, send an email to:
  
[EMAIL PROTECTED]

[EMAIL PROTECTED]
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service 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







  




  
  
  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 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 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: Combobox selected item

2006-04-18 Thread Jeremy Rottman
My combo box is populated by a static array. IE
public var dirPrefix: Array = [ {label: , data: },{label:N,
data:N}, {label:S, data:S}, {label:E, data:E}, {label:W,
data:W}, {label:NE, data:NE},
{label:SE, data:SE}, {label:NW, data:NW}, {label:SW,
data:SW} ];

I have tried using selectedLabel, but FB gives me an error saying
property is read-only. 

Any idea on how I can dig into the selectedItem and auto select the
returned object.

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

 That's cuz you're using selectedItem, which returns an object.  Use
 selectedLabel if your comboBox just contains simple values.
 
 Otherwise, you'll have to dig into the selectedItem object to get
what you
 want.
 
 -Tom
 
 On 4/18/06, Jeremy Rottman [EMAIL PROTECTED] wrote:
 
   In my app, the admins can go from add record to edit record. When
they
  enter the edit record, the comobo boxes should be set to the selected
  item that is stored in the database. How ever I cant get this to work.
  Here is the code I am trying. The text inputs work fine, it is
just the
  comboboxes that I cant get populated with the database results.
 
   // POPLULATE EDIT SALE INPUTS
   function ConvertModPropdisplayDetailSaleQryResult (
  result){
   parentApplication.etss.fileNum.text =
  result.fld_fileNum;
   parentApplication.etss.fld_mlsNum.text =
  result.fld_mlsNum;
   parentApplication.etss.fld_propNum.text =
  result.fld_propNum;
   parentApplication.etss.fld_propStreet.text =
  result.fld_propStreet;
   parentApplication.etss.fld_propDir.selectedItem =
  result.fld_propDir;
 
  parentApplication.etss.fld_propStreetDesignator.selectedItem =
  result.fld_propStreetDesignator;
 
  parentApplication.etss.fld_propDirSuffix.selectedItem =
  result.fld_propDirSuffix;
   parentApplication.etss.fld_propCity.text =
  result.fld_propCity;
   parentApplication.etss.fld_propState.text =
  result.fld_propState;
   parentApplication.etss.fld_propZip.text =
  result.fld_propZip;
  
parentApplication.etss.fld_propContractDate.text =
  result.fld_propContractDate;
   parentApplication.etss.fld_propCoe.text =
  result.fld_propCoe;
  
parentApplication.etss.fld_propUnitType.selectedItem
  = result.fld_propUnitType;
   parentApplication.etss.fld_propUnitNum.text =
  result.fld_propUnitNum;
   parentApplication.etss.fld_propPrice.text =
  result.fld_propPrice;
   }
 
 
 
 
 
 
   --
  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
developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ
 Computer
  software
developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw
 Software
  design and
developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ
  Macromedia
 
flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw
 Software
  development best
practicehttp://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
   --
  YAHOO! GROUPS LINKS
 
 
 -  Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders
 on the web.
 
 -  To unsubscribe from this group, send an email to:
  
[EMAIL PROTECTED][EMAIL PROTECTED]
 
 -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service 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 
Yahoo! Groups Links

* To visit your group on the web, go to:

Re: [flexcoders] Re: ItemListRenderer Error

2006-04-18 Thread Simeon Bateman



Glad that was able to help you out :)I dont know about a double cast per se, but I can tell you about why we needed this cast. If you notice our handler gets a resultEvent object back. We access the result property of that event. If you look at the docs here:
http://livedocs.macromedia.com/labs/1/flex/langref/mx/rpc/events/ResultEvent.htmlYou will see that the result property is typed as a generic object. This is done so we can return any data we need to from our remote services. In our case though we are using that result in the constructor of our ArrayCollection. The ArrayCollection can take an array as a constructor argument, but as far as flex knows 
event.result is just an object. So we cast it to Array datatype to fullfil this requirement.As for the other cast, without going back in the history of the thread, I can only guess. My guess is that the items in the array need to implement a certain interface, and for the same reason as above ( result as a generic object) you needed to cast it to the correct type.
Hope that helps clear things up. Glad you got thing running.simeonOn 4/18/06, sufibaba [EMAIL PROTECTED]
 wrote:



Simeon,

You are a LEGEND... Been wacking my head on this. That did the 
trick.

BTW, why is it that it one has to do a double cast. In 
PhoneCairngorm from Benoit, the compiler didn't need this extra 
casting. Is this some sort of bug do you think?


Tim

--- In flexcoders@yahoogroups.com, Simeon Bateman [EMAIL PROTECTED] 

wrote:

 for the first part of your problem I think you need to cast the 
results as
 an array
 
 change
 model.categoryList = new ArrayCollection(event.result);
 to
 model.categoryList = new ArrayCollection(event.result as Array);
 
 I have something similiar in my app and this is how I get around 
the
 implicit type cast.
 
 simeon
 
 









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



  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 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] apache ant build.xml

2006-04-18 Thread Simeon Bateman



Hi,I use ant to compile all my flex 2 swf's because I am a mac user and we dont have flex builder. I use the sdk to get the framework files and I have blogged about my adventures getting ant to do what I wanted (
http://www.simb.net/blog/index.cfm/2006/3/1/Compiling-Mystic-Compatible-SWFs-with-Ant) Feel free to take a look and post if you have any questions.simeonOn 4/18/06, 
arieltools [EMAIL PROTECTED] wrote:



Is there a way to do a build with an ant task?

The manual just says Content TBW.

I infer you can select a new Builder on the project options, but can
not find anyone who has done it...

It is possible?

Some ideas?

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



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



  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: apache ant build.xml

2006-04-18 Thread Dave Wolf
As you looking for help in general using ANT with Flex or is this
specific to FlexBuilder?

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY

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

 Is there a way to do a build with an ant task?
 
 The manual just says Content TBW.
 
 I infer you can select a new Builder on the project options, but can
 not find anyone who has done it...
 
 It is possible?
 
 Some ideas?
 
 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] Re: Combobox selected item

2006-04-18 Thread Tom Ortega



You can loop over your array then set the index based on that.for (var i = 0;i  dirPrefix.length; i++){ if (dirPrefix[i].label == 
result.fld_propDir) { parentApplication.etss.fld_propDir.selectedIndex = i; }}if fld_propDir is the matching item for you dirPrefix
On 4/18/06, Jeremy Rottman [EMAIL PROTECTED] wrote:



My combo box is populated by a static array. IE
public var dirPrefix: Array = [ {label: , data: },{label:N,
data:N}, {label:S, data:S}, {label:E, data:E}, {label:W,
data:W}, {label:NE, data:NE},
 {label:SE, data:SE}, {label:NW, data:NW}, {label:SW,
data:SW} ];

I have tried using selectedLabel, but FB gives me an error saying
property is read-only. 

Any idea on how I can dig into the selectedItem and auto select the
returned object.

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

 That's cuz you're using selectedItem, which returns an object. Use
 selectedLabel if your comboBox just contains simple values.
 
 Otherwise, you'll have to dig into the selectedItem object to get
what you
 want.
 
 -Tom
 
 On 4/18/06, Jeremy Rottman [EMAIL PROTECTED] wrote:
 
  In my app, the admins can go from add record to edit record. When
they
  enter the edit record, the comobo boxes should be set to the selected
  item that is stored in the database. How ever I cant get this to work.
  Here is the code I am trying. The text inputs work fine, it is
just the
  comboboxes that I cant get populated with the database results.
 
  // POPLULATE EDIT SALE INPUTS
  function ConvertModPropdisplayDetailSaleQryResult (
  result){
  parentApplication.etss.fileNum.text =
  result.fld_fileNum;
  parentApplication.etss.fld_mlsNum.text =
  result.fld_mlsNum;
  parentApplication.etss.fld_propNum.text =
  result.fld_propNum;
  parentApplication.etss.fld_propStreet.text =
  result.fld_propStreet;
  parentApplication.etss.fld_propDir.selectedItem =
  result.fld_propDir;
 
  parentApplication.etss.fld_propStreetDesignator.selectedItem =
  result.fld_propStreetDesignator;
 
  parentApplication.etss.fld_propDirSuffix.selectedItem =
  result.fld_propDirSuffix;
  parentApplication.etss.fld_propCity.text =
  result.fld_propCity;
  parentApplication.etss.fld_propState.text =
  result.fld_propState;
  parentApplication.etss.fld_propZip.text =
  result.fld_propZip;
  
parentApplication.etss.fld_propContractDate.text =
  result.fld_propContractDate;
  parentApplication.etss.fld_propCoe.text =
  result.fld_propCoe;
  
parentApplication.etss.fld_propUnitType.selectedItem
  = result.fld_propUnitType;
  parentApplication.etss.fld_propUnitNum.text =
  result.fld_propUnitNum;
  parentApplication.etss.fld_propPrice.text =
  result.fld_propPrice;
  }
 
 
 
 
 
 
  --
  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
http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ

 Computer
  software
development
http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw

 Software
  design and
development
http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ

 Macromedia
 
flex
http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw

 Software
  development best
practice
http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw

  --
  YAHOO! GROUPS LINKS
 
 
  - Visit your group
flexcodershttp://groups.yahoo.com/group/flexcoders

  on the web.
 
  - To unsubscribe from this group, send an email to:
  
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service 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






  




  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.

  To unsubscribe from this 

[flexcoders] Re: ItemListRenderer Error

2006-04-18 Thread sufibaba
Simeon,

Very good description of the process and it makes perfect sense.  So 
it seems that one has to cast the generic to an array, which then is 
gets wrapped by the ArrayCollection.  

My curiosity about this process is that in Benoit's PhoneCairngorm 
app, in which an array of VO's are being passed back to the result, 
(exactly what I am doing), but in his app, no casting to Array is 
needed.  

This is the oddity and which I though could be a bug in the 
flexbuilder or somewhere in the flex chain.

Anyhow, lesson learned, when in doubt, in the future, I will 
definitely cast returned results.

Thanks again Simeon.

Tim



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

 Glad that was able to help you out :)
 
 I dont know about a double cast per se, but I can tell you about 
why we
 needed this cast.  If you notice our handler gets a resultEvent 
object
 back.  We access the result property of that event.  If you look 
at the
 docs here:
 
http://livedocs.macromedia.com/labs/1/flex/langref/mx/rpc/events/Resu
ltEvent.html
 You will see that the result property is typed as a generic 
object. This is
 done so we can return any data we need to from our remote 
services.  In our
 case though we are using that result in the constructor of our
 ArrayCollection.  The ArrayCollection can take an array as a 
constructor
 argument, but as far as flex knows event.result is just an 
object.  So we
 cast it to Array datatype to fullfil this requirement.
 
 As for the other cast, without going back in the history of the 
thread, I
 can only guess.  My guess is that the items in the array need to 
implement a
 certain interface, and for the same reason as above ( result as a 
generic
 object) you needed to cast it to the correct type.
 
 Hope that helps clear things up.  Glad you got thing running.
 
 simeon
 
 
 On 4/18/06, sufibaba [EMAIL PROTECTED] wrote:
 
 
  Simeon,
 
  You are a LEGEND... Been wacking my head on this.  That did the
  trick.
 
  BTW, why is it that it one has to do a double cast.  In
  PhoneCairngorm from Benoit, the compiler didn't need this extra
  casting.  Is this some sort of bug do you think?
 
 
  Tim
 
  --- In flexcoders@yahoogroups.com, Simeon Bateman simbateman@
 
  wrote:
  
   for the first part of your problem I think you need to cast the
  results as
   an array
  
   change
   model.categoryList = new ArrayCollection(event.result);
   to
   model.categoryList = new ArrayCollection(event.result as 
Array);
  
   I have something similiar in my app and this is how I get 
around
  the
   implicit type cast.
  
   simeon
  
  
 
 
 
 
 
   --
  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
 
 
 -  Visit your 
group flexcodershttp://groups.yahoo.com/group/flexcoders
 on the web.
 
 -  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]flexcoders-
[EMAIL PROTECTED]
 
 -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service 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 
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: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService

2006-04-18 Thread Peter Farland

Operation.send(args) has the method signature:

override public function send(... args : Array) : AsyncToken

So the ... args:Array param will be an Array of length 1 with an
Object as _your_ args var. This means you can only send ordered
arguments via send(). For named arguments, you use the special arguments
property.

The only special case to this is if _your_ args was an XMLNode for
literal request envelope body content and it was the only thing passed
to Operation.send() then it would be unwrapped out of the args Array.

Also note there are known issues with passing ordered arguments (i.e. an
Array) to document literal styled web services in beta 2 which should be
fixed in beta 3. If you have a .wsdl file and a sample .mxml file you
can send them to me directly offlist so that I can check they'll work in
beta 3.



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, April 18, 2006 4:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: mx.rpc.soap.mxml.WebService VS
mx.rpc.soap.WebService

Very cool. Thanks to both and Tim and Peter for your help.

Not sure if I should start a new thread for this (if i should just let
me know), but I am noticing some odd behavior when using
mx.rpc.soap.WebService. When I try passing an arguments object in the
send() method I am getting a fault with the following message: Array of
input arguments did not contain a required parameter at position 1.
When I assign the same object to the arguments property of my
AbstractOperation, everything works fine. Here is my code:

dmws = new WebService();
dmws.loadWSDL(Application.application.xml_config.document_metadata_url.@
value
+ ?WSDL);
dmws.useProxy = false;
dmws.addEventListener(result,
onDmwsResult); dmws.addEventListener(fault, doFault);

var op:AbstractOperation;
op = dmws['GetDocument'];

var args:Object = new Object();

args.EnterpriseId = event.target.selectedItem.EnterpriseId;
args.DocumentType = EBD;

args.ContainersToRetrieve = new Array();
args.ContainersToRetrieve.push(Client);
args.ContainersToRetrieve.push(IndustryTrends);
args.ContainersToRetrieve.push(Fiduciary);

args.MetadataToRetrieve = new Array(DocumentHistory);


// this works   
op.arguments = args;
op.send();

// this does not work
op.send(args);

Thanks,
Ben

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

 Why are these separate classes? More importantly, why does the mxml 
 version have capabilities that its super class does not? I like the 
 showBusyCursor functionality, but prefer to code in AS when possible.
 Am I correct in assuming that these two things are mutually exclusive?
 
 Thanks,
 Ben







--
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: Question about Flex Beta

2006-04-18 Thread Darin Kohles
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:

 How easy is it to use Flex Beta to make an application where you
have a  
 password that is secure from being seen, you know to store information?


Most text components have a Boolean called 'password' that you can set
to hide display as in html *.





--
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 2 on Mac OS X

2006-04-18 Thread Bolo Michelin



Ordinateur-de-Bolo-Michelin:~ bolomichelin$ mxmlc -file-specs flex/samples/flexstore/flexstore.mxml -bash: mxmlc: command not foundi must do something wrong ...i have created a folder ( 'Flex'). All SDK is in this folder and flex folder is in user folder
Bolo-- Martinique Sans Filhttp://www.martiniquesansfil.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



  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] Combobox not highlighting on mouseOver (Flex2Beta2)

2006-04-18 Thread sof4real03
I'm returning a native 1 dimensional array of ValueObjects from a java
class. The Value Object returned in the array has the following
properties (AvtCategory:Object, value:String, code:String). I then
databind the array to the dataprovider of the combobox specifying the
label and data files to use. It populates the combobox, but when I
mouseOver items in the dropdown it doesn't highlight the item. Any
reason why that would be happening? 

Code below:

mx:RemoteObject id=avtFacade destination=lsAvt
 result=resultHandler( event )
 fault=faultHandler( event )
 showBusyCursor=true/
mx:Script
![CDATA[
import com.name.services.avt.AvtCategoryValue;
import mx.collections.ArrayCollection;
import com.name.services.avt.AvtItemValue;
import mx.controls.*;
import mx.rpc.events.*;

[Bindable]
public var stateAvts:Array;

public function testAvt():void
{
var stateCategory:AvtCategoryValue = new 
AvtCategoryValue();
stateCategory.avtCategoryCode = STATE;
avtFacade.getAvtItems(stateCategory);
}

public function resultHandler(event:ResultEvent):void
{   
stateAvts = event.result as Array;
}

public function faultHandler(event:FaultEvent):void
{
Alert.show(event.fault.faultstring, Error);
}
]]
/mx:Script

mx:ComboBox id=state 
dataProvider={stateAvts}
labelField=value data=code/






--
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] Drag from Tree, drop to List?

2006-04-18 Thread judah






Hi Paul,

Could you check into some possible bugs for me? When I test this code
the drag separator appears to jump around when dragging inside the
tree. For example, drag the "Sent" folder up and down the Tree and
watch the location of the drag separator. 

Also, there seems to be a couple of times that it does not drop into
the correct location. For example, run the project and drag and drop
the "Inbox" node below the "Sent" node. In my tests it is being placed
below the "Trash" node. 

On a design side (feature request), I can see the need to be able to
drop "into" a list row, such as when someone wants to drag and drop a
file into a folder. 

Best Regards,
Judah Frangipane
PS I'm reattaching the code below:

?xml version="1.0" encoding="utf-8"?
 mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="*" layout="absolute" creationComplete="initApp();"
  mx:XML id="treeDP"
   node label="Mail"
node label="Inbox"/
node label="Personal Folder"
 node label="Demo"/
 node label="Personal"/
 node label="Saved Mail"/
 node label="bar"/
/node
node label="Calendar"/
node label="Sent"/
node label="Trash"/
   /node
  /mx:XML
  mx:Tree id="firstList" height="200" width="200" 
showRoot="false"
labelField="@label"
dragEnabled="true" dropEnabled="true"
allowMultipleSelection="true"
creationComplete="initApp();"/
  mx:List id="playlist" width="200" height="200" x="36"
y="217" dragEnter="listDragEnter(event);"
dragDrop="listDragDrop(event);"
   mx:dataProvider
mx:ArrayCollection/mx:ArrayCollection
   /mx:dataProvider
  /mx:List
  mx:Script
   ![CDATA[
private function initApp():void {
 firstList.dataProvider = treeDP;
}
import mx.controls.treeclasses.TreeNode;
import mx.events.DragEvent;
import mx.managers.DragManager;
public function listDragEnter(event:DragEvent): void {
 // Get a reference to the drop target
 var
dropTarget:UIComponent=UIComponent(event.currentTarget);
 // Check that the format of the data is one that we
want to accept
 if (event.dragSource.hasFormat('treeItems')) {
  // Signal that this data can be dropped onto
the target
  DragManager.acceptDragDrop(dropTarget);
  // Set the operation to copy, and show feedback
to user
  DragManager.showFeedback(DragManager.COPY);
 }
}
public function listDragDrop(event:DragEvent): void 
{
 // Get the dataprovider for the List
(ArrayCollection in this case)
 var data:ArrayCollection =
ArrayCollection(playlist.dataProvider);
 // Get a reference to the 'data' that is being
dragged
 var itemData:Array =
event.dragSource.dataForFormat('treeItems') as Array;
 // Loop through each dataitem that is being dragged
 for (var i:int = 0; i  itemData.length; i++) { 
  // Get the node data
  var item:XML = itemData[i];
  // Add the node data to the list's dataprovider
in a form that 
  // the list control will understand
  data.addItem({label:item.attribute("label"),
data:item});
 } 
}
   ]]
  /mx:Script
 /mx:Application



Paul Williams wrote:

  
  

  
  
  
  I think you
will need to write event
handlers to allow the list control to accept items from a tree control.
In
addition to the docs, theres a sample chapter on the labs with some
good
drag-and-drop tutorials:
  
  http://labs.macromedia.com/wiki/index.php/Flex_Framework:tutorials:tfts_drag_drop
  
  See below
for a very simple example based
on your code (flex 2 beta 2).
  
  Paul
  
  ?xml
version="1.0"
encoding="utf-8"?
  mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
layout="absolute" creationComplete="initApp();"
  

  
  
mx:XML
id="treeDP"
  
node
label="Mail"
  
node
label="Inbox"/
  
node
label="Personal Folder"
  
node
label="Demo"/
  

  node
label="Personal"/
  
node
label="Saved Mail"/
  
node
label="bar"/
  
/node
  
node
label="Calendar"/
  
node
label="Sent"/
  
node
label="Trash"/
  
/node
  /mx:XML
   
  
mx:Tree
id="firstList" height="200" width="200"
  
showRoot="false"
  
labelField="@label"
  
dragEnabled="true"
dropEnabled="true"
  
allowMultipleSelection="true"
  
creationComplete="initApp();"/ 
  
  
mx:List
id="playlist" width="200" height="200"
x="36" y="217" dragEnter="listDragEnter(event);"
dragDrop="listDragDrop(event);"
  
mx:dataProvider
  
mx:ArrayCollection
  
/mx:ArrayCollection
  
  
/mx:dataProvider
  
/mx:List 
  
  

  
  
mx:Script
  
![CDATA[
  
  
private
function initApp():void {
  
  firstList.dataProvider
= treeDP;
  
}
  
  
  
  
import
mx.controls.treeclasses.TreeNode;
  
import
mx.events.DragEvent;
  
import
mx.managers.DragManager;
  
  
  
public
function listDragEnter(event:DragEvent): void {
  
//
Get a reference to the drop target
  
var
dropTarget:UIComponent=UIComponent(event.currentTarget);
  
  
//
Check that the format of the data is one that we want to accept
  
if
(event.dragSource.hasFormat('treeItems')) {
  
//
Signal that this data can 

[flexcoders] Re: mx.rpc.soap.mxml.WebService VS mx.rpc.soap.WebService

2006-04-18 Thread Tim Hoff



Ben, below is a modified version of Jeff Tapper's AS class for webServices. Here's his original post: http://jeff.mxdj.com/as3_datamanager.htm. It solves the problem with the order of the arguments being sent randomly to the web service. Steven has me thinking more about the abstration of this solution. The CursorManager reference should probably be backed out to the command or whatever method you choose to call the service. Also. there's no reason to create a new Object() everytime. Andthe WSDL should be stored on the server (FDS). But knowning that this will probably not be the final solution, I'm not putting much work into it yet. Hope this example helps.
Tim
package code.business {import mx.managers.CursorManager; import flash.events.EventDispatcher; import mx.rpc.soap.WebService; import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.rpc.AbstractOperation; import mx.controls.Alert; import flash.util.*;
 public class DataServices extends EventDispatcher { private var ws:WebService; private static var instanceMap:Object = new Object(); public function DataServices(pri:PrivateClass, wsdl:String) { this.ws = new WebService(); ws.wsdl = wsdl; ws.loadWSDL(); ws.useProxy = false; } public static function getDataService(wsdl:String):DataServices { if(DataServices.instanceMap[wsdl] == null) { DataServices.instanceMap[wsdl] = new DataServices(new PrivateClass(),wsdl); }  var ds:DataServices = DataServices.instanceMap[wsdl]; if(ds.ws.canLoadWSDL()) { return ds; } else { throw new Error("BAD WSDL:"+wsdl); } } public function makeRemoteCall(methodName:String,showBusyCursor:Boolean,args:Object):void { var op:mx.rpc.AbstractOperation = ws[methodName]; if(showBusyCursor) { CursorManager.setBusyCursor(); } ws.addEventListener("result",onResult); ws.addEventListener("fault",onFault); if(args) {  op.arguments = args; }  op.send();  } private function onResult(result:ResultEvent):void { CursorManager.removeBusyCursor(); this.dispatchEvent(result); } private function onFault(fault:FaultEvent):void { CursorManager.removeBusyCursor(); this.dispatchEvent(fault); } public override function toString():String { return "DataServices"; } }}
/** PrivateClass is used to make DataServices constructor private */ class PrivateClass{ public function PrivateClass() {}}
//--
The authorsSearchOptionsVO is the same structure as the webService parameters.
To call the service class:
//--
public function getAuthors( authorsSearchOptionsVO : authorsSearchOptionsVO ): void{ var wsdl : String = ModelLocator.WSDL;var showBusyCursor : Boolean = truevar args:Object = new Object();args = authorsSearchOptionsVO;dataServices = DataServices.getDataService(wsdl); dataServices.addEventListener("result",onResult); dataServices.addEventListener("fault",onFault); dataServices.makeRemoteCall("getAuthors",showBusyCursor,args);}
//--
--- In flexcoders@yahoogroups.com, "ben.clinkinbeard" [EMAIL PROTECTED] wrote: Very cool. Thanks to both and Tim and Peter for your help.  Not sure if I should start a new thread for this (if i should just let me know), but I am noticing some odd behavior when using mx.rpc.soap.WebService. When I try passing an arguments object in the send() method I am getting a fault with the following message: Array of input arguments did not contain a required parameter at position 1. When I assign the same object to the arguments property of my AbstractOperation, everything works fine. Here is my code:  dmws = new WebService();  dmws.loadWSDL([EMAIL PROTECTED] + "?WSDL");  dmws.useProxy = false; dmws.addEventListener("result", onDmwsResult); dmws.addEventListener("fault", doFault);  var op:AbstractOperation; op = dmws['GetDocument'];  var args:Object = new Object();  args.EnterpriseId = event.target.selectedItem.EnterpriseId; args.DocumentType = "EBD";  args.ContainersToRetrieve = new Array(); args.ContainersToRetrieve.push("Client"); args.ContainersToRetrieve.push("IndustryTrends"); args.ContainersToRetrieve.push("Fiduciary");  args.MetadataToRetrieve = new Array("DocumentHistory");   // this works  op.arguments = args; op.send();  // this does not work op.send(args);  Thanks, Ben  --- In flexcoders@yahoogroups.com, "ben.clinkinbeard" ben.clinkinbeard@ wrote:   Why are these separate classes? More importantly, why does the mxml  version have capabilities that its super class does not? I like the  showBusyCursor functionality, but prefer to code in AS when possible.  Am I correct in assuming that these two things are mutually exclusive?Thanks,  Ben 






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

Re: [flexcoders] Re: Question about Flex Beta

2006-04-18 Thread Faisal Abid
Darin Kohles wrote:
 --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
 
  How easy is it to use Flex Beta to make an application where you
 have a 
  password that is secure from being seen, you know to store information?
 

 Most text components have a Boolean called 'password' that you can set
 to hide display as in html *.





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

 *  Visit your group flexcoders
   http://groups.yahoo.com/group/flexcoders on the web.

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

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


 

The you can use the tutoril on PHP and Flex from labs.macromedia.com and 
modify it to make a login app


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

2006-04-18 Thread Geoffrey
I think I have.  Below is part of the file ReviewKeywordsCommand.as, 
which is the result handler from the RO call.

  import com.foo.test.vo.*;
  ...
  public function onResult( event ) : Void {
var sk:SiteKeywordVO = (SiteKeywordVO) event.result;
mx.core.Application.alert(Passed in  + sk);
  }
  ...

I just wanted to throw an Alert for now  That way I knew 
something was coming in.  eventually, it will populate a datagrid.

Geoff

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

 Perhaps your SiteKeywordVO is never linked into the SWF because you
 never create a dependency on the class name (as mxmlc will optimize 
and
 remove unreferenced class definitions). An import statement is not
 enough to create a dependency.
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Geoffrey
 Sent: Tuesday, April 18, 2006 3:10 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] RemoteObject Issue
 
 I've been trying for the last few days to get RemoteObject to work, 
but
 with little luck.  I've searched this site, and have tried to 
implement
 the examples found in developing rich clients with macromedia 
FLEX.
 To make matters more confusing, I've also tried to implement the
 command/control/delegate patterns that the above book advocates.
 
 Basically, I think the problem is that I'm not seeing the Java 
classes
 I've created.  Below are code snippets of (what I think) are the
 relevant files.
 
 ### My Java classes ###
 {TOMCAT-HOME}\webapps\flex\WEB-
 INF\classes\com\foo\test\business\SiteMaintenanceDelegate.class
   package com.foo.test.business;
   import com.foo.test.vo.SiteKeywordVO;
   public class SiteMaintenanceDelegate {
   public SiteMaintenanceDelegate() {
   }
   public SiteKeywordVO reviewKeywords() {
   SiteKeywordVO keywords = new SiteKeywordVO();
   return keywords;
   }
   }
 
 {TOMCAT-HOME}\webapps\flex\WEB-
 INF\classes\com\foo\test\vo\SiteKeywordVO.class
   package com.foo.test.vo;
   import java.io.Serializable;
   public class SiteKeywordVO implements Serializable {
 public String[] keywords;
   public void SiteKeywordVO() {
 String[] keywords = {first agr, second agr, third 
agr};
   }
   }
 
 ### My RO definition  ###
 {TOMCAT-HOME}\webapps\flex\services\Services.mxml
   mx:RemoteObject id=siteDataServices  
   source=com.foo.test.business.SiteMaintenanceDelegate
   result=event.call.resultHandler(event)
   fault=event.call.faultHandler(event)
   showBusyCursor=true
 mx:method name=reviewKeywords/
   /mx:RemoteObject
 
 ### My ActionScript VO ###
 {TOMCAT-HOME}\webapps\flex\sdm\com\foo\test\vo\SiteKeywordVO.as
   class com.foo.test.vo.SiteKeywordVO {
   public var keywords:Array;
   public var _remoteClass;
   public function SiteKeywordVO() {
_remoteClass=com.foo.test.vo.SiteKeywordVO;
   }
   }
 
 ### My testing mxml file ###
 {TOMCAT-HOME}\webapps\flex\sdm\sdmUnitTest.mxml
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
   xmlns:sdm=sdm.*
   xmlns:services=services.*
   sdm:SiteDataMaint/
   services:Services id=myServices/
 /mx:Application
 
 ### My SiteDataMaint component ###
 {TOMCAT-HOME}\webapps\flex\sdm\SiteDataMaint.mxml
   ... //just the script part
   mx:Script
   ![CDATA[
   import sdm.business.*;
   import sdm.commands.*;
   import sdm.control.*;
   import com.foo.test.vo.*;
   import mx.controls.Alert;
   public function initApp() {
var controller = new SDMController;
   }
   ]]
   /mx:Script
   ...
 
 The SDMController class seems to be working correctly.
 
 ### My Delegate class ###
 {TOMCAT-HOME}\webapps\flex\sdm\business\SDMDelegate.as
   ... //just the constructor
   public function SDMDelegate(responder:Responder) {
   this.service =
 mx.core.Application.application.myServices.siteDataServices;
   Dumper.dump(service);
   this.responder = responder;
   }
 
 I think this is where the problem is.  When I dump 'service' (via 
Flex
 Trace Panel), I get 'undefined'.
 
 I really have no idea where to go from here.  I've tried turning on 
all
 debug stuff, used NetConnectionDebugger, use Flex Trace Panel... 
 nothing on all accounts.
 
 Thanks for any suggestions you may have!
 Geoff
 
 
 
 
 
 --
 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:

[flexcoders] Re: RemoteObject Issue

2006-04-18 Thread Geoffrey
Hmm

I replaced the service assignment with:
this.service = parentApplication.myServices.siteDataServices;

But I get the following error:
There is no property with the name 'parentApplication'.

Looking at the docs, parentApplication looks like it's intended to 
walk up the tree of multiple application nested within themselves.  I 
don't think that applys to this case since I only have 1 mxml file 
with the mx:Application tag.  Please correct me if I've 
misunderstood this.

Thanks,
Geoff


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

 My guess would be that SDMDelegate's constructor can't access your
 siteDataServices RemoteObject through 
mx.core.Application.application.
  Try this.service = parentApplication.myServices.siteDataServices
 instead, or pass the service as a parameter to the constructor as 
you
 do with the responder.
 
 Doug
 
 --- In flexcoders@yahoogroups.com, Geoffrey gtb104@ wrote:
 
  I've been trying for the last few days to get RemoteObject to 
work, 
  but with little luck.  I've searched this site, and have tried to 
  implement the examples found in developing rich clients with 
  macromedia FLEX.  To make matters more confusing, I've also 
tried to 
  implement the command/control/delegate patterns that the above 
book 
  advocates.
  
  Basically, I think the problem is that I'm not seeing the Java 
  classes I've created.  Below are code snippets of (what I think) 
are 
  the relevant files.
  
  ### My Java classes ###
  {TOMCAT-HOME}\webapps\flex\WEB-
  INF\classes\com\foo\test\business\SiteMaintenanceDelegate.class
package com.foo.test.business;
import com.foo.test.vo.SiteKeywordVO;
public class SiteMaintenanceDelegate {
  public SiteMaintenanceDelegate() {
  }
  public SiteKeywordVO reviewKeywords() {
  SiteKeywordVO keywords = new SiteKeywordVO();
  return keywords;
  }
}
  
  {TOMCAT-HOME}\webapps\flex\WEB-
  INF\classes\com\foo\test\vo\SiteKeywordVO.class
package com.foo.test.vo;
import java.io.Serializable;
public class SiteKeywordVO implements Serializable {
  public String[] keywords;
  public void SiteKeywordVO() {
  String[] keywords = {first agr, second agr, third 
agr};
  }
}
  
  ### My RO definition  ###
  {TOMCAT-HOME}\webapps\flex\services\Services.mxml
mx:RemoteObject id=siteDataServices
  source=com.foo.test.business.SiteMaintenanceDelegate
  result=event.call.resultHandler(event)
  fault=event.call.faultHandler(event)
  showBusyCursor=true
mx:method name=reviewKeywords/
/mx:RemoteObject
  
  ### My ActionScript VO ###
  {TOMCAT-HOME}\webapps\flex\sdm\com\foo\test\vo\SiteKeywordVO.as
class com.foo.test.vo.SiteKeywordVO {
  public var keywords:Array;
  public var _remoteClass;
  public function SiteKeywordVO() {
   _remoteClass=com.foo.test.vo.SiteKeywordVO;
  }
}
  
  ### My testing mxml file ###
  {TOMCAT-HOME}\webapps\flex\sdm\sdmUnitTest.mxml
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
  xmlns:sdm=sdm.*
  xmlns:services=services.*
  sdm:SiteDataMaint/
  services:Services id=myServices/
  /mx:Application
  
  ### My SiteDataMaint component ###
  {TOMCAT-HOME}\webapps\flex\sdm\SiteDataMaint.mxml
... //just the script part
mx:Script
  ![CDATA[
  import sdm.business.*;
  import sdm.commands.*;
  import sdm.control.*;
  import com.foo.test.vo.*;
  import mx.controls.Alert;
  public function initApp() {
   var controller = new SDMController;
  }
  ]]
/mx:Script
...
  
  The SDMController class seems to be working correctly.
  
  ### My Delegate class ###
  {TOMCAT-HOME}\webapps\flex\sdm\business\SDMDelegate.as
... //just the constructor
public function SDMDelegate(responder:Responder) {
  this.service = 
  mx.core.Application.application.myServices.siteDataServices;
  Dumper.dump(service);
  this.responder = responder;
}
  
  I think this is where the problem is.  When I dump 'service' (via 
  Flex Trace Panel), I get 'undefined'.
  
  I really have no idea where to go from here.  I've tried turning 
on 
  all debug stuff, used NetConnectionDebugger, use Flex Trace 
Panel... 
  nothing on all accounts.
  
  Thanks for any suggestions you may have!
  Geoff
 







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

2006-04-18 Thread Doug Lowder
The parentApplication property is a reference to the Application
object (the nesting refers to applications loaded within other
applications with the Loader control and probably doesn't apply to
your case), but it's a property of mx.core.UIObject, which your
SDMDelegate obviously isn't extending and probably shouldn't.  Have
you tried dumping mx.core.Application.application.myServices in the
delegate constructor to see if it exists at that point?  You could
also try adding a creationComplete event to the application to
determine exactly when the siteDataServices remote object is
available; something like
creationComplete=Dumper.dump(myServices.siteDataServices) should do it.

It might be your best bet to pass the service to your delegate
constructor as a parameter.


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

 Hmm
 
 I replaced the service assignment with:
 this.service = parentApplication.myServices.siteDataServices;
 
 But I get the following error:
 There is no property with the name 'parentApplication'.
 
 Looking at the docs, parentApplication looks like it's intended to 
 walk up the tree of multiple application nested within themselves.  I 
 don't think that applys to this case since I only have 1 mxml file 
 with the mx:Application tag.  Please correct me if I've 
 misunderstood this.
 
 Thanks,
 Geoff
 
 
 --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ 
 wrote:
 
  My guess would be that SDMDelegate's constructor can't access your
  siteDataServices RemoteObject through 
 mx.core.Application.application.
   Try this.service = parentApplication.myServices.siteDataServices
  instead, or pass the service as a parameter to the constructor as 
 you
  do with the responder.
  
  Doug
  
  --- In flexcoders@yahoogroups.com, Geoffrey gtb104@ wrote:
  
   I've been trying for the last few days to get RemoteObject to 
 work, 
   but with little luck.  I've searched this site, and have tried to 
   implement the examples found in developing rich clients with 
   macromedia FLEX.  To make matters more confusing, I've also 
 tried to 
   implement the command/control/delegate patterns that the above 
 book 
   advocates.
   
   Basically, I think the problem is that I'm not seeing the Java 
   classes I've created.  Below are code snippets of (what I think) 
 are 
   the relevant files.
   
   ### My Java classes ###
   {TOMCAT-HOME}\webapps\flex\WEB-
   INF\classes\com\foo\test\business\SiteMaintenanceDelegate.class
 package com.foo.test.business;
 import com.foo.test.vo.SiteKeywordVO;
 public class SiteMaintenanceDelegate {
 public SiteMaintenanceDelegate() {
 }
 public SiteKeywordVO reviewKeywords() {
 SiteKeywordVO keywords = new SiteKeywordVO();
 return keywords;
 }
 }
   
   {TOMCAT-HOME}\webapps\flex\WEB-
   INF\classes\com\foo\test\vo\SiteKeywordVO.class
 package com.foo.test.vo;
 import java.io.Serializable;
 public class SiteKeywordVO implements Serializable {
   public String[] keywords;
 public void SiteKeywordVO() {
   String[] keywords = {first agr, second agr, third 
 agr};
 }
 }
   
   ### My RO definition  ###
   {TOMCAT-HOME}\webapps\flex\services\Services.mxml
 mx:RemoteObject id=siteDataServices  
 source=com.foo.test.business.SiteMaintenanceDelegate
 result=event.call.resultHandler(event)
 fault=event.call.faultHandler(event)
 showBusyCursor=true
   mx:method name=reviewKeywords/
 /mx:RemoteObject
   
   ### My ActionScript VO ###
   {TOMCAT-HOME}\webapps\flex\sdm\com\foo\test\vo\SiteKeywordVO.as
 class com.foo.test.vo.SiteKeywordVO {
 public var keywords:Array;
 public var _remoteClass;
 public function SiteKeywordVO() {
  _remoteClass=com.foo.test.vo.SiteKeywordVO;
 }
 }
   
   ### My testing mxml file ###
   {TOMCAT-HOME}\webapps\flex\sdm\sdmUnitTest.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 xmlns:sdm=sdm.*
 xmlns:services=services.*
 sdm:SiteDataMaint/
 services:Services id=myServices/
   /mx:Application
   
   ### My SiteDataMaint component ###
   {TOMCAT-HOME}\webapps\flex\sdm\SiteDataMaint.mxml
 ... //just the script part
 mx:Script
 ![CDATA[
 import sdm.business.*;
 import sdm.commands.*;
 import sdm.control.*;
 import com.foo.test.vo.*;
 import mx.controls.Alert;
 public function initApp() {
  var controller = new SDMController;
 }
 ]]
 /mx:Script
 ...
   
   The SDMController class seems to be working correctly.
   
   ### My Delegate class ###
   {TOMCAT-HOME}\webapps\flex\sdm\business\SDMDelegate.as
 ... //just the constructor
 public function SDMDelegate(responder:Responder) {
 this.service = 
   mx.core.Application.application.myServices.siteDataServices;
 Dumper.dump(service);
 this.responder = responder;
 }

Re: [flexcoders] Re: Loading an SWC into Flex 2 Beta 2

2006-04-18 Thread Michael Schmalle



Hi,

If I remembered correctly,

Roger Gonzalez commented on this and it has to do with the virtual
machine.? Don't quote me but, I swear this same thing came up about a
month ago and he said they are working on it.

I don't think it is going to be an actual component but, a virtual machine change.

Peace, Mike

PS If I am wrong than he was saying this about something else ;-)
On 4/18/06, judah [EMAIL PROTECTED] wrote:



  




It sounds like you are saying they are making a Flex 2 loader that will
load Flash 7, 8 and Flex 1.5 swfs. Is that what you mean?

Judah

JesterXL wrote:

  Agreed.  We all tried to actually create a Yahoo Maps SWF in Flash 8, and then load the SWF into a Flex 2 Loader (component or flash intrinsic class), but no dice.They are making one though, so maybe if we bitch more, they'll make it come 
out faster!- Original Message - From: Harris Reynolds [EMAIL PROTECTED]
To: flexcoders@yahoogroups.comSent: Tuesday, April 18, 2006 12:56 PMSubject: [flexcoders] Re: Loading an SWC into Flex 2 Beta 2
Thanks for the reply Jester... that stinks that things like the YahooMaps component can not be imported into Flex 2.  I tried importingthe SWC directly *and* creating a new SWC with the MXP and obviously
didn't have any luck with either approach.  I am sure support fromYahoo will be coming in the future, but it would be nice to have itnow!Thanks man,~harris--- In 
flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:  
  
It needs to be created  compiled in Flex 2 Beta 2.  Flex 1, Flex
  
  1.5, Flash  
  
MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2
  
  projects.  That's  
  
because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player
  
  8.5  
  
whereas the others do not.- Original Message - From: Harris Reynolds 
[EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Tuesday, April 18, 2006 11:30 AM
Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2Has anyone had success importing a 3rd party SWC into a Flex 2 Beta
  
  2  
  
project?  I have tried two different components and each time I get
  
  the  
  
following error:unable to load SWC componentnamehere.swc: unknown element swc
  
  found in  
  
componentPackage section in catalog.xml.Does anything special need to be done to the SWC to make it
  
  compatible  
  
with Flex 2?thanks,~harris--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.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/
 



  



-- Always bear in mind that your own resolution to succeed is more important than any one thing.You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. 
- Abraham Lincoln






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




  









-- What goes up, does come down.






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



  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: Combobox not highlighting on mouseOver (Flex2Beta2)

2006-04-18 Thread sof4real03
A workaround that I had to do was create a new array and push in each
of the indexes of the ValueObject array. This created a second array
of plain vanilla objects. I'm not happy with this solution, but I'm
baffled...

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

 
 I am using the PhoneCairngorm structure  from Benoit and have modified
 the backend to use a Database instead of the XML datafile.
 
 I am experiencing the same combobox  highlighting problem. The result
 ArrayCollection is Piped into a comboBox.  The labels are all correctly
 displayed in the box, however, when I scroll over the items, no
 highlight is shown.
 
 An interesting thing is that when I use Benoit's phone result dataset to
 populate a comboBox, it works properly.
 
 Does anyone have insight into this very perplexing problem?
 
 P.S.  This problem is not only with the combobox,   list controls is
 doing the same thing with the same problem dataset.
 
 Cheers,
 
 Tim
 
 
 
 
 --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
 
  Can the dataprovider for combobox understand an array of specific
  value objects or does it need to be a plain vanilla object or string?
 
 
 
  --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
  
   I'm returning a native 1 dimensional array of ValueObjects from a
 java
   class. The Value Object returned in the array has the following
   properties (AvtCategory:Object, value:String, code:String). I then
   databind the array to the dataprovider of the combobox specifying
 the
   label and data files to use. It populates the combobox, but when I
   mouseOver items in the dropdown it doesn't highlight the item. Any
   reason why that would be happening?
  
   Code below:
  
   mx:RemoteObject id=avtFacade destination=lsAvt
   result=resultHandler( event )
   fault=faultHandler( event )
   showBusyCursor=true/
   mx:Script
   ![CDATA[
   import com.name.services.avt.AvtCategoryValue;
   import mx.collections.ArrayCollection;
   import com.name.services.avt.AvtItemValue;
   import mx.controls.*;
   import mx.rpc.events.*;
  
   [Bindable]
   public var stateAvts:Array;
  
   public function testAvt():void
   {
   var stateCategory:AvtCategoryValue = new AvtCategoryValue();
   stateCategory.avtCategoryCode = STATE;
   avtFacade.getAvtItems(stateCategory);
   }
  
   public function resultHandler(event:ResultEvent):void
   {
   stateAvts = event.result as Array;
   }
  
   public function faultHandler(event:FaultEvent):void
   {
   Alert.show(event.fault.faultstring, Error);
   }
   ]]
   /mx:Script
  
   mx:ComboBox id=state dataProvider={stateAvts}
   labelField=value data=code/
  
 







--
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: apache ant build.xml

2006-04-18 Thread Dave Wolf
OK then.  What can we assist with?  You can indeed use ANT to build
Flex projects.  ANT is our standard build environment for all our
development including Flex.

-- 
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY

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

 I really think is more to do with Flex, as FlexBuilder will be changed
 at the end on our project for OpenSource tools...
 
 --- In flexcoders@yahoogroups.com, Dave Wolf gatorj24@ wrote:
 
  As you looking for help in general using ANT with Flex or is this
  specific to FlexBuilder?
  
  -- 
  Dave Wolf
  Cynergy Systems, Inc.
  Macromedia Flex Alliance Partner
  http://www.cynergysystems.com
  
  Email:  dave.wolf@
  Office: 866-CYNERGY
  
  --- In flexcoders@yahoogroups.com, arieltools arieltools@ wrote:
  
   Is there a way to do a build with an ant task?
   
   The manual just says Content TBW.
   
   I infer you can select a new Builder on the project options,
but can
   not find anyone who has done it...
   
   It is possible?
   
   Some ideas?
   
   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/
 




[flexcoders] Re: Combobox not highlighting on mouseOver (Flex2Beta2)

2006-04-18 Thread Doug Lowder
Instead of casting event.result, would
mx.utils.ArrayUtil.toArray(event.result) do the trick?

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

 A workaround that I had to do was create a new array and push in each
 of the indexes of the ValueObject array. This created a second array
 of plain vanilla objects. I'm not happy with this solution, but I'm
 baffled...
 
 --- In flexcoders@yahoogroups.com, sufibaba sufibaba@ wrote:
 
  
  I am using the PhoneCairngorm structure  from Benoit and have modified
  the backend to use a Database instead of the XML datafile.
  
  I am experiencing the same combobox  highlighting problem. The result
  ArrayCollection is Piped into a comboBox.  The labels are all
correctly
  displayed in the box, however, when I scroll over the items, no
  highlight is shown.
  
  An interesting thing is that when I use Benoit's phone result
dataset to
  populate a comboBox, it works properly.
  
  Does anyone have insight into this very perplexing problem?
  
  P.S.  This problem is not only with the combobox,   list controls is
  doing the same thing with the same problem dataset.
  
  Cheers,
  
  Tim
  
  
  
  
  --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
  
   Can the dataprovider for combobox understand an array of specific
   value objects or does it need to be a plain vanilla object or
string?
  
  
  
   --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote:
   
I'm returning a native 1 dimensional array of ValueObjects from a
  java
class. The Value Object returned in the array has the following
properties (AvtCategory:Object, value:String, code:String). I then
databind the array to the dataprovider of the combobox specifying
  the
label and data files to use. It populates the combobox, but when I
mouseOver items in the dropdown it doesn't highlight the item. Any
reason why that would be happening?
   
Code below:
   
mx:RemoteObject id=avtFacade destination=lsAvt
result=resultHandler( event )
fault=faultHandler( event )
showBusyCursor=true/
mx:Script
![CDATA[
import com.name.services.avt.AvtCategoryValue;
import mx.collections.ArrayCollection;
import com.name.services.avt.AvtItemValue;
import mx.controls.*;
import mx.rpc.events.*;
   
[Bindable]
public var stateAvts:Array;
   
public function testAvt():void
{
var stateCategory:AvtCategoryValue = new AvtCategoryValue();
stateCategory.avtCategoryCode = STATE;
avtFacade.getAvtItems(stateCategory);
}
   
public function resultHandler(event:ResultEvent):void
{
stateAvts = event.result as Array;
}
   
public function faultHandler(event:FaultEvent):void
{
Alert.show(event.fault.faultstring, Error);
}
]]
/mx:Script
   
mx:ComboBox id=state dataProvider={stateAvts}
labelField=value data=code/
   
  
 







--
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] How do I access URL vars in onCreationComplete?

2006-04-18 Thread Nathan
Hi

Disclaimer: I'm a Flash/Flex n00b.

I'm trying to build my first Flex 2 app.  I am going to the Flex app
from a HTML page where the user enters some info.  If I pass the info
via the URL, how can I access those URL vars within Flex?  I've read
Flash articles that seem to indicate you can simply reference by name.
 I'd like to use them when onCreationComplete() is
executed to set some initial variables which will be needed when
getting other initial data from the ColdFusion server.  

Is it as simple as this:

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
   :
   creationComplete=onCreationComplete(urlVar1, urlVar2, urlVar3);

mx:Script
![CDATA[

private function onCreationComplete(v1, v2, v3) : Void
{
ModelLocator.initialise(v1, v2, v3);
}
]]
/mx:Script

/mx:Application

???

I would normally just try it and see if it works, but the app is still
very primitive.

Thanks

Nathan Drury





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

2006-04-18 Thread Geoffrey
I tried to dump myServices via:
codeDumper.dump(mx.core.Application.application.myServices);/code 
during the Delegate constructor, and it came up 'undefined'.

I tried a creationComplete and an Initialize event to dump 
siteDataServices upon startup of the main mxml file.  Both had this 
to say:

[INFO]: (Object)
 log: (Object)
  level: 1 (Number)
  name: RemoteObject_AMF (String)
 __conn: (Object)
  contentType: application/x-fcs (String)
  _headerAdded: false (Boolean)
  _config: (Object)
   m_debug: true (Boolean)
   app_server: (Object)
coldfusion: true (Boolean)
amfheaders: false (Boolean)
amf: false (Boolean)
httpheaders: false (Boolean)
recordset: true (Boolean)
error: true (Boolean)
trace: true (Boolean)
_debug: true (Boolean)
   realtime_server: (Object)
trace: true (Boolean)
_debug: true (Boolean)
   client: (Object)
rtmp: true (Boolean)
http: true (Boolean)
recordset: true (Boolean)
trace: true (Boolean)
_debug: true (Boolean)
   _debug: true (Boolean)
  _protocol: http (String)
  _id: 0 (Number)
  netDebugProxyFunctions: true (Boolean)
 _allowRes: true (Boolean)
 __serviceName: com.foo.test.business.SiteMaintenanceDelegate 
(String)
 __responder: (Object)
  __obj: undefined (undefined)
  __onFault: _resp5_fault (String)
  __onResult: _resp5_result (String)
 __name: siteDataServices (String)
 __showBusyCursor: true (Boolean)
 __concurrency: 0 (Number)
 __parentDocument: undefined (undefined)

Looks like it's available at both initialization and creationComplete 
time frames.

I'm curious why the examples taken from the books website would prove 
to be this difficult to implement.

When you say pass the service to your delegate constructor as a 
parameter, do you mean as a string?  Like the following:

  public function ReviewKeywordsCommand() {
this.delegate = new SDMDelegate( this, mx.core.Application.\
application.myServices.siteDataServices );
  }


sorry if these are really basic questions, but I'm new to RIA 
development.

Thanks,
Geoff


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

 The parentApplication property is a reference to the Application
 object (the nesting refers to applications loaded within other
 applications with the Loader control and probably doesn't apply to
 your case), but it's a property of mx.core.UIObject, which your
 SDMDelegate obviously isn't extending and probably shouldn't.  Have
 you tried dumping mx.core.Application.application.myServices in the
 delegate constructor to see if it exists at that point?  You could
 also try adding a creationComplete event to the application to
 determine exactly when the siteDataServices remote object is
 available; something like
 creationComplete=Dumper.dump(myServices.siteDataServices) should 
do it.
 
 It might be your best bet to pass the service to your delegate
 constructor as a parameter.
 
 
 --- In flexcoders@yahoogroups.com, Geoffrey gtb104@ wrote:
 
  Hmm
  
  I replaced the service assignment with:
  this.service = parentApplication.myServices.siteDataServices;
  
  But I get the following error:
  There is no property with the name 'parentApplication'.
  
  Looking at the docs, parentApplication looks like it's intended 
to 
  walk up the tree of multiple application nested within 
themselves.  I 
  don't think that applys to this case since I only have 1 mxml 
file 
  with the mx:Application tag.  Please correct me if I've 
  misunderstood this.
  
  Thanks,
  Geoff
  
  
  --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ 
  wrote:
  
   My guess would be that SDMDelegate's constructor can't access 
your
   siteDataServices RemoteObject through 
  mx.core.Application.application.
Try this.service = 
parentApplication.myServices.siteDataServices
   instead, or pass the service as a parameter to the constructor 
as 
  you
   do with the responder.
   
   Doug
   
   --- In flexcoders@yahoogroups.com, Geoffrey gtb104@ wrote:
   
I've been trying for the last few days to get RemoteObject to 
  work, 
but with little luck.  I've searched this site, and have 
tried to 
implement the examples found in developing rich clients with 
macromedia FLEX.  To make matters more confusing, I've also 
  tried to 
implement the command/control/delegate patterns that the 
above 
  book 
advocates.

Basically, I think the problem is that I'm not seeing the 
Java 
classes I've created.  Below are code snippets of (what I 
think) 
  are 
the relevant files.

### My Java classes ###
{TOMCAT-HOME}\webapps\flex\WEB-


[flexcoders] Workspace Overlapping

2006-04-18 Thread Bjorn Schultheiss
Hi List,

When my workspace is set to its default location

C:\Documents and Settings\user\My Documents\Flex

And I create a new flex project, with the location

C:\Documents and Settings\user\My Documents\Flex

Things work fine :)


Well if I switch workspaces to 

C:\DEV\FLEXB2\

And try to create a new project

Untick default location, which was still set to C:\Documents and
Settings\user\My Documents\Flex

And I try to set the location to

C:\DEV\FLEXB2\

I get C:\DEV\FLEXB2\ overlaps the workspace location C:\DEV\FLEXB2\

Isn't that contradicting



Bjorn Schultheiss 
Senior Flash Developer 

QDC
Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne
3205, VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au/qdc
 
((This transmission is confidential and intended solely for the
person or organization to whom it is addressed. It may contain privileged
and confidential information. If you are not the intended recipient, you
should not copy, distribute or take any action in reliance on it. If you
believe you received this transmission in error, please notify the
sender.---))



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




  1   2   >