# Changing Flash and positioning

**URL:** <https://forum.kirupa.com/t/changing-flash-and-positioning/309355>\
**Category:** web dev\
**Created:** [May 12, 2010, 6:34pm UTC](https://forum.kirupa.com/t/changing-flash-and-positioning/309355 "2010-05-12T18:34:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![protees](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@protees](https://forum.kirupa.com/u/protees)\
**Post date:** [May 12, 2010, 6:34pm UTC](https://forum.kirupa.com/t/changing-flash-and-positioning/309355/1 "2010-05-12T18:34:32Z")

</div>

I am using a program that generates avatar flash. In my html I want to be able to position the flash on my page in one location and when the user clicks on some help options change the the flash with a new one. I call the sample code below anf the flash runs, I call it with a onclick with different file name and it works bu clears out my entire web page and displays in top left corner. I am not a flash user. I need to know how to display a flash object at one location and change it to another at the same location without it changing the rest of my page.

\<script language=“javascript”\>  
AC\_FL\_RunContent(  
‘codebase’, ‘[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0)’,  
‘width’, ‘128’,  
‘height’, ‘160’,  
‘src’, ‘FlashSwf’,  
‘quality’, ‘high’,  
‘pluginspage’, ‘[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)’,  
‘align’, ‘middle’,  
‘vspace’, ‘20’,  
‘hspace’,‘100’,  
‘play’, ‘true’,  
‘loop’, ‘true’,  
‘scale’, ‘noscale’,  
‘wmode’, ‘window’,  
‘devicefont’, ‘false’,  
‘id’, ‘FlashSwf’,  
‘bgcolor’, ‘#ffffff’,  
‘name’, ‘FlashSwf’,  
‘menu’, ‘true’,  
‘allowFullScreen’, ‘false’,  
‘allowScriptAccess’,‘sameDomain’,  
‘movie’, ‘aaa\_Data/FlashSwf’,  
‘FlashVars’,‘StandByVideo=StandByVideoFlv&BrowseVideo=aaa’,  
‘salign’, ‘lt’  
); //end AC code  
\</script\>
