Preloader: works locally but not when live

1. give that you have website A, website B and local
directory structure
2. give that you have a class based (see code snippet 2
below) 444k swf
sitting on website A
3. give that you have a preloader swf on the local directory
structure
[that uses code in CODE SNIPPET 1]. _debug.text shows that
bytes total is
454103 and that the preloader rises smoothly up to that
point. great!
4. give that you move said preloader swf on to website B.
_debug.text
shows that bytes total is -1 for a bit, then undefined
and.... that's
about all until the swf actually finishes loading at which
point we
briefly see 454103 before displaying the swf
eh?

ok, the trick is to use MovieClipLoader instead. its
onLoadProgress method does just the job you want... :)
thank &*$£ for that. :)

Similar Messages

  • 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

  • Cfmail  - works locally but not when uploaded

    Hi,
    I'm using cfmail with form variables for the email addreses.
    It's so users can send email to political candidates. Here's the
    code:
    <cfoutput>#Form.semails#</cfoutput>,<cfoutput>#Form.hemails#</cfoutput></p>
    <cfmail to="#Form.semails#,#Form.hemails#"
    replyto="#Form.useremail#" failto="[email protected]"
    from="#Form.useremail#" subject="Keep Maine Toxin-Free!"
    server="mail.nosuch.com" port="26" timeout="40"
    username="[email protected]" password="nosuch">
    #Form.usermessage#
    </cfmail>
    The form submit page collects those variables and passes them
    as form variables - GET. The "to" field in cfmail is populated by
    hidden fields that contain session variables... they're forwarded
    on as those .semails and .hemails form variables. Actual values
    have been replaced with "none" or "nosuch" for security, but you
    can see the structure anyway.
    This works when run locally, sends the emails as it should.
    When uploaded exactly as is to godaddy's server, it doesn't send
    emails. Doesn't throw any errors, the form results page displays as
    it should... but the emails just never get sent.
    I'd really appreciate any ideas...
    Joe

    Adam Cameron wrote:
    > I don't know how these shared hosting outfits work, and
    what access you
    > have to what, but here's some questions:
    >
    > - have you inspected the mail logs to see if they cast
    any light on the
    > scene
    > - have you configured CF to tell it where the SMTP
    server is?
    > - do you need to authenticate to it, and that sort of
    thing?
    > - are the email messages failing @ the CF end (in which
    case they'll be in
    > the mail/undeliverable dir (not entirely sure that's the
    name of it, but
    > have a shufti around in the cfusion dir...), or are they
    getting to the
    > SMTP server and failing there (check the SMTP server's
    logs).
    >
    Unfortunately all that can't be done by us users of these
    shared hosting
    outfits. You'll need to contact GoDaddy support and ask them
    to take
    these steps. I'm sorry about your probably experience with
    this.
    While I use GoDaddy for my personal hosting where I care more
    about not
    spending a great deal of money over high performance. I do
    not wish my
    support experiences on anybody. If you know ColdFusion well
    and can
    tell support what needs to be done, they should be able to do
    it. Or,
    more likely, you would be able to figure out the self help
    tools to do
    it yourself. But, unless this has changed since my last
    experience,
    their support staff is not ColdFusion literate and are unable
    to guide
    other, inexperienced ColdFusion users.
    Saying all that. Email works just fine on my GoDaddy website
    and I do
    not believe I had to do anything special to use it.

  • Flv player works locally but not when uploaded

    Another day, another issue...
    I have a flash movie that includes an flv player with previews and buttons. It reads the content from an xml file.
    It works without problem when I test it locally. Trouble is when I upload it, everything displays correctly but the flv movie file doesn't play. Here's the test link:
    http://www.swsoftware.com/ncjhs/assets/video/flvplayer.html
    XML file is http://www.swsoftware.com/NCJHS/Assets/Video/video.xml
    Flash file is http://www.swsoftware.com/ncjhs/assets/video/flvplayer.fla
    Anyone have any suggestions? I'm new to flash and this forum has been a tremendous help in resolving my (somewhat numerous) problems.
    Sam

    When I tried to view the posted url I got the following
    errors in the order I have listed them.
    CSInit is undefined Line 23
    Line 75 Object Expected
    Line 66 Object Expected
    My Platform.
    IE 7
    Windows XP Pro

  • Var Request Works Locally but not when Placed Online

    When I run this code on machine locally, it works perfect, however when I put it online it no longer works, can anybody help?
    Additionally the only the reason i placed the var request in a function was because I have another var request earlier in the code as was not sure how to run it without a duplicate entry error.
    goresult();
    function goresult() {
         var request:URLRequest=new URLRequest("http://www.whichpartyshouldivotefor.co.uk/wp-content/themes/test/leadingparty.php");
         request.method=URLRequestMethod.GET;
         var getresult:URLLoader = new URLLoader();
         getresult.dataFormat=URLLoaderDataFormat.VARIABLES;
         getresult.addEventListener(Event.COMPLETE, completeHandler);
         getresult.load(request);
    function completeHandler(evt:Event) {
         var conservativeresult=evt.target.data.conservative;
         var libdemresult=evt.target.data.libdem;
         var labourresult=evt.target.data.labour;
         trace (conservativeresult);
         vote.text = conservativeresult;

    My best guess is that you are coming across a security sandbox violation - AKA a crossdomain scripting error.
    This means that you need a crossdomain.xml on the root of your web-host that allows "whichpartyshouldivotefor.co.uk"

  • [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

  • 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?

  • 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

  • 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.

  • 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.

  • My iPad only has sound when the earphones are plugged in. The switch that controls the volume works then, but not when I take the earphones out. Suggestions?

    My iPad2 only has sound when the earphones are plugged in. The volume switch works then too, but not when I take the earphones out. Suggestions?

    it's a hardware issue
    https://discussions.apple.com/thread/1343532?start=315&tstart=0
    more here
    iphone stuck in headset mode

  • IWeb snippets working  locally but not working when uploaded to ISP

    I am using iWeb 3.0.2. When I add an HTML snippet to a page to add an item to a shopping cart [ADD TO CART], then publish and view site, the snippet works perfectly.
    However when I upload the page to the ISP, the snippet is not displayed even though I can see all the necessary 'widget1_markup.html' present in the page source, and when I browse for that widget URL it is present.
    Is something missing from the ISP to process this type of facility, or is it something else.
    Your suggestions gratefully received.

    Welcome to the Apple Discussions. 3What's the URL of your site so we can examine it first hand? While this is just a guess without looking at your site I'd say that not all of the files in your site's Scripts folder are getting uploaded to the server.
    How are you uploading the files? With iWeb's FTP client or a 3rd party client? If it's iWeb's client, publish your site to a folder on your hard drive and use the free Cyberduck client to upload the files.
    OT

  • Captivate 5.5: preloader shows locally but not on web site

    What could be happening on my server that prevents my Captivate 5.5 AS3 preloader from displaying?
    I can see a blip when I preview the courses locally, and when I upload files to another server, I can see the preloader display perfectly. But on my usual server, which used to show the preloader, I just get a few seconds of blank screen before my course plays.
    So Captivate is working OK, but what could be happening on my server which until today was behaving properly? (Yes, I'll contact my hosting service, but if you've run across a similar issue and maybe a solution, any ideas you have may help me talk with them.)
    Thanks!

    Rick, I have a weird problem now.
    my files sometimes load and sometimes don't!
    when I place the url on the current webpage (where the index is) - the files load.
    when i click them from the index file, a new window opens up but the files don't load.
    this behavior is not consistent. a few hours ago it did work.
    any ideas???

  • 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.

  • RSS Widget works locally but not on website

    I used the RSS widget to insert the following RSS feed:
    feed://www.bpkids.org/updates.xml
    I have also tried inserting with http:// instead of feed:// but no difference
    When I publish the site and check it on my local folder, it works. But when I post it to my website, it shows nothing.
    This is the first time I've used the RSS widget. It seems straight forward enought, however, I've read in these discussions that there was a bug with the RSS widget recently that was causing it not to work and wasn't sure if this is still a problem. Thanks

    That is a crossdomain issue because you have the site
    accessible via www or without.
    If you use
    http://www.sneeple.com/media_test/index.html
    to access that page it will work.
    Here's what to do to fix it:
    http://forums.flashgods.org/viewtopic.php?f=39&t=94

Maybe you are looking for

  • RuntimeException Message Mapping

    Hi, I am using a Java UDF in my Message Mapping where its using a jar file. But i get the following error.: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:Messages/ns0:Message1/ns1:MT

  • How to call webservice using java client

    Hi, I am new to webservice related stuff.Can any body help me. How can i call the webservice using simple java programing using jdeveloper tool is very useful for me. Thanks venuj

  • Project unable to save/release

    Dear anyone, As we have created a complete Project but at the time of release/save it shows the following error msg. 1 WBS Element VEPL/C/MTRX_IT 2 Enter an existing allocation structure 3 WBS Element VEPL/C/MATRIX 4 Enter an existing allocation stru

  • Trade law in "Book depreciation area per trader law"

    Hi team gurus, when i try CJ88 settlement (settlement from AUC to final assets), i found the amount  according to trade law (assets) doesn't equal to the amount in Val/CO Area. And i found book depreciation area per trader law was mentioned many time

  • How do I Fix This XML Error From my corrupt Premiere Project?

    So I've been trying to recover a corrupt Premiere Pro CC project for the past 3 and a half hours and I think I'm almost there. I kept getting the error "The Project appears to be damaged, it cannot be opened." Back Story & Info After hours of searchi