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








Add Buttons To Text Scroller


I love this text scroller, but I need to add up and down buttons to it. I'm not sure what to put on the buttons to make it activate the scroll code. Can someone help?

http://www.actionscript.org/showMovie.php?id=571

Thanks!




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 03-14-2005, 11:47 AM


View Complete Forum Thread with Replies

Sponsored Links:

Add Buttons To Text Scroller?
I love this text scroller, but I need to add up and down buttons to it. I'm not sure what code to use on the buttons to activate the scroll. Can you guys help?

http://www.actionscript.org/showMovie.php?id=571

Thanks!

View Replies !    View Related
Add Buttons To Text Scroller?
This text scroller is great, but I need to add up and down buttons to it. I was wondering how I could do that. I'm not sure what code to use on the buttons.

http://www.actionscript.org/showMovie.php?id=571

Thanks!

View Replies !    View Related
Using Buttons As A Text Scroller
how do i create buttons to scroll text like in this website here:

www.limmy.com

thanks alot!!!

View Replies !    View Related
Add Buttons To Text Scroller
I love this text scroller, but I need to add up and down buttons to it. I'm not sure what to put on the buttons to make it activate the scroll code. Can someone help?

http://www.actionscript.org/showMovie.php?id=571

Thanks!

View Replies !    View Related
Using Buttons As A Text Scroller
how do i create buttons to scroll text like in this website here:

www.limmy.com

thanks alot!!!

View Replies !    View Related
Add Buttons To Text Scroller?
I love this text scroller, but I need to add up and down buttons to it. I'm not sure what scripts to add to the buttons to get the scroll to work. What should I do?

http://www.actionscript.org/showMovie.php?id=571

Thanks!

View Replies !    View Related
Text Scroller With Dynamic Buttons...
Hi all,
Newbie to the forum, sp excuse any vagueness. I'm trying to construct a text scroller that is populated by links that refer to an external file eg a PDF. I know how to do a standard text scroller, dynamically fed etc, but I am lost now trying to solve this one.

Any help would be greatly appreciated. FYI, it is for a cd based product brochure with the PDF's containing the product info.

Hope this is clear enough & thanks in advance.

The Crate

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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!!

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Buttons In A Scroller
I've borrowed a scroller that follows the mouse. When I put buttons in the movie clip, they don't work. Why? I've attached the FLA

View Replies !    View Related
Buttons Within A Scroller....?
hi!

can you have buttons that operate with a "on release" function within a scroller???

View Replies !    View Related
Buttons Within A Scroller...?
hi!

just wondering, can you have buttons with a "on release" function inside of scrollers???

View Replies !    View Related
Scroller With Buttons
Does anybody recommend a downloadable scroller...all i want is one with the up and down arrow below the scrollable movie??

Thanks

View Replies !    View Related
Scroller Without Any Buttons?
I want a scroller with only the scrollbar and without the up- and downbuttons.

I was thinking something like this:
http://www.prefad.com/

Can anyone help me?

View Replies !    View Related
Scroller W/ Buttons Inside
I am working on a project and I need to have a left to right scroll bar with active buttons inside that will show an image in the over state....I do not know how to make a scroll bar and all the tutorials i found were on text and up down
dave

View Replies !    View Related
My Scroller Buttons HELP (IF Commands)
Im making a scolling menu in flash 5 for my affiliates section of my new page. Im having trouble getting the movie clip containing the affiliate's banners to slide. To give you move of an idea heres what ive got so far http://www.prezix.com/rcvault/index.html
Near the bottom youll see the two arrows, left and right, I want to make thoe button scroll the movie clip that says "ad" this movie clip instance is named "_root.ads" and the variable "_root.move" is changed on the press and release of the two buttons. The variable changes ok as you can see on that page however the "ad" movie clip doesnt move.
Heres my scripting:

