ActionScript 3.0 :: Simple Slideshow Does Not Work ?

Oct 24, 2010

I have this little slideshow, it is for practise for my students. It always worked well in as 2.0, 5 slides, and two buttons: back and next.The script in2.0 has: prevFrame and nextFrame in the code and for the exceptions in frame 1, and frame 5 we made a new frame 1 in the actions layer, and coded the back button, gotoAndStop(5); and a new frame 5, and coded the next button: gotoAndStop(1); Works.

Now I put the thing over tot as 3.0: And I can not get it to work properly....the buttons work, but when I am on frame 5, and go back to 4, it will go no further than 4, evenso when I go back to frame 1 from 5, I can not go further up than frame 1.

import flash.events.MouseEvent;
stop();
next_btn.addEventListener(MouseEvent.CLICK, volgendFrame);//next_btn.addEventListener(MouseEvent.CLICK,[code].....

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Simple Slideshow IN ORDER?

Sep 4, 2008

I'm doing the very simplest of slideshows which will later be exported to .swf and converted to a .scr.

The code I'm working off allowed the .swf to use a small bit of actionscipt to run through the bitmaps contained in the file. Looks like this:

with (_root.image.pics) {
gotoAndStop( Math.round( Math.random()* 20 ) );
}

Alas, what I don't know how to do is get these damn images to play IN ORDER. I'm sure it's simple, but my searches have turned up zilch. I've tried increments (++) and I'm too much a Newb to know how to use arrays (like how I would call the images in my folder within an array - way over my head.)Is there a simple way to get these images to get called in a range of some kind? Like "gotoAndStop(range 1-20)"?

View 7 Replies

Slideshow - Controlling MovieClip Using Simple Buttons

Aug 19, 2009

I'm trying to build a simple slideshow with AS3 consisting of one movie clip which should be controlled backwards and forwards using simple buttons. I can get the slideshow to play forward once but, apart from getting slide 2 to go back to slide 1, I can't get it to work with the remaining slides.

View 11 Replies

Simple Slideshow - When It Start It Only Shows Images For One Second And Goes To The Next?

Jun 25, 2009

i need is a simple slideshow. already have images ready but when it start it only shows images for one second and goes to the next.i want it to stay on screen for ten seconds (i am new) (cs4) and needs to work when uploaded to website not just on my computer

View 3 Replies

Making Simple, Random Slide, Slideshow?

Jul 14, 2009

I was wondering how would i go about making a simple application that can be run on a website that can:
-show a opening page that will stay for 5 seconds (for advertisments)

-show random pictures (well they will only be text)

-can change slide by clicking on screen.

View 1 Replies

Professional :: Create A Simple Dynamic Slideshow?

Jul 18, 2011

I would like to create a simple slideshow for my Web site that is populated with images from a database.  All I want it to do is pull the 6 most recent photos using ColdFusion, fade from one image to the next and loop. 

View 1 Replies

ActionScript 3.0 :: Source Of Simple XML Image Slideshow

Sep 23, 2009

share with me a source of Simple XML image slideshow. I just want to see the method of loading pictures and switching between previos and next of the current one.

View 1 Replies

ActionScript 3.0 :: Memory Leak In Simple Slideshow?

Apr 8, 2011

It's caused by memory leak. Every time a slide is shown, the memory usage increases a few hundred kB. I've tried everything I could come up with, but even if I kick a whole lot of movieclips out, disable basically all AS3 and let only one slide loop, the memory usage still increases everytime the slide is shown again.Of course it helped to make the movieclips simpler, but the main problem remains: if you keep running the slideshow, it will slow down.

edit 1: #&^%@! Even when i copy one of the slides to a completely new file, with no external classes whatsoever, the problem remains. I think I know now what goes wrong:I make the movieclip loop by saying this.gotoAndPlay(1);Frame 1 is empty, the slide placed on frame 2. If I'd put the slide on frame 1, the mc wouldn't begin at the start and there is no animation (and no memory increase) because the mc has ended.I already figured that maybe every time the mc is shown again, Flash casts a new instance. To prevent that, everytime a slide ends, I remove it with removeChild(clip). That has no effect however, so I think that's unnecessary.

