Re: [Flashcoders] remoting with as3 (not flex)

2007-05-05 Thread Leandro Amano

:)

Thanks

[]'s
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader

On 5/5/07, eka <[EMAIL PROTECTED]> wrote:


Ok thanks.. the tortoiseSVN download link is changed :
http://tortoisesvn.net/downloads

i have modify the link in my tutorial :)

EKA+ :)


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] remoting with as3 (not flex)

2007-05-05 Thread eka

Ok thanks.. the tortoiseSVN download link is changed :
http://tortoisesvn.net/downloads

i have modify the link in my tutorial :)

EKA+ :)

2007/5/5, Leandro Amano <[EMAIL PROTECTED]>:


The url download not found:
http://tortoisesvn.tigris.org/download.html
:(

Leandro Amano

On 5/5/07, eka <[EMAIL PROTECTED]> wrote:
>
> Hello :)
>
> you can use the alpha AS3 version of my opensource framework VEGAS :
> http://code.google.com/p/vegas/
>
> To install the libraries :
> http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN
>
> Use the AS3 version of VEGAS with this code :
>
> package
> {
>
>import asgard.events.ActionEvent ;
>import asgard.events.RemotingEvent ;
>
>import asgard.net.remoting.RemotingService;
>import asgard.net.remoting.RemotingAuthentification;
>
>import flash.display.Sprite ;
>
>import test.User ;
>
>public class TestAsgardRemoting extends Sprite
>{
>
>// o Constructor
>
>public function TestAsgardRemoting()
>{
>
>// o Register your shared Class.
>
>User.register() ;
>
>// o Create Service
>
>var service:RemotingService = new
RemotingService()
> ;
>
>service.addEventListener(RemotingEvent.ERROR,
> onError) ;
>service.addEventListener(RemotingEvent.FAULT,
> onFault) ;
>service.addEventListener(ActionEvent.FINISH,
> onFinish) ;
>service.addEventListener(RemotingEvent.RESULT,
> onResult) ;
>service.addEventListener(ActionEvent.START,
> onStart) ;
>service.addEventListener(RemotingEvent.TIMEOUT,
> onTimeOut) ;
>
>service.gatewayUrl = "
> http://localhost/work/vegas/php/gateway.php"; ;
>service.serviceName = "Test" ;
>service.methodName = "getUser" ;
>service.params = ["eka", 30, "
> http://www.ekameleon.net";] ;
>
>// o Launch Service
>
>service.trigger() ;
>
>}
>
>// o Public Methods
>
>public function onError(e:RemotingEvent):void
>{
>trace("> " + e.type + " : " + e.code) ;
>}
>
>public function onFinish(e:ActionEvent):void
>{
>trace("> " + e.type) ;
>}
>
>public function onFault(e:RemotingEvent):void
>{
>trace("> " + e.type + " : " + e.getCode() + " ::
"
> + e.getDescription()) ;
>}
>
>public function onProgress(e:ActionEvent):void
>{
>trace("> " + e.type ) ;
>}
>
>public function onResult( e:RemotingEvent ):void
>{
>trace("---") ;
>trace("> result : " + e.result) ;
>trace("---") ;
>}
>
>public function onStart(e:ActionEvent):void
>{
>trace("> " + e.type ) ;
>}
>
>public function onTimeOut(e:RemotingEvent):void
>{
>trace("> " + e.type ) ;
>}
>
>}
> }
>
> All information about class mapping in AS3 with AMFPHP in my french
> tutorials :
>
>
http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3
>
> EKA+ :)
>
> 2007/4/16, Mark Walters <[EMAIL PROTECTED]>:
> >
> > Is there any class that you know of like RecordSet or ArrayCollection
> for
> > AS3 only projects (not flex)?
> > I'm looking for a class to handle database query results a little
> easier.
> >
> > --
> > Mark Walters
> >
> > [EMAIL PROTECTED]
> > http://digitalflipbook.com
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
Flashcoders@chattyfig.figleaf.

Re: [Flashcoders] remoting with as3 (not flex)

2007-05-05 Thread Leandro Amano

The url download not found:
http://tortoisesvn.tigris.org/download.html
:(

Leandro Amano

On 5/5/07, eka <[EMAIL PROTECTED]> wrote:


Hello :)

