-
Senior Mender
The new mx capabilities of loading external mp3 file is great but i want to know if there is a way to play a song from midle of the file ....
What i want is to have the possibility of draging a pointer that indicate the status of where the song is at. But i haven't find out a way to play the song from the midle of it.
Is this possible???
-
Senior Mender
just find out...
Thanx anyway!!!
-
hi trionik,
could you share your solution/finding? I have the same issue, i want to use a button that pauses a embeded qt-movie and a mp3sound at the same time.
thx in advanced
-
Senior Mender
I don't think you can control video...
-
Senior Member
sure you can
for example if you have
mp3 sample 60 sec long
try this code,..
s = new Sound(_root);
s.attachSound("sound");
s.start(30, 9999);
so the sound will start in the middle.
______________________
V.
-
Senior Mender
Remark you cannot do so if your sound is stream!!
-
share
So could you share your solution ?
would be great to have a stream start with an offset.
Thx
-
yea, streaming must = false if you choose to start a specific time in the audio.
-
Senior Mender
There is no solution ... Or at least not yet...
Just don't stream the song!
-
Senior Member
The Man asked how to play song from a middle,..
I put an answer, and I try it,.. it works just fine,
if you have 8 sec long song or sound semple if you put it to play with 4 sec offset you`ll get start at middle.
-
Senior Member
oh sorry,..
I forgot about steaming..
-
Senior Member
Originally posted by vucjak
oh sorry,..
I forgot about steaming..
____________
Wait a min.!!!!
maybe you can put your sound in seperate *.swf, and there
put code that I gave you,
and try streaming that *.swf, once it is streamed, give him an action just to go to frame where is code for playing from the middle...
That could work...
__________________
V.
-
--Question: How do you pause an mp3? See my question below.--
Vucjak-
Thanks for the code:
s = new Sound(_root);
s.attachSound("sound");
s.start(30, 9999);
This works perfectly well for my dynamic mp3. Here's my code:
file = "track01.mp3";
mySound = new Sound();
mySound.loadSound(file);
--
Then I place your
s.start(30, 9999);
on a button.
All is well. However, can you tell me what those parameters (30,9999) mean? I figgered the 30 means the time to begin playing. What is the 9999? Can I place those numbers in a variable, then call it again?
The reason why I ask, is because I am trying to get the mp3 player to pause, then unpause where it left off. I know this is possible because I saw a MM guy do this in person.
Any direction would be fantastic. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|