-
Transparent background with My Avatar Editor Object

If you are using the javascript swfobject method for the hosted My Avatar Editor object you can use this code to give your avatar a transparent background:<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"},{wmode:"transparent"}); function setFacialFeature(){ var avatarSWF = document.getElementById('avatarSWFContainer'); avatarSWF.draw(); } //]]> </script>The only bit you need to change from the default code is the parameter which is the {wmode:”transparent”} bit
Related Posts
Latest Videos
Sponsors
- Using Scratch at Home February 10, 2012 Mr. Mayoh
- Better Conversations February 10, 2012 Mr. Mayoh
- 1 minute weekly web wonder – Week 19 February 10, 2012 chickensaltash
- Computer Science courses should be left to the experts: teachers February 10, 2012 Terry Freedman
- Being less helpful February 9, 2012 oliverquinlan
- Maths all around you – shining a mathematical spotlight on where you live February 9, 2012 Malcolm Wilson
- Flame Painter and more – IWB interactive art experiences February 9, 2012 Tim




