We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Resize Header based on Resolution

trifecta2k
trifecta2k asked
on
Medium Priority
209 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.  
Comment
Watch Question

Commented:
in your HTML code make the width of your SWF 100%

this way it will be as you want

FLAASHER

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
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.  

Author

Commented:
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?

Author

Commented:
Thank you FLAASHER

Commented:
U welcome ...
is it OK now .. ???

FLAASHER

Author

Commented:
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!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.