A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Pass variables from Flash to HTML

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    35

    Pass variables from Flash to HTML

    I guess this is the place for this topic.
    If not, admin please move it where it belongs.
    I have a flash movie and a HTML form on the same HTML page. I need to pass two variables, which are coordinates inside Flash movie, to edit fields in html form on the same page when user clicks inside the Flash movie.
    Can this be done?

    Thanks in advance

  2. #2
    Senior Member
    Join Date
    Oct 2003
    Posts
    1,354
    There are ways to have flash communicate with javascript that is within your HTML. Here are a few articles about the subject that should get you started..

    http://www.adobe.com/devnet/flash/ar...interface.html
    http://www.adobe.com/cfusion/knowled...fm?id=tn_15683
    http://www.adobe.com/devnet/flash/ar...ace_print.html

  3. #3
    BigLew™
    Join Date
    Feb 2005
    Location
    Basildon, Essex, UK
    Posts
    24
    go to next post
    Last edited by biglew5k; 11-25-2006 at 01:38 PM. Reason: oops double post
    When I Die I think the Universe will collapse in around me and kill everyone left in it. Have a Nice Day !

  4. #4
    BigLew™
    Join Date
    Feb 2005
    Location
    Basildon, Essex, UK
    Posts
    24
    to get flash player 6+ to communicate via javascript you need to be operating on a server due to new "security implementations". all you basically want is

    Code:
    //flash
    on(event){
        getURL("javascript:document.getElementById('sometag').innerHTML = 'something'"+variable1+"|"+variable2+";");
    }
    When I Die I think the Universe will collapse in around me and kill everyone left in it. Have a Nice Day !

  5. #5
    Member
    Join Date
    Jul 2002
    Posts
    35
    Thanx guys. I think it will do the trick.
    I'm not sure what your saying about security implementations but I'll figure it out. I hope.
    I didn't have the time to read all of what is on MM site but from the examples I saw, it is what I need. I'll read it today.

    If I have problem I'll post again here.

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