dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: dynamic sound

  1. #1
    Senior Member
    Join Date
    May 2005
    Posts
    324

    dynamic sound

    how can i load a sound using a dynamic text box referreing to its location?

    also, how can i unload a sound once loaded?
    "great scott!"

    "I know, this is heavy!"

  2. #2
    Junior Member
    Join Date
    Jul 2004
    Posts
    23
    Code:
    s = new Sound ();
    s.onLoad = function ()
    {
    	s.start (0, 999);
    };
    s.loadSound (myTxt.text);
    stop();
    //To stop the sound just use s.stop();

  3. #3
    Senior Member
    Join Date
    May 2005
    Posts
    324
    is there a way to unload the sound from the memory?
    "great scott!"

    "I know, this is heavy!"

  4. #4
    Junior Member
    Join Date
    Jul 2004
    Posts
    23
    maybe:

    delete s;

    not sure thought, but it should clear from memory...

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