Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Flash




Make The Scroll Bar To Stop



Hi
Does anyone know How to make the vertical and horizontal scroll bar of ScrollPane component to stop when i scroll it till the end? Thanks!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Make The Wings Of A Fly Stop When The Flash Movie Stop?
Hello,

I made a simple "Fly Flying" flash animation. The wings of the fly are moving up and down while the fly is flying from one location to the other. My problem is:

The wings of the fly are still moving up and down when the fly is landed on the ground. I tried to add a stop(); action script at the last frame. However the wings are still moving even the movie is stopped.

How can I make the wings stop moving when the flash movie is stop? Please download and take a look at my flash file (fly_flying.fla):

http://space.uwants.com/batch.download.php?aid=313219

Thanks and best regards

Alex

Make The Browser Scroll Bar Scroll A Flash Text Box?
Is there anyway that javascript can detect when and which scroll bar button is clicked? I want to use javascript to make the browser scrollbar scroll a flash textbox.

Scroll Stop
Hey Guys, I used the slide tutorial from flashkit for my menu. Works great ,but I want something to be added.
If the user puts the mouse_cursor OUTSIDE the menu it should stop scrolling.
How can I do this?Can you help me out with the code?
I tried actionscript board but nobody seems te reply..I really need this...

I putted the slidecontroller down here!

thanx


code:

frame1:
______
speed =40;
slut = getProperty ( strip, _width);
setProperty ("strip", _visible, 0);
duplicateMovieClip ("strip", "strip1", 1);
duplicateMovieClip ("strip", "strip2", 2);
duplicateMovieClip ("strip", "strip3", 3);
gotoAndPlay (2);
_____</frame1>

<frame2>:
_______
startDrag ("drag", true);
_______
</frame2>

<frame3>
_______
xposition = getProperty("strip1", _x);
setProperty ("strip1", _x, Number(xposition)+Number(((getProperty("drag", _x)/(150-speed))*-1)));
setProperty ("strip2", _x, Number(Number(xposition)+Number(((getProperty("dra g", _x)/(150-speed))*-1)))+Number(slut));
setProperty ("strip3", _x, Number(xposition)+Number(((getProperty("drag", _x)/(150-speed))*-1))-slut);
// limits for slide
if (Number(getProperty("strip1", _x))<Number(-slut)) {
setProperty ("strip1", _x, 0);
setProperty ("strip2", _x, slut);
setProperty ("strip3", _x, -slut);
}
if (Number(getProperty("strip1", _x))>Number(slut)) {
setProperty ("strip1", _x, 0);
setProperty ("strip2", _x, slut);
setProperty ("strip3", _x, -slut);
}
__________
</frame3>

<frame4>:
_________
xposition = getProperty("strip1", _x);
setProperty ("strip1", _x, Number(xposition)+Number(((getProperty("drag", _x)/(150-speed))*-1)));
setProperty ("strip2", _x, Number(xposition)+Number(((getProperty("drag", _x)/(150-speed))*-1))-slut);
setProperty ("strip3", _x, Number(Number(xposition)+Number(((getProperty("dra g", _x)/(150-speed))*-1)))+Number(slut));
// limits for slide - minus slut
if (Number(getProperty("strip1", _x))<Number(-slut)) {
setProperty ("strip1", _x, 0);
setProperty ("strip2", _x, slut);
setProperty ("strip3", _x, -slut);
}
if (Number(getProperty("strip1", _x))>Number(slut)) {
setProperty ("strip1", _x, 0);
setProperty ("strip2", _x, slut);
setProperty ("strip3", _x, -slut);
}

gotoAndPlay (3);
_______
</frame4>

<frame5>"
_______
stopDrag ();
_____
</frame5>

Scroll And Stop
OK, I'm not sure exactly how to search on this, so I'm just going to explain what I'm looking for, and see if anyone knows of a good example or feels really charitable, and would like to give assistance

Here's what I'm looking for:

I have a list of projects ordered into different divisions. I would like the projects to continuously scroll vertically across the screen until the user mouses-over, or click on, a button that corresponds to a project division. When the user selects a division, the list of projects would scroll to the select division set of projects, and stop. Then the user could select a project from the current division set, and the project would be shown.

Was that explained properly? I hope so.

Any and all help would be appreciated!

Thanks,
Ryan

How To Stop Scroll?
Hello!
I need help.
I have a problem with the text-box scroller.
I dont know how to stop the scroll.
I mean how to stop scroll when the text ends.
Please dwnld my FLA and look what i'm talking about.
The text box is scrolling to infinity, and i want it to stop when the text ends.
I cannnot brak thru.

Please help me.

Scroll And Stop
Is it possible to make a swf that the text is taken from a .txt file?

I would like to place a news scroller on my website but not a javascript one because they are just plain awful, only flash can do it justice.

Basically the news article scrolls up, stops when it gets to the top for a few seconds to let someone read it, then scrolls up and off. The next article then comes in the same manner etc.

Is this possible and even broader, are there any tutorials to show me how to do it? I know very little flash as I only started learning a few days ago.

Thanks folks, any help very much appreciated

