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




Image Scroll Control



hi, im using the below code to scroll an image. However, the image scrolls past the point which i want it stop at, so in a sense the scroll bar goes too far down. Is there something in the code to change this. or another way to control where the bar stops? thanks. the code im using.. fscommand("allowscale", "false");bar.useHandCursor = dragger.useHandCursor=false;space = 20;friction = 0.9;speed = 4;y = dragger._y;top = main._y;bottom = main._y+mask_mc._height-main._height-space;dragger.onPress = function() { drag = true; this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height); dragger.scrollEase();};dragger.onMouseUp = function() { this.stopDrag(); drag = false;};bar.onPress = function() { drag = true; if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) { this._parent.dragger._y = this._parent._ymouse; this._parent.dragger._y = this._y+this._height-this._parent.dragger._height; } else { this._parent.dragger._y = this._parent._ymouse; } dragger.scrollEase();};bar.onMouseUp = function() { drag = false;};moveDragger = function (d) { if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) { clearInterval(myInterval); } else { dragger._y += d; dragger.scrollEase(); updateAfterEvent(); }};up_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, -1);};down_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, 1);};up_btn.onMouseUp = down_btn.onMouseUp=function () { clearInterval(myInterval);};MovieClip.prototype.scrollEase = function() { this.onEnterFrame = function() { if (Math.abs(dy) == 0 && drag == false) { delete this.onEnterFrame; } r = (this._y-y)/(bar._height-this._height); dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction); main._y += dy; };};



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 12-09-2004, 08:46 AM


View Complete Forum Thread with Replies

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

Image Scroll Control
hi,

im using the below code to scroll an image. However, the image scrolls past the point which i want it stop at, so in a sense the scroll bar goes too far down. Is there something in the code to change this. or another way to control where the bar stops?

thanks.

the code im using..

fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};

Horizontal Image Scroll Movie Clip Control Question
hi, am having the user control this movie clip:

http://www.rapidrecoveryinc.com/imagescroll.swf

with speed and direction. any help much appreciated!
-stefan

Scroll Wheel - Control Page Scroll?
Alrightly... So I have a flash file that is 750 x 1000 px and is embedded into an html page. Since it's height is a 1000px in order to see the whole flash file one needs to scroll down on the page. This is fine except that when people are working with the flash file (have clicked on it) and then want to use the scroll wheel it won't scroll the html page..

I realize this is because in flash you can assign your own properties to the scroll wheel. But is there a way to have the scroll wheel perform it's normal function of scrolling the html page?

I'm not sure if there is an easy way or if I would have to write some code for flash to call javascript to scroll the page? I know people must have run into this problem before and probably have some good solutions.

Thanks in advance

Linking Text Buttons In Scroll To Image Outside Scroll Area
Hi,
I am desperately hitting my head against a brick wall - so please help me!

I have created a flash area that is divided up with an image on top and a scroll area under.

I am trying to get the text buttons in the scroll area to each change the image above and cant seem to get it to work because of the masking.

I have tried heaps and heaps of different ways and am going crazy!

PLEASE HELP ME!!!!


thanks,
kova

Text + Image Scroll Function With Scroll Bar. Help
Hi, tring to create a scrollable text window that can also include different text colours, styles, links and images. I have tried a few tutorials but they only seem to work with dynamic text without different colours, styles, links and images. is there an easier solution i can use..

Please help

Scroll Text With Image In Scroll Panel ? Help
Hi,

I m trying scroll pannnel to show image and dynamic text both in scroll panne but when i select dymanic text in text option it comes outer from scroll pannel but static text is coming.

I need help to show dynamic text also in scroll pannel.

Thanks

Scroll Large Image With Out Scroll Bars
Does anyone know how to do this, not profient in Flash.

This is the effect I am after

http://www.moochi.co.nz/collection.html

Thanks

Scroll Text With Image In Scroll Panel ? Help
Hi,

I m trying scroll pannnel to show image and dynamic text both in scroll panne but when i select dymanic text in text option it comes outer from scroll pannel but static text is coming.

I need help to show dynamic text also in scroll pannel.

Thanks

Scroll Large Image With Out Scroll Bars
Does anyone know how to do this, not profient in Flash.

This is the effect I am after

http://www.moochi.co.nz/collection.html

Thanks

Scroll Control
so here is the code I have on my movie clip,,,

onClipEvent (mouseMove) {
xmousepos1 = _xmouse;
ymousepos1 = _ymouse;
if (xmousepos1>xmousepos2 && ymousepos1>-98 && ymousepos1<-33) {
_root.scrollclip.nextFrame();
}
if (xmousepos1<xmousepos2 && ymousepos1>-98 && ymousepos1<-33) {
_root.scrollclip.prevFrame();
}
if (ymousepos1<-98 || ymousepos1>-33 && xmousepos1<-10 || xmousepos1>-33) {
play();
}
xmousepos2 = _xmouse;
ymousepos2 = _ymouse;
}


