Hi Duncan,

I think you're getting into some specifics to do with your setup I can't answer.  I've only briefly touched F1.5 and am really only learning F2.0 just now as well.

I'm busy trying to follow the restaurant example while coding for Flex 2.0 and AMFPHP (which is an interesting learning curve), but I take from it that if you create your RemoteObject based on the info at the amfphp.org site you should be able to follow the rest of the restaurant tut OK.

As regards "how would I for example define a fully qualified source" I'm not sure what you mean, but if you use Mike's example of a service and put it in your amfphp installations service directory - so the php class is fooService and the filename is fooService you would configure the RemoteObject source attribute to be fooService.  As for args I'm not sure on restrictions, but I would've thought sending a VO would be better.  The nature of using remoting and AMFPHP is that you can send actionscript objects and the remoting handles turning into the appropriate object for the language at the other end (PHP in this case) you service can then take the properties and do with them as you will, instead of args.  Does that make sense or even help?

As for http and amf I think they're two different things - the way I think of it is that amf is your object expressed as a sort of binary form of xml (a bitstream or something) and http is the protocol used to send it.  I may be wrong though!  There are far more knowledgeable people on this list that could clarify that.

HTH

Phil

Duncan McMillan wrote:
Thanks Phil

I have further questions if you don't mind:

So I get from your "restaurant" link below that I have to use the
RemoteObject within Flex, but it says that these are used to reference
Java objects in the Java application server. But what I need is to
reference a php service in an XAMPP Apache server on the same labtop as
my Java application with Flex 1.5.

So I take it that the info in the "otherplatforms" link will do this if
I specify the gateway in the RemoteObject tab and the php service in the
source?

So how would I for example define a fully qualified source under my
XAMPP apache server for instance? and am I restricted to the amount of
args I reference?

This example also says that the protocol is http, do I not want to
output in AMF to be quicker?

Thanks for your patience

Duncan


Phil Marston wrote On 06/07/06 14:49,:
  
If you're using F1.5 also check out this tut I found yesterday
http://coenraets.com/tutorials/restaurant/index.jsp - handy for F2.0 as
well if you've done Mike's tut

HTH

Phil

Phil Marston wrote:

    
Hi Duncan,

The .as file does go at the same level as the .mxml file, but I don't
think it'll work with 1.5 because the class libraries are different -
RemotingConnection extends NetConnection and the whole structure of
remoting seems to be different in Flex 2.0

There's stuff on the AMFPHP site though about Flex 1.5 at the bottom
of this page http://www.amfphp.org/docs/otherplatforms.html - if you
get a 404 error just keep trying the server seems to be a bit flakey.

HTH

Phil

Duncan McMillan wrote:

      
Phil

So do you mean that you put this RemotingConnection.as file in the same
DIR as the mxml file? I'm using Flex 1.5 and this example is not working
for me and complaining about the same thing.

I've also tried to take the package declaration out (as I'm not sure if
Flex1.5 likes package declarations) and it still doesn;t work

Thanks again

Duncan


Phil Marston wrote On 06/02/06 12:01,:
 

        
OK - so looks like I dumb!

For those of you who also turn out to be dumb ;-p when Mike speaks about
you already having RemotingConnection.as at the root of your project you
actually need to save the follow package code as RemotingConnection.as
and then you WILL have it!  I've wasted a day and half on this!  jeesh

HTH someone else

Phil Marston wrote:

   

          
I think I've traced it to not having the flash.net.* package installed 
(though Flex Builder isn't throwing a complaint about that it does say 
it doesn't know where it is) where can I get this package/library?

cheers,

Phil

Phil Marston wrote:


     

            
Hi,

I thought I'd seen this covered somewhere but cant find it.

I'm trying Mike Potter's tutorials on Flex2 and PHP and AMFPHP found 
here 
http://labs.adobe.com/wiki/index.php/Flex_Framework:tutorials:flex2_AMFPHP 
and Flex is throwing a wobbly about the line;
public var gateway : RemotingConnection;

with the error
Type was not found or was not a compile-time constant: 
RemotingConnection.  

Can anyone shed light on this or point me in the right direction?

Cheers,

Phil


  

       

              
     

            
-- 
______________________________________________________________ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
______________________________________________________________

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495



--
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=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>
	Computer software development
<http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>
	Software design and development
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>

Macromedia flex
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw>
	Software development best practice
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>



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







 

        
-- 
______________________________________________________________ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
______________________________________________________________

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495
 

      
-- 
______________________________________________________________ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
______________________________________________________________

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495


    



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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


  

-- 
______________________________________________________________ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
______________________________________________________________

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495
__._,_.___

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




__,_._,___

Reply via email to