# Yarg! - why can't i align flash w/detection kit?

**URL:** <https://forum.kirupa.com/t/yarg-why-cant-i-align-flash-w-detection-kit/232301>\
**Category:** flash\
**Created:** [July 12, 2007, 3:53pm UTC](https://forum.kirupa.com/t/yarg-why-cant-i-align-flash-w-detection-kit/232301 "2007-07-12T15:53:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [July 12, 2007, 3:53pm UTC](https://forum.kirupa.com/t/yarg-why-cant-i-align-flash-w-detection-kit/232301/1 "2007-07-12T15:53:35Z")

</div>

i’m using the adobe flash detection kit (client side detection). The html page calls a javascript function that gets passed the object/embed tag attributes and writes them to the page if flash is detected.

this works, but i can’t seem to figger out how to make the @#% flash movie align to center (horiz)!!! What am i missing here?

code:

```auto
if (hasReqestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
				"src", "eightCheck",
				"width", "812",
				"height", "447",
				"align", "middle",
				"id", "checkforfp8",
				"quality", "high",
				"bgcolor", "#FFFFFF",
				"wmode", "transparent",
				"name", "detection",
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);

```

changing

```auto
"align", "middle",

```

to “right” changes the align, but ‘middle’ doesn’t seem to work.

can anyone shed some light? i don’t usually have to screw around with the html side of things…
