# CSS Commands From Flash?

**URL:** <https://forum.kirupa.com/t/css-commands-from-flash/255766>\
**Category:** flash\
**Created:** [March 26, 2008, 7:38pm UTC](https://forum.kirupa.com/t/css-commands-from-flash/255766 "2008-03-26T19:38:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrwizzer](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mrwizzer](https://forum.kirupa.com/u/mrwizzer)\
**Post date:** [March 26, 2008, 7:38pm UTC](https://forum.kirupa.com/t/css-commands-from-flash/255766/1 "2008-03-26T19:38:44Z")

</div>

I’m working with a developer who has set up a simple scheme where the video on a page moves itself to the center of the page upon a click of a button. The button needs to be in Flash.

Question is: how do you call a CSS command (which I know nothing about) from inside Flash?

We need two flash buttons to call the following commands:

onclick=“document.getElementById(‘contentBox’).style.display=‘block’”  
onclick=“document.getElementById(‘contentBox’).style.display=‘none’”

Suggestions would be very much appreciated!
