PDA

View Full Version : AS3 to divs?


tweekskratch
06-20-2009, 01:38 AM
Does anyone know how to communicate with HTML divs through AS3? For example if I hit a button in a swf, it targets the div? thanks guys!

losergeekdesign
06-20-2009, 01:46 AM
You'll need Javascript to perform the function for you. Look into ExternalInterface.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html

You can communicate with the HTML page this way and alter content (in your case DIV's) accordingly. Hope this helps.

tweekskratch
06-20-2009, 04:52 AM
Does anyone know how to communicate with HTML divs through AS3? For example if I hit a button in a swf, it targets the div? thanks guys!

I will look into it. Thanks!