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




Added Thumbnails To Scroller, Doesn't Work In Another SWF



Hello All, I followed the Adding Thumbnails tutorial, then changed it to a vertical scroll. Everything works great. Well I need this swf executed in another flash document as on of the pages. When i copy all of the frames and paste them in the new flash, the gallery displays ok with no errors, however the vert scroller doesn't display. If you click prev and next the picture DOES display. Please advise.Thanks.



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 08-03-2006, 05:02 PM


View Complete Forum Thread with Replies

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

Loader Doesn't Work Well When Sound Is Added
I've had trouble with preloaders for a while now. Instead of beginning with 0% and moving up to 100%, they don't show for quite some time. When the movie is almost loaded, they suddenly show 96% to 100%, thereby not doing their job.

I took someone's successful preloader movie clip, took out their content and slowly added my own to it, checking to see what would happen. It worked fine when I had all the visual content in. However, once I put sound in the library, it no longer showed. Is there something I should do with the sound other than leaving it in the library?

Thanks

Listbox Doesn't Work Properly When A Tree Componet Is Added To Stage
When I have a listbox component (UI comp set 1) on the stage and then add a tree component (UI comp set 2) the listbox loses the capability to scroll to an entry via keys. The selection moves to the proper location, but the window will not scroll the entry into view.

Does anyone have a fix/solution for this? I sent a report to support a month ago, but they have not gotten back to me.

Thanks in advance


Scroller Doesn't Work
Hi y'all!

I need help on a scroller that doesn't work, and also when I publish the movie, a window comes up saying that there are some errors on my script, and I can't find out why. The files are attached to this message so you can take a look at them. I would REALLY appreciate your help. If you help me, I'll send you a virtual kiss!

Thanks a lot!

Scroller Doesn't Work - Urgent
Hi y'all!

I need help on a scroller that doesn't work, and also when I publish the movie, a window comes up saying that there are some errors on my script, and I can't find out why. The files are attached to this message so you can take a look at them. I would REALLY appreciate your help. If you help me, I'll send you a virtual kiss!

Thanks a lot!

Scroller Inside Of MC Doesn't Work
please help??

Right now if you put this scroller insdie a MC it doesn't work...any ideas?

http://www.studioxmedia.com/scroller.fla


Thanks,
Andrea

Why Doesn't My Text Scroller Work?
So I got a text scroller from Billy T's tutorial.

Then I mad some simple sizing modificattions and now the scroller doesn't work.

Could someone take a look?

Here's the download: http://www.caillouette.com/scrolling_text.zip

thanks

Dynamic Scroller Doesn't Work Right
Hi,

I've added more photos and text to the copyrights section of a site. However with the added content, the red background doesn't fully display:

www.cedarparkent.com/reachglobal.com/index.html
Not sure if this is an xml problem or a scroll pane problem.

If anyone can help, I am willing to send over any needed files.

Thanks.

Scroller Doesn't Work With Actionscrip 2.0
Attached here I have a really great scroller, it does everything I want a scroller to do and it is - above all - simple. However it was build with actionscript 1.0 and flash 5. Now All my movies are in flash 7 (8 soon I hope) but I can't find a way to make it work. Could someone take a look at it? I would be really gratefull.

this is the main code:

Code:
textvar = "a lot of text, in the enclosed fla there is a lot more";
var textareaheight=back._height
var linesdisplayed=12
var lineheight=textareaheight/linesdisplayed

scrollbar.setup=function(){
lineheight=_parent.lineheight
linesdisplayed=_parent.linesdisplayed
textareaheight=_parent.textareaheight
top=_y=_parent.border._y
bottom=_parent.border._y+_parent.border._height
calcSize()
}

scrollbar.calcSize=function(){
var totallines=linesdisplayed+_parent.textvar.maxscroll-1
var proportion=linesdisplayed/totallines
_yscale=(linesdisplayed/totallines*textareaheight)>12?(linesdisplayed/totallines*textareaheight):12 // minimum size of bar.
if((_y+_yscale)>bottom){
_y=bottom-_yscale
_parent.textvar.scroll=1+Math.floor(((_y-top)/((bottom-_yscale)-top))*(_parent.textvar.maxscroll))
}
}

