Works in Flash player but not from Browser

I know this has shown up in the forum before but I must be using the wrong search terms because I can't find it.
I've created a Flash file that reads from several different xml files and displays them when requested. When I run the Flash player, (by pressing Command-Space within Flash), it all works flawlessly. But when I open it within a browser, only one of the xml files loads, the other two just spin away on the preloader.
I have another Flash file that is doing the same thing. A click on a scrolling new list should take you to another web page. In Flash Player it works fine, but from a Browser nothing happens.
Anyone know why this is?
thanks

As odd as it may seem, the tip-off to the problem may be:
" When I run the Flash player, (by pressing Command-Space within Flash), it all works flawlessly"
If any of your Flash assets are in a different folder than the HTML Web page... then testing the .swf directly like that should NOT work!
It's most likely a pathing issue:
Pathing issues
Almost always when it works on the local machine and not the server, it's a pathing problem.
You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
Best wishes,
Eye for Video
www.cidigitalmedia.com
Best wishes,
Adninjastrator

Similar Messages

  • LoadMovie working in Flash Player, but not when posted online

    I have built a website
    utilizing Dreamweaver and Flash. This page:
    http://www.tonystubbs.com/print.html
    has a link under "print" called "catalog". It is supposed to load a swf file when clicked. It works when I view it in Flash Player, but when I import it into Dreamweaver and post it, it isn't working.

    It is likely an issue with file location/targeting since you appear to be loading the swf into the html page from a separate folder.  When you do that, any files that the swf file loads need to be targeted as if that swf is in the same folder as the html file.  So if your other swf is also in the images folder, then when you specify to load it in the Flash file you need to include the images folder in the path.

  • Spartan support Flash Player but not silverlight!.

    why spartan(0.11.10061.0), support Flash player but not silverlight?

    Chrome supports flash natively.
    I guess they don't want consumers to move to Chrome because some web sites work on Chrome and not Spartan.
    Spartan is supposed to be a cut down super lightweight super fast browser.
    Running Silverlight/ActiveX in the browser is considered low priority by Microsoft.
    I think the idea is you use IE11 if you want Silverlight.
    http://blogs.msdn.com/b/ie/archive/2015/01/22/project-spartan-and-the-windows-10-january-preview-build.aspx
    Should you work in one of those enterprise companies.
    Or want to use Netflix, SkyGo etc etc.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Flex mobile 4.6 app works inside flash builder but not in android emulator

    Originally posted on stackoverflow: http://stackoverflow.com/questions/8663892/flex-mobile-4-6-app-works-inside-flash-builder- but-not-in-android-emulator
    I have a basic flex mobile 4.6 app and it works fully fine in the flash builder built-in emulator using an android device profile like aria...
    It also launches fine in the android emulator but one particular view shows blank (and this view works fine in flash builder).
    Before I get in to many details of the view are there any categorical gotchas that can be causing this?
    I can't seem to get the trace statements from the app to show in 'adb logcat'. It seems I need to compile a debug version of the apk but I don't know how to do this. I use the 'Export Release Build' from the Project menu in flash builder and it doesn't seem to have an option for debug=true.
    The problematic/blank view basically uses the stagewebview and iotashan's oauth library to call linkedin rest apis... A different (and working) view can make restful web service calls in the emulator fine, so it doesn't seem to be an internet permission.
    The source code contained in the problematic/blank view is almost identical to the tutorial found at:http://www.riagora.com/2011/01/air-and-linkedin/
    The differences are: a) The root tag is a View b) I use StageWebView instead of HtmlContainer c) I use my own linkedin key and tokens.
    I would appreciate it if someone can provide me with some pointers on how to troubleshoot this situation. Perhaps someone can tell me how to debug the app while running in the emulator (I think I need the correct adt command arguments for this which matches the 'Export Release Build' menu but adds the debug param?)
    Thanks for your help in advance.
    Comment Added:
    I suspect that this has to do with connections to https:// api.linkedin.com and https:// www.linkedin.com. The only reason I can think of that the same code is not having issues inside of Flex Builder but indeed having issues in the Android emulator is something to do with certificates. Any ideas?

    Thanks er453r,
    I have created a project that clearly reproduces the bug.  Here are the steps:
    1) Create a UrlLoader and point it to https://www.google.com (HTTPS is important because http works but HTTPS does not)
    2) Load it
    3) Run in Flash Builder 4.6/Air 3.1 and then run in Android emulator.  The former works with an http status 200.  The latter gives you an ioerror 2032.  I am assuming what works in Flash Builder is supposed to work in the Android Emulator and what what works in the emulator is supposed to work in a physical device (plus or minus boundary conditions).
    I see a certificate exception in adb logcat but not sure if it's related...
    Here is the self contained View code which works with a TabbedViewNavigatorApplication:
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        xmlns:ns1="*"
                        xmlns:local="*"
                        creationComplete="windowedapplication1_creationCompleteHandler(event) "
                        actionBarVisible="true" tabBarVisible="true">
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected var requestTokenUrl:String = "https://www.google.com";
                                  protected function windowedapplication1_creationCompleteHandler(event:FlexEvent):void
                                            var loader:URLLoader = new URLLoader();
                                            loader.addEventListener(ErrorEvent.ERROR, onError);
                                            loader.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
                                            loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
                                            loader.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatusHandler);
                                            loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                                            var urlRequest:URLRequest = new URLRequest(requestTokenUrl);
                                            loader.load(urlRequest);
                                  protected function requestTokenHandler(event:Event):void
                                  protected function httpResponse(event:HTTPStatusEvent):void
                                            label.text += event.status;
                                            // TODO Auto-generated method stub
                                  private function completeHandler(event:Event):void {
                                            label.text += event.toString();
                                            trace("completeHandler data: " + event.currentTarget.data);
                                  private function openHandler(event:Event):void {
                                            label.text +=  event.toString();
                                            trace("openHandler: " + event);
                                  private function onError(event:ErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("onError: " + event.type);
                                  private function onAsyncError(event:AsyncErrorEvent):void {
                                            label.text += event.toString();
                                            trace("onAsyncError: " + event);
                                  private function onNetStatus(event:NetStatusEvent):void {
                                            label.text += event.toString();
                                            trace("onNetStatus: " + event);
                                  private function progressHandler(event:ProgressEvent):void {
                                            label.text += event.toString();
                                            trace("progressHandler loaded:" + event.bytesLoaded + " total: " + event.bytesTotal);
                                  private function securityErrorHandler(event:SecurityErrorEvent):void {
                                            label.text +=  event.toString();
                                            trace("securityErrorHandler: " + event);
                                  private function httpStatusHandler(event:HTTPStatusEvent):void {
                                            label.text += event.toString();
                                            //label.text += event.responseHeaders.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function httpResponseStatusHandler(event:HTTPStatusEvent):void {
                                            label.text +=  event.toString();
                                            trace("httpStatusHandler: " + event);
                                  private function ioErrorHandler(event:IOErrorEvent):void {
                                            label.text +=  event.toString();
                                            label.text += event.text;
                                            trace("ioErrorHandler: " + event);
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <s:Label id="label" y="185" width="100%" color="#0A0909" horizontalCenter="0" text=""/>
    </s:View>

  • Flash Player error messages from browser?

    Hello.
    So a client I'm building assorted things for gets these annoying error dialog boxes popping up in web pages that I never see myself. But they are akin to those I would see if I were running a SWF locally from my hard drive in my Flash Player. I've tested for these errors repeatedly on different servers and different computers and am coming to the conclusion that there is something peculiar about the way their Flash Player in their browser(s) is configured. Have they somehow installed a debug mode of Flash Player? Have they turned on some annoying verbose mode? If so how do I tell them how to turn it off so that they can realize that the way things look in their office are not remotely representative of the way Flash is rendering things on 95% of the computers in the world (and 100% of the computers I have tested things on)?
    Thanks for your time.

    I have searched through every book, forum, and found nothing
    on suppressing Flash Player error messages from the browser. If
    it's really not possible, this is terrible news. It's nice to think
    that we'd encapsulate everything in try catch methods, but come
    on....

  • Suppress Flash Player Error Messages from Browser?

    I'm well aware of try catch functions, but in general is
    there a simple setting to suppress browsers from displaying
    stackTraces on errors?

    I have searched through every book, forum, and found nothing
    on suppressing Flash Player error messages from the browser. If
    it's really not possible, this is terrible news. It's nice to think
    that we'd encapsulate everything in try catch methods, but come
    on....

  • Service working fine in Gateway but not in browser

    Hi All,
    I have a gateway service which is working fine in Development system but after transporting to Quality system, it is not working on browser.
    It is running perfectly in Quality gateway system but on browser it's throwing error:
                Model '' contains errors. Contact Adminstrator
    I am not even able to open metadata on browser.
    Please advise.
    Thanks.

    Hello Satya,
    The error is saying your model contains error, that means there is some problem with ur data model.
    But u also say that it works in GW Client and not in browser.
    Please try the below and check:
    1. Please make sure that the host and the port used are correct in browser. Get Host and Port info from GW Client and use accordingly.
    2. Clear your browser cache as well.
    3. Clear your model cache and try. Go to t-code /iwfnd/cache_cleanup and clear the cache and check again from browser.
    Regards,
    Ashwin

  • Airplay works fine in iTunes but not from the menu why?

    Hi Guys,
    I have read so many answers to the question about Airplay not working both here and the internet.
    Can someone give me the definative answer why I can Airplay from iTunes but not from the Macbook Pro itself i.e. no menu icon or setting to mirror.
    Everyone seems to say its the age of the computer or its the firewall or the wind is blowing in the wrong direction.
    Why if I can do it oneway (iTunes), I can not do it directly?
    I am using a 2011 macbook pro 10.9.3 and a apple tv 3.
    Is there a hack or work around with out purchasing more software.
    Thanks

    Hey Beauvoir17,
    Thanks for the question. Based on the information you have provided, I can conclude that your MacBook is indeed compatible with AirPlay Mirroring, as outlined in the following resource:
    About AirPlay Mirroring in OS X
    http://support.apple.com/kb/HT5404
    AirPlay Mirroring in OS X takes advantage of the hardware capabilities of recent Macs to deliver high frame rates while maintaining optimal system performance. The following Mac models support AirPlay Mirroring when using OS X Mountain Lion or later:
    - iMac (Mid 2011 or newer)
    - Mac mini (Mid 2011 or newer)
    - MacBook Air (Mid 2011 or newer)
    - MacBook Pro (Early 2011 or newer)
    - Mac Pro (Late 2013 or newer)
    If you are experiencing issues with AirPlay mirroring, I would recommend the troubleshooting steps outlines at the bottom of the article.
    Thanks,
    Matt M.

  • .swf working when opened with Flash Player but not when opened with Mozilla

    I'm having a problem with the .swf I created.
    It works fine when I open it on my computer with Flash Player.
    When I attempt to open it with Mozilla:
    - it wont play or allow a button to navigate to Frame 3.
    -it will allow another button to fullscreen the .swf and bring it back to small screen.
    This also happens when Flash Professional creates the HTML. (Autoplay = true)
    Is there some restrictions on AS3 when used on a webpage that don't apply when Flash Player is used independently?
    I've been trawling through the forums without any luck
    Any help would be very much appreciated
    Thanks

    Hey,
    Yes there are some links but when using the right click menu to play the swf the links are there and working.
    Thanks Ned for your intrest and attempt to help! It gave me courage to dig deeper.
    After a rest and feeling less presure - I discovered the problem.
    When in webpages you can't automatically Fullscreen - its fine if on a button though. I had to take out the line below
    stage.displayState=StageDisplayState.FULL_SCREEN;
    Cheers

  • Installed Flash Player but not working

    I've installed the Flash Player Version 9 and when I try to
    use an application that requires this software I get a pop up box
    asking me to install Macromedia Flash Player, even though it is
    installed. I have read through your forums, check registry
    settings, uninstalled and reinstalled, run the microsoft subinacl
    patch all to no avail.
    Why doesn't it play?

    I was having the exact same problems mentioned in this topic.
    Uninstalled/installed Flash and Shockwave. Used the appropriate
    uninstaller, searched for rogue .dll extension files, cleaned out
    the C:\Windows\System32\Macromedia\Flash files, looked at the
    manage add-ons, posted on this forum, e-mailed Adobe, spoke with
    them on the phone and even uninstalled IE7 and went back to IE 6.
    None of that helped.
    Reading through some of the responses on various posts, I
    found the following:
    Uninstall flash with the latest Adobe stand alone uninstaller
    Download Complete Standalone installer Flash Player 9 earlier
    version from
    http://www.softwarepatch.com/internet/flash.html
    Uninstall shockwave with the latest Adobe stand alone
    uninstaller
    Download Stand-alone installers for Shockwave Player:
    previous versions only
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18629
    Note: Users of Windows XP operating system must use the 8.5.1
    Shockwave player or higher. For more information, please
    seeInstalling the Shockwave Player on Microsoft Windows XP
    (TechNote tn_15924).
    Windows Shockwave Player 9.0.0.434
    I tried this last night - one and then the other one - and
    they both are running fine.
    Hope this helps someone else.

  • ALSB 3.0 : Request message works in Test Console but not from Client side

    By invoking a Web Service operation through a signature/encryption enabled Proxy Service in the ALSB Test Console for Proxy Services, i get a successful response.
    Now when invoking the operation from a client application i get the following error response:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <faultcode>wsse:FailedCheck</faultcode>
    <faultstring>weblogic.xml.crypto.encrypt.api.XMLEncryptionException: Unable to resolve encryption key for weblogic.xml.crypto.encrypt.api.EncryptedType{keyInfo=null, cipherData=CipherValue: zDeM4MKI8OeFzgJAR+z16ZE3cUfw54DtMKojPNACkVVZM0hazes+DcI4rJIHWzgt5N259pi9WTKgSEgBxQLZ3qD6PycrwTZuQ/4g2JbBwLwbO9WS40NsIhZRQCtguFPG8vKwNWeoXMOZ5w0m3jhV2ahFWZCTAipoG4XIOv/7pEw=, id='Enc-6abda982-1678-4774-97f3-cada98d32869', mimeType='null', encoding='null', encryptionMethod=EncryptionMethod: algorithm = http://www.w3.org/2001/04/xmlenc#aes256-cbc;}</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Even when pasting the original request from the Test Console in ALSB into "soapUI" and executing the request it does not work:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <faultcode>wsse:InvalidSecurity</faultcode>
    <faultstring>Could not validate encryption against any of the supported token types</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    So what's behind all this? Why does it work in the test console but never from other points.

    In both ways, with Direct Call option selected or deselected, the behaviour is the same.
    I cannot explain, why the replay of the request does not work from outside the Service Bus. Is there some sort of unique data mixed into the CipherValue data or something like that?

  • Swf works in Flash App but not online!

    Hi Guys,
    I am sitting with a situation I cannot figure out.
    In The Flash Application, my gallery is working as it is meant to. Yet, when I upload the swf to the live site, the first image, text and movie of my gallery works but it refuses to scroll to the next item in my XML.
    I have given it an absolute path to that server which works in Flash but not when it is online.
    Has someone come across this anomaly before? I don't even know where to begin debugging.
    Thanks!

    Hi,
    Better u check the XML image names and the image path are correct.
    becoz case sensitive in online..
    Saransoft

  • Scroll script works in Flash 6, but not in 9

    I have a simple scroller script that works fine for scrolling
    a movieclip in Flash 6, but when I publish in anything later, it no
    longer scrolls. Both are set to AS2. Is there an obvious reason
    that anyone can see of why this should be? When I test the script
    syntax in the actions panel, it says there are no errors in the
    script. By tracing I can see that there's no trouble with targeting
    the up and down buttons or scroll slider, and the slider still
    drags, but the content MC doesn't move as it should. Thank you very
    much for your help, in advance. Here's the script, in case the
    answer isn't obvious from the description:

    You were right! It works now, even as posted above. I just
    remembered I had fixed an upper/lower case inconsistency just for
    neatness since I last tested, never thinking that would fix the
    problem! I just tested again and to my surprise, it works great. I
    guess neatness does count!!! Thanks again, kglad!

  • Works in Flash preview, but not on webpage?

    I'm using this code to externally load a .swf into my site. I made sure all the files were uploaded. I'm sure, because I can even find the .swf on the site, it just won't show up on the main page. (for example, I can find it at www.mysite.com/flashfolder/animation.swf, but not in it's place at www.mysite.com)
    Here's the code I'm using:
    createEmptyMovieClip("anim", 0);
    anim.loadMovie("animation.swf");
    anim._x = 156;
    anim._y = 515;
    It's inserted into the actions panel of a new layer in the main Scene 1 timeline in my .fla project. It works when I preview it (ctrl+enter), but when I upload everything to the site, it doesn't show up?
    Anyone know what may cause/why this is happening?
    Thanks for your help in advance!

    Is the file that is loading animation.swf also in the same folder?

  • Native Process running from Flash Builder but not from the installed exe

    I have created an AIR application to launch a native process. The   application works fine when tested in Flash Builder but doesn't runs   when I create and AIR  installer and run the installed exe. Any idea  what might be wrong?

    Have you created a native installer instead of just an AIR file.
    -ted

Maybe you are looking for

  • TDS - not reversed during downpayment clearing - in MIRO

    Hello Experts In my example, I am using EHP4 functionality for downpayment. Hence I have down following steps: 1. Mentioned downpayment amount in Purchase Order. 2. Made payment in F-48 (with reference to Purchase Order) and TDS Deducted 3. Done GRN

  • Problem in using Submit

    Hi Experts. I am calling another report in my program inside a method using SUBMIT statement.I can't use Export-Import because OO Concept does not support Export-Import inside a method. Please tell me how to pass a value stored in a variable using Su

  • Bootcamp on Lion--but which Windows 7 ?

    I'm finally considering a bootcamp install of Windows 7 and am completely overwhelmed by the plethora of different Windows 7 versions available... Professional? Home? Ultimate? 32-bit? 64-bit? I intend to do this mostly to play games-at this point, s

  • What extractors or data source do i have to activate to load the TR COOIS

    Hi all, i need to do a report where i must load all the data that the TR COOIS execute in R3, i would like to know what extractor, data source, etc i need to activate to load this data to BW, what advices or what i need to do, please help

  • User defined event!!

    Hii all, I'm much more familier with events in java. Sometimes, i think, is there any way to define an event of my own or not?? I've googled a lot but couldn't find anything valueable. could you else please help me out?? thanks Dev.