onClipEvent (mouseDown) {
if (_root.move = "left") {
_root.ads._x = _root.ads._x - 2;
if (_root.move = "right") {
_root.ads._x = _root.ads._x + 2;
} else if (_root.move = "none") {
_root.move = "none";
}
}
}


PLEASE HELP ASAP!!! THANKS IN ADVANCE!

View Replies !    View Related
Dynamic Buttons Need Scroller?
Peepz,

I have the following script at frame 1:


Code:
stop ();

// init LoadVars Object
lv = new loadVars();

// define onLoad Callback
lv.onLoad = onLoadCallBack;

// send and load variables
lv.load("*********/test/index.php?" + new Date());

// onLoad Callback
function onLoadCallBack(succes)
{
// if succes
if(succes)
{
// trace variables
trace(this.title);
gotoAndPlay (2);


}
else
{
// loading failed
trace("Loading Error!!");
}
}



Frame 2:


Code:
stop();

titleArray = lv.title.split("|||");
urlArray = lv.url.split("|||");

myTitleArray = titleArray;
myUrlArray = urlArray

trace (myTitleArray);
trace (myUrlArray);

this.createEmptyMovieClip("e_mc", 1);
for (var i = 0; i < myTitleArray.length-1; i++) {
var temp_mc = e_mc.attachMovie("button", "b" + i, i);
temp_mc.i = i;
temp_mc._y = i * 28;
temp_mc.btn_txt.text = myTitleArray[i];



temp_mc.onRollOver = function()
{
this.mcRollOver.gotoAndPlay(2);
};

temp_mc.onRollOut = function()
{
this.mcRollOver.gotoAndPlay(1);
};
}
}



Now i want a scroller for this, but i have a few preferences:

1. It want to scroll the movielips on integers (so they don't become blurry)
2. i prefer only a slider but if its to dificult only up and down arrows are ok
3. scrolling embedded font wil not work for me (they are always blurry) but if someone has a solution for this it will be very nice
4. easing woud be great but it's not a pre

i've seen alot af different tutorials but i can't get it work, i hope that some flashkitters will help me out

at last i want to say i'm not a very good scripter so code comments are welcome

THnx already for all your help!

View Replies !    View Related
Horizontal Scroller With Buttons
Hey

I'am trying to build something like this scroller

http://room.se/
(go to furniture and look at the image scroller at the bottom). I just want to learn how to build the scroller and not the text that comes up, so if anyone know a good tutorial or can do an example file I would be very happy

/H2o

View Replies !    View Related
Scroller To Scroll Buttons...
I've searched and all I've found is people saying you could with the ScrollPane and a movie, but that's about it. No directions or suggestions. Right now, I have the ScrollBar Component just scrolling text, but eventually, I'll want that text to be different buttons to choose from. Any suggestions or links to Tutorials would be great...

View Replies !    View Related
Scroller For Buttons With Easing
I'm have a lot of buttons, so I wanted to use a drag scoller with easing to scroll through them. I checked out the action script on a text scroller tut on flashkit. My scroller works superbly. However, the buttons don't work. If I take the script out, it won't scroll, but the buttons work. I've been pulling my hair out for 2 days!!!

I've attached the file. Can any one help?

View Replies !    View Related
Dynamic Buttons Need Scroller?
Peepz,

I have the following script at frame 1:


Code:
stop ();

// init LoadVars Object
lv = new loadVars();

// define onLoad Callback
lv.onLoad = onLoadCallBack;

// send and load variables
lv.load("*********/test/index.php?" + new Date());

// onLoad Callback
function onLoadCallBack(succes)
{
// if succes
if(succes)
{
// trace variables
trace(this.title);
gotoAndPlay (2);


}
else
{
// loading failed
trace("Loading Error!!");
}
}

Frame 2:


Code:
stop();

titleArray = lv.title.split("|||");
urlArray = lv.url.split("|||");

myTitleArray = titleArray;
myUrlArray = urlArray

trace (myTitleArray);
trace (myUrlArray);

this.createEmptyMovieClip("e_mc", 1);
for (var i = 0; i < myTitleArray.length-1; i++) {
var temp_mc = e_mc.attachMovie("button", "b" + i, i);
temp_mc.i = i;
temp_mc._y = i * 28;
temp_mc.btn_txt.text = myTitleArray[i];



temp_mc.onRollOver = function()
{
this.mcRollOver.gotoAndPlay(2);
};

temp_mc.onRollOut = function()
{
this.mcRollOver.gotoAndPlay(1);
};
}
}

