Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8523161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:19:46+00:00 2026-06-11T07:19:46+00:00

In soundmanger2 http://www.schillmania.com/projects/soundmanager2/ I created the following sound object: soundManager.setup({ url: ‘<?php echo $html->url(‘/’)

  • 0

In soundmanger2 http://www.schillmania.com/projects/soundmanager2/

I created the following sound object:

soundManager.setup({
  url: '<?php echo $html->url('/') ?>js/swf/',
  flashVersion: 9, // optional: shiny features (default = 8)
  useFlashBlock: false, // optionally, enable when you're ready to dive in
  allowScriptAccess: 'always',
  /**
   * read up on HTML5 audio support, if you're feeling adventurous.
   * iPad/iPhone and devices without flash installed will always attempt to use it.
   */
  onready: function() {
    //defaultReader = 'Menshawi_16kbps';
    soundManager.createSound({
  id: defaultReader,
  url: '<?php echo $html->url('/').'assets/audio/\'+defaultReader+\''.$mp3; ?>',
  autoLoad: false,
  autoPlay: true,
  onload: function() {
    //alert('The sound '+this.id+' loaded!');
  },
  onplay: function(){
    $('#'+defaultReader).removeClass('sm2_link');
    $('#'+defaultReader).addClass('sm2_playing');
    $.cookie('defaultReader', defaultReader, { expires: 7, path: '/' });
    $('#'+defaultReader).click(function(){
      //alert('ho')

      soundManager.togglePause(defaultReader);
      return false;


    });

  },

  onfinish: function(){
    $('#'+defaultReader).addClass('sm2_link');
    $('#'+defaultReader).removeClass('sm2_playing');

  },
  volume: 100
});
  }
});

I want to access the object created by soundManager.createSound from another script tag
for example:

<script>
theSoundObjectCreated.play()
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:19:47+00:00Added an answer on June 11, 2026 at 7:19 am

    Setup your soundmanager with something like this

    window.soundManager = new SoundManager();

    Then use soundManager.setup(.....)

    You would load/create a sound with

    soundManager.createSound({
        id: 'some-id-for-your-sound',
        url: "url-to-your-sound.mp3",
        autoLoad: true,
        autoPlay: false,
        volume: 40
    });
    

    And you can play that sound with

    soundManager.getSoundById("some-id-for-your-sound").play()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic sound manager class that's derived from an online example: http://www.xnawiki.com/index.php?title=Basic_Sound_Manager_For_XNA_GS_3.0
function doclick(){ soundManager.createSound({ id: 'mySound', url: 'http://localhost/htmlshooter/wav/gun.wav', autoLoad: true, autoPlay: true, volume: 100 });
soundManager.url = 'swf/'; soundManager.createSound({ id: 'mySound', url: 'http://localhost/htmlshooter/mp3/gun.mp3', autoLoad: true, autoPlay: true, volume: 100
Currently I'm using soundmanager2 to power sounds in my web app. SoundManager uses Flash,
I've just stared using JQuery and SoundManger2, and I have noticed that SoundManager has
I'm working on a html5 sound fader widget using the Soundmanager2 library, and I
So I am trying to access a jquery soundmanager variable from one script (wpaudio.js
I'm new to OpenAL. I managed to get a soundmanager code that wraps OpenAL
I have been working on a simple app to play a random sound byte
I am using SoundManager2 to play MP3 file on a HTML5 page. It works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.