ActionScript 2.0 :: Kirupa Slideshow - How To Center The Image

Jun 10, 2011

I am working on a flash project right now with the help of the tutorials found on this website and decided to use and modify this existing slideshow by Kirupa.

[URL]

What I did was, I resized it according to my projects demands, which is 1024x650 [URL]Everything is working perfectly except for one drawback.

Some of my images are sized 440x650. Normally, when I link that to the XML file provided, it is aligned by default to the left. My current solution was to resize the entire file into 1024x650 creating the illusion that the image is at the center because I included the seamless background on the saved jpeg.My question is this, is there any way I can center the 440x650 image to be displayed in the slideshow?

Kirupa's original code is this one:

[code].....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Kirupa Photo Slideshow Tute - Centering Image?

Sep 11, 2006

I've been going through the tutorials and forum trying to build a photo slideshow. I managed to get the slideshow working with buttons, but am really stuck with trying to center the images ... I'm using portrait and lanscape images, and want them both to be vertically and horizontally centered in a 504x504 moive.

View 2 Replies

ActionScript 3.0 :: Using Kirupa Xml Slideshow Code?

Oct 18, 2008

I am using the Kirupa XML slideshow code and making somechanges so that I can use it with my images. I can change thedocument size and movieclip size to hold my larger images(830*400). The problem is that I don't want the white borders atthe top of and on the left of the image. How do I adjust this?

View 5 Replies

ActionScript 2.0 :: Adapted Kirupa Xml Slideshow Tutorial

May 9, 2007

I have adapted the kirupa xml slideshow tutorial.However I would like to create a up and down buttons that jog the thumbnails + or - 3 thumb images either way.Is this a case of creating an on (release) action that tells the slider to advance a specified distance??[code]

View 2 Replies

ActionScript 3.0 :: Modifying Kirupa's Xml Photo Slideshow?

Jul 17, 2009

I'm trying to modify Kirupa's xml photo slideshow by adding an extra text field, which if I understand correctly gives each element 3 children (image+text1+text2) instead of 2 (image+text). Even though I've added the third child correctly in the xml, I can't seem to get it to work at all. Here is what I did with the actionscript:

