hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : inserting flash swf into html pages
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

inserting flash swf into html pages

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-12-2003, 07:39 AM
officer officer is offline
Junior Guru Wannabe
 
Join Date: May 2003
Posts: 82

a question for the FLASH gurus !!!!


OK...I've looked for this soultion around but I havent found it.

Basically I have a page with flash and the movie used to be at a specific size, so 800*600 users could see it without scrolling.... but users at high resolutions (I'm at 1280*1024) complain of the text being too small to read, or just plain uncomfortable.

What I'm trying to do is make the mpvie resize to fit any resolution, but KEEP IT'S ASPECT RATIO...I've had problems where I'm using percentages, and differnt "scale" options, and I get stretched images, or small movies with lots of blank vertical or horizontal space. Basically I would need the movie to just "grow"... affecting both the width and height at the same time, at the same ratio, so the movie keeps the same dimensions, and doesnt grow too vertically or horizontally...

I'm at my wit's end with it... anybody have a clue what I could do?

here is the code as i am currently using it, just in case it would help:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
width="506" 
height="367" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0">
<param name="SRC" value="itscool.swf">
<param name="wmode" value="transparent">
<param name="play" value="true">
<param name="loop" value="true">
<param name="quality" value="high">
<param name="scale" value="noborder">
<embed src="itscool" 
width="506" 
height="367" 
play="true" 
loop="true" 
quality="high" 
scale="noborder" 
pluginspage="http://www.macromedia.com/shockwave/download/" 
type="application/x-shockwave-flash">
</embed>
</object>


Last edited by officer; 09-12-2003 at 08:01 AM.
Reply With Quote


Sponsored Links
  #2  
Old 09-12-2003, 01:06 PM
switch switch is offline
Junior Guru Wannabe
 
Join Date: Jul 2001
Location: #!/usr/bin/Detroit
Posts: 85
There isn't much you can do really. The only thing I can think of even close to that would be to nest your movie inside a table and wip up some JavaScript to control the table's size based on the users resolution. That would be the first thing I would try.

__________________
Juvenall Wilson
http://www.yabbforum.com

Reply With Quote
  #3  
Old 09-13-2003, 11:15 AM
officer officer is offline
Junior Guru Wannabe
 
Join Date: May 2003
Posts: 82
How does one write HTML code to 'nest' a flash movie inside a table?

I'm a bit confused with the word 'nest'.

Reply With Quote
Sponsored Links
  #4  
Old 09-13-2003, 11:23 AM
vito vito is offline
Enthusiastic chef
 
Join Date: Jan 2002
Location: Toronto, Canada
Posts: 11,061
I'm not a programmer, but would it be possible (I'm guessing with JS) to have it detect the visitor's resolution, and then based on that, it would display the proper swf? You'd obviously have to have a few premade swf's , one for each resolution.

Vito

__________________
DemoDemo.com - Flash tutorials since 2002
DemoWolf.com - 5,300+ Flash tutorials for hosting companies, incl. Voice tutorials

Reply With Quote
  #5  
Old 09-13-2003, 07:28 PM
ANMMark ANMMark is offline
Web Hosting Master
 
Join Date: Apr 2002
Posts: 2,193
Depending on how you've made your flash movie you can simply use percentage values instead of limited values.

For example:
height= 100%
width=100%

An alternative, would be a flash resolution detection. Based on their res. it would forward to a different page.

You could even allow the folks to choose their res, and use php to redirect them.

you could use one page, and one swf file, but use a php array to decide which block of code to use.

If you're interested, and need help, let me know, and I'll show you how to write the code for that.

__________________
Mark - Co-President/Lead Developer
avidInteractive Software
ServeraSuite™ - Server monitoring from your desktop!...It's Here!!

Reply With Quote
  #6  
Old 09-19-2003, 03:42 PM
alexcroft199 alexcroft199 is offline
Newbie
 
Join Date: Jun 2003
Location: York, England
Posts: 26
Do two seperate movies very similar but just different sizes and just let them choose their resolution.

__________________
Alex Croft
www.global****.co.uk - Coming soon.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Datacore Software Study: Virtualization Hindered by High Storage Costs, Performance Web Hosting News 2013-04-30 16:42:30
How Website Design Affects Conversion Rates Blog 2012-09-28 13:52:36
Mozilla Creates New Hosting Competition with In-Browser Website Builder Tool Thimble Web Hosting News 2012-06-18 16:28:02
Google+ Business Pages – Implications for Search Marketing Blog 2012-01-25 09:58:46
Web Hosting Tutorial Provider DemoWolf Acquires Competitor DemoDemo Web Hosting News 2011-09-21 15:36:44


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?