ActionScript 3.0 :: Slideshow Variable Time For Each Picture?

Apr 8, 2010

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.

[code]....

View 14 Replies


Similar Posts:


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.

View 7 Replies

Flash Picture Slideshow To Run In Continuous Loop

Jan 29, 2011

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].

View 1 Replies

ActionScript 3.0 :: Picture Slideshow With Arrows For Next And Back

Nov 8, 2009

I want arrows for next and back
if ( == "pic1") {
gotoAndPlay("pic2");
if what equals pic1
It's not currentFrame

View 1 Replies

ActionScript 3.0 :: Remove The Previous Picture From The Slideshow?

Mar 17, 2009

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 -

Code:
import flash.utils.*;
import caurina.transitions.Tweener;

[code].....

View 1 Replies

ActionScript 2.0 :: Jump To A Picture In A Manual Slideshow?

Mar 17, 2005

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?

View 5 Replies

ActionScript 1/2 :: Make The Slideshow So That Each Picture Transitions Into Each Other, Instead Of From White?

Jan 8, 2010

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].....

View 3 Replies

Flash :: Professional - Create A Picture Slideshow For 3 Images?

Sep 6, 2011

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.

View 1 Replies

ActionScript 2.0 :: Get This Image Slideshow To Have Separate Links For Each Picture?

Aug 7, 2009

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.

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;

[code]...

View 0 Replies

ActionScript 3.0 :: Flash Slideshow - Changing Picture Automatically After Few Seconds

Aug 26, 2009

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..

View 1 Replies

ActionScript 2.0 :: Make A Picture Gallery And Use Buttons That Move You From Picture To Picture And Backwards?

Apr 22, 2002

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.

View 2 Replies

ActionScript 3.0 :: Type Picture In Run Time

Aug 5, 2009

what is the best type picture in runtime?JPG,GIF, AI, PSD

View 1 Replies

ActionScript 3.0 :: Change One Time (1 Picture) In 2 Second

Jun 21, 2009

i have four picture, i want to change one time(1 picture) in 2 second.

View 1 Replies

ActionScript 2.0 :: Changing A Background Picture With The Time?

Mar 9, 2007

writing a code that will change a picture base upon the time.

i want to have a picture of the sun rising between the time 6am to 11 am

then from 12pm - 5 pm a pic of the ocean showing

from 6 pm - 10 pm- a pic of the sun setting...

then from 11pm- 5am a picture of the northern lights..


ohh yeah i have the time being called in a # from 1-24, = var = hour

idk if u can write if statments with a range of numbers . ex. if (hour > "range of time/#'s") ....

or have a shape in the backround and have it change as the time changes??

View 4 Replies

ActionScript 2.0 :: Time Delay Picture Fading?

May 17, 2002

Im trying to fade 4 pictures in and out.I want a 30 second delay between each photo. From what it looks like in order to use timer function each photo would have to be in its own movie clip.

View 1 Replies

ActionScript 2.0 :: Can't Get More Than One Drop To Mask Picture At A Time

Apr 12, 2004

I have a code that duplicates a movie clip that then falls across a picture. They are sort of like water drops on a window but I want the picture to only be seen through the water drops. My problem is I can't get more than one drop to mask the picture at a time. I have tried code in the duplicated MC and I have tried pasting a bunch of instances to the stage and creating a mask later. Please help me out. The following is the code of the duplicated movie clip where _root.drop is the falling mask and _root.bg is the picture I want to see through the drops.[code]

View 1 Replies

ActionScript 1/2 :: Make MC (picture) Transition Each Time A New Photo Is Called

Jul 2, 2011

I've been trying to figure out a way to add a transition script to my existing AS2 code so I can make my MC (picture) transition each time a new photo is called. Using Flash CS4 and calling images through an XML document. The code works perfectly right now, except it only uses the "fade alpha" technique as an image transition. I need to use a different transition method. I prefer something a little funky if possible, but ultimately I need something like the built in "Blinds" compnent to work. Here is the current code:

[Code]...

View 13 Replies

ActionScript 2.0 :: Stop The Time And View It On The Winning / Losing Picture?

Oct 29, 2007

I have created a small game and i set up a time with it.. But when you win/lose you go to another 'picture' and then you no longer can see your final time.. My question is: How do I Stop the time and view it on the winning/losing picture? If you need any codes just ask And if there is some pro flash people and who are bored they might add me on MSN and teach me more?

View 11 Replies

ActionScript 2.0 :: Variable Which Changes From Time To Time Based On Certain Parameters?

May 26, 2010

I want to have a variable which changes from time to time based on certain parameters.

For Example:

