Want to push a hex value from a database to a myavatareditor element? It’s easy, here is an example:
Make sure $avatarid is the Hex code for your avatar. PHP example included here..
<script type="text/javascript">
//<![CDATA[
var avatarvalue = "<?= $avatarid ?>";
var avatarURL = "myavatarcharacter.swf?avatar=" + avatarvalue;
swfobject.embedSWF(avatarURL, "avatarSWFContainer", "160", "200", "10.0.0", null, {hosted:true});
function setFacialFeature(){
var avatarSWF = document.getElementById('avatarSWFContainer');
avatarSWF.draw();
}
//]]>
</script>

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=38bd6862-c727-4c5a-99a2-6496487babee)
![logo_160[1]](https://mclear.co.uk/wp-content/uploads/2010/05/logo_1601.png)
![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=bbeed9a0-d73c-4be3-bf9d-6af70c840351)
![SPDryEraBxL[1]](https://mclear.co.uk/wp-content/uploads/2010/05/SPDryEraBxL1.jpg)

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=1317157a-d2ad-43e7-b80e-6fdd733856fa)