ActionScript 3.0 :: Image Moving In The Background?
Feb 17, 2009How can I do this: [URL]
I love the image moving in the background. show me where to start or some similar code?
How can I do this: [URL]
I love the image moving in the background. show me where to start or some similar code?
I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]
View 1 RepliesI 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 have a flash file using actionscript 3.0 that when the mouse moves left the background moves right to simulate looking left and vise versa with the other directions. My only issue is that acceleration is a new concept to me and I have never worked with it before. I have read some things on it but they don't really answer my full question which is...
How do i made the background move faster the farther my mouse goes and slower the closer my mouse goes (to the middle).
Here is my script:
ActionScript Code:
stop();
var midXup:Number = 310;
var midXdown:Number = 270;
[Code].....
hi i m new to flash and i want make a site in which the back ground moves with mouse just like URL...
View 1 Repliesi um want to make a sprite flash movie but i cant afford flash cs4 or 8 so i only have mx heh.. >_> i guess im good at animation but im not as good as alvin earth worm or rpg fan but i want to be good as them is there any way to blur like they do in flash mx? it can be easy or hard i'll work as hard as i can to get it right
View 3 Replieswhat i am trying to do is get the background to move with the characteri checked out a few tutorials.but not enufheres the deal..i have a character that can fly...and when the character goes upward...thebackground moves down to expose sky..then eventually black space with stars...does that make sense?
View 2 Replieswhat i am trying to do is get the background to move with the character.i have a character that can fly...and when the character goes upward the background moves down to expose sky..then eventually black space with stars also i want the background to stop..like when the background ends.
View 2 RepliesI 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 RepliesHow would I go about making clouds continously move across my website as a background?
View 4 RepliesI'm somewhat stuck in a project that I have to deliver next Friday. Thing is... I've got to code a webpage like The Killers Band webpage with a panoramic picture moving according to your mouse movements.
I've tried several things already, but I had no success yet. (Everything must be coded in AS2.0, and I'm using Flash CS3 to cover the project).
All I have is the panoramic picture, which I might be able to upload if you ask me to.
Additional info:
I've already converted the background picture into a movie clip symbol. Also, if I ever have to send the picture to anyone, I'll send it as a Private Message, since I can't post links yet.
I am currently doing a project that involves animating a background image up/down when buttons are pressed.
1.) It will need to check if a button has been pressed and then animate the background up.
2.) It will also need to check to see what the position of the background is. If it has been animated up already, it will need to be animated down.
3.) Finally it will need to contain if and else statements to animate the background movie clip. If, will animate it to y = 180. else will check the position, if it has been animated up, the background movieclip will be animated down to y = 330
New to this forum, but was wondering if the moving background on this site [URL] is actionscript or just an animation. It looks very cool. I wanted to use the same effect for a school project I'm working on, I am using MX 2004.
View 4 RepliesI've got this space background image that you can move around with the arrow keys. What I'm trying to accomplish is kind of hard to explain so I'll just give an example...
First, look at the SWF and move the background in any direction. You'll notice that the actual image is pretty small, just barely bigger than the stage itself. I want to make a script that will create duplicates of this image and place those duplicates in the right place so that you will never see the empty white space.
Ok, so say you hold down the right arrow key.. and the image moves left. Once the right edge of the space graphic touches the right edge of the stage, i want a duplicate of the picture placed so that the left edge meets the right edge of the original graphic. Keep holding right, and eventually the original graphic will be pushed off the stage. I'd then like for that graphic to be removed, and for the whole process to repeat itself while moving the picture.
so i have a project where i will be making a website. I will be using flash to make it interactive and visually appealing. I found a website with a really cool entrance page,please view it he mouse moves, the background looks like its moving.
View 3 RepliesTrying to build a website where the background of the site is a video and then there would be an actual html page laid on top of it.
View 4 RepliesI need the ActionScript (2.0): 1) When rolling over a moving image (like a filmstrip), I want the image to stop and then it zooms into a larger image. 2) Then when you click on the larger image, it goes to another URL page in my webiste.
View 9 RepliesI found this AS2 tutorial online but I'd like to achieve this in AS3. I tried transcribing but the setProperty is throwing me off.
[Code]...
I developed a website using flash with Actionscript 3. I included a music as a background for the website and the music will loaded when the site loaded. But the problem that when I click buttons to move between pages(frames) then go and click button_01 the music will play again so I will have music playing more than one time in the background and the sound_btn will not work any more so even I click sound_btn the music will not stop. The code I'm using is listed down. What I should modify to not allow the music play more than one time in the background while moving from one page(frame) to another.
stop();
//number that is redefined when the pause button is hit
var pausePoint:Number = 0.00;
//a true or false value that is used to check whether the sound is currently playing
var isPlaying:Boolean;
[Code] .....
I am trying to figure out how I can control 9 different background images with 2 smooth moving sliderbars in three steps with actionscript.
Scenario:
slider 1, step 1 + slider 2, step 1 = picture 1
slider 1, step 1 + slider 2, step 2 = picture 2
slider 1, step 1 + slider 2, step 3 = picture 3
slider 1, step 2 + slider 2, step 1 = picture 4....
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 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 RepliesI have created a Flash application running in a browser (Firefox 3 on Windows XP). When I move this application from foreground to background and (after some time) viceversa, I notice a considerable slowdown, i.e. for about thirty seconds the application becomes unusable.
My swf is very small (~200 KB), but this swf creates *many* buttons and *many* other graphical widget (with statical images), so the RAM occupied is considerable (~150 MB).
I initially assumed that was caused by the swap mechanism of the operating system or of the browser. This was *not* true, and it was confirmed by the fact that, by default, Mozilla Firefox prevent Windows from swapping out memory when the program is minimized (see config.trim_on_minimize option). Nothing has changed even disabling the paging system of Windows.[code]...
With the code below I created some imgMcA and some imgMcB then I loaded images into imgMcA ones. ImgMcBs have no image at that moment. So if one of imgMcA is clicked the image should be transferred to one of the empty imgMcBs (may be randomly) and if imgmcB is clicked later the image should move back to its imgMcA back. I could not find out how I can accomplish this.
function imageList(mcname, img, index){
var imgMcA:MovieClip=new MovieClip();
imgMcA.graphics.beginFill(0x000000);
[Code]....
All I want to do is move an image a pixel at a time to the left on rollover on a button.
This is my script so far:
on (rollOver) {
background._x = background._x -=1;
}
This only moves it once then you have to take mouse off then rollover again to move again
What i'd like to incorporate is a loop so ( only whilst the mouse is over the button) the image keeps moving to a maximum of 300 pixels then it can't move any more ( unless the right button has mouse over )
I just started using AS3 and I wanted to make a simple script. Basically what I have is a speech bubble with text in it, and every time the player clicks on the screen, the bubble will move horizontally onto the screen. The problem is that after the 4th or 5th time clicking, the bubble will stop entering from the right, but the text will still change. Here is my script so far:
[code]....
What I noticed was that as the clicks increased, the speech bubble's x position was shifted to the left more and more each time. I don't get it, since I set the x position to 800 each time the function is run.
ok suppose I'm building a website or maybe just a gallery... the gallery has thumbnails, once you click on a thumb the proper image is loaded and displayed on the stage (the usual stuff...). Anyway, in order to open a page, when you click on thumb, after the image is loaded some sort of tween displays it on the stage. then when you click the close button, another tween closes it. But, what approach (code) should I use so that when I click on another thumb, the close tween occurs to close the current image that is displayed then the open tween plays in order to put the new image on stage?
View 6 Replies