CSS rotation: Flash not rotating

1.2k views Asked by At

I have a parent div with a flash movie in it. I rotate the parent div, so I expect that the flash movie is also rotated.

Unfortunatly this doesn't happen. The flash movie has no rotation.

This is my code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<style>
    .rotate
    {
        position: absolute;
        top: 100px;
        left: 250px;
        width:800px;
        height: 800px;
        background-color: #f00; 


        -webkit-transform:rotate(-45deg);
        -ms-transform:rotate(-45deg);
        -moz-transform:rotate(-45deg);
        -o-transform:rotate(-45deg);
        transform:rotate(-45deg);
    }
</style>

</head>

<body>

<div class="rotate">
    <h1>Youtube Flash Video:</h1>
    <object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/KMU0tzLwhbE?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/KMU0tzLwhbE?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

</div>

</body>
</html>

And this is how it looks like in the browser

enter image description here

Do you know how I can get this flash movie rotating with its parent?

Thanks a lot! Vincent

1

There are 1 answers

1
Vinzcent On BEST ANSWER

The new way of youtube embedding solved my problem.

http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html