Creating A Simple Slideshow With Saved Variables
Hi. I am using MX and am trying to create a simple slideshow that will play once a user has clicked on a button and after they've chosen some images.
I've already dealt with saving the images into an array so now I just need to be able to show a slideshow of the array with a simple fade in and fade out between the images. The images are saved in the array as movie clips if that helps.
Thanks a lot for the help.
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-22-2003, 04:29 PM
View Complete Forum Thread with Replies
Sponsored Links:
Is There A Simple Way To Have A User Change In Flash Saved To The Server So Others Will See It?
Is there a simple way to have a user change of a Flash page saved to the
server so others will see it? I would like to have a password-protected
editable Flash page that could be saved to the server when changes are made
on-line by a staff member. I have created a Perl/CGI program that does this
on one of my sites, but not all my clients have access to their servers'
cgi-bin folders nor the ability to assign passwords to prevent the file from
being changed by just anyone. Perhaps there is a free Flash word-processor
with file-saving program already created and available that could be
inserted into a password-protected page? Or is there just a simple Flash
script that will save a modified page or movie to the server without
obtaining special permissions from the servers' administrators? Another
option would be an in-Flash ftp program, from which the changed page could
just be sent by ftp to the server using a Flash command. ??
Thanks,
:Ri
View Replies !
View Related
Creating Slideshow
Hey,
Im trying to create a slideshow like this
http://tombarnesphoto.com/myspace/gallery/myspace.swf
After looking round the internet for help and tutorials i cant find anything with just a simple timer and preloader like this.
Everything i find has controls or awful transitions.
Anyone help me out?
View Replies !
View Related
Creating A Slideshow
I was following this tutorial.
He uses the following line for Tweening:
Tweener.addTween(currentContainer, {alpha:1, time:FADE_TIME, onComplete:function() { slideTimer.start(); }});
Instead of using this special designed class for Tweening, how do I use the standard/regular Tweening within Flash so I don't have to always include the .as file with my project?
One other thing is, he uses something like this:
intSlideCount = xmlSlideshow..image.length();
What are the two dots between the xmlSlideShow and image.length(); means?
Help is much appreciated.
View Replies !
View Related
Creating Slideshow Of Pics
I would like to build a movie that will, through scripting and looping, access an array of photo images and display them. I'm familiar, a little bit, with actionscripting but have not tried this before. Would I use tellTarget, or loadMovie, or something else?
My guess, at this point, is to convert the jpeg images into movie clips and call them to the stage as the loop runs through the array. Is this on track?
Any help will be appreciated. Thanks.
Kevin
View Replies !
View Related
Creating Automatic Slideshow
I want to create an automatic slideshow using screens on MX 2004 Professional, sort of like an animated gif. I don't want any forward and back buttons -- I want it to automatically advance from one slide to the next and loop.
Is this possible and, if so how? Also, how can I vary the time duration for each slide.
Thanks.
View Replies !
View Related
Creating A 5 Picture Slideshow
I've been working on a flash component for an upcoming website redesign for the company I work for. I want to create a flash slideshow that plays automatically, but ALSO allows you to control it by clicking next and previous buttons.
I have been able to create a slideshow that works great with next and previous buttons, but as soon as I try to get it to play automatically while MAINTAINING the ability to interject and press a button, I run into problems. I know it's possible thought, because nearly every modern website has one of these things on their front page.
Any help would be greatly appreciated.
View Replies !
View Related
Creating Slideshow With Audio
Hello!
I'm working on a Flash CS3 file (with Actionscript 3.0) and I'm trying to create a slideshow with an audio track. I have 12 slide images and a 12 minute long audio presentation. I want to pause the images for variable times during the presentation - 20 seconds during the first slide, 60 seconds for the second slide, 80 seconds for the third, etc. I've been able to write a script that loops along the timeline for the given time over the image then moves on to the next slide image. It works great if I don't want to pause and restart the movie, but I'd like to do that.
I've been able to create a single button that pauses and plays the sound. Here's the tutorial I used to create this:
http://twf23.wordpress.com/2008/02/06/start-and-stop-sound-with-actionscript-30/
But, I cannot get it to pause the timeline at the same time. I can create a separate button that stops and starts the timeline. I want one button to do both. It seems like I should be able attach a function to the play_mc clip that also pause the timeline.
Eventually this will be a template for other such presentations - where I can swap out the images and the audio thus creating a PowerPoint-like slideshow for distribution on the Internet.
Any thoughts?
Thanks!
View Replies !
View Related
EXTREMELY URGENT - Creating Global Variables Using Names Of Other Variables...
I have variables xtile and y tile within a movie, and I need to create a global variable that will tell all other movies that this particular movie is situated on tile [xtile][ytile], so I need to know how to create the global variable: _root.objectmovie_xpos_xtile_ypos_ytile = true;
I know how to create global variables, and how to have other movies read them, but how do I actually create a VARIABLE with this name? I tried set ("_root.objectmovie_xpos_" + xtile + "_ypos_" + ytile") = true, but that doesn't work (which I kinda knew already but thought I would give it a shot)
any ideas peeps?
please help, its vital to a project I am doing
cheers all
View Replies !
View Related
Help With Creating A Slideshow (preloading Sound)
This is probably a noobish question, but I wanted to get everyone's input before I begin this project on my own and waste a lot of time only to come back here and post.
I am combining a series of snapshots of ppt slides with audio narration into a flash slideshow. I was planning on organizing the movie the following way:
A separate scene for each slideEvery scene will load an external swf file with the audio narration for that segmentOnce Scene 1 is loaded and starts playing, the movie should start pre-loading Scene 2, so that when Scene 1 ends and automatically forwards to Scene 2, it will be pre-loaded.Every scene should have a "Next" and "Back" buttons, that should skip or back up a scene.
However, I am not sure how to get this accomplished in an elegant way, since the number of slides will vary from time to time. Specifically, I have questions about the following:
Assuming I name all moves sequentially (i.e. audio01.swf, audio02.sfw...), how could I get the movie to know the # of the slide, and automatically load the appropriate audio file?Same question, but for the navigation buttons - how could I dynamically tell the buttons the slide #, so that the back button would go to Scene(x-1), and the next button would go to Scene(x+1)?
If anyone has any suggestions on a better way of automating this, I would love to hear it. TIA
View Replies !
View Related
Creating A Slideshow Application In Flash?
Hi
Does anyone know if it is possible to create a slideshow application in Flash MX?
I'm wanting to to create a simple application that allows the user to create a series of slides which they can input text and import images into. They would then be able to save whatever they have created and use it. A bit like a much simpler version of PowerPoint. I'm not sure if it is possible in Flash or if it's a job for Director, Any help/advice would be much appreciated
Dan
View Replies !
View Related
[F8] XML Slideshow - Creating A Pause Button
I have been given the task of adding a pause button to an XML slideshow that someone else created. I have a passing familiarity with Actionscript and I understand this code pretty well, but I have no idea how to create and enable a button that will pause it. Can anyone point me in the right direction?
The way it works is thus: The XML file contains 4 items, with a path attribute and a URL attribute. There is an invisible button that covers the entire stage. The script slowly cycles through each picture, and if you click on a picture the browser goes to the URL in that node's attribute. I want to put a "Pause" button in the bottom right corner. As you can see from the commented lines below, I was able to get a simple text button to appear on the stage, but it didn't do anything when I pressed it.
I hope this is enough information. I appreciate any help anyone can give me. Thanks!
Code:
var curPicNum:Number;
var totalPics:Number;
var picXml:XML = new XML();
picXml.ignoreWhite = true;
picXml.onLoad = parsePics;
picXml.load('path');
function parsePics() {
if (picXml.status == 0) {
curPicNum = 0;
_root.createEmptyMovieClip('picHolder1', 2);
_root.createEmptyMovieClip('picHolder2', 1);
_root.attachMovie('altTag', 'altTag1', 5);
//_root.attachMovie('pauseButton', 'pauseButton1', 100);
picHolder1.loadMovie('path'+picXml.lastChild.childNodes[curPicNum].attributes.path);
navHolder._y = 218;
navHolder._x = 475-(picXml.lastChild.childNodes.length*18)-37;
//pauseButton1._y = 215;
//pauseButton1._x = 685;
var i;
totalPics = picXml.lastChild.childNodes.length;
for (i=0; i<picXml.lastChild.childNodes.length; i++) {
navHolder.attachMovie('picButton', 'but'+(i+1), i+1);
eval('navHolder.but'+(i+1))._x = navHolder._width+6;
eval('navHolder.but'+(i+1)).who = i;
}
setInterval(setWho, 10000);
} else {
trace('error');
}
}
function switchPic(who) {
curPicNum = who;
if (picHolder1.getDepth() == 2) {
picHolder2.loadMovie('path'+picXml.lastChild.childNodes[who].attributes.path);
picHolder2._alpha = 100;
} else {
picHolder1.loadMovie('path'+picXml.lastChild.childNodes[who].attributes.path);
picHolder1._alpha = 100;
}
go = true;
}
function setWho(){
curPicNum += 1;
if(curPicNum > totalPics - 1) {
curPicNum = 0;
}
trace('curentPicNum' + curPicNum);
switchPic(curPicNum);
}
mainButton.onRelease = function() {
trace("Pressed");
getURL(picXml.lastChild.childNodes[curPicNum].attributes.link);
};
_root.onEnterFrame = function() {
if (go) {
if (picHolder1.getDepth() == 2) {
if (picHolder1._alpha<=0) {
picHolder1.swapDepths(picHolder2);
go = false;
} else {
picHolder1._alpha -= 6;
}
} else {
if (picHolder2._alpha<=0) {
go = false;
picHolder2.swapDepths(picHolder1);
} else {
picHolder2._alpha -= 6;
}
}
}
if (!picXml.lastChild.childNodes[curPicNum].attributes.link) {
mainButton.enabled = false;
} else {
mainButton.enabled = true;
}
};
//pauseButton1.onRelease = function() {
//go = false;
//}
View Replies !
View Related
Text Slideshow - Help With Creating Increments
Hello,
I am creating a random text slideshow from an XML document. The XML document includes a list of Band and Artist names. I need to randomize/shuffle the band/artist names and display them one by one like a slideshow. However, after three band/artist names have been listed, I need to display a static tag line. This process needs to repeat indefinetly. So for example, my slide show would display like so:
AC/DC, OutKast, Bruce Springsteen, We Play Everything, Ozzy Osbourne, Phil Collins, U2, We Play Everything,........
I have been able to do the following:
- Load the XML document
- Loop through the XML document
- Create an array of Band/Artist names
- Shuffle the array
I am now stuck on the following:
- Creating the loop to cycle through three names
- How to add the static tag line
- Repeating the loop, but starting on the next three band/artist names in the array
The last thing I have to do which I have a slight idea on how to achieve is the following:
- use setInterval to display the band/artist names in a dynamic text field.
Without further delay, here is my current AS:
Code:
artist_xml = new XML();
artist_xml.ignoreWhite = true;
artist_xml.onLoad = function(sucess) {
if (sucess) {
processArtist(artist_xml);
}
};
artist_xml.load('artist.xml');
function processArtist(xmlDoc_xml) {
var len = xmlDoc_xml.firstChild.childNodes.length;
var artistArray = new Array;
for (var n = 0; n<len; n++) {
artistArray.push(xmlDoc_xml.firstChild.childNodes[n].firstChild.firstChild.nodeValue);
}
Array.prototype.shuffle = function() {
for (var n=0; n < len; n++) {
var rand = Math.floor(Math.random()*len);
var temp = this[n];
this[n] = this[rand];
this[rand] = temp;
}
}
artistArray.shuffle();
//From here, I'm not sure on what to do. While the code below does work,
//it ultimately is not the desired result (this only works for the first three
//names, and does not cycle through the entire array
i = 0;
while(i++ < 3) {
trace("Bob Plays " + artistArray[i]);
}
}
With that, does anyone have ideas on how I can achieve the rest of my project?
View Replies !
View Related
Problem With Creating An Interactive Slideshow
Hi,
What I try to make in Flash is some kind of interactive slideshow, with .swf files instead of static images. I want to have kind of control pannel with buttons numbered from 1 to n, always visible at the front layer. In the background, there will be swf files that change, for example, every 30 seconds. And each change consists of fade in and fade out effect of the swf container (and so the loaded swf file itself). During the swf changes, the buttons should change too by switching their states from 0 to 1 and so on. User should be able to skip to any frame he wants by clicking the corresponding button.
This is the code I already have:
Actionscript Code:
// Preparation
button1_mc.framenumber_txt.text = "1";
button2_mc.framenumber_txt.text = "2";
button3_mc.framenumber_txt.text = "3";
button4_mc.framenumber_txt.text = "4";
button5_mc.framenumber_txt.text = "5";
active_but=1;
function changeButState (but_mc:MovieClip,but_st:Number) {
if (but_st==1) {
but_mc.frame_btn_sel._visible = true;
but_mc.framenumber_txt.textColor = 0xffffff;
but_mc.frame_btn_active = 1;
} else {
but_mc.frame_btn_sel._visible = false;
but_mc.framenumber_txt.textColor = 0x98cfe7;
but_mc.frame_btn_active = 0;
}
}
button1_mc.onRelease = function () {
active_but=1;
}
button2_mc.onRelease = function () {
active_but=2;
}
button3_mc.onRelease = function () {
active_but=3;
}
button4_mc.onRelease = function () {
active_but=4;
}
button5_mc.onRelease = function () {
active_but=5;
}
// Changing buttons and loading content
this.onEnterFrame = function() {
filesize = container_mc.getBytesTotal();
loaded = container_mc.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
ready=0;
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
ready=1;
}
switch (active_but) {
case 1:
changeButState(button1_mc, 1);
changeButState(button2_mc, 0);
changeButState(button3_mc, 0);
changeButState(button4_mc, 0);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_01.swf");
break;
case 2:
changeButState(button1_mc, 0);
changeButState(button2_mc, 1);
changeButState(button3_mc, 0);
changeButState(button4_mc, 0);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_02.swf");
break;
case 3:
changeButState(button1_mc, 0);
changeButState(button2_mc, 0);
changeButState(button3_mc, 1);
changeButState(button4_mc, 0);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_03.swf");
break;
case 4:
changeButState(button1_mc, 0);
changeButState(button2_mc, 0);
changeButState(button3_mc, 0);
changeButState(button4_mc, 1);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_04.swf");
break;
case 5:
changeButState(button1_mc, 0);
changeButState(button2_mc, 0);
changeButState(button3_mc,0);
changeButState(button4_mc, 0);
changeButState(button5_mc, 1);
container_mc.loadMovie("sr_frames/frame_05.swf");
break;
}
};
What it does is basically changing the buttons as mentioned above. And preloading .swfs (not sure if it works though).
To be honest, I'm not too sure what I should do next. I mean, I'm still learning and have quite a long road ahead. I'd be really thankfull for any help.
I try to make this fla file as simple as possible, so I though of making everything in 1 frame with AS. The loaded swf files will have their own animations (tweens, mostly).
I can share the source file if needed.
Thanks in advance.
View Replies !
View Related
Creating A Controllable Scrollbar For A Slideshow? Help?
I received some great advice on my first thread posting, so I thought I'd throw out another question.
I've created a photo slideshow that has a layer of audio that plays throughout. I created a progress bar where, in one layer, I just drew a line the length of the slideshow and then ended it on the last frame. In another layer, I created a ball that, in frame one, starts at the front of the line, and on the last frame, ends on the last frame, and then created a tween, so that as the photos/audio go by, the ball goes down the line to show the progress of it.
My question is, how do I script it so that the viewer can click the ball and scroll through the slideshow at their own pace if they want to. I'm a student and nobody at school right now seems to know how to do it, so if anyone has any advice or a tutorial they could point me toward I'd really appreciate it.
Sorry if I'm sounding like a simpleton in my explanation, I'm just learning Flash so it's all pretty new to me, I'm learning as I go. Thanks everyone!
Furt
View Replies !
View Related
Suggestions For Creating A Dynamic Slideshow
Hello All,
I barely meet the basic requirements for membership to this list but am a quick study. Please keep this in mind if you choose to respond to my inquiry.
I have created a slideshow for a customer (see it here: http://www.toakazi.com/index.php) that uses a "brute force" approach. The current slideshow uses a foreground graphic that also serves as a frame for 3 panes that display 4 sets of 3 images (12 total) that are synchronized to fade in/out. I want to create a similar slideshow using a more elegant method using Actionscript and possibly XML. The following is a basic sketch of what I would like to do:
1. Use the same foreground graphic/frame
2. Use 3 empty movie clip containers for each pane that loads each set of images dynamically
3. Loop continuously through each set of images (4 sets of 3 images each) and fade tween each image/set using Actionscript (see link above for display configuration)
4 Load images from the Flash Library or, preferably, load them from a directory using XML
Please provide any suggestions, links to tutorials, alternate ideas, etc. you think may be helpful in this regard
Thanks in advance,
Lowell
View Replies !
View Related
Ideas On Creating A Slideshow That Automaticly & Randomly Changes Every 1 Second
Hi,
I'd like your help and suggestions on how to create an image slideshow that loads and shows 50 to 100 photos in a random order. Each photo will only stay on screen for 1 second before it automaticly changes to another random photo, (but never repeating a photo until all the sequence has been shown).
I'd like to do this using dynamicly imported swf's or jpegs into a movie that has all the random imort actions, so that when you roll over a 'hot-spot' the movie will pause.
Do any of you know of any scripts out there that can do this, plus how I might be able to pre-load a percentage of these photos first, so that the play-back is fast, and while this is happening the other photos are downloading.
Thanks for any help.
Lenny.
View Replies !
View Related
Ideas On Creating A Slideshow That Automaticly & Randomly Changes Every 1 Second
Hi,
I'd like your help and suggestions on how to create an image slideshow that loads and shows 50 to 100 photos in a random order. Each photo will only stay on screen for 1 second before it automaticly changes to another random photo, (but never repeating a photo until all the sequence has been shown).
I'd like to do this using dynamicly imported swf's or jpegs into a movie that has all the random imort actions, so that when you roll over a 'hot-spot' the movie will pause.
Do any of you know of any scripts out there that can do this, plus how I might be able to pre-load a percentage of these photos first, so that the play-back is fast, and while this is happening the other photos are downloading.
Thanks for any help.
Lenny.
View Replies !
View Related
[Flash CS3] Problem With Creating An Interactive Slideshow
Hi,
What I try to make in Flash is some kind of interactive slideshow, with .swf files instead of static images. I want to have kind of control pannel with buttons numbered from 1 to n, always visible at the front layer. In the background, there will be swf files that change, for example, every 30 seconds. And each change consists of fade in and fade out effect of the swf container (and so the loaded swf file itself). During the swf changes, the buttons should change too by switching their states from 0 to 1 and so on. User should be able to skip to any frame he wants by clicking the corresponding button.
This is the code I already have:
Code:
// Preparation
button1_mc.framenumber_txt.text = "1";
button2_mc.framenumber_txt.text = "2";
button3_mc.framenumber_txt.text = "3";
button4_mc.framenumber_txt.text = "4";
button5_mc.framenumber_txt.text = "5";
active_but=1;
function changeButState (but_mc:MovieClip,but_st:Number) {
if (but_st==1) {
but_mc.frame_btn_sel._visible = true;
but_mc.framenumber_txt.textColor = 0xffffff;
but_mc.frame_btn_active = 1;
} else {
but_mc.frame_btn_sel._visible = false;
but_mc.framenumber_txt.textColor = 0x98cfe7;
but_mc.frame_btn_active = 0;
}
}
button1_mc.onRelease = function () {
active_but=1;
}
button2_mc.onRelease = function () {
active_but=2;
}
button3_mc.onRelease = function () {
active_but=3;
}
button4_mc.onRelease = function () {
active_but=4;
}
button5_mc.onRelease = function () {
active_but=5;
}
// Changing buttons and loading content
this.onEnterFrame = function() {
filesize = container_mc.getBytesTotal();
loaded = container_mc.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
ready=0;
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
ready=1;
}
switch (active_but) {
case 1:
changeButState(button1_mc, 1);
changeButState(button2_mc, 0);
changeButState(button3_mc, 0);
changeButState(button4_mc, 0);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_01.swf");
break;
case 2:
changeButState(button1_mc, 0);
changeButState(button2_mc, 1);
changeButState(button3_mc, 0);
changeButState(button4_mc, 0);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_02.swf");
break;
case 3:
changeButState(button1_mc, 0);
changeButState(button2_mc, 0);
changeButState(button3_mc, 1);
changeButState(button4_mc, 0);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_03.swf");
break;
case 4:
changeButState(button1_mc, 0);
changeButState(button2_mc, 0);
changeButState(button3_mc, 0);
changeButState(button4_mc, 1);
changeButState(button5_mc, 0);
container_mc.loadMovie("sr_frames/frame_04.swf");
break;
case 5:
changeButState(button1_mc, 0);
changeButState(button2_mc, 0);
changeButState(button3_mc,0);
changeButState(button4_mc, 0);
changeButState(button5_mc, 1);
container_mc.loadMovie("sr_frames/frame_05.swf");
break;
}
};
What it does is basically changing the buttons as mentioned above. And preloading .swfs (not sure if it works though).
To be honest, I'm not too sure what I should do next. I mean, I'm still learning and have quite a long road ahead. I'd be really thankfull for any help.
I try to make this fla file as simple as possible, so I though of making everything in 1 frame with AS. The loaded swf files will have their own animations (tweens, mostly).
I can share the source file if needed.
Thanks in advance.
View Replies !
View Related
Help, Creating A Photo Slideshow To Burn To CD For A Presentation, Using Flash.
For a university entrance presentation, we have to put our work in a slideshow to burn onto CD and hand it in that way. I've never done this before so any advice or pointers would be great, even any links to any sites which might help me would be appreciated.
Also, once i've made my slideshow, i have to be able to burn it on to CD. How exactly does that work? And when the person i give it to watches the CD, will the flash slide show just start playing automatically? will they need to have flash? will they need to click on the file?
Ive tried google for tutorials but i cant seem to find anything that answers my questions.
thank you
Edited: 12/16/2008 at 12:45:49 PM by keirakola
View Replies !
View Related
Creating Slideshow: How To Pass Variable From Level1 To Control Level0 Timeline?
Hi, newbie here...
Thank you in advance for anyone that can help with my question. I appreciate your time and will not be a pest in this forum...
I am a photographer in Toronto and have a website that I have created in Flash and is located at www.ssonne.ca
I am working on creating a slideshow of all the photos on the site.
The way it works now, each button on the main movie loads in a new movie into level one using loadMovieNum. Each movie is three frames, and shows a progress bar and then a photo.
What I would like is to pass a variable from frame three of the movie on level1 to the main movie on level0 so I can check that the photo is fully loaded and then continue on with the slideshow.
Seems simple enough, yet I spent hours reading through a lot of sites and couldn't get anything to work for me.
Any help is much appreciated, and I hope you enjoy the photos if you take a look at my site...
- Stephen
View Replies !
View Related
A Simple Slideshow...help?
I'm looking for a simple (no frills) slideshow script.
I would love to find one that shows all of the images existing
in a directory. Without the need to specify the image names
explicitly.
It'd just be running in one cell of a table -no print of the image
name or info, no stop/play/back buttons required.
I thought I'd heard of a flash script like this - when I was looking
for a php based one, but now I can not find it.
The script that I have now does the trick (Iframe in the cell)
but it uses meta refresh to cycle through the photos and thats
pretty irritating.
Any assistance/advice/tuteledge would be greatly appreciated.
View Replies !
View Related
Simple Slideshow..
Hi, new here. =)
Im creating a small slideshow, the idea is just to move a movie clip (panel) containing 10 pictures from right to left to right to left continously..
This is what i got so far, and it works nice from right to left once, then it screws up.. im using Flash 8..
Code:
var move_interval_left:Number = setInterval(moveImage, 100, panel);
function moveImage(panel:MovieClip) {
panel._x -= 50;
if (panel._x <= -678) {
clearInterval(move_interval_left);
var move_interval_right:Number = setInterval(moveImage2, 100, panel);
}
}
function moveImage2(panel:MovieClip) {
panel._x += 50;
if (panel._x >= 2) {
clearInterval(move_interval_right);
var move_interval_left:Number = setInterval(moveImage, 100, panel);
}
}
as you can see im using an interval of 100 ms to move it one time, then check if its _x position is <= -678, and if it is, i want it to switch direction until it reaches >= 2 and again switch direction again until <= -678 over and over..
thanks for any help =)
View Replies !
View Related
Very Simple Slideshow
I am quite new to Flash and have generated a few tweens in and out. But these seem cumbersome.
I have started playing with the slide transitions, which are much nicer, but still seem to be on the whole slide and not just an image or text.
I want to use the nice transitions that I used with slides to easily bring things onto the screen, pause and fly out or for the next image/ slide to be brought on top.
Anyway, is there a good, really simple template for this I can get started with? and any tips?
View Replies !
View Related
Simple Slideshow Help
I am trying to make a flash app where you click a movie clip (a picture frame) and a picture gallery pops up.
Here is what I have so far. Click the Picture Frame movie clip and a shape tweens (for 24 frames) out to make the background for the gallery and I have a new key frame with a picture on it and left and right buttons. Then I have key frames following the first picture that just have images in them.
At this point I use stop(); on that frame and stop the movieclip on the first picture. Now I'm trying to get the buttons to go forwards and backwards. It seems an easy enough task, I just can't figure out how to get the currentFrame and the totalFrames for my movie clip symbol.
Here is my code for the image gallery movie clip symbol.
Code:
stop();//Stops the movieclip at frame 25 with the first image loaded as well as the forward and back controls.
frameGalleryNext_btn.addEventListener(MouseEvent.CLICK, nextPicture);
frameGalleryPrev_btn.addEventListener(MouseEvent.CLICK, prevPicture);
function nextPicture(event:MouseEvent):void
{
if (this.currentFrame == this.totalFrames) {
gotoAndStop (25);
} else {
nextFrame ();
}
}
function prevPicture(event:MouseEvent):void
{
if (this.currentFrame == 25) {
gotoAndStop (this.totalFrames);
} else {
prevFrame ();
}
}
I have also noticed that even when I replace the entire function with nextFrame (); it only restarts the movie clip symbol from the shape tween up to the first keyframe with a picture.
I'm very new at this stuff, so if I haven't been clear please just let me know, thanks so much in advance.
View Replies !
View Related
A Simple Slideshow
i'm looking for a simple way to create a no-frills flash slideshow.
currently, i'll put my images on a layer and use frames to expand the timeline so each frame is left on long enough for viewing.
is there a simple way where i can just put 15 images on 15 frames and then use a simple piece of AS to make each frame freeze for about 6 seconds before going to the next frame?
i also just need to make this loop - no advance or rewind buttons. thanks.
View Replies !
View Related
Just A Simple Slideshow
www.melinanicolaide.com
this is a website i'm redoing
need to do the same,
but only a bit refined on the edges.
The menu stays almost the same
and we want to slideshow as simple as that.
I know it's a simple task
but my knowledge is rusty
any sites to help me out?
thanks/
View Replies !
View Related
Very Simple Slideshow In As3..
I am trying to create xml driven picture slideshow .. i am trying to use the Timer to trigger the images to fade. but its not working.
anyone got any sample code in AS3 for a simple slideshow? i cant seem to find anything on the net
View Replies !
View Related
Simple Slideshow
I need to create a simple slideshow (manual) with 2 buttons, forward and back, there's 8 images in my batch, first one loading with the movie. Once the last image is reached I want to loop back to 1st.
(the images will have have a fade in/out sequences on their own, which I think I have figured out but i don't know if that affects the code needed here)
help...?
View Replies !
View Related
Simple Slideshow Help
I am trying to make a flash app where you click a movie clip (a picture frame) and a picture gallery pops up.
Here is what I have so far. Click the Picture Frame movie clip and a shape tweens (for 24 frames) out to make the background for the gallery and I have a new key frame with a picture on it and left and right buttons. Then I have key frames following the first picture that just have images in them.
At this point I use stop(); on that frame and stop the movieclip on the first picture. Now I'm trying to get the buttons to go forwards and backwards. It seems an easy enough task, I just can't figure out how to get the currentFrame and the totalFrames for my movie clip symbol.
Here is my code for the image gallery movie clip symbol. I'm very new at this stuff, so if I haven't been clear please just let me know, thanks so much in advance.
Code:
stop();//Stops the movieclip at frame 25 with the first image loaded as well as the forward and back controls.
frameGalleryNext_btn.addEventListener(MouseEvent.CLICK, nextPicture);
frameGalleryPrev_btn.addEventListener(MouseEvent.CLICK, prevPicture);
function nextPicture(event:MouseEvent):void
{
if (this.currentFrame == this.totalFrames) {
gotoAndStop (25);
} else {
nextFrame ();
}
}
function prevPicture(event:MouseEvent):void
{
if (this.currentFrame == 25) {
gotoAndStop (this.totalFrames);
} else {
prevFrame ();
}
}
View Replies !
View Related
Need To Make Simple Slideshow...
I'm sure this is something simple to do in Flash, but I haven't been able to find a tutorial or example file.
I need to make a basic slideshow... A dozen or so jpg images which change from one to the next when the right-arrow key is pressed; backwards if the left-arrow key is pressed.
I also have two very small, simple Flash movies to add to the slide show. They basically look like a TV monitor flickering. I have them designed already, I just need to add them to this 'slideshow' project.
I've done this in Powerpoint before. I even intergrated the Flash movies into it. But Powerpoint adds a delay when showing the Flash object and it also displays a large white screen with a black X for a second just before showing it.
I figure it'd look better and work better if done strictly in Flash.
Any tips/ideas/help/etc would be greatly appreciated.
Thanks,
Gabriel
View Replies !
View Related
Simple SlideShow...I Thought?
In a stand alone projector I have several pictures I want to display as a slide show. I want it to play thru automatically (No Stop Actions), but I also want to have the ability to stop it and to continue on with it & to be able to go back to the last picture and have it stop there. I have three buttons "Stop" "PLay" "Go Back" but can't figure out the code for the buttons? Any help would be appreciated..Thanks
Each pictures stays visible for 25 frames
View Replies !
View Related
Simple Slideshow Question
Hi,
I downloaded ascript from macromedia for a slideshow
using xml to import fotos, but instead of having
a linear progression of 1,2,3,4,5, I'd prefer to randomise
them so the same 2 fotos rarely appear together.
Any ideas where to change the following script to achieve
this?
actionscript;
slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides.xml");
slides_xml.ignoreWhite = true;
//
// Show the first slide and intialize variables
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);
}
}
xml file;
<Slides>
<slideNode jpegURL="images/image1.swf">A sea horse</slideNode>
<slideNode jpegURL="images/image2.swf">Sea anemone</slideNode>
<slideNode jpegURL="images/image3.swf">Sardines!</slideNode>
<slideNode jpegURL="images/image4.swf">Another sea horse</slideNode>
<slideNode jpegURL="images/image5.swf">Some kind of jellyfish</slideNode>
</Slides>
Thanks
View Replies !
View Related
How To Create A Simple Slideshow
Hi there,this is my first post here so please be patient I'm new to all this flash stuff.I would like to create a simple flash slide show to put on a cd to send to prospective employers to show them samples from my portfolio without having to send them expensive colour photocopies of the artwork.When you open it up there would be about twenty small icons on the left and when you click on them they appear as a larger version on the right side of the screen.If anyone has a tutorial to do this type of thing that would be most appreciated. Thanks!
View Replies !
View Related
Simple Dynamic Slideshow HELP
I'd need to create a simple but dynamic slideshow on my website. I need it to be able to easily have images interchanged at different times. For instance: when the main page is loaded a set of 9 images should loop in the mc. Then after a menu button had been pressed and a new menu is activated I need to change the images. BTW I have basically no scripting experience and I'm on a deadline and it's crunchtime. Thanks in advance.
--Matt
View Replies !
View Related
Simple Slideshow Question
Hi there Flash Kitters,
I'm attempting to build a website which is basically a page with 3 slideshows,
i have 3 squares next to each other and i want a forward and backwards arrow underneath each of them. When someone is to open the page i want the first image on all three squares to already be open and then to be able to go backwards and forwards within any of the squares that they choose.
The file should be kepth small as there is only ten images for each square.
I have been reading through the posts regarding slideshows and i cant really get my head around them. Can anyone help me. I know its a simple thing that i just cant do. I am using flash mx 2004.
If you know of any really good tutorials that could help.
Many Thanks
View Replies !
View Related
[F8] Simple XML Fade In/out Slideshow...HELP
Hey all, I've been googling for quite a while now and I just can't find a simple tutorial to make a xml flash slide show. I'm not looking for any advancing buttons to go to the next photo, just a little script that goes through the photos listed in an XML file. I would just like the photo to fade in from white to fade out to white and so on... Can someone help me out, Thanks!
View Replies !
View Related
Simple Flash Slideshow
On Westin's AU website -- http://www.westin.com.au/ -- the pictures rotate through via fading. That's easy... however, they loop seamlessly --> such as, the first picture fades in then fades out as the second picture is below... then the second picture fades out as the third picture is below...
If I create that then after the third picture it goes white for a split second as the first picture fades back in.
So the question is: How do you make the animation loop seamlessly after the first load on the website? I don't know ActionScript but is it possible to make the animation play from FRAMES 1 - 600 on the first run, then on the second to infiniti play from FRAMES 20 - 600? (Is that how you would do what I'm asking?)
Please let me know, guys.
View Replies !
View Related
Help Needed With Simple Slideshow
Hi!
I have this code to load an x number of photo's into my flash file:
Code:
var thisPhoto = new Array();
for (i=0;i<thisSlides;i++) {
trace (thisPhoto[i] = this["typePhoto"+i]);
// set contentPath for 1st slide:
_root.mediaContainer.photoHolder.contentPath = thisPhoto[0];
}
I use a Loader component to show the first photo:
Code:
_root.mediaContainer.photoHolder.contentPath = thisPhoto[0];
Now, my question:
I want to display the next photo after 2 seconds...and the next photo after that also after 2 seconds etc...so actually it should be a simple slideshow
Has anyone got some idea how to do this? I tried some things with setInterval, but no succes so far...
Regards,
Vic.
View Replies !
View Related
Dynamic Variables (Slideshow)
I am making a slideshow that utilizes variables from an ASP page... The ASP page tells flash how many slides there are and then lists the slide images. The images are given variable names ie Slide1, Slide 2, and so on. In flash I am gathing this data using load vars.
Here is what I want to do.
1. Get the number of Slides
2. Get the slide image names
3. Set a Loader Componet x number of times with my Slide Variables
I already have the timeline setup to pause for 4 seconds and play a custom animation into the next Loader Componet -
I just need to be able to make flash know... you will show x number of slides before going back to slide 1 and on this frame you should show SlideX
preferably using a counter such as "number" that will incriment on each slide and be reset on the first slide.
View Replies !
View Related
Simple Slideshow Function?
Hi all.
I´m pretty new to scripting, but this should be easy stuff for all you coders out
there:
I have a strip of pictures, a "bar" around 7 times wider than the width of
the stage.
Now, i when the mousepointer is to le left of the screen, i want the
pictures to accelerate
to the right, and vice versa. The movement should only be activated when the
mousepointer
is at the side, and there should be 75% room for mousemovement without the
pictures moving.
A good example of what i mean is http://www.manhattanloft.co.uk/mlc/.
(Type a name to get past the yellow screen).
How´s that done?
Thanks,
Jan R.
View Replies !
View Related
Simple Photo Slideshow
Anyone know of any examples out there?
I'm interested in one that is automatic play, fades from one photo to the next every 10 seconds for about 4 minutes with an mp3 playing in the background.
View Replies !
View Related
Help Please With Simple Photo Slideshow
I've been reading through all the tutorials, and I can't find, nor figure out, how to make a slideshow without controls to sequence from one slide to the next. I just want the slideshow to sequence through all the available slides, one after another, with 3 or 4 seconds on each slide, using transitions, and then starting back over again.
If anyone would be so kind as to offer some help on how to do this, it would be much appreciated. Thanks!
Steve
View Replies !
View Related
Simple Photo Slideshow
Anyone know of any examples out there?
I'm interested in one that is automatic play, fades from one photo to the next every 10 seconds for about 4 minutes with an mp3 playing in the background.
View Replies !
View Related
Simple Slideshow Code
Just make a button called previous_btn a button called next_btn and a dynamic text field called counter. Enjoy all.
var target_mc:MovieClip = _root;//set instance name of content movie clip here
var current:Number = 1;
var total:Number = target_mc._totalframes;
var counter:String = (current)+" of "+(total);
next_btn.onRelease = function() {
target_mc.nextFrame();
current++;
checkSum();
};
previous_btn.onRelease = function() {
target_mc.prevFrame();
current--;
checkSum();
};
function checkSum() {
if (current<=1) {
previous_btn._visible = false;
}
if (current>1) {
previous_btn._visible = true;
}
if (current>=total) {
next_btn._visible = false;
}
if (current<total) {
next_btn._visible = true;
}
counter = (current)+" of "+(total);
};
checkSum();
stop();
View Replies !
View Related
|