A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: sound object - position

  1. #1
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145

    sound object - position

    you can't set the position of a sound object?

    thanks!

  2. #2
    Senior Member vevmesteren's Avatar
    Join Date
    Sep 2001
    Location
    Montréal, Québec
    Posts
    566
    position as in _y and _x? No...why would you want to do that?

    Depth as in _root.myObjects.SoundObject1, yes you can
    it is your mind that decides - it is with your mind that you fly


    vevmedia

  3. #3
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    Or do you mean left/right speaker? In that case check the setPan method. but I don't think that ther is a possibility to set it in surround though...

    /Mirandir

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    sorry, thought it was commonly used

    there are two properties of a sound object: duration and position

    example: song_length = mysong.duration;

    duration is how long the clip is and position is the current position in the duration so if you display the duration it shows a count as the clip plays

    setPosition doesn't seem to work so i assume you can't but i wanted to check with you guys.

  5. #5
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    Well you can specify a position with the start() method. As long as the sound isn't streaming that is.

    /Mirandir

  6. #6
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    Originally posted by Mirandir
    Well you can specify a position with the start() method. As long as the sound isn't streaming that is.
    seeeeeeeeeee? that's why i come to you guys. it's the simple and obvious solutions that i don't have when i first start doing something.

    exactly what i needed but it might have been days for me to realize i had already givin a position in the start paramater.

    thanks mirandir!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center