Scroll Stop
AS sumos! Can anybody tell me or show me how this kind of scroller is made. It stoppes by every singel project and has a relly nice counter Plz

http://www.ottobonigroup.com/

Thanks & Regards
- Chris

Stop Scroll When Up
Hi...
i used the continuous thumbnail gallery to scroll from right to left the images...
now i would like to stopp the scoll when u are on the images...can some guru help me?...
This my code:
cliparray = [];
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
url = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
url[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails_fn(i);
}

} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
p = 0;
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 5;
var tot = 0;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._heig ht)) {
if (_root._xmouse>=_x) {
for (var obj in cliparray) {
cliparray[obj]._x -= scroll_speed;
}
if (cliparray[0]._x<-cliparray[0]._width) {
cliparray[0]._x = cliparray[cliparray.length-1]._x+cliparray[cliparray.length-1]._width+500;
var j = cliparray.splice(0, 1);
cliparray = cliparray.concat(j);
}
} else if (_root._xmouse<=_x) {
for (var obj in cliparray) {
cliparray[obj]._x += scroll_speed;
}
if (cliparray[cliparray.length-1]._x>hit_right._x) {
cliparray[cliparray.length-1]._x = cliparray[0]._x-(cliparray[cliparray.length-1]._width+500);
var j = cliparray.splice(cliparray.length-1, 1);
cliparray = j.concat(cliparray);
}
}
}
};
function thumbnails_fn(k) {
var yy = thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
cliparray.push(yy);
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = 500+(target_mc._width+500)*k;
target_mc.pictureValue = k;
tot += target_mc._x;
target_mc.onRelease = function() {
p = this.pictureValue+0;
getURL(link[p], "_blank");
};
target_mc.onRollOver = function() {
this._alpha = 60;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};

};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(url[k], "thumbnail_mc.t"+k);
}



And here the exemple
http://portale.nethouse.it/download/test/movie3.html


thanx

Stop The Scroll Of The Background
I have a scrolling map that starts scrolling when my hero gets near the edge of the screen and then the code scrolls the map in the same direction - problem is it stops scrolling when you get off the key but if u turn around and start to head off the other way it stills scrolls for a second until you get out of the 'hit' area.

this is some of the code:

onClipEvent (load) {
planespeed = 12;
speed = 8;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
if (_x<525) {
_x = _x+planespeed;
} else {
_root.thingscroll._x = _root.thingscroll._x-speed;

}
}
if (Key.isDown(Key.LEFT)) {
if (_x>125) {
_x = _x-planespeed;
} else {
_root.thingscroll._x = _root.thingscroll._x+speed;
}
}
if (Key.isDown(Key.UP)) {
if (_y>100) {
_y = _y-planespeed;
} else {
_root.thingscroll._y = _root.thingscroll._y+speed;
}
}
if (Key.isDown(Key.DOWN)) {
if (_y<450) {
_y = _y+planespeed;
} else {
_root.thingscroll._y = _root.thingscroll._y-speed;
}
}
}
onClipEvent(enterFrame){
//detect the key and set variable "direct"
if (Key.isDown(Key.RIGHT)) {
_root.direct = "right";
}
if (Key.isDown(Key.LEFT)) {
_root.direct = "left";
}
if (Key.isDown(Key.UP)) {
_root.direct = "up";
}
if (Key.isDown(Key.DOWN)) {
_root.direct = "down";
}
//rotate according to direct

if (_root.direct == "right" and _rotation != 90){
_rotation = 90;
}
else if (_root.direct == "left" and _rotation != -90){
_rotation = -90;
}
else if (_root.direct == "up" and _rotation != 0){
_rotation = 0;
}
else if (_root.direct == "down" and _rotation != 180){
_rotation = 180;
}
}

Any help appreciated...

Mouse Scroll Stop
Ok I have made a mouse scroll mc which has 30 attached squares which will hold photos. The amount of the squares will change according to the amount of photos there is. I have got it all working except I don't know how I can get it to stop when it is scrolling all the way to the left. It should stop when the last thumbnail is at the right hand side of the stage. Because the thumbnails are been created dynamically the leftStop variable will change according to the amount of squares that have been attached. I hope this makes sense. Can anyone help me with this.
Here is a LINK

Code:
photo_max = 30;
createEmptyMovieClip("timeline", 1);
for (var i = 0; i < photo_max; i++) {
t = timeline.attachMovie("thumb", "thumb"+i+"_mc", i);
t._x = 30+i*45;
t._y = 30;
t.num.text=i+1;
}
//=========== MOUSE CHECKER ======================
triggerLevel = 66;
createEmptyMovieClip("mouseChecker", 100);
mouseChecker.onMouseMove = function() {
if (_root._ymouse < triggerLevel) {
timeline.onEnterFrame = timelineMove;
} else {
delete timeline.onEnterFrame;
}
};

Code:
spd = .05;
function timelineMove() {
//leftStop=?????
rightStop = 0;
centerX = Stage.width/2;
timeline._x += (centerX-_root._xmouse)*spd;
if (timeline._x>=rightStop) {
timeline._x = rightStop;
}
//if (timeline._x<=leftStop) {
//timeline._x = leftStop;
//}
}
DOWNLOAD FLA

