# Need Help :(

**URL:** https://forum.kirupa.com/t/need-help/13067
**Category:** flash
**Created:** [February 8, 2003, 12:06pm UTC](https://forum.kirupa.com/t/need-help/13067 "2003-02-08T12:06:53Z")
**Posts on this page:** 20
**Page:** 3

<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: [February 10, 2003, 9:01am UTC](https://forum.kirupa.com/t/need-help/13067/41 "2003-02-10T09:01:41Z")

</div>

can you post it so i can see whats goin wrong?

oh yea, did you give the window you made an instance?

click on the window and at the bottom it will say ‘intance’  
this is unique for every object…

i called mine window2 before (i think), so if you name yours blah, then in the code where it says window2, change that with ‘blah’!!

---

<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: [February 10, 2003, 9:06am UTC](https://forum.kirupa.com/t/need-help/13067/42 "2003-02-10T09:06:44Z")

</div>

okay let me try that

---

<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: [February 10, 2003, 9:07am UTC](https://forum.kirupa.com/t/need-help/13067/43 "2003-02-10T09:07:26Z")

</div>

do i have to make a new layer for each button or can i keep it all under the button layer ?

---

<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: [February 10, 2003, 9:08am UTC](https://forum.kirupa.com/t/need-help/13067/44 "2003-02-10T09:08:40Z")

</div>

well, at this stage its alrite to keep it all under the same layer, but i guess when you progress on, its better to keep them under sepoerate layers, and stick each of them in a folder called ‘buttons’ or something. it just helps organize things…

---

<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: [February 10, 2003, 9:13am UTC](https://forum.kirupa.com/t/need-help/13067/45 "2003-02-10T09:13:15Z")

</div>

sweeeet it moves 🙂 finally i think i got it man but then how do i change the text on each box ??

---

<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: [February 10, 2003, 9:15am UTC](https://forum.kirupa.com/t/need-help/13067/46 "2003-02-10T09:15:20Z")

</div>

how do i make it so the new “window box” im making is centered and like how do i make it move further and straight ?

---

<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: [February 10, 2003, 9:15am UTC](https://forum.kirupa.com/t/need-help/13067/47 "2003-02-10T09:15:29Z")

</div>

cool! once you accomplish something it feels good doesn’t it 😉  
and to change the text, right click and go to edit on the box. Then create a layer above the box layer and type all the text and stuff. Make sure they end on the same frame!

---

<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: [February 10, 2003, 9:16am UTC](https://forum.kirupa.com/t/need-help/13067/48 "2003-02-10T09:16:40Z")

</div>

ah that is all done in the tweening. You know howta tween stuff right?! you can find that in the flash 5 section under basics somewhere. Something like that…its much more detailed than me typing it just here 🙂

---

<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: [February 10, 2003, 9:29am UTC](https://forum.kirupa.com/t/need-help/13067/49 "2003-02-10T09:29:07Z")

</div>

how do i make a “close window” button so that the when people press the button it makes the windows exit by slideing to the left ??

---

<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: [February 10, 2003, 9:31am UTC](https://forum.kirupa.com/t/need-help/13067/50 "2003-02-10T09:31:32Z")

</div>

well you can do the tween thing again. same theory as making it slide in, if you think about it. i can probably make you an AS way but i’m really busy right now so it’ll havta be a while, so you can probably try out the tweening for now 🙂

---

<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: [February 10, 2003, 9:32am UTC](https://forum.kirupa.com/t/need-help/13067/51 "2003-02-10T09:32:57Z")

</div>

wats as = a sample ??

---

<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: [February 10, 2003, 9:35am UTC](https://forum.kirupa.com/t/need-help/13067/52 "2003-02-10T09:35:42Z")

</div>

AS = actionscript

the codes i gave to you before were actionscript 🙂

i don’t think you’re learning much from me just teaching you like this, you should probably check ou tthe tutorials when you got time 🙂 but anyhow, i’ll see if i can work an AS for you when i got time or somethin, it hink i know howta do 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: [February 10, 2003, 9:37am UTC](https://forum.kirupa.com/t/need-help/13067/53 "2003-02-10T09:37:13Z")

</div>

sweet…thanks man… i am learning lots from you trsut me …you are helping me sooo much man thanks alot dude im gonna give you props on my web-site …no one has ever helped me as much as you…thanks dude

---

<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: [February 10, 2003, 10:05am UTC](https://forum.kirupa.com/t/need-help/13067/54 "2003-02-10T10:05:41Z")

</div>

how do i make my box move straight ?

---

<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: [February 10, 2003, 10:09am UTC](https://forum.kirupa.com/t/need-help/13067/55 "2003-02-10T10:09:35Z")

</div>

its all in the tween…

go to the last KEYframe and make sure its x axis? or y axis one of those are the same as the first KEYframe. do this by clicking on the object and in the properties panel below, it will say height, width, x, y etc…

yea thats where you gotta change it…

and you know what i mean by ‘tween’ right? i mean the purple stuff in your frames, or the actions that make the box move…get 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: [February 10, 2003, 10:29am UTC](https://forum.kirupa.com/t/need-help/13067/56 "2003-02-10T10:29:34Z")

</div>

ah that was quick, here we go…

```php

onClipEvent (load) {
	speed = 10;
}
on (release) {
	this.onEnterFrame = function() {
		_root.window._x -= speed;
		if (_root.window._x<100) {
			_root.window._x = 100;
		}
	};
}

```

put that in the button action bar.  
check up anything in the actionscript dictionary if you don’t understnad, and if you can’t find it, then ask me or soemone else cause they explain much better 🙂 oh yea you can’t find ‘window’ there because it was the instance of the window box or the sliding thing whatever you wanna call 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: [February 10, 2003, 10:30am UTC](https://forum.kirupa.com/t/need-help/13067/57 "2003-02-10T10:30:50Z")

</div>

ah forgotta tell you change speed to a greater number to speed up the movement, and change the ‘100’ to -100 or something else. test it out and you’ll see 🙂

---

<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: [February 10, 2003, 10:50am UTC](https://forum.kirupa.com/t/need-help/13067/58 "2003-02-10T10:50:29Z")

</div>

what is that code for ???

---

<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: [February 10, 2003, 10:51am UTC](https://forum.kirupa.com/t/need-help/13067/59 "2003-02-10T10:51:59Z")

</div>

slidin the box wen u press a btn…

---

<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: [February 10, 2003, 10:53am UTC](https://forum.kirupa.com/t/need-help/13067/60 "2003-02-10T10:53:59Z")

</div>

you mean sliding out rite ?

[Previous page](https://forum.kirupa.com/t/need-help/13067.md?page=2)

[Next page](https://forum.kirupa.com/t/need-help/13067.md?page=4)