Now i want a scroller for this, but i have a few preferences:

1. It want to scroll the movielips on integers (so they don't become blurry)
2. i prefer only a slider but if its to dificult only up and down arrows are ok
3. scrolling embedded font wil not work for me (they are always blurry) but if someone has a solution for this it will be very nice
4. easing woud be great but it's not a pre

i've seen alot af different tutorials but i can't get it work, i hope that some ultrashockers will help me out

at last i want to say i'm not a very good scripter so code comments are welcome

THnx already for all your help!

View Replies !    View Related
Creating Scroller Buttons
Hello there,

Firstly, I would like to send my thanks to those who helped me in another topic in the Flash Support Forum with regard to creating a scroller using the UIscroller.

Now, I would like to customize the scroller by using some buttons that I myself have made, instead of using the UIscroller. I've uploaded a screen shot with the area I would like to be scrollable highlighted in red. The image can be viewed by clicking the following: http://i116.photobucket.com/albums/o20/coxdabd/PresenterProfiles.gif

I'd be very grateful if anyone could help.

Regards,

Kristopher (UK).

View Replies !    View Related
Endless Scroller With Buttons
Hey

I've been trying to do a scroller like this:
www.room.se
(click furniture)

The only problem is that i dont know squat about action script, so thats why i'm turn to you guys. Ive done the http://www.kirupa.com/developer/mx/infinite.htm tutorial, so what i want is basiclly no mouse function, only buttons that takes me left/right like the page above. I would be very greatful for any help.

Thanks in advance

View Replies !    View Related
Next/Back Buttons With Scroller
Hi!
I am looking for an added next back function to add to the individual button scrolling in this movie clip:

http://www.czmandesign.com/slider

Oviously the next/back in the link are inactive. If there is a generic script for a series of button instances that would go next and back when on a given frame please let me know. I also know there are many ways to get this sliding effect, so if anyone has any tutorials of others that may be more useful please let me know. I am limited in my flash experience and skill although I would still like the function of externally loaded images. The source files for my project so far can be found here in the zip file: http://www.czmandesign.com/sliderfiles

Any help would be greatly appreciated, or any other ideas of how i could pull off this "google" type navigation with slider integrated.
Thanks

View Replies !    View Related
Need Buttons For Image Scroller
Thanks Kirupa for such a great image scroller tutorial, wow it is great and helped me a lot. I am learning.

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

Is there a version of this photo gallery that will use next/previous buttons to advance the thumbnails of the image scroller instead of the hovering option? I am trying to do it, but having trouble, would be great to see how this is done.

Thanks
Geek Girl

View Replies !    View Related
Endless Scroller With Buttons
Hey

I've been trying to do a scroller like this:
www.room.se
(click furniture)

The only problem is that i dont know squat about action script, so thats why i'm turn to you guys. Ive done the http://www.kirupa.com/developer/mx/infinite.htm tutorial, so what i want is basiclly no mouse function, only buttons that takes me left/right like the page above. I would be very greatful for any help.

Thanks in advance

View Replies !    View Related
Dynamic Buttons Need Scroller?
Peepz,

I have the following script at frame 1:


Code:
stop ();

// init LoadVars Object
lv = new loadVars();

// define onLoad Callback
lv.onLoad = onLoadCallBack;

// send and load variables
lv.load("*********/test/index.php?" + new Date());

// onLoad Callback
function onLoadCallBack(succes)
{
// if succes
if(succes)
{
// trace variables
trace(this.title);
gotoAndPlay (2);


}
else
{
// loading failed
trace("Loading Error!!");
}
}

Frame 2:


Code:
stop();

titleArray = lv.title.split("|||");
urlArray = lv.url.split("|||");

myTitleArray = titleArray;
myUrlArray = urlArray

trace (myTitleArray);
trace (myUrlArray);

this.createEmptyMovieClip("e_mc", 1);
for (var i = 0; i < myTitleArray.length-1; i++) {
var temp_mc = e_mc.attachMovie("button", "b" + i, i);
temp_mc.i = i;
temp_mc._y = i * 28;
temp_mc.btn_txt.text = myTitleArray[i];



temp_mc.onRollOver = function()
{
this.mcRollOver.gotoAndPlay(2);
};

temp_mc.onRollOut = function()
{
this.mcRollOver.gotoAndPlay(1);
};
}
}

