A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: mySound.loadSound(" url ", isStreaming )

  1. #1
    Member
    Join Date
    Dec 2000
    Posts
    99

    mySound.loadSound(" url ", isStreaming )

    Hi,

    mySound.loadSound(" url ", isStreaming )

    Here what's mySound ?
    If the file is in the same root that the movie the "url" is name-of-the-music.mp3 right ?
    Where do i put this in my flash movie ?
    "isStreaming" do i let this like this or i put true or false ?

    Best Regards

    rhercules

  2. #2
    Member
    Join Date
    Dec 2000
    Posts
    99
    help :|

    rhercules

  3. #3
    Monkey Moderator Lexicon's Avatar
    Join Date
    Jul 2001
    Location
    UK
    Posts
    2,038
    mySound is a sound object that you must create.
    url is the string containing the path to, and the mp3 name.
    isStreaming needs to be true or false;

    e.g.
    code:

    mySound = new Sound();
    mySound.loadSound("mySong.mp3",true);



    See the Actionscript Language Reference or Actionscript Dictionary and look up Sound. You will find a full explaination there.
    www.lexicon-design.co.uk
    If we aren't supposed to eat animals, then why are they made of meat?
    If Vegetarians like animals so much, why do they eat all their food?

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Or better, have a look at this fabulous tutorial on soundObjects...

    http://www.kennybellew.com/tutorial/

  5. #5
    Member
    Join Date
    Dec 2000
    Posts
    99
    Thanks
    I will try that :-)

    Best Regards

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