all groups > flash (macromedia) > november 2004 >
You're in the

flash (macromedia)

group:

Audio looping problem



Audio looping problem mediadrone01
11/5/2004 11:00:17 PM
flash (macromedia): I'm designing a small flash movie w/ audio controls. It's just a small box
with a "play" and a "stop" button. All it has to do is stream the audio. I
use the same flash template for each one of these I create, but one of them
won't work. Toward the end of the song, it starts playing the song again over
the top of the one already playing. I'm sure it's not a problem with the MP3
that I'm importing. Here's the actions I've got going:

For the play button:
on (release) {
_root.my_sound.stop();
_root.gotoAndStop("play");
_root.my_sound.start(0,3060);
_root.gotoAndStop("stop");
}

For the Stop button:
on (release) {
_root.my_sound.stop();
_root.gotoAndStop("play");
}

and in frame #1:
my_sound = new Sound();
my_sound.attachSound("sound");
my_sound.start(0,1000);
gotoAndStop("play");

Any clue what's going on w/ this? Pls help.
Re: Audio looping problem mediadrone01
11/5/2004 11:14:34 PM
More about this: The linkage on the audio file is "Export for Actionscript" and "Export in First Frame." The identifier is "sound."

The sound properties are:
effect: none
Re: Audio looping problem urami_
11/6/2004 9:27:07 AM


[quoted text, click to view]

The first action contradict itself. It first stop the play the sound
and it aim at two different Labels. You can't do that.
One at the time only.

[quoted text, click to view]


Frame should not have start action because it will execute regardless
the button each time you reenter the frame.



--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Re: Audio looping problem urami_
11/6/2004 9:28:48 AM


[quoted text, click to view]

Bit confuse here , Sound Object has no properties and it's always event.
there is no option to set it otherwise.
That would mean that you use two separate methods to attach the sound.


--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
AddThis Social Bookmark Button