ActionScript 2.0 :: Picture-slideshow With Xml And Flash
Oct 18, 2010
I'm making a picture-slideshow with xml and Flash AS2. The thing is, i really want a play and pause button in it, and iv tried to do that with setInterval.[code]Now, the weird thing is, the trace does work, and gives me the good output: 10, 11, 12, 13 etc. etc. but the external images dont go further... (i do have the first image, but it doesnt go to the next images)When i remove the var Interval, so that it doesnt repeat, it does work I also attached the .fla file.
I'm a flash newbie and have created a slideshow so that all the photos fade in and fade out. I've done it so they kind of fade into each other. So the timelines on each layer overlap. I want this slideshow running as a continuous loop so I've put a gotoandPlay(1) function at the end of the movie. My problem is the final image (number7) fades out but I don't know how to get it fading into the first photo again. So after the 7th image (the 2 bridesmaids) the movie completely fades out and then starts again. Is there a way I could make the first and last photos fade into each other rather than the last one fading out and starting again. The movie can be viewed here- sorry it takes a little time to get to the last image! [URL].
I am wondering if anybody can tell me how to create a picture PUSH. I have three images that I wish to work with. By pushing I mean having an image come in from the left (or right) and place itself on top of the other (or pushing the other out of view). Like a slide show of three images scrolling along but one stops for a brief period before the other image comes into view.
I want to use flash slideshow for my site to make pictures change automatically after a few seconds and the possibility for the user to change it manually. I don't know about flash so much and the only thing I was able to do is changing the pictures manually by buttons..
I've migrated from AS1 to AS3, and boy, a lot has changed... Anyhow, to learn and understand AS3, I'm modifying a slideshow I found through thetechlabs. I want it to play SWF as well as JPG. These files are passed through an XML file. I added an element called <delaytime> to the XML file that replaces the standard time a photo is shown in the slideshow.
I modified the onSlideFadeIn() function as follows:
function onSlideFadeIn():void { slideTimer.removeEventListener(TimerEvent.TIMER, nextSlide); slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time); slideTimer.addEventListener(TimerEvent.TIMER, nextSlide); if(bolPlaying && !slideTimer.running) slideTimer.start();}
However, when I run it, I get this error message:
## [Tweener] Error: [object Sprite] raised an error while executing the 'onComplete'handler. TypeError: Error #1010: A term is undefined and has no properties.at slideshow_fla::MainTimeline/onSlideFadeIn()at Function/http://adobe.com/AS3/2006/builtin::apply()at caurina.transitions::Tweener$/::updateTweenByIndex()at caurina.transitions::Tweener$/::updateTweens()at caurina.transitions::Tweener$/onEnterFrame()
It stops at the first picture of my slideshow. When I push the 'next' button it displays the next pic, but I get the same error message again.When I comment out this line:
slideTimer = new Timer(xmlSlideshow..file[intCurrentSlide].@time);
the slideshow runs OK, but without the delaytime specified in the XML file.
this fullscreen slideshow with random pictures which will be the background of a client's web-site. I have everything working, the preloader, the imaging loading and transitions.There's one thing however that's happening and I don't know how to fix it. What's happening - naturally - is that the previous image is still there, in the background, and I would like that to be removed, I would like to have the previous loader, or just the holder movieclip to get off stage, but I really don't know how to add that to my code.What I was thinking was something in the lines of a for loop. Something like creating the picture's holder inside that for loop so each will be like, picHolder1, picHolder2, picHolder3...and so on. And with that, on completion of the preloader I would remove something like "picHolder -
I've made my slideshow and 'next' and 'previous' buttons to navigate through them. But as I have 89 images I want to be able to jump to a specific number. I.e. In a box I type '50' and that will jump to image number 50 and saves me having to click 50 times.I haven't seen this be done on any tutorials and not sure on how to go about it. The images are in a seperate folder and an XML files is used to call them in. So is it just a question of assigning a value to each entry and calling that when the relevant number has been clicked?
Forgetting about my last post: This code currently makes it so each picture will fade from white. What I'm trying to do is make the slideshow so that each picture transitions into each other, instead of from white.
p = 0;this.onEnterFrame = function() { filesize = picture.getBytesTotal(); loaded = picture.getBytesLoaded(); if (picture._alpha<100) { picture._alpha += 10; }};[code].....
I'm having trouble figuring out how to get this image slideshow to have separate links for each picture. I've researched online and I can't seem to make sense of what I've found in relation to the code I have.
I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) { thisframe =+1 } [code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?
I have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.
I am trying to build a site that would give users the ability to upload a picture to a picture frame on my site. I would like AS3 to dynamically re-size, and upload the file from an upload bar under the frame.
I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.It must be some sort of actionscripting but how is it done?
i got five images, and five buttons, every image has a color, and lets say we start at the red one. When i click the the green button i want the green image to fade in.. i fugured out a way to do this on the timeline, but then i have to have a black box first fading in to remove the old picture and then start fading in the new picture..
I made a simple picture slideshow with a timer, prev/next buttons, pause/play buttons and jump buttons. Everything went good so far.Now i'm trying make every picture go to a URL when the picture is clicked but only the link on the first frame goes to the URL when clicked the other 5 buttons do nothing when click.(FYI: I made alpha 0% buttons in a layer above pictures)I tried two different codes but both have no effect.
as layer
Code: stop(); var nextImage:Timer = new Timer(3000); nextImage.addEventListener(TimerEvent.TIMER,playNext); nextImage.start();
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.
i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo.
is some thing like i have a menu as the background, then if i click the picture, another menu rollover the background picture covering ard 40% of the background.any1 can lead the road for me >< me jus start learning AS3 ><
I am trying to make an application that automatically picks a picture from a folder, example for it to grab a jpeg called "pic1.jpg" and display it on the animation?
I am trying to make a slide show, but I want the slide show to have at least 10 different pictures that it goes through (pic1.jpg, pic2.jpg, pic3.jpg (and so forth)) on the screen. Transformations are a plus.
I also own a Flash CS3, so if this is impossible to be done with Flash 8, tell me the instructions for Flash CS3
I found a polaroid flash picture gallery where you can move the pictures around in the flash.I want to stick this flash in a flash I am currently making, where I have 4 different link buttons, and when you click on each, the current page slides out and that page slides in. I want to incorporate this polaroid flash so that when you click on one of the buttons, this polaroid flash will slide in.
I want to create a picture gallery in Flash. I want small thumbnail images all around the edges of the canvass (canvass will be a rectangle). When the user clicks on the thumbnail I want the image to be displayed in the centre of the rectangle in its full size. How do I create such a picture gallery? Is there a simple tutorial? Or simple template I can use anywhere?
It is possible to create a flash picture that the usercan drag around ?In another words, this will be a big pictureon a small area or screen and the person withscrollbars or mouse can drag / pan the picture.
I'm editing a web page to access it only after login, so now it's a php page with an inital <?php session_start(); ?> and in the body of the page I test the value of a session variable.All works fine but in the header there is flash animation that don't load background picture.In the old version of the page this picture was loaded fine but not now.The address of old version of the page is this and new versione is this this.
I'm creating a picture gallery in actionscript 2. In order for people to easily create/modify galleries, I have actionscript read in file information through XML. However I have one problem I can't get around. I'm having trouble loading the picture into a movieclip, then being able to change the properties of that movieclip (change _x, _y, and _alpha). Here is what I have so far
I have a PHP script that returns to me my (and my friends) profile pictures, using the following: [URL] where $ID is the ID retrieved using the PHP API. I then use the following for loading the images in my app:
[Code]...
I've verified repeatedly that the ID being sent back from the PHP is in-fact my ID, and I've copy/pasted the address traced BEFORE the loading function into a browser and I get my correct profile picture, but somewhere in there it's bugging out for my ID in the load and only my ID in the load (I should rephrase it to say it bugs out for WHATEVER user is logged in to Facebook, not just me).