Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you load a movie with a fixed pixel size? 1

Status
Not open for further replies.
Jul 13, 2001
180
US
I have a background movie where I load an image in. When the browser is stretched , or more important when the resolution is changed, the loaded movie changes size along with everything else. Is there a way to keep the loaded movie at an absolute size , regardless whether the parent movie is resized?

Thanks in advance.
 
Are width and height set to 100% in the background's html in which it is embedded?

Regards,

cubalibre2.gif
 
Hello Oldnewbie. Yes they are.
Is there a way to do the aforementioned?

Thank you. :)
 
And you want the background movie to be scalable but not the loaded movie within it?

Regards,

cubalibre2.gif
 
No! Just wanted to be sure you did want the background movie to be scalable.
And since that seems to be the case, then I don't think you can keep any external movie loaded in this first movie, to not scale up if the main movie is set to do just that.
Without having tested it, you might try to open the external movie in a popup, chromeless or not or even embed it separetely on a higher division or dhtml layer.

Regards,

cubalibre2.gif
 
Shucks. :( So I suppose there is no way to have an image kept atn absolute size.

Thanks OldNewBie as usual! "_
 
Well then,I was thinking, how do you have a flash file open up completely to fill a screen, regardless of resolution and keeping the aspect ratio?

Thanks again.
 
Projector or online?

The only way online is to open up a fullscreen popup.

Regards,

cubalibre2.gif
 
You might try putting some Javascript in the .html file that sends the current size in pixels to the flash movie. The flash movie would use this to caluclate the size at which it should display the image.

For example, the Flash movie is normally 400 by 400 pixels, and it is being displayed at 500 by 600. The Javascript takes this information (The best I can think of is to have the javascript calculate the size based on the window size. I'm not very good with javascript, so there might be a better way.) and sends it to the flash movie. Now, the flash movie's aspect ratio is being maintained, so it just passes the smaller of the two values, 500. The flash movie takes the 500, and because it is being displayed at 5/4 times its normal size, it squashes the image to 4/5 its normal size to compensate.

But this becomes pretty convoluted. A simpler solution might be layering it in the .html like oldnewbie suggested.
 
Thank you RedRobotHero, I wil look into your suggestion, but you also made me take a look at Oldnewbie's suggestion in a clearer mind.

How would you "even embed it separetely on a higher division or dhtml layer. "??

Thanks again?
 
Think that by that way, both movies would be "unscalable", which is what I thought MM didn't want! Didn't you want the main movie to be scalable and the loaded one not?

Regards,

cubalibre2.gif
 
Will test loading a movie on another division for you!

Regards,

cubalibre2.gif
 
Hi oldnewbie. In effect I wanted to make a flash background that scaled to the resolution, but in the center a flash (logo or movie) that remained the same size despiteit all. That possible? :)
 
Let me explore this loading on a higher division. Think it would be the only way, but if it does work, can't guarantee it would work on all systems and browsers!

Regards,

cubalibre2.gif
 
Yeah! It does look like it would work!
At least on PC, with ME and IE5.5.

Check this, and change the browser's window size.
The animated character, once in place (after his walk in), remains in place and unresized, but the other movie scales with the window's resize.


Regards,

cubalibre2.gif
 
YOU are SOOO GROOVY!
Works on IE6 and winXP!
Works on Netscape 6.2.1

May I please get me hands on that FLA?
I can learn from example.

Is that really a hero of yours?

OldNewbie, thanks again you certainly kick some serious ass , what more a heart as big as the moon.

Cheers.

 
You don't really need the .flas. Suffice to say that both movies must be set to be "transparent"...


Everything you need to see (although that html needs to be cleaned up), is really in the html itself. Just view the source on it. Then if you do have other questions, I'll do my best to answer them.

As for Bill being my hero... Well, that's another story! Better pursue that one privately if it does really interest you!

Regards,

cubalibre2.gif
 
Oh! BTW, I guess that if needed, a button's or a frame's action in the background movie, could be coded to give the impression that the second movie was loaded in the first, simply playing with javascript and the visibility of that higher division in which the second movie is embedded.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top