# Can I control a SWF (AS3) behavior through external Javascript?

**URL:** <https://forum.kirupa.com/t/can-i-control-a-swf-as3-behavior-through-external-javascript/278425>\
**Category:** Uncategorized\
**Created:** [December 29, 2008, 9:46pm UTC](https://forum.kirupa.com/t/can-i-control-a-swf-as3-behavior-through-external-javascript/278425 "2008-12-29T21:46:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paradise\_Wolf](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Paradise\_Wolf](https://forum.kirupa.com/u/Paradise_Wolf)\
**Post date:** [December 29, 2008, 9:46pm UTC](https://forum.kirupa.com/t/can-i-control-a-swf-as3-behavior-through-external-javascript/278425/1 "2008-12-29T21:46:41Z")

</div>

[SIZE=“3”][FONT=“Tahoma”]I am planning to build a web page where external buttons using javascript commands like this [COLOR=“Blue”]**\<a onClick="javascript:LoadSWF( 1 ) …\>\< img … \>**[/COLOR] and their code would instruct a SWF parent object ( embedded in the html code ) to load the desired interactive SWF child ( and replace a previous SWF ) within it, where the user then could play with it.

My doubt however is, [COLOR=“Blue”] **can a SWF embedded object receive external instructions from javascript code ? If so, how ?** [/COLOR][/FONT][/SIZE]
