Flash Remoting not working from browser

Quick Problem:
I have a movie that connects and displays the data fine when
run by testing
the movie from within flash its fine however as soon as i try
to run it from
the html or by IIS link to the swf, or even by browsing to
the swf via file
manager it fails to connect.
Any ideas why?
Thanks,
Koop.
Full Description:
My code was connecting fine before or at least i think it
was.
Does anyone have a basic fla that works for them using the
methods below
that i could test on my machine?
the connection code is as follows:
code =============
import mx.remoting.*;
function Result()
//receives data returned from the method
this.onResult = function(result)
trace("Data received from server : " + result +
result.items.length + "
items were received" );
//this is where we put the data in the text field
for (i=0;i<results.items.length;i++){
dataField.text = dataField.text + result.items.length;
dataField.text = dataField.text + result.items.length;
this.onStatus = function(error)
trace("Error : " + error.description);
dataField.text = "Error : " + error.description;
NetServices.setDefaultGatewayUrl("<mygatewayurl>");
var gw = NetServices.createGatewayConnection();
var server =
gw.getService("flashservices.gateway.interaction", new
Result());
server.getLatestNews();
end code ================
A few things have flagged in my mind, they may be way off
track however;
- Recent security changes in browsers (click here to
activate...)
- My wildcard import on the first line however i'm not sure
which
dependancies i specifically need to compile this project.
- cross domain security restrictions.. i am currently
connecting to a
service at a remote server from my local machine/IIS
what confuses me is that good ol' CTRL+ENTER works fine but
obviously fails
on any parameter calls such as loading
"newsitem.swf?theID=<variableID>"
which requires that it be run via a webserver.
Any help would be appreciated.
Koop.

I had a similar prob and found it was caused by recent
security changes
to the flash player.
I was using "127.0.0.1" as the address to my gateway but it
was being
ignored because it didnt match as being the same host which
was being
evaluated as "localhost". So I found that changing the
gateway address
to "localhost" fixed it!
Solution: on your server (local or remote), put a file
"crossdomain.xml"
in the webserver's root and fiddle with its contents so it
contains all
the possible varieties of the domains you want to allow
access from.
e.g.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="
http://www.yourdomain.co.uk"
/>
<allow-access-from domain="www.yourdomain.co.uk" />
<allow-access-from domain="yourdomain.co.uk" />
</cross-domain-policy>
That (I think) will solve your problem.
Joe
Koop wrote:
> Quick Problem:
>
> I have a movie that connects and displays the data fine
when run by testing
> the movie from within flash its fine however as soon as
i try to run it from
> the html or by IIS link to the swf, or even by browsing
to the swf via file
> manager it fails to connect.
>
> Any ideas why?
>
>
> Thanks,
> Koop.
>
>
>
>
>
> Full Description:
>
> My code was connecting fine before or at least i think
it was.
> Does anyone have a basic fla that works for them using
the methods below
> that i could test on my machine?
>
> the connection code is as follows:
>
>
> code =============
> import mx.remoting.*;
>
> function Result()
> {
> //receives data returned from the method
> this.onResult = function(result)
> {
> trace("Data received from server : " + result +
result.items.length + "
> items were received" );
> //this is where we put the data in the text field
> for (i=0;i<results.items.length;i++){
>
> dataField.text = dataField.text + result.items.length;
> }
> dataField.text = dataField.text + result.items.length;
> }
>
> this.onStatus = function(error)
> {
> trace("Error : " + error.description);
> dataField.text = "Error : " + error.description;
> }
> }
>
>
NetServices.setDefaultGatewayUrl("<mygatewayurl>");
> var gw = NetServices.createGatewayConnection();
> var server =
gw.getService("flashservices.gateway.interaction", new
> Result());
> server.getLatestNews();
>
> end code ================
>
> A few things have flagged in my mind, they may be way
off track however;
> - Recent security changes in browsers (click here to
activate...)
> - My wildcard import on the first line however i'm not
sure which
> dependancies i specifically need to compile this
project.
> - cross domain security restrictions.. i am currently
connecting to a
> service at a remote server from my local machine/IIS
>
> what confuses me is that good ol' CTRL+ENTER works fine
but obviously fails
> on any parameter calls such as loading
"newsitem.swf?theID=<variableID>"
> which requires that it be run via a webserver.
>
> Any help would be appreciated.
> Koop.
>
>

Similar Messages

  • Flash Remoting not working with CFERROR tags

    I need help and can't find out what's going on. I developed
    an app with CF7 and Flash Remoting and everything works fine, but
    as soon as I add an error-handling<CFERROR> tag to my
    Application.cfc file, Flash Remoting no longer works. It's almost
    like it can't connect to the gateway anymore or something is
    blocking it. When I remove the <CFERROR> tag in the
    Application.cfc file, everything works fine again. I really need to
    find a solution to this, any ideas???
    (CFMX7/SQL Server2000/Window 2003 Server)
    Here's my Application.cfc code:

    I have attached the actionscript for the data connection. The
    odd thing about this issue is some of the data is being displayed
    from the webservice call and then some is not. The drop down list
    is not being populated but I am getting some text in a textarea
    that is on the form. My datasource is a SQL Server database and in
    ColdFusion administrator, I used the actual machine name to point
    to the datasource because it is directly linked to my web server.
    This configuration is the one giving me problems. If I change the
    datasource to my test SQL Server (server.somewhere.com) it works
    fine. Does this help any?

  • Flash Remoting not working in CF 10

    We've been using Flash Remoting for years and now, while testing CF 10 on a development server, find that it no longer works.
    In particular, I get a 404 error when trying to access https://{ip address}/flashservices/gateway.
    I've already confirmed that remoting is enabled in the Administrator and followed the steps given in the documentation (http://help.adobe.com/en_US/ColdFusion/10.0/Installing/WSc3ff6d0ea77859461172e0811cdec1896 9-7ffa.html).
    Any advice?

    If you don't want to change your as-files:
    JkMountFile
    "[Path to CF-Installation]/config/wsconfig/1/uriworkermap.properties"
    change
    /flashservices/gateway/* = cfusion
    to
    /flashservices/gateway = cfusion
    restart CF

  • Adobe Flash Player not working on any browser in computer

    I really need help flash player not working in any browser in google chrome. For example in http://www.twitch.tv/ You need Adobe Flash Player to watch this video.  Download it from Adobe. I already did everything to fix it shown in support page please help!!!!

    Same problem on the same website here, pls help
    -Hi, i think I've manage to solve the problem by following the instruction on the following page
    http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html
    http://helpx.adobe.com/flash-player/kb/flash-player-games-video-or.html
    remember to restart your browser after doing the steps

  • Adobe Flash Player not working. Installen latest version. Get the following: "This website would like to run the following addon: Adobe Flash Player from Adobe System Incorporated." Then asking me to allow it for current or all websites. It doesn´t matter

    Adobe Flash Player not working. Installen latest version. Get the following: "This website would like to run the following addon: Adobe Flash Player from Adobe System Incorporated." Then asking me to allow it for current or all websites. It doesn´t matter how i do this. The pop-up question returns EVERY time. What do i do to solve this issue???

    To give you any useful advice, I'm going to need to know more about your computer and browser:
    https://forums.adobe.com/message/5249945#5249945

  • Flash does not work with Firefox following Windows Vista update 14/5/2014.

    Flash still works with IE9. I've carried out all steps in http://helpx.adobe.com/flash-player/kb/flash-player-games-video-or.html, i.e. twice updated Flash to V13.0.0.214 (previously V13.0.0.206), activated Firefox Flash add-on, deleted browser data and cache and disabled hardware acceleration. Nothing fixes it! Vista SP2, Firefox 29.0.1.

    Apologies for vague "does not work" from me - and sorry for delay replying. What I understand to be "rich media content" did not display. For example, all text and images in this screen clip from www.metoffice.gov.uk appeared as a single blank grey rectangle. In other websites links displayed in a basic underlined font instead of rich formatted text/images, or video and audio links were completely missing from an otherwise fully rendered webpage.
    However in the last hour Firefox has starting behaving properly again without any further diagnostic efforts from me! For six days some graphics and links have not displayed in Firefox, yet IE9 has behaved perfectly. This has happened a few times before, normal service being restored (in hours rather than days) either by updating the Flash plug-in or for no apparent reason.
    Any thoughts in case of future re-occurrences would be appreciated. Thanks Pat for your time and help.

  • Runtime error R6025 message after log on to Vista - Flash Card not working

    Hi
    I'm a newbie & would appreciate any advice.
    I am getting a runtime error message R6025 when I log on to Windows Vista.
    When I click out of the box I then get a message saying Toshiba Flash Card not working.
    I cancel that and my laptop is ok except I don't know if the flashcard is working or not because I don't know what it does.
    Sorry if I sound thick
    Thanks
    Neelie

    Hi
    I found this MS knowledge base article:
    +Description of the R6025 run-time error in Visual C++\+
    http://support.microsoft.com/kb/125749
    But I doubt this description would be useful for you or anyone here. It describes this error in Visual C++ and this is programming language.
    However, I think you should simply reinstall the Value Added Package which you could download firstly from the Toshiba European page.
    At first you have to remove the old Value Added Package from the system, then reboot the notebook and follow with new VAP installation.
    Bye

  • Remote not working - doesn't seem to be pairing problem - any other ideas?

    Remote not working - Unpair does nothing - Status light solid/screensaver running - no response from status light when any button clicked on remote - new batteries in remote - only Apple remote in the house - anyone have a suggestion?

    Welcome to the Apple Community.
    You might try restarting the Apple TV by removing ALL the cables for a 30 seconds.

  • Apple remote not working

    My Apple remote is not working with my MacBook. The Mac OS X 10.5 Help Knowledge Base says to go to Security > Systems > and Disable remote control infrared receiver. I don't have a systems button or box nor the checkbox to Disable remote control infrared receiver. And, my MacBook has an infrared receiver.

    Hi Focus,
    I have the same problem. When I update from TIger to Leopard the front row apple remote still working. But is been a long time the last time i used and now on 10.5.2 osx the apple remote not working as I imagine.
    I read some answers that help me understand better the problem. My check box of "disable remote.."is unchecked and I saw a "pair" button and try to pair with my apple remote. The tips told me to HOLD "menu" and "next" buttons of apple remote to pair him with computer. And Works fine. So I try to push only Menu button (as I've done so many times on tiger) but still does not working. So I realize the command to "start front row from apple remote" now on Leopard 10.5.2 is MENU+NEXT buttons and does not anymore only menu button. For me works like this.
    While I write this answer I try again push and hold only MENU button and after almost 2 or 3 seconds holding button appears on screen an virtual image of my apple remote signaling to replace the battery, may be now will be works only on push menu, but I need to change the battery first.
    I hope help somebody.

  • Infrared Remote not working unless held very close to AppleTV

    I'm not sure if there is a problem with the remote or AppleTV. The remote only works if held approx. 8 inches away from the AppleTV. The remote works fine with the computer and will control the Mac from the other side of the room. I was expecting the remote to work from at least a few feet away from the AppleTV. It seems pointless having a remote if you have to get up and hold it next to the AppleTV to make it work. The remote App on my iphone works fine anywhere in the room but I would still like the infrared remote to work. Has anyone had any issues similar and is there something I can do to fix this ?

    same for me. sometimes the remote doesn't work unless it's very close to ATV2, but it also appens that it stops working even when it's close. the only way to control ATV2 when it happens is to use the remote app on my iphone. strange, very strange. and it happens from day one. setting up the system with the supplied remote was a real pain in the ...
    Message was edited by: andbal

  • Button not working in browser

    I am coding a video player in Netbeans 6.8. just find two problems:
    1. the browser button not working in browser when I run the project from Netbeans under "run in browser" mode. however under "standard execution" mode, everything is fine.
    2. can not run the jar file in the project's dist directory directly. in other word, I can not run the jar file outside of Netbeans.
    I appreciate any help. thanks.
    Main.fx:
    package gui;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.paint.Color.*;
    * @author Jethro
    var face=Face{};
    function run(){
        Stage{
            title: "player"
            resizable:false
            scene: Scene{
                width:800
                height:600
                fill:DARKBLUE
                content: [face]
    }Face.fx:
    package gui;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.Node;
    import javafx.scene.control.Button;
    import javafx.scene.layout.VBox;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaPlayer;
    import javafx.scene.media.MediaError;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.media.MediaView;
    import javafx.scene.control.ProgressBar;
    * @author Jethro
    public class Face extends CustomNode {
        public var lbf=LBF{};
        public var enable=true;
        public var mark="play";
        public var sourceOfMedia:String;
        public def player=MediaPlayer {
            repeatCount:MediaPlayer.REPEAT_FOREVER
            onError:function(e:MediaError){
                var er=e.message;
         media : bind Media {
              source: sourceOfMedia
        public def view=MediaView {
                mediaPlayer:bind player
                preserveRatio: true                    
        public def bar=ProgressBar {
                height:10
                width:bind scene.width
                progress: bind
                    if(player.media !=null){
                        player.currentTime.toMillis()
                            /player.media.duration.toMillis();
                    }else{
                        0.0
        public var play=Button {      
            onMousePressed:function(e:MouseEvent){
                if(enable and player.media != null){
                            mark="pause"; println("playing...");                       
                            sourceOfMedia=lbf.uri;
                            player.play();
                            enable=false;
                }else{
                    mark="play";
                    player.pause();println("paused...");
                    enable=true;
         text: bind mark       
        public override function create(): Node {
            return Group {
                content: [
                    VBox{
                        content: [
                            lbf,
                            bar,
                            play,
                            view,
    }LBF.fx:
    package gui;
    import javafx.scene.CustomNode;
    import javafx.scene.Group;
    import javafx.scene.control.TextBox;
    import javafx.scene.layout.HBox;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Rectangle;
    import javafx.scene.text.Font;
    import javafx.scene.text.Text;
    import javafx.scene.Node;
    import javafx.geometry.HPos;
    import javafx.geometry.VPos;
    import javafx.scene.control.Button;
    import javax.swing.JFileChooser;
    * @author Jethro
    public class LBF extends CustomNode{
        public var uri:String;
        public var whereis=Text {
            fill:Color.BLUE
         font : Font {
              size: 20
         x: 10, y: 30
         content: "location: "
        public var location=TextBox{
            text:"the song's location"
            columns:40
            selectOnFocus:true
        public var browser=Button {
         text: "Browser"
         action: function() {
                    var jfc=new JFileChooser();               
              jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
                    var val = jfc.showOpenDialog(null);
                    if(val == JFileChooser.APPROVE_OPTION) {                   
                        location.text = jfc.getSelectedFile().getAbsolutePath();
                        uri=jfc.getSelectedFile().toURI().toString();
                        println(location.text);
        public var face=Group {
         content: [
              Rectangle {
                        x: 0, y: 0
                        width: 800, height: 50
                        fill: Color.SILVER
                     HBox{
                         width:800
                         height:50
                         hpos:HPos.CENTER
                         vpos:VPos.CENTER
                         spacing:5
                         content: [whereis,location,browser]
        public override function create():Node{
            return face;
    }

    thanks for your reply but I need more specific operation.
    maybe I am not very clear about the problem one. I mean when I run the code in standard mode, if I click the browse button, a window will pop out and I can choose a video file from my local harddisk. but if I run it in "web start execution" mode and "run in browser" mode. the browse button make no response when I click it.
    Edited by: Phoenix2006 on Feb 8, 2010 2:35 PM
    Edited by: Phoenix2006 on Feb 8, 2010 2:37 PM
    Edited by: Phoenix2006 on Feb 8, 2010 2:42 PM

  • Apple remote not working, is there a way to setup Apple TV without the remote

    Apple remote not working, is there a way to setup Apple TV without the remote

    Welcome to the Apple Community Sylvia.
    There is no way to set up home sharing on the Apple TV without the original remote from Apple, you will need to purchase a new remote from the Apple Store.

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • Flash player not working on IE 10

    I am a blogger from the blog http://osbusters.blogspot.com/ . I am uable to view the flash videos on my blog due to flash player not working properly on Windows 8. It is not working on IE 10.

    See if anything in here helps http://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-8.html

  • Flash player not working ie10 windows 8 pro 32

    flash player not working ie10 windows 8
    Default web browser IE10 does not play flash in metro nor in desktop mode on up-to-date W8pro32 laptop
    error message "you have to install flash player"
    but
    I cannot (re-)install latest version of flash player
    error message "flash player is embedded in IE10"
    I have
    reset ie (in advanced options)
    turned windows feature ie off (unchecked box) , restarted pc, turned windows feature ie on (checked box), restarted pc
    ie10 as default web browser
    disabled acticex filtering (tools)
    enabled flash player (add-ons)
    enabled updates to compatibility view list
    Problem started after installing W8pro32 with IE10
    Flash plays fine using Firefox W8pro32
    Had no problems playing flash on this particular hardware using previous version of os and ie
    The macromed flash folder in windows/sytem32 on this PC contains files with exactly same name/size as on other W8pro32 laptop where IE10 plays fash plays without problem
    Have asked micsosoft support but not received a reply
    Please advise
    Thanks

    flash player not working ie10 windows 8
    Default web browser IE10 does not play flash in metro nor in desktop mode on up-to-date W8pro32 laptop
    error message "you have to install flash player"
    but
    I cannot (re-)install latest version of flash player
    error message "flash player is embedded in IE10"
    I have
    reset ie (in advanced options)
    turned windows feature ie off (unchecked box) , restarted pc, turned windows feature ie on (checked box), restarted pc
    ie10 as default web browser
    disabled acticex filtering (tools)
    enabled flash player (add-ons)
    enabled updates to compatibility view list
    Problem started after installing W8pro32 with IE10
    Flash plays fine using Firefox W8pro32
    Had no problems playing flash on this particular hardware using previous version of os and ie
    The macromed flash folder in windows/sytem32 on this PC contains files with exactly same name/size as on other W8pro32 laptop where IE10 plays fash plays without problem
    Have asked micsosoft support but not received a reply
    Please advise
    Thanks

Maybe you are looking for

  • Ipod not recognized in itunes, error message: repair disk

    When I connect my ipod to my mac I get an error message saying my mac cannot repair the disk, its asking me to back up the disk and reformat asap.  My ipod is not being recognized in itunes but it is in the finder.  help!

  • Unwanted blank pages inserted when creating pdf from scanner

    Hello, when creating a pdf from a document scanned via Adobe Acrobat X Pro, the program inserts an unwanted blank page in between each page  being scanned.  So, if scanning 50 pages, we get 100, etc.  How do we remediate this problem?  We have worked

  • Can I debug c++ code

    I have some bug in my C++ code. I useing MS Visual studio .net to compile it. How I can enable "Step into" that I can see what happening in my c++ object space when I call that native method from Java?

  • My iPod in not function.

    I tried & tried again to update and restore my ipod 4 gen. and it said when conect to iTunes "ipod in recovery mode" i did click on restore iPod but never finish the process, every time is the same what can I to do? my iPod in not function.

  • Dimensions of a geometric object

    Friends, I want VI which can be used for finding out the dimensions of a geometric object.The camera is placed on top of the object. Further I will find out the co-ordinates of the vertices of the object. I need some algorithm or a example VI for the