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




Trying To Make A "reflection" Of Text Scroller.



Alright guys... So I am trying to make two dynamic scrollers that both scroll off of the same component. Confused??? Ok Imaging that you have a dynamic text box with a sroller component, and you wanted to make a reflection of that scroller on the surface below the scroller, like it was reflecting on a glass table or something. Now that you understand what I am trying to do, is there anyway that anyone knows to scroll both the normal text box, and the reflected text box with the same scroller component? I can get it to scroll one box, but not both. I know this is easy and I am just brain farting about it. Any help would be awesome!
Thanks guys!



FlashKit > Flash Help > Flash ActionScript
Posted on: 02-01-2007, 01:04 AM


View Complete Forum Thread with Replies

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

HELP: Trying To Create A Scroller With Reflection
i'm trying to create a "reflection" to scrolling text.
i'm using a nice little scroller code that works very well on it's own. i thought just duplicating the movie clip and mirroring it would do the trick, but instead only the "reflection" bit is moving up and down, the rest of the items stay put.

if anyone could give me any pointers, or better yet fix the code that would by really really great...
i thought it might be a matter of changing instance names, but then the "reflection" is the same object, just mirrored vertically, so i'm not sure how one should go about doing this...

i'm attaching both the FLA and SWF files...

How Do I Make A Text Scroller?
I downloaded an example of a text scroller and in the action scripting i get lost...basically how do I define the telltarget function??

Preload Make Wather Reflection
Hello friends.

i am making a preload with a mask that works fine.

Now i want to make the exactly object reflect, at the same time it load's.

It is possible?

Were it is the preload.as

Code:
var preloader:MovieClip;
// The Movieclip
var numero:Number = new Number(0);
// Var numero that begins with zero
function Init() {
// Func Init
_root.stop();
// Stop de Movive
onEnterFrame = function () {
// Exe. the function
var bl:Number = _root.getBytesLoaded();
// bl recives the loaded bytes
var bt:Number = _root.getBytesTotal();
// bt recives the total butes
if (bl>4 && bt>4 && bl>=bt) {
// If the bytes loaded > then 4 and the total bytes > then 4 and loaded bytes > total bytes
// Se os bytes carregados forem maior que 4 e os bytes totais forem maior que 4 e bytes carregados forem maior que bytes totais
delete onEnterFrame;
// delete the envent EnterFrame
//_root.nextFrame();
_root.gotoAndStop(4);
// goto do Frame 4 and Stop
preloader.unloadMovie();
// Clear Movieclip from the cash
} else {
//
numero = Math.round(bl/bt*100);
//the var numero recives de round loaded bytes divided by the total bytes and * by 100
// A variável numero vai receber o arredondamento dos bytes carregados divididos pelos bytes total multiplicados por 100
preloader.pct = numero+'%';
// in the fiel "pct" recives de var numero and %
// O campo dinâmico vai receber a variável numero mais o caracter %
preloader.barra._yscale = bl*.18;
//first bar that is masked by a three
preloader.barra2._yscale = bl*.18 ;
//Second bar the reflex

//trace(numero);
//trace(getBytesLoaded)
// The size of the bar will be the numero value
// O tamanho da barra será o valor da variável número
}
};
}
Init();

How To Make Reflection Of A Movie Clip?
Suppose if i have a movie clip of a ball moving...is it possible to make a reflection of that below it? the reflection should also have the motion...

How Can I Make A Text Box With A Scroller? 2 Questions
Hey
I need to know how to make a text box that has a scroll bar with it. Also If i convert to symbol> movie clip..how can i make a button load that symbol on a certain part of the stage?

Thanks

Cant Work Out How To Make Scroller Use Dynamic Text
scroller.fla

I used a tutorial on here that let me have my own scroller with buttons and a scrollbar and could scroll a movie clip that i can put whatever i like in, which is great but what i would like is for it to scroll dynamic text from a text.txt file so that it is easy to update for someone who is not familiar with flash.

the tutorial stated that it would not scroll text but he also stated he had modified his scroller from one that could scroll text (i assume dynamic). he gave directions on how to find the other tutorial however the site it was from no longer exists. can anybody help me?

Alex

