Animated background on a flash website

Hi everyone,
I'm trying to make a website similar to this one: http://www.humanstudio.eu/
Basically, I need a website in flash and I need to have an animation in full screen running in the background. I know how to import external swf files with Loader functions, but this confuses me, because I wonder how to place buttons on top of that animation. I don't have much experience using Flash, so help would be much appreciated!
Thank you!

If I am understanding your scenario and goal correctly, you do not want to be using the timeline to tween anything.  You only need to Tween the image that you imported.  So for each button that you have, you would have specific x (I'm assuming x-axis movement) destination values defined, and then have a Tween that starts from the current x position and moves to the designated one.
To make life easier for my function explanation, I am going to turn your buttons into movieclip buttons so that they can each have their corresponding x position stored in them as a variable naamed "xValue".  If you want them as button symbols, they can't do this, so you'll have to use a switch statement or something to check button which was clicked.
I didn't want to assume your tween code was related, so in this I have used imageMC as the name of the image you are moving.
var scrollTween:Tween;
bio.addEventListener(MouseEvent.CLICK, scrollOver);
home.addEventListener(MouseEvent.CLICK, scrollOver);
gallery.addEventListener(MouseEvent.CLICK, scrollOver);
contact.addEventListener(MouseEvent.CLICK, scrollOver);
function scrollOver(evt:MouseEvent):void {
     var destination:Number = MovieClip(evt.currentTarget).xValue;
     scrollTween:Tween = new Tween(imageMC, "x", Elastic.easeOut, imageMC.x, destination, 3, true);

Similar Messages

  • Embed Flash Animation Inside Flash Website

    Hello,
    I have created a flash website and I want my features button
    to load and play a features movie (or animation) when it is
    clicked. I know how to actionscript already and add buttons and
    event listeners. My main objective is to avoid adding the features
    movie into the flash website's timeline because i think it will
    greatly increase the file size and therefore loading time of the
    site. Since the features movie is passive and only needed when the
    user clicks the features button, it should be stored in a separate
    file or timeline so that it doesn't load with the main website. The
    feature movie should only be loaded and played when the user click
    the feature button. Is there any way to do this with flash or am I
    stuck working in the website's timeline and using stop() and
    gotoAndPlay() in actionscript?
    Thanks

    If you're using AS 2.0, then press F1 for help and search AS
    2 for "loadMovie".... or you can go here:
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00001189.html

  • Flash player 11.5 does not open background pictures of my website

    Flash player 11.5 does not open background pictures of my website scilang.com as well as many others'. 11.4 is ok.  However, 11.5 has really messed it up.
    I tried it with IE9, Chrome, Firefox. No. No with Flash Player 11.5. Why are such things happening all the time?

    I can't comment publicly on dates for future releases, sorry. 
    For users that have selected "Allow Adobe to Install Updates" during installation, they will automatically get the update as soon as it becomes available.  There is some lag in uptake in general (we're really only about halfway into the adoption curve for Flash Player 11.5), so the problem won't be resolved overnight.  If you have access to the source, you may want to update your content temporarily to work around the issue.  If it's just a generic slideshow, you might want to consider replacing it with an AS3-based alternative.  Lightroom distributes a nice flash-based slideshow, for instance.
    There are a couple actionscript-based workarounds you can implement in your content until the next Flash Player 11.5 maintenance release has been deployed to the general release audience.
    There's one workaround here:
    http://forums.adobe.com/message/4841531#4841531#4841531
    The root of the issue is that the onEnterFrame event isn't getting emitted by MovieClips that embed JPEGs in ActionScript 2 content.  This was an unfortunate side-effect of an unrelated graphics optimization.  We have tests that check that onEnterFrame is emitted, and that JPEGs are rendered, but not one where we confirm that a SWF embedding a JPEG emits an onEnterFrame event.  Because the change was isolated to AS2, we didn't see it in our manual URL testing either, as that testing tends to focus on the most popular sites on the web, which usually host newer AS3-based content.  We've added tests to cover this case to prevent it from breaking again in the future.
    Anyway, apologies again for the inconvenience.  Hopefully this information will help you workaround the problem until the next update goes out.

  • How to add a background image to a flash website?

    Hi there.
    I've created a flash website at 960X600 pixels.
    I have a JPG image that I want to use a BG to fill the browser page.
    I can edit the index.html file. Should it be inserted there? the name of the BG is bg.jpg
    Thanks
    Gil.

    GREAT! how do I do that?
    this is the html:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>index</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css" media="screen">
    html, body { height:100%; background-color: #ffffff;}
    body { margin:0; padding:0; overflow:hidden; }
    #flashContent { width:100%; height:100%; }
    </style>
    </head>
    <body>
    <div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="100%" id="index" align="middle">
    <param name="movie" value="index.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="transparent" />
    <param name="scale" value="noscale" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="index.swf" width="100%" height="100%">
    <param name="movie" value="index.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="play" value="true" />
    <param name="loop" value="true" />
    <param name="wmode" value="transparent" />
    <param name="scale" value="noscale" />
    <param name="menu" value="true" />
    <param name="devicefont" value="false" />
    <param name="salign" value="" />
    <param name="allowScriptAccess" value="sameDomain" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflash">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </div>
    </body>
    </html>

  • Advice needed for beginner to Flash website building

    Help!
    I have zero knowledge about using Flash.  I am being asked by my boss to build a flash web site for our music and video game stores.  I built our old site in Dreamweaver.
    Does anyone have advice on where i should start?  A suggested book that will walk me through beginning to end.  I've worked through a few tutiorials but I feel lost as far at the time line and actions.
    Any expert advice is appreciated.  I need to get started in the next month.  I'd like to build it myself instead of outsourcing to someone else.
    Know where I should start?

    Lindsay,
    Last month I built my first Flash website after following this tutorial on Lynda.com:
    http://www.lynda.com/home/DisplayCourseN.aspx?lpk2=735
    Needless to say the concept behind the tutorial was mind-opening, at least for me: I have a HTML/CSS background and I always used Flash almost only for banners, headers and simple animations.
    Hope this helps...
    JC

  • Creating a flash website

    I am new with creating flash websites.  I have the basis of it done but I am unsure how make it do what I want it to do.
    First off, I want the background to keeping looping.  I want that to stay the same but I have some animation, so I want it to keep moving.
    Secondly, I want to have buttons that you click, and when you click them information comes up.  But again, I want the background to be the same and to keep moving while the information stays put.  Then I want this information to stay until I click on another button to take me to different information. 
    At the moment I have 2 scenes going on.  Scene 1 is my homepage with the moving background.  Scene 2 has the first button information (ie contact us page) alongside the moving background.  I have it so that on Scene 1, when you click on the button it will take you to Scene 2.  The problem is, if you just let Scene 1 play it automatically goes into Scene 2 without clicking on the button.  I am unsure how to just get it to play Scene 1, and only when you click on the button it will go to Scene 2.  Then in my Scene 2 (with the information) I do not know how to keep the information there with the background still moving.  I am not even sure if I am on the right track to doing the right thing. 
    Any suggestions or help you have would be greatly appreciated.  Thank you in advance.

    Add a layer to your timeline. At the very last frame make a keyframe. Click in that single keyframe and go in the Window->Actions panel.
    If you want whatever happened on the timeline to happen again, use this script:
    gotoAndPlay(1);
    If you want it to stop at the end, just use this:
    stop();
    Do this to each scene you want to stop or loop at the end of.

  • Adding payPal shopping cart to a Flash website?

    Hi there,
    I'm a newbie, creating my first flash website and my first shopping cart, so  be easy on me.
    I've done  a lot of research, however was unable to find any tutorials on how to  set up a  Paypal shopping cart or any other secured shopping cart in a website  that was created in Flash professional CS5, actionscript 3.0. Paypal's  tutorial is  only for html (copy/paste the code in your html website and voila) but  how to integrate shopping cart in Flash website? Any help would be  appreciated.
    This is my first time setting up a cart on a website. I  have a "shop"  button on my site (see picture below) that I would like linked to an  external  page preferably with my items that I would like to sale. Not  sure if paypal's shopping cart can do what I want it to do. Once the  user clicks on the "Shop" button, I'd like for my customer to be able to  see a picture of the items I have for sale, price for each item, a box  where the buyer can write quantity of item desired, add to cart button  and then check out button. With paypal shopping  cart, can I add  pictures beside each item I am selling when entering the  price on  paypal's website or I have to add the pictures of the items I  am  selling directly in my shop section of my website and add a buy now   button for each individual item and then copy/paste the email link  provided by  Paypal to each of my buy now buttons and add that code to  my "Actions" layer within Flash? How would the script look like? And  what if later on I want to add additional info to an item, change price  or delete it completely...would I have to make the changes everytime  within paypal only or I'd have to make the changes on both paypal and my  flash file and upload new copy to server? I'd like for my cart to  integrate with my site (keep the same look and feel, same  layout/background color) preferably but what ever way is the easiest.  Thanks for your help.

    Any source that provides embed code to add to your webpage should work. So in other words if E-Junkie provides the HTML code that you simply embed in your own code it will work. If it requires a certain plugin be installed it may or may not.

  • Advice on how to keep Flash website small & fast

    Hi, I'm developing my first Flash website (I know, I know, there are plenty of reasons to use other development products, but for now it will be Flash), and I envision a site with several pages and needing to load some large graphics.  I'm doing the main design work in Illustrator and importing it into Flash.  I'm not too concerned with animation except perhaps moving some buttons around.  My plan so far is to use a lot of UI loaders to keep the main .swf small and to really try to keep the coding pretty simple as I'm a newbie anyway.  I'm looking for general advice on how to prevent the main site from loading quickly - for example, I don't have a good sense of the best format to use for graphics, or which makes the site slower: using several UI loaders or just keeping the content in the main site?  Is a lot of code or large graphics more draining on the load time?  Any thoughts on what you think I can do or not do to keep it lean would be super appreciated, or any other resources you might be able to point me to.
    Thanks in advance!

    Nah... really really stupid questions only get asked in non-Flash forums.  The size of the swf is not tied tot the size of the fla.  The fla has alot more baggage that inflates its size greatly compared to the swf it creates.  The swf will end up bearing the weight of whatever content you put in it.
    If you want to see what's adding weight to your swf, go into your Flash Publish Settings and select the option to Generate Size Report.  When you publish the file it will display a detailed report of each element and the weight it contributes to the swf.
    As far as dynamically loading swf's, it is often a necessity, unless the swf is strictly an animation.  If you import an swf into an fla file, all of the actionscript that might have been in it is stripped out.
    Code will have negligible weight in a file.  Images (large/heavy ones) can put lead shoes on a file, along with video and sound files.

  • Embedding SlideshowPro in a Flash Website

    Hello everyone at the Flash forums!
    I am currently trying to make a Flash website for my cousin's business, and his website should feature a portfolio gallery to display the work he has done (He is a contractor). I am trying to use the SlideshowPro plug-in which generates a very nice-looking Flash gallery that is about 50 times nicer than the one he is using on his website at the moment. One of the big things I like about SSP is that it offers a full-screen picture viewing mode, which would allow potential customers of his to see work he has done better than they are currently seeing.
    However, whenever I publish the website to test it and make sure everything is working okay, I go to the Portfolio page and test SSP in full screen. Once I come back from full screen, the gallery remains on top of the screen on every other page of the website. The audio also does this (It can play audio in the background while looking through the galleries you set up). Since I am somewhat new to Flash, I am not sure why it is doing this. Perhaps someone else has encountered this and has a fix or workaround that I could use.
    Thanks in advance, guys!
    Note: I attached a picture of the problem I am encountering so you guys can see what it is doing.
    Edit: I am not sure whether or not it is relevant, but I have the gallery set to appear in frame 117 and the Home button is set to go back to frame 115, before the gallery should even show up.
    Edit 2: I finally figured out how to get the gallery to not appear on other pages (Yippee!). However, the audio is still continuing to play when I navigate away from the Portfolio page.

    Alright, just figured I would update you guys. I redid the website so that it ran at a higher framerate and kept everything else the same as it was. As stated before, SSP is showing up right, but the audio still isn't working right. I've tried all of the AS codes I've been told to try and none of them have worked. It keeps telling me that every single code I've tried is not a function, so I don't know what I am doing wrong there.
    Also, not really related to SSP: I did add a contact form to the website, and I am now having problems with that not wanting to submit the data to the mailer.php file to send the form information to the designated e-mail address (I keep getting, "Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://sagesportfolio.webs.com/website.swf cannot load data from http://www.sagesportfolio.webs.com/mailer.php. at website_fla::MainTimeline/frame544()", minus the quotes). If anyone might be able to help with that, too, I would highly appreciate it.

  • Add length to animated background clip--how does one do that?

    Howdy there,
    I am kind of new with Final Cut Pro and Final Cut Express...I just purchased some animated clips off a website to use as a background for a foreground clip after getting the chroma key worked out with the green screen thing. What i am struggling with is to add length to the animated background clips. I can easily do that with still image where i can just change the time length but with a video, i.e. a .mov file used in the V1 track to go with a video in the V2 track it would not let me do that. The animated background clips that i have are something like 30 seconds long and i want to make them to be as long as i want them to be.
    By the way, on my MacBook it is Final Cut Express, so i don't know if that makes a difference in having such capacity.
    Any tips will be greatly appreciated!

    You could change the speed of the animated clip. But if you want a longer clip without a speed change, you'll have to either buy the length you need, use a loopable clip, or make your own.
    -DH

  • Can someone explain the structure behind this common practice in most flash websites?

    I'm kind of a newbie with flash. I havent used it in a long long time and when I was using it, I wasnt really fully understanding what I was doing at the time. Anyways, it's been like 10 years now and I have to use it to make a website, but I can't figure out how others are doing this specific thing. I understand the basic concept of how flash works with making a website, and I've even built a very basic website with audio/video and mouse interaction, but now I want to step it up. I've seen many flash websites before and some have a lot of things going on at once and I'm wondering how you implement that smoothly while still allowing mouse interaction and navigation. I know this sounds confusing but basically, what I mean is:
    let's say I have a website and on the website I have buttons that lead to different pages(frames) when clicked. On the main page I have something like a bird that flies from left to right. Let's say that the bird is in the middle of the screen and a user clicks a button. How do I make it so that the bird continues to fly off screen before switching pages? Obviously, I cant tell what the location of the bird will be when the button is clicked since it will vary from user to user so I am completely confused on how to structurally set this up. Would the bird be it's own swf embedded in the main swf? Or is this feature a massive keyframing project for every frame of animation that bird has?
    Also, how do have multiple animations that run on different clocks looping simultaneously? What I mean by this is, lets say the previously mentioned bird has a 25 frame animation loop and a second element, like a sunrise/sunset has a 30 frame animation loop... how do I loop both of them so that they loop seemlessly at the same time? Will I have to animate both of them in a loop until both reach a common frame (150 frames from 6x 25frame bird loops and 5x 30frame sunrise/sunset loops)?
    Thanks,
    MorisatoKei

    You will have to experiment to see what works well and what doesn't.   You can have things animating along a timeline in parallel, but you can also have them be their own movieclips and animated when commanded to play().
    In the case of your bird flying off before a button click is processed, you could manage that as follows.  Have the button set a variable that is defaulted at false to be true.  At the end of the bird's flight, you test that variable ( as in ... if(variable == true)...) to see if it is true, and if so, you process whatever command that button is intended for.  If you used a timeline animtion for the bird, then that test would occur at the last frame of the animation.  If you used a coded tween to move the bird across the scene, then you could use an event listener to detect the animation completed and do the test then.
    There are almost always a variety of choices for achieving the same design goal.  The key to determining a solution is knowing what tools you have to work with... and coming to know what those tools are and how to use them is where learning comes in.

  • Help! Transparency error when opening flash website on Chrome

    Hi, this website was created with html background under and flash on it. When I open it on IE or FF, It shows exactly like my client's design
    You can see image below
    But this error happened when I open it on Google Chrome: a piece of flash part can see through background. Feel like transparency
    Where does this error come from? And how I can fix it? Please help me! Thank you all

    has probably sth to do with wmode.
    set wmode to "opaque" to see if that fixes the problem.

  • Preview image for videos on flash website. Help!

    Hi, I'm not sure if I'm at that right place so sorry if I'm wasting your time by asking this question but I'm having problems with my flash website.
    I want the video on my website to show a preview image before the video is played instead of it displaying a blank black frame. I went on component inspector - preview - and selected the frame of the animation that I wanted to be shown. But when I came to uploading my swf and html file the preview image for the video is still black. On component inspector - preview - it says 'To generate a runtime preview image, use the export button and load the image back by writing your own actionscript'. So I exported the image but I haven't got a clue how to write my own actionscript. I've spent hours trying to find help on this but I haven't been successful.
    Do you know how I can sort this out? Thank you

    Have a look at this tutorial: http://web.archive.org/web/20081012122149/http://www.monkeyflash.com/flash/poster_frame_fo r_flash_video/
    If you still have questions, ask again.

  • Problems uploading Flash website

    I'm trying to upload my Flash website. I inserted my index.fla file in Dreamweaver and saved it as an html. I then uploaded the html on the FTP and now the website is showing up blank. Where did I go wrong?

    Hi,
    Make sure you embed your swf on your html page and upload both. The fla (original Adobe Flash file) don't need to be uploaded on your server. To upload your html page, you can use Dreamweaver buit-in FTP or your favorite one. Make sure your target audience has the right flash player or your animation won't play.
    Hope this help !
    M.

  • Looking after free animated backgrounds

    Are there any websites where there are animated backgrounds that are for free download, missing often for my menus
    After Effects animations..

    There are some backgrounds in the animation presets included with After Effects.

Maybe you are looking for

  • I keep getting the message You need a newer version of Pages to open this document. but I don't have an update available in app world. Now what?

    I keep getting the message You need a newer version of Pages to open this document. but I don't have an update available in app world. I did the update but it doesn't seem to be registering on my macbook pro. Now I can't open any of my documents as I

  • XToolKit excessive logging

    Hello, I am on a RedHawk 4.1.5 box using Java 1.5.0_10. We are using the Java logger with a logging level set to FINEST. In the log created we see user specified log messages but we also see: sun.awt.X11.XToolKit callTimeoutTasks FINER: XToolkit.call

  • User profile service in SharePoint 2013

    Hi,      I have created multiple list views.I want to assign these views to HR,Finance,Marketing dept,etc. Can you help me to retrieve the dept from user profile service and  assign to the views.And when the user logged in,it allows only the correspo

  • About R/3-XI-JDBC

    Hi all..... Iam learning XI now ..so iam having some doubts can anybody explain...... In the scenario R/3->XI---->JDBC. Iam sending an idoc of customer data from R/3  to database by using stored procedure.Is ther any need to use File content conversi

  • Profile Management Framework

    I am developing an application in Java Swing and i have a requirement that i should be able to store some UI related User Preferences locally on client's machine. Some of these preferences could be, 1) To store the last appearance of a table in the a