RE: [flexcoders] Event overloads and the Flex framework

2008-06-30 Thread Mike Nimer
All of those button click - server requests are queued up till the end
of the frame. The Flex/Flash will send them out. I'm not sure about
simple http. But, If you are using the Blaze/LCDS servers, flex actually
sends them all as a set. Basically the servlet will get an Array of
requests. It will then treat them all as individual requests and then
return them as a set.  Doing this helps with the connection limits and
behaves as if you send a lot of individual request.. But this also means
if you have 3 calls you make one after the other, and 2 are really quick
and 1 is really slow. The 2 quick ones will wait for the slow one so
they can all return together. But again that is only if they all get
triggered in the same frame. 

 

There is also a concurrency (I think that is the name) attribute on the
RemoteObject, where you can set it to ignore duplicate responses and
just keep the last one. However the server does get hit for all of them.


 

Hth,

--nimer

 

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fumeng5
Sent: Wednesday, June 25, 2008 2:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Event overloads and the Flex framework

 

Hi,

After a long build we're testing and noticing a lot of time out errors
and other things from remote calls to our Java services. One question
that has been posed to me that I don't know how to answer is this: how
does Flex handle someone clicking madly on a button that invokes a
remote service? For example, is there a 1:1 ratio in the sense that
for each call made there will be a response...eventually, or is there
some threshold where Flex will queue the calls or cancel all pending
calls and only return the last one? 

Just trying to wrap my head around this. If anyone has some experience
with this I'd love to hear. 

Thank you, 

Fumeng. 

 



RE: [flexcoders] Re: One custom component referring to another

2008-06-27 Thread Mike Nimer
Be careful here. There is a possible performance problem with a
application level central model. If you push all of your data through a
central model, then whenever you change ANY property in the model a
propertyChangeEvent is thrown from the model class. So  every UI element
in your application which is bound to any property in the central model
will invalidate their display and re-render itself..   even if it's not
on screen. 

 

I'm with mike on this, bubble the data you need up as needed, but, keep
things as local as possible. You might need to go to a global central
model for some data, every app has a little global data (logged in user,
etc). But in practice, most of the data I've ever referenced is usually
pretty specific to a component or two. So I let the child tell the
parent with an event and the parent can decide which other children need
to know. Children can't tell each other what to do. Or in other words,
let the parent component be the model for sub-components under it. 

 

Hope that helps,

---nimer

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, June 27, 2008 10:38 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: One custom component referring to another

 

My vote would be for changes in A to affect a central model.  B would
watch the model change and reflect those changes.  Everything B needs
from A would be reflected in the model.  That's pretty much what Mike
said, except I'm not a fan of throwing events up if that means
bubbling.  A should dispatch events that the app listens to in order
to change the central model.

 

However, I would think that there is some syntax that should have got
this past the compiler.  If you use the MXMLC -keep option you can see
what it generated and maybe figure out why it didn't work.  

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Labriola
Sent: Friday, June 27, 2008 8:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: One custom component referring to another

 

Jason,

In an ideal world, component A would throw events up. Those events 
would be caught in the application (in this case) and call 
corresponding methods in component B.

You really, really don't want to start coupling these components 
together by calling the internals of one from the other in this way. 
Especially when they really are peers in your application.

Just my 2 cents,
Mike

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

 I thought this would be simple - having one custom display object 
modify another through a reference:
 
 mx:Application 
 c:MyComponentA /
 c:MyComponentB /
 /mx:Application
 
 I want to have MyComponentA refer to objects/methods inside of 
MyComponentB. I tried passing a reference in:
 
 mx:Application 
 c:MyComponentA id=myComponentA /
 c:MyComponentB componentToModify={myComponentA}/
 /mx:Application
 
 But I get an error saying, Access of possibly undefined property 
myComponentA through a reference with static type 
flash.display:DisplayObject.
 
 I tried calling parent.myComponentA from actionscript inside of 
MyComponentB.MXML, but it couldn't find the instance 
of myComponentA. 
 
 How do you handle this? I know this probably isn't ideal 
architecture, but would there have to be scripts that listen for 
events in one component in the main app and then modify the other 
component? I guess I could do that if it is best practice. I need 
the two components to be separated because they are two different 
parts of the UI, but need to interact. One has controls that change 
the view and data in the other. Does it have to modify the other 
component from actionscript on the main app or can I just pass a 
reference into one component like I have tried? 
 
 Thanks.
 
 
 Jason Merrill 
 Bank of America 
 Global Technology  Operations  Global Risk LLD 
 eTools  Multimedia 
 
 Join the Bank of America Flash Platform Developer Community 
blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default
.aspx 
 
 Are you a Bank of America associate interested in innovative 
learning ideas and technologies?
 Check out our internal GTO Innovative Learning Blog 
blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/defau
lt.aspx  subscribe 
blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layo
uts/SubNew.aspx?List=\{41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\}
Source=http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/P
osts/Archive.aspx .


 



RE: [flexcoders] Looking for tool to auto generate class diagrams from a Flex project

2007-12-31 Thread Mike Nimer
Check out the program enterprise architect

 

---nimer

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of andiboarder
Sent: Saturday, December 29, 2007 3:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Looking for tool to auto generate class diagrams
from a Flex project

 

Hi!

I have written an AIR application for my diploma thesis and now i need
to create class 
diagrams for my documentetion. The application has more than 100
classes, so creating the 
diagram by hand would take days. There must be a way to create class
diagrams with Flex 
Builder. The Outline view already shows properties and methodes.

I hope there is a plugin or a tool to create the diagrams, because I
have not enough time left 
to do it by hand.

Thanks in advance,
Andreas Ritter

 



Re: [flexcoders] More 2032 fun

2007-12-04 Thread Mike Nimer
I've seen the same behavior. If I remember right I tracked it down to
being an issue If you don't post any form data with the request flash
ignores the method=post that you set and changes it back to GET for
you.  

 

Hth,

--nimer

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Tuesday, December 04, 2007 12:45 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] More 2032 fun

 

It appears that the problem was that the service was doing a GET rather
than a POST. Which is puzzling, because I set method=POST in an MXML
file. I'll try to figure out where the switch occurs.

On Dec 3, 2007 5:42 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

I have used HTTPService POST with IE6 and some quite large (1.2MB) data
with out problem.  Hmm, that big one was with Flex 1.5, haven't moved
that much with 2.x yet.

