TwelvestoneFlash

as3 - rectangle with stroke on only three sides?


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Storm
 
2009-02-02

AS3

How can I remove the stroke across the top of the rectangle so that it fits nicely against the button that calls it? I just want the stroke on left, right, and bottom.

This is why I draw and "small code" most projects. I'd rather draw the complicated things but I'm determined to code more stuff.

This the bg rect for my custom drop down menu. Is it possible to remove the stroke on the top side?

var bgRectW:uint = 118; var bgRectH:uint = 140; var square:Shape = new Shape(); square.graphics.lineStyle(1, 0xCCCCCC); square.graphics.beginFill(0x000000, 1); square.graphics.drawRect(0, 0, bgRectW, bgRectH); square.graphics.endFill(); this.addChild(square); square.x = 6; square.y = 20;

[edit] never mind, I just gave up and drew it. Way easier.

arigato
 
2009-02-13

That's definitely what I would do, too. k

Storm
 
2009-02-13

the more as3 I do, the more I just want to draw and make everything come together with as2. k

glad we're still agreeing! k the world didn't end! hahaha

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

as3 - rectangle with stroke on only three sides?