AMF connection working on browser, not in stand alone player

Greetings,
I'm trying to communicate my SWF file with PHP using Zend_Amf. I compile the flash side using Flex SDK 4.
Whenever I try to run the swf using the stand alone player (the projector), I always get a NetConnection.Call.BadVersion event. However, when running exactly the same file thorught the player of the browser (even not thoguht a server, just using the file:// kind of address), everything works OK, so I know my code is not completely wrong.
I thought this could be related with the security sandbox. However, I added the folder where my swf file is to the global trusted folder; and actually made sure that Security.sandboxType returns "localTrusted". How ever, that didn't fix anything.
So I'm out of ideas. Any suggestion on where to look next?

Here's my code, in case its needed (it's a pretty straightforward hello world example):
PHP SIDE:
$a = new Amf_Model_Test();
$server = new Zend_Amf_Server();
$server->setClass('Amf_Model_Test');
echo $server->handle();
class Amf_Model_Test
* return string               
public function greet()
    return "hello";
AS SIDE:
public class main extends Sprite
private var _resp: Responder;
private var _nc: NetConnection;
private var tf: TextField;
private var _gateway: String;
public function main()
tf = new TextField();
tf.width = 500;
tf.border = true;
tf.borderColor = 0x0000FF;
addChild(tf);
      _gateway = 'http://cms.loc/amf';
_resp = new Responder(onResult, onFault);
_nc = new NetConnection();
_nc.connect(_gateway);
_nc.client = this;
_nc.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
_nc.call("Amf_Model_Test.greet", _resp);
private function onNetStatus(event: NetStatusEvent): void
trace(event.info['code']);
tf.text = "Status = "+event.info['code'];
private function onFault(result: Object): void
tf.text = "Fault = " + String(result);
private function onResult(result: Object): void
      tf.text = "Result = " + String(result);
In my browser, I get "Result = hello", as expected. In the stand alone player (which is exactly the same version) I get "Status = NetConnection.Call.BadVersion".

