PDA

View Full Version : [FMX] Head Scratcher!



mdipi
November 14th, 2002, 07:46 PM
hey. on my movie when you increase the height then click the skinny button, there is junk left behind, how do i stop this? here is the skinny button code:



on (release) {
widthV = block_mc._width;
setProperty ("block_mc", _width, widthV - 10);
}


and this is where my movie can be found:
http://www.geocities.com/mdipi2k2/height.html

mdipi
November 14th, 2002, 08:16 PM
anyone? PLEASE?!

lostinbeta
November 14th, 2002, 10:01 PM
on (release) {
_root.block_mc._width -= 10;
}

Try that.

mdipi
November 15th, 2002, 02:59 PM
thanks lost i will try it asap!

lostinbeta
November 15th, 2002, 04:29 PM
Let me know how it goes.

mdipi
November 15th, 2002, 06:16 PM
nope lost:( still is weird. oh well.

lostinbeta
November 15th, 2002, 07:08 PM
Works fine for me, considering that is used to replace setProperty.

Try changing all of your options using that method.

If you chance all of them, maybe it will work.

mdipi
November 16th, 2002, 01:22 PM
as soon as i find time! :P i might go see HP2 today so its an if day.

lostinbeta
November 16th, 2002, 01:23 PM
I might be going to see that Sunday...lol.

Scootman
November 17th, 2002, 09:53 PM
perhaps you can edit it with _xscale and _yscale instead of _width and _height... might work a little better... not sure though... personally ive never used _width or _height... just _xscale and _yscale

lostinbeta
November 17th, 2002, 11:49 PM
Same here about the _width and _height, but the difference I noticed.....

_xscale and _yscale adjust by percentage, where _width and _height adjust by actual pixels.

Scootman
November 18th, 2002, 12:15 AM
wow i didnt know that... i figured xscale and yscale used pixels cuz it refered to the x and y of stuff... but i wasnt sure... that sounds like its good to know..

lostinbeta
November 18th, 2002, 12:18 AM
Yeah I figured it out when I was using a 1px by 1px square and I wanted to make it 100x100 px, but it wasn't working.

So I tried it with _width and _height and worked like a charm :)

And when I increased the scaling to more than 100 it grew, so I came to the conclusion scaling has to deal with %s.