9scale will not work with mask
hi
been trying use 9scale feature on moviclip change size
according image being loaded
and setting mask content
the clip 9scale feature works expected
as long it's not mask
did of tried of sort ?
for example
a gallery
loading external image clip
i want frame of image rounded edges rectangle
therefore use clip set mask
which suppose scale according image being loaded
9scale not work niether ui layer mask
nor setmask( ) unfortunatly
here code
on stage clips
set 9scale mode in properties via library
thanks
yariv
//set width according image loaded
//setmask doesn't work
var mcl:moviecliploader = new moviecliploader();
var l:object = new object()
l.onloadinit = function(target:movieclip) {
//trace(target._width)
target._parent.bg_mc._width = target._width + 15;
target._parent.mask_mc._width = target._width ;
target.setmask(target._parent.mask_mc)
}
mcl.addlistener(l)
mcl.loadclip("collaborate.jpg",container_mc)
been trying use 9scale feature on moviclip change size
according image being loaded
and setting mask content
the clip 9scale feature works expected
as long it's not mask
did of tried of sort ?
for example
a gallery
loading external image clip
i want frame of image rounded edges rectangle
therefore use clip set mask
which suppose scale according image being loaded
9scale not work niether ui layer mask
nor setmask( ) unfortunatly
here code
on stage clips
set 9scale mode in properties via library
thanks
yariv
//set width according image loaded
//setmask doesn't work
var mcl:moviecliploader = new moviecliploader();
var l:object = new object()
l.onloadinit = function(target:movieclip) {
//trace(target._width)
target._parent.bg_mc._width = target._width + 15;
target._parent.mask_mc._width = target._width ;
target.setmask(target._parent.mask_mc)
}
mcl.addlistener(l)
mcl.loadclip("collaborate.jpg",container_mc)
i know i've found 9-scale quite buggy , unpredicatble. shame.
--
jecykl
--
jecykl
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment