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 6539911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:54:55+00:00 2026-05-25T10:54:55+00:00

I have a flash music player that I would like to accept a parameter

  • 0

I have a flash music player that I would like to accept a parameter via a button click on a website. I’m thinking I could do this with javascript but not sure how.

Does anybody have any sample code for both the javascript and what I would use to request the variable inside my actionscript code?

Thanks, I appreciate it!

  • 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-05-25T10:54:55+00:00Added an answer on May 25, 2026 at 10:54 am

    http://painteddigital.com/2008/calling-flash-as3-functions-from-javascript/

    In the flash add a callback for the javascript function:

    import flash.external.ExternalInterface;
    ExternalInterface.addCallback("sendTextToFlash", getTextFromJavaScript);
    function getTextFromJavaScript(str):void {
        trace(str);
    }
    

    In the html/js call it:

    <script type="text/javascript">
        var currentPage="Home";
        function setCurrentPage(newPage) {
            currentPage = newPage;
            SendDataToFlashMovie(newPage);
        }
    

    Calling JS Function From Flash: getURL(“javascript:myfunction();”);

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

Sidebar

Related Questions

I have a flash player that has a set of songs loaded via an
I'm embedding a flash music player from Soundclick into my music website. I have
I have a WebView application that plays music with a flash player and I
I have a site that includes a Flash music player integrated into the layout.
I have a flash player that loads in some additional features from flash files
I have a site where users can stream my music from a flash player
I have written a game in Flash (AS3/Flex SDK/MXMLC) that streams music and sound
A have a flash widget (a music player) and there are about 10 instances
I have a master page and inside : a music player. <object type=application/x-shockwave-flash data=http://flash-mp3-player.net/medias/player_mp3_maxi.swf
How can I have Flash reading XML ignore white spaces that would be ignored

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.