macromedia flash sitedesign:
Hello,
BASIC SCENARIO
I am working on an artist flash banner for a company and am stuck on an mp3
issue.
http://www.zioneyemedia.com/test/sesac/artist banner 4.html (or
http://www.zioneyemedia.com/test/sesac/artist banner 4.html if the link doesn't
work). The mp3 plays when the movie plays, but after the movie is done and I
refresh the page, the mp3 no longer plays. I'm assuming it has something to do
with the volume control code or how the mp3 was imported...
ADVANCED SCENARIO:
Below is the code I created for the volume control, which is placed in the
first frame of the main timeline of my movie.
~ volume control ~
onClipEvent (load) {
mySound = new Sound();
mySound.loadSound("
http://www.zioneyemedia.com/test/SESAC/controlcrop2.mp3",
false);
}
onClipEvent (enterFrame) {
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) {
_root.dl = "downloading song...";
} else {
complete = 1;
_root.dl = "";
}
mySound.setVolume(_root.volume);
}
I imported the mp3 sound through Import to Library > (right click on mp3) >
Linkage > Export for Actionscript and Export in First Frame.
ACTIONS:
I've tried messing around with the streaming boolean (true or false), and it
still doesn't play after being refreshed... I've worked on this too much and
can't stand the song anymore... Needing some fresh ears (and eyes) to look into
this.
RESULT:
So the mp3 works once, and I'm trying to figure out how to make the mp3 play
everytime the movie is refreshed, and at the same time, be able to have the
volume control clip to control the volume of the mp3.
HELP!!! I need to get this done by Monday, March 13!!!
Let me know if you guys have any methods that will work easier or better, or
both!
Attach Code
onClipEvent (load) {
mySound = new Sound();
mySound.loadSound("
http://www.zioneyemedia.com/test/SESAC/controlcrop2.mp3",
false);
}
onClipEvent (enterFrame) {
downloaded = mySound.getBytesLoaded();
total = mySound.getBytesTotal();
if (downloaded != total) {
_root.dl = "downloading song...";
} else {
complete = 1;
_root.dl = "";
}
mySound.setVolume(_root.volume);
}