A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Retrieve javascript function returned value into Flash

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    20

    Retrieve javascript function returned value into Flash

    Hi all

    I am posting a thread regarding passing a javascript returned value into Flash. It is slightly complex due to the solution I am looking for must target Flash Player 6.

    I have looked at various solutions including the Flash / JavaScript Integration Kit wrote by the guys at the former Macromedia. Unfortunately the solution involved includes various classes and then import them in Flash which produces the following error:

    The class or interface 'com.macromedia.javascript.JavaScriptProxy' could not be loaded.

    The Javascript I want to retrieve the value from looks like:

    <script language="JavaScript">
    <![CDATA[

    function CheckIn(){
    var originalDate = $('#FromDate').val();
    return(originalDate);
    }

    ]]>
    </script>

    I just need to pass the returned value into a variable within Flash.

    Any assistance would be gratefully received, thanks

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    Im not sure what PLayer 6 all allows.. but can you NOT ue ExternalInterface() to call/execute functions registered in both the wrapper (ie: html/js functions) & flash?

    alternately.. maybe using some .js to add the results from your function as a var in the embed code? (flashvar?)

    when do you need this value in flash? when it loads?

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