A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: scale controls volume

  1. #1
    Senior Member
    Join Date
    Aug 2006
    Posts
    293

    scale controls volume

    Afternoon all, could really do with some help here, so if anyone knows the answer I'd be really grateful to you if you can tell me how!

    Okay I am using some script that creates a 3d carousel effect, three mc's rotate around a static mc - as the carousel rotates the three increase and decrease in size - biggest at the front smallest at the back.

    Is it possible to add some code to each of the three mc's to attach/play a sound/mp3 constantly, but increase and decrease the volume of the mp3 depending on the size/scale of the clip - meaning the bigger the clip the louder it is?

    Is that possible? Anyone know how?

  2. #2
    Junior Member
    Join Date
    Feb 2003
    Posts
    28
    logically something like :

    mc's volume = (current mc scale / maximum mc scale) * maximum volume

  3. #3
    Senior Member
    Join Date
    Aug 2006
    Posts
    293
    ...I have tried something similar but that didn't seem to make any difference.

    The volume stayed consistent throughout the scale of the mc.

    How should it be written properly and do I put it straight into the mc? I tried putting the reference both on the timeline and the mc timeline - neither made a difference - but that said - I don't know if I had done it right!
    AS3 is still a learning curve for me :-(

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