SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why would scrolling backgrouns slow everything down?

    I Have a movie with a scrolling background, and ever since I have added this background it seems to have slowed down all the other movie animations. Such as my rollovers on buttons. I have them animating fire when you rollover them, but now they are really slow.

    Any ideas? I have imported the scrolling background graphic as a 60% quality jpg. It's just a movie clip that sits on the main timeline and scrolls across looping.

    Thanks.

    Laura
    ****************
    The Webmistress

  2. #2
    ...
    Join Date
    Jan 2002
    Location
    London, UK
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If your using Tweening for the animation it'll usually run slow on machines with lowish spec's (memory & processor).

    Its best to use ActionScript for less complicated animation.

  3. #3
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh really? Cool I will try that. I will have a look for some instructions on how to do that. Cant be too hard can it? Just moving a symbol scross the screen in a line?

    Thanks for that.
    ****************
    The Webmistress

  4. #4
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have used this code:


    onClipEvent (load) {
    // this sets the initial x position of our clip
    this._x = 50;
    }
    onClipEvent (enterFrame) {
    // this moves our clip 5 pixels to the right every frame until it reaches a certain point
    if (this._x<780) {
    this._x += 2;
    }
    }

    But everything is still slow? Is this code bad?
    ****************
    The Webmistress

  5. #5
    ...
    Join Date
    Jan 2002
    Location
    London, UK
    Posts
    759
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by webmistress
    I have used this code:


    onClipEvent (load) {
    // this sets the initial x position of our clip
    this._x = 50;
    }
    onClipEvent (enterFrame) {
    // this moves our clip 5 pixels to the right every frame until it reaches a certain point
    if (this._x<780) {
    this._x += 2;
    }
    }

    But everything is still slow? Is this code bad?
    There's nothing wrong with the code.

    If the image your moving in the background is large that could explain it or a combination of all the other animation (rollovers) running at once.

  6. #6
    SitePoint Addict webmistress's Avatar
    Join Date
    Aug 2002
    Location
    Derbyshire, UK
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm I had a feeling it might be that. Oh well looks like I need to cut down on some animations or something.

    Thanks for the help!
    ****************
    The Webmistress


Bookmarks

Posting Permissions

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