Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Getting flash object to crop when resizing browser window

$
0
0

The way I currently have my html resizes the flash file as I resize my browser window, but what I want it to do is crop as it's being resized. For example, if I have the browser window maximized and I resize the window by dragging the right edge to the middle, I want it to crop to show only the left side of the flash. What it's currently doing is resizing the flash to maintain it's aspect ratio, making it way too small.

Here is what I'm using:

 

<meta charset="utf-8">

 

<title>untitled document</title>

 

<style>

html,body {

    height:100%;

    margin:0;

}

#swf-holder {

    height:100%;

}

#swf-holder object {

    display:block;

    width:100%;

    height:100%;

}

</style>

 

</head>

<body>

 

<div id="swf-holder">

<object type="application/x-shockwave-flash" data="Project.swf">

<param name="movie" value="Project.swf">

</object>

</div>

 

</body>

</html>


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>