If you are using https your Connection object code below is using http.
Also if you want your code to be domain inspecific, you may want to do
the following
var url:String = _root._url;
if( url.indexOf( "http") != -1 ){
domain = url.substr(0, url.indexOf("/",7) );
}else{
//will use this when developing
domain = "https://<ip>:<port>";
}
----- Original Message -----
From: David Lush <[email protected]>
Date: Thursday, June 2, 2005 11:11 am
Subject: RE: [Openamf-user] NetConnection.Call.Prohibited
> My apologies, I didn't rtfm as required :-(
> *hangs his head in shame*
>
> Until this point I've been using the default gateway, but I've now
> goneback and configured my web.xml to use the AdvancedGateway as
> follows;
> <!-- ============================================= Servlet
> Definitions=== -->
> <servlet>
> <servlet-name>OpenAMFGatewayServlet</servlet-name>
> <servlet-class>org.openamf.AdvancedGateway</servlet-class>
> <init-param>
> <param-name>OPENAMF_CONFIG</param-name>
> <param-value>/WEB-INF/openamf-config.xml</param-value>
> </init-param>
> <load-on-startup>10</load-on-startup>
> </servlet>
> <!-- ================================================ Servlet
> Mappings=== -->
> <servlet-mapping>
> <servlet-name>OpenAMFGatewayServlet</servlet-name>
> <url-pattern>/gateway</url-pattern>
> </servlet-mapping>
>
> And added the following service configuration near the bottom of my
> openamf-config.xml (I intend to allow access to all methods of the
> FlashGatewayBD)
>
> <service>
> <name>FlashGatewayBD</name>
>
> <service-location>flashapp.flashgateway.FlashGatewayBD</service-
> location>
> <invoker-ref>Java</invoker-ref>
> <method>
> <name>*</name>
> <parameter>
> <type>*</type>
> </parameter>
> </method>
> </service>
>
> Also I'm doing this over https if it makes any difference? and the swf
> concerned is served from an https page which hasn't caused any
> problemsto this point.
> Still having a similar problem though :-/
>
> As for netconnection debugger, I've had problems ever since I started
> using it. It'll just stop receiving messsages that I know are being
> sentbackwards and forwards. Only solution I've found is to kill off
> everything flash related and reload it all, can be very frustrating
> :-(
> But I'm not on here to gripe about things that are beyond my
> control ;-)
>
> Thanks for any direction you can provide with the above problem though
> :-)
> Dave
>
> -----Original Message-----
> From: Leif Wells [mailto:[email protected]]
> Sent: 02 June 2005 15:09
> To: [email protected]
> Subject: Re: [Openamf-user] NetConnection.Call.Prohibited
>
>
> It sounds to me like you may not have configured your openamf-
> config.xmlfile correctly.
>
> Have you done that? Do you have the gateway listed as a service and
> eachmethod being called listed? The default openamf-config.xml has
> clearexamples of how to do this.
>
> As far as the NetConnectionDebugger goes, I have *never* had it crash
> (or is it crashing?) How exactly are you using it? What are your
> expectations? What are you seeing?
>
> Leif
>
> On 6/2/05, David Lush <[email protected]> wrote:
> >
> > Hi,
> > I've just started using openamf in favour of macromedias
> flash
> > remoting in the past few days. First of all, good work on getting
> such
> > a product out to the open-source community :-D I had everything
> > working the other day, starting with a simple hello world passing
> a
> > few strings back and forth, then using ASTranslator to pass some
> value
> > objects around, was quite happy with myself ;-) . But I've just
> come
> > back to it today and figured I best change the URL in my Service
> > constructor, to make sure it works on remotely as well as with
> > localhost e.g.
> >
> > commonService = new Service(
> > "http://somedomain:8080/TestApp/gateway",
> > null,
> > "flashgateway.FlashGatewayBD",
> > null,
> > null);
> >
> > And I've started getting the error message
> > 'NetConnection.Call.Prohibited' in macromedia's netconnection
> debugger
> > (buggy piece of crap btw ;-( if anyone knows hot to make this
> thing
> > work reliably without suddenly dying I'd appreciate an email) My
> swf
> > is embedded in a jsp with the following code;
> > <object width="396" height="500">
> > <param name="allowScriptAccess" value="sameDomain" />
> > <param name="movie" value="logon.swf">
> > <embed src="flash/logon.swf" width="396" height="500" />
> > </object>
> >
> > Googling this message only turns up a couple of results and it
> appears
> > to be otherwise undocumented :-/ Do I need to create on of these
> > crossdomain.xml files ? and if so where should I be putting it?
> in
> > '/WEB-INF/' ? Any help and/or guidance anyone can provide would
> be
> > grealy appreciated Cheers Dave
> >
> > PS
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-
> q22005_______________________________________________
> Openamf-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openamf-user
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit http://developer.yahoo.net/?fr?fad-ysdn-ostg-
> q22005_______________________________________________
> Openamf-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openamf-user
>
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.