At the moment, the action only stops when the mouse is either above or below the movie,,, can someone help me code it so it does it on the side too... ie ,,, it does the y axis but i ALSO want to set the x axis.....

How Do You Control Scroll Text Speed?
Hi all,

I have a scroll text box in my movie. The text is an external file loaded into the movie. The frame rate of the movie is 30 and probably because of that the scrolling is pretty fast. Now my client wants to slow it down but I
don't know how.. In the first frame I have the following script in the frame action:

buzz = String(buzz);
loadVariables ("externaltext.txt", "texthere");
if (stophere.length == 0) {
flag = 0;
} else {
flag = 1;
}
if (flag == 1) {
buzz = parseFloat(stophere);
buzz = "$"+stophere;
stop ();
}

The button is MC on the stage and has a Clip Event on the stage like this:

onClipEvent (enterFrame) {
if (this.pressing==true) {
_parent.texthere.TextFile.scroll = _parent.texthere.TextFile.scroll + this.movement;
}
}

The button to scroll down is like this:

on (press) {
pressing = true;
movement = 1;
}
on (release) {
pressing = false;
}


Is there anyway to describe a speed lower than "1"? Thanks bunch in advance.

Wantan

Scrolling Text Box, W/ Scroll Bar Control
Ok, I am frustrated!

I am trying to get a text box to fit in a limited about of screen space by providing a scrolling screen for it. (Similar to browsers,) you place your mouse on the scroll bar to the left anf press to make the display screen move up or down. This is in no way a new idea and it seems pretty simple, but I am floundering and embarassing MYSELF with my lame attempts at scripting this. I can not even get the slider to properly slide let alone move the text clip. I have included a fla and a swf so you can see what I mean and laugh at my pathetic script. (I did!) Thanks so much for your help!!!
Angie

FLA:
http://www.a1flash.com/flashkit/test.fla

SWF:
http://www.a1flash.com/flashkit/test.swf

Flash Scroll Bar To Control HTML
Hey, is there anyway to scroll an html document from flash MX which will be in a different frame of html and also resize itself according to the html content?

Scroll Pane Border Control
Hi

I am trying to edit a scroll pane which was pretty straight fwd in mx but in mx2004 i understand from the flash help you have to use themes.

I have built a new theme but cannot seem to get rid of the border around the whole scroll pane or the white box behind it.


can somebody offer any pearls of wisdom, been going round and round for hours

thanks in advance
ashley

Auto Scroll W/slider Bar Control
I want to make a text field that when left to its own will scroll continuosly, but if a user wants to drag it to a certain point they can, using the slider. Anyone know how to do this? Thanks!

Can A Scroll Bar Control 2 Text Boxes?
Can a scroll bar control 2 dynamic text boxes at the same time? I have 2 dynamic text boxes that need to move at the same time, according to user mouse input.

How To Control A Movieclip Tweening Using Scroll Bar
I have a scrollbar that when moved to the right I want to control a movieclip to move to the left. When the scrollbar moves to the left the movieclip will movie to the right. I was able to make the scrollbar to work correctly. I need to add the actionscript to the other movieclip so it can work. I have no idea how to start.

The movieclip I want to move has 30 frames. Frame 20 a image is located in the middle. Frame 30 the image is located on the right, in frame 1 the image is located on the left. I have a stop command on frame 1 and 30.

When I move the scroll bar from its center position I want the movieclip tween between the images.

If you have the solution I will appreciate any imput.

Thanks
Carlos

1 Scroll Bar To Control 2 Dynamic Textboxes
actually there are 2 scrollbars, one for each box. but one scrollbar is off-stage, and somehow should find the scroll position of the on-stage scrollbar.

I once had the script that accompanies this setup. Client decided on a different layout, so I changed it. Now they need a similair setup, and I can't find that script again.

Does anyone remember or know of this technique? It only involved like 5 lines of script telling one scrollbar to mimic the other.

TIA.

How Do I Control A Movie Clip Within A Scroll Pane
What is the correct way to assign an action to a movie clip in a scroll pane?

I am trying to get a button to start an animation in a picture (movie clip)that I have in a scroll pane movie clip.

Any help would be greatly appreciated!

Custom Scroll Bar With Speed/friction Control
Hi All

I need to create a simple scroller which consists of a dynamic text field (populated from database), with a sliding (draggable) mc to control the scrolling.

Ideally I would like it if when you release the mouse, the text does not just stop, but slows to a stop smoothly.

Can anyone point me towards a tutorial or example?

