View Full Version : Resizing Dynamic Images
thawki
07-16-2002, 10:05 PM
I give up...I can change the _x and _y on dynamic jpgs that I bring
into my movie clip, but when I try to change the _width or _height in the same onClipEvent(load), it makes them 0 values?!
Here is my code:
onClipEvent (load) {
setProperty(_root.picture, _x,"2.6");
setProperty(_root.picture, _y,"-8.0");
setProperty(_root.picture, _width, "590");
setProperty(_root.picture, _height,"430");
}
Does anybody have any clues?:confused:
CyanBlue
07-16-2002, 11:01 PM
You might want to try to mess up with _xscale and _yscale...
Good luck!!!
thawki
07-16-2002, 11:28 PM
those scale properties work. But its odd that I cannot edit those height and width attributes on load. Oh btw, It will take in those attributes if I do a onClipEvent(mousedown).
Whatever!?????
CyanBlue
07-17-2002, 12:06 AM
Is that Flash 5??? If it is, you should be able to set the value...
I don't think it matter whether it is on load or mouseDown... Check it out and let us know...
Abelius
07-17-2002, 12:07 AM
Take out the quotation marks off the _width and _height properties' numbers... :)
thawki
07-17-2002, 12:22 AM
I am using MX, and I have tried it with and without quotes around the values...
CyanBlue
07-17-2002, 01:26 AM
You can still using setProperty in MX??? Wonderful... :p
Um... I just tried your code without setProperty because I hate that command... :p and the outcome is perfect... I can do the size change with _height and _width... So... there should be something else bothering your movieclip... :)
Ricod
07-17-2002, 09:22 AM
Well, maybe it's the same as with plants and trees ... if u want bigger apples, u'll have to make sure there's enough room for them to grow, so thin it out a little. Make sure each apple has enough space ...
Or maybe ur abusing your jpeg, genetically enhancing them. Now, a group of people against this keep changing the jpegs back to their original size ...
Or ... just a typo ?
Does it work with .. ehrm *cough cough* relative paths ? this._width = 590;
see this thread:
http://www.actionscript.org/forums/showthread.php3?threadid=12603
I can send you (if you want) the fla I made.
Mail me by the link below and give me your email.
Hopes its help.
;)
thawki
07-17-2002, 11:36 PM
i give....
Im just going to use xscale, yscale....
Its just bizarre though...every other property works fine, but
when I stick _width or _height in there. Image dissapears.
I do a get property on the width within the OnLoad event. And the Value in the debugger shows 0.
Thanks for the help peoples!!!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.