# New to flash,new to this forum

**URL:** <https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274>\
**Category:** Uncategorized\
**Created:** [October 3, 2002, 5:54am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274 "2002-10-03T05:54:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sickboy](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sickboy](https://forum.kirupa.com/u/sickboy)\
**Post date:** [October 3, 2002, 5:54am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/1 "2002-10-03T05:54:10Z")

</div>

hello All,

I’m new to flash and have a question about the perspective tutorial i was wondering how to modify the code to make the text go from small to large.

Thanks, Sickboy

---

<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:** [October 3, 2002, 6:00am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/2 "2002-10-03T06:00:11Z")

</div>

Try this…

```auto
onClipEvent (load) {
	z = 0;
	zspeed = 5;
	fl = 300;
}
onClipEvent (enterFrame) {
	scale = fl/(fl-z);
	_xscale = _yscale=20*scale;
	z += zspeed;
}

```

Change the 20 in the on enterFrame code to adjust the starting size of your text. The smaller the number of course the smaller the text starts off.

The other thing changed was the fl+z was changed to fl-z

Hope it works… It is untested. Let me know if it does.

---

<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:** [October 3, 2002, 6:04am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/3 "2002-10-03T06:04:23Z")

</div>

hey there… welcome to kirupa!

You need to make sure your scaling factor is more than 1. In the tute the scaling factor is something like .6 if you started with a small object and had a scaling factor of 1.6 it would grow. Home this clears it up for you I tried to use the same language used in the tute.

By the way is your name inspired by trainspotting?

Peace

---

<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:** [October 3, 2002, 6:05am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/4 "2002-10-03T06:05:15Z")

</div>

Drat Lost, posting at the same time again!! BLAST

---

<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:** [October 3, 2002, 6:06am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/5 "2002-10-03T06:06:34Z")

</div>

lol, well I guess we will find out whos method works now. I didn’t test mine. So I am clueless as to if it works.

I guess we will see :evil: 😛

---

<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:** [October 3, 2002, 6:08am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/6 "2002-10-03T06:08:50Z")

</div>

yeah I just explained the concept - though he would figure out the code being that the first part of the tute talks about scaling factor they should have the same effect, you just actually got into it - I mearly brushed the concept… I am pretty much a lazy butt… :-\ :rambo:

---

<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:** [October 3, 2002, 9:34am UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/7 "2002-10-03T09:34:22Z")

</div>

Hehe, allow me, please 😛

```auto
onClipEvent (load) {
	z = 0;
	zspeed = 5;
	fl = 300;
}
onClipEvent (enterFrame) {
	scale = fl/(fl-z);
	_xscale = _yscale=20*scale;
	z += zspeed;
}

```

The problem with your code, Lost, is that when z=300, which will happen, scale=fl/(fl-z)=300/0=infinity. I’m not sure that it is what you want.

And Ryall, you’re right, except for the fact that if the scaling factor is 1.6, your object is already big. Basically, your object get’s bigger is the scaling factor **grows**.

So let’s stay simple. You want your object to grow? Just put it far away, and make it come closer and closer and closer all the time 🙂

```auto
onClipEvent (load) {
	// big z <-> far away
	z = 3000;
	zspeed = 5;
	fl = 300;
}
onClipEvent (enterFrame) {
	scale = fl/(fl+z);
	_xscale = _yscale=20*scale;
	// z decreases <-> object comes closer
	z -= zspeed;
}

```

pom :cowboy:

---

<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:** [October 3, 2002, 3:55pm UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/8 "2002-10-03T15:55:01Z")

</div>

Ah very good info 🙂

I was semi-close…haha 😛

---

<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:** [October 3, 2002, 7:13pm UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/9 "2002-10-03T19:13:40Z")

</div>

well that was fast, Thanks for the quick responce…i’ll give it a shot tonight like i said i’m a rookie to flash so some of that was  
overwhelming. but great!

Ryall “By the way is your name inspired by trainspotting?”

NA, the names from Social Distortion song title “sickboy”

also can you guys give me the names of some books on AS, I have Foundation Flash by friends of ED but it dose not get in to AS that much

Thanks, Sickboy

---

<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:** [October 3, 2002, 7:29pm UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/10 "2002-10-03T19:29:59Z")

</div>

Watch out for the new book from Colin Moock. Coming out soon… Go to the random forum, a thread called “it’s coming” for more info.

pom :rambo:

---

<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:** [October 3, 2002, 8:18pm UTC](https://forum.kirupa.com/t/new-to-flash-new-to-this-forum/6274/11 "2002-10-03T20:18:43Z")

</div>

Flash MX studio by friends of ED… great book that is all AS, and if you want to get tricky with AS get Flash Math Creativity by the same people… awesome books, and I’d definitly check out the one that ilyas suggested - I think that is going to be my next purchase.

Peace
