HOW TO - Set image size
Posted: Wed May 15, 2013 11:04 pm
Greetings everyone.
I'm starting to give my first steps in livecode and i'm having a problem that I'm not being able to deal with (and its frustrating because its a BASIC thing....)
I have an image inside a group and I want to be able to change that image size by script. LEts say, with buttons to increase and decrease the size.
so, my image name is "play_area_bg" and i tried to do the following:
None of this seems to work. the first strings gives me the erros "button "Button": execution error at line 2 (Chunk: no such object) near "play_area_bg", char 20"
the second string gives me the error "button "Button": execution error at line 3 (Chunk: no such object) near "play_area_bg", char 55"
I really don't understand way and i would like to understand
It really seems a simple command... what am I doing wrong?
Thanks ins advance
- Miguel
I'm starting to give my first steps in livecode and i'm having a problem that I'm not being able to deal with (and its frustrating because its a BASIC thing....)
I have an image inside a group and I want to be able to change that image size by script. LEts say, with buttons to increase and decrease the size.
so, my image name is "play_area_bg" and i tried to do the following:
Code: Select all
on mouseUp
set the width of image play_area_bg to 2000 px
-- set the width of image play_area_bg to the width of image play_area_bg + 50
end mouseUp
the second string gives me the error "button "Button": execution error at line 3 (Chunk: no such object) near "play_area_bg", char 55"
I really don't understand way and i would like to understand

Thanks ins advance
- Miguel