Many thanks
L

Custom Scroll Bar With Speed/friction Control
Hi All

I need to create a simple scroller which consists of a dynamic text field (populated from database), with a sliding (draggable) mc to control the scrolling.

Ideally I would like it if when you release the mouse, the text does not just stop, but slows to a stop smoothly.

Can anyone point me towards a tutorial or example?

Many thanks
L

Sound Volume Control With Scroll Mouse..
Hey guys, i tried to implement Volume control on my site http://www.mediahead.com and this is what i am using.. but its really buggy... now it dosent go up.. once its down and i know why but the problem is limiting the sound from 0 - 100..


Code:

mouseListener.onMouseWheel = function(delta) {
   if (mainSound.getVolume() == 100) {
                        trace("sound at max!");
                        mainSound.setVolume(mainSound.getVolume() - delta);
    } else if (mainSound.getVolume() >= 0) {               
         mainSound.setVolume(mainSound.getVolume() + delta);
         //trace(mainSound.getVolume());
    }
 
}
Mouse.addListener(mouseListener);


this is a very chopped up version.. but i tried many variations to control the range..

Buttons To Control Scroll Pane Content Position?
Hi thanks in advance,

How do I get buttons to control which part of the scroll pane content to show?

For example, say in my scroll pane content movie, i have Section A, B and C and would like all these sections to be scrollable together in the same scroll pane.

If i were to click on a button, say 'Section C', then the the scroll pane will jump to the Section C part.

Really appreciate your help in this

Control The Size Of The Scroll Pane In Design And Runtime
please can u tell me how to control the width and hieght of the scroll pane in the design time and runtime.
i tried:
mypane.Setsize(width,hieght)

it's working fine in the runtime,but i need to fisically position the pane on the stage by myself.
can somebody tell me????

Function To Control The Scroll Speed At Which A Thumbnail Rolling Bar Moves
The thumbnail scroll bar starts speeding slow and than it gets faster and faster. I would like to slow down this speed.

I need to slow down the speed at which the thumbnail rolling bar moves from left to right. The slideshow I have includes a thumbnail brownsing bar. The speed at which the thumbnails move at the begining is just fine but as the user scrolls down further it starts to move the thumbnails way to fast.

Can someone take a look a the Controller I am using which is attached and let me know what I am missing?
I am attaching the code I am using and also here is the link to the slideshow

THank you so much

Fernanda InchaustiWorking slideshow







Attach Code

/*
---------------------------------------------------------
Classe Controlador
---------------------------------------------------------
Controla tudo o que ocorre no slide show...
---------------------------------------------------------
*/

