You can copy all the frames of the music player file and paste them into the timeline of a movieclip in the main file if you don't want to use actionscript to load the file dynamically. Then you can place the player wherever you intend it to be.
If you want to load the file dynamically, what version of actionscript are you using?
im using action script 3.0
i probally would want to load them dynamically so if you can tell me how that would be great
Look into using the Loader class, possibly in combination with the contentLoaderInfo property so that you can place the object properly and control it after it is completely loaded. The Flash help documents provide examples you should be able to build from.
I'm assuming you have 2 swf files and you want to load one into the other. I'm learning to do the same thing with AS3. If you just have the 2 files it should be pretty simple In my case I have a MENU file that loads other swf's below it on level 0 with the addChildAt(loader, 0); If the player is small enough to overlay part of the loadong file then addChild(loader); should work. Before you add the contents of loader you first have to load your swf into loader. like this.
var loader:Loader = new Loader();
var objToLoad:URLRequest = new URLRequest("home.swf");
loader.x = 0;
loader.y = 0;
ok, this got it on the page, but I can't see it till I play the movie, and I cant ajust where it is on the stage how do I fix this?
If you followed Jim's solution, which was the second option I mentioned, then you will not see it until you play the file. You would have to go with my first option to be able to see it in the authoring environment.
To change the location of it with Jim's code, you need to adjust the loader.x and loader.y values.
so how would I do it your way? is it almost the same? what do I have to change?
I'm not sure which you are referring to as my way. Jim's code would come close to being what I would do for the dynamic approach. The only difference would be that I would wait until the file is loaded before I try to assign it a location and add it to the stage.
so how could i alter the code he put up to make it work dynamically? just add another variable? im confused
That code is loading it dynamically. Dynamic content is loaded into a file when you play a file--that's pretty much the definition of dynamic content. If you want to be able to see and edit the currently external file inside the other file, you'll have to manually transplant it into the file (my first option).
ok how do i do that ur first option?
First, create an empty movieclip in the main file so that you'll have a place to paste the content from the movie you want to add.
Then you need to copy the entire timeline of the movie you want to install: Open the file you want to add and select all occupied frames/layers of the timeline (click one frame at one end of the top layer, then shift-click the last frame on the bottom layer--or further down if other layers extend further). Right click on the selection and choose copy frames.
Note: You need to be sure that the file you copied does not contain library objects with the same names but different content than the main file's library objects to avoid having things replaced.
Back in the main file, right click on the one and only frame inside the empty movieclip you created and choose paste frames.
You should now have a movieclip containing the other file contents and code that you can place on the stage of the main file.
If I were going with option 1 merging into 1 file I'd take the contents from the file to be included and put it into a MovieClip in the including file. If you'd like I'd be glad to do it for you I could give you both versions. If you can give a url where I can download I'll do it or actually you could attach it to your next post if it's not too big.