you can use the alpha AS3 version of my opensource framework VEGAS :
http://code.google.com/p/vegas/

To install the libraries :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Use the AS3 version of VEGAS with this code :

package
{

   import asgard.events.ActionEvent ;
   import asgard.events.RemotingEvent ;

   import asgard.net.remoting.RemotingService;
   import asgard.net.remoting.RemotingAuthentification;

   import flash.display.Sprite ;

   import test.User ;

   public class TestAsgardRemoting extends Sprite
   {

   // o Constructor

   public function TestAsgardRemoting()
   {

   // o Register your shared Class.

   User.register() ;

   // o Create Service

   var service:RemotingService = new RemotingService()
;

   service.addEventListener(RemotingEvent.ERROR,
onError) ;
   service.addEventListener(RemotingEvent.FAULT,
onFault) ;
   service.addEventListener(ActionEvent.FINISH,
onFinish) ;
   service.addEventListener(RemotingEvent.RESULT,
onResult) ;
   service.addEventListener(ActionEvent.START,
onStart) ;
   service.addEventListener(RemotingEvent.TIMEOUT,
onTimeOut) ;

   service.gatewayUrl = "
http://localhost/work/vegas/php/gateway.php"; ;
   service.serviceName = "Test" ;
   service.methodName = "getUser" ;
   service.params = ["eka", 30, "
http://www.ekameleon.net";] ;

   // o Launch Service

   service.trigger() ;

   }

   // o Public Methods

   public function onError(e:RemotingEvent):void
   {
   trace("> " + e.type + " : " + e.code) ;
   }

   public function onFinish(e:ActionEvent):void
   {
   trace("> " + e.type) ;
   }

   public function onFault(e:RemotingEvent):void
   {
   trace("> " + e.type + " : " + e.getCode() + " :: "
+ e.getDescription()) ;
   }

   public function onProgress(e:ActionEvent):void
   {
   trace("> " + e.type ) ;
   }

   public function onResult( e:RemotingEvent ):void
   {
   trace("---") ;
   trace("> result : " + e.result) ;
   trace("---") ;
   }

   public function onStart(e:ActionEvent):void
   {
   trace("> " + e.type ) ;
   }

   public function onTimeOut(e:RemotingEvent):void
   {
   trace("> " + e.type ) ;
   }

   }
}

All information about class mapping in AS3 with AMFPHP in my french
tutorials :

http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3

EKA+ :)

2007/4/16, Mark Walters <[EMAIL PROTECTED]>:
>
> Is there any class that you know of like RecordSet or ArrayCollection
for
> AS3 only projects (not flex)?
> I'm looking for a class to handle database query results a little
easier.
>
> --
> Mark Walters
>
> [EMAIL PROTECTED]
> http://digitalflipbook.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
--
Leandro Amano
Digital Bug
Chief Creative Officer
Adobe Certified Expert
Adobe Certified Instructor
Adobe User Group Leader
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] remoting with as3 (not flex)

2007-05-05 Thread eka

Hello :)

you can use the alpha AS3 version of my opensource framework VEGAS :
http://code.google.com/p/vegas/

To install the libraries :
http://code.google.com/p/vegas/wiki/InstallVEGASwithSVN

Use the AS3 version of VEGAS with this code :

package
{

import asgard.events.ActionEvent ;  
import asgard.events.RemotingEvent ;

import asgard.net.remoting.RemotingService;
import asgard.net.remoting.RemotingAuthentification;

import flash.display.Sprite ;

import test.User ;

public class TestAsgardRemoting extends Sprite
{

// o Constructor

public function TestAsgardRemoting()
{

// o Register your shared Class.

User.register() ;

// o Create Service

var service:RemotingService = new RemotingService() ;

service.addEventListener(RemotingEvent.ERROR, onError) ;
service.addEventListener(RemotingEvent.FAULT, onFault) ;
service.addEventListener(ActionEvent.FINISH, onFinish) ;
service.addEventListener(RemotingEvent.RESULT, 
onResult) ;
service.addEventListener(ActionEvent.START, onStart) ;
service.addEventListener(RemotingEvent.TIMEOUT, 
onTimeOut) ;

service.gatewayUrl = 
"http://localhost/work/vegas/php/gateway.php"; ;
service.serviceName = "Test" ;
service.methodName = "getUser" ;  
service.params = ["eka", 30, 
"http://www.ekameleon.net";] ;

// o Launch Service

service.trigger() ;

}

// o Public Methods

public function onError(e:RemotingEvent):void
{
trace("> " + e.type + " : " + e.code) ;
}

public function onFinish(e:ActionEvent):void
{
trace("> " + e.type) ;
}

public function onFault(e:RemotingEvent):void
{
trace("> " + e.type + " : " + e.getCode() + " :: " + 
e.getDescription()) ;
}

public function onProgress(e:ActionEvent):void
{
trace("> " + e.type ) ;
}

public function onResult( e:RemotingEvent ):void
{
trace("---") ;
trace("> result : " + e.result) ;
trace("---") ;
}

public function onStart(e:ActionEvent):void
{
trace("> " + e.type ) ;
}

public function onTimeOut(e:RemotingEvent):void
{
trace("> " + e.type ) ;
}

}
}

