13 Replies Latest reply: Jan 22, 2013 5:45 AM by Kintaro_Oe RSS

    FLV in MediaDisplay component will not play in Test Movie

    jvonmutius Community Member

      I'm having a very frustrating problem with Flash CS5.

       

      I have a project with a MediaDisplay component on the stage, and some actionscript (2.0) on frame 1 to load a FLV. When I use Test Movie in Flash, the FLV will not play, but when I open the SWF (or a Flash Presentation made using the Publish command), it plays fine. What's wrong with Test Movie?


      I have been working on this project since before I upgraded to CS5 (I was using CS4), and I never had trouble testing it through Flash. I also have a different Flash project that uses the same component with the same actionscript to load an FLV, and that one plays correctly using Test Movie. However, if I try to load that FLV with the other project, it won't play.


      Does this mean my project file is corrupt? Or that CS5's Test Movie feature is buggy?

       

      It may not be related, but I'm also getting a lot of compiler errors when I test the movie. They all say the same thing:

       

      "The class or interface [insertMovieClipNameHere] could not be loaded."

        • 1. Re: FLV in MediaDisplay component will not play in Test Movie
          kglad MVP

          you must correct compiler errors before test movie will work.

           

          that error message is usually the result of using as2 code with as3 publish settings or, vice-versa.

          • 2. Re: FLV in MediaDisplay component will not play in Test Movie
            jvonmutius Community Member

            Thanks for the response, kglad.

             

            The compiler errors are bothersome, but I don't think they are preventing my test movie from showing properly, because I don't always get the errors. Most often, I test and see no compiler errors, and the videos still don't play correctly. Also, even if I get the compiler errors, but open the resulting SWF file in the standalone player, it plays just fine. It's only inside Flash, that I have a problem.

             

            It's very cumbersome to have to publish a SWF, switch to the Finder, and open that SWF on its own every time I want to see my progress. Since I'm working with mostly actionscript (there's very little on the stage itself), I can't preview the project any other way.

            • 3. Re: FLV in MediaDisplay component will not play in Test Movie
              kglad MVP

              i've never had a problem with test movie (which i use alot) so i'm not sure how to help.  i do know that paths, flashvars, externalinterface, javascript and keyboard input can require extra care  or can't be used when using the test environment but it didn't sound like those should be an issue for you.  (all your files, html, swf, fla and flv are in the same directory?)

              • 4. Re: FLV in MediaDisplay component will not play in Test Movie
                jvonmutius Community Member

                My .fla and .flv files are not in the same directory. My .fla file is in one folder, and my .flv is in a sub-folder called 'media'. However, I've tried putting the .flv in the main folder (and changing the actionscript path) with no luck. Also, I've used this project for about six months with all the media in the sub-folder and never had a problem, so I doubt that's it.

                • 5. Re: FLV in MediaDisplay component will not play in Test Movie
                  kglad MVP

                  create a new folder that has no subfolders.  save your fla there.  copy your flv there.  assign your mediadisplay's contentPath and test.

                   

                  if that fails, is this the only fla with that problem?

                  • 6. Re: FLV in MediaDisplay component will not play in Test Movie
                    jvonmutius Community Member

                    Thanks kglad. I probably should have tried something like this before, but I was being stubborn. While I was testing this, I realized the only major difference between the file that tests correctly and the file that doesn't is that one is on a local drive, while the other is on a network drive. I've tried copying the project file and FLV to a new folder on the network drive - still doesn't work. But, if I copy both to a new folder on my local drive, it works fine.

                     

                    In Flash CS4, I tested movies on the network drive with no problems, using the same FLVs and the same project files. Clearly, something has changed in CS5, but is this intentional, or a bug? Do you think there's a workaround? I tried puttin in the absolute path to the FLV, including the server address, but that doesn't work either. Again, I must stress that if I open the SWF after I test the movie, it works correctly in Flash Player. So Flash is using some different platform to test movies inside the application. Why would it do that?

                     

                    UPDATE:

                    By default, I work on a NAS server that I connect to using AFP. I can't test movies with FLVs on this server. However, I just tried moving a test file to another network drive that I connect to using SMB (it's a Windows mount), and that works fine! What gives? Now I'm wondering if the problem is related to the MediaDisplay Component only, or just to FLV playback in general. I've never use the FLVPlayback Component, so I'm not sure if that has the same issues.

                    • 7. Re: FLV in MediaDisplay component will not play in Test Movie
                      jvonmutius Community Member

                      UPDATE:

                       

                      I just tried using FLVPlayback component. That doesn't work on my AFP-mounted network drive either, but it does work on my SMB-mounted drive.

                      • 8. Re: FLV in MediaDisplay component will not play in Test Movie
                        kglad MVP

                        you may have a security issue when using that network drive.  add it to your trusted locations and retest:

                         

                        http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.ht ml

                        • 9. Re: FLV in MediaDisplay component will not play in Test Movie
                          beyond ben Community Member

                          I have the same problem when using AFP: FLVPlayback does not work (even when selecting an FLV via the GUI) but if you publish it out and then run it via Flash Player it works! I couldn't be bothered to further troubleshoot and just work on my Desktop, copying to the network drive when I'm done.

                          • 10. Re: FLV in MediaDisplay component will not play in Test Movie
                            aviPro Community Member

                            Do you have a firewall ? You could also try to see if Flash CS5 is listed in your firewall. Also try out the link kglasd suggested.

                            • 11. Re: FLV in MediaDisplay component will not play in Test Movie
                              beyond ben Community Member

                              I added the folder where the FLVs are to trusted zones but it stil has the same error. As I said it's only FLVPlayback that has the issue, and only in the IDE and only on an AFP share. If I run the swf using Flash Player it works fine (with/without being trusted) or if the FLVs are on a local drive or if they are accessed using SMB. Loading other things works fine in the IDE on AFP, like Loader.

                               

                              I don't have a firewall (other than whatever is standard in Snow Leopard) but it wouldn't affect anything anyway: the share should just appear to the application as a drive; it's not accessing anything over HTTP or anything.

                               

                              Steps:

                               

                              Open Flash CS5

                              Select new AS3 document

                              Drag the FLVPlayback component onto the stage

                              Click the icon to select a FLV (source parameter)

                              Navigate to where FLVs are (on AFP drive), OK

                              Click OK

                               

                              Expected result:

                               

                              The component to resize to video size and show first frame.

                               

                              Actual:

                               

                              Error in Output window:

                              NetStream.Play.StreamNotFound : Adobe Flash tried to play a live or recorded stream that does not exist. Source can't be found.

                              The video player is in the connection error state. It enters this state when a video stream attempted to load but was unsuccessful. There are two possible reasons for the error: no connection to the server or the stream was not found.

                               

                              Same error whether the FLA is saved or not.

                               

                              However if publish, then close down Flash CS5, then open the swf directly it will play in the actual Flash Player. It doesn't matter where the SWF is in relation to the FLVs.

                              • 12. Re: FLV in MediaDisplay component will not play in Test Movie
                                Jose_Flash_ookken Adobe Employee

                                Hi jvonmutius

                                 

                                Please provide below details to isloate the exact issue

                                 

                                1. Is it embed video, local drive video or from streming server (Http or RTMP)

                                2. Which format you are importing.

                                • 13. Re: FLV in MediaDisplay component will not play in Test Movie
                                  Kintaro_Oe Community Member

                                  I have the same problem... Can't use the "test movie" function on Mac with Adobe Flash Pro 5.5, FLV's don't load. I'm using a Synology DS412+ NAS with CIFS for Windows and AFP for Mac Users. Under Windows, it works but not under Mac.