Wow - punching holes in stacks!

David Bovill david at openpartnership.net
Thu May 15 17:21:05 EDT 2008


Well creating a new stack adding a button with this script and clicking on
it works here:

on mouseUp
>     set the backgroundcolor of me to blue
>     set the ink of me to blend
>     set the blendlevel of this stack to 5
>     set the rect of this stack to the screenrect
> end mouseUp
>

You need to resize the stack to get the redraw. Only tested on OSX Tiger and
2.9. If you still need a stack - I can upload it.

2008/5/15 Scott Rossi <scott at tactilemedia.com>:

> Recently, David Bovill wrote:
>
> > Is this just a 2.9 thing or did I miss it before?
> >
> >
> >    1. create a stack
> >    2. Place a button or any control on the card
> >    3. Give the control a background fill colour
> >    4. Set the ink of the button to blend - no need to move the slider to
> set
> >    a blendlevel
> >    5. select stack properties and set the blendlevel of the stack with
> the
> >    slider
> >
> > Any level of stack blend above I think 2 immediately punches a whole
> right
> > through the stack. Interestingly this works for regular polygons as well
>  -
> > but not if anti-aliased is selected.
>
> Hi David:
>
> I tried what you describe above and I don't get the same results.  The only
> thing the blendLevel of a stack *should* do is set its overall opacity --
> unless you designate an image to act as a mask for the stack, a single
> control shouldn't have any bearing on the stacks appearance.  At least, not
> usually.  You may have discovered some unexpected behavior, which could be
> interesting.  Would it possible to post a sample stack somewhere to look
> at?
>
> Thanks & Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list