scrollbar.scrollchk=function(){
_visible=_parent.textvar.maxscroll>1
calcSize()
if(eval(Selection.getFocus())!=_parent.textvar){
_parent.textvar.scroll=1+Math.floor(((_y-top)/((bottom-_yscale)-top))*(_parent.textvar.maxscroll))
}else{
_y=top+((_parent.textvar.scroll-1)/(_parent.textvar.maxscroll-1))*((bottom-_yscale)-top)
}
}
Can expert tell me why this scrollbar doesn't work when converted into flash 7?

Help With Scroller That Doesn't Work - Fla Is Attached Now
Sorry, I forgot to attach the file!

Hello!

Can anybody, by any chance, in this cruel world take a look at the attached .fla and help me to find out why the scroller doesn't work? Pleaaaaaaseeeee!!!!

Thanks!

Ahh Scroller Of Embedded .swf Doesn't Work
hey, im currently redoing my flash site and making all pages in external .swf files. I have a "homepage" which loads all of the seperate pages (external .swf's) through a 'contents' movie clip, but for some reason, once the specific .swf (say, the "News" page, 'news.swf'), is loaded into the "homepage", its scroller won't work. when you click the Up or Down arrow, it just reloads the news.swf file... the scroller is a custom scroller and is part of each external .swf, not the homepage.
what should i do? i have "stop();" all over the place.. and the news.swf is loaded using the code
_root.contents.loadMovie('news.swf');
thanks

Help With Scroller That Doesn't Work - Fla Is Attached Now
Sorry, I forgot to attach the file!

Hello!

Can anybody, by any chance, in this cruel world take a look at the attached .fla and help me to find out why the scroller doesn't work? Pleaaaaaaseeeee!!!!

Thanks!

Scroller Doesn't Work For Image In Dynamic Text
What I have here is a dynamic text with a scroller. It worked great for texts, html anchors, etc. But when I put in the <img> then the scroller doesn't work... Does anyone know why or know how can I make it work?

Thanks....

Image Scroller Script Doesn't Work When Put Inside Movie Clip
I've given up trying to figure this out myself as I'm new to this and desperately in need of help.

I got a script which is an image scroller. I've attached the fla in question and the problem seems to be in the 'controller' MC which you can see in the assets. This is what controls the button actions to the slides.

I want to be able to put this in another movie clip so that I can refer to it from another mc and then this shoudl start playing.

Will really appreciate your help!

BTW I am using Flash MX 2004.

Script Added Dynamic Text Scroller
i've been trying to make a scroller for the dynamic text i've added with
the CreateTextField function, and no succesc.
All the scroller tutorials are not for dynamic text added by script, i've tryed to addapt some but none seem to work!
can anyone help! please.

Thanx

Movieclip Doesn't Increase Its Size When Children Are Added?
Hi, I've created a thumbnail collection class that holds (as the name suggests) all the thumbnails. I intend to use this as the source of a scrollpane so that the user can scroll down the thumbnails. Here is the code for the ThumbNailCollection class:


ActionScript Code:
package
{
    import flash.display.MovieClip;
    import flash.xml.*;
    import flash.events.*;
    import flash.net.*;
   
    public class ThumbNailCollection extends MovieClip
    {
        private var thumb_names:Array;    // all the file names of thumbnails in this collection
        private var row:int;            // counter for how many rows of thumbnails in this collection
        private var col:int;            // counter for how many columns of thumbnails in this collection
        private const START_X:Number = 25.5;        // the x coordinate of the starting point
        private const START_Y:Number = 33.5;        // the y coordinate of the starting point
        private const HORIZ_GAP:Number = 70;        // the horizontal gap between thumbnails
        private const VERTI_GAP:Number = 54;        // the vertical gap between thumbnails
        private const THUMB_W:Number = 150;   // width of the thumbnail
        private const THUMB_H:Number = 112.5;      // height of the thumbnail
       
        public function ThumbNailCollection(xml_name:String)
        {
            row = 1;
            col = 1;
            thumb_names = new Array();
            readList(xml_name);
        }
       
        // reads the list of picture files
        private function readList(file:String):void
        {
            var ldr:URLLoader = new URLLoader();
            ldr.addEventListener(Event.COMPLETE, loadingComplete);
            ldr.load(new URLRequest(file));
        }
       
        private function loadingComplete(e:Event):void
        {
            var pictures:XML = new XML(e.target.data);
           
            for(var i:int = 0; i < pictures.pic.length(); ++i)
                thumb_names.push(pictures.pic[i]);
               
            for(var j:int = 0; j < thumb_names.length; ++j)
                addThumbNail(thumb_names[j]);
        }
       
        public function addThumbNail(thumb:String):void
        {
            var t:ThumbNail = new ThumbNail(thumb);
           
            if(row == 1 && col == 1)        // no thumbnail added so far
            {
                t.x = START_X;
                t.y = START_Y;
               
                addChild(t);
                ++col;
            }
            else
            {
                t.x = START_X + (THUMB_W + HORIZ_GAP) * (col - 1);
                t.y = START_Y + (THUMB_H + VERTI_GAP) * (row - 1);
               
                addChild(t);
                ++col;
            }
           
            // if the column is more than 3, create another row and set col to zero
            if(col > 3)
            {
                ++row;
                col = 1;
            }
        }
    }
}

This works perfectly (I can see all the thumbnails being added in their correct positions). But when I set an instance of ThumbNailCollection as the source of my scrollpane, the scrollpane doesn't have a scroll bar. So I traced the size of the instance of ThumbNailCollection, and it turns out to be 0 * 0. I even tried to explicitly change the size of ThumbNailCollection whenver a new thumbnail is added, but then the size is still 0*0 and now I can't even see the thumbnails.

My questions are: Why doesn't the Movieclip class automatically adjust its size when a child is added? How can I make it adjust its size accordingly whenever a child is added?

I'm new to actionscript, so this may turn out to be a really easy, basic question so please be tolerable, and thanks in advance!

Movieclip Doesn't Increase Its Size When A Child Is Added?
Hi, I've created a thumbnail collection class that holds (as the name suggests) all the thumbnails. I intend to use this as the source of a scrollpane so that the user can scroll down the thumbnails. Here is the code for the ThumbNailCollection class:


ActionScript Code:
package
{
    import flash.display.MovieClip;
    import flash.xml.*;
    import flash.events.*;
    import flash.net.*;
   
    public class ThumbNailCollection extends MovieClip
    {
        private var thumb_names:Array;    // all the file names of thumbnails in this collection
        private var row:int;            // counter for how many rows of thumbnails in this collection
        private var col:int;            // counter for how many columns of thumbnails in this collection
        private const START_X:Number = 25.5;        // the x coordinate of the starting point
        private const START_Y:Number = 33.5;        // the y coordinate of the starting point
        private const HORIZ_GAP:Number = 70;        // the horizontal gap between thumbnails
        private const VERTI_GAP:Number = 54;        // the vertical gap between thumbnails
        private const THUMB_W:Number = 150;   // width of the thumbnail
        private const THUMB_H:Number = 112.5;      // height of the thumbnail
       
        public function ThumbNailCollection(xml_name:String)
        {
            row = 1;
            col = 1;
            thumb_names = new Array();
            readList(xml_name);
        }
       
        // reads the list of picture files
        private function readList(file:String):void
        {
            var ldr:URLLoader = new URLLoader();
            ldr.addEventListener

This works perfectly (I can see all the thumbnails being added in their correct positions). But when I set an instance of ThumbNailCollection as the source of my scrollpane, the scrollpane doesn't have a scroll bar. So I traced the size of the instance of ThumbNailCollection, and it turns out to be 0 * 0. I even tried to explicitly change the size of ThumbNailCollection whenver a new thumbnail is added, but then the size is still 0*0 and now I can't even see the thumbnails.

My questions are: Why doesn't the Movieclip class automatically adjust its size when a child is added? How can I make it adjust its size accordingly whenever a child is added?

I'm new to actionscript, so this may turn out to be a really easy, basic question so please be tolerable, and thanks in advance!

Movieclip Doesn't Increase Its Size When A Child Is Added?
Hi, I've created a thumbnail collection class that holds (as the name suggests) all the thumbnails. I intend to use this as the source of a scrollpane so that the user can scroll down the thumbnails. Here is the code for the ThumbNailCollection class:


ActionScript Code:
package
{
    import flash.display.MovieClip;
    import flash.xml.*;
    import flash.events.*;
    import flash.net.*;
   
    public class ThumbNailCollection extends MovieClip
    {
        private var thumb_names:Array;    // all the file names of thumbnails in this collection
        private var row:int;            // counter for how many rows of thumbnails in this collection
        private var col:int;            // counter for how many columns of thumbnails in this collection
        private const START_X:Number = 25.5;        // the x coordinate of the starting point
        private const START_Y:Number = 33.5;        // the y coordinate of the starting point
        private const HORIZ_GAP:Number = 70;        // the horizontal gap between thumbnails
        private const VERTI_GAP:Number = 54;        // the vertical gap between thumbnails
        private const THUMB_W:Number = 150;   // width of the thumbnail
        private const THUMB_H:Number = 112.5;      // height of the thumbnail
       
        public function ThumbNailCollection(xml_name:String)
        {
            row = 1;
            col = 1;
            thumb_names = new Array();
            readList(xml_name);
        }
       
        // reads the list of picture files
        private function readList(file:String):void
        {
            var ldr:URLLoader = new URLLoader();
            ldr.addEventListener(Event.COMPLETE, loadingComplete);
            ldr.load(new URLRequest(file));
        }
       
        private function loadingComplete(e:Event):void
        {
            var pictures:XML = new XML(e.target.data);
           
            for(var i:int = 0; i < pictures.pic.length(); ++i)
                thumb_names.push(pictures.pic[i]);
               
            for(var j:int = 0; j < thumb_names.length; ++j)
                addThumbNail(thumb_names[j]);
        }
       
        public function addThumbNail(thumb:String):void
        {
            var t:ThumbNail = new ThumbNail(thumb);
           
            if(row == 1 && col == 1)        // no thumbnail added so far
            {
                t.x = START_X;
                t.y = START_Y;
               
                addChild(t);
                ++col;
            }
            else
            {
                t.x = START_X + (THUMB_W + HORIZ_GAP) * (col - 1);
                t.y = START_Y + (THUMB_H + VERTI_GAP) * (row - 1);
               
                addChild(t);
                ++col;
            }
           
            // if the column is more than 3, create another row and set col to zero
            if(col > 3)
            {
                ++row;
                col = 1;
            }
        }
    }
}

This works perfectly (I can see all the thumbnails being added in their correct positions). But when I set an instance of ThumbNailCollection as the source of my scrollpane, the scrollpane doesn't have a scroll bar. So I traced the size of the instance of ThumbNailCollection, and it turns out to be 0 * 0. I even tried to explicitly change the size of ThumbNailCollection whenver a new thumbnail is added, but then the size is still 0*0 and now I can't even see the thumbnails.

My questions are: Why doesn't the Movieclip class automatically adjust its size when a child is added? How can I make it adjust its size accordingly whenever a child is added?

I'm new to actionscript, so this may turn out to be a really easy, basic question so please be tolerable, and thanks in advance!

Mouse Wheel Doesn't Scroll The Browser When Component Added [flash8]
Hello everyone,

I have a 700px heigh movie, which makes the browser scrollbar appear on most resolutions.
If I focus on the html part the mouse wheel works fine; however if I bring the focus to the flash movie (simply clicking on it) it doesn't work anymore!
This started to happen when I added the numericStepper component to the stage even if the focus is not on it.

Does anyone have any lead on how to fix this? else I'm going to get my hears pulled by the flash-accessibility-sucks people.

Thanks a lot
fred

Looping Thumbnails (scroller)
Good morning,

Can anyone tell how i can make the thumbnails loop?
I was using this tutorial:
http://www.kirupa.com/developer/mx2004/thumbnails.htm

I hope you can help me!

GotoAndStop Does Not Work On Dynamically Added Movieclip
I'm making a game and I've run into a very strange problem. one of my symbols has a function in it that tells it to go to its second frame. this function is called when the symbol touches a missile fired by the player. when i physically add one of these symbol to the stage, it works fine. however, when i add it dynamically, it does not work. to make things more weird, i added a trace function before and after the gotoAndStop, and both traces appear when either the dynamically or physically added clips are hit--but the latter clip just won't go to its second frame. i made a new flash file and isolated the code that deals with this issue so you won't have to slog through all the unrelated code. could someone please take a look and tell me what's wrong?
I have both flash MX 2004 and flash 8. I saved the .fla as MX 2004.

Added Preloader.....which Works, But Then Buttons In The Swf Don't Work
Hi.

Sorry, I have looked all throughout this site, and done multiple searches over the last few days, but still haven't figured this preloader out. From other posts I'm getting the impression that the tutorials for flash mx don't work for mx04.

I've done a good half dozen tut's on other preloaders aswell, which work....but all of them make my buttons ( that call in other external swf's) not function. Everything works beaut, without the preloader, so I imagine there is some conflict in paths.

The buttons in the main swf have

on (release) {
_parent.contents.loadMovie("1.swf");
}


I've tried swapping parent to root and to this. I've tried calling in levels, but it still ends up the same.

I appologize for another preloader thread, but I have been learning everything from the tutorials and forums at kirupa, and would be grateful for your help.

Cheers!
Mark

Added Preloader.....which Works, But Then Buttons In The Swf Don't Work
Hi.

Sorry, I have looked all throughout this site, and done multiple searches over the last few days, but still haven't figured this preloader out. From other posts I'm getting the impression that the tutorials for flash mx don't work for mx04.

I've done a good half dozen tut's on other preloaders aswell, which work....but all of them make my buttons ( that call in other external swf's) not function. Everything works beaut, without the preloader, so I imagine there is some conflict in paths.

The buttons in the main swf have

on (release) {
_parent.contents.loadMovie("1.swf");
}


I've tried swapping parent to root and to this. I've tried calling in levels, but it still ends up the same.

I appologize for another preloader thread, but I have been learning everything from the tutorials and forums at kirupa, and would be grateful for your help.

Cheers!
Mark

Adding Links To Scroller Thumbnails?
How do I go about adding hyperlinks to the thumbnails in the Kirupa Adding Thumbnails Tutorial. I'm totally stumped. I just want to use the scroller with the thumbnails as links. What do I need to do?

Need Grid Instead Of Scroller For XMLw/thumbnails
In kirupas Xml & flash gallery w/thumbnails it says you can so a scroller or a grid.

Does anyone know the actionscript for the grid?

Please help

Customising The Thumbnails Scroller Tutorial
Hi what an excellent tutorial, http://www.kirupa.com/developer/mx2004/thumbnails.htm

I have been playing and fiddling around with this tutorial and have changed the use of it from a photo viewer into a navigation system for my flash site. I have been searching through the forum to help me with my problem but can not find an answer, what I am trying to accomplish is on the image scroller once a image is selected I would like it to highlight that image, so the users can see what image is selected on the scroller.
If anybody has done this before with this tutorial I would be grateful for the link to the thread/post or if anybody has a idea of how to do this could you help us out please,

Thanks

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>

Photo Gallery With XML And Thumbnails : Scroller Issues
Hi,

I'm have modified the thumbnail photo gallery so that I can reload the thumbnails at the bottom and put a new set in.

The problem now is that the scroller stays where it was last left and if you had used the scroller and moved the view to the right but had not moved it back left and you load a new set of thumbnails, the pictures do not reload at the left most of the thumbnail_mc movieclip, it reloads and stays where it was.

For example if I scrolled to the sixth picture (so that the sixth picture is the first in the thumbnail_mc movieclip and the mask) in the first thumbnail set and and then load the new set the first picture within the mask (the first one you can see from the left) will be the sixth of the new set, not the first.

I hope that that makes sense as my .fla is too large to post.

Any ideas of why this is happening or how to fix it?

Kirupa Thumbnails Tutorial XML Scroller Question
I'm using the XML and FLA file from this tutorial:
http://www.kirupa.com/developer/mx2004/thumbnails.htm

I want to add right and left arrows to the thumbnail scroller so when the mouse is over the arrows, it'll start scrolling.

The problem is right now, when the mouse goes over the end of the thumbnail strip, it activates the scroller. So when my mouse goes over the right and left arrows, it doesn't do anything.

Regardless where I put the hit_right and hit_left movie clips, the scroller is only activated at the end of the thumbnail scroller mask.

Any help appreciated! Thanks!

Scrolling Thumbnails (Doesn't Scroll)
Hello,

As you can see in the code below I did not finish the tutorial because upon testing the scrolling ability it did not scroll. I checked his code next to mine a few times and didn't see anything that stuck out. Is there something in the code that I am missing that makes it to where my panel doesn't scroll when I put my mouse over it?

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 >= -285) {
      panel.x = -285;
}



   var xdist = _xmouse - stage.width / 100;

   panel._x += -xdist / 7;
}

Also...for some reason one of my thumbnails is acting up, and the "over" outline keeps flashing on and off when my mouse isn't even over it. So no scrolling, and then the thumbnail incident.

Thank you!

Drop Menu : Rollovers/GetURL In A Movie Don't Work...and The SWF Doesn't Work In FF
My links/rollovers don't work in Mozilla and the dropdown menu part don't work (the rollovers and the getURLs) in any browser.

What's wrong with this??? I think it's something simple.
I've already tried:

Code:
this._lockroot = true;
I also tried writing the AS as:

Code:
one.title.text = "The Text";
one.onRollOver = over;
one.onRollOut = out;
function over () {
this.gotoAndPlay(2);
}
function out () {
this.gotoAndPlay(11);
}
one.onRelease = function(){
getURL("http://www.thelink.com");
}
...didn't work...

I hope someone can help!

Download the: Source File


(Lately I've gotten no help off this site and it's been very depressing because this site people used to be very helpful...I hope someone can change my mind)

This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).

I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.

I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.

Preview: www.blaak.nl/flash/

This._lockroot Doesn't Work (combobox Components Won't Work)
I have a preloader (preloader.swf) which loads a form (offerte.swf).

I've put the this._lockroot on the "application" timeline on the first frame of the "Flash form application" (offerte.swf).
But the combobox components still won't work.

I had it working before, but suddenly it seemed to stop! Now I can't get it get to work again.

Preview: www.blaak.nl/flash/

Xml Photogallery W/ Thumbnails-won't Work
Hello-

I am working on a flash website.

this is the example I have used
http://www.kirupa.com/developer/mx2004/thumbnails.htm

I have put the xml photogallery into the scene correctly and copied the action script correctly and double checked everything. The xml file is in the same folder as the site I am working on.

When I test the movie the photo thumbnails do not move like they do in the example.

If u have any ideas please help!

How To Get Thumbnails To Work In Seprate Movie?
ok here is a link to what im trying to get to work.

http://homepage.mac.com/earsalad/Sit.../untitled.html

I am trying to get the thumbnail scroller to work inside a separate movie clip from the main time line. Ive got the thumbs to load fine but my main problem is that i cant click or interact with them. I'm using the xml photo gallery tutorial as a guide. I also attached the .fla. Any help would be greatly appreciated, my hair would also thank you.

Text So It Doesn't Sit Up Against The Scroller Walls::::::::.........................
I am trying to get my text to have some space on the left and right margin of my dynamic text scroller so that it's not totally up against the walls of the scroller. I talked to a friend and they told me to select the text area, and under properties, go to format, and change the pixels of the left and right side.

I tried doing this and nothing worked, I set it to 4 pixels and 4 pixels. Do I need to go larger?

Is there something I am missing?

If you wanna see what I am talking about GO TO:
www.carpeinternational.com

then to the "Carpé" section, then to the "News" section.

Thanks for the help.

GG.

SWF Scroller Doesn't Display Correctly
Hi All,

this is a stonker that's had me stuck for a day.

I have an autoscroller FLA file, kindly allowing me to use it and try out by the original creator.

I've scrapped most of it as it loaded in an array of images from an XML file link. The XML link version works but I desperately need the SWF's to load in directly so I can ADD CODE TO MAKE A PRELOADER PERCENTAGE CLOCK.

Seems easy enough, and I've got it working to a degree, but the SWF keeps dissapearing from the scroll pane or not appearing at all!

When it does appear, it scrolls automatically as it should but blinks all the time and dissapears when the mouse is inactive.

I'm not good enough to figure out where the problem is - there's 2 frames of code, one in the main "thumbScroller" and another in the "thumbMC". That's it and there's not too much code to go through.

ANY ONE ABLE TO TAKE A LOOK?

Thanks in advance to all who gives it a go, and it might be a useful scroller for you.

I'VE SUPPLIED THE TEST FILES I'M MESSING WITH AS IT WOULD BE EASIER TO SEE WHAT'S HAPPENING. UNLESS THERE'S A UBER-SCRIPTER OUT THERE THAT CAN DO IT FROM THE CODE ALONE!

RAW Code:- thumbScroller


Code:
MovieClip.prototype.easeY = function(y) {
this.onEnterFrame = function() {
this._y = y-(y-this._y)/1.15;
if (Math.abs(y-this._y)<=1) {
delete this.onEnterFrame;
this._y = y;
boot();
}
};
};




// ------------------------------------------------------------

boot = function () {
mc = container.loadMovie("C:/about.swf");
//Next Line Not Needed?
//mc._y = 50;
mc.path = mc;
//Next Line Not Needed?
//mc.link = container;
setRollOver();
};
setRollOver = function () {
this.onEnterFrame = function() {
if (this.mask.hitTest(_root._xmouse, _root._ymouse)) {
slideMenu();
}
};
};
slideMenu = function () {
diffspacing = 160;
diff = this._parent._ymouse - ( this._y + diffspacing );
scale = diff*10/( this.mask._height - 2*diffspacing );
scale = Math.max(0,Math.min(100,scale)); // confine within 0->100
target = -scale*(this.container._height-this.mask._height)/100;
this.arrows.easeY( diff + diffspacing );
this.container.easeY(target);
};


RAW CODE:- thumbMC



Code:
MovieClip.prototype.backwards = function(){
this.onEnterFrame = function(){
this.prevFrame();
if(this._currentframe == 1) delete this.onEnterFrame;
}
}
loader.loadMovie(this.path);
/* Not Needed Anymore?
aux.onEnterFrame = function() {
if(loader._width>0) {
delete this.onEnterFrame;
loader.onRollOver = function(){
delete over.onEnterFrame;
over.play();
}
loader.onRollOut = function(){
over.backwards();
};
}
};
*/Not Needed Anymore?

Scroller Doesn't Scroll When Loaded
Hello, I'm making a new site but I got stuck. I hope someone can help me 'cause I just don't understand what I'm doing wrong.

I made a "site" in which I load the other parts of the site, for example "scroller" (both in attachment). If you open "scroller" you'll see it works just fine (I wish it would only skip one line at a time but that's not that important). When you open "site" it loads "scroller" in it but the scroller doesn't work anymore?!?

What did I do wrong? I guess it has something to do with the referrence path, but I can't find the sollution.

Please help me if you know how to fix it.

Thanx a lot!

Scroller Doesn't Scroll When Loaded
Hello, I'm making a new site but I got stuck. I hope someone can help me 'cause I just don't understand what I'm doing wrong.

I made a "site" in which I load the other parts of the site, for example "scroller" (both in attachment). If you open "scroller" you'll see it works just fine (I wish it would only skip one line at a time but that's not that important). When you open "site" it loads "scroller" in it but the scroller doesn't work anymore?!?

What did I do wrong? I guess it has something to do with the referrence path, but I can't find the sollution.

Please help me if you know how to fix it.

Thanx a lot!

Smoothing Doesn't Work It Oughta Work
Hello!

I am trying to develope this website:

http://anarchy.primalinsanity.com/~villain/nma.rar

Its smoothing effect, however, has mysteriously disappeared. It is only enabled in authoring mode, not if I export the movie. I've tried everything to re-enable it:

1) Changed formats from JPG to PNG
2) Library > Bitmap Properties > Allow smoothing
3) File > Publish Settings > Smooth

