Next Generation Emulation banner

1 - 1 of 1 Posts

·
ゲート オーペン!
Joined
·
911 Posts
Discussion Starter · #1 · (Edited)
hi I just started learning flash like 1 week or so ago, well I know how to use Illlustrator, Photoshop, Dreamweaver, Fireworks , and well now Flash
my bg of programming is html,a bit of js, css,a bit of qbasic and currently learning java,
so in actionscript (in this case 2.0) is totally new for me is similar to java so that helps just a bit but since is not the same I get lost most of the time lol, so well here's my problem I was trying to make a scrollbar so I made a movie of a scrolling bar going from the top to the button and divided in 45 frames (since this is for a text so I know how to make it scroll by clicking on a button and it moves 1 line down, so since it takes 45 clicks to get to the button [yeah it moves 1 line per click lol] I made 45 frames), now I wanna to make the movie move as the u press the button so I thought,when u press the down button to make the movie go just to one frame up it would be:
Code:
on (release) {
	_root.myText.scroll += 1;
	if (_root.scroll_bar._currentFrame<=45) {
		while (this._currentFrame< this._currentFrame+1 ) {
			this.gotoAndPlay(_currentframe += 1);
		}
	} else {
		//do nothing 
	}
}
and when is the button is up it would be:

Code:
on(release){
	_root.myText.scroll-=1;
	if(_root.scroll_bar._currentFrame <= 1) {
		//do nothing XD
	}
	else if(_root.scroll_bar._currentFrame <= 45){
	 while (this._currentFrame > this._currentFrame - 1){
		 this.scroll_bar.gotoAndPlay(_currentFrame-=1);
	 }
	}
	

}

so I also thought if u wanna to move the scrollbar (not yet moving text that would be next lol) it would be:
Code:
on (release) {
	mouse = _root._ymouse;
	getProperty(mouse, _y) = one;
	getProperty(mouse, _y) = two;
	if (two=one-5) {
		//if the second time the mouse moved 5 pixels down
		this.gotoAndPlay(_currentframe += 1);
		//I'm using this since this is occurring
		//in the movie itself.
		//I guess with following code it would make the text scroll  
		_root.myText.scroll += 1;
	}
}

so what am I doing wrong T_T help...
***when I said down or up I mean the button that scrolls "down" or "up" just clearing that out :laugh:
 
1 - 1 of 1 Posts
Top