Scrolling Panel And Xml
I am trying to link the scrolling panel and the basic xml slide show (both shown in these tutorials).Is there an easy way to call specific xml linked images from their corresponding (non-xml) thumbnail button within the scrolling panel.Thanks in advance...hovz
General Flash
Posted on: Sun May 14, 2006 6:56 pm
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Scrolling Panel
My scrolling thumbnail panel work great but I want to ad some extra functionality. I have two arrows above the panel. One for left and one for right.
Once the panel gets all the way to the left I want the left arrows alpha value to be set at 0 and once it begins to scroll right it needs to be visible again.
here is my attempt. Only the left arrows alpha is at 0 since beginning xPos is 0.
Attach Code
mouseX = _xmouse;
mouseY = _ymouse;
menuX = menu._x;
// -----------
function gotoURL(movieNum) {
getURL("javascript:flashURL("+movieNum+");");
}
// ------------
if (mouseX>314) {
diff = (mouseX-314)/40;
}
if (mouseX<313) {
diff = (313-mouseX)/40;
}
if (mouseX<=313 && mouseX>=10 && mouseY>=100 && mouseY<=575 && menuX<=0) {
setProperty("menu", _x, menuX+diff);
}
if (mouseX>=314 && mouseX<=617 && mouseY>=100 && mouseY<=575 && menuX>=-627) {
setProperty("menu", _x, menuX-diff);
}
if (menu._x>=0) {
menu._x = 0;
} else if (menu._x<=-627) {
menu._x = -627;
}
// ---------
gotoAndPlay(1);
// ----------
// Hide Arrows
menu.onEnterFrame = function() {
if (menuX<=0) {
lArrow._alpha = 0;
} else if (menuX>=625) {
rArrow._alpha = 0;
}
};
// show arrows
menu.onEnterFrame = function() {
if (menuX>=1) {
lArrow._alpha = 100;
} else if (menuX<=625) {
rArrow._alpha = 100;
}
};
// -----------
// see all styles button
b5.onPress = function() {
_root.gotoURL(5);
};
Trying To Do A Scrolling Panel In AS 2.0
i have a code for scrolling thumbnail paner AS 1.0 and id like to know what the equivalent would be for the same thing in AS2.
heres the code for 1.o
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root.picspage);
function scrollPanel() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if (panel._x >= -267) {
panel._x = -267;
}
if (panel._x <= -2429) {
panel._x = -2429;
}
var xdist = _xmouse - 0;
panel._x += -xdist / 5;
}
SCROLLING PANEL 3.0
I'm trying to convert Lee Brimelow's code for the scrolling panel to ActionScript 3.0, and I'm getting an error message. Quoted:
**Error** Scene 1, Layer 'actions', Frame 1, Line 11: 1084: Syntax error: expecting identifier before dot.
if(x.mouse<.b.xMin || x.mouse>.b.xMax || y.mouse<.b.yMin || y.mouse>b.y.Max){
**Error** Scene 1, Layer 'actions', Frame 1, Line 11: 1084: Syntax error: expecting rightparen before leftbrace.
if(x.mouse<.b.xMin || x.mouse>.b.xMax || y.mouse<.b.yMin || y.mouse>b.y.Max){
Total ActionScript Errors: 2, Reported Errors: 2
Before I change the x properties to as3, I was getting this message:
**Warning** Scene 1, Layer 'actions', Frame 1, Line 1: Warning: 1090: Migration issue: The onRollOver event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOver', callback_handler).
panel.onRollOver = panelOver;
**Warning** Scene 1, Layer 'actions', Frame 1, Line 4: Warning: 1090: Migration issue: The onEnterFrame is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'enterFrame', callback_handler).
this.onEnterFrame = scrollPanel;
**Warning** Scene 1, Layer 'actions', Frame 1, Line 8: Warning: 1058: Migration issue: The property _root is no longer supported. This property has been removed. The closest equivalent is the Stage, which serves as the root of the ActionScript 3.0 display list..
var b = stroke.getBounds(_root);
**Warning** Scene 1, Layer 'actions', Frame 1, Line 12: Warning: 1090: Migration issue: The onRollOver event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOver', callback_handler).
this.onRollOver = panelOver;
**Warning** Scene 1, Layer 'actions', Frame 1, Line 16: Warning: 1058: Migration issue: The property _x is no longer supported. Use the DisplayObject.x property instead..
if(panel._x >= 89) {
**Warning** Scene 1, Layer 'actions', Frame 1, Line 17: Warning: 1058: Migration issue: The property _x is no longer supported. Use the DisplayObject.x property instead..
panel._x = 89;
**Warning** Scene 1, Layer 'actions', Frame 1, Line 20: Warning: 1058: Migration issue: The property _x is no longer supported. Use the DisplayObject.x property instead..
if(panel._x <= -751) {
**Warning** Scene 1, Layer 'actions', Frame 1, Line 21: Warning: 1058: Migration issue: The property _x is no longer supported. Use the DisplayObject.x property instead..
panel._x = -751;
**Warning** Scene 1, Layer 'actions', Frame 1, Line 26: Warning: 1058: Migration issue: The property _x is no longer supported. Use the DisplayObject.x property instead..
panel._x += Math.round(-xdist / 7);
AND HERE IS MY CODE:
panel.addEventListener(MouseEvent.ROLL_OVER,panelOver);
function panelOver() {
this.addEventListener("enterFrame", scrollPanel);
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(x.mouse<.b.xMin || x.mouse>.b.xMax || y.mouse<.b.yMin || y.mouse>b.y.Max){
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel.x >= 89) {
panel.x = 89;
}
if(panel.x <= -751) {
panel.x = -751;
}
var xdist = x.mouse - 250;
panel.x += Math.round(-xdist / 7);
}
<Thanks for any assistance/>
Scrolling Panel
In Lee Brimlow' s example of the scrolling panel on gotoandlearn. What code would i add so that when the mouse left the bounding area of the stroke the the panel would come to a smooth stop instead of an immediate stop.
Scrolling Panel
Hi All.
I'm new to this forum and have been reading a lot of posts regarding the scrolling panel. However, i cant seem to find the answer I'm looking for. I am doing a complete flash site made up of various resources from the internet. (I got the main template from http://www.flashmo.com). On the products page, I have inserted the scrolling panel as shown in the tutorial by Lee. My main aim is that on the scrolling panel, if i click on a product, i would like it to go to a specific frame so that it shows the product information as stored on that frame. I have tried over and over, but i just cant seem to get it to work. I would be glad if someone would be able to assist me with this. (I have attached the .fla file and it was done using Adobe Flash CS3)
Another problem that i have with the panel is that the scroll is not smooth. Any ideas how i may be able to solve this?
Any assistance is highly appreciated.
Scrolling News Panel - Help?
I am trying to make a simple scrolling news panel which will allow me to use pictures along with text. I have attached this script to the clip I want to scroll..
code: onClipEvent (load) {
/:minPos = this._y;
//203 here is the height of the mask which covers the clip
/:maxPos = 203-(this._height-/:minPos);
}
onClipEvent (enterFrame) {
/:currentPos = this._y;
if (/:downScoll == "1" && /:currentPos>/:maxPos) {
this._y += 1;
} else if (/:upScoll == "1" && /:currentPos</:minPos) {
this._y -= 1;
}
}
and this to the down scroll button..
code: on (press) {
/:downScroll = "1";
}
on (release, releaseOutside, dragOut) {
/:downScroll = "0";
}
However it won't scroll. Please help it is annoying me.
Plz Help Me, Scrolling Thumbnail Panel
hello boy's/girl's i followed a tutorial on www.gotoandlearn.com, about a scrolling thumbnailpanel, I made it a mouse sensetive slideshow. How futher you drag the mouse from the center, how faster it's move to that direction, ("left/right"). The problem is if you drag out your mouse of the slideshow, it's still moving with the same speed, to the side it was scrolling. when you dragged out your mouse.
What i want is that if you drag out your mouse, that the slideshow loosing his speed, and after like 3 pictures slowly stops, and not if you drag out your mouse, that the slideshow immediatly stop's.
here is the code, i hope some of you can help me??
Code:
stop();
slideshow.onRollOver = slideshowOver;
function slideshowOver() {
this.onEnterFrame = scrollSlideshow;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollSlideshow() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = slideshowOver;
delete this.onEnterFrame;
}
if(slideshow._x >= -40) {
slideshow._x = -40;
}
if(slideshow._x <= -2230) {
slideshow._x = -2230;
}
var xdist = _xmouse - 310
slideshow._x += -xdist / 6;
}
plz help me
Scrolling Thumbnail Panel
I desperately trying to recreate the same kind of Scrolling Thumbnail Panel as described in this tutorial:
http://www.creativecow.net/articles/...ail_panel.html
I went trough this tutorial for several times. Once I even replicated the exactly same settings (the size, the number of thumbnails/buttons and etc). It is not working for me at all.
Please tell me that this tutorial was written for previous version of ActionScript or for previous version of Flash. And the scrolling Thumbnail panel from thiss tutorial simply won't work with latest Flash.
I would appreciate for ANY links to where I could locate another source for Scrolling Thumbnail Panel.
Thanns in advance!
Scrolling Thumbnail Panel...
I'm designing a flash app, which will enable the user to place items of clothing on a model, the items of clothing are movie clips, I have contained these movie clips in a scrolling thumbnail panel, I have used the exact same scrolling panel as in the tutorial on this site gotandlearn. I would just like to know what scripting would I use to get my clothing items (movie clips) within the scrolling panel when clicked on to be placed on my model, and how would I reset that action once done? so the items of clothing can be taken off. Here is the scripting I have used for the scrolling thumbnail panel.
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 89) {
panel._x = 89;
}
if(panel._x <= -751) {
panel._x = -751;
}
var xdist = _xmouse - 250;
panel._x += Math.round(-xdist / 7);
}
Scrolling Thumbnail Panel
My scrolling thumbnail panel work great but I want to ad some extra functionality. I have two arrows above the panel. One for left and one for right.
Once the panel gets all the way to the left I want the left arrows alpha value to be set at 0 and once it begins to scroll right it needs to be visible again.
here is my attempt. Only the left arrows alpha is at 0 since beginning xPos is 0.
ActionScript Code:
mouseX = _xmouse;
mouseY = _ymouse;
menuX = menu._x;
// -----------
function gotoURL(movieNum) {
getURL("javascript:flashURL("+movieNum+");");
}
// ------------
if (mouseX>314) {
diff = (mouseX-314)/40;
}
if (mouseX<313) {
diff = (313-mouseX)/40;
}
if (mouseX<=313 && mouseX>=10 && mouseY>=100 && mouseY<=575 && menuX<=0) {
setProperty("menu", _x, menuX+diff);
}
if (mouseX>=314 && mouseX<=617 && mouseY>=100 && mouseY<=575 && menuX>=-627) {
setProperty("menu", _x, menuX-diff);
}
if (menu._x>=0) {
menu._x = 0;
} else if (menu._x<=-627) {
menu._x = -627;
}
// ---------
gotoAndPlay(1);
// ----------
// Hide Arrows
menu.onEnterFrame = function() {
if (menuX<=0) {
lArrow._alpha = 0;
} else if (menuX>=625) {
rArrow._alpha = 0;
}
};
// show arrows
menu.onEnterFrame = function() {
if (menuX>=1) {
lArrow._alpha = 100;
} else if (menuX<=625) {
rArrow._alpha = 100;
}
};
// -----------
// see all styles button
b5.onPress = function() {
_root.gotoURL(5);
};
Scrolling Thumbnail Panel
I've been trying to create a scrollong thumbnail panel through Flash 8 Professional using a tutorial on www.gotoandlearn.com. I have followed the instructions almost instantly but it won't work for me, can anyone help? I have put the actionscript I used below in case anyone can find a mistake, but I'm almost certain its the same as in the tutorial?
panel.onRollover = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel(){
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax){
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 51.1) {
panel._x = 51.1;
}
if (panel_x <= -2588.8) {
panel._x = -2588.8;
}
var xdist = _xmouse - 350;
panel._x += -xdist / 7;
}
Any help would be greatly appreciated
Scrolling Thumbnail Panel
Hello,
I have a scrolling panel with 5 buttons within the panel. i am trying to make the panel scroll from left to right but it doesn't seem to be working
Here is a sample of what i tried
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root)
function scrollPanel () {
if(_xmouse<b.xMin || _xmouse>b.Max || _ymouse<b.yMin || _ymouse>b.yMax);
this.onRollOver = panelOver;
delete this.onEnterFrame
}
if(panel._x >= -348.2) {
panel._x = -348.2;
}
if(panel._x >=-839.5) {
panel._x = -839.5;
}
var xdist = _xmouse -383;
panel._x += -xdist / 7
Any ideas?
Thanks
Help With Scrolling Panel Loop
Hi,
I doing a flash scrolling Panel creating the buttons dynamic with xml, like the scroll panel made in gotoandlearn "scrolling thumbnail Panel" but creating each button with xml. well this works fine.
but I want to do if a panel that loop if I move the mouse right or left any idea to do this?
I hope some see the code that I have now..
saludos
Carolina
Attach Code
function cargarXML(cargado)
{
if (cargado)
{
xmlNodo = this.firstChild;
imagen = [];
url=[];
total = xmlNodo.childNodes.length;
for (i = 0; i < total; i++)
{
imagen[i] = xmlNodo.childNodes[i].childNodes[0].firstChild.nodeValue;
url[i] = xmlNodo.childNodes[i].childNodes[1].firstChild.nodeValue;
CargarMini();
} // end of for
CargarPrimeraImagen();
}
else
{
trace("algo ha fallado");
} // end if
} // End of the function
function CargarPrimeraImagen()
{
contenedor_mc._alpha = 0;
contenedor_mc.loadMovie(imagen[0], 1);
} // End of the function
function SiguienteImagen()
{
if (posarray < total - 1)
{
contenedor_mc._alpha = 0;
posarray++;
contenedor_mc.loadMovie(imagen[posarray]);
url = url[posarray];
} // end if
} // End of the function
function AnteriorImagen()
{
if (posarray > 0)
{
contenedor_mc._alpha = 0;
posarray--;
contenedor_mc.loadMovie(imagen[posarray]);
url = url[posarray];
} // end if
} // End of the function
function CargarMini()
{
item = album.createEmptyMovieClip(i, i);
numfoto = i;
item.createEmptyMovieClip("contenedor", i);
item._alpha = 100;
item.contenedor.loadMovie(imagen[i], i);
//trace(imagen[i]);
item.id = i;
//txt.text = imagen;
item.onRollOver = function ()
{
//this.unloadMovie(imagen[i], i);
//this.loadMovie(ruta, i);
// trace("over");
this._alpha = 60;
};
item.onRollOut = function ()
{
// trace("out");
//this.unloadMovie(ruta, i);
//this.loadMovie(imagen[i], i);
this._alpha = 100;
};
item.onRelease = function ()
{
numfoto = this.id;
enviar_url();
};
item._x = px;
item._y = py;
px = px + ancho;
columna = columna + 1;
//trace(px);
//trace(px);
//if (columna == num_columnas)
// {
// columna = 0;
// px = px - ancho * num_columnas;
// py = py + alto;
// } // end if
} // End of the function
function enviar_url()
{
posarray = numfoto;
emisor=new LocalConnection();
emisor.send("conectado","probar",(url[numfoto]));
trace(numfoto);
//trace(url);
}
// End of the function
stop();
xmlAlbum = new XML();
xmlAlbum.ignoreWhite = true;
xmlAlbum.onLoad = cargarXML;
xmlAlbum.load("botones.xml");
this.onEnterFrame = function ()
{
{
} // end if
dif = _xmouse - centro._x;
album._x = album._x - dif / 10;
if (album._x > 0)
{
album._x = 0;
//album.duplicateMovieClip();
album._x = 0;
} // end if
//cambiar en este punto los valores -120 a un superior -180 segun aumente los graficos
if (album._x < -122)
{
//album._x = -dif
//album.duplicateMovieClip();
album._x = -122;
} // end if
};
posarray = 0;
px = 0;
py = 0;
ancho = 68;
alto = 70;
columna = 0;
num_columnas = 1;
this.createEmptyMovieClip("album", 100);
album.setMask(mascara);
album._x = 0;
createEmptyMovieClip("nmancha");
this.attachMovie("nmancha", "nmancha", this.getNextHighestDepth(), {_x:611, _y:2});
Scrolling Thumbnail Panel
I am new to flash andI am working on a scrolling thumbnail panel but, I can't figure out how to enlarge each picture on the same scene when you click. Please help me.
Scrolling Thumbnail Panel
I've been trying to create a scrollong thumbnail panel through Flash 8 Professional using a tutorial on www.gotoandlearn.com. I have followed the instructions almost instantly but it won't work for me, can anyone help? I have put the actionscript I used below in case anyone can find a mistake, but I'm almost certain its the same as in the tutorial?
panel.onRollover = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel(){
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax){
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 51.1) {
panel._x = 51.1;
}
if (panel_x <= -2588.8) {
panel._x = -2588.8;
}
var xdist = _xmouse - 350;
panel._x += -xdist / 7;
}
Any help would be greatly appreciated
Scrolling Thumbnail Panel
I'm designing a flash app, which will enable the user to place items of clothing on a model, the items of clothing are movie clips, I have contained these movie clips in a scrolling thumbnail panel, I have used the exact same scrolling panel as in the tutorial on this site gotandlearn. I would just like to know what scripting would I use to get my clothing items (movie clips) within the scrolling panel when clicked on to be placed on my model, and how would I reset that action once done? so the items of clothing can be taken off. Here is the scripting I have used for the scrolling thumbnail panel.
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 89) {
panel._x = 89;
}
if(panel._x <= -751) {
panel._x = -751;
}
var xdist = _xmouse - 250;
panel._x += Math.round(-xdist / 7);
}
Support With Scrolling Panel --> .zip
Hi. Go to <http://dhtmlguy.freeservers.com/> and look at my zip file.
I am struggling like a mug on getting a scrolling thumb panel to work the way I invision it. Can you guys check out my zip and let me know wat the heck. I dabbled about as far as I could go with it and I am stuck.
Everyone is welcome to use and/or modify the soon working version.
Let's make it happen Flash Support Forums!
JntSpecialty
Scrolling Thumbnail Panel
Im am creating a scrolling thumbnail panel and I have found a very good tutorial of what it is that I am looking for at gotoAndLearn.com but I need the thumbnails to be on a loop.
Any suggestions on how to do this would be greatly appreciated.
Cheers,
Nick
Scrolling Thumbnail Panel
My scrolling thumbnail panel work great but I want to ad some extra functionality. I have two arrows above the panel. One for left and one for right.
Once the panel gets all the way to the left I want the left arrows alpha value to be set at 0 and once it begins to scroll right it needs to be visible again.
here is my attempt. Only the left arrows alpha is at 0 since beginning xPos is 0.
ActionScript Code:
mouseX = _xmouse;mouseY = _ymouse;menuX = menu._x;// -----------function gotoURL(movieNum) { getURL("javascript:flashURL("+movieNum+");");}// ------------if (mouseX>314) { diff = (mouseX-314)/40;}if (mouseX<313) { diff = (313-mouseX)/40;}if (mouseX<=313 && mouseX>=10 && mouseY>=100 && mouseY<=575 && menuX<=0) { setProperty("menu", _x, menuX+diff);}if (mouseX>=314 && mouseX<=617 && mouseY>=100 && mouseY<=575 && menuX>=-627) { setProperty("menu", _x, menuX-diff);}if (menu._x>=0) { menu._x = 0;} else if (menu._x<=-627) { menu._x = -627;}// ---------gotoAndPlay(1);// ----------// Hide Arrowsmenu.onEnterFrame = function() { if (menuX<=0) { lArrow._alpha = 0; } else if (menuX>=625) { rArrow._alpha = 0; }};// show arrowsmenu.onEnterFrame = function() { if (menuX>=1) { lArrow._alpha = 100; } else if (menuX<=625) { rArrow._alpha = 100; }};// -----------// see all styles button b5.onPress = function() { _root.gotoURL(5);};
Help With Scrolling Thumbnail Panel
Hi,
I am building a simple flash scrolling thumbnail panel. Which I have done with no problems thanks to gotoandlearn. My problem is that when I click on a button id like it to go to a certain frame in the time line. I’ve been working on this for two days lol and thought I should ask someone who has more experience in Flash.
Thank you so much (in advance)
Ok so this is my code,
panel.onRollOver = panelOver;
function panelOver( ) {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds (_root);
function scrollPanel () {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ï½™mouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >=25.9) {
panel._x = 25.9;
}
if(panel._x <=-4143.4) {
panel._x = -4143.4;
}
var xdist = _xmouse - 250;
panel._x += -xdist /3
;
}
stop();
my button has an instance name of 1_btn. I’m just not sure how to add in the actionscript to tell that button to go to a certain frame on the timeline. Also, I’m not sure where to put in the code…
Sorry I’m very new to flash.
Thank You!!!
Scrolling Panel 360 Degree
Hi,
Would it be possible to have lee's scrolling panel although have the ability to go vertically as well as horizontally like on this site..
http://www.mcdonalds.com.au
(broadband version)
Anyone know how this is done?
Help With Scrolling Thumb Panel
I have found the tutorial that Lee created on this and its exactly what I am looking for except I need for the thumbs to continuously loop.
Any help would be greatly appreciated.
Cheers,
Nick
Scrolling Thumbnail Panel
I'm sure this has been discussed before, but how would you get the scrolling thumbnail panel to retrieve images from an XML file?
XML Scrolling Thumbnail Panel
Hello Everyone,
This is my very first gotoAndLearn() Forum post!
Just wondering if anyone had attempted to use Lee's existing Scrolling Thumbnail Panel Tutorial and load the images dynamically via XML??
I was playing around with it but couldn't seem to get it working properly.
Any help with this would be great!
Lucy
AS 3.0 SCROLLING PANEL CODE
I've been trying to update Lee's scrolling panel code to no avail.
ACTIONSCRIPT 2.0 CODE:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 89) {
panel._x = 89;
}
if(panel._x <= -751) {
panel._x = -751;
}
var xdist = _xmouse - 250;
panel._x += Math.round(-xdist / 7);
}
HERE'S THE ACTIONSCRIPT 3.0 CODE I TRIED USING for the scrolling panel:
panel.addEventListener(MouseEvent.ROLL_OVER, panelOver);
function panelOver() {
this.addEventListener(Event.ENTER_FRAME, scrollPanel);
delete this.addEventListener(MouseEvent.ROLL_OVER);
}
var b = stroke.getBounds(root);
function scrollPanel() {
if(xmouse<b.xMin || xmouse>b.xMax || ymouse<b.yMin || ymouse>b.yMax) {
this.addEventListener(MouseEvent.ROLL_OVER, panelOver);
delete this.addEventListener(Event.ENTER_FRAME);
}
if(panel.x >= 89) {
panel.x = 89;
}
if(panel.x <= -751) {
panel.x = -751;
}
var xdist = xmouse - 250;
panel.x += Math.round(-xdist / 7);
}
Nothing happened with my code. I know alot of people are waiting in the trenches for the updated code. Please assist the Flash community if you know the code to write...merry xmas...
Scrolling Panel Tutorial
Hi,
I've done the scrolling panel tutorial. I want to create 2 buttons. 1 that stops the scrolling from working and another that activates the scrolling.
Can anyoone help me out with this i don't know the code.
Thanks
Scrolling Thumbnail Panel
I have been using the "scrolling thumbnail panel" tutorial on the site, and have got it working fine..
I want to add some actionscript to the buttons so as when the user clicks on one of the thumbnails the photo is displayed above the scrolling panel?
I am a beginner to Action script and I have tried to add some script with no luck...
Any help as to what i can do would be great!
Cheers! :D
Scrolling Thumbnail Panel Please Help
everything works with lee's tutoria on the scrolling thumbnail panel,l as always, but i don t know what to do in order to have a video loading on each button. Please please please help me out.
About The Scrolling Panel Tutorial
About this tutorial, can someone help me how to add easing when the panel reaches its end and eases too when you rollOut the stage. Maybe combining with the Tween Class tutorial would be great. Thanks
Code:
panel.onRollOver = PanelOver;
function PanelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax){
this.onRollOver = PanelOver;
delete this.onEnterFrame;
}
if (panel._x >= 215) {
panel._x = 215;
}
if (panel._x <= 20) {
panel._x = 20;
}
var xdist = _xmouse - 300;
panel._x += -xdist / 7;
}
Xml Driven Scrolling Panel
hi
I went thru lee's tutorial about the scrolling panel.
but im not sure how to convert this so that i can use it with xml driven dynamic loading of thumbnails and photos.
cud anyone pls suggest how i can do it bcoz im a noobie and still in the intial stages of learning
any help will be much appreciated
thx
Scrolling Thumbnail Panel
sorry to trouble you guys but im having a problem with a code im using for autoscroll. I've seen Lees tutorial on this but somehow something is wrong with mine. Im fairly new to flash and i'd really appreciate any help i get.
The Problem is I cant delete an on RollOver event for a movieclip to access my buttons below it. It scrolls fine but the buttons dont seem to work. attached below is the code.
panel_mc.onRollOver = panelOver;
panel_mc.onRollOut = panelStop;
function panelOver () {
delete panel_mc.onRollOver;
panel_mc.onEnterFrame = scrollPanel;}
//start scroll\
function scrollPanel () {
panel_mc._y += -(_ymouse-200)/7;
if (panel_mc._y<=-590) {//bottom limti\
panel_mc._y = -590;
}
if (panel_mc._y>=11) {//top limit\
panel_mc._y = 11;
}
}
//stop scroll\
function panelStop () {
delete panel_mc.onEnterFrame;
panel_mc.onRollOver = panelOver;
}
:roll:
Scrolling Panel Question
Ok, here comes stupid question, but it seems I'm just unable to work this out by myself:
I followed Lee's tutorial on Scrolling thumbnail panel. It works fine, but jeez, how to make the thumbnails/buttons work?
I need it to load some movieclip but it just doesn't react to anything.
Does anybody have some general tip for this?
Thanks a lot!
Code:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 128) {
panel._x = 128;
}
if(panel._x <= -554) {
panel._x = -554;
}
var xdist = _xmouse - 300;
panel._x += -xdist / 7;
}
and let's say the buttons within this panel are called b01, b02, b03 etc.
Help...Scrolling Panel Tutorial
Hey
I need some help with the scrolling panel tutorial from this site, or that used to be available on this site. I had everything working fine with the scrolling panel, but when i tried to load the panel into a _level of a different movie it began acting very strangely.
I'm thinking the problem i am having has to do with the relative position of the scrolling panel movie in respect to the main movie, as far as _xmouse and _ymouse, but not sure.
If you need more information please let me know, btw this is pretty urgent, need to get this working soon.
Thanks in advance
Ben
How Do I Delete The Xml In The Scrolling Panel
Hello again,
i have two buttons. if i click btn 1 gallery 1 loads, when i click btn2 gallery 2 loads. now gallery 2 has not so many pics as gallery 1 but when i scroll to the end i can see some pics of the gallery 1.
does anyone knows how i can delete them?
here is the fla file
http://www.lagrafica.ch/test.zip
many thanks.
Pop Up Windows From Scrolling Panel
I am still pretty new to all this stuff, so apologies if this question is obvious.
I have just completed Lee's tutorial on scrolling panels, and it works brilliantly. Now what I want to do is to be able to click on the images and go to larger images in a pop-up window.
I've seen this all over the place, so I'm sure it can be done....
... I just have no idea how :?
Scrolling Panel (loop)
Hello,
I am trying to use the Scrolling Panel tutorial to create an effect like... http://eu.lee.com/ when you open the page right-click or cntrl-click on the funky lady and select "Summer Collection". You will see a looping set of images. What we like about this is the fact that the bg moves at a different pace than the midground and the mid at a different pace than the foreground.
Issues I have been having. I can get it to loop I can get it to move at different rates. What I am not able to do is get it to loop so that the different areas have returned to their original positions. What i mean by that is if you look closely the fore/mid/bg always begin at the same spot without a strange jump. Also, they don't ever move too far apart. they don't just keep going they are constricted to a specific distance.
If you need clarification on anything I wrote let me know.
j
Scrolling Thumbnail Panel Like This Web
Hello everyone!
I've seen a scrolling thumbnail panel on this web
http://www.asylum.fr
You have to go to the "galerie" button and then , when you scroll it, the thumbnails appears from one side of the browser to the other
I think it's a really cool effect
Could anyone tell me how to do it,or have any source or tutorial to do it??
thanks a lot!
Scrolling With Mousewheel In Actions Panel
I dont know if anyone else has this problem..
when i scroll down in actions panel with my mouse wheel i can go a line at a time, however if i want to scroll up the actions are scrolled a screen at a time. Its getting to be a right pain in the ass, so i was wondering if anyone knew a solution?
Many thanks
[F8] Continuously Scrolling Thumbnail Panel
Hey all,
I am pretty new to actionscript and just finished up a scrolling thumbnail panel using a tutorial. I'm very happy with it except that I would like the images to scroll continuously when the mouse is not over the panel. I don't know enough actionscript to accomplish this by myself. Could someone point me in the right direction? I have attached my flash file.
Thanks
Kyle
Controlling A Scrolling Thumbnail Panel
hi
i have a scrolling thumbnail panel that is controlled by mouseovers. i would like a button outside of the panel to be able to scroll it to a certain point when the button is released and also reduce the amount of the panel that can be scrolled, at least temporarily. this would allow only a few specific thumbnails to be accessed after the button is released. i'm not sure how to go about this, any help would be greatly appreciated.
code for the scrolling panel as it is now:
Code:
/////////scroll panel
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 407) {
panel._x = 407;
}
if(panel._x <= -166.5) {
panel._x = -166.5;
}
var xdist = _xmouse - 575;
panel._x += Math.round(-xdist / 7);
}
Scrolling Thumbnail Panel Problem
Hi,
I made a vertical scrolling thumbnail panel but i have a problem i can't identify. From the index.swf i load gallery.swf inside a holder movie clip (which is in index.swf) and in gallery.swf is scrolling thumnail panel. Problem is that scrolling panel works just fine if you publish gallery.swf separately from index.swf, everything works smoothly like it should but if you publish index.swf then scrolling panel loaded inside it scroll's slowly with halts and not the way it should. I attached source files and i would really appreciate if someone can take a look at this and help me find the problem?
thank you
Dynamic Images Into A Scrolling Panel
Hello
I am trying to create a site for a photogrpaher friend of mine, which features a list of thumbnails of his images which you can scroll along, and when you click on one it loads a bigger image. Kinda like this: (but without the automatic scrolling - this will be controlled by buttons as opposed to mouse position)
http://www.owerko.com/detected.html
I would like to be able to do this with dynamic images so that he can add more images as he takes them. I have read up on loading dynamic images from an xml file etc, but this project is a bit beyond anything I have done before, so dont really know where to start with things like positioning the dynamic image in the scroll etc.
If anyone can offer any help or pointers on this subject it would be much appreciated!
Cheers
Matt
Scrolling Thumbnail Panel Problems
I'm creating a personal portfolio website in flash. the address is
http://homepages.nildram.co.uk/~motiv8/AlexBimpson/AlexBimpson%20New/
On the "photo" page, by clicking on view portfolio a scrolling humbnail gallery appears, however as you can see it moves extremely jerkily.
This seems to be because the "photo" page is a seperate flash movie loaded into the main navigation page, a parent swf file, hence you see the loading animations when you switch pages on the website.
If you access the photo swf file alone the scrollbar seems to work fine. its address is
http://homepages.nildram.co.uk/~motiv8/AlexBimpson/AlexBimpson%20New/flash/photo/photo.swf
the coding for the panel is taken from a video tutorial, and seems to work fine. i have displayed this below
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(panel._x >= 214) {
panel._x = 214;
}
if(panel._x <= -1272) {
panel._x = -1272;
}
var xdist = _xmouse - 384;
panel._x += -xdist / 8;
}
where 'panel' is the mask object used to create the bounding area for the thumbnail panel and 'stroke' is a surrounding outline, hidden as white colour.
Is anyone able to tell me why loading one movie into another is having this effect, and how I go about overcoming this problem?
I've noticed that the panel seems 2 work with the mouse below the thumbnail panel in the parent site, so it all seems a little buggy - im guessing there's something that needs changing in the referencing for the stroke and panel, but as of yet I havent found a solution.
Any help would be greatly appreciated. thanks very much
alex
Edited: 05/07/2007 at 04:36:43 AM by abimpson
Scrolling Thumbnail Panel Problem
Hi,
I made a vertical scrolling thumbnail panel but i have a problem i can't identify. From the index.swf i load gallery.swf inside a holder movie clip (which is in index.swf) and in gallery.swf is scrolling thumnail panel. Problem is that scrolling panel works just fine if you publish gallery.swf separately from index.swf, everything works smoothly like it should but if you publish index.swf then scrolling panel loaded inside it scroll's slowly with halts and not the way it should. I attached SOURCE FILES and i would really appreciate if someone can take a look at this and help me find the problem?
thank you
Scrolling Thumbnail Panel Not Working
Hello, I watched a tutorial at gotoandlearn and when i finished the proyect it doesnt work, I dont know a lot of AS, so thats the problem i add the file to see if anyone can help, i apreciate it.
Thanks a lot
www.ensambleartes.com/varios/galeriajade.fla
Problem With Scrolling Thumbnail Panel
Hi
I'm using the scrolling thumbnail panel that Lee did in ones of his tuts a while back. Now the swf that contains this panel is being called into a main swf. All is working OK apart from this:-
Whenever I have the stroke around the panel (the stroke is a separate movie clip that tells the panel to stop when the user rolls out of it) present the panel stutters and stops working, if I make this stroke movie clip a guide layer then it works fine but the only problem is that the panel doesn't stop scrolling when you roll off the panel strip.
Is there a way of preventing this, or is there a way of stopping the panel from scrolling without using the stroke. I would also like to know why this is happening. It only happens when the swf is called into the main swf, if I run the swf with the panel and stroke on its own its fne.
Thanks
Ricky55
Auto-Scrolling Thumbnail Panel
Hi All,
I created an automatic scrolling thumbnail panel based on lee's tutorial (thank you), however the behavior is a bit erratic. If the panel scrolls too quickly the links don't work, and it's very choppy when the mouse position is on the left of center. This panel is inside a movieclip, inside a swf that loads into another swf (the index).
Any Ideas are welcome.
Thanks in advance
Scrolling Panel Button Question
hello,
i have been modifying the scrolling panel thumbnails for a gallery i want to create. i haven't changed the script, only the appearance. The problem i am having is that i can not get the buttons in the Panel movieclip to be active with an onRelease action. Here is an example of what I want to from the button: Code:
thumb1.onRelease = function() {
loadMovie("../2005/image1.jpg", "square");
};
I am taking the code from a static thumbnail gallery i have and it works fine there but not inside the scrolling panel.
Any thoughts?
Thanks,
Matt
|