Now i want a scroller for this, but i have a few preferences:

1. It want to scroll the movielips on integers (so they don't become blurry)
2. i prefer only a slider but if its to dificult only up and down arrows are ok
3. scrolling embedded font wil not work for me (they are always blurry) but if someone has a solution for this it will be very nice
4. easing woud be great but it's not a pre

i've seen alot af different tutorials but i can't get it work, i hope that some ultrashockers will help me out

at last i want to say i'm not a very good scripter so code comments are welcome

THnx already for all your help!

View Replies !    View Related
Image Scroller Buttons ?
Hi all

I just joined & I would like to ask as Q. First I have modified this script from here Buttonless Scroller which i think is verygood. But the problem I am having is, instead of a (dynamic) text opening up under the colours, I would like it to open images (.jpg .bmp .gifs......etc) I have looked every where I could think of, but I haven't enough skills to work out the action scripts for the action. I hope you (experienced) guys 97 girls0 can help me out.

Thanks in advance

BazK


P.S. HTML I have no probs with, but flash, it's killing me .......lol

View Replies !    View Related
Buttons Inside A Scroller Menu
Ok, I created a simple scroll bar. But When i put buttons inside it, the buttons didnt work.

Any words of wisdom on this?

Thanks

GnADesign

View Replies !    View Related
Horizontal Image Scroller With Buttons
Hey

I'am trying to build something like this scroller

http://room.se/
(go to furniture and look at the image scroller at the bottom). I just want to learn how to build the scroller with button, and not the mouse over effect as I seen on this site. If anyone know a good tutorial or can do an example file I would be very happy

/H2o

View Replies !    View Related
Scroller Not Working With Loaded Xml Buttons
i attach some buttons according to the tutorial from kirupa to a "menu_mc" mc.
everything goes well. the buttons do attach.. the text inside them is visible!

i make a scroller (also from a tutorial from over here) that scrolls a "contentMain" mc.
everything goes well.... it scrolls.

when i put the menu_mc inside the contentMain...... the buttons do attach, the scroller works fine... but the text inside my buttons is not visible.

i attached here the .fla : http://ceetah.evonet.ro/XmlLoadScroller.fla

1. can you tell me what's the problem? why don't the texts show?

2. how can I call the "scrolling()" function from inside that contentMain mc ... without using _root ?

thank you very much.. i'm going insane in here.

View Replies !    View Related
Movie Clip Scroller Buttons
Does anyone know how to make an 'up' and 'down' scroll buttons that will work on a movie clip?
Making these scroll buttons to apply to a dynamic text box is not a problem, but I can find any clues anywhere as to how you do this for a movie clip.

Any help would be fantastic.

Cheers.

View Replies !    View Related
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.

View Replies !    View Related
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.

View Replies !    View Related
Problem Scrolling Thumbnails With Scroller Buttons
I've been able to load in all the necessary png thumbs from the external XML and place them inside a clip called thumbnail_mc...I've been scrolling it manually using the arrow keys, but it's a pain in the ass, so I pulled in a scroller I'd made to scroll another clip somewhere else...but I can't figure out where to put the code so that the scroller will recognize the correct width/height of thumbnail_mc after all the thumbs are loaded in. The scroller ends up not working because it recognizes thumbnail_mc as still being unpopulated and therefore the thumbnail_mc.height = undefined.

Where can I put my scroller code so that it will only begin running after thumbnail_mc is fully populated?

AS Code (thumbnails/fullphotos):


Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
thumbnails = [];
total = xmlNode.childNodes.length;
if (thumbnails.length = xmlNode.childNodes.length){
play();
}
else {
stop();
}
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
}
else {
content = "file not loaded!";
}
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("tommyImages.xml");


listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.DOWN && thumbnail_mc.hitTest(hit_bottom)) {
thumbnail_mc._y -= 4;
}
else if (Key.getCode() == Key.UP && thumbnail_mc.hitTest(hit_top)) {
thumbnail_mc._y += 4;
}
};
Key.addListener(listen);

p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
}
else {
preloader._visible = false;
picture._x = (mcArea._width/2 - picture._width/2) + 401.5;
picture._y = mcArea._height/2 - picture._height/2;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
}




function nextImage() {
if (p<(total-1)) {
p++;
}
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
}
}

function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_top._x+(eval("thumbnail_mc.t"+k)._width+6)*(k -(Math.floor(k/6)*6));
target_mc._y = (62*(Math.floor(k/6)))+6;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
}
target_mc.onRollOver = function() {
this._alpha = 50;
}
target_mc.onRollOut = function() {
this._alpha = 100;
}
}
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

Scroller code (that I can't find a place for) I think variable names are self-explanatory:


Code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = thumbnail_mc._height;
var scrollFaceHeight:Number = scrollFace._height;
var maskHeight:Number = thumbMask._height;
var initPosition:Number = scrollFace._y=scrollTrack._y;
var initContentPos:Number = thumbnail_mc._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollTrack._x;
var top:Number = scrollTrack._y;
var right:Number = scrollTrack._x;
var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
var dy:Number = 0;
var speed:Number = 5;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);

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

//btnUp
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (thumbnail_mc._y+speed<initContentPos) {
if (scrollFace._y<=top) {
scrollFace._y = top;
}
else {
scrollFace._y -= speed/moveVal;
}
thumbnail_mc._y += speed;
}
else {
scrollFace._y = top;
thumbnail_mc._y = thumbMask._y;
delete this.onEnterFrame;
}
}
}
btnUp.onRelease = function() {
delete this.onEnterFrame;
}
btnUp.onDragOut = function() {
delete this.onEnterFrame;
}
btnUp.onRollOut = function() {
delete this.onEnterFrame;
}

