View Full Version : How can I get centered and no scaling?
angieb1019
08-11-2007, 01:29 AM
I can't get my swf to keep it's settings as set in the publish window. Can someone please help? I don't want the swf to scale when someone drags the window open and I want it to stay centered. It works fine from Flash 8, but not when it's accessed from it's parent site or double-clicked.
evride
08-11-2007, 03:20 AM
open up the actions panel on the first frame. make sure to deslect all movieclips. this code does not go on movieclips. in fact, as good practice dont put code on movieclips at all.
Stage.scaleMode = "noScale";
Stage.align = "TC";
angieb1019
08-13-2007, 11:14 PM
open up the actions panel on the first frame. make sure to deslect all movieclips. this code does not go on movieclips. in fact, as good practice dont put code on movieclips at all.
Stage.scaleMode = "noScale";
Stage.align = "TC";
Hey thanks, it worked for one of two pages. I have a second page that is almost identical to the first page that this code worked on, but for some reason I can't get it to stop scaling on this second page. The links to the two seperate pages from the parent page are identical except for the page name it links to. The swf of the second page tests fine in Flash 8 as well as when I double click on the file itself, but when accessed from a different page, it scales. I checked the buttons(MCs) and there is no code on them from the parent page. If you'd like to see them go to www.clarencelee.com -(Flash forward-it's a little slow-I'm working on that problem too)-click on the arrow and the working link is the download image just under the big red outline. The non-working one is the page symbol (newletter) next to that. Any thoughts?
angieb1019
08-14-2007, 01:05 AM
Nevermind, I got it to work. I checked the publish settings of the parent site and made the publish settings to the pixel setting (instead of 100%) and put that code in the first frame of the actions layer of the first scene and I guess that did it. Thanks for your help.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.