Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

loading mediaplayer.swf inside a parent swf movie

6 replies [Last post]

hello!
as subjected, i'd like to load the mediaplayer.swf movie inside a parent swf movie, but i don't know which codes i should modify to get it work.
please note that i load the mediaplayer.swf through javascript code (swfobject.js, annotation, placeholder, etc...).
my parent movie is called main.swf.
i tried to simply change the "var s = new SWFObject("mediaplayer.swf","playerID""etc" line... into "var s = new SWFObject("main.swf","playerID"etc", but it doesn't work... i'm sure i need to add further codes or maybe move the whole javascript code (s.addVariable, etc...) inside the parent movie... but i'm not sure what to do, i'm a total newbie at these things...
any help would be greatly appreciated, thank you! :-)
lv

sorry for bothering, but... any idea about what requested on my previous message?
i look forward to any suggestion, thank you! :-)
lv

please see the thread: [url=http://www.jeroenwijering.com/?thread=3360]Insert player into another flash SWF[/url]

hello andersen!
i have already checked that thread, and i tried to apply those solutions to my case, but i can't get my SWFs to work...
in that thread Jeroen suggested the following:

You can load the player into a certain timeline or movieclip with the command "loadMovie()". [...] it's best to first open the FLA, remove the Stage and Menu code in the root timeline (not the line that starts the player!) and republish.

what i don't understand is:

1) which FLA should i open? Jeroen's or mine (main.swf)?

2) which stage and menu code should i remove? in Jeroen's mediaplayer.fla there's only the following line:

com.jeroenwijering.players.MediaPlayer.main();

3) which codes should i put in my main.swf root? is it ok the following code?

_root.holder_swf.loadMovie("mediaplayer.swf");
var file="myplaylist.xml";

4) if i put the "var file="myplaylist.xml";" code in my movie's root, how do i modify the "createPlayer" javascript function that creates the swf player in my html page? Actually my code is structured this way:

function createPlayer() {
var s = new SWFObject("mediaplayer.swf","playerID","500","200","7");
s.addParam("allowfullscreen","false");

s.addVariable("file","myplaylist.xml");
s.addVariable("width","500");
etc etc...

on the above code, do i have to put "main.swf" (which loads "mediaplayer.swf") instead of "mediaplayer.swf" as the new SWFObject or i leave "mediaplayer.swf"?

I hope i explained all well, if not please let me know and i'll try to explain a bit better (sorry for my english...) :-)
thanks for your support! ;-)
lv

in case this might help, please note that in my page i also have the "annotation" xml data extraction besides the FLV mediaplayer... thank you.

i also have the "annotation" xml data extraction besides the FLV mediaplayer...

then this would take quite an experienced actionscript programmer -
its beyond me, so personally i would rethink my project and stay in html/css/js - many things are possible without flash editing
maybe checkout the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]demopage[/url] for inspiration, its all pure html/css/js - no flash actionscript!

I got an error while playing it on a site
http://livetv.theredirection.com