Text Scroller Download Can You Make Smoother Scrol
If I give you this text scroller download can you make it scroll smoother? Thats the challenge I havent seen one roll smoothe yet. Can you apply some code to make it scrol in small pixel amounts and speed as well? So that it rolls up or down the screen the same as movie words scrol on the TV screen?

http://www.geocities.com/jaffasoft2/texscroller.fla

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Dynamic Text Box Reflection
Hi, guys,

Is it possible to make a dynamic textbox reflection. I have a preloader with a danymic textbox with percetage loaded. To make it more interesting, it moves from left to rigth side of the screen. And to make it even more "cool", i want to add a reflection. Is this possible?

THX for your help

Dynamic Text Box Reflection
Hi, guys,

Is it possible to make a dynamic textbox reflection? I have a preloader with a danymic textbox with percetage loaded. To make it more interesting, it moves from left to rigth side of the screen. And to make it even more "cool", i want to add a reflection. Is this possible?

THX for your help

Input Text Reflection Effect
Hey all. I'm trying to make a reflection of an input text field and it's all looking pretty good except for one small snag...

When the user types into the actual text field and reaches the right-hand side of the input, the text jogs to the left to allow for more typing. I am having a hard time replicating this effect in the "reflection" box. In my reflection box, the text just stops )actually, it probably keeps on going, but it doesn't scroll or jog to match the actual input box.

Any ideas on how to force the reflection to match the "jog" behavior?

Thanks!

Scroll Reflection Text Position
Hey all... I have two dynamic text boxes, each in a separate movie-clip that loads the same external .txt file with .CSS formatting. I have them positioned as a top movie-clip with scroll-bars and a bottom movie-clip that is flipped upside-down. (Picture a scrolling text movie-clip with it's reflection below it - that's what I'm doing).

I currently have the top scrolling text-box (mc) working fine. And the bottom text-box (mc reflection) is positioned and has a gradient mask (so, it looks like a reflection). What I want to do is when a viewer interacts with the scroll-bars send the _y position of the top scrolling mc to reposition the reflection mc's _y position.

If you think about it ... It will look really cool. My problem is how to continuously update the event. Would you use an event listener for that - and if so would you attach the listener to the scroll-bars or the _y position of the top mc? Or, would you recommend using some other method.

Any help would be great. Thanks!

Use Lee's Reflection Class For A Mc Contains A Text Field
Hello guyz...

Lee's Reflection class is great.. but i have a doubt.. How can i use this class on a movie clip contains a dynamci textfield.. ?

Have any suggests ?

thanks in advance

bye

Text Scroller Help - Scroller Won't Scroll Full Length Of Text?
I have a text scroller that calls for a external text file. I have 16 numbered items in the .txt file but only 12 items will scroll. Why is this and how do I fix it? Also, is there any way to format text in the .txt file so that it appears formatted in flash? Right now there is a bunch of spaces between the numbered items. Thanks anyone!!

Convert Movieclip Scroller To Dynamic Text Scroller
I have code I borrowed that is set up to scroll a movie clip image. However, it doesn't work well if I replace the graphics with a text box as the scrolling becomes "jerky" as I think there is too much information for it to process with the complexity of the text. So I was hoping to change the scrolling content from a movie clip image with text to a dynamic textbox. But it will not function when I do that change. In this currrent setup, the movieclip instance name is "contentmain". I tried naming the instance of the dynamic textbox with that name, but no text shows up next to the scroller when I play the movie.

Here's the code:
scrolling = function () {

var scrollHeight:Number = scrollTrac._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrac._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrac._x;
var top:Number = scrollTrac._y;
var right:Number = scrollTrac._x;
var bottom:Number = scrollTrac._height-scrollFaceHeight+scrollTrac._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

// Setup easing event
contentMain.desiredX = contentMain._y;
contentMain.onEnterFrame = function() {
this._y -= (this._y - this.desiredX) / 3;
};

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain.desiredX = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};


btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=left) {
scrollFace._x = left;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = left;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=right) {
scrollFace._x = right;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = right;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();

Any ideas?

Thanks,
Dave

Convert Movieclip Scroller To Dynamic Text Scroller
I have code I borrowed that is set up to scroll a movie clip image. However, it doesn't work well if I replace the graphics with a text box as the scrolling becomes "jerky" as I think there is too much information for it to process with the complexity of the text. So I was hoping to change the scrolling content from a movie clip image with text to a dynamic textbox. But it will not function when I do that change. In this currrent setup, the movieclip instance name is "contentmain". I tried naming the instance of the dynamic textbox with that name, but no text shows up next to the scroller when I play the movie.

Here's the code:
scrolling = function () {

var scrollHeight:Number = scrollTrac._height;
var contentHeight:Number = contentMain._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = maskedView._height;
var initPosition:Number = scrollFace._y=scrollTrac._y;
var initContentPos:Number = contentMain._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrac._x;
var top:Number = scrollTrac._y;
var right:Number = scrollTrac._x;
var bottom:Number = scrollTrac._height-scrollFaceHeight+scrollTrac._y;
var dy:Number = 0;
var speed:Number = 10;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

// Setup easing event
contentMain.desiredX = contentMain._y;
contentMain.onEnterFrame = function() {
this._y -= (this._y - this.desiredX) / 3;
};

scrollFace.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
contentMain.desiredX = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollFace.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};


btnUp.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x+speed<maskedView._x) {
if (scrollFace._x<=left) {
scrollFace._x = left;
} else {
scrollFace._x -= speed/moveVal;
}
contentMain._x += speed;
} else {
scrollFace._x = left;
contentMain._x = maskedView._x;
delete this.onEnterFrame;
}
};
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (contentMain._x-speed>finalContentPos) {
if (scrollFace._x>=right) {
scrollFace._x = right;
} else {
scrollFace._x += speed/moveVal;
}
contentMain._x -= speed;
} else {
scrollFace._x = right;
contentMain._x = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};

