View Single Post
Old 11-03-2007   #7 (permalink)
unleash
Just unleashed!
 
unleash's Avatar
 
Join Date: Jul 2005
Location: Inbetween
Posts: 2,210
Blog Entries: 9

alright, I've downloaded a test version of CS3 as I'm still on 8

but when I opened the "main" swf file in my browser, it showed up alright. No problems whatsoever. And no problems with the panes, so I couldn't really determine the problem. Still I made a new flash doc, and tried to get the code to work...I used it to resize pictures to fit the dimensions of the project...so the code isn't ready for 1on1 use, and it's pretty messy to so I guess you should make something nice from it....if you want to use it

this should be the code,
Quote:
function scale() {
//variables/////////////////////////////////////
total_width = 550
total_height = 400
mc_yscale = mc._yscale
mc_xscale = mc._xscale
mc_xw = mc_width/total_width
mc_yh = mc_height/total_height
//calculation///////////////////////////////////
mc._yscale = mc_yscale/mc_yh
mc._xscale = mc_xscale/mc_xw
locate();
}
function locate(){
mc_width = xwidth[p]*(mc._xscale/100);
mc_height = yheight[p]*(mc._yscale/100);
mc._x = mc_x-(mc_width/2);
mc._y = mc_y-(mc_height/2);
}
I couldn't really put it into you're .fla file, as I didn't really know where to put it...as it is pretty big and complicated..
__________________
"I haven't failed, I've just found out
10.000 ways that don't work."

~Thomas Edison~

Last edited by unleash; 11-03-2007 at 03:14 PM.
unleash is online now   Reply With Quote