Loop A XML Thumbnail Pane
I am having a very hard time figuring out how to get my video player playlist (scrolling thumbnail pane) to loop the thumbnails so that it never ends. The thumbnails are loaded dynamically through XML. Any help is greatly appreciated! Here is my code: Code: var nc:NetConnection = new NetConnection();nc.connect(null);var titleURL:Array = new Array; // make new title Arrayvar ns:NetStream = new NetStream(nc);startScreen._visible = false;ns.setBufferTime(30);//Buffer/Start Screenvar firstPlay:Boolean = true;ns.onStatus = function(info) { if (info.code == "NetStream.Buffer.Full") { bufferClip._visible = false; if (firstPlay) { ns.pause(); startScreen._visible = true; firstPlay = false; } } if (info.code == "NetStream.Buffer.Empty") { bufferClip._visible = true; } if (info.code == "NetStream.Play.Stop") { v = whoIsOn+1; if (v>=listClips.length) { v = 0; } getNewVid(listClips[v]); if (info.code == "NetStream.Buffer.Empty") { bufferClip._visible = true; } ns.seek(0); ns.pause(); startScreen._visible = true; }};theVideo.attachVideo(ns);//ButtonsstartScreen.startButton.onRelease = function() { ns.pause(); startScreen._visible = false;};rewindButton.onRelease = function() { ns.seek(0);};function pauseIt():Void { pos = ns.position; ns.pause();}function unPauseIt():Void { ns.pause();}playPause.onRollOver = function() { if (this._currentframe == 1) { this.gotoAndStop('pauseOver'); } else { this.gotoAndStop('playOver'); }};playPause.onRollOut = playPause.onReleaseOutside = function(){;if(this._currentframe== 10) this.gotoAndStop('pause');else this.gotoAndStop('play');};playPause.onRelease = function() {if (this._currentframe == 10) { this.gotoAndStop('playOver'); this._parent.pauseIt();} else { this.gotoAndStop('pauseOver'); this._parent.unPauseIt();}};//Loader Barvar videoInterval = setInterval(videoStatus, 100);var amountLoaded:Number;ns["onMetaData"] = function (obj) { duration = obj.duration;};function videoStatus() {amountLoaded = ns.bytesLoaded/ns.bytesTotal;loader.loadbar._width = amountLoaded*152.4;loader.scrub._x = ns.time/duration*152.4;}//Scrubbervar scrubInterval;loader.scrub.onPress = function() {clearInterval(videoInterval);scrubInterval = setInterval(scrubit, 10);this.startDrag(scrub,false,this._y,151.3,this._y,1.1);};loader.scrub.onRelease = loader.scrub.onReleaseOutside=function () { clearInterval(scrubInterval); videoInterval = setInterval(videoStatus, 100); this.stopDrag();};//Mute Button_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());vSound.attachAudio(ns);var so:Sound = new Sound(vSound);so.setVolume(100);mute.onRollOver = function(){ if(so.getVolume() == 100) { this.gotoAndStop("onOver"); } else { this.gotoAndStop("muteOver"); }}mute.onRollOut = function(){ if(so.getVolume() == 100) { this.gotoAndStop("on"); } else { this.gotoAndStop("mute"); }}mute.onRelease = function(){ if(so.getVolume() == 100) { so.setVolume(0); this.gotoAndStop("muteOver"); } else { so.setVolume(100); this.gotoAndStop("onOver"); }}function scrubit() {ns.seek(Math.floor((loader.scrub._x/151.3)*duration));}var vlist:XML = new XML();vlist.ignoreWhite = true;var listClips:Array = new Array();var whoIsOn:Number = 0;var xBegin:Number = videoList._x= 0;vlist.onLoad = function() {var videos:Array = this.firstChild.childNodes;for (i=0; i<videos.length; i++) { var a = videoList.attachMovie("listEntry", "listEntry"+i, videoList.getNextHighestDepth()); listClips.push(a); a._x = a._height*i; a._alpha = 66; loadMovie(videos[i].attributes.thumb, a.tHolder); a.vName.text = videos[i].attributes.name; titleURL.push(videos[i].attributes.desc) //load titles description.text = titleURL[whoIsOn]; //load titles a.numb = i; a.urlLink = videos[i].attributes.url; a.xLoc = (xBegin+(mask._width/2))-(a._x+(a._width/2)); a.onRelease = function() { getNewVid(this); }; a.onRollOver = function() { if (this.numb<>whoIsOn) { this._alpha = 100; this.accent._alpha = 100; this.back._alpha = 0; } }; a.onRollOut = a.onReleaseOutside=function () { if (this.numb<>whoIsOn) { this._alpha = 66; this.accent._alpha = 0; this.back._alpha = 100; } }; a.onRelease = function() { if (this.numb<>whoIsOn) { getNewVid(this); bufferClip._visible = true; } description.text = videos[whoIsOn].attributes.desc; };}xEnd = xBegin-videoList._width+mask._width+5;getNewVid(listClips[whoIsOn]);};vlist.load("http://web.minnetonka.k12.mn.us/Video%20Library/videos_beta.xml");videoList.onRollOver = scrollPanel;function panelOver() {speed = 10;this.onEnterFrame = scrollPanel;delete this.onRollOver;}var b = mask.getBounds(_root);function scrollPanel() {if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) { this.onRollOver = panelOver; delete this.onEnterFrame;}var xDist = _xmouse-150;videoList._x += -xDist/speed;if (videoList._x>=xBegin) { videoList._x = xBegin;}if (videoList._x<=xEnd) { videoList._x = xEnd;}}function getNewVid(who) {ns.play(who.urlLink);whoIsOn = who.numb;description.text = titleURL[whoIsOn]; //load titlesz = who.xLoc;if (z>=xBegin) { z = xBegin;}if (z<=xEnd) { z = xEnd;}easeList(z);for (i=0; i<listClips.length; i++) { if (listClips[i].numb == whoIsOn) { listClips[i]._alpha = 100; listClips[i].frame._alpha = 100; listClips[i].back._alpha = 0; listClips[i].accent._alpha = 0; } else { listClips[i]._alpha = 66; listClips[i].frame._alpha = 0; listClips[i].back._alpha = 100; listClips[i].accent._alpha = 0; }}}function easeList(where) {delete videoList.onRollOver;delete videoList.onEnterFrame;videoList.onEnterFrame = function() { xDist = (videoList._x-where)/7; videoList._x -= xDist; if ((videoList._x<(where+1)) && (videoList._x>(where-1))) { delete videoList.onEnterFrame; videoList.onRollOver = panelOver; }};}
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-26-2007, 04:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Scroll Pane And Thumbnail Gallery
Hi.
I have an example of multiple .jpg loaded in a thumbnail gallery. Each .jpg has his own preloader and when you click on it it shows up at the right.
The thumbnail works just fine when I put the movie clip on the main timeline. When I try to put it inside a Scroll pane doesn't work anymore.
I'm sure this is a stupid error but I can't figure it out! Can anyone help me???
In the .fla file I have both ways (with scroll pane and without it)
* TOP : Scroll Pane with movieclip (doesn't work)
* BOTTOM : Moviclip in main time line (works)
Thanks for any help
Sasa
Thumbnail Navigation W/ Scroll Pane Question
I am using a Scroll Pane in Flash MX (horizontal scroll only) and I want a MC to reflect the movement of the Scroll Bar when it is moved.
What I have is a large map within the Scroll Pane and above is a thumbnail version. Over this thumbnail version I want a box that moves to show where on the large map you are.
Can this be done using the Scroll Pane?
Thanks!
Loading Images With XML In Vertical Scrolling Thumbnail Pane
Hi,
Is there someone who can help me?
I've written a php-script to create an xml-file for my images.
I want to use the xml to load images automatic in my flash movie.
I used the tutorial Scrolling Thumbnail Panel and converted it to a vertical scroller.
Now I don't want to use hardcoded images, but with the xml.
Is there someone who knows how to start, because I am new in the flash-thing.
Thank you!!!
my xmloutput: http://trekpaardpromotie.be/GHANNAH_php/xml_images.php
the application I want the xml to load in: http://trekpaardpromotie.be/GHANNAH_php/img/scrollertest2.swf
[AS2] Thumbnail Loop
Help! I have made a image-viewer. I've this AS for the viewer:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
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_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
thumbPrev();
};
next_btn.onRelease = function() {
nextImage();
thumbNext();
};
/////////////////////////////////////
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;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function thumbNext() {
mc = this.thumbnail_mc;
if (p<total-1) {
var nieuwsTween:Tween = new Tween(mc, "_x", Strong.easeOut, mc._x, mc._x-170, 0.5, true);
nieuwsTween.onMotionFinished = function() {
this.previous_btn.enabled = true;
this.next_btn.enabled = true;
};
}
}
function thumbPrev() {
mc = this.thumbnail_mc;
if (p<total-1) {
var nieuwsTween:Tween = new Tween(mc, "_x", Strong.easeOut, mc._x, mc._x+170, 0.5, true);
nieuwsTween.onMotionFinished = function() {
this.previous_btn.enabled = true;
this.next_btn.enabled = true;
};
}
}
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p],1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p],1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0],1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+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_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;
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k],"thumbnail_mc.t"+k);
}
Now i would like to make a loop for the thumbnails so they don't have a beginning or end. (Now when i scroll to the right the thumbnails stop at the last thumbnail, i want it to begin at the first thumb again).
I'm also trying to make that the middle thumbnail represents the photo in target_mc. Anyone has a idea how i can do that!?
Thanks!
William
XML Thumbnail With Loop
I have created a box with papervision, and now I wanted to load in a thumbnail to 1 of the surface of the box. And duplicate the box to the amount of the images in the xml file. How can i do it?
Code:
sFront=new MovieAssetMaterial("sfront",false);
sBack=new MovieAssetMaterial("sback",false);
sTop=new MovieAssetMaterial("stop",false);
sBottom=new MovieAssetMaterial("sbottom",false);
sLeft=new MovieAssetMaterial("sleft",false);
sRight=new MovieAssetMaterial("sright",false);
//loads in the MC surface
var materialsList:MaterialsList=new MaterialsList;
materialsList.addMaterial(sFront,"front");
materialsList.addMaterial(sBack,"back");
materialsList.addMaterial(sLeft,"left");
materialsList.addMaterial(sRight,"right");
materialsList.addMaterial(sTop,"top");
materialsList.addMaterial(sBottom,"bottom");
This is where I duplicate my box
Code:
for (var i:uint=0; i < 20; i++) {
//cube = new Cube(MaterialList applied to object, width, depth, height, wSegments, dSegments, hSegments);
cube=new Cube(materialsList,40,5,42,3,3,3);
p.addChild(cube);
cube.x=Math.random() * 980 - 480;
cube.y=Math.random() * 730 - 350;
cube.z=-70;
cube.rotationZ=Math.random() * 360;
}
The for loop i use is to duplicate the box, but what if I want to load the image to 1 of the surface instead of the box?
Thumbnail Scrollbar Loop?
For those who are familiar with the scrolling thumbnail gallery tutorial:
http://www.kirupa.com/developer/mx2004/thumbnails.htm
Can anyone provide me with some code on how to make the scrolling thumbnails loop infinitely? So that when you reach the last picture on the scrollbar, it will loop to the first picture?
A good example is www.wynnlasvegas.com
Thanks everyone!
Loop Lee's Thumbnail Scroller
Lee's thumbnail tutorial is great, but I was wondering if there was a way to have the scroll endless, so it doesn't stop. The first image or the last image respectively appears at the end of the scroll and the cycle continues.
Is this possible abd how would I achieve it?
Thanks
Mr Dibbly
Load Thumbnail Image 1 By 1 Using For Loop?
I have seen some people worked out some photogalleries which load the images in thumbnail 1 by 1...
I'm interested to know if I could do it in a "for loop"?
my work here:
http://www.eo.com.hk/album/series_1/
all the thumbnail loaded at the same time.... I use "for loop" to load the thumbnail, is there any way to make it load the image 1 by 1, but still keeping the using "for loop"?
thanks!
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);
}
Unending Thumbnail Gallery Loop
hi there first of all i wanne say that i dont have to much exsperiens in flash.
the only things i made so far is 3 flash games. bowling game,pong and a shooting gallery
and i made 1 programm named a flash gallery using a tutorail.
now to the question ad hand wich i have bin struggling for almost 3 days now.
how do i make a xml gallery wich has a never ending scroll loop in it.
it has to be something like this.
now i already made my self the gallery with thumbsnails yet iam unable to find a tutorial how to make such a loop for my self.
does any one here know one or can he/she help me on the matter it self?
thanks in advance
Edit: almost fergot iam using this gallery with xml
Wont Loop (thumbnail Slideshow With Transitions)
Hey everyone
Well, I went threw he tutorial for thumbnails, and then added in the code to make it a slideshow. But then I wanted to add in transitions. So I found some code on here by scotty to do that, and tried to mix it in with the code from the thumbnails and slideshow, and now it doesn't seem to work right. What happens is the slideshow wont start on its own. You have to press next for it to start. The first slide also has another problem. Once the slideshow starts, the description says "Test" and so does the slide number. And once the slideshow gets to 10/10, and starts over, the picture doesn't change with the description and slide number.
Here is my Actionscript. Hopefully someone knows what I did wrong.
ActionScript Code:
delay = 3000;function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; image = []; description = []; link = []; blank = []; thumbnails = []; 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; link[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue; blank[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue; thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue; thumbnails_fn(i); } id = setInterval(preloadPic, 100); } else { content = "file not loaded!"; }}xmlData = new XML();xmlData.ignoreWhite = true;xmlData.onLoad = loadXML;xmlData.load("images.xml");/////////////////////////////////////var p = 0;var current;var k = 0;function preloadPic() { clearInterval(id); var con = picture.duplicateMovieClip("con"+k, 9984+k); con.loadMovie(image[p]); preloader._visible = 1; preloader.swapDepths(con.getDepth()+3); con._alpha = 0; var temp = _root.createEmptyMovieClip("temp"+k, 99+k); k++; temp.onEnterFrame = function() { var total = con.getBytesTotal(); var loaded = con.getBytesLoaded(); percent = Math.round(loaded/total*100); preloader.preload_bar._xscale = percent; if (con._width) { preloader._visible = 0; con.onEnterFrame = fadeIn; delete this.onEnterFrame; } };}///////////////////////////////////// MovieClip.prototype.fadeIn = function() { if (this._alpha<100) { current._alpha -= 10; this._alpha += 10; } else { current._visible = 0; current = this; delete this.onEnterFrame; }};function nextImage() { p<total-1 ? (p++, preloadPic()) : null; desc_txt.text = description[p]; picture_num(); slideshow(); }function prevImage() { p>0 ? (p--, preloadPic()) : null; desc_txt.text = description[p]; picture_num(); slideshow(); }function picture_num() { current_pos = p+1; pos_txt.text = current_pos+" / "+total;}previous_btn.onRelease = function() { prevImage();};next_btn.onRelease = function() { nextImage();};function firstImage() { if (loaded == filesize) { picture._alpha = 0; picture.loadMovie(image[0], 1); desc_txt.text = description[0]; picture_num(); slideshow(); }}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);}function slideshow() { myInterval = setInterval(pause_slideshow, delay); function pause_slideshow() { // my changes start ////////////////////////// trace("myInterval="+myInterval); // here's your code (stringy) for (var i = 1; i<100; i++) { clearInterval(i); } //clearInterval(myInterval); delete myInterval; // my changes end ////////////////////////// if (p == (total-1)) { p = 0; firstImage(); } else { nextImage(); } }}
Thanks for any help
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.
Adding Thumbnail Tutorial - Make A Continues Loop
Hi
can somebody advise me how to alter the script of Kirupa's "Adding thumbnails" so the thumbnails will scroll continuesly and only scrooled by previous and next buttons?
What I want to accomplish is something like this http://www.normann-copenhagen.com/ - click on designers and sort of endless scroll with open first opens. Any ideas how to do something like this?
THX
AS3 - XML Thumbnail In Cube Surface + Loop Cube
I was trying to load thumbnails into one of the surface(front) of my cube, and duplicate the cube amount according to the numbers of images I have in my images.
This is what i have so far and its not working.
ActionScript Code:
var materials:MaterialsList = new MaterialsList(
{
front: new MovieAssetMaterial( "surFront", false, true ),
back: new MovieAssetMaterial( "surBack", false, true ),
right: new MovieAssetMaterial( "surRight", false, true ),
left: new MovieAssetMaterial( "surLeft", false, true ),
top: new MovieAssetMaterial( "surTop", false, true ),
bottom: new MovieAssetMaterial( "surBottom" , false, true)
} );
var surfaceArray:Array = ["front","back","right","left","top","bottom"];
//load into surfaceArray[0]
var xml:XML;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
xml = XML(event.target.data);
xmlList = xml.children();
trace(xmlList.length());
for (var i:Number=0; i<xmlList.length(); i++) {
for (var j:Number = 0; j<surfaceArray.length; j++) {
cube = new Cube( materials, 40, 5, 42, 10, 10, 10 );
cube.name = "cube" + i;// set instance name
trace(cube);
cube.x=Math.random() * 980 - 480;
cube.y=Math.random() * 730 - 350;
cube.z = -70;
cube.rotationZ=Math.random() * 360;
p.addChild( cube );
}
}
Xml Thumbnail Gallery - How To Leave Thumbnail Blank?
There was a thread a few days ago on how to leave the caption or description blank. If anyone knows could you explain how to leave the thumbnail and/or url blank for some and to show for others? Where if there is no information that flash can read a field that is undefined as ""?
FLV Video Thumbnail + Thumbnail Gallery With LinkIDs From XML
Let's say for instance, our XML file:
<videos>
<video linkid="AK0001" thumb="http://www.site.com/pathtofile/filename.flv">
<link>http://www.site.com/pathtofile/filename.flv</link>
</video>
</videos>
Is it possible to use the source flv file as the thumbnail? Or, is it better to create a thumbnail of all the content?
With this said, how would I create the event handler to satisfy when each thumbnail is clicked, it stores it's linkid in the $_GET variable?
Thank You,
b0gui
Thumbnail Scroller With Titles For Each Thumbnail
I've got a tutorial from kirupa (http://www.kirupa.com/developer/mx2004/thumbnails.htm)
what i'm trying to do is give ech thumbnail a title below its image but i cant manage to do it. I think I know hat i need to do, that is assign/createe a dynamic text field within the image_mc and assign the title from the array at the beginning. But i cant seem to get it to work
i can do it if i just put a text field on the main time line but then this is only the title for one
heres the code for the thumbnails:
Code:
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.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);
}
can any one help?
Much appreciated
Thumbnail Scroller With Titles For Each Thumbnail
I'm trying to modify the Gallery with a thumbnail scroller thats on here.
What I want to do is add it so that each thumbnail has a title below it as well.
Does anyone know if this has been covered anywhere? i@ve spent the weekend searching google and here and i'm at my wits end now..
Any help or pointers much appreciated.
Cheers in advance
Help With This Pane Im Getting?
I am a beginner in flash and truly appreciate any assistance. I will tell you of this pane i m getting....
I have a combo box component with an action attached to it on the first frame on the top layer (i have 3 layers):
//Example menu loads external movie into content movie
menuCombo1.addItem("", "")
menuCombo1.addItem("base", "base_movie.swf")
menuCombo1.addItem("buy", "buyswf")
menuCombo1.addItem("see", "see.swf")
menuCombo1.addItem("view", "view.swf")
menuJump = new Object()
menuJump.change = function(){
_root.contents.loadMovie(menuCombo1.value)
}
menuCombo1.addEventListener("change", menuJump)
//
I have an empty movie clip with an instance name "contents" on the layer below the combo where the combo loads external movie into. And the actionscript above works ok if tested.
Now on the lowest layer I have a scrollPane component with an instance name "body". here's my real problem. I wish to load the external movie from the combo box into the scrollPane called body.
Can anybody please tell me how i can change the actionscript so to load the external swf from the combo box into the scrollpane instead of loading into the empty movie clip. Thanks,
How Do I Define The Greatest _x Position Based On A Loop, Assuming I Know The Last Element Of The Loop?
Hello,
This may be complicated,
I've a loop that creates emptyMovieClips
then I use one function to onRollOver _xscale them += 10
Now I want to move another movieClip based on the greatest _x position of my previously _xscaled elements, how do I do that?
example
for (var i = 0; i<my_array.length; i++) {
_root.menu_.createEmptyMovieClip("btn"+i, i+1);
}
//
_root.menu_["btn"+i].onRollOver = function() {
this._xscale += 10;
//
MY_DRAGER._x = HIGHT._x;
}
Can this be done?
Thanks,
I Would Like My Sound Loop To Continously Loop Without Looping Over Itself When I Repeat My Images.
I have a sound loop moving along with my flash images. When the flash images finish and I send it back to frame 1, my sound doubles. How can I play my sound loop once, but allow my images to continously loop.
Is there away to just run one loop of sound, and let the image aspect continue to loop.
I would like my sound loop to continously loop without looping over itself when I repeat my images.
Make One Element Loop Without Making Enitre Movie Loop?
i'm trying to make one element continue looping without making the entire movie loop... here's what i mean..
i have a layer that i've name actions which i've asigned a stop(); to at the end of the animation. but i want the red pulsating dot to continue looping/ animating ... to give you an even better idea, here's the swf file...
http://www.push1.com/roster_art_gal.swf
cheers!
LoadVars In A For Loop Not Executing .load Function Until For Loop Completed?
Ok so I have a simply for loop: ID[i] is a global array
Code:
for (i=0;i<12;i++)
{
var loadInfo:LoadVars = new LoadVars();
loadInfo.onLoad=function(success:Boolean)
{
if (success)
{
trace("whatever:"+loadInfo.myname);
}
else
{
trace("Nope");
}
loadInfo.load(ID[i]+".txt");
}
the problem I'm having is that the function doesn't execute until the for loop completes and then it executes 12 times in a row. Output is 'whatever: undefined' 11 times and then 'whatever: Bobble' (which corresponeds to the last .myname value as it should). Why is this? And how can I fix it? To be continued...
~NH
Scroll Pane
Does anyone know how to use the 'scroll pane' component? I thought it was like the scroll bar, where you can drag it to the text field and it adjusts itself to the field. I read the scroll pane was drag and drop, but nothing I drag to it works. Am I doing something wrong?
yeffer
Scroll Pane
Hi all,
Is there any way to scroll down a scroll pane with a button? Or at least to jump for example 50px down within the Scroll pane.
Thanks!
Natsurfer
Scroll Pane
has anyone got the code to duplicate a movie clip within a scroll pane please?
Scroll Pane
I am going to be creating a web site and I need a scroll pane on it. How would I go about doing an easy scroll pane that would match (so I can change colors). I just got flash and I dont understand the fancy actionscript talk, so the simplist chat would be the best for me. Thanks in advance !
Scroll Pane Help Please
i recently posted over the weekend about trying to use scroll bars for text and images and the moderator estudioworks was kind enough to point me in the right way by telling me to use scroll pane.
now the problem i have is:
a: text and images are exceeding the scroll bar boundries. by this i mean, say i have 600x600 stage and the scroll bars are defined at 300x300, the text and images start in the box but as soon as you start scrolling down, the text go beyond the scroll bar boundries (as opposed to "disappearing" and go over the background graphics.
b: i am also trying to customize the skins for the scroll pane which some pretty bad results. is there a tutorial out there someone can point me to?
c: lastly i'm also trying to get rid of the default white background the scroll pane uses, i'm thinking this is also a skin, but i can't seem to find it.
thanks in advance
lawrence
Scroll Pane
on a scrollPane.loadScrollContent where the image size is bigger than the scroll pane how do you set the scroll bars. not sure what's going on because even though it loads the jpg when i debug it the loadContent is undefined as are content hieght and witdth.
Code:
if (imagepath != "No Image Found For This Record" or undefined) {
this.attachMovie("FScrollPaneSymbol", "iBar", 10);
this.iBar._x = 575;
this.iBar._y = 0;
this.iBar.setSize(400, 250);
this.iBar.loadScrollContent(imagepath);
this.iBar.refreshPane();
}
any assistance is appreciated.
Pane In The Arse...
if i do a scrollpane.loadScrollContent(url) and point to a local object it resizes and handles things perfectly fine. however, if i point the url to a full path (ie http://otherserver.com/images/theimage.jpg) it will load the image so that i can see it but the scroll pane does not function. i tried with the regular scroll pane and with the draggable scroll pane to the same result. with the draggable scrollpane you actually get the bounding box and everything. you can even drag the image around from the drag tab on the scroll pane. but you can't scroll the image. in fact the image extends beyond the bounding box. is this a glitch? is there a fix?
Scroll Pane Please Help
Hi,
First I create an mc that has basically a bunch of Thumbnails, which I attach from the library. Every Thumbnails has a text field associated to it. All of it get's created properly, but as soon as I set it to to scrollPane using setscrollcontent, The Text is there but the Thumbnail(attached .gif from the library is not visible.
Any Idea why? Is this not possible?
Thanks
MX Scroll Pane
Hi all,
Ever have one of those days where your head is just numb? Today is such a day.
For the life of me I can't do this-
dynamically load a jpg into a movie clip
dynamically Load this movie clip into the scrollpane
the idea is to create a slideshow with a scrollpane down the bottom with thumbnails that have been dynamically loaded from a folder into the scrollpane, then once you click on a thumbnail a large jpg will dynamically load into a movieclip on the stage.
I just can't seem to get my head around it today.
thanks in advance....
SWF In Scroll Pane
Hello All,
Hope somebody has an idea of how to fix this. I have the scroll pane component that has a SWF loaded into it when it loads. The SWF in the scroll pane has multiple frame labels on it's timeline.
I am trying to tell the SWF in the scroll pane to gotoAndStop() on a frame label that is pulled from an array.
Code sample:
PHP Code:
level0.content_sp.loadTemp.gotoAndStop(curPage_array[0]);
For some reason it will not reference it in any way.
Any ideas?
Any help is greatly appreciated.
Thanks,
Brian
Scroll Pane
i cant figure out how to get good text in a text pane, how can i do that with the scroll pane component?
Joe
Scroll Pane Help
hey all, i have still been trying btu am not sure how to get the scroll pane to work on flash mx 2004. how do i do that?
Joe
Scroll Pane Help?
Hey. well, i am having some trouble. I am making a site in dreamweaver, and trying to use flasha s well, and i want to ahve a spot on the front page where i can post news and updates which are relative to my site. i am also trying to make my site so that you will never have to use the scroll bar to the far right in explorer, but only a flash scroll bar which will alwasy be in the middle ofa page, so that i an have every page looking basically the same except for the content in that particular scrollpane.
so, my problem i this. i can mke a 700 px X 350 px scroll pane, by dragging it in from the components list and resizing and whatnot, but cannot get the scroll buttons on it, and have no idea how to add content further down the scroll pane, that you will ahve to scroll down to to see it... i think that makes sense. can someone help me out?
Scroll Pane Help?
Hey. well, i am having some trouble. I am making a site in dreamweaver, and trying to use flasha s well, and i want to ahve a spot on the front page where i can post news and updates which are relative to my site. i am also trying to make my site so that you will never have to use the scroll bar to the far right in explorer, but only a flash scroll bar which will alwasy be in the middle ofa page, so that i an have every page looking basically the same except for the content in that particular scrollpane.
so, my problem i this. i can mke a 700 px X 350 px scroll pane, by dragging it in from the components list and resizing and whatnot, but cannot get the scroll buttons on it, and have no idea how to add content further down the scroll pane, that you will ahve to scroll down to to see it... i think that makes sense. can someone help me out?
Scroll Pane
Hi there, im trying to use the Scroll Pane UI component in flash MX to make a movie clip scrollable. Thing its the first time i have ttried this and the tutorials in flash were useless. I drag a pane onto the frame but dont know how to get it to display my movie clip inside. Can anyone help?
Thanks, ste.
Scroll Pane
ok this might sounds really stupid but how the hell do you use the scroll pane component?????? ive tried scripting it to control a movie clip, a graphic symbol you name it ive tried it it just displays as a white box in flash mx and doesnt scroll anything!
thanks for any help!
Scroll Pane
i have a scrollpane sitting inside a movie.
I have another movie with a paragraph of text and have exported it for actionscript
In the Scroll Content Properties of my scrollpane, i have given the linked name of my text movie. But but but..Why won't it work?
Is it the fact that the scrollpane is nested in a movieclip cos i've done it before without nesting it and it has worked?
Scroll Pane
I am using Flash MX and i am wanting to use a scrolling pane to handle the site that i am developing. I purchase a template, but i am having an issue of figuring out how i put the site into the pane, so that the viewer will have to scroll to the bottom and scroll left or right.
Is there a tutorial for this that anyone knows of, or if someone has time to briefly explain it to me, i would appreciate it.
Thanks everybody...
Ren
Scroll Pane
I'm wanting to create a portfolio page that includes thumbnails that you can click on and then up pops a large image similar to the way they do on www.greyscale.net I don't care about the moving circles just the pictures
Scroll Pane Help Please
I would appreciate any help that can be given on the following problem
I would like to create a scrollbar for content which contains both images and text. I have found this tutorial on the tutorial section of this site.
http://www.flashkit.com/tutorials/In...-683/more2.php
I can easily create this but it isn't what I am looking for totally
I would like to have buttons which allow me to scroll when they are pressed (up and down arrow buttons)
I have and example of this at the following link
http://www.pixelranger.com/
The example is the news content section on this site. It has a nice working scroll bar and it can use both images and text in the scroll content (most likley a movie clip being scrolled)
Does anyone have an idea as to how i can acheieve this ? As I have said before all help is much appreciated.
Scroll Pane
Help please,
What is the code to define the scroll content of a scroll pane in action script?
Cheers....
Scroll Pane Help
how can I make the scroll pane background transparent? And how do I get ride of the border around it.
Scroll Pane
Does anyone know how to get rid of that annoying border around the scroll pane. I thought by me changing the opacity in the existing box it would do it. Everytime I preview the movie the border appears. Please Help
Scroll Pane
Hi, I have used the scroll pane before and know that to use it you must check the export for actionscript under the linkage box. Well i have done this for a movie clip, but it will not show up. Do all the symbols in the movieclip have to be checked as well? I wanted to ask before I went to this long task. (there are a LOT of symbols)
Thanks!
|