Groups | Blog | Home
all groups > flash (macromedia) > august 2004 >

flash (macromedia) : Problems with sounds


Xx)MaveriK[X]
8/17/2004 11:08:23 PM
hi,
pwiop
8/17/2004 11:17:51 PM
What the devil are to talking about dude - please try and re-phrase your question

NSurveyor
8/17/2004 11:21:21 PM
i dont exactly know what u mean by "sound time" so im guessing thats either the
duration or position of a sound file.
In order to find out the current position/duration of the song u have to do
this:
1) in the library, right-click the sound file, and go to linkage
2) Check off Export for ActionScript, and put in an id name, then close the
screen
3) in the timeline add the following action script>
mySound = new Sound()
mySound.attachSound("put the id name u chose here")
4) When u want the sound to play add the following action script:
mySound.play()
5) Then if also add the following actionscript:
this.onEnterFrame = function() {
myDuration = mySound.duration
myPosition = mySound.position
6) create a dynamic text box, assign it the variable myDuration or myPosition
};

Xx)MaveriK[X]
8/17/2004 11:32:04 PM
thx, it was ecxactly what i ment...
AddThis Social Bookmark Button