PDA

Volledige versie bekijken : AS2.0/CS3 en remoting


Freshface
%Europe/Berlin %893 %2007, 22:26
Hey

Wil net afmphp gaan testen, geen problemen maar ik moet een component voor flash 8 downloaden, maar ik heb cs3... zonder de component krijg ik deze errors:

The class or interface 'PendingCall' could not be loaded.
The class or interface 'ResultEvent' could not be loaded.

Dit is mijn code


import mx.remoting.*;
import mx.rpc.*;
import mx.utils.Delegate;
import mx.remoting.debug.NetDebug;

//Change the gateway URL as needed
var gatewayUrl:String = "http://localhost:8888/flashservices/gateway.php";

NetDebug.initialize();
service = new Service(gatewayUrl, null, "HelloWorld");


//Pings back a message
function say(sMessage)
{
var pc:PendingCall = service.say(sMessage);
pc.responder = new RelayResponder(this, "handleSay", null);
}


function handleSay(re:ResultEvent)
{
//Implement custom callback code
}



Heb ik die component nodig of doe ik iets verkeerd?
PS: Ik heb de component geinstaleerd maar werkt ook niet.

Thx

Freshface
%Europe/Berlin %471 %2007, 12:18
Niemand? Of moet ik maar teruf Flash 8 gaan gebruiken.

diamondo
%Europe/Berlin %472 %2007, 12:20
gebruik je mischien AS3 ???

dat find ik niet pretig werken, _root enzo is allemaal weg :|

Diamondo25

Freshface
%Europe/Berlin %474 %2007, 12:23
Leer lezen, zie topic titel.
Wat heeft jouw antwoord met mijn probleem te maken?

freddelm
%Europe/Berlin %628 %2007, 16:05
hey, found some info on:
adobe feed (http://www.adobe.com/cfusion/webforums/forum/rss.cfm?forumid=15&catid=250)

1. Copy Remoting and RPC Folders from your Documents and settings location TO FLASH CS3 LOCATION.

C:\Documents and Settings\YOURUSERNAME\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx
to
C:\Documents and Settings\YOURUSERNAME\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Classes\mx

2.Copy Remoting.Fla From.

C:\Documents and Settings\YOURUSERNAME\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Libraries
To
C:\Documents and Settings\YOURUSERNAME\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\Libraries

3. Copy NetConnection Debugger.swf and Service Browser.swf from.

C:\Documents and Settings\YOURUSERNAME\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\WindowSWF
To
C:\Documents and Settings\YOURUSERNAME\Local Settings\Application Data\Adobe\Flash CS3\en\Configuration\WindowSWF

4. Copy NetConnection Debugger.swf and Service Browser.swf from or WindowSWF folder.

C:\Program Files\Macromedia\Flash 8\en\First Run\WindowSWF
To
C:\Program Files\Adobe\Adobe Flash CS3\en\First Run\WindowSWF

5. Copy the Libraries Folder.

C:\Program Files\Macromedia\Flash 8\en\First Run
to
C:\Program Files\Adobe\Adobe Flash CS3\en\First Run

6. Copy Remoting and RPC Folders from your Program Files location TO FLASH CS3 LOCATION.

C:\Program Files\Macromedia\Flash 8\en\First Run\Classes\mx
To
C:\Program Files\Adobe\Adobe Flash CS3\en\First Run\Classes\mx

7. Copy the RemotingConnector.swc from.

C:\Program Files\Macromedia\Flash 8\en\First Run\Components\Data Components
to
C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Components\Data

This will allow you to use the Remoting component in Flash cs3 just as you did in Flash 8. You will still need to use them in Action Script 2.0 Files.

greetings F. ;)

Dauntless
%Europe/Berlin %648 %2007, 16:33
Als je gewoon enkel de classes download van Adobe.com, zou het ook moeten werken :).