# LostinBeta

**URL:** <https://forum.kirupa.com/t/lostinbeta/10028>\
**Category:** flash\
**Created:** [December 23, 2002, 12:21am UTC](https://forum.kirupa.com/t/lostinbeta/10028 "2002-12-23T00:21:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![BullDog\_Flash](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@BullDog\_Flash](https://forum.kirupa.com/u/BullDog_Flash)\
**Post date:** [December 23, 2002, 12:21am UTC](https://forum.kirupa.com/t/lostinbeta/10028/1 "2002-12-23T00:21:51Z")

</div>

Either i want lostinbeta or somone else.  
Ok see i went to his site and found this.

[http://www.lostinbeta.com/](http://www.lostinbeta.com/)  
At his site the name is called beizer curve.

See if he or somone could help me on how he did it…  
I would be very happy.  
Its just that i want to ameka cool power lie game nut much to it but its active.  
The power line game is basically a guy that wlaks on the power lind and it curves.  
I want to do Actionscript fo it thought not animation.

---

<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:** [December 23, 2002, 1:33am UTC](https://forum.kirupa.com/t/lostinbeta/10028/2 "2002-12-23T01:33:36Z")

</div>

People hate me

---

<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:** [December 23, 2002, 1:36am UTC](https://forum.kirupa.com/t/lostinbeta/10028/3 "2002-12-23T01:36:51Z")

</div>

He posted the code a long time ago, but he may not want to give it out. Give him some time to see the thread and I am sure he will respond.

---

<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:** [December 23, 2002, 1:42am UTC](https://forum.kirupa.com/t/lostinbeta/10028/4 "2002-12-23T01:42:12Z")

</div>

Check the curveTo function.

pom :moustache

---

<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:** [December 23, 2002, 3:22am UTC](https://forum.kirupa.com/t/lostinbeta/10028/5 "2002-12-23T03:22:20Z")

</div>

Oh, I am here. And I am willing to give it out.

Most if not all of my flash files are going to be open source come my next site version 🙂

```auto
// PROTOTYPE FUNCTIONS TO MAKE SQUARES
MovieClip.prototype.buildSquare = function(fillColor, fillAlpha, lineThickness, lineColor, lineAlpha, x, y, xscale, yscale) {
	this.beginFill(fillColor, fillAlpha);
	this.moveTo(-5, -5);
	this.lineStyle(lineThickness, lineColor, lineAlpha);
	this.lineTo(-5, 5);
	this.lineTo(5, 5);
	this.lineTo(5, -5);
	this.lineTo(-5, -5);
	this.endFill();
	this._x = x;
	this._y = y;
	this._xscale = xscale;
	this._yscale = yscale;
};
// PROTOTYPE FUNCTIONS TO MAKE ITEMS DRAGGABLE
MovieClip.prototype.dragButtons = function() {
	this.onRollOver = function() {
		this.useHandCursor = false;
	};
	this.onPress = function() {
		this.useHandCursor = false;
		this.startDrag();
	};
	this.onRelease = function() {
		this.stopDrag();
	};
};
// PROTOTYPE FUNCTIONS FOR TEXT BOX
TextField.prototype.buildField = function(ableSelect, haveBorder, myText) {
	myformat = new TextFormat();
	myformat.font = "Verdana";
	myformat.size = 10;
	myformat.color = 0x000000;
	this.selectable = ableSelect;
	this.border = haveBorder;
	this.text = myText;
	this.setTextFormat(myformat);
};
// CREATE BORDER AND BACKGROUND COLOR
_root.createEmptyMovieClip("borderLine", 1);
_root.borderLine.buildSquare(0xCCCCCC, 30, .5, 0x336600, 50, 275, 200, (550*10)-5, (400*10)-5);
// CREATE INSTRUCTIONS FIELD
_root.createTextField("click", 2, 180, 3, 187, 17);
_root.click.buildField(false, true, "Click And Drag the Solid Squares");
// CREATE CURVE LINE
_root.createEmptyMovieClip("myCurve", 3);
_root.myCurve.onEnterFrame = function() {
	_root.mycurve.clear();
	_root.myCurve.lineStyle(2, 0x336600, 50);
	_root.myCurve.moveTo(10, 200);
	_root.myCurve.curveTo(_root.drag._x, _root.drag._y, _root.anchor2._x, _root.anchor2._y);
	_root.myCurve._x = _root.anchor1._x-10;
	_root.myCurve._y = _root.anchor1._y-200;
};
// CREATE CURVE TO SQUARE
_root.createEmptyMovieClip("drag", 4);
_root.drag.buildSquare(0x000000, 30, 2, 0x336600, 50, 275, 75, null, null);
_root.drag.dragButtons();
// CREATE CREDIT TEXT FIELD
_root.createTextField("credit", 5, 206, 385, 400, 17);
_root.credit.buildField(false, false, "Created by Shane Waldeck (lostinbeta) - www.lostinbeta.com");
// CREATE ATTACHED ANCHOR
_root.createEmptyMovieClip("anchor1", 6);
_root.anchor1.buildSquare(0x000000, 0, 1, 0x000000, 30, 10, 200, null, null);
// CREATE DRAGGABLE ANCHOR
_root.createEmptyMovieClip("anchor2", 7);
_root.anchor2.buildSquare(0x000000, 30, 2, 0x336600, 50, 540, 200, null, null);
_root.anchor2.dragButtons();
stop();

```

Brings back memories of my first experiment with the drawing API and dynamically created content (which was this code here). Took me like 2 days get it working, and a week to optimize the code…lol.

---

<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:** [December 23, 2002, 4:43am UTC](https://forum.kirupa.com/t/lostinbeta/10028/6 "2002-12-23T04:43:05Z")

</div>

I guess i put this in a first frame  
Wow confusing  
maybe you should make atut some day so i understand what it does.  
so ar i understand it make a square and givng i actions wow.

---

<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:** [December 23, 2002, 4:44am UTC](https://forum.kirupa.com/t/lostinbeta/10028/7 "2002-12-23T04:44:59Z")

</div>

LOL, yeah, you put that in the first frame.

It draws all the objects needed, and assigns the actions as well.

Try it, it is all code, nothing in the library, and nothing on the stage.

There already are tutorials on it. I constructed this whole thing with the knowledge supplied by Ilyas in the AS Tricks section of [kirupa.com](http://kirupa.com).

---

<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:** [December 23, 2002, 4:45am UTC](https://forum.kirupa.com/t/lostinbeta/10028/8 "2002-12-23T04:45:51Z")

</div>

I cleared the code a litle this is whatit is…

```auto
// PROTOTYPE FUNCTIONS TO MAKE SQUARES
MovieClip.prototype.buildSquare = function(fillColor, fillAlpha, lineThickness, lineColor, lineAlpha, x, y, xscale, yscale) {
    this.beginFill(fillColor, fillAlpha);
    this.moveTo(-5, -5);
    this.lineStyle(lineThickness, lineColor, lineAlpha);
    this.lineTo(-5, 5);
    this.lineTo(5, 5);
    this.lineTo(5, -5);
    this.lineTo(-5, -5);
    this.endFill();
    this._x = x;
    this._y = y;
    this._xscale = xscale;
    this._yscale = yscale;
};
// PROTOTYPE FUNCTIONS TO MAKE ITEMS DRAGGABLE
MovieClip.prototype.dragButtons = function() {
    this.onRollOver = function() {
        this.useHandCursor = false;
    };
    this.onPress = function() {
        this.useHandCursor = false;
        this.startDrag();
    };
    this.onRelease = function() {
        this.stopDrag();
    };
};
// CREATE CURVE LINE
_root.createEmptyMovieClip("myCurve", 3);
_root.myCurve.onEnterFrame = function() {
    _root.mycurve.clear();
    _root.myCurve.lineStyle(2, 0x336600, 50);
    _root.myCurve.moveTo(10, 200);
    _root.myCurve.curveTo(_root.drag._x, _root.drag._y, _root.anchor2._x, _root.anchor2._y);
    _root.myCurve._x = _root.anchor1._x-10;
    _root.myCurve._y = _root.anchor1._y-200;
};
// CREATE CURVE TO SQUARE
_root.createEmptyMovieClip("drag", 4);
_root.drag.buildSquare(0x000000, 30, 2, 0x336600, 50, 275, 75, null, null);
_root.drag.dragButtons();
// CREATE ATTACHED ANCHOR
_root.createEmptyMovieClip("anchor1", 6);
_root.anchor1.buildSquare(0x000000, 0, 1, 0x000000, 30, 10, 200, null, null);
// CREATE DRAGGABLE ANCHOR
_root.createEmptyMovieClip("anchor2", 7);
_root.anchor2.buildSquare(0x000000, 30, 2, 0x336600, 50, 540, 200, null, null);
_root.anchor2.dragButtons();
stop();

```

---

<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:** [December 23, 2002, 4:57am UTC](https://forum.kirupa.com/t/lostinbeta/10028/9 "2002-12-23T04:57:48Z")

</div>

Ummmm, what did you clear?

---

<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:** [December 23, 2002, 5:49am UTC](https://forum.kirupa.com/t/lostinbeta/10028/10 "2002-12-23T05:49:19Z")

</div>

the part that puts your name in it :sigh:

---

<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:** [December 23, 2002, 5:50am UTC](https://forum.kirupa.com/t/lostinbeta/10028/11 "2002-12-23T05:50:27Z")

</div>

Oh, ok…lol… I am so blind.

---

<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:** [December 23, 2002, 5:52am UTC](https://forum.kirupa.com/t/lostinbeta/10028/12 "2002-12-23T05:52:53Z")

</div>

thats what im here for  
cause i got the crazy eyes:crazy:

---

<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:** [December 23, 2002, 5:53am UTC](https://forum.kirupa.com/t/lostinbeta/10028/13 "2002-12-23T05:53:26Z")

</div>

LOL.