class Controlador {

// atributos

var nPics:Number;
var nThumbs:Number;
var picsLoaded:Number;
var thumbsLoaded:Number;
var picAtual:Number;
var thumbAtual:Number;
var dirImg:String;
var dirThumbs:String;
var modoShow:Boolean;
var razaoPorc:Number;
var scrollLimite:Number;
var base:MovieClip;
var clipAtual:MovieClip;
var showPlaying:Boolean;
var movendoThumbs:Boolean;

// métodos

function Controlador(clip:MovieClip) {

nPics = 45;
dirImg = "images/fullsize/";
dirThumbs = "images/thumbnails/";

nThumbs = 0;
picsLoaded = 0;
thumbsLoaded = 0;
razaoPorc = 100 / nPics;
base = clip;
modoShow = true;
showPlaying = false;
}

function iniciar() : Void {
var a, b : Number;
var txt, txtFoto : String;
var objThumb : Object;

ocultarTudo();

base.listaThumbs.thumb1.ativo = false;
base.listaThumbs.thumb1.numero = 1;
base.foto1.numero = 1;
base.foto1.pronto = false;

// cria os espaços para cada foto e thumbnail
for(a = 2; a <= nPics; a++) {
b = a - 1;
txt = "thumb" + a;
txtFoto = "foto" + a;

base.listaThumbs.thumb1.duplicateMovieClip(txt, b);
base.foto1.duplicateMovieClip(txtFoto, b);

base.listaThumbs[txt].ativo = false;
base.listaThumbs[txt].numero = a;
base[txtFoto].numero = a;
base[txtFoto].pronto = false;
}

base.loadingPics._visible =
base.loadingThumbs._visible = true;

// ajuste de profundidades
base.fade.swapDepths(nPics);
base.btPlay.swapDepths(nPics + 1);
base.loadingPics.swapDepths(nPics + 2);
base.loadingOnePic.swapDepths(nPics + 3);

picAtual =
thumbAtual = 1;
clipAtual = base.foto1;
base.infoSlides.slideTotal.text = nPics;

carregarFoto(1);
carregarThumbs();
}

function ocultarTudo() : Void {
var a : Number;

base.btNext._visible =
base.btPrevious._visible =
base.btPlay._visible =
base.infoSlides._visible =
base.loadingPics._visible =
base.loadingThumbs._visible =
base.listaThumbs._visible =
base.loadingOnePic._visible = false;
for(a = 1; a <= nPics; a++) {
base["foto" + a]._visible = false;
}
}

function carregarThumbs() : Void {
var a : Number;

for(a = 1; a <= nPics; a++) {
base.listaThumbs["thumb" + a].img.loadMovie(dirThumbs + a + ".jpg");
}
}

function avisarThumbCarregado(clip:MovieClip) : Void {
thumbsLoaded++;
base.loadingThumbs.barra._xscale = thumbsLoaded * razaoPorc;
base.loadingThumbs.barra._alpha = 100;
if(thumbsLoaded >= nPics) {
base.loadingThumbs.barra._visible = false;
posicionarThumbs();
}
}

function posicionarThumbs() : Void {
var anterior, atual : MovieClip;
var a : Number;

anterior = base.listaThumbs.thumb1;
ajustarBordaThumb(anterior);
anterior.img._alpha = 60;
for(a = 2; a <= nPics; a++) {
atual = base.listaThumbs["thumb" + a];
atual._x = anterior._x + anterior._width;
atual.img._alpha = 60;
ajustarBordaThumb(atual);
anterior = atual;
}
base.listaThumbs._visible = true;
base.loadingThumbs._visible = false;
scrollLimite = (base.listaThumbs._width > 600) ? 600 - base.listaThumbs._width : 4;
base.listaThumbs.ret = this;
base.listaThumbs.onEnterFrame = function () {
if(_root._ymouse > 435 && _root._ymouse < 600) {
if(_root._xmouse < 300) {
this.ret.moverThumbsDir(10 - _root._xmouse * 10 / 300);
} else if(_root._xmouse > 300) {
this.ret.moverThumbsEsq(_root._xmouse * 10 / 300 - 10);
}
this.ret.movendoThumbs = true;
} else {
this.ret.movendoThumbs = false;
}
}
}

function ajustarBordaThumb(clip:MovieClip) : Void {
var x, y : Number;

clip.borda._visible = false;
// desenha a borda
x = clip.img._width + 4;
y = clip.img._height + 4;
clip.borda.lineStyle(0, 0xFFFFFF, 100);
clip.borda.lineTo(x, 0);
clip.borda.moveTo(x, 0);
clip.borda.lineTo(x, y);
clip.borda.moveTo(x, y);
clip.borda.lineTo(-1, y);
clip.borda.moveTo(-1, y);
clip.borda.lineTo(-1, -1);
// ajusta a área de link
clip.link._width = clip.img._width;
clip.link._height = clip.img._height;
}

function moverThumbsEsq(passo) : Void {
if(base.listaThumbs._x > scrollLimite) {
base.listaThumbs._x -= passo;
}
}

function moverThumbsDir(passo) : Void {
if(base.listaThumbs._x < 4) {
base.listaThumbs._x += passo;
}
}

function selecionarFoto(num:Number) : Void {
clipAtual._visible = false;
picAtual = num;
clipAtual = base["foto" + picAtual];
exibirFotoAtual();
atualizarInfo();
atualizarBotoes();
}

function atualizarAtivoThumb() : Void {
var a : Number;
var txt : String;

// desativando o thumb anteriormente selecionado
txt = "thumb" + thumbAtual;
base.listaThumbs[txt].img._alpha = 60;
base.listaThumbs[txt].borda._visible = false;
base.listaThumbs[txt].ativo = false;
base.listaThumbs[txt].link._visible = true;

// ativando o thumb selecionado
txt = "thumb" + picAtual;
base.listaThumbs[txt].img._alpha = 100;
base.listaThumbs[txt].borda._visible = true;
base.listaThumbs[txt].ativo = true;
base.listaThumbs[txt].link._visible = false;
thumbAtual = picAtual;
// reposicionando os thumbs para que o ativo fique visível
if(!movendoThumbs) {
centralizarThumbAtivo();
}
}

function centralizarThumbAtivo() : Void {
var pos : Number;
var thumb : MovieClip;

thumb = base.listaThumbs["thumb" + thumbAtual];
pos = base.listaThumbs._x + thumb._x + thumb._width;
if(pos < 0 || pos > 600) {
base.listaThumbs._x = Math.max(Math.min(0, base.listaThumbs._x + 350 - pos), scrollLimite);
}
}


function carregarFoto(indice:Number) : Void {
base["foto" + indice].img.loadMovie(dirImg + indice + ".jpg");
}

function contarFotoCarregada(indice:Number) : Void {
var txt : String;
var prox : Number;

txt = "foto" + indice;
picsLoaded++;
base[txt].pronto = true;
base[txt]._visible = false;
atualizarLoadingFotos();
centralizarFoto(indice);
prox = proximaFotoNaoCarregada(indice);
//trace("indice = " + indice + " prox = " + prox);
if(picsLoaded < nPics) {
carregarFoto(prox);
}
if(modoShow && !showPlaying && prox > 0) {// se está no modo slide show e as 4 próximas fotos já estão no cache, dá o play
if(prox - picAtual > 3) {
continuarShow();
}
} else if(indice == picAtual && !modoShow) {// se não está no modo slide show e está carregando a foto que se deseja visualizar, exibe imediatamente
exibirFotoAtual();
}
}

function proximaFotoNaoCarregada(indice:Number) : Number {
var a, cont : Number;

a = indice;
for(cont = 0; cont < nPics; cont++) {
if(!base["foto" + a].pronto) {
return a;
}
a = (a == nPics) ? 1 : a + 1;
}
return 0;
}

function atualizarLoadingFotos() : Void {
base.loadingPics.barra._xscale = picsLoaded * razaoPorc;
base.loadingPics.barra._alpha = 100;
base.loadingPics.nPic.text = picsLoaded + " / " + nPics;
}

function centralizarFoto(num:Number) : Void {
var clip : MovieClip;

clip = base["foto" + num];
clip._x = 300 - (clip._width / 2);
clip._y = 230 - (clip._height / 2);
}

function continuarShow() : Void {
modoShow = true;
showPlaying = true;
fadeinFotoAtual();
atualizarInfo();
atualizarBotoes();
}

function atualizarInfo() : Void {
base.infoSlides.slideAtual.text = picAtual;
base.infoSlides._visible = true;
if(base.listaThumbs._visible) {
atualizarAtivoThumb();
}
}

function atualizarBotoes() : Void {
base.btPrevious._visible = (picAtual > 1);
base.btNext._visible = (picAtual < 110);
}

function proximaFoto() : Void {
clipAtual._visible = false;
picAtual = (picAtual == nPics) ? 1 : picAtual + 1;
clipAtual = base["foto" + picAtual];
exibirFotoAtual();
atualizarInfo();
atualizarBotoes();
}

function fotoAnterior() : Void {
clipAtual._visible = false;
if(picAtual > 1) {
picAtual--;
}
clipAtual = base["foto" + picAtual];
exibirFotoAtual();
atualizarInfo();
atualizarBotoes();
}

function exibirFotoAtual() : Void {
if(modoShow) {
if(clipAtual.pronto) {
fadeinFotoAtual();
} else {
base.fade.gotoAndPlay(1);
showPlaying = false;
base.loadingPics._visible = true;
base.btPlay._visible = false;
carregarFoto(picAtual);
}
} else {
if(clipAtual.pronto) {
base.fade.gotoAndStop("parado");
clipAtual._visible = true;
base.loadingOnePic._visible = false;
base.btPlay._visible = true;
} else {
base.loadingOnePic._visible = true;
base.btPlay._visible = false;
carregarFoto(picAtual);
}
}
}

function fadeinFotoAtual() : Void {
base.fade.gotoAndPlay("fadeIN");
clipAtual._visible = true;
base.loadingPics._visible = false;
base.btPlay._visible = true;
}

function alternarModo() : Void {
if(modoShow) {
modoShow = false;
showPlaying = false;
base.btPlay.texto.text = "PLAY SLIDE SHOW";
exibirFotoAtual();
} else {
modoShow = true;
showPlaying = false;
base.btPlay.texto.text = "PAUSE SLIDE SHOW";
proximaFoto();
}
}

}