Tracy 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Richard Rodseth
Sent: Monday, December 03, 2007 7:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] More 2032 fun

 

Does anyone know of any size issues with HttpService POST data in IE6
and IE7? We're seeing #2032 stream errors when some dynamically created
data reaches a threshold. I'm not sure what the threshhold is in bytes,
but it's not very large, and the other browsers don't have the same
problem. Thanks. 

 

 



RE: [flexcoders] Guid datatype in Flex

2007-11-29 Thread Mike Nimer
 If it does not, the how can i generate unique numbers
 from Flex that can be convertible to Guid in .NET?


 

There is a UUID generator in flex you can use to get a unique id.

 

UIDUtil.createUID()

 

Hth,

---nimer

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Decoursey
Sent: Thursday, November 29, 2007 8:42 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Guid datatype in Flex

 


On Nov 29, 2007, at 7:45 AM, Jehanzeb Musani wrote:

 Hello,

 I am calling a webservice written in .NET. The
 webservice requires MessageId of type Guid to uniquely
 identify the messages.

 Can anyone tell me whether Flex supports Guid datatype
 or not?

It does not.

 If it does not, the how can i generate unique numbers
 from Flex that can be convertible to Guid in .NET?

Generate them in .NET and provide them via a web service to the Flex 
App.

 



RE: [flexcoders] Changing registration point for mx:Resize effect

2006-10-05 Thread Mike Nimer
Try playing with the horizontalCenter and verticalCenter settings too. I've
had some luck with that and scaling.
---nimer

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, October 04, 2006 7:15 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Changing registration point for mx:Resize effect

No, there is no concept of registration point. You'll have to play a Move
effect in parallel with the resize effect, or write your own effect that
does both.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andriy Panas
Sent: Wednesday, October 04, 2006 4:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing registration point for mx:Resize effect


Hello flexcoders,

Is it possible to control the coordinates registration point when
  mx:Resize component is applied?

By default, Flex components define the registration point on the upper
left corner (0,0).

When mx:Resize effect is applied to any Flex 2 container, say
mx:VBox, the component right and bottom border lines change its position,
while left and top border lines remain at the old positions.

I'd like to set registration point to the center of the Flex 2 container
(width/2, height/2) while applying mx:Resize effect to allow changing the
position of all 4 container border lines (top, bottom, left, right).

