Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flex > Flex 2 & 3

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-26-2006, 06:36 PM   #1
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default connecting flex with as class

so i have a flex form that connects to a cfc on the server to load, update, insert and delete records from a db.

in the flex form i use
Code:
	<mx:WebService
      id="projectObject"
      useProxy="false"
      wsdl="http://myserver/perfrep/cfcs/project.cfc?wsdl">  
		<mx:operation  name="getAllProjects" result="handleProjLoad_Result(event)" fault="handleProj_Fault(event)"/>
		<mx:operation  name="addProject"     result="handleProjAdd_Result(event)" fault="handleProj_Fault(event)"/>
   	</mx:WebService>
to connect to the cfc. this all works great.

my question is this.
i have a project class that holds all teh data for a particular project. the project can be changed etc., from the project how would i connect back to flex to and use the method in the 'projectObject' (listed above) to pass teh info back to the cfc.

optimally, i would use remoting from as3 (inside the class), and let the class make the connection and update itself....

if im going about this all wrong, or you have suggestions on how to get teh data from the class to the <mx:webservice> object, or you can lead me in the right direction to do it with as3 remoting.... that would be great.

thanks.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the mx.util.Delegate class within your classes! madgett ActionScript 2.0 3 09-03-2007 12:11 AM
Extendings class... simonboris ActionScript 2.0 0 02-25-2006 05:53 PM
Database simulated with arrays on a cd-rom lecasn5 Components 61 09-07-2004 12:40 PM
card game: designing Deck class and good OOP? pigpen Gaming and Game Development 1 11-26-2002 12:41 PM


All times are GMT. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.