How to position a Flash object in Dreamweaver? | Programming, .NET, Silverlight & More

How to position a Flash object in Dreamweaver?

I have a background image in dreamweaver and want to position a flash object at a specifc point over the background.

The problem is that i cant figure out an easy way to do this, could someone please recommend somthing?

The answer is … It depends.

If you have your background image within a div then you can position your flash oject/embed within it. I am using the css inline here but you can use IDs/classes and a stylesheet if you prefer.

Example:
<div style="background: #fff; url(BGImage.jpg) top left no-repeat; position: relative; width: 400px;">
//position the flash movie 50 pixels to the left.
<object style="position: absolute; left: 50px; top: 0px; z-index:100" value="yourmovie.swf"….>
<embed style="position: absolute; left: 50px; top: 0px;z-index:100" value="yourmovie.swf"….>

</embed>
</object>
</div>

No TweetBacks yet. (Be the first to Tweet this post)

One Response

  1. annas Says:

    The answer is … It depends.

    If you have your background image within a div then you can position your flash oject/embed within it. I am using the css inline here but you can use IDs/classes and a stylesheet if you prefer.

    Example:
    <div style="background: #fff; url(BGImage.jpg) top left no-repeat; position: relative; width: 400px;">
    //position the flash movie 50 pixels to the left.
    <object style="position: absolute; left: 50px; top: 0px; z-index:100" value="yourmovie.swf"….>
    <embed style="position: absolute; left: 50px; top: 0px;z-index:100" value="yourmovie.swf"….>

    </embed>
    </object>
    </div>
    References :

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.