all groups > flash actionscript > june 2005 >
You're in the

flash actionscript

group:

Levels problem?


Levels problem? Mrs. Nottingham
6/8/2005 10:45:51 PM
flash actionscript:
I have this launch movie that loads the portfolio movie. The port movie has
these circles that are supposed to play a sound on rollover and release. They
work fine if I just play them in the port movie, but once they are loaded on
top of the launch movie they no longer play the sound ? but the other functions
on the circles still work (they grow, shrink, and play a video, swap out some
text)

Do you know what I?m doing wrong?

Thanks!

Here's the movieClip code:

on (release) {
mySound.attachSound("releaseSound");
mySound.start();
// Start Set Video Stream Behavior
var m = this._parent.videoName;
var p = true;
m.setMedia("vid02.flv");
this._parent.videoName.volume = 15;
if (p) {
m.play();
} else {
m.stop();
}
// End Set Video Stream Behavior
}
on (rollOver) {
mySound.attachSound("rollOverSound2");
mySound.start();
this._parent.title_txt.text = "Immaculate House";
this._parent.body_txt.text = "Independent film by Kevin Obsatz.";
}

In the timeline of the actual movieClip I have this:
mySound = new Sound();

Re: Levels problem? kglad
6/8/2005 11:51:00 PM
change: mySound = new Sound();

Re: Levels problem? Mrs. Nottingham
6/8/2005 11:53:42 PM
Re: Levels problem? kglad
6/8/2005 11:56:19 PM
Re: Levels problem? SteveStall
6/9/2005 12:22:29 AM
//Try to insert on you portfolio movie this code
this._lockroot = true


//Other wise place this on _root
var sound:Sound = new Sound ();
_global.playSound = function (whatSound) {
sound.attachSound (whatSound.toString ());
sound.start ();
};

//On Buttons only
on (release) {
playSound ("releaseSound");
var myVideo:MediaDisplay = this._parent.videoName;
myVideo.setMedia ("vid02.flv", "FLV");
myVideo.volume = 15;
var p:Bolean = true;
(p) ? myVideo.play () : myVideo.stop ();
}
on (rollOver) {
playSound ("rollOverSound2");
this._parent.title_txt.text = "Immaculate House";
this._parent.body_txt.text = "Independent film by Kevin Obsatz.";
}


Hope I helped,

SteveStall




[quoted text, click to view]

AddThis Social Bookmark Button