Make A Random Image Background?
May 25, 2011I have this site[url]... and i want to make a random image background.so it is not always the same image. and at this point i dont need the radio buttons.
View 18 RepliesI have this site[url]... and i want to make a random image background.so it is not always the same image. and at this point i dont need the radio buttons.
View 18 RepliesWhat would be the best way to get my random background to fade in? It is loaded using an XML file, and the images are large so when the site loads it takes a sec then... BAM - - image, lol.Heres my code:
ActionScript Code:
package CustomClasses {
import flash.display.MovieClip;
[code].....
I want to load an random background image:
This is what I fond on the forum:
Code:
images = ["1.swf", "2.swf", "3.swf"];
randomNr = Math.round(Math.random(images.length-1)*10)
container.loadMovie(images[randomNr]);
but
i need to fade out the bg after 20 seconds and fade in another random background image
I have flash site and client wants random fullscreen background image to load on refresh. sounds easy right ?. but i've tried a lot of components and code snippets but it's causing headaches as nothing seems to work. i have a client squirming because it isn't done.
I did purchase a component from flashden (randombgholder) which does exactly what i want, but it seems to clash with the flashloaded fCMS system i have working in place, and somehow knocks it out, but that could be my bad amateur flash coding causing it. And when i go to center the swf over the background using his code he provided it goes haywire. perhaps i could do a random fullscreen background image on page refresh in html?? i tried some css ones, but nothing works probably because i'm very new to flash and the likes.
I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]
View 1 RepliesI've got two files A and B. A generates a random number in a dynamic text box and loads an image as the background:
[Code]...
I'm trying to avoid useing a button to send the number from A to B, and instead am trying to use an event listener that sends the number when A loads background.jpg; but the number never gets sent (I start with B open already, and then open A). I've gotten this to work with an onRelease event for a button , so i know the LocalConnection coding works, but as I said I want to avoid using a button to send the number. I'm sure it's right in front of me but i've got no clue why it isn't working, so I defer to wiser minds.
all I want to do is make a scrolling background image like at [URL] how the top left controls where you in the image.
View 3 RepliesI want to make background of image transparent. Image is called from dynamically from the visitor�s computer.and I want to remove background color of image. provide me solution for make pixel transparent of image uploaded by visitor? anybody have solution of these criteria? For an Example: I am attaching image here and I want to remove gray color so I can see through transparent area of Picture.
View 9 Repliesthere an actionscript to make an image repeat for background purposes???I am used to using HTML and just letting the background repeat - is there a way to do this in flash? a code or something? and also, if there is... what are some attributes
View 2 RepliesI want to make background of image transparent.Image is called from dynamically from the visitor�s computer. and I want to remove background color of image.make pixel transparent of image uploaded by visitor?For an Example: I am attaching image here and I want to remove gray color so I can see through transparent area of Picture.
View 9 Replieswhere to send the subject.Can actionscript 2.0 create a textbox with background image?
View 2 RepliesWhat i would like to know is following:I got 10 images inside swf's, named from 00.swf to 09.swf, how do i make another movieclip, load them, display them in a slideshow where they fade from image to image randomly, and when the image is not shown, it should be unloaded. I used .swf file because i got effects on the images.
View 1 Replieshow to make eraser tool my problem is i have two sprite one have backgroun image and other one have drawing by pen ,brush.
now i want to make earser to erase only the drawing part not the background image .
A background music looping in the back, that starts with the opening of the swf and never stops. I think I achieved that with this bit of code :import flash.media.Sound;
import flash.net.URLRequest;
import flash.media.SoundChannel;
bg music[code].....
Finally I need to jump from frame to frame randomly to play various animations. For example :Project starts, background music starts playing, we hear random sounds played one after the other, while some animations can be seen on screen, playing in a random order.
I want to embed some video into my HTML page. As background I want to use big picture. And above it I want to insert loop video with (i.e.) walking man.So, can I embed video (without flash and any player controls) in page?Can I decode video with transparent background? Is there any codecs which support transparent background (alpha-channel)?
View 1 RepliesI've designed a Flash site in CS3 using Action Script 2.0 that has a main flash movie sorta floating in space over a gradient background. I want the gradient background to re-size with the browser, so I thought that the easiest way to do this would be to delete the gradient background in Flash and instead recreate the background in Dreamweaver using the repeat background option and then make the Flash movie's background transparent. (I hope I'm making some amount of sense here).
I've found a few tutorials on how to do this, but so far I just get a white background instead of transparent. I've tried choosing "Transparent - Windowless" under Window Mode on the HTML tab in Publish Settings. And I've tried selecting the movie from within DW and clicking the parameter button and adding a "wmode" parameter with "transparent" as its value.
I am relatively new to Flash CS3 and i have been learning Action-script 3 over the past week. I have come quite a long way and i have made a site in flash but i just have a question.I have been using an image as my background and i am happy with the way flash automatically scales all the objects in my file but the background image does not scale. Is there a way to do this? I have found out things online which show me how to add auto-resizing to the background but this knocks off the flash auto scaling/resizing for everything else.
View 4 RepliesI'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
I have a question regarding the Random Background image/swf tut.
The AS that does the work is this:
[AS]on (release) {
choice = Math.round(Math.random()*5);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
[Code]...
I'm working on my site and I have a random background script setup. Heres the code that Im using now.[code]...
Now I love the way thats its working and but one thing that is kinda crappy is that sometimes it suffers from repeating the same background a couple of times before going to another random background. Now I know that its because the script is working properly but can anyone think of a method that I could use to make it not be able to pull up the last background that it has already loaded? I dont want to make it static because not only do I have this setup for when you enter the site but also its random when you click on one of the nav buttons because I want to try to keep my site dynamic.
I am developing a website in flex. And in that, i am trying to set the background image of my application. like this: parentApplication.setStyle("backgroundImage", data.image_src);
From a different location.
My issue is that, the images that i have are small and hence they are being stretched when used as background images. I want to avoid that from happening. How can i do it?
was wondering if anyone could assist me with some actionscript. I am working on a project similar to this (thehideout.org.uk/refuge/) and making the background image move around as if it the scene is a POV.
View 1 Replieshow would you go about doing this. (ex http://hi-res.net ).I know how to do both indvidualy but i cant make it all work together.
View 3 Replieshow to write a code that play background music randomly?i write these in the frame
bgmusic = new Sound();
bgmusic.loadSound("1.mp3", true);
in the movie
[code]......
I have succesfully gotten the "loading a random background" to work. But now I want to try a couple of other things with it.I would like to adjust the size and alpha, which it isn't happening. And I would also like to repeat the the image (which was generated randomly) 4 other times on the page.So far I have place the random image and mask within a movie, and then placed it on the main timeline.That works great, then I am sliding same image from behind the first image to create a total of 5 images on my documento get the other 4 images on the main document have repeated the movie that holds the random image code, but nothing is showing up in the other 4 instances
View 2 Replieshow would you go about doing this.I know how to do both indvidualy but i cant make it all work together!
View 3 RepliesIv got a background image 3 times the length of my stage.. what im trying to do is create a scroller so when you press a right button or a left button, it scrolls to the left third or the right third of the image.
[Code]...
I am using this following code to display images using xml.Everything is working fine for me but i have to add background image or border to the displayed image using function BitmapFileMaterial.
using BitmapData or Bitmap Class but same functionality.
[Code]....
I am making a new flash website and i stack on the as3 part.My site have a menu like all the site do.Now on the site load there is a background picture.When you press one of the menu buttons, the background image will change to this button specified image.But all that in an animation of fade in and out.My problem that i have everything but i cant know which image was before it changes to the buttons specified one. It maybe require as3 which i dont know.I cant upload here my work. its personal.But i ask you the professionals, please make a short fla file which will have the code and animations i need.(if you cant understand me)Please, make a fla file, which contains random 3 images.At the start it will have main background and a menu on it(just text-for fast and short work)The menu is 3 text ine(main,about,contact)now, make that when you press about(for example) it will change the main image(background) to the image of the about page.
View 2 RepliesWhat I want is something kind of like this:However, I don't want it to respond to the mouse at all. I just want random sized circles, on different layers, and different alpha values, floating around on their own.I could do in the timeline, with symbols and motion paths, but it wouldn't really be random at all. I thought it would be better in ActionScript.Can anyone point me in the right direction here? If I could even find a tutorial or example of creating basic random movement that would be great. I did find this:...but this isn't what I want either. I don't want 'jerky' movement. I just want them to float in random directions. That code also doesn't seem to be very flexible
View 1 Replies