Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / September 2005



Tip: Looking for answers? Try searching our database.

please help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
amitsa - 30 Sep 2005 09:22 GMT
this is the error i am getting
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: The property being
referenced does not have the static attribute.
     NetServices.setDefaultGatewayUrl("http://localhost:8080/flashgateway")

this is the code i have written...

mx.remoting.Service.Service

//creating a default gateway for remoting
NetServices.setDefaultGatewayUrl("http://localhost:8080/flashgateway")

//creating a connection for remoting
gatewayConnnection = NetServices.createGatewayConnection()

//create a service to connect to POJO
flashtestService =
gatewayConnnection.getService("flashgateway.samples.Weather", this);

function getData(){
    flashtestService.getTemprature(123)
}

function getData_Result(result){
    name_txt.text=result
}
STHG - 30 Sep 2005 10:54 GMT
// You need to import the NetServices class and remove the incorrect line
"mx.remoting.Service.Service"
import mx.remoting.NetServices;

//creating a default gateway for remoting
NetServices.setDefaultGatewayUrl("http://localhost:8080/flashgateway")

//creating a connection for remoting
gatewayConnnection = NetServices.createGatewayConnection()

//create a service to connect to POJO
flashtestService =
gatewayConnnection.getService("flashgateway.samples.Weather", this);

getData();    // You need to call the function getData that you defined below

function getData(){
flashtestService.getTemprature(123)
}

function getData_Result(result){
    name_txt.text=result
}
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.