View Full Version : Sound Problem: Linking sound to a movieclip button.
_root.bhmenu.stry.onRollOver = function() {
newSound = new Sound ();
newSound.attachSound ("switch_click");
newSound.start ();
}
I have that on the main stage in an action's frame.
I'm using a movieclip instance as a button to call up frames, but I want toattach a rollOver sound.
The instance is inside of the "bhMenu"...
What am I doing wrong? It won't work.
mmm..pi..3.14..
10-15-2004, 03:32 AM
did you check the linkage name of the sound you want to play??
did you check the linkage name of the sound you want to play??
Yes. The SWF is in the same folder as the file switch_click...
I dunno what's going on.
Do you have AIM? Or AOL?
mmm..pi..3.14..
10-15-2004, 05:39 AM
Well, not on this computer I don't, sorry :(
"switch_click" should be the linkage name of your mp3, not an swf
Eric :)
Well, not on this computer I don't, sorry :(
"switch_click" should be the linkage name of your mp3, not an swf
Eric :)
Oh. No I was saying that my MP3 is in the same folder as the SWF file.
Sorry.
mmm..pi..3.14..
10-15-2004, 06:09 AM
can I see your fla??
Sure..
But I'm a newbie to this so dont' go "Wtf" When you see it. It looks big...
I wish I knew how to optimize it a bit more.
While you're looking at that--
Sorry --
I have YET to figure out the actionscript for an "OnEvent" (OnRelease,OnRollover,etc) fade in and fade out.
Like you go into a frame and a jpg fades in, go out and it fades out without having to make tweens.
THanks in advanced. You're a really big help.
mmm..pi..3.14..
10-15-2004, 07:02 AM
Yeah, you didn't set the linkage name. The linkage name is not the name of your mp3 sound in the library, to set the linkage name, you have to right click the sound and select "linkage", then click "Export for actionscript" and give it a name.
Anyway, fixed :)
Eric
Yeah, you didn't set the linkage name. The linkage name is not the name of your mp3 sound in the library, to set the linkage name, you have to right click the sound and select "linkage", then click "Export for actionscript" and give it a name.
Anyway, fixed :)
Eric
Coool. Thanks. I'm going to look at it and correct it.
You know where a tutorial is on the fade in and out script?
mmm..pi..3.14..
10-15-2004, 07:22 AM
Do you want to fade in and then out an image or just learn how to fade an image??
Example of what kind of actionscript I'm looking for--
onEnterFrame = (A function that will fade in an object), and then, when you leave that frame to go to one that's fifteen frames down the line... instead of just "popping" away or disappearing, it fades out with that same script.
That's what I want to do.
mmm..pi..3.14..
10-15-2004, 07:40 AM
Ok, well I made this a while ago for someone else but it does kindof the thing that you need. It fades in and out a pic (it's just a small picture viewer, thumbnails and big pics that fade in when you press the thumbnail button and also fade out). Play with it and let me know if you need any help.
Eric :)
=P You made that for me a while ago.
But it didn't exactly work. Maybe I should go back and try it again.
THanks!
mmm..pi..3.14..
10-15-2004, 07:47 AM
Oh that was you!, hehe...guess I forgot, hehe *with a confused look on face, looks around for brain...*
Ok, let me know if you need any help.
Eric :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.