//btnDown
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (thumbnail_mc._y-speed>finalContentPos) {
if (scrollFace._y>=bottom) {
scrollFace._y = bottom;
}
else {
scrollFace._y += speed/moveVal;
}
thumbnail_mc._y -= speed;
}
else {
scrollFace._y = bottom;
thumbnail_mc._y = 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();

And finally, a piece of the XML that is loading thumbs/photos in...sorry these are all local images, don't have them hosted yet, but you get the idea..there are enough to fill the movie clip so it needs to be scrolled:



Code:
<?xml version="1.0" encoding="utf-8"?>
<images>
<pic>
<image>images/tommy/fullPhoto/3 Tommy Mirror.png</image>
<thumbnail>images/tommy/thumbs/3 Tommy Mirror_Thumb.png</thumbnail>
</pic>
<pic>
<image>images/tommy/fullPhoto/Alex End Act I.png</image>
<thumbnail>images/tommy/thumbs/Alex End Act I_Thumb.png</thumbnail>
</pic>
<pic>
<image>images/tommy/fullPhoto/Amazing Journey.png</image>
<thumbnail>images/tommy/thumbs/Amazing Journey_Thumb.png</thumbnail>
</pic>
<pic>
<image>images/tommy/fullPhoto/Big Machine.png</image>
<thumbnail>images/tommy/thumbs/Big Machine_Thumb.png</thumbnail>
</pic>
</images>

View Replies !    View Related
Hyperlinking Horizontal Scroller Buttons To Frames
I have a horizontal flash scroller that moves left and right showing a number of buttons. I have it all set up on my website, yet my only problem is hyperlinking the buttons to the bottom frame.

The buttons get the html target from a .txt file, it works, yet it opens that page in the same frame as the scroller. I know how hyperlinking with other frames works with static buttons, but how do I hyperlink buttons that are all part of eachother?

Do I change the flash code? or the html code?

View Replies !    View Related
Hyperlinking Horizontal Scroller Buttons To Frames
I have a horizontal flash scroller that moves left and right showing a number of buttons. I have it all set up on my website, yet my only problem is hyperlinking the buttons to the bottom frame.

The buttons get the html target from a .txt file, it works, yet it opens that page in the same frame as the scroller. I know how hyperlinking with other frames works with static buttons, but how do I hyperlink buttons that are all part of eachother?

Do I change the flash code? or the html code?

View Replies !    View Related
Adding Additional Buttons To Navigation Menu Scroller
Hi Guys and Girls,

Just wondering if anyone out there knows about Navigation scroll menues and adding additional buttons in Flash MX...

IT consist of a TIMELINE CALLED mc_timeline_holder ////mc_timeline,
And then with in it the small image buttons.....The last button is image button seven......One other note, is that in the mc_timeline after the seventh button which is the last to be viewed before scrolling, there is a repeat of the ver same 1/7 buttons after that sre actually viewed in the swf for a second time when you scroll through the navigation minue...

My question is how to add on new buttons where the reapeat of buttons accires instead of having the same links and buttons accuring..I want 12 buttons instead of seven....

When I try to creat a new image and image button in the mc_timeline where the first repeated button accures, it changes the previos button image that is actually the last (button 7) in the timeline before it repeats.

THESE ASRE THE BUTTON SCRIPTS>>>
BUTTON 1
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(7);
}
on (release) {
_root.images.gotoAndStop("q8");
}


BUTTON 7
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(7);
}
on (release) {
_root.images.gotoAndStop("q7");
}


I am not certain how to add new buttons to the timeline with out some how messing up a previos button that I need to remain.....

I tried coping the last button and naming it the same but adding 9 instead of 8 to the name, then altering the go to and play 7 to 12, and the go to and stop to q9

But this is what makes other previous buttons change for some reason....

Can anyone tell me what i am doing wrong?

Thanks, if you need the fla to check out feel free to email me....

Thanks

View Replies !    View Related
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.

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
Cannot Paste Text Into Action For Text Scroller-i Get An Error
Hi guys!

ok hehe can anyone tell me whats going on here??? I am using a pritty cool little text scroller and need to use about 10 versions of the same one im doing in a flash file..so about on 10 different scenes.Anyhow for some reason this text here works when i copy it into the action for the text scroller:


