Hi all.
I'm trying to make a new interface but I meet a problem with scaling my image plugins.
I'm using a sprite, wich means all my image plugins are contained in a unique image; using the crop onovercrop to set the part of image I want to show.
Crop is set with fixed width and height, so i can't resize it when the area is resized like crop="0|0|10%|prop"...
It's impossible to set a scale in %, neither to set a variable widht in % when using the crop method...
Does someone has an issue for that ?
I really don't want to make 50 plugin images to be able to use a variable width ^^
Thanks in advance.
Best regards.
Autoresize plugins on window resize
-
-
Hi!
hm...
setup crop and then change width and height or scale as you want.
You can define onresize event and change sizes of interface plugins.
What is the problem?
Sorry if i misunderstoodAndrey
-
Hi Mindlessboss ^^
Glad to hear you !
I fixed it by adding a width in % to my parent, then doing the same with my kids ^^
I didn't knew we could use crop in addition with % width
Now everything scales perfectly ^^
Thanks for your reply in all case !!
PS : is your iPad iPhone interface ready ? Just can't wait to use it ^^
Cheers. -
Hi!Almost done - it will be great interface framework, you'll see.
Andrey
-
Alsoo use even image width/heights. There are rounding problems. So dont use 1x1 px images that stretch 2000px width, use 2x2px ;)
-
And one more thing
Some times, if you using crop with small size (20x20 for example) and stretch to more than 1000px then plugin disapear (in flash) this is the flash bug as i understand.
It solved by increase crop sizesRegards
Andrey
-
Okay Thanks to both of you ^^
It's comming in slowly but I'm more ease with xml programming ;)
For few weeks now I'm trying to use more variables in my tours to dry the code, but that's another step !
Thanls to your plugins Mindlessboss wich helps me to understand all taht things ^^
Thanks again and have a nice day !!
Cheers.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!