Need Help :(

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’!!

okay let me try that

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

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…

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

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 ?

cool! once you accomplish something it feels good doesn’t it :wink:
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!

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 :slight_smile:

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 ??

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 :slight_smile:

wats as = a sample ??

AS = actionscript

the codes i gave to you before were actionscript :slight_smile:

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 :slight_smile: 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 :slight_smile:

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

how do i make my box move straight ?

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?!

ah that was quick, here we go…


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 :slight_smile: 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:

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 :slight_smile:

what is that code for ???

slidin the box wen u press a btn…

you mean sliding out rite ?