content.expList = "Vibez Recordings was set up in '95 as an artistic outlet for London based, urban music producer, Dave Stewart - otherwise known as SUBJECT 13. The Vibez imprint offered its own unique brand to the sound of Drum and Bass, enabling the independent to gain credibility and critical acclaim within the genre. Through the fusion of jazz, funk, ambient soundscapes and deep drums, Vibez defined its sound as experimental and forward thinking..<br><br>"+"Subject 13's initial releases on Vibez Recordings and tracks such as 'Oceans' on Fabio's Creative Source imprint and 'Faith' on LTJ Bukem's Good Looking Records, have cemented '13 and Vibez as one of the original pioneers of the DnB sound, gaining him recognition in the UK scene and from abroad. After signing solo album 'Disclosed Knowledge' to Sony Japan, the 'Vibez Presents' compilation enabled Stewart the unique opportunity to highlight some of his talented new producers at Vibez Recordings, facilitating the international distribution of their music whilst developing Vibez growing status in the Far East..</font><br><br>"+"Vibez has always let the music do the talking and with 27 single releases, 2 albums and 1 compilation under its belt has managed to keep production quality and artistic values at a high level throughout its history. With artists hailing from places such as Russia, Estonia, Sweden, Holland, Finland & Germany, and affiliations with majors Sony and EMAP Performance Network, Vibez has always prided itself with diversification and experimentation of styles.<br><br>"+"Those of you familiar with Vibez will not be surprised at the development of styles that the label has undertaken for it's new wave of releases. With sister label Pauze set to release an eclectic format of music and Vibez concentrating on experimental DnB, with Artists such as Alaska, Nucleus and Seba contributing, expect more innovative and groundbreaking releases form the label.";



AND THIS TEXT DOES NOT WORK..IT HAS ALL SAME CODE BUT DOES NOT?:


content.expList = "Liquinova is: Sean McCaff (DJ-Producer)& Sven Figee (Keyboards/Producer)Sean McCaff and Sven Figee first started working together in 1998 on a lounge/dance project for the "Waterloo/Le Zoo" compilation (NY, USA), which had great reviews in the New York magazine "Time Out"...<br><br>"+"Having realized they had a great vibe when working together in the studio creating new sounds and beats, they decided to take things seriously.Liquinova was born.Combining the dance/electronic/DJ background of Sean McCaff with the musicianship and "acoustic" experience of Sven Figee, the Liquinova sound was released..</font><br><br>"+"Liquinova just licenced 5 tracks to Club Cocoon (The Hague, Holland) for their special anniversary lounge-cd, mixed by DJ Menno.In addition, PAUZE Recordings (London, UK) got some tracks coming out on their new "Pauze" compilation series – Volume 1 , Eclectic Development that is being launched autumn 2004.Liquinova is currently working on their first album, planned to be released winter 2004.This album will be a result of creative collaborations with various artists like Rose (vocals), Dez (vocals), Fammy (vocals), Bart (sax), Victor Muli (vocals), Subject 13 (vibez productions), DJ Menno and DJ Ramon..<br><br>"+"Get ready for a dive into the world of Liquinova.";


THE ACTIONS ON THE CLIPBOARD CONTAIN ERRORS-ACTIONS WITH ERRORS CANNOT BE PASTED IN NORMAL MODE IS ERROR I GET WHEN I TRY TO COPY PASTE TEXT.
IF ANYONE CAN HELP TELL ME WHY ID BE REALLY PLEASED!!THANKS DUDES!

CC

View Replies !    View Related
Creating My OWN Text Scroller For Text Loaded From A .txt File?
im loading my text from an external .txt file... and i know how to make a regular flash component scroller scroll this... but how would i make MY OWN text scroller... just like an up and down arrow...

i tried the one in the kirupa tutorials but it was for flash 5 and it didnt work for me...

View Replies !    View Related
Loading External Text Files Into A Text Scroller
hello,
i'm second guessing my methods of loading info. from a text file into a text scroller , i've created. what i have is a text scroller, but depending which button i press, i would like new content loaded into that textfield(scroller) I sorta have an idea, but not sure of the procedure ..can some help ...Cheers!

View Replies !    View Related
Buttonless Scroller - How Do I Link Buttons Inside Mc To Dynamically Loaded Images?
Hi, I've made this scroller, http://www.flashkit.com/tutorials/In...-909/index.php and it works fine. One thing though is, it leaves out how to link the contents of the scroller to that dynamic field. In my case, I'd like to link the thumbnails to an image. I guess I'd make each image an swf with preloader? Since I need to add captions too...? Right?? Can someone help! I'm lost!! And, what is the code that I put on each button?

THANKS!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved