Looks fine to me.

Is your code nested inside another clip?

Alias

On 2/3/06, Tom Rhodes <[EMAIL PROTECTED]> wrote:
> hello, if anyone's got a mo, I'm going mad..
>
>
>
> <code>
>
>
>
> function
> makeBG(roundness:Number,w:Number,h:Number,colour:String,targ:MovieClip):Movi
> eClip
>
> {
>
>             var bg:MovieClip = targ.createEmptyMovieClip("button_bg",1);
>
>             with(bg)
>
>             {
>
>                         lineStyle(0,0,0);
>
>                         beginFill(colour,100);
>
>                         moveTo(roundness,0);
>
>                         lineTo(w-roundness,0);
>
>                         curveTo(w,0,w,roundness);
>
>                         lineTo(w,h-roundness);
>
>                         curveTo(w,h,w-roundness,h);
>
>                         lineTo(roundness,h);
>
>                         curveTo(0,h,0,h-roundness);
>
>                         lineTo(0,roundness);
>
>                         curveTo(0,0,roundness,0);
>
>                         endFill();
>
>             }
>
>             return bg;
>
> }
>
>
>
> var buttBack = makeBG(4,140,20,"0xFFCCCC",this);
>
> trace(buttBack._x + ":" + buttBack._y);
>
>
>
> </code>
>
>
>
> can someone paste that in a blank movie and run it, you'll see that even
> though it traces "0:0" and as far as I can tell the "pen" never goes into
> negative numbers, the shape's top left hand corner is above and to the left
> of 0,0??????
>
>
>
> cheers,
>
>
>
> tom.
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to