Image Scroll With Scroll Bar
Hi,

Please look at the image here first:

http://www.visualplane.com/projects/...r1_300x250.jpg

I need to have the weight and height be scrollable where the weight and height is highlighted when the viewer mouses over. After that, it needs to be clickable button with a clicktag.
Can someone show me where I can grab a file to make this work? I don't want to use components because it's for a banner and the size needs to be under 30k. I been searching for hours without luck.

Thanks

Image Scroll With Scroll Bar
Hi,

Please look at the image here first:

http://www.visualplane.com/projects/...r1_300x250.jpg

I need to have the weight and height be scrollable where the weight and height is highlighted when the viewer mouses over. After that, it needs to be clickable button with a clicktag.
Can someone show me where I can grab a file to make this work? I don't want to use components because it's for a banner and the size needs to be under 30k. I been searching for hours without luck.

I can make a text scroll, but that doesn't solve the ability for that area to be a highlightable button. The thought is to have a image scroller instead and I can place a button on top of each of the weight.

Also, it's preferable that this works in Flash 5 and above.


Thanks

Image Control... How's This Done?
This is driving me crazy, searching for some answers on this one.

Zoom in on the snowboard and drag it around, it appears the low-res
image is updated with hi-res patches on the fly.

Is this a function tied to the bitmap object... or
did they write some fancy code to pull in and assemble a sliced up image, and
then replace the low-res slices on the fly.

