Hi. I'm new to flash and i've just learnt how to use OSMF to build a flash player. My question is very basic and i hope to put it as clearly as i can:-
Now i can create a flash player from flash builder. But in order to point to a new location for the video, i need to recreate the swf from flash builder. So how would i generate a new swf or change the video address on the server when a user uploads a new video. Of course i can't afford to build the project in flash builder myself every time a video is uploaded !
I think the answer incldes flex, that's why i'm asking here. Thank you.
For what you're using it for, it sounds like you would do better to create one SWF that can have different data fed into it, either by loading external data such as XML, or by using application paramters (flashVars). Use this data to determine the correct location of the video.
However, it is possible to compile server side using the mxmlc and/or compc compiler. For example, I use Apache Ant to compile themes on the server-side, which then get loaded into an app at runtime. IMHO, this method should only be used for compiling "resources," and not used for compiling "information," as your post suggests.