As some Internet tutorial suggested I’ve built a simple server-client application for FLV Video Player using PHP and Flex. The problem I encountered is that I can’t change the source of the video in the mxml file using Notepad++. The source could be changed if I run Flex but It’s not a good idea because I want to run different videos through this player. Please suggest how to run different videos with this Flex Video Player component because my application works only for this given in the source of FlexPlayer.mxml-maybe I shouldn’t use this mxml file for the different Video Sources?
<s:VideoPlayer id="Player" left="0" top="0" width="493" height="382" chromeColor="#2875DE"
color="#000000" skinClass="MySkin" source="Video Source/Coldplay - Clocks.flv"/>
</s:Application>
Correct, since your flex app is compiled, you won’t be able to use it to define which movies to watch.
You can however use other alternative methods of fetching data into your app at runtime.
For example, you can specify the video file in a parameter in the html because you CAN edit this in notepad or another text editor before you run it each time :
In this case, you would specify it in the html that calls your flex app as a flashvar param. Look for this in the html page :
Make sense?