if (contentHeight<maskHeight) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();

Any ideas?

Thanks,
Dave

Text Scroller With Image With Mouse Scroller
Hi to all,
I have problem with flash. that i want to creat dynamic text & image scroller in scroller by creating custom scroller (not inbuilt component) That scroller i can scroll with help of mouse's scroller. (the mouse's scroller & image must be include in to the scroller box)
Help me !
Help me !
Reply me fast if u have solution for it!!!!

Regards,
Samual

How Do I Make A Scroller Like This?
I've downloaded a mizillion scroller .swfs and for some reason, can't make one simple like this.

Here's the example:

http://www.thewreckers.com/site/index.html

the news scroller on left. It's real nice!



what keeps happening is when I replace the middle part of "slider", the part that scrolls up and down, it stretches my image to fill the entire area of the scrollbar, depending on how much text is in the field. I understand why it does this, because it's normally just a rect w/color in here, so stretching it won't look bad.

any help will be much appreciated....thanks.

Jed

How Do I Make A Horizontal Scroller?
I have 8 vertical menus on the stage but won't all fit, so I want to scroll them using a horizontal scroller so that the user has his/her choice of what they want to select from the menu(s). Can someone tell me how to make a horizontal scroller? Thanks

How Do I Make This Scroller Work Within An MC?
How can you make this scroller work within a movie clip? (one from the movie section of this site)

Smooth Scroller

Many thanks

Donna

How To Make A Scroller Bar In Swish
hi freinds can any one help me that how can i make a scroller bar in
swish i have seen it in some site but i dont know how to make it
thanks for helping

How To Make Image Scroller
i need to make a an image scroller within a screen ,id know how to make the scroller itself but id like instead of the images being stored within the flash file, to be referenced outside of it so there easier to change/add/delete from the scroll.. is there any way i could do this?

How Do You Make A Smooth Scroller?
Hi guys... I've got a quick question. Is there a good tutorial site where I can make my own, smooth scroller? The way it works is when you click on the bar and drag down the content it should move smoothly unlike the regular flash built in scrollbar. Another question is how could I incorporate pictures into that?

Thank you.

Possible To Make A Diagonal Flash Scroller?
Hello, Im trying to learn how to make a website on flash, and I was wondering is it possible to make a scroller which is diagonal, using flash or maybe scroll and image with text diagonally, I have a pic below to show you what I mean, because Im curious as I want to try something different, much help will be very appreciated, Shyam

Link to example:http://farm2.static.flickr.com/1399/...78b9592493.jpg

How To Make An Image Scroller With Up And Down Buttons
Hello to you all,
Would like to know if someone could point me in the right direction and tell me how to make this www.ambroisetezenas.com ("commissions"),im sure it's very simple or i at least hope so.
If you look at the link i have given and go int to the right hand menu ' commissions ' you will find a selection of images that move up and down ... i would like to do the same but with two buttons up and down.Any help would be more than welcome.

