Hi,
instead of compiling the video player directly into your app, you
could try loading the app itself as a swf.
You might also want to take note of the main entry point in the video
player, and compile the player WITHOUT the entry point, so that you
can manually start it in your app.
eg. function onLoadInit ():Void {
// do smth now, like change the player url?
eval("com.path.to.player.entry").main();
}
Notice the usage of eval, so that I avoid compiling the video player.
However, if you want type checking, etc, use intrinsics, and remove
the main entry point in the relevant file.
On 6/21/06, John Giotta <[EMAIL PROTECTED]> wrote:
> I have one project that is simply a standalone Video player.
> I have another project that is more elaborate video/media console.
>
> I would like to utilize the video player into the media console, but I
> run into a MTASC error.
>
> "Duplicate main entry point : MediaPlayer and MediaCenter"
>
> Are there any tips on how I can do what I'm trying to do without
> jeopardizing the integrity of the source?
>
> Is it better to import the compiled MediaPlayer SWF as a library asset?
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
--
Ray Chuan
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org