Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 374219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:23:04+00:00 2026-05-12T14:23:04+00:00

This is a long shot as I don’t think it’s possible. I want to

  • 0

This is a long shot as I don’t think it’s possible.

I want to load in a SWF and set it to fit in the window, whilst keeping it’s aspect ratio.

When I do this by setting the height and width of the SWFLoader, the SWF will resize to best fit in the space (as it is keeping it’s aspect ratio).

However I can’t find a way to detect the height and width of that SWF now it has been resized. The size of the SWFLoader reflects what I set it to, and the SWFLoader.LoaderInfo size seems to be totally random.

I have also tried the loaderInfo.content, but again I don’t get a value that compares to the size of the SWF I have loaded (or at lease the size of what is visible).

The only thing I can think to do is to know the height and width before and then figure out the aspect ratio, so if I resize the width to 50% of the window, I can do the maths on the height to make the swf loader the same height as it’s scaled content.

Please let me know if you have any suggestions.

Thanks

Rob

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:23:04+00:00Added an answer on May 12, 2026 at 2:23 pm

    Yup…

    Just realised SWFLoader.contentHeight and contentWidth which does exactly that…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a bit of a long shot as I don't have access to
This is a long shot, so if it's not possible, let me know. Basically,
This is a long shot, I know... Let's say I have a collection List<MyClass>
I suppose this is a long shot considering how few Wonderware questions I've seen
This looks like a long shot, but does anyone know of a way to:
This is probably a long shot but I asked a question about converting one
It might be a long shot posting this question here but we will see.
I know this might be a long shot, but here it goes. I have
It's probably late and I have missed this off by a long shot. I
This may be a long shot question.. I am working on an application that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.