Dynamic Slideshow "blinks"
Hello
I am trying to make a dynamic slideshow, that allows the user
to type the number of pictures in the html, and then naming them
consecutively. (is this a word??)
It is working just fine, but I have a small problem when the
loop starts over.
I made a scene to reset the counters
i = new Number();
i = 0;
max_pictures = new Number();
max_pictures = 4;
gotoAndPlay(nextScene);
And then the actual slideshow in the next scene: AS in first
frame
i++;
if (i>max_pictures) {
i = 1;
picture = "billede"+i+".jpg";
i2 = i-1;
if (i2 == 0) {
i2 = 1;
picture2 = "billede"+i2+".jpg";
loadMovie(picture, _root.viewer_1);
loadMovie(picture2, _root.viewer_2);
I then placed a couple of empty movieclips with the proper
instance names and animated them.
The problem is when the film loops and loads the next
picture. I get a white "blink" every time...and it does not look
good :·(
Is there a smart way arround this, or did I get it all wrong?
++Michael Domino
Thank you very much for your reply. I understand the theory
behind what you are saying; It makes perfectly sense. The problem
is that it doesn't work. I'm sure I'm missing something and
probably I didn't get exactly what you meant. I tried with this
code:
for (var i = 0; i<10; i++) {
matrix = grid.thumb.duplicateMovieClip("thumb"+i, i+1);
matrix._x = i*25;
if (i%4) {
matrix._x = 0;
matrix._y = 80;
the fourth thumb the goes down, but the other just stay on
top of each other in the new line. I tried to add a new _x value,
but then it would ignore the if statement and make a straight line
of clips. Would be so kind to post an example?
Thank you again!
Similar Messages
-
Dynamic slideshow with pictures and Flash Video
I want to make a dynamic slideshow that shall include both
pictures and Flash Video. The user shall only have to put the files
(images/video) into a folder (for example with FTP or an
admin-utility) and then the Flash slideshow should present theese
pictures and video-files randomly. Is this possbile?
I know it is possible with pictures, but can you also include
Flash Video into this scenario?yes you can, you can load '.SWF' files in or you can use the
vidplayer to play '.FLVs' -
I am a Flash novice but I've been trying my hand at building
a dynamic slideshow for a friend's portfolio site. You can preview
the
porfolio
page here.
The arrows (prev/next) advance the images pulling from a
directory using actionscript. I have attached the actionscript. It
works quite nicely, but my question relates to the small thumbnails
along the right side of the page.
My question:
When a visitor clicks on one of the thumbnails, how do I get
the thumbnails to load the corresponding image into the movie clip
(or stage) on the left? Currently, all of the thumbnails are linked
to the images using GET URL.
I haven't loaded all of the thumbnails yet as I wanted to see
if anyone had any ideas before I start building the rest of the
page.
Thanks!
Jasonnot bad, but a couple of things. The use of the keyword
'this' within your code could get you into a little trouble with
scope. When used within a method it can apply to the Object on
which the method has been called on, and not the main timeline
scope, although it is still working for you here. Also it is being
compounded by the fact that you have constructed your methods using
prototyping, which further defines the scope of 'this' to the
Object that the method is being applied to, again, still working
for you here. Usually we would define 'named functions' (methods)
to handle these oprations rather than using prototyping, since
prototyping constructs a 'universal' method that comes part of the
parent class that the prototype it is called on. With prototypes
you can call a method on any instance at any given time from
anywhere within the scope of your document, yet again, still
working for you here ...
I would remove all references of 'this' and construct these
as named methods, rather than prototypes, and maybe save some
problems down the road.
But to the question:
From within the thumbnail's on handler (which you must be
setting up manually) you need to assign the pIndex to the value
corrsponding to the thumb, and then call the 'changePhoto' method,
and pass 0 for d.
But because you have these built as prototypes you'll need ot
be careful how you call the method, and assign the var value, I
think:
_level0.pIndex = #; //thumb index number
_level0.changePhoto(0);
just to make sure it's not being applied to the thumb's
scope. Hope 'this' helps LOL!! :) -
Finder built-in slideshow blinks after fade-to-black before starting
When I start a slideshow from Finder, the screen fades to black smoothly, but then when it's black, it blinks back to normal view for few millisecs before starting the slideshow. This makes the fade-to-black totally non-effective.
The effect is the same when changing resolution (the screen blinks on for a while). Anyone else has this?
It's not visually nice at all. How to get rid of it?This frequently helps solve some problems. Quit iDVD. Search for the file named com.apple.iDVD.plist and trash it. (A new one will be created next launch of iDVD.) Or look in: User/Library/Preferences. This may solve project loading errors too. Restart and use Disk Utility to Repair Permissions.
You'll need to reset some Preferences. -
How do I slowly pan across photos in a slideshow
trying to build a dynamic slideshow in dreamweaver. Saw a site that I liked where the photo appeared to actually slowly move in the window it was being viewed in. Have also seen some that will zoom in a bit or zoom out. Is this a dreamweaver capability or do I need to be looking at Javascript or Flash. I could provide a link to the site where I saw this effect but don't know if that is allowed.
Are you using Javascript or Flash?
If Javascript, try the link I gave you before.
There's a Mootools extension for it
http://code.google.com/p/slideshow/source/browse/trunk/mootools/slideshow.kenburns.js?r=48
jQuery
http://www.gruppo4.com/~tobia/cross-slide.shtml -
Cannot Publish Slideshow locally
This is probably page 1 stuff on iWeb but I am unable to get the Slideshow function to work.
I've tried to keep things as simple as possible. I create a new site in iWeb using the Photo page template. I then Publish this to local folder on my Mac.
When I launch this published site into Safari I can click on the thumbnails and get the photos in a separate window.
Clicking on slideshow just launches the first image as though I'd clicked on the first thumbnail.
I seem to get all the folders published I would expect, including the Slideshow_assets folder.
Apologies if this is really old ground but a quick search didn't help.
iMac 1.8 GHz PowerPC G5 Mac OS X (10.4.8) 1.25 GB RAMI just tried the codemanic demo on that link and the slideshow does not automatically move from photo to photo, you have to do it manually.
Having downloaded the replacement Slideshow_assets file I also have the same problem locally on my iMac. Clicking on start slideshow does nothing more than display the first photo i.e. no dynamic slideshow begins.
Any thoughts?
iMac 1.8 GHz PowerPC G5 Mac OS X (10.4.8) 1.25 GB RAM -
Iphoto and dynamic slideview ?
I want to use Eye-Fi to download pictures to iphoto and then show a dynamic slideshow of pictures as they are added to an album.
Eye-Fi Manager software can add pictures to iPhoto but I am not sure how to create a dynamic slideshow of the pictures.
Can iPhoto do this or some other Mac application?
thanks in advance
RohitRohit
By dynamic, do you mean 'Create a slideshow from the Album and Play it'?
Check out Automator, it has a vocabulary to create Albums, to play slideshows. However, I don't see one to Create a Slideshow, but perhaps, using the Help you may be able to get something going.
Regards
TD -
Slideshow music timing adjustment
I've created a slideshow, imported music. I want to align the photos to the beats of the music. The tutorials say that I can do this with the timing toggle but it is greyed out and I cannot access any timing adjustment. Any ideas?
You can only use the "tap out the timing" / "slide duration recording mode" if you are using the 2 basic slideshow templates: Classic and Ken Burns. You have a lot more manual control with these. For other themes you can use "Align to beats" for som automatic timing; it's under the "Default Settings" tab, and you must also select "Fit slideshow to audio track."
This is really disappointing, as I'd love to see the "slide duration recording mode" feature extended to more of the dynamic slideshows. I've been struggling with doing manual timing with the sliding panels slideshow, and it has been like wrestling a bull. -
How to stream images stored in an external server in to a Flash Web Site?
I would like to be able to bring in external images in a banner like in a slideshow, but not sure how to do it. I have a bunch of small images that I would like it to go through, and my current banner has all the images in the swf and the swf file is huge. Is there a way to import external images from a folder on the server? Where can I go to learn how to do this? Thanks....
To get an idea of what I'm talking about, here's the banner on our site...
http://www.wenatcheekennelclub.com/images/header.swfYour best bet for this would be to search Google using search terms like "AS3 slideshow tutorial" or "AS3 dynamic slideshow turoial". THis assumes you are designing an AS3 file. If not, substitiute AS2 for AS3 in the terms.
In AS3, one of the main classes used for loading external images is the Loader class. SO becoming familiar with that will be a necessary part of the learning. But that is not all since you want to have controls for displaying the images.
One thing I noticed with the banner you show, the images would not seem to need to be any "huge" burden as far as file goes. You should optimize all images before you import them into the file.
Still, having the images loading from an external supply will be better because then you can change the images as you wish without having to edit the Flash file. To realize this capability you should include "XML" with the rest of the search terms previously identified. -
Best way to insert non-flash photo album in Dreamweaver CS5.5
Using Dreamweaver CS4, I created my wife's art website. It is: www.tanglewoodbrushstrokes.com
To insert photo albums, I used Bridge and Fireworks. Once past the initial learning curve, I was able to create these albums fairly easily. However, these albums have two limitations that I would like to address.
1. Adding or deleting an image requires creating a new album and then posting it on the page. Now that I have practice, it doesn't take me very long to do this but there must be a simpler way. As you will see on my wife's site, she has many pages of photo albums. Moving photos from her "Recent Creations" page means those images my be disbursed over three or four different albums. So this can be very time consuming.
2. The albums created in this manner are flash galleries and are not visible on Iphones or Ipads.
I recently purchased Dreamweaver CS5.5 so I could use HTML5 in order to make my site work on Iphones and Ipads as well as PC's. I have nearly completed the tutorial and am about ready to create a new site. Today I have done some searching for ways to use non-flash galleries and have not come up with a definitive answer.
As you can see on my wife's website, the galleries are fairly simple. All I really need is a page of thumbnails leading to a larger image with a description. I want to keep it that way.
Any suggestions?There is no one size fits all solution to this. You're using DW to make a gallery and it's not really a gallery creation tool per se. It's web authoring software. So whichever gallery solution you choose it's going to come from someplace else. And then you must integrate it into your HTML pages.
Personally, I really like dynamic slideshows with jQuery. Add some PHP code to your page. Upload jQuery scripts and optimized images to your server. Done.
To swap images later, add/delete files from image folder on server. Done.
You can see a live demo of this below:
http://alt-web.com/DynamicSlides/
http://jalbum.net/
If you want to generate a lot of different galleries quickly, look at JAlbum. It's a commercial product that creates the thumbnail images & HTML pages for you. There are lots of skins (styles) to choose from and you can further customize layouts with CSS.
http://www.projectseven.com/products/galleries/ssm/index.htm
PVII Slide Show Magic - extension for Dreamweaver
jQuery Fancy Box ~
http://fancybox.net/
57 Free Image Gallery Solutions with jQuery ~
http://www.1stwebdesigner.com/css/57-free-image-gallery-slideshow-and-lightbox-solutions/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/ -
iv made a flash site using as3 using the actionscript on the
first frame, this by itself works fine.
iv also used an online tutorial to help create a dynamic
slideshow/photo gallery which again works fine, but this time using
an external .as file.
When i try to load the external slideshow/gallery into a
movieclip in the site it dosnt work and i get this error:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
im pretty sure its because the code used in the main flash
file is on the timeline and the code in the external file to be
loaded in is in an external as file.
any help on how to get this to work would be much
appreciated!
the code im using to load the external flash file is:
var toload =new Loader();
toload.load(new URLRequest("newfile.swf"));
photography.buttonThumb.addChild(toload);This error, in my experience, is usually triggered by some
code in the loaded movie trying to use some property value that it
cannot find. In my case it is usually a reference to the size of
the stage, either its width or height or both. So, if you have some
code that is executing immediately in this loaded movie, try
changing this to a function that can be called once the movie has
fully loaded. -
iv recently started learning as3 and have made a flash site
using it which all works fine. iv used an online tutorial to help
create a dynamic slideshow/photo gallery which again works fine.
But when i try to load the external slideshow/gallery into a
movieclip it dosnt work and i get this error:
TypeError: Error #1009: Cannot access a property or method of a
null object reference.
im pretty sure its because the code used in the main flash
file is on the timeline and the code in the external file to be
loaded in is in an external as file.
any suggestions on a way around this?
the code im using to load the external flash file is:
toload.load(new URLRequest("newfile.swf"));
photography.buttonThumb.addChild(toload);no sorry forgot the 1st line
var toload =new Loader();
the loader works fine when loading jpegs and swfs with no
actionscript -
Hi,
I have a flash file named "the_good_one.swf" with a code to load another flash file "DynamicSlideshow.swf", and I have this Error when I publish the file "TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.
at DynamicSlideshow()", how can I fix it?
here's the code of the_good_one.swf:
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.display.StageDisplayState;
import SlideEngine;
import DynamicSlideshow;
var galeria:Galeria = new Galeria();
var contacto:Contacto = new Contacto();
var fullscreen:FullScreen = new FullScreen();
var musicOff:MusicOff = new MusicOff();
var musicOn:Music = new Music();
addChild(galeria);
galeria.x=stage.stageWidth-140;
galeria.y=5;
galeria.buttonMode=true;
galeria.alpha=1;
//galeria.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
addChild(contacto);
contacto.y=5;
contacto.buttonMode=true;
contacto.alpha=1;
contacto.x=stage.stageWidth-100;
addChild(fullscreen);
fullscreen.y=5;
fullscreen.buttonMode=true;
fullscreen.alpha=1;
fullscreen.x=stage.stageWidth-60;
var wrapContainer:Sprite = new Sprite();
wrapContainer.x=0;
wrapContainer.y=25;
wrapContainer.height=575;
wrapContainer.width=980;
addChild(wrapContainer);
var container:Sprite = new Sprite();
container.height=575;
container.width=980;
function startLoad() {
var mLoader:Loader = new Loader();
var mRequest:URLRequest=new URLRequest("DynamicSlideshow.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.load(mRequest);
function onCompleteHandler(loadEvent:Event) {
addChild(loadEvent.currentTarget.content);
function onProgressHandler(mProgress:ProgressEvent) {
var percent:Number=mProgress.bytesLoaded/mProgress.bytesTotal;
startLoad();
"DynamicSlideshow.swf", has a class asociated to it "DynamicSlideshow.as" and from inside that class another class is called "SlideEngine.as" here's the code of both:
************ here's the code of the class DYNAMIC SLIDESHOW **************
package {
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.display.StageDisplayState;
import flash.net.URLRequest;
import flash.events.*;
public class DynamicSlideshow extends Sprite
public function DynamicSlideshow()
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var slidesfile:URLRequest = new URLRequest("data/slides.xml");
var delaytime:Number = 4000;
var tweentime:Number = 2;
this.addEventListener(Event.ADDED, init);
/*var slidesfile:URLRequest = new URLRequest(root.loaderInfo.parameters["slidesfile"]);
var delaytime:Number = root.loaderInfo.parameters["delaytime"];
var tweentime:Number = root.loaderInfo.parameters["tweentime"];*/
if(delaytime < 1000)
delaytime = 1000;
if(tweentime < 0.1)
tweentime = 0.1;
if(tweentime > (delaytime/10000))
tweentime = (delaytime/10000);
trace("heere");
var slideengine:SlideEngine = new SlideEngine(stage, slidesfile, delaytime, tweentime);
public function init(e:Event):void{
trace("yeah");
************ here's the code of the class SLIDE ENGINE **************
package
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.utils.Timer;
import gs.TweenLite;
public class SlideEngine extends Sprite
private var _stage:Object;
private var _images:Array;
private var _container:Sprite;
private var _loader:Loader;
private var _request:URLRequest;
private var _currentImage:int = 0;
private var _totalImages:int;
private var _timer:Timer;
private var _delay:Number;
private var _tweentime:Number;
public function SlideEngine(container:Object, req:URLRequest, delaytime:Number, tweentime:Number)
super();
_stage = container;
_delay = delaytime;
_tweentime = tweentime;
var ulLoader:URLLoader = new URLLoader();
ulLoader.load(req);
ulLoader.addEventListener(Event.COMPLETE, xmlLoaded);
//stage.addEventListener(Event.RESIZE, stageResize);
//addEventListener(Event.ENTER_FRAME, onFrame);
private function xmlLoaded(e:Event):void
var ldr:URLLoader = e.target as URLLoader;
ldr.removeEventListener(Event.COMPLETE, xmlLoaded);
var xml:XML = new XML(e.target.data);
var imageList:XMLList = xml.slide;
_totalImages = imageList.length();
setupImages(imageList);
private function setupImages(list:XMLList):void
_images = new Array();
var _item:XML;
for each(_item in list)
_images.push(_item.image);
initGraphics();
private function initGraphics():void
_container = new Sprite();
_stage.addChild(_container);
_container.y = 25;
_loader = new Loader();
_request = new URLRequest(_images[_currentImage]);
_container.addChild(_loader);
startSlideshow();
private function startSlideshow():void
_loader.load(_request);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
_timer = new Timer(_delay);
_timer.addEventListener(TimerEvent.TIMER, loadNewImage);
_timer.start();
private function loadNewImage(e:TimerEvent):void
_request = new URLRequest(_images[_currentImage]);
_loader.load(_request);
_timer.stop();
private function imageLoaded(e:Event):void
_currentImage ++
if(_currentImage == _totalImages)
_currentImage = 0;
_stage.addEventListener(Event.RESIZE, stageResize);
addEventListener(Event.ENTER_FRAME, onFrame);
TweenLite.from(_loader, _tweentime, {alpha:0});
_timer.start();
private function stageResize(e:Event):void{
_loader.x = _stage.stageWidth/2 - _container.width/2;
_loader.y = _stage.stageHeight/2 - _container.height/2 + 20;
//_loader.scaleX = _stage.stageWidth/980;
//_loader.scaleY = _stage.stageHeight/600;
private function onFrame(e:Event):void{
_loader.x = _stage.stageWidth/2 - _container.width/2;
_loader.y = _stage.stageHeight/2 - _container.height/2 + 20;
//_loader.scaleX = _stage.stageWidth/980;
//_loader.scaleY = _stage.stageHeight/600;Well, I think I found the cause,inside the initGraphics function, I do a trace line by line from the top, scanning every element in the code, and I found that the _stage, if I run the slideshow.swf is traced like [object Stage], but when I run the_good_one.swf file (who load the other swf files) the error appears instead of [object Stage]. Of course the stage of the slideshow.swf is only for that file, and I'm importing this file into the_good_one.swf file, who has it's own stage... uuuuffff!!!
private function initGraphics():void
_container = new Sprite();
_stage.addChild(_container);
_container.y = 25;
_loader = new Loader();
_request = new URLRequest(_images[_currentImage]);
_container.addChild(_loader);
startSlideshow();
So, the question of the million dollars is... how do I fix that? I remember that I've read something about that in a post blog that talks about the DisplayList, do you know how to fix it? -
Build a web gallery with amazing flash slideshows with dynamic XML files
Build a web gallery with amazing flash slideshows with dynamic XML files
Screenshot:
Features
Features
Transitions, zooming and panning effect You can choose from Random, Wipe from Left, Fade to White, Cross Expansion and other 60-plus transition effects. Zooming and panning effect is optional for advanced flash templates.
XML-driven This flash slideshow are XML-driven. The XML document allows more personalized controls over the flash.
Auto-playback and repeat mode The flash slideshow will play automatically after preloading, and it can repeat playback.
Dynamic customization Besides XML control, the advanced templates provide many more custom options, so that you can create slideshow that fits into your existing web design: width , height, border color, background color, thumbnail size, etc. More about dynamic customization
Usage and demo visit: http://webdesigndevelopment.blog.com...swf-xml-files/Please excuse the bump...
Anyone with a LR flash gallery that starts with slideshow in play mode?
Can it even be set to do this?
The only code in the style.xml that looks like it might be realted is line 12 <playOptions playMode="pause"/>, changing that to "play" does nothing.
Thanks,
Donnie -
Hi there I am creating a shop website
I am using DWCS3 and PHPMYSQL
I can already create all the product pages that can be
dynamically populated from a form...... I can add, edit and delete
products from my admin section of my site .... using a form ....
all easy using a database to store all the picture and product
details
What I would like to be able to do is have the pictures that
I upload to be automatically placed in a scrolling slideshow
So that when you add a new product ...... when you click on
the product detail page you see all the still pictures of the
product ( which I can already do) .......but have an animated
scrolling slideshow of the pictures as well
Is there a program that can achieve this? Without knowing a
lot of flash?
Or is it possible and necessary to create the whole system
using flash?
Any help would be great
Have a nice dayHi, check out this add-on for DW. :
http://dmxzone.com/showDetail.asp?TypeId=3&NewsId=13984
Maybe you are looking for
-
Password not working for restoring backup on iphone
When I enter my Apple password in Itunes to install a backup for my I phone it doesnot recognise the password.
-
Hoping someone can help. My Macbook Pro has in the last 3 or so months has been shutting down. At first is was more random but now it can be happen several times a day and then the next, not at all. Below is the latest info from the problem report. R
-
Usage of Varray in a Stored Procedure Executed through OCIStmtExecute
Hi, I'm new to OCI Programming. My requirement is to pass an array to a Stored Procedure. In Stored Procedure this input variable is of type VARRAY. I'm following the approach given below. OCITypeByName() OCIObjectNew() OCICollAppend() OCIBindByPos()
-
Hi, I bought an E4000 and Storage array 100. But the system doesn't recognise the array. When I try to install Solaris 10, it says no storage devices found. I tried probe-fcal-all but it didn't give any output and didn't work. The LCD on array shows
-
Hello All I have to implement Queue ... i am able to implement enqueue and dequeue method .. but i am stuck to implement Reading Data from queue and and stroed it in String Array .. can any one have idea abt it.. if plz share sample code Ashish