Ok Im havint this problem since morning and its realy getting annoying
here is how my flash site works . I have animation at start and at the bottom buttons. first animation lasts for 375 frames and here is loop so that it continues doing it if i dont click on any other things. on frame 376 to 385 is my new menu called news, there is no animation just a text what appears, thing is that i wanted to do my own scrolling bar so i made this script
function scrollUp (e:Event):void {
scrollText.scrollV -= 1;
trace (scrollText.scrollV);
}
function scrollDown (e:Event):void {
scrollText.scrollV += 1;
trace (scrollText.scrollV);
}
var bounds:Rectangle = new Rectangle(scrollMC.x, scrollMC.y, 0, 275);
var scrolling:Boolean = false;
function startScroll (e:Event):void {
scrolling = true;
scrollMC.startDrag (false,bounds);
}
function stopScroll (e:Event):void {
scrolling = false;
scrollMC.stopDrag ();
}
scrollMC.addEventListener (MouseEvent.MOUSE_DOWN, startScroll);
stage.addEventListener (MouseEvent.MOUSE_UP, stopScroll);
addEventListener (Event.ENTER_FRAME, enterHandler);
function enterHandler (e:Event):void {
if (scrolling == true) {
scrollText.scrollV = Math.round(((scrollMC.y - bounds.y)/275)*scrollText.maxScrollV);
}
}
problem is that my scroll bar is not working and im getting some kind of errors listed here ->
Scene=Scene 1, layer=action, frame=376, Line 1 The class or interface 'Event' could not be loaded.
Scene=Scene 1, layer=action, frame=376, Line 6 The class or interface 'Event' could not be loaded.
Scene=Scene 1, layer=action, frame=376, Line 12 The class or interface 'Rectangle' could not be loaded.
Scene=Scene 1, layer=action, frame=376, Line 15 The class or interface 'Event' could not be loaded.
Scene=Scene 1, layer=action, frame=376, Line 20 The class or interface 'Event' could not be loaded.
Scene=Scene 1, layer=action, frame=376, Line 30 The class or interface 'Event' could not be loaded.
Few more thing:
on frame 386 starts new menu, so just that u know when u are helping me. I need to have on frame 385 stop macro but that my scroll ui script continues to work.
Im abit noob when comes to this, i made even another layer with new action script and i put this code in( not working ) and somehow I cant use stop(); script so that i stay in this part of menu.
please help what i need to do.
Thx alot
PS. If i just do new action script3 everything works fine but ofc this is simple version with just 2 layers.
PS. My first post in here.


Reply With Quote


Bookmarks