[AS3] EventDispatcher works locally but not remotely

Hi,
I am very new to Action Script and have the following
problem. I hope someone can point me in the right direction.
I have a small video player app. I have added the FLVPlayback
component to the stage and set some properties via action script
(AS 3)
I then instantiate a class to go and retrieve some XML,
register an eventListener to wait for the XML to be loaded and once
the event has fired, load the FLV file (just hard coded at the
moment) into the FLVPlayback object.
This works when testing in the Flash IDE but not when I
publish the movie to my webserver. I have tried commenting out the
player.load() and just adding a textfield and again this works
locally but not when I publish to the webserver. I have included
some code snippets below.
Can anyone tell me where I am going wrong?
Any pointers much appreciated.
Thanks
Martin

Hi,
I found the problem if anyone has the same issue. I was
passing some FlashVars in incorrectly using the
AC_RunActiveContent.js that comes with Flash. I have switched to
swfobject and all is well.
thanks

Similar Messages

  • Works locally but not remotely

    Hi,
    I'm loading jpegs randomly into my .fla. It works fine
    locally, and it worked fine when I tested it on my personal
    website. But on my company's site, the jpegs don't load. I'm
    thinking maybe it's a path issue, but not sure what the fix
    is...any help would be welcome.
    This is the code I'm using:
    randomNum = Math.round(Math.random()*15);
    loadMovie(randomNum+".jpg", this.blank");
    I've tried adding a path like
    /graphics/flash/2007jazzfest/this.blank but it doesn't like the /.
    I've tried quotes around everything, but it doesn't work...
    You can see it work at:
    http://www.willyurman.com/Test/jazzfest2007.html
    1. click skip intro to get past the opening
    2. click either small red 'jazz fest' button in the upper
    right or left. It should take you to the credit page where a
    different jazz quote appears at random at the bottom.
    On my work site, everything works except that the quotes just
    don't load.
    I go live with this Friday night(the 8th) so any help would
    be appreciated :)
    thanks
    will

    comment out that code. hardcode one jpeg to load and test.
    does that work?
    if yes, copy and paste the code that works and copy and paste
    the code that fails.
    if not, your path may be wrong or your jpegs may be
    corrupted. to check which, enter the path/file name of one of the
    jpegs in your browser window. if it loads, the path in your swf is
    wrong. if it doesn't load you may have the wrong path in your
    browser and in flash, or your jpg is corrupt.

  • Permissions work locally but not remotely

    I've a server that if I log in locally I can change/manage file/folder permission with no issues....but if I remote in via Remote Desktop Connections (I've tried from several workstation sub-nets) I can log on, navigate to the folders, but I can't change
    permission of any folders....what am i missing?
    -SuperDale

    Hi,
    I assume all systems you mentioned are in a domain. I would like to know:
    1. Whether the user account you logged on via RDC is the same one as you logged on locally.
    2. The exact NTFS permission settings on that folder.
    Also please have a try to add your account individually to the NTFS permission of the target folder and give it Full Control permission. See if issue still exists. This is to test if it is caused by NTFS permission setting.
    If you have any feedback on our support, please send to [email protected]

  • Problem with slideshow basic, works locally but not remotely

    Hi, I've noticed many threads on this issue and I have tried many fixes but no success. Most seems to revolve around the SpryWidget.js file so I've loaded it directly from AdobeLabs file. In fact, have loaded all .js files directly via my hosting server in case was a problem with binary/ASCII loading through Dreamweaver Mac.
    My .js file is here:
    http://www.keishahulsey.com/Spry-UI-1.7/includes/SpryWidget.js
    And this is the page I'm having problems with...
    http://www.keishahulsey.com/thesis/MA-2-10.php
    I so rarely post on these forums only read them but am desperate. Would greatly appreciate any help as this is my presentation website for thesis due in one week.

    The link to the main images is incorrect.
    If I go to http://www.keishahulsey.com/_images/_slideshows/thesis-1-60/160smithfield1.jpg, I see the thumbnail, but if I go to http://www.keishahulsey.com/_images/_thesis/_content/1-60-smithfield-1.jpg, instead of the main image, I get a page with markup.
    Simply correct the path and all is well.
    Gramps

  • Slideshow works on local but not remote server?

    Slideshow works on local but not remote server? The site is patriceclarkson.com.

    When I compare your:
    http://www.warpd.ca/SpryAssets/SpryWidget.js
    to this one:
    http://labs.adobe.com/technologies/spry/ui/includes/SpryWidget.js
    I do not see the same file. Try uploading the correct file and check again.
    Xav

  • cffeed caching works locally but not on server

    So I got my new Hostek account set up (woohoo!) and I've started uploading some basic files so I can do thinks like validate my code and make sure everything's working.  One thing that does not work (but does locally) is my news feed caching.
    Pulling in two RSS feeds was seriously slowing down my index page loading, so I stole a trick from Ray Camden on caching the feeds.  It works perfectly on my dev machine at home, but doesn't work on my hosted account.
    Here's the exact code being used:
    <cfset feedurl = "http://velonews.competitor.com/feed">
    <cfset cacheTime = #createtimespan(1,0,0,0)#>
    <cfif not structKeyExists(application,"rsscache") or dateDiff("n", application.rsscache.created, now()) gt cacheTime>
        <cffeed source="#feedurl#" query="entries">
        <cfset application.rsscache = structNew()>
        <cfset application.rsscache.data = entries>
        <cfset application.rsscache.created = now()>
    </cfif>
    <ul>
    <cfloop query="#application.rsscache.data#" startrow="1" endrow="6">
    <cfoutput><li><a href="#rsslink#">#title#</a></li></cfoutput>
    </cfloop>
    </ul>
    I tried wrapping a try/catch around the top section (above the <ul>) and still got nothing for an error message.  The page just stops being rendered at that first <ul>.
    I'm not sure why it works locally but not on the web server.  Any ideas?

    Miraculously, I got it working.
    I changed this:
    <cfloop query="#application.rsscache.data#" startrow="1" endrow="6">
    <cfoutput><li><a href="#rsslink#">#title#</a></li></cfoutput>
    </cfloop>
    To this:
    <cfoutput maxrows="6" query="application.rsscache.data">
    <li><a href="#rsslink#">#title#</a></li>
    </cfoutput>
    And bingo!  It worked. Perhaps it's an idiosyncrasy between CF9 and CF10.

  • Flash site works locally but not online (uploaded to server)

    We have bought a flash portfolio template and have customized it with our pictures, video, etc.
    When we test it locally on our computer (using different web browsers) it all works perfectly well. We have uploaded the finished website to our server and when you go to the address online, it doesn't work (a loader progress shows but it is stopped and nothing happens).
    We have however uploaded the original template we bought and it works perfectly online.
    The template consists of and index.html, various .swf, and various .xml that we have modified according to the template instructions (it also contains a java script folder we haven't touched).
    What is it wrong with our modified template - it works locally without problem…!
    Thanks for your help

    When a Flash file works locally but not on-line, it's almost always a pathing issue (provided you did upload ALL files and do not have something missing... as suggested by Ned).
    A "pathing issue" results when the main .swf cannot find one or more of the associated Flash files...like an xml file or images.
    It can be something as simple as using switching file names to all lower case. Local machine is not case sensative... most servers are. So "My Photo.JPG" is not the same as "my_photo.jpg". When naming files, best to use all lower case, no spaces in any file or folder names... use_underscore_instead.
    But the most common cause is that those associated files (xml, images, etc.) are not pathed relative to the Web page where the main .swf is embedded. Pathing to the .xml and image files should be as though the .swf was located in the same folder as the Web page... NOT the actual location of the .swf file.
    And that includes paths to the xml file and paths to image files coded into those xml files. Everything need to be coded relative to the Web page.
    This topic has been covered a number of times here:
    http://forums.adobe.com/message/4368273#4368273
    http://forums.adobe.com/message/4294529#4294529
    http://forums.adobe.com/message/4280086#4280086
    http://forums.adobe.com/message/4267408#4267408
    Best wishes,
    Adninjastrator

  • Swf works locally, but not on server

    I have an issue with an xml-driven swf file. It plays fine when I test the site locally, but not when it's uploaded to a server. Here is a link to the page. There are many posts on this and other forums describing the same problem, though I can't find the right solution. The only thing it has convinced me of, is that it is probably a pathing problem. I purchased the file online, and instead of one swf and one xml there are about ten of each to make it work. In addition to this there are about 40 .as files. (all this to make it "easier" to customize).  Since I plan to use this banner rotator on multiple pages, it will be very unconvenient to upload all these files for every page I make. I checked with support for this product, and was told I could make a flash directory, only duplicating the xml-files for each new page and linking the xml back to the swf-files. Otherwise the support answer was very short and unhelpful. I have renamed every path in the xmls so that it should be right. As I said, the file works locally, so I'm not sure what I am doing wrong.
    I have posted in adobe forums before, and I have alwas found helpful and kind responses.
    Thank you,
    Siri

    They're all uploaded to the server, it is also possible for me to dowload them from there. When i run the main swf file through flash player debugger, I get this message:
    Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/xml/abrMain.xml
              at com.sQrt121.utils::CustomLoader/configureLoader()
              at com.sQrt121.utils::CustomLoader()
              at com.sQrt121.utils::LoadJob/initJob()
              at com.sQrt121.utils::LoadJob()
              at com.sQrt121.utils::ContentLoader$/addJob()
              at AbrMain/init()
    So I guess it can't locate the xml folder (since it is not there), but I don't know how to change the path. I can change it in the xml, pointing to the swf, but how do I do it the other way?
    This is the main xml-file:
    <?xml version='1.0' encoding='UTF-8'?>
    <abrMain
              width                              = "300"
              height                              = "250"
              pauseOnOver                    = "off"
    >
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrcontent.swf"                                    xml = "xml/abrContent.xml"                                        config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrbuttonscolor.swf"                               xml = "xml/abrButtonsColor.xml"                                        config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrpreloadercircle.sw f"               xml = "xml/abrPreloaderCircle.xml"                              config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrpreloaderline.swf"                               xml = "xml/abrPreloaderLine.xml"                              config          = "xml/config.xml"/>
              <item          swf                    = "/Users/Siri/Documents/gullstolen/hjemmeside/flash/produkter/deploy/abrplaypause.swf"                               xml = "xml/abrPlayPause.xml"                                        config          = "xml/config.xml"/>
    </abrMain>
    the abrMain.xml tells the swf what files it shold use, and where to find them, but where do I tell the abrMain.swf to find the xml? Maybe this is an issue for product support instead, though they only answer short and cryptic.
    Murray *ACP* wrote:
    None of your SWF files are found in the location where the page's code places them.
    For example:
    <param name="movie" value="../../../flash/produkter/deploy/abrmain.swf" />
    Did you upload them?

  • Facetime works local but not long distance

    i have been using facetime for 2 years.  Last week (soon after upgrade 8.2)  my service became intermitant.  it works locally,  but long distances it is ringing but no one is answering...
    I am using airport extreme....so not sure if its extreme or something else causing this...

    chris,  thanks so much but i think it has to do with port somehow.
    since i am out of the us it works fine in where i am at,  but trying to get to the us in just rings off the hook and no one can pickup....so it gets a notification that the call is coming through but ends at that point.....and i am just pushing voice only not video.
    other people where i am at use facetime and are able to talk to people in the US...I have been doing so until 1 week ago,  when i downloaded 8.2   Thanks for your reply looking forward to understanding what else i can do......
    ps already installed firmware in extreme...but didn't solve the issue.

  • Flash Remoting Works Locally But Not On The Server

    Hello,
    I have a flash file that connects to an asp.net page. The
    aspx page queries a databse and returns a set of records to flash.
    Flash reads in those records and processes those records. Locally,
    this works fine. However, on the server, nothing happends. I spoke
    with tech support at hosting company and they tell me everything is
    installed for Flash Remoting.
    Here is the code thats on the server:
    import mx.remoting.NetServices;
    import mx.remoting.NetDebug;
    mx.remoting.debug.NetDebug.initialize();
    //CONSTRUCTOR
    var inited:Boolean = false;
    if(!inited){
    inited = true;
    NetServices.setDefaultGatewayUrl("
    http://63.134.251.243/gateway.aspx");
    var gatewayConn
    bject = NetServices.createGatewayConnection();
    gatewayConn.setDebugID( "Gateway Connection" );
    var SQLQueryToolService
    bject = gatewayConn.getService("matthewlemke", this
    function SQLQueryToolAction(){
    SQLQueryToolService.test("SELECT * FROM flashImages");
    function test_Result(result){
    trace(result);
    _root.abc.text = result.toString();
    SQLQueryToolAction();
    Here is the code locally:
    import mx.remoting.NetServices;
    import mx.remoting.NetDebug;
    mx.remoting.debug.NetDebug.initialize();
    //CONSTRUCTOR
    var inited:Boolean = false;
    if(!inited){
    inited = true;
    NetServices.setDefaultGatewayUrl("
    http://localhost/matt/gateway.aspx");
    var gatewayConn
    bject = NetServices.createGatewayConnection();
    gatewayConn.setDebugID( "Gateway Connection" );
    var SQLQueryToolService
    bject = gatewayConn.getService("matt", this );
    function SQLQueryToolAction(){
    SQLQueryToolService.test("SELECT * FROM flashImages");
    function test_Result(result){
    trace(result);
    _root.abc.text = result.toString();
    SQLQueryToolAction();
    Any help is greatly appreciated.
    Thanks,
    Vic

    I am having the exact same problem. My remoting application
    works fine on my laptop as long
    as the url for the gateway reads
    http://localhost/remotingData/gateway.aspx,
    but if I change
    it to the name of my machine and attempt to run the swf I
    keep getting a NetConnection.call.badversion error in the
    netconnection debugger. If I attempt to connect through IE it just
    sits with no reply.
    Is there some kind of permission thing going on here?
    Flash MX2004 Professional
    Flash Remoting Components MX2004 (unlicensed)
    IIS 6.0
    IE 6.0

  • Screen Sharing not working locally but fine remotely

    There is a lot to this, so I'll be as brief and direct as possible.
    I've been using Screen Sharing to connect to a headless Mac mini for a while now (used as file and media server).
    Today I updated some Brother printer and scanner drivers in the Mac mini and all as good.
    I had just finished adjusting all the settings and getting my iMac to use the new shared printers when the mini made a strange "meeep" sound like an error (the error sound is something else) - and no more Screen Sharing - locally.
    I used my iPhone and VNC app to connect to mini without problem (through a different wifi network), but my local iMac cannot Screen Share. File sharing and print sharing work just fine (well, a little slow now to connect initially). Seems liek a local network problem to be but I haven't been able to resolve it.
    Tried Chicken of the VNC and it times out (also shows a "second" server of the same name with Host: "address resolve failed".
    All connected though Time Capsule and wifi.
    Ideas?

    The iMac could not screen share to the Mac mini on the samee network/subnet. So I later tried to set up another iMac on a different network to connect via VNC/BTMM through the Internet (port 5900 is open on the router/WAP) and it connected fine.
    I noticed that BTMM was having problems staying stable once I used it from the other iMac. So I looked into the network to see what might need changing. I had always been running with "double-NAT" without any problems before but thought this cold be contributing to the BTMM stability issue which might translate to the issue of being able to share files and printers but not VNC/screen sgaring on the same network. After fixing that and running through a few other minor adjustments (and MANY hours of troble-shooting) it is working just fine again.
    So, I'm not sure if the double-NAT was the problem (had been working fine for a LOOOONG time) or if it was something else. I know you aren't "supposed" to run a double-NAT but the different networks were segregated and should not have caused any problems like I saw. I figure some change I made with the printer/scanner driver (sharing?) must have overtaxed the router....I was also getting conatcnt polling from my iMac looking for the Brother printer on mDNS which was causing a lot of exess traffic so I deleted all Broter communicatipon software just to be safe.
    Anyway, I hope if anybody else has a similar problem (file/print sharing working but screen sharing/VNC not), they can look at their network to make sure they don't have double-NAT (common on DSL Internet connections, too!).

  • X11 works locally but not from remote clients because DISPLAY is /tmp/...

    I've used X11 plenty of times before, but not in a little while. Now, when I start X11 on two different accounts, the DISPLAY variable is /tmp/launch-*/org.x:0 . When I telnet to a remote host and set the DISPLAY variable to my hostname:0 (ie. graphe:0), xterm says it can't connect to the display.
    If I set DISPLAY to localhost:0 and start a local xterm it complains too:
    xterm Xt error: Can't open display: localhost:0
    From scanning this forum, I believe this may have something to do with ssh, but on one of the accounts where I have this problem I don't even have ssh configured.
    What's the deal?

    ssh -X (or -Y) exports your local host DISPLAY environment over a secure ssh tunnel to the remote system, where it creates a local X11 port pointing at the remote end of the secure ssh tunnel, and it creates the DISPLAY environment variable to specify the secure tunnel port.
    It is a much (MUCH) more secure way to use X11 than previous methods, speaking as someone that has been using X11 since the early '90s. I did it the xhosts way for years, but about 6 years ago, I switched over to ssh -X and have never looked back.
    Oh yea, several of my machines are about 2,000 miles away (all inside the company network, but still a long way away).
    Message was edited by: BobHarris

  • Loading from local but not remote HELP??

    Hi
    I've created a flash "app" that works 100% on my local server but not on a remote one, I'm connecting to a MySQL server using flash VIA php.
    Weird part is the fact that I can delete and add to the database but it doesn't want to read from the server and populate a datagrid???
    If I test the php file it gives the correct output in IE and the flash file is in the same directory(and domain obviously) it just doens't read\load it?
    Any help would be MUCH appreciated!!!
    Link to php and flash files:
    http://portable-shade.vacau.com/PSIO/

    Hello,
    This forum is actually for the Adobe Digital Rights Management (DRM) product "Flash Access".  Your question likely belongs in the Flash Player forum @ http://forums.adobe.com/community/webplayers/flash_player
    cheers,
    /Eric.

  • Webservice works locally but not public

    I have read a lot about this on the net about crossdomain.xml
    and how to make it work with webservices. But still have have some
    problem with it.
    I have a domainname i'm using and my router is forwarding the
    traffic from that domain name to my local server 192.168.1.3 which
    is my local server ip.
    From my local computer the WS works great, but if i try from
    a remote location it does'nt.. at first i got the security access
    remote url error msg. but i guess the crossdomain.xml fixed it.
    So right now it does'nt return anything when trying from a
    remote location.
    If i use firefox, the statusbar states it's connected to
    192.168.1.3. that's it. i wounder why it does not say it's
    connected to the domainname i defined in the mx:webservice.
    btw i added this in my crossdomain file:
    <?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="*" to-ports="*" />
    </cross-domain-policy>
    I use fault="Alert.show(event.fault.faultString) in
    mx:operation but that does not return anything.
    so i need a hint to what to do, how to trace the
    error.

    1: ntsiii yes i can see the wsdl. and it works from my laptop
    when i run it from flexbuilder.
    2: because the result is output in a datagrid. And it works
    when i run the WS from flexbuilder on a local computer.
    but can you confirm that it should not be a problem that the
    ip defined in the wsdl file is not a problem since it's
    192.168.1.3?

  • Azure SQL database working locally but not when published to Azure

    I have an
    AngularJS  solution that is connecting to a SQL Azure database.  When
    I run the solution locally, it’s configured to connect up to the SQL Azure database, the solution works fine. However,
    when I publish the solution to Azure the connection to the SQL Azure database does not work.
    When debugging with Chrome I get the error Failed to load resource: the server responded with a status of 500 (Internal Server
    Error) 
    I'm not using EF. but dapper.
    My connectionstring is as follows
    <add name="PortalConnection" providerName="System.Data.SqlClient" connectionString="Server=tcp:xxx.database.windows.net,1433;Database=xxx;User ID="xxx";Password="xxx";Trusted_Connection=False;Encrypt=True;Connection
    Timeout=30;"/>
    When I run the web solution locally from Visual Studio, my sql queries runs like it should, it's only the published version having problems. 
    Any ideas?
    Software Developer

    Hi,
    Thanks for answer.
    I had followed that step by step guide for deploying to Windows Azure. So that was not the problem.
    But I was able to get a better error message by turning off custom error in web.config.
    I got the error message: "Windows login are not supported in this version of SQL Server"
    I solved this by using the SqlConnectionStringBuilder instead of getting the connection string from 
    web.config.
    So everything works great now, just think it's strange it worked locally before..
    Regards
    -entery
    Software Developer

Maybe you are looking for

  • Cant delete backups or sync

    I have been having some problems for some time now with not being able to sync my idevice. I have done tons of serching with no luck, I read that i should delete my back ups under edit, prefrences, devices. But when I delete them they come right back

  • How do i take over a computer on distance

    Hello everybody in mac-world. My friend has recently offered himself an imac. Sometimes he has a problem that he cannot solf and than he calls me. I have to go there and explain him. Is there a possibility that i could take over his computer true int

  • Instalei o Adobe Illustrator Trial no meu PC, mas quando eu o abro não demora nem dez segundos ele fecha sozinho

    Instalei o Adobe Illustrator Trial no meu PC, mas quando eu o abro não demora nem dez segundos ele fecha sozinho

  • Oracle Portal Difference

    My organization is evaluating to use Oracle Portal. Can someone tell me the difference if I were to migrate from a portal built based on Spring/Tiles to Oracle Portal? can the oracle portal still use the Spring Framework or does Oracle Portal has its

  • Bug-Report: 3110c v7.21 using timed profiles freez...

    v7.21: Using timed profile: After setting the end time and pressing OK the phone freezes! NSU offers no downgrade or reinstall of the firmware and so a very important feature is lost. Before updating to v7.21 everything worked fine. Message Edited by