But nothing seems to work

Thanks everyone,
Johann

Adding Thumbnails To XML Photogallery Didn't Work?
Hi all,

I've just "completed" the Adding Thumbnails to XML Photogallery tutorial up until the point where it says "If you press Ctrl + Enter now, you will see all of our thumbnails loading in the same spot..." but with one problem, they aren't there, or if they are I can't see them!?

I'm trying to modify the gallery to use a grid style thumbnail layout, however everything to this point has been word for word from the tutorial.

Could this be a FLMX limitation and only work in FLMX2004.

Can someone please help,

Here are the files I'm using, the images.xml will need the paths adjusted.

Thanks

That Scroller Doesn't Stop, I'm Feeling Sea-sick;)
step by step, I'm trying to learn. but now I've got another problem. I've got a sliding menu in a movie clip that activates various movieclips when I press the buttons like the one in
http://www.flashkit.com/movies/Inter...-463/index.php
taking this movie as an example, I'd like to understand
1) if the scrolling of the menu can be activated ONLY when the mouse is on it (Dunno, I really can't figure out HOW )
2) if there is a way to stop it when the mouse is over it; I've tried inputting commands such as on mouseover stop/on mouseout play but probably I'm waaaaaay out from the right path...
can you help me!?

Vertical Scroller Doesn't Loop Perfectly
hi there
i have this vertical scroller (picture scroller)
a big flyer must be viewed up and down, but, when i am at the bottom or at the top of the flyer, the flyer doesn't appear re-appear directly... so the "looping" effect seems very jerky...

this is my coding
// slider
acceleration = 0.1
heightMovie = 14;
//
startDrag("/draggy_mc", true);
middenlijn_y = hoogteMovie/2;
// bw_pics
setProperty("/bw/bw_all_sub", _visible, false);
duplicateMovieClip("/bw/bw_all_sub", "bw_all_1", 1);
duplicateMovieClip("/bw/bw_all_sub", "bw_all_2", 2);
heighteSlider = getProperty("/bw/bw_all_sub", _height);
//
stop();

anybody?

Scroller Component Doesn't Update New Scroll Max *$&#^@^
Ok, I'm posting this after almost 3 hours surfing other threads about the same thing, but no answer.

I'm modifying a guestbook I think I got from here at FK, and my mod includes the scroller component.

when I reload the guest book text from the external file, the scroller doesn't scroll! here's the link:

http://www.mike-watt.com/phpTests/GuestBook.html

notice the black box? click inside the text field and type something. the box does a little animation when you type. I used the "onChanged" function to do that. But the onChanged function doesn't seems to listen to when new text is loaded in. Go ahead, sign the guest book, and after pressing submit, the box don't move when the new entry loads. What is going on here. Macromedia, you are so stupid to not have thought of this!!!!!!!!!!

Please help...

Thanks,

MB

Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
I have a website at wosso.com which I needed a preloader. So currently the site works fine. I am toying with a preloaded, but when I add it the main part of the site does not function.