http://www.salomonsnowboard.com/us/p...product=786036

thanks for any insight.

Scale Control Of Image
I would just like someone to explain the following code. I have been fooling around with it, but would rather like a explaination for what everything means. I wouldn't mind knowing how to control where the x,y point decides when the image enlarges.

y = getProperty("../dragControl", _y);
X = getProperty("../dragControl", _x);
if (Number(y)>230 or Number(x)>1) {
midY = y-(300/2);
if (Number(midY)<0) {
midY = -midY;
}
setProperty("../nav", _xscale, midX);
setProperty("../nav", _yscale, midY);
if (Number(getProperty("../nav", _yscale))<100) {
setProperty("../nav", _xscale, "100");
setProperty("../nav", _yscale, "100");
}
if (Number(getProperty("../nav", _xscale))>30) {
setProperty("../nav", _xscale, "30");
setProperty("../nav", _yscale, "30");
}
}

Video Image Control?
is there any method to do image control of the live video?
e.g. reversing colors, or destaurate
and get pixel color ?
is there any method to access the video buffer to get the pixel color?

thanks

Image Panning Control
Hi, I readed the interactive image pan tutorial and thought it was great and I have a favor to ask.

I have this project and I want the background image to pan when the mouse moves, the problem is that I have a menu and I want the buttons to go to different places on the image when I click on them and then the pan stops when the image reachs it´s destination.

I also have a button that I want to use to restart the Image panning.

Here´s an example of what I try to do: http://sendyourstyle.com/index.html but without the zoom effect.

If someone knows how to do this with Action Script, please let me know. Thanks in advance.

Izfact.

Image Panning Control
Hi, I readed the interactive image pan tutorial and thought it was great and I have a favor to ask.

I have this project and I want the background image to pan when the mouse moves, the problem is that I have a menu and I want the buttons to go to different places on the image when I click on them and then the pan stops when the image reachs it´s destination.

I also have a button that I want to use to restart the Image panning.

Here´s an example of what I try to do: http://sendyourstyle.com/index.html but without the zoom effect.

If someone knows how to do this with Action Script, please let me know. Thanks in advance.

Izfact.

Image Scroll Box
i'm loading images externally using an xml file source. the images are all 700x900. I want them to load into a image box which is 700x300 so only 300 of the height is shown but the rest can be scrolled with a scroll bar. everything I've tried just does not work. any suggestions.

How Do I Scroll An Image?
Ocay, I've jst got a bunch of images that I want to scroll like a text scrollbar... could someone please give me an idea of how to do this.

Thanx

Image URL In Scroll Bar
Hi, does anyone knows how i can place an image, with an URL link, into a box that has a scroll bar?

Image Scroll
I'm trying to add a scrollabe menu bar like e one in this website.
http://www.dieselmarketing.com/

Anyone has any idea on how to do this?

Image Scroll
I am trying to create an image scroll but I can't get the scripting right. Can someone help me to fix the action scrpting in my file?
Thanks for any assistance.

Image Scroll
hi. I am a designer and I use flash mx 2004 as a design tool but am not the savviest actionscripter. I am currently designing a site and have used a script that I found in flashkit to create a scrollable image gallery. the actionscript is assigned to the first 4 frames of the movie. the first frame is a stop action. the second frame I assign values:
// Xphoto = startposition of the scoll image
xphoto = 0;
//
// Widthmovie = This variable hase to be set to the
// same amount of the moviewidth
widthmovie = 900;
//
// Scrollspeed = The scollspeed of the image (high numbers result in slow scrolls 10=average)
scrollspeed = 15;
//
// widthphoto = the width of your scrollable image in pixels
widthphoto = 7878;

The third frame is where the computation resides:
// Setting the xmouse to 0 in the centre of the movie:
xmouse = _xmouse - (widthmovie / 2);

// Setting the speed:
speed = (xmouse) / scrollspeed;

// If the speed is negative, the speed will be made positive here:
if (speed < 0) {
speed = -(speed);
}
// If the mouse moves to left, the photo will scroll to the right:
// (That makes sense.... Doesn't it!! ;-)
if (xmouse < 0) {
xphoto = xphoto + speed;
}


// If the mouse moves to the right, the photo will scroll to the left:
if (xmouse > 0) {
xphoto = xphoto - speed;
}



