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.
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.
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.
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.
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;
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.
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.
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.
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
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:
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).
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,
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.
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] .....
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?
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]...
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.
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...
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.
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.
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
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.
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:
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.
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.