There are two scenes, PRELOADER and SCENE 1. My preloader includes this script in the first frame of the preloader: ifFrameLoaded ("Scene 1", 105){
gotoAndPlay ("Scene 1", 1);
}


I have also inluded this line at the end of the preloader, but also tried it without this line:

gotoAndPlay ("Preload", 1);

I haven't used Flash in some time and I am not good at scripting. It seems to make sense, but why is it not working when SCnene 1 works fine by itself.
Any sulotion/suggestions?

Thanks,

Wayne

Photo Gallery Scroller Doesn't Roll Back
Hello,

I've done the Photo Gallery Tutorial and the Adding Tumbnails tutorial of this site. With this information I've made a vertical scroller and it works fine!

But there is one problem. I use the scroller on several parts of my portfolio website. When I go to "Webdesign" there are just three thumbs so the scroller doesn't work. That's OK, while three thumbs fits well on my page. W
When I go to "Print" you can scroll while there are 5 thumbs on this page. That's also OK!But when I scroll down to the final thumb of "Print" and then go back to "Webdesign" all the thumbs are gone. The scroller didn''t roll back to his original position.

I've already added:

unloadMovie(thumbnail_mc);

to the code. This avoids that there aren't thumbs from "Print" coming into the scroller of "Webdesign"

Does anybody know how i can fix this?

