# Actionscript Tennis

**URL:** https://forum.kirupa.com/t/actionscript-tennis/25510
**Category:** design
**Created:** [July 13, 2003, 6:48pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510 "2003-07-13T18:48:29Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![pom](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pom](https://forum.kirupa.com/u/pom)
#### Post date: [July 13, 2003, 6:48pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/1 "2003-07-13T18:48:29Z")

</div>

All right, we tried that some time ago, and unfortunately it didn’t work because out, but I’m confident this time =) Anybody wants to collaborate with 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: [July 13, 2003, 9:37pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/2 "2003-07-13T21:37:21Z")

</div>

whaaaaaaa ?

what’s an actionscipt tennis ???

someone who codes the best looking tennis match ???

---

<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 13, 2003, 11:11pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/3 "2003-07-13T23:11:50Z")

</div>

naaaa its when one person starts of a peice of code say 4 lines then passes to the next person who will code 4 lines and so on until the script is complete.

i would enter but i am only starting out in actionscript and im not to good at it 😕

---

<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 13, 2003, 11:30pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/4 "2003-07-13T23:30:45Z")

</div>

hmm… what’s the theme? =)

---

<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 14, 2003, 8:21am UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/5 "2003-07-14T08:21:24Z")

</div>

Could be anything 🙂 How about “space”?

---

<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 15, 2003, 7:26am UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/6 "2003-07-15T07:26:57Z")

</div>

uh, when do we start? 🙂

---

<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 15, 2003, 8:54am UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/7 "2003-07-15T08:54:59Z")

</div>

Shall I? Or do you want to start? 🙂

---

<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 15, 2003, 8:57am UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/8 "2003-07-15T08:57:56Z")

</div>

I would 🙂

What are the rules by the way? How is it gonna go? 🙂

---

<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 15, 2003, 9:32am UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/9 "2003-07-15T09:32:37Z")

</div>

Let’s say each one of us adds from 5 to 10 lines at a time, function headers, comments and brackets not included. I don’t know if we should discuss what we are doing though…

---

<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 15, 2003, 9:53am UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/10 "2003-07-15T09:53:14Z")

</div>

It would be cool if you could discuss it or at least place clear commenting because I’m starting to get to grips with ActionScript and I’m always happy to learn more :).

---

<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 15, 2003, 1:25pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/11 "2003-07-15T13:25:35Z")

</div>

> \*Originally posted by JK87 \*  
> \*\*It would be cool if you could discuss it or at least place clear commenting because I’m starting to get to grips with ActionScript and I’m always happy to learn more :). \*\*

Thats a good idea. Shouldnt be hard considering there arent many lines involved. It may take a while to get something fully developed - a couple of volleys.

There is also the issue of movieclips. Are these going to be using the drawing API? or can we add make new ones by drawing them? or have a specific set of usable, non-editable library items to work from? … like a line, square, cirlce or whatever? The drawing API would be cool (and help other people understand it more) but 5-10 lines is pretty much right there just the function for drawing a circle. Then again, it wouldnt be a big deal if the volleys go fast enough.

Also, handing off. Should that be in order? or take it as it comes. Setting an order is “fair” but it can also lead to delays and whatnot. “Taking it as it comes” is alot faster - basically thats just saying, someone declares that they have the ‘ball’ and will then post it. Next, whoever gets to it first takes it next (i.e. whoever is online). If two people are both after it, courtesy goes to the person with the least amount of go-at-its already. Just making sure whoever has it declares it in a post so theres no crossovers.

---

<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 15, 2003, 3:12pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/12 "2003-07-15T15:12:28Z")

</div>

Let’s say: drawing API only, and “taking it as it comes”. Those who take it as it comes will have to post something like “File checked out” (I’m polluted by VSS, I know…).

All right? [size=1]btw, are you participating, Sen? :)[/size]

---

<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 15, 2003, 4:26pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/13 "2003-07-15T16:26:50Z")

</div>

yeah 😉

---

<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 15, 2003, 6:28pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/14 "2003-07-15T18:28:56Z")

</div>

ah… ok… i hope this is good to begin with, with the ‘space’ theme in mind =)

[AS]Stage = {width:Stage.width, height:Stage.height}  
container = [];  
createCircle = function(num) {  
clip = \_root.createEmptyMovieClip(“mc”+i, i)  
clip.lineStyle(10+Math.random()\*60, Math.random()\*0x0000FF,10+Math.random()\*50);  
clip.lineTo(.15,.45);  
clip.\_x = Math.random()\*Stage.width  
clip.\_y = Math.random()\*Stage.height  
container.push(clip)  
}  
for(i=0; i\<15; i++) createCircle(i)[/AS] 9 lines (excluding function headers) =)

_edit_

[FLA](http://24.141.60.208/astennis.fla)

---

<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 15, 2003, 7:05pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/15 "2003-07-15T19:05:45Z")

</div>

I have a small question ahmed 🙂

… why did you redefine Stage to be an object which is itself minus all its properties other than height and width :q:

---

<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 15, 2003, 7:39pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/16 "2003-07-15T19:39:30Z")

</div>

ah, that… for some reason, when you run the movie in the Flash IDE, stage.width and stage.height return odd values, and by redefining it, it returns the correct values… it happens often, but not always 🙂

In the browser though this ‘bug’ doesn’t exist =)

---

<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 15, 2003, 10:26pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/17 "2003-07-15T22:26:39Z")

</div>

This isnt going as fast as I thought 😉 Ill step in for a swing:

-FLA CHECKED OUT!-

ok, added a spaceship (or the start of one atleast 😉

---

<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 15, 2003, 10:37pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/18 "2003-07-15T22:37:59Z")

</div>

haha, awesome sen =)

line #28 is ingeniuos, never thought of that :beam:

p.s. thanks for commenting the code too 🙂

---

<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 15, 2003, 10:40pm UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/19 "2003-07-15T22:40:37Z")

</div>

go for it! :beam:

---

<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 16, 2003, 10:03am UTC](https://forum.kirupa.com/t/actionscript-tennis/25510/20 "2003-07-16T10:03:58Z")

</div>

Can you guys post the code please? I’m at work, and I don’t have Flash here (obviously…).

[Next page](https://forum.kirupa.com/t/actionscript-tennis/25510.md?page=2)
