Does the variable @ContextRoot() not work when making your own .as class? or am I doing something wrong? I've seen examples of setting up the endpoint in the mx:RemoteObject tag with @ContextRoot() but I'd like to get it working with the AS method too: http://livedocs.macromedia.com/flashremoting/mx2004/actionscript_api_reference/mx/remoting/Service.html
this works: var gateway="http://test.com/flashservices/gateway"; var service="com.test.foo"; var ro:Object; ro = new Service(gateway,null,service,null,null); this does not work: var service="com.test.foo"; var ro:Object; ro = new Service("@ContextRoot()/flashservices/gateway",null,service,null,null); it will give me: "Looking up contextroot()..." in firefox's status bar I've also tried no @ and/or making the string prior with {}'s, but no luck ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/