Solved

Resize Header based on Resolution

Posted on 2006-10-31
7
143 Views
Last Modified: 2012-05-05
I am trying to put in a flash header for our website.  I have created the flash and it works great.  Here is the problem.  My site is set up in a table format.  There are 4 rows and 5 columns.  Here is my first row
Column 1 is empty
Column 2 is our company logo
Column 3 - Column 5 is where I want the flash to go.

The problem is that depending on the resolution of the screen the user is using my flash movie either fits perfectly (middle(1024) res), is too short (high res) or is getting cut off (low res).  Is there anyway to stretch or shrink the .swf when I put it there?  I'm not worried about the hieght just the width.  Thanks for the help.  
0
Comment
Question by:trifecta2k
  • 4
  • 3
7 Comments
 
LVL 13

Accepted Solution

by:
FLAASHER earned 500 total points
Comment Utility
in your HTML code make the width of your SWF 100%

this way it will be as you want

FLAASHER
0
 
LVL 5

Author Comment

by:trifecta2k
Comment Utility
That doesn't seem to work.  When I made the width="100%" the swf actually showed up smaller than when I had no width declared.  
0
 
LVL 5

Author Comment

by:trifecta2k
Comment Utility
Sorry I did it wrong.  It worked, but I had text on the very left side and when the movie stretched out, it moved my text to the right.  Is there anyway to make that text stay on the left border no matter what?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 13

Assisted Solution

by:FLAASHER
FLAASHER earned 500 total points
Comment Utility
0
 
LVL 5

Author Comment

by:trifecta2k
Comment Utility
Thank you FLAASHER
0
 
LVL 13

Expert Comment

by:FLAASHER
Comment Utility
U welcome ...
is it OK now .. ???

FLAASHER
0
 
LVL 5

Author Comment

by:trifecta2k
Comment Utility
Works great.  I just needed to add the following action script:

Stage.align = "L";
Stage.scaleMode = "noScale";

Once I added that it worked fine.  Thanks again!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now