# A fairly simple thing

**URL:** https://forum.kirupa.com/t/a-fairly-simple-thing/116444
**Category:** Uncategorized
**Created:** [July 18, 2004, 10:31am UTC](https://forum.kirupa.com/t/a-fairly-simple-thing/116444 "2004-07-18T10:31:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Bohner](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@Bohner](https://forum.kirupa.com/u/Bohner)
#### Post date: [July 18, 2004, 10:31am UTC](https://forum.kirupa.com/t/a-fairly-simple-thing/116444/1 "2004-07-18T10:31:14Z")

</div>

If someone could draw a rectangle with a border in flash, and make a txt file so I can edit the hue values of the border and background from there, I would be really greatfull.

Btw. I know it’s NTB, but I need your opinion on this. Is this font (the one in the logo) not readable enought?

[http://bohner.asdf.pl/nowylingshow.png](http://bohner.asdf.pl/nowylingshow.png)

Thx again.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2004, 11:58am UTC](https://forum.kirupa.com/t/a-fairly-simple-thing/116444/2 "2004-07-20T11:58:54Z")

</div>

That’s right ignusb, but its gonna be used for a search-box that anyone could put on his/hers website and customize the colors. Juz give me an example how it’s done, and I’ll figure out the rest by myself.

thx

_bump_

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2004, 4:05pm UTC](https://forum.kirupa.com/t/a-fairly-simple-thing/116444/3 "2004-07-20T16:05:34Z")

</div>

```auto
_root.createEmptyMovieClip("boxMC", 1);
boxMC.lineStyle("0x003366", 2, 100);
boxMC.lineTo(someX, someY);
boxMC.lineTo(someX, anotherY);
boxMC.lineTo(anotherX, anotherY);
boxMC.lineTo(anotherx, someY);

```

That’s how you draw shapes using ActionScript. Ta-da!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2004, 4:38pm UTC](https://forum.kirupa.com/t/a-fairly-simple-thing/116444/4 "2004-07-20T16:38:10Z")

</div>

I give up. Sorry, but did I ask how to make Flash draw the box it self? Let me say it again.

If somebody could draw a circle/square/whatever and type in some AS, so that I can change the color of that circle/square/whatever with an external txt file.

Example (txt file):  
circle1 = #FFFFFF;  
circle2 = #2F2F2F;

And by opening the flash (\*.swf), the two circles would be colored by those colors.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2004, 5:23pm UTC](https://forum.kirupa.com/t/a-fairly-simple-thing/116444/5 "2004-07-20T17:23:45Z")

</div>

I think you have to make it using the drawing api. That’s what newhopekenny did, and you then can supply the answers from the txt. btw, there’s a tut on loading variables from a txt here: [http://www.kirupa.com/developer/mx/externaldata.htm](http://www.kirupa.com/developer/mx/externaldata.htm)
