Random Image Loading For Athletics Website

Jun 21, 2010

I'm an intern for a small college and have been given the task of designing the athletic departments intro page. Nine different sports teams need to be represented (football, volleyball, cross country, etc.). I have all the visual elements in place but I need action script to work for bringing up a randomly selected picture from a pool of pictures for each sport. In other words, after the slide show cycles through each of nine sports, how can I make it so a different picture is displayed the next time through (for each sport). Or if the page is refreshed, a different image is displayed. My boss is not familiar with flash and needs a folder that she can put images in for each sport after I am finished with my internship.

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Random Images Loading On Refreshing Website

Jun 1, 2010

I'm trying to load random images every time the website is refreshed. I currently have some actionscript that makes my random image appear but it appears at the top left of the screen. and the movie continues to load the very first image in the layer. So I have 2 images loading and the random image is off center.

Here is the actionscirpt:
//imports
import caurina.transitions.Tweener;
//var
var _loader:Loader = new Loader;
var _pictureArray:Array = ["1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg", "7.jpg", "8.jpg"];
[Code] .....
The foreground portrait is random and fades in but is in the wrong spot. All of my random images are centered in the layer. And the image in the background loads since it is the first image in the layer. but it shouldn't.

View 2 Replies

ActionScript 2.0 :: Random Image Loading Via XML

Apr 25, 2005

i'm trying to randomly load images via xml but my output window keeps saying "undefined".

[Code]...

View 8 Replies

ActionScript 2.0 :: Random Image Loading Via XML?

Apr 25, 2005

i'm trying to randomly load images via xml but my output window keeps saying "undefined".