All information about class mapping in AS3 with AMFPHP in my french
tutorials :
http://www.ekameleon.net/blog/index.php?2006/08/28/48--amf-class-mapping-difficile-en-as3

EKA+ :)

2007/4/16, Mark Walters <[EMAIL PROTECTED]>:


Is there any class that you know of like RecordSet or ArrayCollection for
AS3 only projects (not flex)?
I'm looking for a class to handle database query results a little easier.

--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] remoting with as3 (not flex)

2007-05-04 Thread Dave Lenz

I was playing with this a while ago too
This is the solution I came up with. I have amfphp installed on my  
server.

First I make a class called 'RemotingService':

package {

import flash.net.NetConnection;
import flash.net.ObjectEncoding;

public class RemotingService extends NetConnection {
function RemotingService(url:String) {
			objectEncoding = ObjectEncoding.AMF3; // verander eventueel naar  
AMF0 voor compatibiliteit

connect(url);
}
}
}

Then a class which does the remoting (with some basic parsing):

package {

import RemotingService;

public class Remoting {
private var rs:RemotingService;

function Remoting() {
}

private function getData() {
			rs = new RemotingService("http://www.someadress.com/_amfphp/ 
gateway.php");

var responder:Responder = new Responder(theresult, 
theproblem);
rs.call(classPath, responder);
}
private function theresult(re:Object):void {
for ( var a in re.serverInfo.initialData ){
for ( var b in re.serverInfo.initialData[a] ){
trace(b+" = 
"+re.serverInfo.initialData[a][b]);
};
trace("");
};
}
private function theproblem(fault:Object):void {
trace(fault);
}
}
}

Hope this helps.

Greetings
Ypmits


Op 16-apr-2007, om 17:57 heeft Mark Walters het volgende geschreven:

Is there any class that you know of like RecordSet or  
ArrayCollection for

AS3 only projects (not flex)?
I'm looking for a class to handle database query results a little  
easier.


--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] remoting with as3 (not flex)

2007-04-16 Thread Muzak
DataProvider

AS2: mx.controls.listclasses.DataProvider
AS3: fl.data.DataProvider

In AS2 the DataProvider is a decorator (mixin) for the Array class.

mx.controls.listclasses.DataProvider.Initialize(Array);
var dp:Array = new Array("hello", "world");
trace(dp.getItemAt(0));

In AS3 it's not (but the mixin version is still available).

var arr:Array = ["hello", "world"];
var dp:DataProvider = new fl.data.DataProvider(arr);
trace(dp.getItemAt(0));

Both have methods and dispatch events.

Does that help?

regards,
Muzak

- Original Message - 
From: "Mark Walters" <[EMAIL PROTECTED]>
To: 
Sent: Monday, April 16, 2007 5:57 PM
Subject: [Flashcoders] remoting with as3 (not flex)


> Is there any class that you know of like RecordSet or ArrayCollection for
> AS3 only projects (not flex)?
> I'm looking for a class to handle database query results a little easier.
>
> -- 
> Mark Walters
>


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] remoting with as3 (not flex)

2007-04-16 Thread Mark Walters

Is there any class that you know of like RecordSet or ArrayCollection for
AS3 only projects (not flex)?
I'm looking for a class to handle database query results a little easier.

--
Mark Walters

[EMAIL PROTECTED]
http://digitalflipbook.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com