var poop:Number;
onEnterFrame = function(){if(donkey==1){poop = 2;}
if(donkey==2){poop = 5;}
}

But it doesn't work. I can't seem to change the value of "poop" with code. It only accepts a value that I place, ex. var poop = 2, but that doesn't let me change it.

View 2 Replies

ActionScript 2.0 :: MX Adding A Picture In A Swf As A Variable?

Jun 23, 2010

Ive made a movie but i want to get someone to add a picture of themself in an swf (either through a browse button OR simple paste into a variable box) and it appear later in this electronic card im trying to make.

*edit* . . i dont what this to be done in the flash file, on the opening screen i want the user to locate a pic on their hard drive and then slave this picture througout the swf movie ive already created all the tuts im looking at seem to have the images already in the library and they are clicking buttons to display them, i DONT want this . .

View 8 Replies

ActionScript 3.0 :: Creating Slideshow That Automatically Changes Frame After Certain Time

Jul 8, 2010

This is my first flash project and I am attempting to create a slide show that automatically changes frame after a certain time, but also have buttons for each frame. [URL] is the page where i have the flash slideshow on. I used a tutorial to make the nav bar, and used what I learned there, as well as some googling to attempt the slideshow. So far I think its turned out pretty good, but I have a problem. THe buttons work fine, but the auto change gets stuck on the second slide, even if I click to a differnet button to goes back to frame 2. Which makes me think that the function doesn't even go past the if(frame==1). here is the code

Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.MouseEvent;
var img1FadeIn:Tween = new Tween(img1, "alpha", Strong.easeOut, 0, 1, 5, true);
stop();
var slideTimer = setInterval(nextslide, 8000);
[Code] .....

View 3 Replies

ActionScript 3.0 :: Display Photos In Slideshow Based On Time Of Day

Sep 19, 2010

I'd like to create a banner for my website using a slidshow but I'd like for the photo's that are displayed to be daylight images during the daytime and nightime images during the evening hours from the viewers perspective. These images will, of course, be outdoor pictures, but I cannot seem to figure out how to select the picture elements to display based on the users time shown on their computer.

View 1 Replies

ActionScript 2.0 :: Flash Actions - Get The Picture Menu To Keep Moving And Not Just For The First Time When Click On The Arrows

Jul 25, 2010

I have got the banner on this webpage [URL] made from a guy in India but i want to add an additional feature. When i click the left or right button multiple times how do i get the picture menu to keep moving and not just for the first time i click on the arrows.. Is there some action script that i can include??

View 3 Replies

ActionScript 2.0 :: Picture Will Be Load Into Swf Files And With Turn Page Effect They Change When Some Time Will Pass

Apr 14, 2005

how do easy turn page. Picture will be load into swf files and with turn page effect they change when some time will pass

View 1 Replies

Actionscript 3.0 :: XML Slideshow Of Variable Length

Feb 27, 2009

I have ben trying to figure out how to make slideshow that will recognize how many pictures are specified in the XML document length and repeat when it reaches the end of the list. I have not been able to wrap my head around it and although I have seen somewhat similar posts here, My hope is to make a slideshow that others can update by editing the XML document only.

View 3 Replies

ActionScript 2.0 :: XML Slideshow With Variable Set Of Pictures Per Photo?

Jun 11, 2007

I've spend two days searching this forum, to find an example on how to makea XML image gallery "like the kirupa one" but with an adittional feature...with no success.I'm looking for a gallery setup that offers you an option to inlcude extra photos' per image..For example:image one can contain 1-5 extra pictures, which can be seen either viadynamicly attached numbers 12345above the picture or even bettera "play/pause project" button which will show the extra pictures of that same project...a kind of slideshow within a slidehow..with captions/fades ...the whole deal.

View 5 Replies

ActionScript 3.0 :: Image Loader Slideshow With Variable Counter

Nov 11, 2010

I want when someone clicks the prev_btn for it to load imageCounter-1".jpg", but I do not know how to propperly code this. Also, is there a way to have a fixed positon for the loader's Y and also have it's X centered? The images are all the side hieht, but the widths are different.[code]

View 7 Replies

ActionScript 2.0 :: Calling A Picture Into A Target In The Movie Without Placing The Picture Inside An Swf File?

Mar 22, 2003

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?

View 7 Replies

ActionScript 2.0 :: When Each Picture Loads The Loading Frame Resizes To The New Picture Size?

Jan 5, 2005

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.

View 3 Replies

ActionScript 3.0 :: Build A Site That Would Give Users The Ability To Upload A Picture To A Picture Frame?

May 12, 2010

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.

View 1 Replies







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