How To Stop Scroll On RollOver
Hi I've set up a movieclip that scrolls across the stage and resets itself at a certain point to make it look like it's a continuous loop... i'm trying to get it to stop when the mouse rolls over one of the buttons inside, and then start up again when the mouse rolls out...anyone have an idea how to do this? Here's an example of what I mean, except they used javascript to code the scroll.

http://www.corbis.com/

Scroll Bar Stop And Does Not Continue
Im Using MX 2004, and im learning using a template from a free source, however when working on a scroll portion of the site, i needed to increase the sive of the verticle scrollong, I have made it longer on the stage and figure this would do the job, nonetheless when i test it goes half way and stops. Any help would be appreciated.

Thanks A million

Stop Occurrence Of Scroll Bar
I used the following actionscript for a scroll bar to appear on a dynamic text field. Unfortunately, the scroll bar continues to appear on every frame proceeding the frame where the text field is displayed. What is the method to eliminate the occurrence of the scroll bar?
/**
Requires:
- UIScrollBar component in library
*/
// Create text field.
this.createTextField("myText", 10, 10, 20, 200, 100);
myText.wordWrap = true;
this.createClassObject(mx.controls.UIScrollBar, "my_sb", 20);
// Set the target text field for the scroll bar.
my_sb.setScrollTarget(myText);
// Size it to match the text field.
my_sb.setSize(16, myText._height);
// Move it next to the text field.
my_sb.move(myText._x + myText._width, myText._y);
// Load text to display and define onData handler.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src != undefined) {
myText.text = src;
} else {
myText.text = "Error loading text.";
}
};

Scroll.... Stop UseHandCursor()
i want to ask for somthing maybe simple but i don't knw it.
in scroll text (dynamic loaded) it works greate but i want to make if the text in the last line the up button isn't clickble... and if it in the first line the buttom button isn't clickble too...