Code:
function loadXML(loaded){
if(loaded){
xmlNODE = this.firstChild;

[code]....

View 12 Replies

Actionscript 3.0 :: Image Loading In Random Order Using XML?

May 26, 2010

I'm currently doing up my flash gallery and there something bugging me.I'm using XML to load my images dynamically and would like the images to appear in a horizontal manner.

image1 - image2 - image3 - image4 etc.

however, everytime i run the swf, the order of the images are randomized.

Code: Select allvar portraiture_images:XMLList;
var portraiture_total:Number;
var container_portraiture:MovieClip;[code].....

as my images are of different width, I made use of the imageWidth variable to keep track of where the X co-ordinate should be for the next image.

View 2 Replies

ActionScript 2.0 :: Random Image Loading From Txt File?

Sep 30, 2003

I want to have a background image that randomly loads from a list of *.jpg files in a txt file. The txt file is to be edited by user (to add a new image) without accessing the code contained in the .fla, and the txt file gives the location of the images.

View 5 Replies

ActionScript 2.0 :: Random Image Loading From Txt File

Sep 30, 2003

i am having major brain burp... I want to have a background image that randomly loads from a list of *.jpg files in a txt file. The txt file is to be edited by user (to add a new image) without accessing the code contained in the .fla, and the txt file gives the location of the images. It is possible I know - but my old head isn't working. I need this for a charity that I do free work for;

View 5 Replies

ActionScript 2.0 :: Loading Image With Random Sizes But Same Place?

Dec 17, 2006

i have a swf with a list of images on the left and what i want to do is when i click in the image , it will creat an empty movieclip and send an image inside.i know how to do this, but the problem is that i have a 300x200, 200x300 and another sizes, but the max width and hiehgt is 300x300, so i need a 300x300 movieclip and my dificultie is to make the images stay exactly in the middle of the invisible movieclips o they dotn load around places i dont want to .im trying with this:

creating clips
this.createEmptyMovieClip("containerFoto", this.getNextHighestDepth());
containerFoto.createEmptyMovieClip("foto", containerFoto.getNextHighestDepth());
var fotoLoader:MovieClipLoader = new MovieClipLoader();[code].....

in this code the problem is that im notgettting the width and hieght of the image.

View 1 Replies

ActionScript 3.0 :: Flash Image Loading In Random Order Using XML?

May 26, 2010

I'm currently doing up my flash gallery and there something bugging me.

I'm using XML to load my images dynamically and would like the images to appear in a horizontal manner.

image1 - image2 - image3 - image4 etc.

however, everytime i run the swf, the order of the images are randomized

Code:
var portraiture_images:XMLList;
var portraiture_total:Number;
var container_portraiture:MovieClip;

[Code].....

as my images are of different width, I made use of the imageWidth variable to keep track of where the X co-ordinate should be for the next image.

View 3 Replies

ActionScript 2.0 :: Loading Random Image Into MovieClip (Scale 100 Percent)

Oct 27, 2004

I am trying to load a random image into a movie clip that will scale 100%. Then have the content MC noScale and stay the same. If I insert a picture into the bg movieclip, it scales and shows up no problem. Soon as I try to load a random image into the bg movieClip the picture just does not show up!! But what is even weider, is that I have it set up that if the picture is 100% loaded for another MC to play, which it does! So the picture is there, but it's invisible? And no the picture is not progressive.

Code:
Stage.scaleMode = "noScale";
Stage.align = "LT";
bg.onResize = function() {
this._width = Stage.width;
this._height = Stage.height;
[Code] .....

View 1 Replies

ActionScript 2.0 :: [F5] - Random Loading Image Layer - Can't Move On With The Page Or Site

Sep 1, 2003

I've tried 3 different scripts for a random loading image layer and none of them work. Does anyone have code/script for this that will work for Flash 5? I'm totally hung up at this stage and can't move on with the page or site until I have this aspect resolved.

View 12 Replies

ActionScript 3.0 :: Loader+Math.random - RandomNumber Not Loading Random Images?

Feb 26, 2012

why is this code NOT loading a random image, despite tracing random number?
 
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequest;
import flash.display.MovieClip;

[Code]...

View 3 Replies

ActionScript 2.0 :: Putting Data Into An Array Via XML And Then Selecting At Random An Image String To Load In A Pic At Random

Feb 11, 2009

I've been putting data into an array via XML, and then selecting at random an image string to load in a pic at random. But whilst doing this, I wanted to remove the String from the Array that I have just used, so I don't get repetition of the same image in the output. I initially thought that pop would remove the string I had just used - But of course it Removes the last value in the Array instead, which doesn't really help.

Ok - so how about randomizing the data once inside the Array, after it has been pulled in from XML!? That way I can load in the 'last' image, and then pop it out! Keeping a randomized selection of images each time 'it' is loaded

View 2 Replies

ActionScript 2.0 :: Load Random Movie (but Loading A Random Xml File Instead)

Aug 17, 2007

im playing with the load random movie (but loading a random xml file instead) based on the wonderful tutorial from front page and was wondering whether anyone can show me the work around/upgrade to AS2 for this bit of script since im publishing to Flash 8 /AS2 and it doesnt work:

[Code]....

View 5 Replies

ActionScript 2.0 :: Loading Random XML Nodes / Math.random Not Working

Sep 27, 2009

I am now using the code for my background image which will rotate when you enter a new gallery.I can't get it to randomize.[code]I have tried adding: Math.floor(Math.random() * total); and it almost works. It seems everytime the last node is called it stops working (also at other random times, haven't found a pattern).

View 1 Replies

ActionScript 2.0 :: Play Random FLVs - Within Flash Website

Sep 21, 2007

I have a variety of FLV files I wish to playback randomly within my Flash web site, so every time the page loads it could load any of the 6 files for example. I have created a MC for them to playback within, how can i use action script to select one of the files located in a folder at root and play it? Its my first post and I am quite new to Flash, using Flash 8 Professional. I look forward to hearing from you,

View 4 Replies

ActionScript 3.0 :: Website Buttons Unresponsive (seemingly At Random)

Sep 14, 2011

Now my website is up and running, (functionality wise, not so much with the content yet), but I've noticed a problem with the buttons.They work for me on my Mac in Safari and Chrome, but not in Firefox. On my PC the buttons work in Chrome but not IE. They work sometimes, on some computer/ browser combinations, and not on others. On my friends mac, they would not work in any browser, chrome included.(Even the same computer/browser combinations don't seem to have continuity).It's seemingly at random when they do or don't work.I went ahead and added html links to to the top of my page, so people could still get around without being able to use the buttons, but its really is a drag that i've worked on this so hard and yet they have less than a 50% working rate.I have tried using flash help, tried researching the topic in forums, debugging, etc, with no luck! I have no errors in my code.I have no idea what is causing their limited functionality. Here is my website URL so you can take a look at my site and my html for embedding the flash if you want: [code]my site has a preloader, so i don't think its an issue of the page being loaded fully. My links are absolute/concrete html links. They are not relative to any folder structure nor are they pointing to files on my hard drive. I almost feel like it's a security setting on some browsers not to let flash take them to external websites.Is there some way for flash to override browser security settings?I'm just using the wrong keywords?about the extra script on my buttons; I have them set up so that they load and unload a movie clip appropriate to each respective button inside of a frame on the stage, each time you mouse over and out of them.

View 0 Replies

ActionScript 3.0 :: Website Background - Adding Images In Random Order

Nov 16, 2011

I just started working with AS3 and want to make my personal website with images in background. Now, I'm having one image... but I want to have more images in random order. I know I should use Math.random, but no progress

Access of undefined property _id.
Access of undefined property _id.
Access of undefined property listLoader.
Access of undefined property stImage.

Here is my code:
XML.ignoreComments = false;
XML.ignoreProcessingInstructions = false;
var _xml:XML;
var _xmlLdr:URLLoader = new URLLoader( new URLRequest("dat/xml/bg.xml") );
listLoader.addEventListener(Event.COMPLETE, gotList);
[Code] .....

View 7 Replies

Professional :: Test The Buttons To See If They Work On System (localhost) And Not On A Random Website

Apr 16, 2010

I have just created a flash navigation menu in which I imported to dreamweaver to link with the rest of my website. But if I want to test the buttons to see if they work on my system (localhost) and not on a random website, what url do I put? Or do I have to wait until I put my pages on the server and simply paste in the address?

[Code]...

View 3 Replies

ActionScript 3.0 :: Swf Not Loading On Website

Sep 14, 2009

I have a very basic intro AS3 game. i have a base.swf, level1.swf, level2.swf, level3.swf and youwin.swf.

play the game in flash and it works perfectly! evertyhing loads the way it is supposed to.

i published it, uploaded it to my site, and it plays fine until youwin.swf is supposed to load at the end. i tested it on safari, firefox and opera. it works on opera but oes not play the youwin.swf like it should with the animation.

what are the possible causes for this type of occurrence? i have checked and double checked my code to make sure my variables are correct.[code]...

View 3 Replies

ActionScript 3.0 :: Loading Swf Into A Website

Apr 28, 2009

The problem: I have a Flash website and created the gallery for in in a seperate swf file. I now want to load this gallery into a movieclip once the playhead reachs fram 45. I have loaded the data successfully when the button is clicked, but that's as far as it goes. I try to add it to a movieclip (gallery_mc.addChild(loadGallery); )and recieve the error: "1067: Implicit coercion of a value of type flash.net:URLLoader to an unrelated type flash.display: DisplayObject.". I probably should mention that this code is on the timeline as well, so it isn't a matter of importing events.

View 2 Replies

Html :: Swf To Image On The Website?

Jun 16, 2010

i want to convert a swf to image on my website. a user makes some changes on the stage and if he press a button "get image link", the swf stage will be converted to an image and its image link will appear within a box. like imageshack.. so user can use it in forums as image. how can i do this? i even dont know it is about flash or html...

View 1 Replies

Flash Swf Loading Very Slowly On Website?

Mar 11, 2010

Have a look at this:[URL]

and then this: [URL]

notice how it doesn't take any time to load on first URL, but on the second URL, it takes A LOT of time for the flash swf (header) to appear. Even when you change pages, it doesn't seem to get cached.

View 5 Replies

Slow Loading Portfolio Website

Jan 4, 2012

Somehow through tons of research I've been able to make myself a flash website which features my work. There is one big problem, my site loads really slow and I'm afraid I'm loosing all of my potential clients who probably won't wait for it to load.

Here's my website url: [URL]

I'm hosting with hostgator if that matters at all, I've also optimized the images.

View 3 Replies

ActionScript 3.0 :: Loading External Swf From Different Website?

Mar 5, 2009

I am quite a rookie when it comes to action script soI made myself an advert from using some video and the filesize is obviously quite large (1mb). The problem is that the sitewhere the advert is to go only accepts file sizes up to 50kb. My plan is therefore to make a smaller version of the advertwhich just displays the company logo, but then loads the other .swffile from my website.Firstly is this possible....... and second how do I do itspell it out really simply as I always seem to get lost inall the gargon. I have been researching it a lot and the problem isthere seems to be a million different ways to do, but I haven't had

View 1 Replies

Loading A Swf File In A Flash Website?

Jan 4, 2010

I am an interactive design student working on a flash portfiolio and . I can't figure out how to load a game I made in flash into my porfolio so that it loads after clicking on a button, becomes playable, then have a button to leave the game and go back to my portfolio. I'm working in Actionscript 2.0 because that's all my teachers will show me and I have minimal actionscript knowledge.

View 1 Replies

ActionScript 2.0 :: Loading A Swf To A Flash Website?

Sep 17, 2010

Im currently making website in flash. My problem is that I have some trouble with putting one of my games on my website ( Yes it is MY games, not stolen). I use the code:

ActionScript Code:
myGame_mc.loadMovie("myGame.swf");

The game shows up in my MC, But I cant play the game.

View 5 Replies

ActionScript 3.0 :: Video Not Loading On Website?

Feb 9, 2011

I have some video that's loaded in to the FLVPlayback component, the source of which is pulled from an XML file.On my own server, everything runs fine. On my clients server, the video is not loading. What could cause this to be happening?The pathing goes a little like this:main.swfvideos/movie.flvxml/data.xmlMain loads the xml file, then the xml file references the movie link and loads it into the FLVPlayback component.

View 2 Replies

Actionscript 2.0 :: Loading Icon Of A Website?

Feb 2, 2009

I am building a web site in flash and want make an icon which appear the percent of loaded flash..

View 2 Replies

Flash Website Stops Loading

Jul 29, 2009

I've built a flash website for my client. I created the website, and it worked just fine. The client then came back with a few minor changes and additions. The only major addition was an intro animation, which I created in 3D / After effects.

Now, the website works when it's on my hard drive, but the minute I upload it, it suddenly stops at 3%. The loader dissapears, and nothing happens after that. I have tried deleting the additions, including the animation, and the updated menu. Same problem, only the point at where it stops loading becomes 5% instead of 3%. I have tried removing the preloader, and creating a shell.swf, which loads the file in using an external preloader. Same problem occurs. If I link directly to the file ie [url]... then nothing happens either (that link is for example purposes only). I have tried copying frames and pasting into a new flash file (main2.swf) and same problem occurs. Lastly, I tried removing the preloader, instead creating a simple test animation that loops until the file is loaded. Also just sits there and stops loading.

View 3 Replies







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