ActionScript 2.0 :: Thumbnails Change Position On 2nd Load?

Mar 15, 2007

I'm building an XML based gallery, and I used the kirupa tutorials for that (both of them).but I wanted a grid look for the thumbnails and I found this great post by ikim just for that:So I managed to suit the code to my gallery and everything is going good.but there is one problem:when I press the button that loads the XML (WITH THE THUMBS), they load like they supposed to:but when I press again on the button, they load like this:and stays like this.. Why is that?here is the complete code I use to load the images and thumbnails:

Code:
function loadXML(loaded) {
if (loaded) {

[code].....

View 2 Replies


Similar Posts:


ActionScript 1/2 :: XML Gallery - Loaded Thumbnails Not Placed At Original Position

Jan 23, 2010

I have made a gallery with xml, and my problem is that when the thumbnails are loaded they move on the Y axis and doesn't want to be in their original placed position. I am attaching a zip with my problematic sample to see what i mean.
Attachments: another_problem.zip (147.0 K)

View 2 Replies

ActionScript 2.0 :: Adding Thumbnails Tutorial - Position The Thumbs?

Feb 11, 2006

There is this great tutorial here on kirupa where you add thumbnails to a XMLNow, everything works fine with horizontal pictures, but when i add vertical images the thumbs positions gets messed up. now, what i want to do is when it loads the thumbnails it should get the width of the previous thumbnail and position the next thumbnail right after it plus 5 pixels, then everything should work nicely. (I've already fixed how the big image gets positioned with horizontal/vertical images,If someone can point me in to right direction where the positioning of the thumbs are being made, then maybe i can fix it myself.

// EDIT
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;

View 1 Replies

ActionScript 2.0 :: Scroller - Reset The Position Of The Thumbnails Back To The Beginning

Apr 3, 2008

I've got 3 pages each with their own portfolio loaded dynamically from an XML file. Everything is working great with the thumbnails i added using the "adding thumbnail" tutorial. There's only one quirk I can't figure out. If you've scrolled to the end of the thumbnails on the first portfolio, the scroller stays in the same place when you go to the next portfolio rather than reloading back at the beginning. I hope that makes sense because it's hard to explain, but the site is [URL] here's the partial code for the thumbnails...

[Code]...

View 1 Replies

Way To Change Thumbnails

Jun 18, 2010

I am very much new to the photography game and even newer to building a website, for which I have been staring at my computer for hours upon end. So in the end I decided to spend a few bucks and splash out on a template from [url]... but now I am struggling with the small thumbnails on the main page. I was wondering how can I change them so that I can either have thumbnails of some form of significance rather than some randomness. You will see what I mean when you get to the website. (Its still a work in progress if that!!)

I had given up on this website until I came across this forum. I had started on making sliding thumbnails with a gallery. Is there anyway of incorporating this on the website? I really like [url]...website and wondering if if there is a tutorial out there to make something similar since I have done the gallery and slide thumbnail..i just have no clue how to get the photo on the first page and the writing etc.

View 3 Replies

ActionScript 3.0 :: Record The Current Position Of Any Of The Items Item In Order To Use That Data To Change The Position Of The Item After The User Clicks?

Jan 2, 2010

If I have several items that move across the screen but the user can click any of them at any time, how do I record the current position of any of the items item in order to use that data to change the position of the item after the user clicks?

This is what I am doing: I have 11 images that slide accross the screen. The user can click any of them at any time. When he clicks one I am scaling the image so it looks like it is comming forward (z axis) and then the rest of the images are scaled down so it looks like they are going back on z axis. So what I am trying to do is get the current position of the image when the user clicks the image so that I can use that to correctly estimate the scaling and moving of the image to make it look like it scales from the center and not from the top left corner. So if have a variable that gets the current position of the image being clicked I'm thinking I can change its position using something like: x = currentposition + -45;

View 9 Replies

ActionScript 3.0 :: Load Different Thumbnails Into Different Movieclips?

Jun 29, 2009

I'm creating a gallery and having a problem loading thumbnails into different MovieClips. I have all the MCs stored into an Array. I could load them if I wanted to type out:

var thumbLoader1:Loader = new Loader();
movieClipName1.addChild(thumbLoader1);

but I would think there's a more dynamic way. Right now Im stuck at:

[Code].....

I tried switcing the var "image" with a name from the "imageThumbNames" array but that would've been too easy.

View 3 Replies

ActionScript 2.0 :: Load Some Thumbnails Into A ScrollPane Via XML?

Oct 10, 2007

I am trying to load some thumbnails into a ScrollPane via XML. I have all the thumbnails loaded but like so many other people they just sit on the top of the ScrollPane in the top left corner of the Stage.

Code:
var thumb_spacingY = 140;
var thumb_spacingX = 40;
menuXml = new XML();

[Code].....

View 9 Replies

ActionScript 3.0 :: Fading In Thumbnails As They Load?

Aug 3, 2010

I know I've seen a tutorial for this before, but I just cant seem to find it. I have many thumbnails being placed into a container and I would like each thumbnail to fade in as it is placed. Should I be using an Event.COMPLETE listener and then tween the alpha of currentTarget or something?I assume the code would go in/around here:

function thumbLoaded(e:Event):void{
var my_thumb:Loader = Loader(e.target.loader);
container_mc.addChild(my_thumb);

[code].....

View 2 Replies

ActionScript 2.0 :: Load Thumbnails From A XML File?

Mar 30, 2004

Ideally I would like to do the following:

1.Load thumbnails from an XML file.

2.On click load the actual image which again is generated via XML file.

Now in the past I have used XML for a menu system, but I'm finding it hard to come up with this by myself from scratch.

I can't seem to break the concept of how I would set this up.

View 3 Replies

ActionScript 3.0 :: ScrollPane>MovieClips>Load XML Thumbnails?

May 26, 2011

I'm new in AS3 and i'm having some problems. I'm trying to put thumbnails that are load by xml inside a ScrollPanel.

What happened is that the ScrollPanel didn't have a scrollBar and didnt scroll. I thought that if i put each thumbnail inside a MovieClip and set the height maybe would do the trick. But things got worse because i couldn't be able to put the thumb's inside de MC's. Just put them in front

[Code]...

View 0 Replies

ActionScript 2.0 :: [FXM 2004] - Load Thumbnails From An XML File

Mar 30, 2004

1.Load thumbnails from an XML file.

2.On click load the actual image which again is generated via XML file.

Now in the past I have used XML for a menu system, but I'm finding it hard to come up with this by myself from scratch. I can't seem to break the concept of how I would set this up. If anyone can lead me in the right direction with a link or example etc,

View 3 Replies

ActionScript 2.0 :: Loading Bar To Load Thumbnails Of Images,

Jun 4, 2007

url....and they are using some kinda loading bar to load thumbnails of images, actually i saw that i many site, and i am bit curious about it.could any one help me out to code this loading bar?

View 3 Replies

ActionScript 2.0 :: Show Or Load Thumbnails OnRollOver?

Jul 29, 2007

I'm using Flash MX 2004 and actionscript 2.0 and have been working with the xml and adding thumbnails to the photo gallery tutorial in Kirupa. What I'd like to do is only show the thumnails onRollOver and then have them go to open a new page outside of the flash site onRelease. So far I found one solution for the onRollOver but I'm not sure it's the best one:

Code:
clip.onRollOver = function() {
this._alpha = 100;
};
clip.onRollOut = function() {
this._alpha = 0;
};

This works great but with one big hitch. It loads all the thumbnails first and then once I run over all of them it hides and shows them onRollOver and onRollOut. Is there a way to hide them when the page first loads and then only start showing them onRollOver? Is there a way to create a mask hiding everything until onRollOver or possibly a setting for the initial mc.borderFill that would create that effect? Or would it be better to try to figure out how to load them onRollOver. The other part is the link to another site onRelease. I have the links setup in my xml but not sure how to set up a geturl onRelease with _blank to read into the actionscript. I'm very new to working with xml and actionscript.

View 3 Replies

ActionScript 3.0 :: Dynamically Load 10 Jpeg Thumbnails?

Feb 10, 2009

Suppose I want to dyanamically load 10 jpeg thumbnails. I have given them files names "image0.jpg", "image1.jpg", "image2.jpg", image3.jpg" and so on.Now, I might write out the code to do it ten times, like this:

var image0:loader = new Loader ();
image0.load(new URLRequest ("images/image0.jpg);
var image1:loader = new Loader ();
image1.load(new URLRequest ("images/image1.jpg");

But it would be much better if I could write out it out in a loop, and have the actionScript assign names to the variables. I don't know actionscript so well, but I feel I want to have something like this:

var [name+i] :loader = new Loader();
[name+i].load(new URLRequest ("images/"+[name+i]+".jpg");

Now I've just made that code up, but there is some logic in it, which I hope makes my question clearer.

View 12 Replies

ActionScript 3.0 :: Image Gallery Using XML To Load Thumbnails And Images

Mar 5, 2008

I am building a website with an image gallery using XML to load thumbnails and images.

Firstly, I was going to try to make the thumbnails act like buttons, so the mouse cursor would change to a little pointing finger like it does in buttonmode but i could not get this to work.

Secondly, I also wanted the alpha properties of the other buttons to reduce to about 0.75 to highlight the selected thumnail that would stay at its full alpha value of 1. Yet again i could not get this to work either.Can you build this type of functionality into the imported xml data or am I just kidding myself here?

View 10 Replies

ActionScript 3.0 :: Dynamically Load Thumbnails To Horizontal Movieclip?

May 2, 2009

I'd like to dynamically load thumbnails into a horizontal movieclip at the bottom of an image gallery to then allow me to load an image by clicking the thumbnails. I found a tutorial tooad the thumbnails to the stage but I am not sure how to load them into the thumbs movieclip. Here is the code I am using:

var imageLoader:Loader;var xml:XML;var xmlList:XMLList;var xmlLoader:URLLoader = new URLLoader();xmlLoader.load(new URLRequest("xml/murals.xml"));
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);

View 18 Replies

Actionscript 2.0 :: Scrolling Thumbnails And Using AttachMovie To Load A Clip

Apr 6, 2009

I used the scrolling thumbnails to make a buttons that use attachMovie to load movieclips from the library to the stage. I think i have put it together correctly but nothing is loading into the holder.

i was doing testing on the first 2 thumbnails the first 2 chairs in the scrolling thumbnails
I wanted it to load movieclips from the library to the stage in a designated holder

here is the code i used for the scrolling thumbnails-

Code: Select allpanel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;

[Code].....

View 1 Replies

ActionScript 2.0 :: Kirupa's XML Gallery - Load Backgrounds For The Thumbnails?

Feb 28, 2008

Is it possible to load backgrounds for the thumbnails in tutorial http:[url]...Now I have a mc containing multiple white backgrounds at 65x65px, which loads and places it under the loaded thumbnails (like a mask), but I would rather like it to load a singel mc, seperatly for each thumbnail. How can I do that?

View 1 Replies

IDE :: Movies Load On Top Of The Thumbnails Movieclip - Showing Overlap

Mar 31, 2009

I have several mcs that load with the following command:

[Code]....

Base mc is my empty container movieclip. Basically I have a gallery with thumbnails that load a movie with the appropriate gallery content. The issue is, these movies load on top of the thumbnails movieclip, showing overlap. I could just cover the overlap but I can still click on the buttons in the background. How can I make it so the new movies are higher level or depth than the base movie clip?

View 5 Replies

Actionscript 3.0 :: Dynamically Load In .png Files As Thumbnails For An Image Gallery?

Nov 19, 2010

I'm developing an app that needs to dynamically load in .png files as thumbnails for an image gallery. I have studied up on the bitmapData.hitTest() method for being able to setup an alpha test in order work around the .png bounding box issue, but have a problem.

I get an as3 error 2005, which OK I can understand in some cases, but it is pointing to a parameter that makes no sense at all. Here's the error:

ArgumentError: Error #2005: Parameter 0 is of the incorrect type. Should be type BitmapData.
at flash.display::BitmapData/hitTest()
at folio_fla::MainTimeline/checkAlphaForHit()

View 2 Replies

ActionScript 3.0 :: Scroll Thumbnails By Scrolling The Mouse Left Or Right Over The Thumbnails?

May 9, 2011

Haven't been here for a while and I'm really rusty using Flash. I looking for a tutorial or some information on how to scroll thumbnails by scrolling the mouse left or right over the thumbnails.

View 3 Replies

IDE :: Tutorial 'Adding Thumbnails' / Reload Other Thumbnails Again?

Jan 19, 2010

I used the tutorial "Adding Thumbnails" to build a fotoshow. Adding another xml-file I have the problem,that I cannot reload(?) the thumbnails correctly.[code]Then I do not see any thumbnails,if(!) the new thumbnail list contains fewer elements than the old one and if the old thumbnail list was scrolled over the hit_right field before.It is seemingly necessary to reset the internal state of the movieclip. But how can I accompish that?

View 1 Replies

ActionScript 2.0 :: CS3 : Change The Movieclip Position?

Mar 16, 2009

I've made an image slider in flash and need it to slide out at it's current position before changing scenes.

The code i'm using is -

onClipEvent(load) {
_root.newXpos = 0000
speed = 10

[code]...

I need the '_root.newXpos = 0000' to tell the movieclip to stay in the X position it is currently in (it will be different each time as the user can move the movieclip via buttons, so a simple Xpos = 0000 won't do)Alternatively, I've tried adding -

on (press) { _root.newYpos = 476.2;
if (_root.Ypos =476.2);
gotoAndPlay ("Pxcotos", 1);
}

on a button but the scene changes before the movieclip has a chance to slide out.

View 4 Replies

ActionScript 2.0 :: Randomly Change Position Of 9 MC's

Oct 22, 2009

I have a movie with on stage three rows of three movieclips, so 9 in total. I would like to change their positions randomly (time interval function) to x- and y-coordinates in the way that they "shuffle" each time. So for example, mc01 changes position to the positions of mc08, while mc08 goes to another position etc. So 9 changes to fixed coordinates eacht interval.

View 5 Replies

ActionScript 2.0 :: CS3 Change Movieclip Position

Jan 13, 2010

I've made an image slider in flash and need it to slide out at it's current position before changing scenes. The code i'm using is -

[Code]...

on a button but the scene changes before the movieclip has a chance to slide out. Is there anyway of telling the actionscript to wait before jumping scenes between the code?

View 2 Replies

ActionScript 3.0 :: Change The X Position Of Movieclip?

Apr 5, 2010

I have 4 movieclip in the stage. Its instance names are mc_1, mc_2, mc_3, mc_4.
To change the x position of this movieclip I can use the below AS 2.0 code. It is working fine.

for (i=1; i<=4; i++) {
eval("mc_"+i)._x += 10
}

I like to know how to write this statement in AS 3.0.

View 4 Replies

ActionScript 3.0 :: Change The Position Of The Mouse?

Jun 13, 2011

My question is fairly straight forward: Is there a way to move the position of the mouse?within confines of the stage)I tried changing the value of mouseX/mouseY but it shows the following errors:I:FlashFlash ClassesMazegameMaze.as, Line 98 1178: Attempted access of inaccessible property mouseX through a reference with static type game:Maze.I:FlashFlash ClassesMazegameMaze.as, Line 98 1059: Property is read-only.

View 6 Replies

ActionScript 3.0 :: How To Change Mouse Position

Aug 6, 2011

i wan to change my mouse coordinate to x->0, y ->0, possible?

View 3 Replies

Actionscript 3 :: Change Position When Something Is In Perspective?

May 17, 2011

I would like to draw a grid in perspective and draw a circle in in te left bottom corner.But I am not able to get it right.[code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved