Flash Embed Swf problem

I'm trying to insert a number of small swf files into one main swf file or fla initially :)

I've managed to get the files in however now the individual swf files don't seem to work

I'm not sure what you need me to attach, there's no code in the main fla file... and the swf's are individual music players that begin music after the play button is pressed.

However when embedded the play buttons don't work :(

I've been through lots of tutorials, and still can't get this working... Any ideas?
Kegan5Asked:
Who is Participating?
 
najhCommented:
what you've done there is copy one of your phone things in and then copied the next one over the top. it has exactly the same name so each one you see on screen is actually an instance of the same one (which plays the mp3 file, "tc.mp3")

in reality you have 5 different audio things so you need to copy each in but give each one a different name in the library, not just audio. (but maybe audio1..2..3... would be just fine)

you'll notice that if you "single-click" with your left mouse button on one of the audio movieclips on screen that it'll say, Instance of: audio.  Try clicking another, and it'll say the same thing.

Once you're done, each one will say a different thing - one for each  audio clip. Once you've got all your clips loaded in you'll be able to use that "swap" button to exchange your "audio" movieclip for an "audio1" movieclip (or whatever you've called it). Hope that makes sense!
0
 
najhCommented:
eerrrm - well have the tutorials you've done worked?

what have you tried that hasn't worked? slightly easier to explain things if you've got a sample of code that doesn't work then we can probably see what's wrong.
0
 
Kegan5Author Commented:
Sorry no, no tutorials i've tried are working for me

Is it possible to attach what i'm doing? The action script is all over the place on one of the files(downloaded as a template)
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
najhCommented:
there's no way to attach files to experts exchange but you can upload them to your website, or if you don't have one you can get a free one from http://geocities.yahoo.com/ which will likely do the job. put the files in a zip though.
0
 
Kegan5Author Commented:
http://chamberspub.co.uk/flash.zip

The main FLA file is where I tried to embed the individual SWF files, the individual folder contains one example of the SWF file I'm trying to embed.

Hope that makes sense?

the basis of it is... the swf's don't work when I embed them

thanks for your help

K
0
 
najhCommented:
ahhh no they won't work if you import them like that.

if you're just wanting to have them in the same fla, i would copy the movieclip that you want from the individual flas and paste it into the main fla - then you'll get the functionality without having to play about with actionscript so much.

eg copy the "audio" movieclip from birdie.fla and paste into the main.fla. (and you'll need to move the sound file up a directory)

it's sort of similar to this question if this helps explain things:
http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_20953501.html


You can also attach it to an existing movie clip on stage - for example: give your left hand phone an <Instance Name> of myPhone_mc

loadMovie("birdie.swf", myPhone_mc);

actually you'll need to also move your mp3 file up a level, but it'll work this way at least.


0
 
Kegan5Author Commented:
Thanks...

I think I'm being a dunce here... I copied over the files... they worked but kept playing the same song, i assumed because i had code in the main FLA pointing to that sound file.

So I deleted that line of code, now nothing plays?

Each individual Mc has actionscript

http://chamberspub.co.uk/flash2.zip

I've added a link to what I currently have

Thanks

K

0
 
Kegan5Author Commented:
Thankyou Very Very much for your thorough explanations, I have it working now.

K :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.