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

  • SEARCH
  • Home
  • 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 8586403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:18:09+00:00 2026-06-11T22:18:09+00:00

I want to know the equivalent for getMCRef().attachAudio() in openlaszlo 4.9. Earlier i used

  • 0

I want to know the equivalent for getMCRef().attachAudio() in openlaszlo 4.9. Earlier i used this method to get the audio input to a view to displace based on the audio. But in the recent version i tried attaching it to the sprite but it’s not working.
Any ideas?

  • 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-11T22:18:10+00:00Added an answer on June 11, 2026 at 10:18 pm

    This code snippet should get you started, it shows you how to access the Flash Microphone and Camera object from OpenLaszlo SWF8, SWF9 and SWF10 run-time in OpenLaszlo 4.9.0:

    <class name="mediamanager">
    
      <when property="$as3"><!-- SWF9, SWF10 -->
    
        <passthrough>
          import flash.media.*;
        </passthrough>
    
        <!---
        Gets a reference to the camera.
    
        @returns object: reference to the camera object.
        -->
        <method name="getMicrophone">
          return flash.media.Microphone.getMicrophone();
        </method>
    
        <method name="getNumMics">
          return flash.media.Microphone.names.length;
        </method>   
    
        <method name="getMicNames">
          return flash.media.Microphone.names;
        </method>           
    
      </when>
    
      <when property="$as2"><!-- SWF8 -->
    
        <!---
        Gets a reference to the camera.
    
        @returns object: reference to the camera object.
        -->
        <method name="getMicrophone">
          return Microphone.get();
        </method>
    
       <method name="getNumMics">
         return Microphone.names.length;
       </method>        
    
       <method name="getMicNames">
          return Microphone.names;
       </method>        
    
    </when>
    

    <when property=”$as3″><!– SWF9, SWF10 –>

    <passthrough>
      import flash.media.*;
    </passthrough>
    
    <!---
    Gets a reference to the camera.
    
    @returns object: reference to the camera object.
    -->
    <method name="getCamera">
      return flash.media.Camera.getCamera();
    </method>
    
    <method name="getNumCams">
      return flash.media.Camera.names.length;
    </method>   
    
    <method name="getCamNames">
      return flash.media.Camera.names;
    </method>       
    

    </when>

    <when property=”$as2″>

     <!---
     Gets a reference to the camera.
    
     @returns object: reference to the camera object.
     -->
    <method name="getCamera">
      return Camera.get();
    </method>
    
    <method name="getNumCams">
      return Camera.names.length;
    </method>
    
    <method name="getCamNames">
      return Camera.names;
    </method>
    

    </when>

    </class>

    See the Flash documentation for the Flash Microphone and Camera object for full details of their properties and methods. Also, this is not the official way to access the Microphone and Camera in OpenLaszlo, but I used them because not all the properties were available from the OpenLaszlo camera and mic API, if you want to use the official API see the official class documentation at:

    http://www.openlaszlo.org/lps4.9/docs/reference/ – “Audio Video” folder

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

Sidebar

Related Questions

I want to know what's equivalent to using AVAudioPlayerDelegate 's audioPlayerDidFinishPlaying:successfully: method in OpenAL.
I want to know if there is an equivalent cron in Windows and how
Does anyone know the d3 equivalent to jQuery attribute selector: $('[attribute=name]') I want to
i want know if is possible, to get a specific element value of a
I have an android app it displays web view.I want know the app idle
I want to know what's the equivalent of Long data type in PostgreSQL?
I want to know the code equivalent of the part that is inside the
I want to know if exist a equivalent of (.net) list<somefixedclass> in vb6 I
As asked here . I want to know if it is possible to get
I have the below static google map url. just want to know the equivalent

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.