edit 2: even when the MCs are constantly on the stage and are restarted with clip.gotoAndPlay(1), the memory usage keeps growing.

View 4 Replies

Simple Slideshow - Placing Photos In Frames

Dec 27, 2009

I am very new to flash CS4. I am preparing to develop a simple photo slideshow, set to music (3 minute song), with three buttons containing pull down menus which will link to pdf files. This is a project I have taken on to develop an informational CD for the High School I work at.

Here is my question:
When building a photo slidshow with 35-40 photos what is the best practice? Is it to place them all on one layer, or each on its own layer? Also I did see the set interval method from tutvid placing the photos in frames next to each other.

View 6 Replies

ActionScript 2.0 :: Simple RSS Reader - Creating Text Slideshow

May 3, 2011

I'm trying to create a simple fading RSS reader. I'm using PHP to create an XML document. Then I'm calling the XML into Flash using the following code.

ActionScript Code:
function postXML (loaded){
if (loaded){
postNode = this.firstChild;
newsID = [];
newsHeadline = [];
[Code] .....

I display this information in a movieclip that has several dynamic textfields. My problem is this. PHP calls the information in descending order. I want the most recent post to display first, that's why I do it that way. How can I reverse cycle through the nodes. There will be five. I'd like to use the id attribute as the reference to cycle through the nodes. I'd also like there to be a 15 second delay for each slide. I guess I'm basically creating a text slideshow. 15 seconds with an option to pause.

View 1 Replies

ActionScript 3.0 :: Bandwidth Usage For URLLoader With A Simple Slideshow?

Aug 19, 2009

I have a simple slideshow composed of 4 images repeating themselves. Basically, the movie loads the first one, increases a numeric variable, and then unloads it with remove child, and loads another one corresponding to what the numeric variable is. When the 4th image is about to go away, it resets the variable back to 1 to signify the 1st image, then loads the 1st image and the process repeats. I've attached the .fla if my explaining skills are subpar.

The code for loading the photo depending on what the variable is below. (In a previous frame, "photoload" is set as a new Loader and the numeric variable "whichphoto" is set to 1.)

Code:
if (whichphoto == 1){
photoholder_mc.removeChildAt(0);
photoload.load(new URLRequest('homebg01.jpg'));

[Code]....

My question is when I have flash load the 1st image for the 2nd time, does it use up more bandwidth (as if it was loading the image for the first time)? Or is the image already saved in the viewers memory once all 4 images have been loaded for the first time?

View 6 Replies

IDE :: Adding Click Events To A Simple Slideshow Flash

Nov 4, 2009

I downloaded the trial of flash cs4 and have created a simnple flash.I am creating a simple slideshow, each of the slides should be clickable and redirect the browser.I created images then imported them and they were automatically converted to symbols.I combined the symbols using some motion tweens.I then created an actions layer and created clasic tween wher I want the user to be able to click.My problem is I cant get it working. I think I am not referencing the right objects.[code]I have tried setting the object reference to the motion tween instance name, the classic tween name on the actions layer and the symbol name none seem to work

View 1 Replies

ActionScript 3.0 :: Flash Prof. CS5 Simple Photo Album/slideshow Template?

Aug 16, 2010

I am trying to use the "simple photo album" template that comes with Flash Prof. CS5. I have it working except I want it to play by default. The actionscript that came with the template is below (in blue), but if I set var autoStart:Boolean = true; I get the following error and the controls do not work:

TypeError: Error #1009: Cannot access a property or method of a null object reference.at nt_fla::MainTimeline/fl_startSlideShow()at nt_fla::MainTimeline/frame1()
// USER CONFIG SETTINGS =====var autoStart:Boolean = false; //true, falsevar

[code]....

View 5 Replies

ActionScript 3.0 :: Slideshow Doesn't Work When Placed Inside A MC?

Jun 13, 2011

How come the following AS3 works fine when placed in Scene 1, but throws multiple "1120 Access of undefined property" errors when the code is placed inside a movie clip? Somehow none of the variables in the code are recognized in the later case.

[Code].....

View 8 Replies

PHP :: Webpage Slideshow (Image Viewer) Does Not Work

Aug 30, 2010

I create a web template in Dreamweaver 8; in this template I added a slide show (Image Viewer). This template is working fine in browsers and slide show also playing, but when I create the new web page from this template, and then the slide show not playing, there is an error message display.

"A script in this movie is causing Adobe Flash Player 10 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script? Yes or No"

I keep getting this message again and again. When I say no, it asks me again and again, when I say yes then I can't see whats playing. I also Restart the computer, but don't work.

View 1 Replies

ActionScript 2.0 :: Make The Slideshow Work Accordingly To My Xml File?

Apr 29, 2006

How can I make my gallery work? Initially I have a menu (scroller-voetsjoeba) in where I say

for(var i=0;i<_global.gallery_xml.firstChild.childNodes.le ngth;i++){
menumc=menucontainer.attachMovie("menuButton","but ton_mc"+i,i);
menumc.id = i;[code]....

and so far it works fine - I get my firstImage.....I can also get the slideshow to work but not as intended, only in the first category "life", and that's really my problem......How can I make the slideshow work accordingly to my xml file, so that if I click a menubutton in the scroller it correspondes with the correct id and so on?

<?xml version="1.0" encoding="UTF-8"?>
<menu>
<gallery name="life">[code]...

View 1 Replies

ActionScript 3.0 :: Can't Get Simple Go To Scene To Work In 3.0

Jul 7, 2009

I am just testing out how to place a button to go to a scene.I have 2 scenes named, one and two and 2 buttons...One on each scene to get them back to the other scene.The instance names on the buttons are scen1_btn and scene2_btn.My Functions are just called scene1 and scene 2.The code I have below is what I wrote, and I thought would work, but isn't.[code]

View 5 Replies

ActionScript 3.0 :: Can't Get A Simple GotoAndPlay To Work

Jan 13, 2012

I'm not familiar with AS3 at all.I'm working on a simple 2 minute presentation. For testing purposes, I have a layer named "label" that I am using to set a label called "test" (currently it's on frame 1445)I'm trying to put an action in the timeline, frame 1, that will cause the play head to automatically jump to the "test" label so as I build the presentation and test it, I don't have to sit through the entire thing just to see if my latest animations are working as expected. I'd like to move this "test" label down the timeline as I continue to build new parts of the presentation. I would expect this code to jump the play-head to where ever I put that "test" label..Instead, it either doesn't work at all, or it jumps to some other random spot around frame 160. NO other labels are being used in this presentation (I'm using the FlashEff component plugin for effects, in case that info is necessary)

View 2 Replies

ActionScript 3.0 :: Simple Rollover Won't Work?

Jan 14, 2010

I'm an AS2 guy finally being drug into the AS3 world and finding it difficult.I just want to make a simple rollover effect.[code]I noticed the first line in the code, do I have to import something? Either way my text in the button doesn't move when I rollover. It moves upon render but then it stops.URl...

View 2 Replies

ActionScript 2.0 :: Simple If Statement Won't Work?

Feb 18, 2006

I am using Flash 8, and for some reason, my if statement won't work. I have a scrollbar which scrolls a movieclip (that contains AS loaded material (eg. attachmovie). I want it so that only when the material is longer than the scrollbar do I see the scroll bar.For some reason, it doesn't work. The traces don't even work!

if (scrollbar._height < menu_mc._height) {
scrollbar._alpha = 100;
trace("works");[code].....

View 2 Replies

ActionScript 2.0 :: Simple GotoAndPlay Does Not Work?

Jan 25, 2005

I have a scene for the title screen and a scene for the game itself. On the title screen i have a start button, that when clicked it is supposed to go to the game scene; but for some reason this wont work.

actions for startclick (start)
on(release){
gotoAndPlay("Game", 1);
}

View 8 Replies

ActionScript 3.0 :: Slideshow Does Not Work With The Thumbnails Or Prev/next Buttons?

Mar 16, 2009

I still can not get a basic slideshow with the either thumbnails or prev/next buttons to work. It seems that every tutorial either assumes I downloaded the correct libraries or understand when they are using AS2 or AS3.point me to a "FOOL" proof tutorial or template..I understand the basic part of what is going on but do not know enough AS yet to hammer out the actions myself.

View 1 Replies

ActionScript 3.0 :: Slideshow Pause Button Doesn't Always Work?

Sep 8, 2010

I have a slideshow with 3 sections. The slideshow loops automatically as well as when being prompted by a button to go to a particular section. I also added a play/pause button which works initially, however, when clicked on one of the buttons to go to another section, the slideshow resumes looping..I"m assuming I need to check weather the pause button has been clicked to resume/or not resume the slideshow... but I'm unable to figure out how to do that.head of time! Here's the code:

import fl.transitions.Tween;import fl.transitions.TweenEvent;import fl.transitions.easing.*;
//Timervar tl:MovieClip = this;var slideDuration:uint = 12000;// or use whatevervar slideTimer:Timer=new

[code]........

View 5 Replies

ActionScript 2.0 :: How To Get Simple HitTest To Work With Two MCs (Lines)

Nov 30, 2009

I am having trouble getting a hitTest to work. My two MCs are lines, one horizontal, one slanted. When the horizontal line gets within the "bounding box" of the slanted line the hitTest is true, but it's not touching the slanted line yet. I saw that the shapeFlag property comes into play here, but only when using coordinates... I'm not sure how to apply it to these two lines. I want the hitTest to be true only when the lines actually touch. I have attached a simple FLA of the problem.

View 1 Replies

ActionScript 3.0 :: Why Doesn't This Really Simple Code Work?

Mar 16, 2009

What I'm Trying To Do: Modify the y coordinate of a MovieClip on the stage from an external .as File, simple as that.If someone could tell me why its not working and how I can go about fixing it without modifying the existing class structure
(ChildOfMain must subclass MainClass).

Download
Source Files 6 kB

For those of you who don't want to download the source files (I thought it would make it easier if you could handle it yourself)

Document Class For Project: Main Class
Objects In Project Library
platform (movieclip)
subjectMovieClip (movieclip)

[code]....

View 6 Replies

ActionScript 3.0 :: Get A Simple Random SWF Loader To Work?

Feb 12, 2010

I'm trying to get a simple random SWF loader to work. and I'm close...I have 10 movies saved as movie1.swf to movie10.swf saved in a directory.For my index file (swf file that will load one of the 10 movies randomly) I have one single frame with this in the actions:

stop();
var movieArray : Array = ['movie1','movie2','movie3','movie4','movie5','movi e6','movie7','movie8','movie9','movie10'];
var loader : Loader = new Loader();
loader.load(new URLRequest(movieArray[Math.round( Math.random() * movieArray.length-1 )] + '.swf'));
addChild(loader);

For the most part it works. But every now and then the screen comes up empty on a refresh. My guess is the math might be slightly off and is calling a file that is not there.

View 9 Replies

ActionScript 2.0 :: Make Simple GotoAndStop Work

Mar 23, 2005

I boggled with this simple script.This script is on the MC. Everything works except the last onRelase function which just won't go to "disable". If I change "disable" to "fadein" it will work. Please see the attached timeline pic to get better idea and please do let me know what I'm doing wrong.[code]

View 14 Replies

Professional :: Cannot Get A Simple Flash Button To Work?

Jul 20, 2011

I do not know action script, and, have created a button in flash that pops up information when you rollover the button.The button works fine, but, the entire area - where the information pops - is also poping up when I rollover that area.

View 4 Replies

IDE :: Getting A Simple Event Listener Class To Work?

Feb 1, 2009

I am having trouble getting a simple event listener class to work. The class is:

Code:
package {
import flash.display.Sprite;
import flash.events.*;

[code]...

and I have the ClassPath pointing to the folder that contains this .as file. I do get the trace "In setUp" but I'm not getting seeing any Keyboard events. There also aren't any errors showing up in output so I am kind of stumped.

View 1 Replies

ActionScript 2.0 :: Get A Simple Fade Out Of A Logo To Work?

Oct 11, 2004

I've been trying to get a simple fade out of a logo to work. I converted the logo to a movieclip called logo_mc I click on the logo_mc movieclip and insert this actionscript.

onClipEvent (load) {
if (this._alpha>0) {
this._alpha -= 5;
}
}

I have also tried putting the code on the main timeline without any success.

If I understand correctly this should see if the alpha is greater than 0 and if it is it should decrease the value by five increments until it reaches 0.

View 3 Replies







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