Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




16 posts

Geek


Topic # 32015 8-Apr-2009 14:12
Send private message

Hi guys.

Im in dire need of help.

Im trying to embed a flash game into my website.

Although the game dosnt fit into the designated area I want it in.

And when i try to resize it with the width height properties, It rezies it to size, but then cuts off sides of the game. So most of the game isnt viewable.

Those code im using for example is :

<embed src="http://www.addictinggames.com/D78AQSAKQLQWI9/5517.swf" type="application/x-shockwave-flash" width="800" height="580"></embed>

Changed to :


<embed src="http://www.addictinggames.com/D78AQSAKQLQWI9/5517.swf" type="application/x-shockwave-flash" width="100%" height="580"></embed>

The above code makes it fit perfectly, Problem is, the game inside is cut off on the edges.

Is there anyways I can manipulate the code to say, "shrink" the game to fit into the specified dimenions so all of it is atleast viewable???

Thank you in advance :D


Create new topic
22 posts

Geek


  Reply # 206042 8-Apr-2009 16:35
Send private message

you would need to take the height out,

[code]<embed src="http://www.addictinggames.com/D78AQSAKQLQWI9/5517.swf" type="application/x-shockwave-flash" width="100%"></embed>
[/code]

should work fine in ie, firefox will probably want an explicit height and width value set.
best thing you can do is find the width you have to work with and drop the size (keeping h/w ratio)

for example if you have 400px width to work with you would want

[code]<embed src="http://www.addictinggames.com/D78AQSAKQLQWI9/5517.swf" type="application/x-shockwave-flash" width="400" height="290"></embed>
[/code]


[edit] oops >.> forum stripped out my embed tags

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.