ps
In Flex 1.5 days Animation Package
(http://www.alex-uhlmann.de/flash/animationpackage/)
by Alex Uhlmann came to the rescue in the similar situation when needed
emulate custom setting of the registation point for MovieClip, but Animation
Package is still in AS 2.0, and nothing similar had been released yet for AS
3.0 that I am aware of.

--
Best regards,
 Andriy  mailto:[EMAIL PROTECTED]
-
Нелимитированный трафик в хостинг-пакетах! http://mirohost.net/



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

* Your email settings:
Individual Email | Traditional

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

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

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

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





RE: [flexcoders] ColdFusion adapter for remoting forgets super classes.

2006-10-03 Thread Mike Nimer










There is an outstanding bug/ER to add support for super cfc
properties. I remember trying to get to it before we shipped CF702, however it
didnt make the cut. Right now your best option is to define a
CFPROPERTY tag for all of the properties (from the super classe) in the
main cfc you are calling.



Trust me you dont want to get access to the java code and
to try to extend it, it wont be as easy as you think it will be. Adding a
few more cfproperty tags is a very very simple workaround. 



---nimer







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of EECOLOR
Sent: Monday, September 25, 2006 10:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ColdFusion adapter for remoting forgets super
classes.















It indeed becomes quite unhandy and exposes you to another
set of human errors. I tried to use an init method in which i would
automatically check the super components for properties and add them to the
property array of the current component. This however was (for me) a bit
difficult because of my lack in good java skills: the properties array is not a
normal array on which you can use the arrayAppend method. 











I submitted it as a bug and hope they will give me the
source code of the 2 responsible methods in the flashremoting-update.jar so
that i can override the methods in order to use a modified version of the
ASToCFSerializer. The modification would be a very simple one: check the
extends property of the metadata and serialize those properties aswell. 

















Greetz Erik





 




__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___





Re: [flexcoders] Using Auth.cfc from CF Wizard

2006-09-10 Thread Mike Nimer


Returning true/false to flex, like you are doing, tells Flash that the authentication was successful and to do what ever you want to do next at the client. However, with the code you have youhaven't told CF the user is authenticated. So if you made some other call that requires roles based security in CF it would fail. 

What you want to do is add a CFLOGIN tag to the method.

hth,
--nimer

something like this:

cffunction name="login" access="remote" returntype=" boolean"cfargument name="user" required="yes" /cfargument name="password" required="yes" /cfset var qRead=""cfquery name="qRead" datasource=" tiomkin" SELECT UserName, UserPassword FROM USERS WHERE UserName = cfqueryparam cfsqltype="CF_ SQL_VARCHAR" value="#arguments. user#" / AND UserPassword = cfqueryparam cfsqltype="CF_ SQL_VARCHAR" value="#arguments. password# " //cfquery

 cflogin
  cfloginuser name="#arguments.user#" password="#arguments.password#" roles="authenticatedUser"/
/cflogin cfif qRead.recordcount gt 0  cfreturn true cfelse  cfreturn false /cfif/cffunction
- Original Message From: envidobi [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Saturday, September 9, 2006 2:09:32 AMSubject: [flexcoders] Using Auth.cfc from CF Wizard

Hi all,Does anyone have a working example of auth.cfc (the file that getsgenerated when using the CF Wizard? I thought the code below would besufficient but its still not working. Any suggestions?CODE:AUTH.CFC:cffunction name="login" access="remote" returntype=" boolean"cfargument name="user" required="yes" /cfargument name="password" required="yes" /cfset var qRead=""cfquery name="qRead" datasource=" tiomkin"SELECT UserName, UserPasswordFROM USERSWHERE UserName = cfqueryparam cfsqltype="CF_ SQL_VARCHAR"value="#arguments. user#" /AND UserPassword = cfqueryparam cfsqltype="CF_ SQL_VARCHAR"value="#arguments. password# " //cfquerycfif qRead.recordcount gt 0cfreturn truecfelsecfreturn false/cfif/cffunctionLOGIN.MXML:?xml version="1.0"
 encoding="utf- 8"?mx:Form xmlns:mx="http://www.adobe. com/2006/ mxml" xmlns="*"width="100%" height="100% " creationComplete= "initApp( )"mx:Metadata[Event("forgotpassw ord")] [Event("loginSucces sful")] /mx:Metadatamx:Script![CDATA[import mx.events.Validatio nResultEvent;import mx.rpc.events. ResultEvent;import mx.rpc.events. FaultEvent;import mx.utils.ObjectUtil ;import mx.controls. Alert;private var lso:SharedObject;private function initApp():void{this.lso = SharedObject. getLocal( "auth");if( this.lso.data[ 'email'] != null ){this.user.text = this.lso.data[ 'email'];this.rememberLogin. selected = true;}if( this.lso.data[ 'password' ] != null ){this.password. text = this.lso.data[ 'password' ];this.rememberLogin. selected
 = true;}}private function isValid():Boolean{var pswdValidResult: ValidationResult Event =this.pswdValidate. validate( this.password. text);if (pswdValidResult. type==Validation ResultEvent. VALID) {return true; }else{return false; }} private function authenticateUser( ):void{if( isValid() ){authManager. login( this.user.text, this.password. text); }} private function errorMessage( msg:String) :void{//Alert.show( ObjectUtil.toString (event.message) );this.errorMsg. text = msg;this.errorMsg. height = 15;this.errorMsg. visible = true;} private function serverFault( event:FaultEvent ):void{errorMessage( event.message[ 'message' ]);} private function login_result( event:ResultEven t):void{// login successful, remember the user.if( Boolean(event. result) ){if( this.rememberLogin.
 selected ){this.lso.data[ 'user'] = this.user.text;this.lso.data[ 'password' ] = this.password. text; }else{this.lso.data[ 'user'] = null;this.lso.data[ 'password' ] = null; }this.dispatchEvent( new Event('loginSuccess ful') );}else{// login didn't work. show messageerrorMessage( "Login unsuccessful" ); }}]]/mx:Scriptmx:RemoteObject id="authManager" destination= "ColdFusion" source="Tiomkin. Tiomkin_Admin. components. cfgenerated. managers. Auth" showBusyCursor= "true"mx:method name="login" result="login_ result(event) "fault="serverFault( event)" //mx:RemoteObject mx:StringValidator id="pswdValidate" source="{this. password} " property="text" required="true" /mx:Text id="errorMsg" visible="true" color="red" width="100%" height="0" /mx:FormItem width="100%"
 label="UserName" required="true" mx:TextInput id="user" width="175"/ /mx:FormItemmx:FormItem width="100%" label="Password" required="true" mx:TextInput id="password" displayAsPassword= "true" width="175"/ /mx:FormItemmx:FormItemmx:CheckBox id="rememberLogin" label="Remember Login"selected="false" //mx:FormItemmx:VBox width="100%" horizontalAlign= "right"mx:Button label="Login" click="authenticate User();"/  mx:LinkButton label="Forgot Password?" click="this. dispatchEvent( new Event('forgotpasswo rd'));"fontStyle="italic" width="150" textAlign="right" //mx:VBox /mx:FormThanks in advance,David

__._,_.___





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

Re: [flexcoders] Save image @ server side with ColdFusion 5

2006-09-01 Thread Mike Nimer


You have 2 options. 

1) You can use the flash FileReference class and upload the image to CF. Just point the url to a .cfm page that has a CFFILE action="" tag on it.

2) If you can upgrade to CF702, you can use one of the Binary encoders, which can convert a BitmapData class to a jpg or png. Then you can send the byte array(no need to base 64 it) as an argument in a Flash Remoting request. and then you can use CFFILE to write the bytearray to disk as an binary file.

http://weblogs.macromedia.com/cantrell/archives/2006/08/actionscript_pn.cfm


Honestly, using the FileReference object in flash will be the easiest. And your only option for CF 5.

---nimer



- Original Message From: Michael Klishin [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Friday, September 1, 2006 5:51:39 AMSubject: [flexcoders] Save image @ server side with ColdFusion 5

Hi,What would you recommend to use to encode ByteArray as Base64 and sendto ColdFusion 5 script to save it?I've never dealt with CF before as I'm the Rails guy so I'm prettystuck...You can just point me to the class I need to investigate ;)Thanks in advance!-- Michael 'Antares' Klishinnovemberain. com | flexwiki.novemberai n.com | osflash.org/ red5 | rubyonrails. ru

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] DataGrid column size (bug?)

2006-08-31 Thread Mike Nimer


In the example below I'm hiding/showingcolumns when you switch between states. The problem is every time I switch between the states the columns that are hidden shrink a little more each time the visibility is turned back on. 

Anyone know how to get the dataGrid to stop resizing the columns, and to honor the hard coded width values? Or what method to call on the datagrid to make it re-calculate the column widths again?

thanks,
---mike

code:
---
?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" currentState="s1"mx:Script![CDATA[[Bindable]public var dp:Array = [{a:"123", b:"abc", c: "[EMAIL PROTECTED]", d:"ABC123"},{a:"123", b:"abc", c: "[EMAIL PROTECTED]", d:"ABC123"},{a:"123", b:"abc", c: "[EMAIL PROTECTED]", d:"ABC123"},{a:"123", b:"abc", c: "[EMAIL PROTECTED]", d:"ABC123"}]]]/mx:Scriptmx:statesmx:State name="s1"/mx:State name="s2"mx:SetProperty target="{test1}" name="width" value="500"/mx:SetProperty target="{test1}" name="height" value="500"/mx:SetProperty target="{b}" name="visible" value="false"/mx:SetProperty
 target="{d}" name="visible" value="false"//mx:State/mx:statesmx:HBoxmx:Button label="state1" click="this.currentState='s1'"/mx:Button label="state2" click="this.currentState='s2'"//mx:HBoxmx:DataGrid id="test1" dataProvider="{dp}"mx:columnsmx:DataGridColumn id="a" dataField="a" headerText="A Column" width="75"/mx:DataGridColumn id="b" dataField="b" headerText="B Column" width="75"/mx:DataGridColumn id="c" dataField="c" headerText="C Column" width="200"/mx:DataGridColumn id="d" dataField="d" headerText="D Column" width="75"//mx:columns/mx:DataGrid/mx:Application
__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] RemoteObject handling 1 method

2006-08-30 Thread Mike Nimer


Sho wrote a great 3 part article on handling Asyc events, this should help you out.
http://kuwamoto.org/2006/05/16/dealing-with-asynchronous-events-part-1/

Also don't forget the mx:method tag, it lets you assign a different result method for each method of your service.

---nimer

- Original Message From: Flex Coders [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, August 30, 2006 8:14:32 PMSubject: [flexcoders] RemoteObject handling 1 method

With a RemoteObject, I have two different servicesthat I need to call. There is a 1-to-1 relationshipbetween a RemoteObject and its result handler. What logic can I use in my result handler to determinewhich method was called on the remote object?Pete _ _ _ _ __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com 

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







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

2006-08-30 Thread Mike Nimer


Trust me Adobe is very anal when it comes to releasing bug free software. And the risk that 1 bug fix could introduce 2 more bugs is a big concern. When companies, hell whole industries,are betting their multi-million dollar businesses on your product you have to be overly cautious and careful. Personally I'm glad they over test. You wouldn't believe how big of deal quality is to the QA team there, trying to get them bend the rules a little is impossible. We should all buy them beer (Lot's and Lot's of Beer!)

For instance it takes over 2 weeks to run all of the regressions on all ofthe supported platforms for Adobe to ship a release (alpha, beta, or final) of ColdFusion. Touch one line of code and the regressions have to start all over. And Flex has a growing regression suite it needs to run, I wouldn't be surprised if it hasn't already surpassed 2 weeks for a full regression test. Especially considering that there are multiple products that are all intertwined. For example, a bug fix in the player has to be tested againstthe FDS server and Actionscript in theSDK to make sure nothing has been broken.Imagine the mess, if millions of people started updatingtheir flash players to the latest version andsites like You Tube or MySpace quit working. 

And if there is a new "bug fix" every few days, or even once a week,the regressions would never complete,and eventually un-tested buggy software would be released, and then we would stop trusting the hot fixes coughMicrosoft/cough. This is whyyou/they have to stop the fix and release cycle periodically, fixlotsof bugs, test test test, and then release an official point release. Otherwise there would be a mutiny in support and they would all give up and quit and there would be no one there to help us. It's a whole binge and purge cycle really.

Anyway, the real reason I replied to this thread to post this link.A must read for anyone who writes software and has to manage bugs.
http://technology.guardian.co.uk/weekly/story/0,,1781895,00.html--nimer



- Original Message From: Louie Penaflor [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, August 30, 2006 6:45:20 PMSubject: RE: [flexcoders] Flex 2 patch timeline



I believe that Adobe is very eccentric when it comes to business models. They are the 700 lb girl. They aren’t anywhere and will be around for awhile, so they can make decisions that might upset people but we will just have to deal with them. I’m not saying it’s always a bad thing. 

I also believe that they have some “loyalty” to the Mac platform. Usually their suite of products are released first on the Mac platform. What worried me about this merger is if Adobe would make decsions that weren’t viewed as “correct” by some people in the industry and that they could change the focus of flash completely.

Who knows. I just hope they won’t destroy such a good tech.

I believe one of the problems is that Flash is just a buggy technology to begin with and that is something I’ve come to accept. If I wouldn’t deal with it, then I wouldn’t be developing in it J







From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Jack CaldwellSent: Wednesday, August 30, 2006 4:50 PMTo: [EMAIL PROTECTED] ups.comSubject: RE: [flexcoders] Flex 2 patch timeline




Paul:

I have 200+ customers.

But as I said before, this isn't going to change anything, so in the future
I will just keep my opinions to myself.

Thanks for your opinion.

Jack




From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Paul AndrewsSent: Wednesday, August 30, 2006 4:40 PMTo: [EMAIL PROTECTED] ups.comSubject: Re: [flexcoders] Flex 2 patch timeline


Jack,



I suspect that you don't run a company of quite the same size of Adobe. 



f you have one or two customers you can just issue a fix as soon as you've done QA. When you have thousands you have major distribution and support overheads that get more costly as you go on.



It's not a question of knowing how to plan, it's big number logistics.



Your not the only one whose been in software development for 27 yearseither..



Paul


- Original Message - 

From: Jack Caldwell 

To: [EMAIL PROTECTED] ups.com 

Sent: Wednesday, August 30, 2006 10:10 PM

Subject: RE: [flexcoders] Flex 2 patch timeline


Paul:

Well . . . . . I must be doing something right . . . . for 27 years.

If you read my post completely I said I did not expect Adobe to be as quick
on fixes as I have been.


It would only be a nightmare, if they did not plan properly.



Maybe I just know how to plan and implement at a faster pace.



But thanks just the same.



Jack





From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Paul AndrewsSent: Wednesday, August 30, 2006 3:55 PMTo: [EMAIL PROTECTED] ups.comSubject: Re: [flexcoders] Flex 2 patch timeline


Jack,



I don't think you appreciate what a nightmare that would be for any development company. The sheer 

[flexcoders] Custom server validation

2006-08-25 Thread Mike Nimer


So I recently came upon an interesting situation. I needed to validate a form entry against data on the server. For example, I wanted to query the db to make sure the quantity that the user typed in was a validamount with the stock on hand. 

My initial thought was that I could just extend the Validator class (so I get all of the validation triggers)and write a flash remoting server side call to validate the data. However, that doesn't seem possible because the doValidation() method, where I would make my Flash Remoting call, has to returnan array of ResultEvents. Which means you can't wait for the result handler to determine if something is valid or invalid.

It seems like server side validation is a common enough thing. Has anyone else tried to do this? How did you get it to work?

thanks,
--nimer

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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 with Coldfusion Beginner

2006-08-25 Thread Mike Nimer


Check out the flex docs on the DataGrid.dataProvider property.

Basically you'll assign the result from CF to a variable and at the same time you'll bind the dataGrid to this variable. Flex will take care of the rest.

hth,
---nimer
- Original Message From: plucka70 [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, August 24, 2006 4:53:08 PMSubject: [flexcoders] Flex with Coldfusion Beginner

I'm a real beginner, and know CF inside out. So I want to use Flex 2. I've read a bit online and got a webservice call working displaying the current time from a cfc.Now I have a cfc generated using the wizard which is a database related one, not sure what to do from here. I seems to generate an array of objects, and each object defines a row in the table, this all makes sense.But how do get this into a flex data grid.I assume I need to loop over the array and populate the data grid using an Action Script function. Conceptually simple, but I'm hoping people can explain the best way to do this and perhaps post a simple sample that takes a table into a data grid.PS: I'd rather not use the full generate wizards available, I'd rather learn how to do it line by line on the Flex side.RegardsDale Fraserhttp://dale.
 fraser.id. au

__._,_.___





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

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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] [Flex2] What do you use for modelling a Flex2 application...?

2006-08-07 Thread Mike Nimer


One of the tools I use is the Flex2 Visio Stencils, real nice when trying to figure out the layout of the UI components.

http://www.digimmersion.com/

---nimer


- Original Message From: Thomas Rühl -akitogo- [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Sunday, August 6, 2006 7:33:04 PMSubject: [flexcoders] [Flex2] What do you use for modelling a Flex2 application...?

Hi folks,it's been a while now, since the Flex2 SDK is out and rockin' ;)Not only for larger projects, multiple teams or team members and documentation purpose, I'd like to know, what everyone is using for modelling a Flex application. For the Java world I know, the tools available are very powerful and work very well out of the box and integrate with each other. There are also things like OmondoUML, which we can be used for designing Java apps (doing use case and sequential diagram sort of stuff) in conjunction with creating the corresponding code.The lack of Flex-specific tools for that kind of work still leads towards endless times spent on the drawing table - at least on my side.So, the question coming up my mind is, in what ways do you all design your Flex applications before/during or after implementation, if any...?Cheers, Thomas - - --Thomas
 RühlDesign, Programming  Conceptsakitogo OHGHanauer Landstrasse 18860314 FrankfurtTelefon +49 (0) 69 800 69 445Fax +49 (0) 69 800 69 449Mobil +49 (0) 179 750 75 87E-Mail thomas.ruehl@ akitogo.comWeb http://www.akitogo. 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] passing VOs using ColdFusion Event gateway Adapter

2006-07-29 Thread Mike Nimer


Seems like it could be a deeper error in the cfml, double check all of the CF logs and see if you can find a better error. 

Also you might want to try sending the object through the flash remoting adapter, to see if you can get either a better message or to confirm that CF doesn't have a problem translating the object type. Flash Remoting and the Event Gateway share the same data type translation layer. 

Also make sure you have the Alias properties in the AS Class and the CFC set correctly and they match exactly.

---nimer
- Original Message From: nigasak [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Friday, July 28, 2006 4:07:00 PMSubject: [flexcoders] passing VOs using ColdFusion Event gateway Adapter

I am using CF Event Gateway Adapter, having a Producer from a flex App that sends messages to the CF Gateway, and a consumer in another Flex App, that is suscribed to the messages generated by the CF Gateway.Hi, I've been trying to do it without success, I have a RequerimientoVO Object with its data already filled, but when I try to do this:var msg : AsyncMessage = new AsyncMessage( );msg.headers. gatewayid = "RequerimientosGate way";//requerimiento is the VO with datamsg.body = requerimientoservice.send( msg );It doesn't works, and I get this error:"Unable to send message to CF Gateway 'RequerimientosGate way': null"however if I change this line:msg.body = requerimiento;for this one:msg.body = new Object();It works, but data arrives to the CFC gateway without type and I have to fill the object myself before sending:msg.body.codigo = requerimiento.
 codigo;msg.body.nombre = requerimiento. nombre;When the CFC returns data from the Gateway to a consumer in another Flex app, it arrives untyped too :-(

__._,_.___





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

2006-07-28 Thread Mike Nimer


countries = event.result. countries as ArrayCollection;
In ColdFusion all queries are returned as a true ArrayCollection objects, so you don't need to create your own. So with this syntax you are just casting, or telling the compiler,the variable that you already know the datatype of (ArrayCollection) is an real ArrayCollection.
countries = new ArrayCollection(event.result.countries as Array);

Here you are telling the compiler the result is an Array, so you need to *create* a new ArrayCollection object based on this array. 
hth,
---nimer

- Original Message From: jtooley_1999 [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Friday, July 28, 2006 2:03:28 AMSubject: [flexcoders] ArrayCollection

Hi all,I am banging my head against the wall on this one.We have an app that runs on two different servers.One calls a CFC and uses mx:RemoteObjectThe other one calls a java servlet using mx:HTTPService but they bothretrieve the same data.With the CFC we are using remoting and we can access the data by goingpublic function geoResultHandler( event:ResultEven t):void{countries = event.result. countries as ArrayCollection;// differenceblah blah blah... more code}and to call itmx:ComboBox id="theCountry" x="10" y="58" prompt="Please Select ACountry" dataProvider= "{countries} " labelField=" country_long"change="setProvince ()" width="90%"This works great.But with mx:HTTPService .. using that way returns null.. so we have touse the followingpublic function geoResultHandler( event:ResultEven t):void{countries = new
 ArrayCollection( event.result. countriesas Array); // differenceblah blah blah... more code}mx:ComboBox id="theCountry" x="10" y="58" prompt="Please Select ACountry" dataProvider= "{countries} " labelField=" country_long"change="setProvince ()" width="90%"Can anyone explain the difference of using a variable as anArrayCollection instead of declaring new ArrayCollection( )ThanksJeremy Tooley

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___


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

2006-07-28 Thread Mike Nimer


Your not doing the same thing

this is casting the object categories = event.result as ArrayCollection;

this is creating new objects
categories = new ArrayCollection( event.result as Array); 
 -or-
 categories = new ArrayCollection( event.result) 

Now why doesn't it work? The event.result variable is already an ArrayCollection. And if you look at the asdoc for the ArrayCollection constuctor, it takes an Array (An ArrayCollection object is NOT an Array ).

Andwhen you do this "new ArrayCollection(event.result) " Your actually doing "new ArrayCollection( SomeArrayCollectionVariable)" And the ArrayCollection constructor doesn't support creating a new ArrayCollection from an existing ArrayCollection.



So things that would work:
Casting
categories = event.result as ArrayCollection;
categories = ArrayCollection(event.result); // notice the lack of the "new" keyword.

Create new
categories = new ArrayCollection( (event.result as ArrayCollection).souce ); // the .source property of the ArrayCollection is a proper Array.


hope that made sense,
---nimer



- Original Message From: Mike Anderson [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, July 27, 2006 5:10:25 PMSubject: RE: [flexcoders] How does Flex 2.0 handle ColdFusion Query results?


Hello Dave and All,

I checked out the Article and it worked!!

But I am confused why it worked... In some respects, I thought I was doing the same thing - but just in a different way. I was wondering if you could explain why one piece of code works, and the code I originallyused did NOT work. For the example code below,you can all assumethat I already declared a public variable called 'categories' , and cast it as an ArrayCollection. ..

For starters, here is the code that works from the Article:

 categories = event.result as ArrayCollection;

And for the code that does NOT work:

categories = new ArrayCollection( event.result as Array);
 -or-
 categories = new ArrayCollection( event.result) ;

If I understand your post correctly, you are saying that the "Event Object" performs some type of "smart conversions" - only when it'sbeingdirectly assignedto a variable? And if that's true, this conversion never getstriggered, when it's placed inside of a Constructor (for example an ArrayCollection) ? This would explain why my code did not work.

I don't know - just thinking out loud here. I would love to know more about how this all works, especially since there were so MANY massive changes from Flex 1.0 Beta, all the way to the latest release version (not to mention Flash Remoting, which the earliest versions of Flex had a lot of similarities to). I am sure learning how this all works, will save me a LOT of headaches down the road - especially since I ONLY write Data-Driven applications (RIA's) which allmake massive amounts of database calls.

Thanks for all your wonderful advice!

Mike




From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Dave CarabettaSent: Thursday, July 27, 2006 1:04 PMTo: [EMAIL PROTECTED] ups.comSubject: Re: [flexcoders] How does Flex 2.0 handle ColdFusion Query results?
On 7/27/06, Mike Anderson [EMAIL PROTECTED] net wrote: 




Hello Shannon :)

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

If you could shed further light, as to why no data shows up in my DataGrid when the app runs, I'd be very grateful :)
Mike,A bit has changed between 1.5 and 2.0 with regard to Flex, and for the better (aka easier). To that end, yesterday I blogged a post on using Arrays vs. ArrayCollections in Flex and, at the bottom, there is a semi-complete MXML application that shows calling an HTTPService and handling the results for display in the DataGrid. In short, the new ResultEvent class should make its way into your code, as that class is the one that has the "smarts" to handle ColdFusion queries and cast it to an appropriate local data structure. Watch for link wrapping: http://www.cbetta. com/blog/ index.cfm/ 2006/7/26/ array-vs- array-collection -in-flex- 2-with-a- coldfusion- slant Hope this helps.Regards,Dave.

__._,_.___





--
Flexcoders Mailing List
FAQ: 

Re: [flexcoders] remote object mapping frustration

2006-07-28 Thread Mike Nimer


I have a hunch the compiler hasn't linked in your AS classes, so when a VO is passed in with flash remoting the flash player doesn't have the as class files in memory so it can't convert the VO into the right classes. 

In your creationComplete function try this: 

{
 var foo1:user = new com.myco.project.user();
 var foo2:address = new com.myco.project.adress();
 var foo3:car = com.myco.project.car();
}

These are throw away vars but they will get the classes linked into the players memory. There are better ways to do this, however this is a quick way to see if this is the problem. 

If this isn't it. Double check the [RemoteClass(Alias="")) property and the alias="" attribute of your CFC, make sure they match "EXACTLY". 


hth,
---nimer

- Original Message From: Douglas Knudsen [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, July 27, 2006 10:12:18 AMSubject: [flexcoders] remote object mapping frustration

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

__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  






__,_._,___


Re: [flexcoders] Difficulty moving app from dev machine to server

2006-07-24 Thread Mike Nimer


Make sure the WEB-INF\flex folders match on both machines, if they do and your still getting the error compare the web.xml files. Also in your cfusion\lib folder you should have 4 jar file that start with "flex-". If you don't you 7.0.2 upgrade probably wasn't successful.


---nimer
- Original Message From: Joe Stramel [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Monday, July 24, 2006 4:55:23 PMSubject: [flexcoders] Difficulty moving app from dev machine to server


I have been struggling to move the app I wrote to my production server. It works fine on my development machine but I get a send error on the client when coming from the server. I am using Remote Objects and CF 7.0.2. I checked the coldfusion-out.log and I am getting the following:

user MessageBrokerServlet:init
user failed to load: flex.messaging.MessageBrokerServlet

Any thoughts?

Thanks!
Joe


__._,_.___





--
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: FDS on CFMX configuration problems

2006-07-24 Thread Mike Nimer


Are you running CF in standalone mode or multi-server? 

If you are in standalone mode, the easiest is to just install the 2 servers independently of each other and start them both up. Once they are running CF and Flex will find each other (assuming your flex server services-config.xml is configured too). 

If you are in multi-server mode you can just deploy the flex.war into a folernext to the cfusion.war (or cfusion-ear folder) and then you are running both servers independent of each other but in the same server instance.

so your folders look something like this:
\jrun4\servers\cfusion
 \cfusion-ear
 \flex

---nimer
- Original Message From: balconsult2001 [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Monday, July 24, 2006 4:21:57 PMSubject: [flexcoders] Re: FDS on CFMX configuration problems

Well, according to the technote (http://www.adobe. com/go/4f079a4d) thecombining of flex and cf is no longer supported.Can anyone (Adobe), publish an updated, step by step instruction togetting a CFMX7, Flex2, and JRun4 installation up and running?I deploy an application that uses all 3 components mentioned, with CFdriving and utilizing Flex 1.5 API's that are embedded in my CF programs.Thanks,Bernie--- In [EMAIL PROTECTED] ups.com, João Fernandes joaofernandes@ ...wrote: Jim,Can you follow, the technote steps? For the merging web.xml, copyeverything except for the messageBrokerServle t from flex web.xml.  To work with FDS, your assemblers must be under your server
 instancewebroot or add a mapping so it can resolve the path to reach it.In my service-config. xml all non-secured amf/http channels point toport 80. Default RMTP and CF RMTP port channels as they are by default(2038  2048). In my cf admin page, I activated support for remoting +FDS defining a channel ID (I set the same as my instance name). If wecluster several server instances, I bet that the same name must bedefined in every single node (not tested).  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 joaofernandes@ ... mailto:joaofernand [EMAIL PROTECTED] From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com]On Behalf Of Jim Sent: sexta-feira, 7 de Julho de 2006 0:47 To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Re: FDS on CFMX configuration problemsWell that is encouraging that you were able to get them working  together. Are you using the Mulitserver (JRUN4) option for CFMX7?  And if so, is your WEB-INF directory in a webroot? Did you have to  do any tweaking to services-config. xml? Write us the technote that  Adobe won't man...c'mon (grin).  Jim  --- In [EMAIL PROTECTED]
 ups.commailto:flexcoders% 40yahoogroups. com , João Fernandes  joaofernandes@ mailto:joaofernand es@  wrote: The only problem that I see running seperated instances of FDS   CFMX is the fact that FDS doesn't ship with the remoting for CF so  when you define CF remoting destinations( the "ColdFusion" one) it  throws an error, so to be able to use a mix of remoting + data  management you'll have to keep 2 xml files, one for FDS and one for  compilation. If there is another way, I didn't find any  documentation about it.I have it running CFMX7+ FDS and now without issues but more  documentation about this would be nice.One of the issues about the technote is the fact that FDS and  CFMX7 both uses a MessageBrokerServle t definition. I kept the CF  (the Flex one
 couldn't load those CF remoting Classes)João Fernandes-Original Message-  From: [EMAIL PROTECTED] ups.commailto:flexcoders% 40yahoogroups. com on behalf of Jim  Sent: Thu 06-Jul-06 7:54 PM  To: [EMAIL PROTECTED] ups.com mailto:flexcoders% 40yahoogroups. com   Subject: [flexcoders] Re: FDS on CFMX configuration problemsI tried the same thing (combining FDS with CFMX 7.0.2) using the   same technote and wasn't able to get it to work. I emailed an   insider at Adobe on the Coldfusion team I met at the CFObjective   conference and learned that they aren't very happy with that   technote and
 recommended that I run FDS and CFMX separately for  now.I haven't tried that yet, but apparently you did and it was   working, which is encouraging to me. I've spent three days trying  to   get FDS working with a fresh installation of CFMX 7 Multiserver  (JRun4) option. The WEB-INF directory installs in the nested   directories within the JRun4 folder, but the new CF/Flex Wizard   expects the WEB-INF to be in the webroot.I've been having issues with the services-config. xml file. I found  a   copy of the file Ben Forta uses on the sys-con website which has   worked so far.But if you manage to combine FDS and CFMX 7 and get them working,   please share what you did.Thanks,Jim Pickering--- In
 [EMAIL PROTECTED] ups.commailto:flexcoders% 40yahoogroups. com , "Tom Bray" tombray@ wrote: When I first started 

Re: [flexcoders] return STRUCT type from CFC to flex

2006-07-20 Thread Mike Nimer


Next time you run intoa problem like this, you can use this to dump what is being returned and figure out what's wrong.

http://www.mikenimer.com/index.cfm/2006/7/5/FlexDebugPanel

---nimer

- Original Message From: Nick Collins [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Thursday, July 20, 2006 10:00:37 AMSubject: Re: [flexcoders] return STRUCT type from CFC to flex

OK, I am using RemoteObject. Tom's suggestion of putting the variables all UPPERCASE worked! Thanks Tom.I think I do have value object created in the CFC. I'm not familiar with what exactly you're referring to, but this is what I have to create the variables: cfset results = StructNew()  cfset results.userValid = "true"  cfset results.userRole = #valuelist(GetSessionSecurity.levelid)#cfreturn resultsIn any case, it works now. Thanks again!

__._,_.___





--
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: Flex and CF

2006-07-19 Thread Mike Nimer


Joao,
Your right there isn't much information, and we need more. We'll work on that.

However, to answer you question now. To get this working so you can call FDS destinations of CF via Flash Remoting you would do it this way.

1) Configure CF on 1 instance/server
2) Configure FDS on 2nd instance/server
3) Point your project at the services-config.xml in the FDS instance.

Ok at this point you can easily call FDS destinations which use CF (or not). Now to also call Flash remoting.

4) Define the destination and channel with Actionscript, instead of letting the compiler do it when it is pointed at the CF version of the services-config.xml

To create you own ChannelSet the code would look something like this.

--
public var cSet:ChannelSet;

public function initApp()
{
 cSet= new ChannelSet();
 var customChannel:Channel = new AMFChannel("my-cfamf", http://localhost:8500/flex2gateway/); // Add the Channel to the ChannelSet. cSet.addChannel(customChannel); foo.channelSet = cSet;
}

mx:RemoteObject 
 id="foo" 
 destination="ColdFusion" 
 source="com.foo.component"/
---

Note: You can use this ChannelSet technique instead of the -services compiler flag too. And you can use it, if you want to use something like FlashVars to change the endpoint url.


hope that helps,
---nimer
- Original Message From: João Fernandes [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, July 19, 2006 1:52:29 PMSubject: RE: [flexcoders] Re: Flex and CF

Damon,but there isn't much information if you want to use RPC + FDS. All examples are RPC or FDS only, not the mix.If you define your CF RPC destination inside FDS it won't work and there isn't any example, best-practice or a technote how to implement this correcly.If you merge FDS+CF this works fine. If Adobe could publish any additional documentation how to achieve this (RPC+FDS), I think everyone would be grateful.João Fernandes-Original Message-From: [EMAIL PROTECTED] ups.com on behalf of dcooper2025Sent: Wed 19-Jul-06 6:38 PMTo: [EMAIL PROTECTED] ups.comSubject: [flexcoders] Re: Flex and CFPeople seem to think they need to jam FDS into the CF instance to get them to work together for some reason, likely
 because that's the main config setup with CF + Flex 1.5, but that's not necessary at all any longer with Flex 2 FDS. With Flex 2 and FDS, you absolutely do not need FDS installed into the CF app instance for things to work. We designed them to live together on the same machine or seperately on different machines/instances, but we didn't spend much time on the case where people would try to get FDS inserted into the CF instance itself. I suppose there are valid arguments for wanting to do this, but with the RMI interface between the two now with Flex 2, and the existing Flex 1.5 bits already living in the CF7 instance for CF7 Flash Forms, etc (and the potential for conflict between Flex 1.5 and Flex 2 bits in package names, etc, etc), we thought it best to recommend the use case where CF and Flex 2 FDS are not living in the same webapp instance.Hopefully that makes sense.Damon--- In [EMAIL PROTECTED] ups.com, "Jim" jackofwebtrades@ ... wrote: Damon,  When you say, "They live nicely side-by-side, " how is Coldfusion loaded? Built-in Web Server, Multiserver (JRUN4), Using IIS or Apache? Do they work side-by-side if CF is loaded with JRUN and FDS is loaded with JRUN too, on the same machine?  Coldfusion developers everywhere are having issues getting FDS Express to work with CF. Sure we can update CF to 7.0.2. We can even install FDS. That's easy. But logic identifies one similarity between CF and FDS...ah, they both use JRun. So logic says, they should be able to use the same JRun installation; have one single JRun folder. Is that not the case? (I've seen the technote that has us combining web.xml files, coping over
 other files to the lib folder, etc...but that technote is bogus.)  Thanks,  Jim Pickering --- In [EMAIL PROTECTED] ups.com, "dcooper2025" dcooper@ wrote:   Specifically, you can just install Flex Enterprise Services on a   J2EE server on the same machine as CF, configure everything and   you're good to go. They live very nicely side-by-side.FYI, we've made the CF 7.0.2 doc for CF/Flex 2 integration available   online where you can quickly reference it as needed" http://www.adobe. com/go/cfmx702do cs and the ColdFusion 7.0.2 install instructions are here: http://www.adobe. com/go/flex2_ cf_installation HTHDamon--- In [EMAIL PROTECTED] ups.com, "Brian Holmes" bholme@ wrote: Hi everyone,   Can anyone point me in the right direction of getting CF and FDS   up on   the same server, as it would be on production server. A deployment   guide   or old thread would be nice. Specifically I'm trying to load flex   applications and widgets in our already established CF framewok. Thanks,   Brian   
  ***   The information in this e-mail is confidential and intended solely   for the individual or 

Re: [flexcoders] Flex Builder 2 RDS Connection problems

2006-07-19 Thread Mike Nimer


Try connecting with Homesite or Dreamweaver, if you have them. If that works compare the configuration. 

---nimer
- Original Message From: Brian Holmes [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, July 19, 2006 2:56:41 PMSubject: [flexcoders] Flex Builder 2  RDS Connection problems


Has anyone else had trouble connecting to RDS from Flex Builder 2other than localhost? I can definitely connect in Dreamweaver to a RDS server on
our network but it doesn't even appear as if Flex Builder is even trying to access the network. I get an error message instantly saying "unable to contact the RDS server" no matter what I've tried.


It's on port 80
no context root
and the RDS password i'm using is correct.
I've also tried using the ip address for the host name instead of the resolved name.

One thing I was wondering is if running a desktop firewall would effect being able to connect to it.


Thanks,
Brian



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


__._,_.___





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








   






  
  
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: FDS on CFMX configuration problems

2006-07-07 Thread Mike Nimer



You are right, this is the tricky part. However, there is an easy way around it. Install CF and Flex separately (2 jvm instance, or 2 wars in the same instance). Then point you projects -services option to the flex2 services-config.xml. This will allow you to use the FDS and messaging stuff. And to use ColdFusions Flash Remoting you will create and configure the Channel via actionscript instead of letting FlexBuilder do it automatically. I don't have the exact syntax, but you want to create a ChannelSet object, and set the mx:RemoteObject channelset property to be the channel set instance you created. When you are creating the ChannelSet object, really the only important thing is the endpoint url to the CF FlashRemoting servlet "/flex2gateway/"hth,  ---nimerJoão Fernandes [EMAIL PROTECTED]
 wrote:  The only problem that I see running seperated instances of FDS  CFMX is the fact that FDS doesn't ship with the remoting for CF so when you define CF remoting destinations(the "ColdFusion" one) it throws an error, so to be able to use a mix of remoting + data management you'll have to keep 2 xml files, one for FDS and one for compilation. If there is another way, I didn't find any documentation about it.I have it running CFMX7+ FDS and now without issues but more documentation about this would be nice.One of the issues about the
 technote is the fact that FDS and CFMX7 both uses a MessageBrokerServlet definition. I kept the CF (the Flex one couldn't load those CF remoting Classes)João Fernandes-Original Message-From: [EMAIL PROTECTED]ups.com on behalf of JimSent: Thu 06-Jul-06 7:54 PMTo: [EMAIL PROTECTED]ups.comSubject: [flexcoders] Re: FDS on CFMX configuration problemsI tried the same thing (combining FDS with CFMX 7.0.2) using the same technote and wasn't able to get it to work. I emailed an insider at Adobe on the Coldfusion team I met at the CFObjective conference and learned that they aren't very happy with that technote and recommended that I run FDS and CFMX separately for now.I haven't tried that yet, but apparently you did and it was working, which is encouraging to me. I've spent three days
 trying to get FDS working with a fresh installation of CFMX 7 Multiserver(JRun4) option. The WEB-INF directory installs in the nested directories within the JRun4 folder, but the new CF/Flex Wizard expects the WEB-INF to be in the webroot.I've been having issues with the services-config.xml file. I found a copy of the file Ben Forta uses on the sys-con website which has worked so far.But if you manage to combine FDS and CFMX 7 and get them working, please share what you did.Thanks,Jim Pickering--- In [EMAIL PROTECTED]ups.com, "Tom Bray" [EMAIL PROTECTED] wrote: When I first started working with FDS, I used the standalone version with integrated JRun and had FB configured to launch FDS and direct its logging to the output pane in FB. I was happy.  Now, I'm trying to configure FDS on
 top of CFMX and haven't had much success. I used the instructions below at this link: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4dpss=rss_flex_4f079a4d. It would be very helpful if Adobe would expand upon those instructions with the steps for getting the sample apps up and running.  Also, the instructions for setting up debugging ( http://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:Debugging) need to be updated for the final release of FDS and I'd love to see a similar document for setting up debugging with FDS on CFMX.  In the meantime, I'm having errors that I don't know how to get additional information on.
 I'm trying to get the notes sample app running, and I get this error:  [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500"]  Subscribing to the notes destination works, but sending a message doesn't. I obviously need more details to diagnose the problem, so an explanation of how to see that logging information would be awesome.  Thanks,  Tom 
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.
__._,_.___





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