
I am placing a regular polygon graphic over an image and I want the polygon to take on the the look of the section of image below it. I cant remember if it was Ink, imagedata or background pattern that was the key do this.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseUp
if the backGroundPattern of grc "PG" is the id of img "GG" then
set the backGroundPattern of grc "PG" to the id of img "BB"
else
set the backGroundPattern of grc "PG" to the id of img "GG"
end if
end mouseUp
Code: Select all
...
set the BackGroundPattern of grc "your graphic here..." to 1003
## Or what ID your image may have.
...
Code: Select all
on mouseUp
if the backGroundPattern of grc "PG" is the id of img "GG" then
set the polySides of grc "PG" to 5
set the backGroundPattern of grc "PG" to the id of img "BB"
else
set the polySides of grc "PG" to 7
set the backGroundPattern of grc "PG" to the id of img "GG"
end if
end mouseUp