// Checking for the left end of the image:
if (xphoto > 0) {
xphoto = 0;
}
// Checking for the right end of the image:
if (xphoto < -(widthphoto - widthmovie)) {
xphoto = -(widthphoto - widthmovie);
}
// Placing the moviclip (photo) on it's new postition:
setProperty("sm_images_scroller", _x, xphoto);

the fourth frame is just a simple go to and play(3).

My question is:
How do I make this same function and assign it to the "sm_images_scroller" movie clip itself, as opposed to making it a general frame event. I only want the scrolling to occur when the user's mouse is over the clip, and for it to stop scrolling when the mouse is up.

I hope someone can help. Thank you.

Image Scroll
i. I am a designer and I use flash mx 2004 as a design tool but am not the savviest actionscripter. I am currently designing a site and have used a script that I found in flashkit to create a scrollable image gallery. the actionscript is assigned to the first 4 frames of the movie. the first frame is a stop action. the second frame I assign values:
// Xphoto = startposition of the scoll image
xphoto = 0;
//
// Widthmovie = This variable hase to be set to the
// same amount of the moviewidth
widthmovie = 900;
//
// Scrollspeed = The scollspeed of the image (high numbers result in slow scrolls 10=average)
scrollspeed = 15;
//
// widthphoto = the width of your scrollable image in pixels
widthphoto = 7878;

The third frame is where the computation resides:
// Setting the xmouse to 0 in the centre of the movie:
xmouse = _xmouse - (widthmovie / 2);

// Setting the speed:
speed = (xmouse) / scrollspeed;

// If the speed is negative, the speed will be made positive here:
if (speed < 0) {
speed = -(speed);
}
// If the mouse moves to left, the photo will scroll to the right:
// (That makes sense.... Doesn't it!! ;-)
if (xmouse < 0) {
xphoto = xphoto + speed;
}


// If the mouse moves to the right, the photo will scroll to the left:
if (xmouse > 0) {
xphoto = xphoto - speed;
}



// Checking for the left end of the image:
if (xphoto > 0) {
xphoto = 0;
}
// Checking for the right end of the image:
if (xphoto < -(widthphoto - widthmovie)) {
xphoto = -(widthphoto - widthmovie);
}
// Placing the moviclip (photo) on it's new postition:
setProperty("sm_images_scroller", _x, xphoto);

the fourth frame is just a simple go to and play(3).

My question is:
How do I make this same function and assign it to the "sm_images_scroller" movie clip itself, as opposed to making it a general frame event. I only want the scrolling to occur when the user's mouse is over the clip, and for it to stop scrolling when the mouse is up.

I hope someone can help. Thank you.

Scroll Image
Hi,
I have add the default flash scroll bar to some text and it works fine. but I want to add some images to be scrolled too.
Please help me with this.
All I need is to scroll images using the default flash mx scroll bar, (from component) not any other method.

Download the attached file to see the scroll working with the text field.

Regards,
Hadi

AS In Image Scroll
Attached is a sample of the template I purchased ... it is for a horizontal image scroll.

It appears that the only code used to scroll the image conveyor is as follows:


Code:
onClipEvent (load) {
_root.move = true;
_root.speedX = 1.5;
}
onClipEvent (enterFrame) {
if (_root.move == true) {
if (this._x > 650) {
this._x -= 645;
} else if (this._x < 0) {
this._x += 645;
}
this._x += _root.speedX;
}
}


Again, you can look at the zipped attachment calle l_scroll.zip ... it will show you how they implemented the project.

Here is my question ... When I tried to add this code to a new image conveyor in my project I can't get the images to loop. It moves, but does not start in the correct location or loop around.

I "understand" that I don't "understand" AS all that well. Can someone explain the code to me so that I might be able to first, learn something and second, implement it in my project.

Just some notes: My projects width is 800 and I am using many more images so my conveyor is much longer.

Thanks for any help ... also, if you need me to clarify anything please let me know.

AS In Image Scroll
**Note** I accidentally posted in the MX2004 forum ... re-posted here, so I am sorry for the double post.

Attached is a sample of the template I purchased ... it is for a horizontal image scroll.

It appears that the only code used to scroll the image conveyor is as follows:


Code:
onClipEvent (load) {
_root.move = true;
_root.speedX = 1.5;
}
onClipEvent (enterFrame) {
if (_root.move == true) {
if (this._x > 650) {
this._x -= 645;
} else if (this._x < 0) {
this._x += 645;
}
this._x += _root.speedX;
}
}




Again, you can look at the zipped attachment calle l_scroll.zip ... it will show you how they implemented the project.

Here is my question ... When I tried to add this code to a new image conveyor in my project I can't get the images to loop. It moves, but does not start in the correct location or loop around.