How To Make Endless Thumbnail Scroller
Hello,
I am new at this forum and i need help about one of kirupa tutorials

http://www.kirupa.com/developer/mx2004/thumbnails.htm

I used this tutorial and it works pefectly for my goals but now i need to make the scroller
looping. I did it for the big pictures using buttons next and previous but i cannot do when i reach the last thumbnail to show the first one and to make the scroller continue.

I hope i explained this correctly and i`ll be glad if someone can halp me.

Thanks

Polita

How To Make Scroller That Could Scroll Pictures?
Hmmm...... HOw do you guys make scrollers that could scroll pictures??? Wat is the code for that??

How To Make My Thumbnail Scroller Work?
Hello everyone,
i am very new at this forum. I need some help from some of you flash experts about this particular tutorial listed below:
http://www.kirupa.com/developer/mx2004/thumbnails.htm
I am currently using Flash MX. Ive had a hard time opening the source file so I tried to go back to the previous tutorial listed below: http://www.kirupa.com/developer/mx20...otogallery.htm and use it as the source file to work on this tutorial. The end result was that the main photo viewer window was working fine with "prev" and "next" button but the thumbnails viewer window was empty.
Can someone provide me some advice on how to make it work or provide me with source file for Flash MX. Thank you in advance.

Juliana

Make An Thumbnail Scroller Loop?
I have this scroller of thumbnail images, but it stops scrolling when the images run out!

is there a way to make it so it loops around and around???

here is the code i used to make it scroll,


Code:
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(hit_left._x+40)) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(target_mc._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

HELP- Need To Make Xml Scroller Appear Visible On MouseOver
Hi,

I have used the xml gallery tutorial and have images scrolling at the bottom and playing at the top.

Does any1 know how to make the bottom scroller visible only when the mouse is over? I tried this code:
/////////////////////////////////////////////
scroller.container._visible = true;
scroller.container.onRollOver = function()
{
scroller.container._visible = true;
}
scroller.onRollOut = function()
{
scroller.container._visible = false;
}
/////////////////////////////////////////////

When the file loads, the scroller images still come up but when I put my mouse over, they dissappear.

I am trying to make the scroller be invisible when the file loads and only when my mouse is over it appears.

I think because on the Kirupa tutorial, the scroller already has a function which maybe causing the problem. I am not sure.

Can any1 help? please????

How To Make Image Scroller In Flash? Pls. Help
any one upder! who have good heart.. im a newbies in flash.. i have this problem.. now i studying how make a image scroller.. i try,but i can't do it.. tel i got this idea to get sum help uphere.. maybe there sum one uphere who know's how to make image scroller in flash..

thanx in advance!!.. God bless!! & more power.

How To Make Scroller Stop When Menu Is Active
hi,

in my flash file i use a movieclip that scrolls images controlled by the mouse. there is a variable speed, and if it set to 0, the scroller is stopped.

so far it works fine.
but i also have a dropdown menu which overlaps the scroll area when it is unfolded. and so, if i want to navigate, the images keep quickly scrolling around, which is rather annoying.
the menu is inside a movie clip.

i think i'll have to set the speed variable to 0 when the mouse rolls over the space that the menu occupies.

can you tell me if it works that way and how i have to actionscript that?

thanks a lot
jo

[CS3] Trying Make Flash Scroller That Reads From XML Work
I've attached the code for download.

Essentially what I am trying to create is a flash program that will read from an XML file AND automatically scroll downward. Once it hits the bottom it will repeat from the top of it seamlessly.

It does read the XML so YAY on that...

How To Make Scroller Stop When Menu Is Active
hi,

in my flash file i use a movieclip that scrolls images controlled by the mouse. there is a variable speed, and if it set to 0, the scroller is stopped.

so far it works fine.
but i also have a dropdown menu which overlaps the scroll area when it is unfolded. and so, if i want to navigate, the images keep quickly scrolling around, which is rather annoying.
the menu is inside a movie clip.

i think i'll have to set the speed variable to 0 when the mouse rolls over the space that the menu occupies.

can you tell me if it works that way and how i have to actionscript that?

thanks a lot
jo

I Need To Make This Txt Scroller Move Onmouseover, Not Onclick - Help Needed
I have a text scroll box that is moved by an up and down arrow, but you have to actually click it for it to scroll. I'm wanting to set it up to where you just mouse over the arrow and it scrolls automatically. I just downloaded this text scroller, so I'm not sure what to edit in the script. This is what the buttons currently say:

up arrow:

onClipEvent (enterFrame) {
if (_parent.lPressed=="1") {
_parent.gotoAndStop(_parent._currentframe-1);
}
}


down arrow:

onClipEvent (enterFrame) {
if (_parent.lPressed=="true") {
_parent.gotoAndStop(_parent._currentframe+1);
}
}

any suggestions?

It's static text that is moving as well as a layer of graphics. Here's a screenshot of the scrolling movieclip if that helps at all: http://www.nlgraphics.com/screenshot.jpg

Can I modify the code that I currently have in place, or would something totally different have to be put together?

Any help is appreciated.

How Do I Make A Xml Driven Thumbnail Scroller Repeat(loop)
Hey guys -

Please see the attached files to figure this one out-

I am creating a thumbnail scroller and I have everything set to work. The last final issue I'm having is this:


The scroller displays 25 items.
8 at a time.

When you page left/page right it scrolls to the next(or previous) 8 thumbs in the list.

This is what we want to happen:
Once the final (25th) thumb is reached it starts over on the first thumb again and we are back at 1. So that it becomes an endless loop.


// What I've Tried ///////////////////////////////
I tried duplicateMovieClip() so that I could have a second one at the end and then continue to exchange x values but it won't work because I have MCs that are being attached dynamically

///////////////////////////////////////////

Notes: I have included the xml document as a txt so that I could upload it. please convert back to xml when testing.

[F8] Flash Xml Image Scroller Make Movieclip Link
hi i've not used flash for a long time.

i've been using the flash tutorials on here to create an image scroller that has the data read in by xml.

the problem i'm having is attaching an attribute to the url of a movieclip.
i can't figure out how to attach it to the movieclip.

Code:
<images>
<pic>
<image>http://www.kirupa.com/developer/mx2004/pg/kresge.jpg</image>
<caption>Kresge</caption>
<thumbnail function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
link = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails[i].strURL.push = xmlNode.childNodes[i].childNodes[2].attributes.url;
trace (thumbnails[i].attributes.url); //this returns undefined
is i trace the line above i get all the values out of that attributes
thumbnails_fn(i);


}

} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");

function thumbNailScroller() {

// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {

if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {

if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {

thumbnail_mc._x -= scroll_speed;

} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {

thumbnail_mc._x += scroll_speed;

}

} else {

delete tscroller.onEnterFrame;

}

};

}




function thumbnails_fn(k) {

thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.link = k
//this is where i want to attach the link to the movieclips please help!
target_mc.onRelease = function() {


/*p = this.pictureValue-1;
nextImage();*/

};
target_mc.onRollOver = function() {

this._alpha = 50;
thumbNailScroller();

};
target_mc.onRollOut = function() {

this._alpha = 100;
url="http://wwww.google.com">http://www.kirupa.com/developer/mx2004/pg/kresge_sm.jpg</thumbnail>
</pic>
</images>


any help or guidance is appreciated, just point me in the right direction

Make A Standard Thumb Scroller / Scroll Infinitely
I've got a standard horizontal thumbnail scroller and want to have it scroll infinitely. So when it reaches the last one in the list from the xml it continues to show thumbnails starting over with the first... alternately when it starts and a user chooses to scroll in the other direction it shows the last one and progresses toward the first...

hopefully that makes sense.

I load the thumbs via xml here:

PHP Code:



function urlLoaded(event:Event):void {    xml = XML(event.target.data);    xmlList = xml.children();    for (var i:int=0; i < xmlList.length(); i++) {        var thumb:Thumbnail = new Thumbnail(xmlList[i].url);        arrayThumb.push(thumb);        thumbNail.push(arrayThumb);        arrayThumb[i].y = 0;        arrayThumb[i].x = 10+(150*i);         photoContainer.addChild(thumb);            }}




then when one of my arrows to navigate left or right, i check to see if reaches the end and if it does I bounce it back to 0. which is what the onComplete event calls to and passes the max positions, in the checkPos function if the argument is true it Tweens all back to 0, but I'd rather just continue looping on through...

PHP Code:



function moveRight(e:MouseEvent):void{        var maxRight:Number = - photoContainer.width + stage.stageWidth;        if(photoContainer.x < maxRight){                 // do nada        }else{        Tweener.addTween(photoContainer,{x:photoContainer.x-300, transition:"easeInOutBack", time:1.5, onComplete:checkPos, onCompleteParams:[maxLeft,maxRight]});    }}




any suggestions

How To Make Kirupa's Infinite Scroller Advance Via Clicking
Hello all,

I have a question...Of course...I want to make Kirupa's infinite scroller advance by clicking an arrow instead of on mouse movement. Does anyone know if this is possible? The tutorial is here...
http://www.kirupa.com/developer/mx/infinite.htm

Essentially I want a line of images to be advanced by the clicking of a button (arrow). BUT I want the images to be back to back so you can see a couple at a time.

THANKS!

Image Scroller That Doesn't Make You Motion Sick
Hi there, I hope someone can help me and my flash handicapp...so I'm trying to make a portfolio website and I want to have a dynamic horizontal image scroller that is stationary until you click on an image. The image that is clicked goes to the center and with another click enlarges. When the enlarged picture is clicked it goes back into the image scroller.
I was inspired by the website at: www.sorenhald.com,

I really don't like the tutorials that I've found and I need some serious help getting started. Please if anyone knows what I'm talking about, can you help direct me or give me some insight. Thank you!

Trying To Make The XML Gallery Resize The Main Image But Keep The Thumbnail Scroller
I've looked at the resize files but haven't had any success implementing them in the kirupa XML gallery with scrollable thumbnails. If anyone has any input
on how to do this I would greatly appreciate it.

Make Xml Infinite Scroller Load/unload Images In And Out As Needed
I have a xml infinite scroller that currently loads all images all at the same time. It works great but I will need to load about 20 to 30 images that will scroll by and that will cause processing problems.

I am wondering if it would be possible to make the xml infinite scroller only load the images that are in view and then unload them in and out as the scoll by? I have no idea if this is possible but I think many flashers could make use of it.

TEXT CHANGING, When I Copy And Paste Text Scroller, And Add New Text......?
here's the problem:

I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.

I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.

If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.

I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.

This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.

Let me know..and thank you all so much.

Copy And Paste Of TEXT SCROLLER, CHANGING TEXT, To Stay For Each Section......?
here's the problem:

I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.

I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.

If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.

I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.

This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.

Let me know..and thank you all so much.

Loss Of Text Formatting When Using Dynamic Text Field & Scroller
Hi all,

Using MX...

Another small problemo im having is when i format text in my dynamic text field and attch the scroller component to it, in preview mode i lose all the text format and it goes to the first text format it encounters and uses that for everything else in the dynamic text box.

Im not actually loading any text into the dynamic text box, im just using it with static text, so i can use the scroller component.(as i understand it, you can only attach the scroller component to a dynamic text box ??)

Why am i losing my text format AND is there a better way to have a scrolling text field when i just want to use static text...???

Thanks guys..hope thats not too confusing

Cheers

Dynamic Text Scroller (text Crawler?) NOT WORKING?
Hi, I am trying to make a movie that gets text from an external text file, and then scrolls it horizontally across the screen. I made a function that takes the object (movie clip with text) and moves it across the screen. it works fine except if the text is more than the width of the text field, i get this nasty trailing effect. it really sucks!

does anyone know a good way to do this? i would also like to be able to have mulitple texts, following eachother, and then looping to start over.

any info would be greatly appriciated!

-matt

Vertical Text Scroller That Works From Dynamic Text.
found this which is handy:

http://www.scriptocean.com/

but does not allow for external txt files to feed the info to it.

can anyone help me with a version of this ticker but with the use of an external txt file.

I want the file to link to a txt or xml file that can feed the swf file animation.

Thanks

Vertical Text Scroller That Works From Dynamic Text.
Vertical Text scroller that works from dynamic text.
found this which is handy:

http://www.scriptocean.com/

but does not allow for external txt files to feed the info to it.

can anyone help me with a version of this ticker but with the use of an external txt file.

I want the file to link to a txt or xml file that can feed the swf file animation.

Thanks

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