A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Location
    Bombay, INDIA
    Posts
    17

    "sound.start(loop);" doen't work. Why? (MX)

    hey dudes,

    I'm making a presentation using flashMX. And i tried using
    the "sound object". Everything works fine, except that it
    doen't loop.

    here's the script:
    .......................................
    introSound = new Sound();
    introSound.attachSound("intro_loop");
    introSound.setVolume(100);
    introSound.start(loop);
    .......................................

    Last line is the one supposed to do d trick. Even AS Help says so.

    Yes yes yes, the sound has proper linkage & correct name. It just
    plays once, thats it. Any ideas why its not wurkin??

    ~Avrinder

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Location
    UK
    Posts
    493
    the correct syntax is:

    mySound.start( secondsOffset, loops );

    loops is a numeric value/numeric variable that determines the number of time the sound loops/

    i.e.

    mySound.start( 0, 100 );//no Offset, loop 100 times

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