ActionScript 3.0 :: Photos To Display Randomly Forever?
Jul 1, 2009
I'm doing a photo slideshow and I have 4 photos. I have them displaying randomly with TweenLite, however I have 2 more things I'd like to do with it but I really don't know how to do them. I'd like for the photos to display randomly forever, as if the script would never end. Also, I'm curious as to why only 3 of the 4 photos are displayed when I run the swf.
Here is my script thus far:
Code:
import gs.TweenLite;
import gs.easing.*;
var photoNums:Array = new Array(photo_1,photo_2,photo_3,photo_4);
[Code].....
View 1 Replies
Similar Posts:
Apr 29, 2004
i sort of asked this before but never got a clear responce to it. this is sort of a two part question. one i have a dynamic gallery of images with a small picture that you click on that loads a bigger picture. I would love to be able to just have one photo that loads into the bigger mc and also the small mc. right now what i am doing is making two size photos a small 47x47 and a large141x141. does anyone know how i can use the same photo for both mc's second question. if that works will it make the small photos take forever to load since their sorce is a large photo?
View 5 Replies
Mar 14, 2010
I haven't used Flash in quite a while and wanted to make an animation to display quite a few photos. As i'm out of practice, linking videos kind of skipped my mind and therefore my first file which has lots of images in has become quite heavy and slow to run.My problem is... Is there a quick and easy way i can directly switch one part of an animation with another, keeping all the tweens and actions that are on it? (EG I want to switch out images for the same images saved as smaller files)
Or, is there a way i can scale down the movie in size to make it run smoother? I am going to have quite a lot of photos in a series of linked videos, but as i forgot about it, my first video has too much content and is too big in file size. It can be quite big as it's only for use on my mac (not online) but i still need it smaller as it won't run smoothly.
View 1 Replies
Apr 25, 2009
I want to display photos and load them dynamically.What I have this much done and normally I would just manually add the URL to each button (boring and tedious) and I am learning to import variables and images and all of that...I want to be able to click the thumb to see the actual image:
Main Stage:
code:
onClipEvent(load){
_xscale=1000;
[code]...
View 1 Replies
Dec 17, 2010
I give users the ability to put album in my Flex application. I want to add a feature when they can click a button to view photos full screen slide show.
View 1 Replies
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
May 12, 2005
I've got a button and an empty movie clip. Id like to show 4 photos in a random way but without repeating it till all of them are shown first.[code]...
I don't know how to create an array and on every Random number you check if the new Random number is already in the array. If not, you put that value in the array. If it is already in the array...you generate a new Random number. When the array contains all numbers.
View 1 Replies
Nov 13, 2010
I'd like to build a gallery of photos which has selected thumbnail on each of them before displaying their photos.
Ex: photo.xml
Code:
<gallery>
<photo id="1">
<thumb>pics/thumbnail/img_001.jpg</thumb>
[code]....
View 9 Replies
Apr 20, 2010
I have an Flash CS4 application which pulls in data (questions) via XML and randomizes them. Right now if there is 50 questions in the XML file, 50 questions are displayed and randomized in the application. I am trying to figure out how to limit the randomizing pool so that only 35 questions display(even when the XML file has 50 questions) or something like that. My current code which brings in the file and randomizes is below. The code is written in AS3, by someone else.[code]
View 1 Replies
Jan 8, 2004
I am trying to make a banner like item for a website I am working on, I have 1 external text file 4 external swf's and 1 external .jpg that I am trying to get to do this: On page load display img1.jpg for 60 seconds and then randomly select a number and then display the file that is associated with that number, for 60 seconds, and do it again, and again until all of the text and swf files have been displayed and then start over from the beginning,
Now I can get it to select a random number and then pull up a file that is associated with that number with this code. I have shortened the time to see it work but still no avail
Code:
Movienum = Math.floor(math.random()*5);
if(Movienum == 0) loadVariableNum ("loaded_Text.txt", 0)
if(Movienum == 1) loadVariableNum ("1.swf", 0)
if(Movienum == 2) loadVariableNum ("2.swf", 0)
if(Movienum == 3) loadVariableNum ("3.swf", 0)
if(Movienum == 4) loadVariableNum ("4.swf", 0)
Code:
Movienum = Math.floor(math.random()*5);
function countDown() {
if (Movienum == 0) {
loadVariablesNum("loaded_text.txt", 0);
[Code] .....
View 3 Replies
May 17, 2010
I have an Flash CS4 application which pulls in data (questions) via XML and randomizes them. Right now if there is 50 questions in the XML file, 50 questions are displayed and randomized in the application. I am trying to figure out how to limit the randomizing pool so that only 35 questions display(even when the XML file has 50 questions) or something like that. My current code which brings in the file and randomizes is below. The code is written in AS3, by someone else. this part of the code pulls in the XML data and randomizes.
Code: Select allpackage exam {
import flash.net.* //to create URLRequest and load XML file
import flash.events.* //for Load events
[code]....
View 7 Replies
Nov 11, 2005
[Code]...
I it to randomly pick one of the childNodes and display it in the container. I tried to place in a Math.random(); but I wasn't sure where to put it.
View 3 Replies
Apr 5, 2004
Say i have 100 swfs (in same dimension, and each of those are thumbnails and have been created as buttons), how do i make it able to randomly display 10 swfs at one time in 10 specific areas in 1 scene?
View 2 Replies
May 11, 2009
how to take a display shape, and have the lines & fill randomly change colors? I'm sure this can be done
View 1 Replies
Mar 31, 2011
Is there a way using flash you can display images but each one selected randomly from say an array of different images?
View 4 Replies
Feb 21, 2011
Just starting out with Flash and have run into a problem. I have several scenes with buttons that can be pressed once and then they disappear using: myBtn1.onRelease = function(){ this._visible=false} But when I go back to the scene the buttons reappear. How can I make my buttons be gone forever?
View 1 Replies
Jul 13, 2010
I create a mc and then i make an addChild of a sprite.[code]...
if i want to delete from everywhere and forever mcSwap1, what can i do?[code]...
View 2 Replies
Oct 27, 2009
I'm using a Timer object to move some clouds across the top of a site I'm developing, and I'd like it to loop forever. Unfortunately, I'm getting pretty intermittent behavior. Sometimes the timer stops after a few seconds, whilte other times it keeps looping like it should. It seems to work best in IE 6, some of the time in FF 3.5, and almost never in Google Chrome.I'm doing the timer based on the positions of the clouds. I have two sets of clouds, and here's the related code:
Code:
var globalTweenCloudA:Tween;
var globalTweenCloudB:Tween;
var cloudTimer:Timer = new Timer(1000, 0);
[code]....
View 4 Replies
Apr 18, 2011
I have few movieclip play one after another. For each movieclip, i put the streaming sound inside, and there is a button to turn off sound. I created this coding to turn off the streaming sound and it worked well.
SoundMixer.stopAll(); But, the problem is the new streaming sound will play again when it hit the frame that contain new streaming sound. How to overcome this problem? IS using EnterFrame event the only way to turn off the streaming sound forever??
View 3 Replies
Apr 27, 2011
I've added a _root....flvplayback.load("whatever video I want to load.flv"); to different buttons so that I can dynamically load different videos into a single flv player.Thing is, it works intermittently, and most of the time, after having loaded one video via this method, the next video will load a preview Image but will just load forever, and then I can't play any other videos until I restart the swf.
View 2 Replies
Dec 1, 2011
I got flash player, integrated in website.When I go to my site, backround music start to play automatically But if I stop the music and go to other page of my site, music starts again.[code]...
View 4 Replies
Mar 30, 2010
I'm having a brutal time with a FLA. The wait time to open this thing is ridiculous, and alot of the time the program will just become nonresponsive. Its only this one specific file, as others open fine. It also has nothing to do with the hardware on my system, as we've tried the file on a variety of machines.The FLA itself contains very little bitmap art, most is vector. It's about 16mbs, but publishes down to a SWF thats about 300kb. There were some complex vector elements which were removed in a fruitless attempt to get this thing to move faster. Trying to "save as.." results in flash writing to a file extremely slowly. The resulting file will progress in size from 2 - 4 mb with about 10 minutes wait time in between. Its becoming nearly impossible for us to work in the file. how I could debug Flash itself to find out whats going wrong on load/save?
View 3 Replies
Aug 21, 2009
I'm developing a Flash application that uses several SWF-files. I have one main SWF and others are loaded into this one dynamically. One of the SWF's I'm loading is showing a video clip. This SWF contains code to load and display an FLV-file immediately after it has been loaded into the main SWF. My problem is that I can't find a way to unload this SWF. Once I've loaded it and it starts to play the video, the video keeps playing forever. Even if I remove it from the displaylist it keeps playing. I can't see it, but I hear the sound continuing.
I've recreated this problem in a small project (see code below). In this project I have a simple button that should toggle whether the video is shown or not. [URL] works as mentioned before: it automatically starts playing a .flv as soon as it is loaded. When I run this I get the following as I click the button:
Click 1: Video shows up and starts to play.
Click 2: Video is hidden, but it's still playing (I can hear the sound).
Click 3: Video is loaded AGAIN. Now I can see the video, but I hear TWO soundtracks!
[Code].....
View 2 Replies
Feb 16, 2009
I made a huge swf video game that involved buttons with [code]I put a data grid on the stage on one frame.It never even enters on stage and this still happens.Make a button and plop a data grid down. publish, delete, publish again.I've done some research and found that I am not the first person this has happened to. My file is basically destroyed and I'm on deadline.
View 4 Replies
Nov 18, 2011
I'm working on a virtual piano keyboard that processes imported mp3 sound samples. I've come to a solution with this question, but as I run this test code below, the sound loops its last data chunk of each sound source forever, and obviously, I want it to stop at the end of the extracted sound data. The same happens with any extracted sample data, I don't even have to mix it. I added a dynamically drawn graphic waveform so you can visually check what happens. This is my first time using the ByteArray class, so I don't know how to solve this issue.
[Code]...
View 1 Replies
Aug 14, 2002
I am trying to make a spaceship game and in order to make it look like my spaceship is moving I need to make my circles in the background move forever. I tried using the Continuous Movement tutorail but it makes my circles get bigger when I move my mouse and when I move my mouse all the way to the right it gets faster and left gets slower does anyone know how to change the actionscript for the circle movie clip to make it not do those things?
[Code]...
View 12 Replies
Sep 24, 2007
Onmy stage I have a MC, and when I click it a random MC from the Library should appear and move around randomly.
I'm using this to make it move around randomly [URL]
how to make the random MCs appear from the library. And should I put the random moving script on each of my ten MC?
View 8 Replies
Jun 17, 2011
i want simulate Billiard ball in my project. but my code does not work good. when start with (for example) 34 degree , when hit with wall(stage in this example) return with true degree. in flash , as3
[Code]....
View 2 Replies
Apr 3, 2012
I am coming from flash to flashbuilder I have a directory, AS3_classes_dir, on my computer that stores all of my classes, including my greensock and papervision packages. In every flash app that I make I include that directory in the Source Path, so that I can import whatever I may need. Compiling in flash (using ctrl/enter) takes very little time; only the classes that are specifically imported are compiled.So today I did that in flashbuilder, included AS3_classes_dir via Flex Build Path/Source Path ... but now the compile time are a couple of minutes, even though I am not even importing ANY of the classes from within.
View 2 Replies
Jan 12, 2011
We purchased FMIS and we are encoding large 15+ hour MP4 recordings using flash media encoder. When opening these large files for playback, which have not been opened recently the player displays the loading indicator for up to 4 minutes! Once it has apparently been cached on the server it opens immediately from any browser even after clearing local browser cache. So a few questions for the experts
1. Why is it taking so long to load the file. Is it because the MP4 metadata is in the wrong format and the file is so huge? I read somewhere that Media Encoder records with incorrect MP4 metadata is that still the case?
2. Once its cached on the server, exactly how much of it is cached. Some of these files are larger than 500mb.
3. What fms settings do you suggest I change. FMIS is running on windows server R2 64 bit, but FMIS itself is 32 bit. We have not upgraded to the 64 bit version. We have 8GB of ram. Is it OK to set FMS cache to 3GB. And would that only have enough room for 3-4 large files, because we have hundreds of them.
View 1 Replies