delay = 10000;
//-----------------------
function loadXML(loaded) {
if (loaded) {

[code]....

I've highlighted the parts I've added to the code provided by kirupa's tutorial. sub_text is the instance name I give to the new text field in Flash.

View 1 Replies

ActionScript 2.0 :: Timer For Kirupa Photo Slideshow Using XML And Flash

Apr 16, 2006

how to add a sort of timer for the slideshow...one that counts down from fx 6 seconds to 0 every time a new image in the slideshow appears. something with a variable and a text area...but how to make the count down follow the image delay...i really would like to know if this is possible.

View 3 Replies

ActionScript 2.0 :: Make Four Buttons On The Bottom Of The Kirupa Xml Slideshow?

Nov 28, 2006

I have been trying to make four buttons on the bottom of the kirupa xml slideshow. I am trying to write a function that states on release advance to slide #? I was trying to use a similar function to:

Key.addListener(listen);
image1.onRelease = function() {
p=1 ? (p--, loadPic(p), slide=0) : null;
stop_btn._visible = 0;

[code]....

There are four images that are dynamically linked. The function is not recognizing that the image is p=1. Do I need to do something like total-3 or something.

View 1 Replies

ActionScript 2.0 :: Stopping Auto-slideshow After One Run Through (Kirupa Tutorial)?

Aug 1, 2007

I'm using the Kirupa tutorial of the xml auto slideshow. I need it to stop after it runs through all the images one time.How should I modify the code below in order to do that

delay = 3000;
//-----------------------
function loadXML(loaded) {

[code].....

View 3 Replies

ActionScript 2.0 :: Stopping Auto-slideshow (kirupa Demo - ACv2)?

Jul 26, 2007

I'm using the auto slideshow with xml that you guys demo on your site (which I love BTW) -I need it to stop at the end of the last slide and the demo is set up for it to loop -It looks I need to alter the parse command but I don't know how to do that - Is there an explanation on the site of how to alter the AS so the slide show will end after it runs once through all the images?

View 2 Replies

ActionScript 2.0 :: Kirupa Xml Gallery Thumbs - Slideshow Starts Automatically - Fading

Jan 4, 2009

i have an xml driven photogallery with thumbs and the slideshow starts automatically and is cross fading and it has a next/play/pause/for buttons. Everything is fine but i don't like the way the thumbs scroller operates, it's way to mechanical and i would love to add an easing effect to it. How do i do that? this is the code of the whole gallery:

[Code]...

View 0 Replies

ActionScript 2.0 :: Adding Pause/play Buttons To Kirupa Photo Slideshow?

Feb 26, 2006

add the pause/play button along with a previous & next button (those got messed up when I added to slideshow) for the Kirupa photo slideshow...

View 1 Replies

ActionScript 2.0 :: Kirupa XML Image Gallery - Skip To Image?

Dec 4, 2006

So I'm having some trouble modifying this script. I have a text box so a user can go to a certain image (In my case page). So if the user type 5 it should go to image 5I've tried numerous methods, none of which are working (they work but then my next and previous buttons aren't working properly). I know I need to just get go to the number image in the array but the way the script is set up it seems I would have to change the current position value but that doesn't seem to be the case.Am I over complicating this?

ActionScript Code:
function loadXML(loaded) {
f (loaded) {

[code].....

View 1 Replies

ActionScript 2.0 :: Incorporate In A Xml Based Slideshow(slideshow.zip) To Show Image Loading Process?

Feb 6, 2008

I have created a pie preloader(preloader.zip) which is working fine. Same preloader I am trying to incorporate in a xml based slideshow(slideshow.zip) to show image loading process but some how I got stuck. I am new to flash. Suggestions are welcome.

1. How to solve the problem of preloader2. Is it possible to integrate everything in a movie clip (including AS). I mean no AS on main time line but inside the movie clip. It would be much easier then to to create multiple slideshows by duplicating mc and changing the xml file.

View 1 Replies

ActionScript 2.0 :: Slideshow Positioning - Center All The Images

Jan 12, 2009

I've found a slideshow online and have been able to modify it to my needs, but I've struck a wall when it comes to centering. I figured out how to center all the images no matter their dimensions:

[Code]...

View 1 Replies

ActionScript 2.0 :: Kirupa's XML Image Gallery Images Not Loading

May 18, 2009

I have followed Kirupa's XML Image Gallery tutorial. Before you ask, I have double checked my code. When I hit command+enter (mac) to preview it, everything works just fine. XML loads the correct images. My problem is when I publish it and upload it via FTP to my web server, ONLY the first image displays. When I click the next button, the first image fades out, but then it fades back in. The captions and image numbers change (like they're supposed to), but the image does not.

It remains on the first image. I know that it is able to access the XML because it loads the first image specified in the XML. That image was never imported into the Flash document. I have double checked my paths, too. All of the paths are correct. Also, I'm sure that it's not accessing a local file, because for each path, I specify the full URL, such as "[URL]", rather than just "/images/image.jpg". What do I need to do to fix this? You can see what I'm talking about by going to [URL] and clicking on "photo+art".

View 1 Replies

ActionScript 2.0 :: Altering Kirupa's Xml Gallery Load Any Size Image

Oct 28, 2009

I want to load photos of different sizes for the XML photo gallery, as of right now you can only load a preset size.[code]

View 4 Replies

ActionScript 2.0 :: [mx2004 & Flash8] Using Different Sized Images In The Kirupa XML Image Gallery?

Dec 14, 2006

I have spent some time looking at the Kirupa XML gallery with the thumb navigaition sliderOne problem emerge when i use different sized images (same height, different widths).If one thumbnail is half the width of the others, that thumbnail will be placed directly on top of one of the others. Furthermore if the "large" image also is half the width of the others (which it also is here) it'll get placed starting from the left and have a gray background where there is no image (which makes sense since the background is grey in the .fla).My question is: how i can get the gallery to display all thumbnails with the same spacing between them no matter what width they have (in my case they will all have same height). And if a thumbnail is not as large as the "default size"(for example 67 in height and 100 in width) is it possible to center that image in the "large image" display?

View 7 Replies

ActionScript 2.0 :: Modify The Kirupa Image Gallery To Use Numbers In Place Of Thumbnails?

Jun 19, 2007

I am trying to modify the Kirupa image gallery to use numbers in place of thumbnails.So far I have been able to place buttons on the stage using attachMovie()and I have been successful in getting them numbered properly. Where I am failing is in getting the individually placed buttons to load an image.A more detailed list of what I am trying to do:

I want to attach a button that has a text box to the stage.In that button�s text box I want a sequential number to appear.When a button is pressed I want the corresponding image to display(button 1 loads image 1).I have the first two working; not doing so well with the last.Here is what I have:

PHP Code:[code]...

View 8 Replies

Flex :: Center An Image Horizontally And Vertically In An Image Control?

Aug 14, 2010

How can I center a loaded photo [lets say 200x300] in an image control [lets say 400x600]? My image control has fixed dimensions while my contents have different dimensions and I want them to get centered automatically.

View 1 Replies

ActionScript 2.0 :: Loading A .png Image With LoadMovie() And Center The Image

Oct 20, 2009

I'm loading a .png image with loadMovie() and I need to center the image (for later dragging). I know flash has some issues with loading stuff, but I really need to get the movieclip's width. If someone knows how to get over this and get the movieclip's width

This is a part of a more complex app, so that's why I won't paste any code.

View 3 Replies

Flash :: Data Integration - XML - Slideshow - If Click On The Main Image - Another Image Could Come Up Next To It?

Oct 6, 2006

I attempting to make a slideshow like the one on this page: [URL] But i was wondering if it is possible to change the code so that if you click on the main image, another image could come up next to it? (I'm making a portfolio site, and i want people to click on one of the main images to then see a detail image next to
it).

View 1 Replies

ActionScript 3.0 :: Portfolio Slideshow - Current Image Slide Out As The New Image Slides In

Sep 30, 2010

I'm fairly new to ActionScript 3.0 so forgive me if this question is easy, but I'm having issues with my portfolio slideshow. I have a few thumbnails and when you click on one the image slides in from the right. That part is fine. What I really want is for the user to click on a different random thumbnail and have the current image slide out as the new image slides in. My code so far:

[Code]...

View 1 Replies

ActionScript 2.0 :: Xml Slideshow - Fade Out The Previous Image As The Next Image Fades In

Feb 19, 2008

Ive just completed the Kirupa XML Slideshow today and have it all working well. But i cant figure out how to fade out the previous image as the next image fades in.

[Code]....

View 2 Replies

ActionScript 2.0 :: Center Images In The "slideshow Using XML And Flash"

Feb 25, 2007

I'm trying to customize the flash slide show from the "Slideshow Using XML and Flash" tutorial and have a question when it comes to centering the images.

My pictures are all either 210px wide or 160px high and the area where the pictures are to be displayed is 210x160. The pictures are down-scaled versions of bigger pictures with different size, meaning that some could be 210x160 while others may be 90x160 or 210x40.

The problem here is that each picture is loaded at the same position (x,y) as globally defined (I've adjusted this to top left by setting x=0 and y=0 in the actionscript part). This obviously doesn't look to good for a picture that is 210x50 as it does for a image which is 210x160 and fills the entire display area.

So, is there any way to center the pictures when they're loaded?

View 4 Replies

ActionScript 2.0 :: LoadMovie "target" & Kirupa's Image Pan?

Nov 27, 2006

Description: HTML page containing MC1 and MC2. MC1 has container MC-C inside and MC2 has button with AS ... loadMovie ("MC3.swf", _root.MC1.MC-C") Problem: when I hit the button nothing happens When I assigned this script to a button inside MC1 (excludeing "MC1." from target value) than it works. Would anyone know how should my target value look like to achieve desired load into container within MC1?? conditions: (MCs 1,2,3 are in same folder, with correct instance names, have tryed few variations but no success)

Q2: Kirupa's Image Pan - is there any way how to integrate whole thing inside another MC without messing it up like me?? Cause I have noticed that it is fixed to "stage.width" and stage of the MC I wanted to plece it is a bit different.

View 2 Replies

Xml Image Gallery Appear In Center?

Apr 14, 2010

created in flash. The issue i am having is when an image is loaded it always appears on the left handside attached to the top left point of the stage. Is there anyway i can get these images to load in the centre of the stage? This is the AS that is attached to my flash document.

Actionscript Code:
function initGallery() {  function loadXML(loaded) {  if (loaded) {  xmlNode = this.firstChild;  total = xmlNode.childNodes.length;

[code].....

View 1 Replies

IDE :: Center Swf Image In Browser?

Nov 9, 2009

Is it possible to center an swf in the html or php file, when the swf has a width larger than the browsers width?

View 1 Replies

ActionScript 3.0 :: Get Center Of Image Not Working?

Feb 21, 2010

I have am trying to establish the center of the imags that load so that I can put them in the center of the stage. I am doing this as each image is a different size.
 
Here is the code i have gotten to work before but its not working now and I have been searching to find what I have done wrong with no luck. : ( Would you look it over and maybe you will see what I am doing wrong?
 
 public function placePicture(e:Event = null):void {
rawImage = imageData.image[imgNum].imageURL;
lastImageIndex = imageData.*.length() - 1;

[Code].....
 
and I tried doing all of the above by inserting the loader into a sprite and then applying the code to the sprite and then adding that sprite to another sprite and putting that at 640 and not inserting it in another sprite and trying to straight up put the existing sprite at 640 (hopefully that all makes sense). And I have tried to put it to width/3 and nothing different happens.

View 3 Replies

ActionScript 1/2 :: Center Image Using LoadMovie?

Jul 31, 2010

I'm trying to load an image and center it within a movie clip already on the stage.
 
function loadImage(){  image_mc.loadMovie("fullImage/"+imageNum+".jpg");  image_mc._x= Stage.width/2 - image_mc._width;  image_mc._y= Stage.height/2 - image_mc._width;}
 
I know it's something simple and there are forums dedicated to this topic but I can't seem to view the code examples that the helpers are using.

View 3 Replies

Actionscript 3 :: Center One Image Horizontally?

Nov 5, 2011

with the formula below I can center one image horizontally.

var xPoint= stage.stageWidth / 2 - imgWidth / 2;

In case if I may have more than one image, how can I center them horizontally?

View 2 Replies







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