Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat could be the reason Flash doesn't respond on local Zend_amf services?
    primarykey
    data
    text
    <p>I've (actually my classmate) got a problem with loading local ZEND_AMF services on Windows 7 (XAMPP). I can't find any answer on Google or on Stackoverflow. I found one similar topic without any answers: <a href="https://stackoverflow.com/questions/6201474/actionscript-3-amf-zend-fails-silently">ActionScript 3 AMF Zend fails silently</a></p> <p>Let me describe the problem: I've developed the UI and dataloading for a Memory(matching) Game in FLASH CS5. The games uses data from an ZEND Framework website (you can add levels/cards/images there). IT happens like this:</p> <pre><code>var nc:NetConnection = new NetConnection(); nc.connect("http://localhost/MemoryGame/public/service/gateway"); var res:Responder = new Responder(returnDataList,returnError); nc.call("Service_GatewayService.getWorldsList",res); </code></pre> <p>Everything works fine on my Macbook Pro (Using MAMP as local server), but a classmate (who's helping with it) of me that is using a Windows 7 laptop with XAMPP doesn't see anything. We're both using Flash CS5.5.</p> <p>For some reason his Flash isn't able to load local services. When he uses the same URL path like me Flash doesn't do anything in the responder. No Error function call and No Complete function call. We've been searching for the cause and tried several things.</p> <p>In a ZEND_AMF tutorial on the Internet we've found an online AMF Service and put that in the code. Of course we're using a nonexisting service function so the responser will call the Error function. And yes, this works. He runs the function <code>returnError()</code>. </p> <p>The cause of this problem is obvious: Flash on my classmates PC (using XAMPP) won't load local services. </p> <p>Does anyone know a solution for this?</p> <p>What isn't the solution:</p> <ul> <li>Allowing swf to correspond with non-local URLs (is an option where you have to add your swf to the Flash settings) => Has happened</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload