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."
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.
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.
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?
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.
you may have a security issue when using that network drive. add it to your trusted locations and retest:
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.
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.
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
The component to resize to video size and show first frame.
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.
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.
Europe, Middle East and Africa