Scroll Doesn't Stop :(
I wrote this code for scrolling content:

ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var uppressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (uppressed) {        if (count != 125) {            _parent._parent.news._y -= 5;            count += 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    uppressed = false;    updateAfterEvent();}
and for opposite:
ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var dnpressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (dnpressed) {        if (count != 0) {            _parent._parent.news._y += 5;            count -= 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    dnpressed = false;    updateAfterEvent();}
When I scroll down it works and stops when count reaches 125, but when I scroll up it doesn't stop and scrolling down doesn't work anymore... Any help?..

Stop Th Auto Scroll Help
Hello all,

I need some help with removing the auto scroll from this action scripting code and I can not seem to make it stop. Can someone please offer some expert help? See below:


function moveRight()
{
isRight = false;
var _loc1 = thumbBlock;
if (_loc1.targetX == startX - len * spaceX)
{
_loc1._x = _loc1.targetX = startX;
_loc1.targetX = _loc1.targetX - spaceX;
}
else
{
_loc1.targetX = _loc1.targetX - spaceX;
} // end else if
} // End of the function
function moveLeft()
{
isRight = true;
var _loc1 = thumbBlock;
if (_loc1.targetX == startX)
{
_loc1._x = _loc1.targetX = startX - len * spaceX;
_loc1.targetX = _loc1.targetX + spaceX;
}
else
{
_loc1.targetX = _loc1.targetX + spaceX;
} // end else if
} // End of the function
stop ();
stopAllSounds ();
goLink = [];
goLink[0] = "10.html";//Image button linkage 01
goLink[1] = "20.html";//Image button linkage 02
goLink[2] = "30.html";//Image button linkage 03
goLink[3] = "40.html";//Image button linkage 04
goLink[4] = "50.html";//Image button linkage 05
goLink[5] = "60.html";//Image button linkage 06
goLink[6] = "70.html";//Image button linkage 07
startX = 30;//Thumb image location (X)
startY = 25;//Thumb image location (Y)
spaceX = 225;//Thumb image 02 location (row)
showNum = 4;//Number of thumb images displayed per page
imgURL = "image/img";//Thumb image file path
nowSelect = 0;
bigimg.loader.loadMovie("image/img" + nowSelect + ".jpg");//Thumb image file path
len = goLink.length;
isRight = true;
thumbBlock.thumbImg._visible = false;
thumbBlock._x = thumbBlock.targetX = startX;
thumbBlock._y = startY;
thumbBlock.onEnterFrame = function ()
{
this._x = this._x + 2.000000E-001 * (this.targetX - this._x);
};
prevBtn.onRelease = function ()
{
for (var _loc1 = 0; _loc1 < len + showNum; ++_loc1)
{
thumbBlock["thumbImg" + _loc1].gotoAndStop(1);
} // end of for
timer.gotoAndPlay(1);
moveLeft();
};
nextBtn.onRelease = function ()
{
for (var _loc1 = 0; _loc1 < len + showNum; ++_loc1)
{
thumbBlock["thumbImg" + _loc1].gotoAndStop(1);
} // end of for
timer.gotoAndPlay(1);
moveRight();
};
k = 0;
var i = 0;
while (i < len + showNum)
{
var _mc = thumbBlock.thumbImg.duplicateMovieClip("thumbImg" + i, i);
_mc._x = spaceX * i;
_mc._y = 0;
_mc.no = k;
_mc.screen.loadMovie(imgURL + k + ".jpg");
_mc.onRollOver = function ()
{
};
_mc.onRollOver = function ()
{
for (var _loc2 = 0; _loc2 < len + showNum; ++_loc2)
{
this._parent["thumbImg" + _loc2].gotoAndStop(1);
} // end of for
this.gotoAndPlay(2);
nowSelect = this.no;
};
_mc.onRollOut = function ()
{
for (var _loc2 = 0; _loc2 < len + showNum; ++_loc2)
{
this._parent["thumbImg" + _loc2].gotoAndStop(1);
} // end of for
this.gotoAndStop(1);
nowSelect = this.no;
};
_mc.onRelease = function ()
{
getURL(goLink[this.no], "_blank");//Target frame for image button linkages
};
_mc.onEnterFrame = function ()
{
if (this.isOver == true)
{

} // end if
};
if (k == len - 1)
{
k = 0;
}
else
{
++k;
} // end else if
++i;
} // end while
init();


Thanks!!

Scroll.... Stop UseHandCursor()
i want to ask for somthing maybe simple but i don't knw it.
in scroll text (dynamic loaded) it works greate but i want to make if the text in the last line the up button isn't clickble... and if it in the first line the buttom button isn't clickble too...

Scroll Doesn't Stop :(
I wrote this code for scrolling content:

ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var uppressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (uppressed) {        if (count != 125) {            _parent._parent.news._y -= 5;            count += 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    uppressed = false;    updateAfterEvent();}
and for opposite:
ActionScript Code:
onClipEvent (mouseDown) {    if (this.hitTest(_root._xmouse, _root._ymouse)) {        var dnpressed = true;        updateAfterEvent();    }}onClipEvent (enterFrame) {    if (dnpressed) {        if (count != 0) {            _parent._parent.news._y += 5;            count -= 5        }    }    updateAfterEvent();}onClipEvent (mouseUp) {    dnpressed = false;    updateAfterEvent();}
When I scroll down it works and stops when count reaches 125, but when I scroll up it doesn't stop and scrolling down doesn't work anymore... Any help?..

Stop Scroll Menu
Hi all I recent looked into doing a scoll menu and found this: http://www.kirupa.com/developer/mx/infinite.htm now the problem is I dont want it infinite I want it to stop when it gets to the last link can anyone help?? I want it to look something like this one: http://www.flashlevel.com/

anyway I know you guys can do it coz you always helped so thanks in advance
WiK

W i K


Stop Infinit Scroll
Hi all I have a menu I am trying to do I downloaded a sample .fla file from flashkit, anyway here is the code

//
center = slide1._y;
borderleft = center-slide1._height/6;
borderright = center+slide1._height/6;
speed = 80;
friction = 0.75

function slidemenu () {
    slide1._y += speed;
    speed *= friction;

    if (slide1.hitTest(_root._xmouse, _root._xmouse, true)) {
        speed += (center-_ymouse)/60
    }

if (slide1._y>borderright) {slide1._y-=slide1._height/3 }
if (slide1._y<borderleft) {slide1._y+=slide1._height/3}
}


now the problem is I am trying to make the menu NOT infinit can someone please help !!!!

W i K


Very Simple Scroll Bar That Won't Stop Scrolling
hey,

I have made a very simple scroll bar (attached). And it works fine. I stops scrolling where i want it to stop. But, when i export my "info.swf" file, the file that has the scroll bar, and load it into another movie, then my scroll bar scrolls continously. I don't know what i am doing wrong.


Baljinder

Start/Stop Button On Scroll
Hello,

I have an MC which acts as scrolling credits (i.e. at the end of a movie). Its just a motion tween. If a user wants to stop and view a certain credit, I'd like to have a button that starts/stops the scroll. Can anyone help me with the script for this?

Thanks.

I heard that if it's a tween, you can just use the

on (release) {
_root.credits.stop();
}

and then on the play button:

on (release) {
_root.credits.nextFrame();
}

This works for the stop button, but the play button just advances the frame by 1. It won't continue scrolling. Any help.

Left And Right Scroll To And Stop With Buttons?
I'm pretty new to actionscript and have a problem:

I'm putting together a Web site and in the body I have filmStrip_mc movie clip that I want to scroll (left or right) to a specific point on an onRelease event.

For example; when the 'contact us' button is clicked, the filmStrip_mc movie clip scrolls past 'products', and 'about us', and stops at 'contact'.

I also, of course, want the movie clip to scroll to any previous page selected.

Any help would be GREATLY appreciated.

Thanks

Stop Horiztonal Scroll On Roll Off
Looking to stop my horizontal scroll from following my mouse when I am not in the area. Is there a way to set boundaries

example:http://www.diorhomme.com/2006/diorhomme.html

This is the current script I am using.

mouseX = _xmouse;
menuX = menu._x;

if (mouseX > 280) {
diff = (mouseX-280)/15;
}
if (mouseX < 220) {
diff = (220-mouseX)/15;
}
if (mouseX <= 250 && menuX <= 56) {
setProperty("menu", _x, menuX+diff);
}
if (mouseX >= 250 && menuX >= -289) {
setProperty("menu", _x, menuX-diff);
}
if (menu._x >= 0) {
menu._x = 0;
} else if (menu._x <= -289) {
menu._x = -289;
}
gotoAndPlay(2);

Horizontal Scroll Won't Stop Scrolling
I've got a problem with nice horizontal scroll bar (originally from Claudio). It won't stop scrolling! There seems to be no way to set the end x coordinate for it in the as layer.
This would be the perfect thing if only it would stop scrolling empty space at the end
of the images. No matter how many images you have in there it will still have that empty white space at the end of the scroll. HELP ANYONE?

Attached fla.

I'll paypal $10 to the 1st one who will fix this succesfully. This should be an easy fix.

Scroll Movieclip - Stop At Certain Point
Hi. I figured out the code below to make a movie clip scroll up and down. However, the problem is that it will keep scrolling forever. Does anyone know how I can get it to stop at a minimum and maximum vertical height?


Code:
var scrollUp = function() {
test_mc.onEnterFrame = function() {
this._y -= 5;
}
};
var scrollDown = function() {
test_mc.onEnterFrame = function() {
this._y += 5;
}
};
scrollup_mc.onRollOver = function() {
scrollUp();
};
scrollup_mc.onRollOut = function() {
delete test_mc.onEnterFrame;
};
scrolldown_mc.onRollOver = function() {
scrollDown();
};
scrolldown_mc.onRollOut = function() {
delete test_mc.onEnterFrame;
};

Make A Movie Scroll In When One Button Is Clkd N Scroll Out When Another Is Clkd
ok heres the thing...

im fairly new to the whole flash thing, i can do the really basic stuff...

but theres one thing i cant get my head around...

on the site i am creating, i have a menu (6 buttons vertical)

on each button click it loads a different page...

i have the pages set to scroll in from the right in a movie...

what im wanting is that so when u click a different button (for a different page) it will scroll the page in view out again...and then sequencially scroll the page in question in...

(am i making any sense)

ive looked all across the forum and cant find anythign remotely relating to what im after...and also tutorials/user uploaded movies etc on this site and still nothing...

i know its possible because ive seen it done else where...

if anyone has any sites...or any example movies of what im talking about please could i see them...im in serious desperation here :S

Thanks...

Goa

Masked Horizontal Scroll--how To Stop It From Reseting?
I'm using a pretty basic horizontal scroll with a mask (not yet live) here: http://xlties.com/shop/product_info.php?products_id=53

My question is, how can I have each unique URL open from the scroll area with the selected image centered (rather than resetting)?

Anyway to handle this dynamically? The only way my non-programmer brain thought to fix this was to make unique scrollbar for each product, but there MUST be a better way!

Help!

Thanks in advance.
janap

Stop Scroll Buttons While Tween Is In Motion
Hi again,

I'm at the last bug of my project! Please help me out on this one...

I'm scrolling a masked MC, which is basically a grid of thumbnails with a few rows. Right now, it works beautifully by scrolling row-to-row if the up/down buttons are pressed only after the tween has finished. However, if I press the up or down buttons in succession before it finishes scrolling, the positions get all messed up because it will start the motion tween from the current y position, which is halfway through a scroll.


Code:
new Tween(holder,"_y",mx.transitions.easing.Strong.easeOut,holder._y, holder._y+scrollAmt,1.5,true);
That is basically the only code in my onRelease function.

I've thought about 2 ways of tackling this problem:

1: to disable the up/down buttons while the tween is taking place.

2: to NOT have the tween start from the current y position since that is the root of the problem. But I think this is impossible due to the nature of the purpose of the function.

Either ways, I'm not sure how to implement them. Therefore, I urge you to help me out please.

Thank you for your time!

Stop Scroll Bar Component From Having Selectable Text
I want the text to not be able to be selected because when you click the down button a few time it selects everything automatically. The example of what i'm talking about can be seen at http://www.mikes-music.com/mm.html

I was trying to use the selectable=false property

_root.screen_animation_mc.myText.selectable=false;


and also checked to see if the component had the selectable property so I could set it to false, but it does not.

Any help would be great,

Thanks

Stop Scroll Buttons While Tween Is In Motion
Hi again,

I'm at the last bug of my project! Please help me out on this one...

I'm scrolling a masked MC, which is basically a grid of thumbnails with a few rows. Right now, it works beautifully by scrolling row-to-row if the up/down buttons are pressed only after the tween has finished. However, if I press the up or down buttons in succession before it finishes scrolling, the positions get all messed up because it will start the motion tween from the current y position, which is halfway through a scroll.


Code:
new Tween(holder,"_y",mx.transitions.easing.Strong.easeOut,holder._y, holder._y+scrollAmt,1.5,true);
That is basically the only code in my onRelease function.

I've thought about 2 ways of tackling this problem:

1: to disable the up/down buttons while the tween is taking place.

2: to NOT have the tween start from the current y position since that is the root of the problem. But I think this is impossible due to the nature of the purpose of the function.

Either ways, I'm not sure how to implement them. Therefore, I urge you to help me out please.

Thank you for your time

Follow Mouse Scroll > Stop At Edge
Follow Mouse ScrollCan anyone lead me to a horizontal scrolling image that follows the mouse, and stops at the outermost edge of a designated frame? Thank you for all the help.

MikeZ

Stop Scroll Panel When Mouse Stops.
Hey All,
I am making a scroll panel which scrolls perfect. I was wondering if there is a way to make the panel stop moving when the mouse stops moving? If anyone could point me in the right direction that would be great.
Thanks

F

http://www.francomichienzi.com/test4

Code:

stop();
small_pictures.onRollOver = panelOver;
function panelOver() {
   this.onEnterFrame = scrollPanel;
   delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
   var xdist = _xmouse-480;
   _root.small_pictures._x += Math.round(-xdist/40);
   if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
      this.onRollOver = panelOver;
      delete this.onEnterFrame;
   }
   if (small_pictures._x>=40) {
      // This value is always the same.
      small_pictures._x = 40;
   }
   if (small_pictures._x<=-560) {
      //  This value will change depending on the number of small pictures.
      small_pictures._x = -560;
      //  Look below for correct values.
   }
}

Swf Stop Resize On Original Swf Size- Scroll Shows Up
I have one problem, i am not Sure how to define it to search for it on google, i'm sure that is a lot of answer on the internet, but i will try here...

How to stop resizeing my fullsrean swf movie when the size of the browser reach the original size of swf, after that if i resize browser to be smaller scroll will bi show up....

example.... http://www.rolex.com/en/

my AS2 code is

Code:
//start Stage re-size code
Stage.align = "TL";
Stage.scaleMode = "noScale";
// ---> Create a new listener object
var stageListener:Object = new Object();
// ---> Define the resize function...
stageListener.onResize = function() {
// ---> first, get the new dimensions of the stage....
var stageWidth:Number = Math.round(Stage.width);
var stageHeight:Number = Math.round(Stage.height);
trace("Stage size is now " + Stage.width + " by " + Stage.height);
// ---> now, set the footer BG w & h to the stage dimensions...
footerBG_mc._width = stageWidth;
//footerBG_mc._height = stageHeight;
footerBG_mc._x = 2;
footerBG_mc._y = stageHeight-25;
// ---> now, set the footer links to the stage dimensions...
footerLinks_mc._x = (stageWidth/2) - (footerLinks_mc._width/2) ;
footerLinks_mc._y = stageHeight-18;
// ---> now, set the background clip alignment to match stage...
wallPaper_mc._x = (stageWidth/2) - (wallPaper_mc._width/2);
//wallPaper_mc._y = stageHeight/2;

// ---> now, size the outLine_mc to the stage dimensions...
//outLine_mc._height = stageHeight-2;
//outLine_mc._width = stageWidth;
outLine_mc._x = (stageWidth/2) - (outLine_mc._width/2);
//outLine_mc._y = (stageHeight/2) - (wallPaper_mc._height/2);

};
// ---> Apply the listener...
Stage.addListener(stageListener);
// ---> Run the function...
stageListener.onResize();

//--------------------//
Mouse.hide();
var followMe:Object= new Object()
followMe.onMouseMove=function(){
newMouse._x=_xmouse;
newMouse._y=_ymouse;
}
Mouse.addListener(followMe)
and on the HTML page is


Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<style type="text/css">
#center { position: absolute; top: 50%; width: 100%; height: 1px; overflow: visible }
#main { position: absolute; left: 50%; width: 100%; margin-left: -50%; height: 600px; top: -300px; background-color:"#cccccc"}
body {
overflow-x:visible;
background-color: #333333;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
<title>Centered</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

</head>
<body>
<div id="center" >
<div id="main">
<img src="950x10.jpg" alt="" />
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','100%','height','600','src','main','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','main' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="950" height="600">
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<embed src="main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="950" height="600"></embed>
</object></noscript>

</div>
</div>
</body>
</html>
my page
http://www.dupli.co.yu/index22.html

PLEASE Make It STOP
Ok,

I'm making an attempt at scripting some motion here. The problem: How do I make it stop? I've tried using GetProperty, and the final coordinates, but no luck yet. Does anyone have any suggestions?

The script I'm using goes like this:

onClipEvent (enterFrame) {
myvariable = getProperty(myinstance, _rotation);
setProperty (myinstance, _rotation, newvariable=myvariable+1);
}

Thanks for any help!

How Do I Make It Stop?
Here's my situation: I am creating a project for class, I have two symbols on two layers. Layer One has a Shape Tween that ends on frame 85, then 15 blank frames at the end. Layer 2 has a Motion Tween that ends on frame 85, then 15 blank frames at the end. I want to make the symbol at the end of the Motion Tween into a button that will create a movie clip on a rollover, then another movie clip when hit.

My problem (one of them anyway) is: How do I make the Tweens stop? I test the movie and they continue to loop. I want them both to stop in frame 85, then convert the graphic in the motion tween into a button.

Help Please. Thank you.

How Do I Make It Stop?
This is probably pretty darned basic, but I can't seem to figure it out- What I have is a 3 frame movie with an MC that slides onto the stage via ActionScript that looks something like this:

//code in frame 1:

xpos=0;
ypos=225;

//Code in Frame 2:

setProperty("box", _x, xpos);
xpos= 2 + xpos;

setProperty("box", _y, ypos);

//Code in Frame 3:

gotoAndPlay(2);

And what I want to do is have it stop at a specific point and I'm having no luck at all....

Thanks for any help

How To Make Everything Stop?
hi, how do i make my entire flash movie just stop halfway so that i can make a link to another part of it? and for that matter, how do i make a link to another part of it?

sorry if i'm a little too ignorant...

Make It Stop
pretty basic question, ill explain it.

a dude runs across screen and when he gets shot he falls dead right. BUT his a movie clip and when u click his head he falls dead right... but its tweened so even if the mc has finshed playing and his dead his dead body flys across the screen.

how do i make it stop

Can't Make It Stop
I have a scroll that I made, and I have it set to skip frames when onpress and then onrelease I want to make it stop, except it won't stop. I have tried everything I know hopefully someone can help me!

Thanks,
Eric Ehle

Please Make It Stop
I have a scroll that I made, and I have it set to skip frames when onpress and then onrelease I want to make it stop, except it won't stop. I have tried everything I know hopefully someone can help me!

Thanks,
Eric Ehle

How To Make Him Stop
I want my guy to stop when he hits a diagonal wall, it works with up and down walls or sideways walls, but not diagonal walls.

Make It Stop
Below is the AS for a slideshow I got from someone on this forum (argh! I should have noted it!). What I want it to do is to stop on the last photo. I do not want it to continue to cycle.


Code:
stop();
//ON LINE 3...enter the total number of images you are going to present. Currently it is set up for 3 images total.
numberOfImages=3;
//ON LINE 5...NOTE: NAME THIS THE SAME WAY ON LINE 38...two things to consider. A) the path to the file you want to load and B) the file name. As it is currently set up each file should be named "image_0, image_1, image_2" and so forth. All you have to do is type "image_" preceded by the path to the image.
theImageUrl="imgs/slideshow1/image";
//ON LINE 7...leave this line alone. If you were to raise this to 500, it would fade one step at a time, very slowly. Leave it at 50.
theFadeSpeed=50;
//ON LINE 8...this really has more control over the disolve. Set it to 1 and it will disolve very, very slowly. Set it to 50 and you will get a hard cut. You will have to tweak this control and the one above this based on the size of your images.
theFadeIncr=8;
//ON LINE 11... at 30, the slide will pause for 6 seconds before going to the next image. I think this number is a multiple of 5 i.e. 30/5=6"
pauseAtFullAlpha=30;

// ADDING A BORDER AROUND IMAGES.
//ON LINE 15... If you want a border, state true, if you do not what a border, state false
withBorder=false;
//ON LINE 17... You can control the size of the border select 1 for a thin border and a higher number to thicken it up.
border_thickness=0;
//ON LINE 19... Control the color of the border using hexidecimal values. It is currently set to black.
border_color=000000;
//ON LINE 20... Set the alpha value of the border. If you would prefer a transparent border, select a value below 100. The 100 equates to 100% opaque.
border_alpha=100;

// SCALING IMAGAES
// Setting this variable to true means you want the images resized to the imageWidth imageHeight variables
// Set to false means that the images will be accepted as the original image size.
resizeImages=false;
// width of images
imageWidth=300;
// height of images
imageHeight=300;
/////////////////////////////////////DANGER ENTER WITH CAUTION ///////////////////////////////////
currentImage=undefined;
nextImage=0;
lastImage=undefined;
slideshowPlay=true;
pauseCount=0;
loaderBar._visible=false;
MovieClip.prototype.fadeInterval=undefined;
MovieClip.prototype.fadeSpeed=theFadeSpeed;
MovieClip.prototype.fadeIncr=theFadeIncr;
MovieClip.prototype.fadeUp=function(){
clearInterval(this.fadeInterval);
this._visible=true;
this.fadeInterval=setInterval(fadeU,this.fadeSpeed,this);
function fadeU(mc){
if(mc._alpha<100){
mc._alpha+=fadeIncr;
updateAfterEvent();
}
else{loadNextImage();clearInterval(mc.fadeInterval);}
}
};

for(j=0;j<numberOfImages;j++){
this.createEmptyMovieClip("h"+j,j);
this["h"+j].createEmptyMovieClip("img",0);
if(withBorder){
this["h"+j].createEmptyMovieClip("outline",1);
}
this["h"+j].imageNum=j;
this["h"+j]._visible=false;
this["h"+j]._alpha=0;
}

this.createEmptyMovieClip("topBuffer",numberOfImages+3);
this.createEmptyMovieClip("currentBuffer",numberOfImages+2);
this.createEmptyMovieClip("lastBuffer",numberOfImages+1);

topDepth=this.topBuffer.getDepth();
currentDepth=this.currentBuffer.getDepth();
lastDepth=this.lastBuffer.getDepth();

function startSlideshow(){slideshowPlay=true;loadNextImage();}
function stopSlideshow(){slideshowPlay=false;}
function loadNextImage(){
if(slideshowPlay){
newUrl="";
if(nextImage>=0 && nextImage<10){newUrl=theImageUrl+"00"+nextImage+".jpg";}
else if(nextImage>=10 && nextImage<100){newUrl=theImageUrl+"0"+nextImage+".jpg";}
else{newUrl=theImageUrl+nextImage+".jpg";}
this["h"+nextImage].img.loadMovie(newUrl);

preloaderBar.bar._xscale=0;
preloaderBar.percent="";
preloaderBar._visible=true;
pauseCount=0;
loadInterval_ID=setInterval(loadCheck,100,this["h"+nextImage]);
}
}
function loadCheck(mc){
pauseCount++;
BL=mc.img.getBytesLoaded();
BT=mc.img.getBytesTotal();
if(BL >= BT && BL>0){
if(pauseCount>=pauseAtFullAlpha){
changeImage();
ProccessImages(mc);
preloaderBar.percent="";
preloaderBar._visible=false;
clearInterval(loadInterval_ID);
}
}
preloaderBar.bar._xscale=(BL/BT)*100;
preloaderBar.percent="Percent loaded " + Math.floor((BL/BT)*100);
}

function changeImage(){
if(currentImage!=undefined){
if(lastImage!=undefined){
this.lastBuffer.swapDepths(this["h"+lastImage].imageNum);
this["h"+lastImage]._visible=false;
this["h"+lastImage]._alpha=0;
}
this.currentBuffer.swapDepths(lastDepth);
lastImage=currentImage;
this.topBuffer.swapDepths(currentDepth);
}
this["h"+nextImage].swapDepths(topDepth);
this["h"+nextImage].fadeUp();
currentImage=nextImage;
nextImage++;
if(nextImage>=numberOfImages){nextImage=0;}
}
function ProccessImages(theHolder){
if(resizeImages){
theHolder.img._width=imageWidth;
theHolder.img._height=imageHeight;
}
else{
imageWidth=theHolder.img._width;
imageHeight=theHolder.img._height;
}
if(withBorder){
theHolder.outline.clear();
theHolder.outline._visible=true;
theHolder.outline.lineStyle(border_thickness,border_color,border_alpha);
theHolder.outline.moveTo(0,0);
theHolder.outline.lineTo(imageWidth,0);
theHolder.outline.lineTo(imageWidth,imageHeight);
theHolder.outline.lineTo(0,imageHeight);
theHolder.outline.lineTo(0,0);
}
}
startSlideshow();

How To Make MCs Within MC Stop()
Is there a simple way to say...
on keyPress "Enter"
main_MC and all MCs within main_MC stop()

The catch is that I don't know how many MCs are within main_MC

(I'm creating a game and when I press Enter I want it to pause the game)

All of my objects/characters are housed with main_MC but I don't know how many are in there at any one time and therefor I can't specify specific targets.

Make The NaN Stop
No mater what i do.. Im getting NaN(on trace) from variables that were made out of data taken from a XML file... This data is all numbers and i am guessing its taking it as a string.. i need to convert it to number so i can tell script what to do...
HELP!,


ND



Code:
function run() {
trace("NOW RUNNING!");
for (var m = 0; m < tts+1; m++) {
tgrp = eval("l1s" + [m+1]);
trace("tgrp");
trace(tgrp);
//lines.lineTo(l1sxp,l1syp+tgrp);
//trace(l1syp);
l1syp = eval(l1syp + Number(tgrp));
//trace("l1syp");
trace(l1syp);
//
trace("");
trace("");
//>> l1sxp = l1sxp+9;
//trace(m);
//l = i+1;
//_global["l1s"+l] = xmlDoc_xml.firstChild.childNodes[0].childNodes[i].childNodes[0];
}
}

How Do I Make It Stop?
How do I make an animation stop? I'm trying to do the shine affect on a box, but I don't know how to tell it to go only once. Also, how do I make the gradient "tween faster" and more smoothly? My animation jerks from place to place.

How Do I Make It Stop?
How do I make an animation stop? I'm trying to do the shine affect on a box, but I don't know how to tell it to go only once. Also, how do I make the gradient "tween faster" and more smoothly? My animation jerks from place to place.

How Can I Make Him Stop
How can i make a character that moves with the keyboard and Stop when something is on its way ?
With this code I move the character:
code:
onClipEvent (load) {
walkSpeed = 5;
}
onClipEvent (enterFrame) {

if (Key.isDown(Key.UP)) {
_rotation = 0;
_y-= walkSpeed;
}
if (Key.isDown(key.RIGHT)) {
_rotation = 90;
_x+= walkSpeed;
}
if (Key.isDown(key.LEFT)) {
_rotation = 270;
_x-= walkSpeed;
}
if (Key.isDown(key.DOWN)) {
_rotation = 180;
_y+= walkSpeed;
}
}
please my RPG game will never work If I cant something

Copyright © 2005-08 www.BigResource.com, All rights reserved