PDA

View Full Version : Full browser flash trouble.


Armondo
07-19-2007, 11:04 PM
i have no idea why this isn't working...i used this actionscript code:

// i wrote it...and it works, and it makes sense right?
cover._x = Stage.width / 2;
cover._y = Stage.height / 2;


cover is the instance name of the MC

i set the html publish to 100% width+height, no scale, horizontal+vertical center.

whats going wrong?? im testing it in other browsers just to see.

here is the page: http://flashanims.com/work/kopykats/test/test1.html

_Aerospace_Eng_
07-19-2007, 11:40 PM
Looks like its working to me. Is there any browser that is showing it correctly? You may have to add this in between the head tags of your document.
<style type="text/css">
html, body {
margin:0;
padding:0;
height:100%;
}
</style>

Armondo
07-19-2007, 11:44 PM
no, its not working correctly. notice how it is not centered vertically? it may be centered horizontally...but it is not working. ctrl+f5 it while the window is maximized, you will see what i mean.

edit: its not centered at all.

_Aerospace_Eng_
07-20-2007, 05:57 AM
What is supposed to be centered? The calendar? How big is the calendar supposed to be? Is that the right size of it? You just want it centered? Why not set the flash movie to the size the calendar should be and then use CSS to center it both horizontally and vertically?

Armondo
07-20-2007, 07:30 AM
i fixed it...i was apparently over complicating things. i just took out the actionscript and for some reason it worked. don't ask me why. this is it centered: http://flashanims.com/work/kopykats

all i really have done with that site is the centering :D