Hi,
what's the error you get ?
Hi there,
I'm new to Flash - and I'm trying to learn as much as possible - so I'm following a lot of online tutorials!
I stupidly followed a Flash8 tuorial and did it in CS3 - as I had a memeory lapseor something because I have read before that CS3 has a new version of action acript! But being new to all this - all action script looks gobbledy gook to me at the moment anyway - hence the learning as much as possible!
Anyway the MP3 tutorial I was doing is on here How to make a sound player with a visual equalizer that loads an external mp3 melody in Flash. Ideal for background website music that loops! Simple and easy!
Only mine doesn't work now I've built it - there's an error message when I try to view it (Ctrl+Enter) - the script used is:-
var musicPlays:Boolean = false;
var loopTune:Sound = new Sound();
loopTune.onLoad = function(success:Boolean) {
if (success) {
loopTune.start(0, 999);
musicPlays = true;
_root.musicPlayer.gotoAndStop("playing");
}
};
loopTune.loadSound("cooltune.mp3", false);
musicPlayer.playStop.onPress = function ():Void {
if (musicPlays) {
this._parent.gotoAndStop("stopped");
loopTune.stop();
musicPlays = false;
} else {
this._parent.gotoAndStop("playing");
loopTune.start(0, 999);
musicPlays = true;
}
};
Can anyone help me please?
If anyone has any ideas of where I should start to learn about FlashCS3 - that would also be helpful!
I have bought mazagines but everything is so advanced and they are not very good with instructions of how to do things!
Thanks for reading!
Blondie
XXXXX
Hi,
what's the error you get ?
There is no _root in as3.
Bookmarks