A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How do they do this?

  1. #1
    Member
    Join Date
    Feb 2002
    Posts
    94

    Question How do they do this?

    I'm wondering how they get the foreground image of the city in here and how they get it to stay in place over the page.

    http://www.youlove.us
    Dar

  2. #2
    Senior Member joshstrike's Avatar
    Join Date
    Jan 2001
    Location
    Alhama de Granada, España
    Posts
    1,136
    They've probably got it on a layer in the flash file above another layer that has a big fat background for everything, and when you click something, that background moves up or down to whatever location you're going to.
    The way they did it runs kind of slow, though...

    (edit)
    I'm wasted. That's all javascript.
    They do it by placing a div with the city picture on a high z level at an absolute position, and then calling a bunch of setInterval calls that change the absolute position of a big fat div in the background, that... (copy paste)
    Last edited by joshstrike; 05-09-2009 at 01:33 AM.

  3. #3
    Member
    Join Date
    Nov 2008
    Posts
    66
    PHP Code:
    #footer{
        
    position:fixed;
        
    bottom:0
        
    left:0;
        
    width:100%; 
        
    height:40%; 
        
    background:url(/graphics/bg-footer.pngrepeat-x 500;
        
    z-index:30;
        } 
    This is the code for the city picture.

  4. #4
    Member
    Join Date
    Feb 2002
    Posts
    94
    Thanks for the info, dudes!
    Dar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center