I "understand" that I don't "understand" AS all that well. Can someone explain the code to me so that I might be able to first, learn something and second, implement it in my project.

Just some notes: My projects width is 800 and I am using many more images so my conveyor is much longer.

Thanks for any help ... also, if you need me to clarify anything please let me know.

[F8] Image Scroll Help
Hi everyone,
I am attempting to build a mouse controlled scrolling image portfolio for a site and have found a few good tutorials on how to do so; however, the one issue nothing seems to address is how to fit the required number of images into the movie clip.

I have 35 images, each 310 pixels wide, giving me a 10,850 pixels of information that I need to have in my stage. I can't extend past 3500 pixels on my stage. My flash movie has the dimensions of 960x650.

What am I supposed to do? Thanks for the help.

Image Scroll
Hello,

I'm new to Flash (and this forum - first post!) and so thought I'd make my first animation a simple one, so went for a horizontal image scroll bar.

I followed the instructions at the following address: http://www.wildform.com/tutorials/continuous_scroller/

I'm very confused. I've drawn a black circle, converted it to a movie clip symbol and given it an instance name. I've then typed in the code provided but when I exported it as an swf file there is nothing.

I don't follow the "if(_x>=540)" value depends on the no. of movie clips" part either.

I think I'm basically in need of my indepth instructions.

Thanks,

Quinny22

Image Scroll
hy guys i can't seem to find a tutorial for this?

http://www.thewinningstroke.com/

mid page

Image Scroll
I want to make a image scroll that looks like this script: http://www.flashkit.com/movies/Inter...1275/index.php with both a scroll bar and a mouse-over controlled scroll. I have been trying to change the code so it would fit with my images but without sucess. Does someone know a tutorial or maybe another script that does like this one?

[CS3] Image Scroll HELP
HELP!

So I have an image that pans onMouseMove, several things happen

onRelease= it attaches a movieclip and play (this works)

Problem:

I want the attached movieclip to be removed when I roll-out the hit area and continue panning. It kind works but the when I pan from hit area to outside hit area the panning stops and I have to move the mouse around for it to work, it's weird I dont know what I'm doing wrong pls, help!

I attached the swf file for the animation.

and hover over on the first to 2nd photo. I just applied the code to those.

here's my code






// panning code

stop();
var _MAIN:MovieClip = this;
var isSelected:MovieClip = null;
var canPan:Boolean = true;
MC._x = locX;
//
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/bg._width;
var mSpeed:Number = mousePercent*dir;

target.destX = Math.round(-((target._width-bg._width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX || target._x>0 || target._x<bg._width-target._width) { delete target.onEnterFrame;
if (target._x>0) {
target._x = 0;
} else if (target._x<bg._width-target._width) {
target._x = bg._width-target._width;
}

} else if (canPan) {
target._x += Math.ceil((target.destX-target._x)*(speed/100));

} else {
delete target.onEnterFrame;
}
};
}


// load movie clip code

function doPress(btn) {
canPan = !canPan;
if (!canPan) {
isSelected = _MAIN.attachMovie(btn._name, btn._name, 1, {_x:0, _y:0});

} else {
isSelected.removeMovieClip();
MC._x = locX=0-(btn._x);

}
}


MC.btn_A.onPress = function() {
doPress(this);
};


//code on hit areas
//this part doesnt really work smoothly

MC.btn_A.onRollOut = function() {
canPan = !canPan;
!canPan == true
isSelected.removeMovieClip();

};


MC.btn_B.onPress = function() {
doPress(this);
};
MC.btn_C.onPress = function() {
doPress(this);




HELP! thanks a lot!



};
MC.btn_D.onPress = function() {
doPress(this);
};
_MAIN.onMouseMove = function() {
constrainedMove(MC,4,1);
};

[F8] Image Scroll
Hi all,
I have this xml image loader that i cant figure out how to make it work the way i want.
1) the images load stacked on each other which is ok,
2) when the images are clicked they scrolls to a position ._x 250 on stage.
my problem is how can I reverse the position so that if any of the images is at the said ._x position(250), they scroll back to its initial position.
pls any help will make my day.
thanx

Big Image Scroll
Ok, I have a massive image that I want to scroll over the artboard when a user clicks a menu selection. When they click another the image scrolls again to the next point on the board. This isn't just left or right, nor up or down, but the full x,y. I can't think how better to expalin this, nor have any other examples to show.

I suppose that if you imagine that the image is a map and I wont to see point A then the entire map has to move so that point A is positioned on the viewing board. Then I want to see point B and the map then has to scroll again so that point B is positioned on the board.

Anyone have a clue? Can anyone point me in a direction of a tutorial and maybe an example to confirm what effet it is I'm after?

Cheers.

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