A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27
  1. #21
    Senior Moderator ®
    FK´s Banning Machine ™
    GMF ™'s Avatar
    Join Date
    Feb 2000
    Location
    Oslo, Norway
    Posts
    5,697
    Glad you feel that way and im happy to help . There are some great tuts about sound if you click the tutlink on top of this page ,eaven open movies for download .

  2. #22
    Junior Member
    Join Date
    Feb 2001
    Posts
    7
    I think i understand the syntax now for the loadmovie,....you load and unload into the same level right?


    1 other question,....is there a way to get the total time in minutes and seconds and have it count like a CD player?

  3. #23
    Senior Moderator ®
    FK´s Banning Machine ™
    GMF ™'s Avatar
    Join Date
    Feb 2000
    Location
    Oslo, Norway
    Posts
    5,697
    Yes , you load it into level 20 or the level you choose , once you load a movie into that level it will stop to play. If you have a button on / off , this would be the action .

    On : Load movie , sound.swf into _level20 .

    Off : Unload movie , _level20

    2 question : Havent tryed it but i think you use the actionscript get timer or soemthing like that , actionscripts isnt my best side (still researching every day).

    Like i said , there are tons of open movies like sound controls, mixers , you name it , its there .

    I have to go now , see yah.

  4. #24
    Junior Member
    Join Date
    Apr 2001
    Posts
    7

    Smile

    Originally posted by GmF
    Take a look at this , its not for a external swf but for a movieclip http://www.gmf.as/downloads/volume_in_levels.html

    I think you can take advantage of it .
    BINGO!!
    Okay, Imported Soundclip via openMovie! VolumeControl

    This is the action script for the external .swf
    [b]s = new Sound(this);
    s.attachSound("mySound");
    s.start();

    To adjust the volume, I needed to call the property s of the _root.myloadedsound object!!!

    onClipEvent (load) {
    top = _y;
    left = _x;
    right = _x;
    bottom = _y+73;
    }
    onClipEvent (enterFrame) {
    if (dragging == true) {
    _root.musicload.s.setVolume(100-(_y-top));
    }
    }

    tis good to have volume control!!!!!!!!!!!

    Many Thanks!!!!!!!!!


  5. #25
    Junior Member
    Join Date
    Apr 2001
    Posts
    7
    Originally posted by GmF
    Take a look at this , its not for a external swf but for a movieclip http://www.gmf.as/downloads/volume_in_levels.html

    I think you can take advantage of it .


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
    BINGO!!
    Okay, Imported Soundclip via openMovie! VolumeControl

    This is the action script for the external .swf
    [b]s = new Sound(this);
    s.attachSound("mySound");
    s.start();

    To adjust the volume, I needed to call the property s of the _root.musicload object!!!

    onClipEvent (load) {
    top = _y;
    left = _x;
    right = _x;
    bottom = _y+73;
    }
    onClipEvent (enterFrame) {
    if (dragging == true) {
    _root.musicload.s.setVolume(100-(_y-top));
    }
    }

    tis good to have volume control!!!!!!!!!!!

    Many Thanks!!!!!!!!!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  6. #26
    Senior Moderator ®
    FK´s Banning Machine ™
    GMF ™'s Avatar
    Join Date
    Feb 2000
    Location
    Oslo, Norway
    Posts
    5,697

  7. #27
    Senior Member
    Join Date
    Oct 2000
    Location
    Kansas City MO
    Posts
    231

    i have a differnent problem same area

    Originally posted by Marx
    Hi..
    Whenever you load a sound swf file you need to change the way you set up the sound file. For instance, you would normally set up your sound object as follows:

    s = new Sound();
    s.attachSound("mySound");
    s.start();

    When you test this it works fine, fine that is until you load it into another movie at which point it will cease to work. The reason for this is that the loaded movie loses it's connection to the linked sound.
    To remedy the problem you need to force the sound file to refer to itself. You do this by adding the 'this' keyword:

    s = new Sound(this);
    s.attachSound("mySound");
    s.start();

    Hope this helps.
    I have this sound object code set up and use it as a frame action to start my music. This along with a frame action that fades the attached sound. This works, however on the _root level of my movie i have streaming sound that coordinates with my movie...the sound object elements all sounds after fade. Should i create a separate swf and unload it..i wanted a overlap between fading event loop and streaming loop.

    I can use any help out there.

    Thanks

    m

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