Similar Messages

  • Flash Player Renders Images Differently in Browser than Stand-alone Player

    Hey, guys!
    Not sure if this is a Flash issue or a Flash Player issue, but here we go...
    I`m currently working on a Flash project with a great deal of images.
    Flash does a great job compressing images, but in some cases it messes up the colors.
    I have a big image on the background and it`s set to 80 compression from the Properties panel.
    Everything looks fine in the stand-alone Flash Player when exporting from the IDE or even opening from disc, but when I insert the SWF in a HTML page (with SWFObject, dunno if it matters) some werid artifacts show up, and also the colors get shifted to slightly different values (I can tell since I have a background that should match the SWFs background!)...
    There is a workaround, though. Setting compression to Lossless... Then everything looks EXACTLY the same both in the stand-alone player and in the browser. Just that you end up with a 900 kilo image instead of 200 and something... :|
    And if you have several images that have to be treated "Losslessly", you end up with a pretty big SWF!
    My other workaround was to sample the colors in the browser and modify the ones in my CSS for the HTML background.
    That works well for the colors, but I still end up with some ugly artifacts, even when compression is set to 100!
    And, again, the strange thing is that in the stand-alone player, everything is honkey dorey, the colors and all!
    NOTE: the project I`m working on is a Flash 10 file, ActionScript 2, if that would matter...
    Thank you for your time and I appreciate any suggestion/explanation!
    Alex

    i've had a problem before with the fps and a mac.
    how big is your file?
    i usually make my movies around 24 fps to keep load off of
    the cpu which could make it run slower

  • Code behaves different when SWF is in browser as opposed to stand alone player, why?

    In ActionScript, I have some code that dispatches a
    MOUSE_OVER event when a tween is complete. I am using Tweener for
    the tween. On my Mac OSX machine, I preview the SWF file in a stand
    alone player spawned from my Flash IDE, and the event is dispatched
    and the behavior works as expected, but when I preview the SWF file
    as embedded in a MacOSX browser, the event is not dispatched. On a
    Windows machine, however, the event is dispatched both in a stand
    alone player and within the embedded SWF file in a browser. The
    problem seems to come particularly from the Mac OSX player.
    Has anybody ever experienced this? Is the OSX implementation
    of the Flash player different in a stand alone and browser setting?
    Here is the code that I am using:

    HMMM! Verrrrrry interesting.
    Yes file size is an issue, it's a large project.
    Exterenally host it?
    Where could I go and do that?
    I'm not familiar with this process.  Can you please tell me exactly how it works? 
    And....that means both servers need to be up and running?  Kinda sounds a bit shakey.   This project needs to be strong and stand alone to go here and there.  Durable.   
    I feel safer if its all in one piece.  Bam.
    You know, I noticed "FAST" and "BEST" does not make a difference to file size or quality. 
    Could I be wrong?
    Thanks.

  • Audio crackling killing FCP audio but not in stand alone QT player

    I have a file I recorded in IShowU.
    When I load it into final cut every once in a while I get a large crack and pop from the audio that kills my speakers requiring a reboot. If I play it through headphones it still cracks but it doesn't kill the audio.
    If I play that EXACT same file in Quicktime stand alone player it plays perfectly. However, if I export the file from Final Cut and try to play it in Quicktime it has the same pops as it does in Final Cut.
    Any ideas?
    This is FCP 6.0.6

    Did you ever solve this problem? I'm having the same issue with some audio in a FCP project. It was fine last night, but when I hopped on my machine this morning to work on it, I played the project and now have a segment of audio where it just gives a large pop/crackle and kills the speakers. If I have my headphones in, it keeps playing and there is the loudest static you've ever heard. The weird part is there is other segments of audio from the same clip in other parts of the video and they're fine. Additionally, when previewing the segment that crackles in the viewer window, there aren't any problems. It only happens in the timeline.
    FCP 7.03
    Macbook Pro 3.06GHz Intel Core 2 Duo
    OS X 10.6.4

  • Stand Alone Player Issue

    I had been working on a file for weeks...then all the sudden
    when I make a stand alone player it won't open the player...flash
    player opens but no file...I called adobe and they said it was
    something corrupt in my user profile...(I am on a MAC, OSx) so I
    created a new user and opened the file there and it opened, made a
    stand alone and played..then one day later...same thing in the new
    user....if I make yet another user it works....but I assume tthis
    is short lived. WHAT is there in the user profile, and this is a
    brand new clean user...goes wrong and how can I fix the problem
    without creating a new identity every other day. I threw away the
    flash preferences...no dice...any insight would be greatly
    appreciated.
    Jennifer

    > Can anyone advise; I wish to include a stand alone flash
    player (i.e. one
    > that
    > does not need any installation by the user) on a cd-rom
    that my company
    > produces.
    That is not allowed. Make a projector exe instead (which is
    allowed)
    > Am I able to get a stand alone player on the disc and
    would the above
    > circumstances qualify for the free license I have read
    about.
    You don't need a licence for projector exe .. but
    redistributing the
    standalone player (which even Adboe doesn't uisually make
    available except
    with purchase of Flash itself) would take some negotiation
    with Adobe. Its
    really not worth the effort usually.
    Jeckyl

  • E71 wifi connection works in browser, but not with...

    I need help badly.
    On my Nokia E71 I can easily connect to a wireless network and browse the web from the browser. But when I try to read my Gmail from the mail client on the phone I get an error message "Unable to connect to e-mail server". The settings are correct since if I switch to GPRS/3G connection, then the client connects to the server and downloads the messages. This is weird. The same is for VoIP and Fring and Nimbuzz, they all work with GPRS/3G but they don't when I choose wi-fi.
    What's more weird is that other people in the building use their person handhelds for the above purposes. The IT guy administering the network assures me no ports are blocked and that's obvious, since people use Skype and check their emails through the same wi-fi spots in the building. I fee l am missing something easy to solve, but I can't get through. Please help!

    Hello mgoksoy,
    Thank you for your reply. The problem is not with wifi connectivity option but inability to connect to wifi. For instance, if I run Nimbuzz, the settings are set to request from me each time I start it which connection to use - gprs or wifi. I choose GPRS it works alright, I choose wifi it does not connect and gives me "socket connection failed!" error. I get the same error in other wifi networks, so this is not about one specific wireless network. The same is with other applications, when I choose wifi connection it simply does not connect, like to gmail via nokia email client, I get a "unable to connect to e-mail server" error, whereas if I connect with GPRS, it works fine. And one more important, I can connect to all wifi's and browse the web via browser. But it's just the applications that won't connect and I was thinking if there was a setting in my E71 that need to be adjusted to allow applications wifi connections.

  • Connect host pc running winXP to Stand-Alone cDAQ 9139 running win7 embedded via Daqmx

    Hi
    trying to connect Stand-Alone cDAQ  9139 running embedded win7 to host PC running winXP via Daqmx 9.6 , both 9139 and host pc has Daqmx9.6 installed and connected with direct ethernet cable .. i need to review any steps available to do this task , the only one i found yet is for Stand-Alone cDAQ  9139 running Real Time mode not Win7 mode.
    Best Regards
    MyKat

    Hey MyKat-
    I just noticed that this post is in the 'Measurement Studio for .NET Languages' forum, so I wanted to make sure my message was not misleading.  If we added a feature for remotely targeting WES7 cDAQ controllers, it would be a LabVIEW-based solution.  I do not expect either RT or WES7 systems to be remotely targetable from Measurement Studio/Visual Studio environments.  Apologies for any confusion.
    Tom W
    National Instruments

  • My DVD's Audio is fine on the Mac - but MISSING on stand-alone player

    Slightly wrong forum (sorry) but all the experts are here!
    Re-hashing my 4:3 DV (PAL) movie for a re-release of the DVD and all's gone extremely well until now.
    On my (DVDSP) burned DVD all video is working fine - the audio files are .ac3
    No audio in the AUDIO_TS folder on disc - or in the cache (using finder).
    Where did I go wrong?
    How can it play perfectly on the Mac (DVD Player) and there be NO AUDIO on the stand-alone?
    Thanks in anxious anticipation!
    Andy
    Quad 8GB. 250+500 HDs. G-Raid 1TB. NORTON. FCP 5.1.2. QT 7.1.3. Panasonic HVX200   Mac OS X (10.4.9)  
    "I've taught you all I know, and still you know nothing".

    Thanks both.
    Talk about a fun Friday, we have HUGE floods here (no - nothing to do with the DVD problem, OR the vacuum cleaner) the UK's had an abnormal amount of rain recently and today's been hideous!
    To get back to the topic, as in all pro studios, the DVD player is on the floor - and the carpet was vacuumed yesterday. I notice the player had moved but it didn't dawn on me to check the cables.
    Typical of me - assume there's a really serious technical problem first - check the obvious last!
    Andy
    Quad 8GB. 250+500 HDs. G-Raid 1TB. NORTON. FCP 5.1.2. QT 7.1.3. Panasonic HVX200   Mac OS X (10.4.9)  
    "I've taught you all I know, and still you know nothing".

  • Flash .flv stand alone player.

    Dear members:
    I have recently downloaded some .flv files from the Internet
    and tried to view them without any success. I have installed in my
    computer the CS3 premium suite that includes Flash CS3 so I was
    surprise that the videos wouldn't play. Right clicking on these
    files I have the choice to open them using (1) Flash Player.app
    which is selected as the default and also (2) Adobe Flash CS3.app,
    (3) Flash MX 2004 and (4) SAFlashPlayer. None of these applications
    actually plays the videos. When I select both Flash Player.app and
    SAFlashPlayer the applications load and they appear Mac OS X's menu
    bar but nothing happens.
    Please forgive me if this is a basic question but I haven't
    been able to locate a stand alone version of Flash Player for
    download on Adobe's web site. The one I found seems to be the one
    that is installed in browsers so that they can play Flash media.
    Where can I find and download the stand alone Flash Player ?
    Thank you in advance for your help.
    Joseph Chamberlain

    Hello, fredingston.
    After I placed my original post I found a plug-in for
    QuickTime that allows it to play Flash videos. The name is Perian
    and does a very good job. Quite a convenient solution for those
    with Macs.
    Thanks to you second post I was able to find and download the
    new Adobe Media Player and really liked it. The interface is quite
    nice and I think it has more functions that I haven't yet had the
    chance to explore (it seems far more than just a simple player).
    I noticed that in Adobe Media Player the videos seem to play
    with better quality so this will definitely become my default
    player for Flash media from now on.
    Thank you again for your reply and helpful answers to my
    questions.
    Best regards,
    Joseph

  • Connection Error in Browser, Not in Terminal

    Hi all.
    Using PHP 5 to connect to an oracle XE 10G database using the OCI-8 module. I'm using the following code to connect (login credentials have been changed):
    <code>
    $conn = oci_connect("user", "pass", "DB"); \\ if (!$conn) {
    bq. print("Failed");
    bq. $e = oci_error();
    bq. print htmlentities($e);
    bq. exit;
    } else {
    bq. print ("Successful");
    </code>
    When running the script in the terminal, I receive the successful message. However, when opening the page in a browser, I receive the failed to connect message. That I don't get the call to undefined function error, and that it works in the terminal, leads me to believe that the OCI-8 module is correctly installed. Is there anything else I should have to configure that would cause this script to connect in the terminal, but not in a browser? Thank you for any suggestions.
    Edited by: user10227247 on Sep 12, 2008 6:08 PM

    PHP packages from Fedora repositories usually do not contain OCI8 module. Your problem usually happens on the PHP installations that do not have OCI8 enabled. On the other hand, you are able to successfully connect to the database from the shell. That means that the PHP in your web server is not pointing to the same installation as the PHP executable in your path. The first thing to do is to check the httpd.conf, like this:
    [mgogala@dibidus conf]$ egrep -i 'loadmodule .*php' /etc/httpd/conf/httpd.conf
    LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
    # LoadModule php5_module modules/libphp5.so
    [mgogala@dibidus conf]$
    I had the same problem and had to comment out the delivered libphp5.so. That module did not have
    OCI8 enabled. Where did your libphp5 go? I am using CentOS 5.2:
    [mgogala@dibidus conf]$ cat /etc/redhat-release
    CentOS release 5.2 (Final)
    [mgogala@dibidus conf]$
    [mgogala@dibidus conf]$ uname -a
    Linux dibidus 2.6.18-92.1.10.el5.centos.plus #1 SMP Thu Aug 7 12:19:36 EDT 2008 i686 i686 i386 GNU/Linux
    [mgogala@dibidus conf]$
    That should be similar enough to Fedora 6 and 7. You should also create a "phpinfo" web page on
    /var/www/html and look for the exact versions and directories. Phpinfo page should look like this:
    <?php
    phpinfo();
    ?>
    That should give you all the information you need. Pay special attention to the directories and versions.

  • STRUSTSSO2 - Works in Browser - not in GUI

    Hi Guys,
    I'm picking up a scenario from a busy colleague.
    We configured already the STRUSTSSO2 so that logon tickets are working. When a user navigates from CRM WebUi to ERP system (ITS in browser) everything works.
    However, due to navigation difficulties and GuiXT simplification the users prefer to call the SAPGui transaction instead of the ITS version. Without any additional setup the SAPGui connection ALWAYS prompts for credentials, clearly I am missing something.
    I read from note 1257108 that SNC is required to use SSO within the SAPGUI and so my question is:
    Can anyone give me the correct name for the scenario I have described so that I can research the correct guides?
    Best regards,
    Mark.

    Hi Tim,
    many many thanks for your repsonse.
    I'm not overly concerned about security at this point, the driver is convenience for the user and avoiding repeated password challenges.
    Taking the SNC option, what would be the minimum actions to get it set up in a very basic scenario - CRM Webui calling SAPGui with ERP system as the authenticating system?
    I think we need to do the following and perhaps more steps:
    1) Activate SNC on the ERP system
    2) Install SNC component on SAPGui and configure password there to generate certificate
    3) Maintain user master in ERP system to populate SNC tab with certificate details
    4) anything else?
    5) what about CRM system?
    If there is some reading I need to do I would appreciate a steer - I'm finding it difficult to see the wood for the trees as the guides seem impenetrable.
    Best regards,
    Mark.

  • Splash screen works from browser, not when double-clicked on desktop

    Hi,
    I am having trouble making a splash screen appear and have a specific question about it.
    The code is from the tutorial at:
    http://blogs.sun.com/thejavatutorials/entry/changing_the_java_web_start
    I have changed the codebase attribute of the jnlp element so it refers to my own server:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for ButtonDemo -->
    <jnlp spec="1.0+" codebase="https://justanexample.com/buttondemo" href="ButtonDemo.jnlp">
      <information>
        <title>ButtonDemo</title>
        <vendor>The Java(tm) Tutorial: Sun Microsystems, Inc.</vendor>
        <homepage href="http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#ButtonDemo"/>
        <icon href="mysplash.jpg" kind="splash"/>
        <description>ButtonDemo</description>
        <description kind="short">Demonstrates use of buttons within containers</description>
        <offline-allowed/>
      </information>
      <resources>
        <j2se version="1.6+"/>
        <jar href="ButtonDemo.jar"/>
      </resources>
      <application-desc main-class="components.ButtonDemo"/>
    </jnlp> This JNLP, the mysplash.jpg, and the ButtonDemo.jar are deployed to the web server, under a "buttondemo" subdirectory of the web server's DocumentRoot.
    If I access the JNLP from a browser (https://justanexample.com/buttondemo/ButtonDemo.jnlp), things work as expected:
    The first time "Java Loading" appears.
    The mysplash.jpg is cached and can be seen in the Resource list with "javaws -viewer."
    During the second and subsequent launches, the custom splash screen appears as expected.
    However, if I have the JNLP file on my desktop, and I open it from there with a double-click, I never see the splash screen.
    My question: Why is this? Shouldn't I see the splash screen after the first launch, even if I launched by double-clicking the JNLP file on my desktop?
    Why I care:
    While I've shown the problem using ButtonDemo, I am having the same issue with my own application. I'd like to have an icon on the desktop the user can click. I do have it working, but using a workaround I consider fragile and perhaps inappropriate.
    I am using the 1.6.0_18-b07 version of the JRE on Vista SP2.
    Thanks in advance for any explanation/help.
    Edited by: mmissire on Feb 10, 2010 7:52 PM

    I couldn't get this to work. For the benefit of anyone needing something similar, here's what I did to work around it.
    At install time, my app already unpacked some config files into a known place under the user's home directory. So I now unpack a splash screen there, as well.
    The desktop shortcut tells javaws to skip it's splash screen with -Xnosplash, and then tells the JVM to use a local one (with the -J"splash:" argument). Something like this worked well enough:
    C:\Windows\System32\javaws.exe -J"-splash:C:\Users\whoever\appname\splash.jpg" -Xnosplash "C:\Users\whoever\appname\app.jnlp"

  • IMAP connection works on iMac, not on MacBook

    Hello,
    I've been setting up Mail to access an IMAP account with a new web host. I set it up on my iMac without issue. It uses port 993 for an SSL connection, reads and sends mail with no problems. Trying to set it up on my MacBook Pro, using the same settings, and can't get it to work. Through Airport I was getting messages that it couldn't connect to the server, so I hooked it up to wired Ethernet, same as the iMac. It made the intiial connection, but now says it can't read data from the server, and the Activity window shows it endlessly trying to connect and sync. Both Macs running 10.6.7, and using Mail.app. Same firewall settings (it's on, with no services enabled in the Sharing preference), as I'm thinking maybe it's some kind of port issue. Any thoughts? Thanks.
    Dan

    Try copying the "com.apple.mail.plist" file from the working iMac's preferernces folder to the MacBook's.  The file is located in User > Library > Preferences.

  • Why is the Firefox browser not recognizing ANY Flash player add-on?

    I recently updgraded to Flash 17.0 and find that the browser often doesn't recognize my Flash player add-on. The crazy thing is that it's available in my list of add-ons, but whenever I enable and disable it, Firefox never recognizes that it's present when I go to sites that use the add-on.
    I recently uninstalled the latest version of Flash and went back to an older version (10.3 I believe), and that still didn't change anything. I even did the little trick where you go into your "help", "Troubleshooting information" and "show folder" to delete "pluginreg" DAT, but it seems you have to do this EVERY new session on Firefox.
    This is ridiculous. Flash is so often used on websites that I can't believe Firefox would upgrade its browser and not have something as essential as its compatibility with Flash all ironed out prior to the upgrade. I've read through the other answers to similar questions on here, and NONE of them offer any kind of permanent fixes. It'll all crap that you have to do manually every time you start a session on the browser.

    Nope. I tried both things, and neither worked. I went through the work of downloading and installing both ActiveX version and the plug-in version. I then delete the plugin.dat after I closed out of my last season of Firefox.
    It seems to work immediately after I do this, but if I disable Flash, at all, as I often do during most of my browsing and then enable it before I go to youtube, youtube still doesn't recognize the plugin and tells me I need to go download it.
    It looks like I'm going to have to go and reset my plug-ins, but I REALLY don't want to do this. This is ''insane''.

  • Flash 9 Stand Alone Player?

    I need to display a swf file full screen without a browser
    window. Is there a Flash 9 standalone player available for download
    or purchase? The available versions only seem to contain a browser
    plug-in.
    Thanks

    dzimmer3591 wrote:
    > I need to display a swf file full screen without a
    browser window. Is there a
    > Flash 9 standalone player available for download or
    purchase? The available
    > versions only seem to contain a browser plug-in.
    no there isn't, standalone comes exclusively with flash
    authoring tool
    and flash 9 is not out yet.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

Maybe you are looking for

  • Row total percentage of Column

    Have a request to display both the row and column totals in a pivot table, no problem. But what about also including a the percentage that each row total represents of the column total: Example: orders Item jan feb march total % of total a 1 3 5 9 40

  • Iphone Videos & Video Out not working

    Hi All, I have several TV programmes on my iphone, and yet when i plug the iphone into my TV using the apple composite AV cable, and tell the iphone to display on screen nothing happens, no sound or picture at all. I have just moved to Chicago from L

  • Wifi WEP passphrase vs. key - how to connect?

    My iTouch only connects to my secure Wifi by using the 26 character WEP key when challenged for the Network password. How can I get my iTouch to connect using the passphrase, instead, which is much easier to remember? The network password gets blown

  • LabVIEW Compare Tool load time of files from repository

    I have the LabVIEW compare tool setup for differences for .ctl and .vi files in Surround SCM source code control system.  The source code control system runs on a networked server.  My PC is on the same network as the server. When the LabVIEW compare

  • Friendly for iPad chat session doesn't work

    I tried to login to chat from friendly, and it requested my password. When I enter it, it gives an error as if the password is wrong. Is it an issue with new friendly version, or compatibility with IOS 5 ? Any ideas?