6/15/2010 10:40:22 AM
Title:
Access ActioScript variable in HTML Control
I have an HTML control which is loading an HTML page and I want to access an AS variable inside this HTML.Anyone please help
Thanks in advance.
Rayan
Points: 400
Posts:0
6/15/2010 11:04:32 AM
you can expose a function inside actionscript to html , then call that function from html and receive in return the parameter.
check this post and reply by Alex
http://askmeflash.com/qdetail/488/how-to-use-vb-script-in-flex
6/15/2010 11:16:06 AM
This document / links explain several methods for interfacing HTML events,
by through DOM elements or its javascript control.
<http://livedocs.adobe.com/flex/3/html/help.html?content=HandlingHTMLEvents_1.html>
You choose appropriate mothods, by refer to your needs.
There is also AS code sample in user comments.
6/15/2010 11:37:42 AM
Thanks a lot krntom , I was not aware of DOM events and how to use them.
6/15/2010 11:43:31 AM
check this link from ADOBE to make communication and send data from html to actionscript and from actionscript to html using javascript and external Interface
http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html