Thanx!

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!

Scroller + I Can't Get Ity To Work.
I have downloaded this realy cool scroller from Patrick Meneault.

http://www.flashkit.com/movies/Scrip...7263/index.php

I have copied the 3 frames into a MC on my movie. It will work if I put the frames on a new movie in the root but it won't work inside a MC. I have looked at everything on the movie and I can't find the Actionscript.

Can someone help me to get it working, or give me a push in the right direction?

Thanks in advance.

Dan

Scroller Dun Work
Hi all,

I'm having problem displaying the content of my XML driven menu within the scroller component. I can see the menu inside the scroller but the it can't scroll down. Its as if the scroller is jammed.I can't even see the arrow button to the scroller.

My flash setting : player 8; actionscript 2.0

1) My first frame inserts: box.attachMovie("emptyClip","clip",1); << where box is my scroller

2) My linkgage clip, "emptyClip" contains as follow...

var menuXml:XML = new XML();
menuXml.load("menu.xml");
menuXml.ignoreWhite = true;
// "drop" holds the "y" position placement for each created button.
drop = 0;
// "level" determines the next available depth a button can be placed in the holder MC.
level = 0;
menuXml.onLoad = function(success) {
if (success) {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {

item = attachMovie("itemClip", "itemClip" + i, i,{_x:0, _y:20*i});
// place the clip at far left, and space each
// clip 20 pixels below the previous

// the following turns off the hand cursor on mc/btn rollover
item.useHandCursor = false;

// Since the dynamic txt field was placed in it's own MC holder
// with the instance name dyntext, you have to target it here...
item.dyntext.itemLabel.text = menuItem.attributes.name;
item.myUrl = menuItem.attributes.url;

// this starts the button fade in on rollover
item.onRollOver = function() {
this.gotoAndPlay("fadeIn");
}
// this starts the fade back to original position
item.onRollOut = function() {
this.gotoAndPlay("fadeOut");
}
// this will load the appropriate .swf file into the holder clip
item.onRelease = function() {
holder.loadMovie(this.myUrl);
}
}
}
}

3) My xml file is as follow:

<myMenu>
<myItem name="Home" url="fileone.swf" />
<myItem name="About" url="filetwo.swf" />
<myItem name="Stuff" url="fileone.swf" />
<myItem name="More Stuff" url="filetwo.swf" />
<myItem name="Play With Us" url="fileone.swf" />
<myItem name="Play With Yourself" url="filetwo.swf" />
</myMenu>

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