Help with scrolling thumbnail?

I'm trying to complete a tutorial on the scrolling thumbail.
It's suppose to be real simple just some buttons inside a movie
clip named PANEL. On mouseover left or right of center the buttons
are suppose to scroll left and right. unfortunately i've spent most
of the afternoon checking and re checking my code. If any one could
shed some light on my problem i would be very grateful! Here is
what i have:
panel.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
var b = stroke.getBounds(_root);
function scrollPanel() {
if(_xmouse<b.xMin || _xmouse>b.xMax ||
_ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
var xdist = _xmouse - 275;
panel._x += -xdist / 7;
Also this tutorial i'm refering to is for Flash MX and i'm
using Flash pro 8. Is this possibly causing the problem?

Hi
This looks like Lee Brimelow's Actionscript, I've used it in
Flash 8 Pro without problem. I've attached the complete code so you
can compare.
Hope it helps

Similar Messages

  • Help with scrolling thumbnails photogallery

    i need some help with this photo gallery im working on. im pretty sure i have almost everything correct but for some reason i cant get the thumbnails when clicked to link up with the img. i want it to show.
    well i cant really upload the file here i just found out so i can email it to whoever leaves there email
    if someone could take a look at the file and tell me what im doing wrong that would be so helpful ive been working on it for the past 2 days trying to fig. out whats wrong searching everywhere and i just cant fig. it out.
    thanks for the help

    Please don't duplicate postings.

  • Slider with scrolling thumbnails

    Is there a way within Muse to have a slider/gallery with scrolling thumbnails? Currently I am using a third party gallery to accomplish this, but I'd rather stay within Muse itself.

    You can try using compositions and then slideshow within composition.
    In composition target container insert the slideshow and as set of slides create different slideshows for separate composition containers.
    It would similar effect.
    Thanks,
    Sanjit

  • Hi, I need help with scrolling

    Hello I am Kevin Jin, I am working a huge project acually not that big, but I need help with five things, i mihgt have more things in my mind but here it is
    1. I need help with scrolling like where you have buttons for example or press on a navigation bar tab, then it goes to that specific pace of the page, for a one page website, for example some sites you press on contacts and gose down to the bottom of the page where the contacts place is located, not opening a new link.
    2.Second also I need help with navigation bar, where it fallows the scroll as it gose down, like for example when it is html the object is fixed to the top, and when you scroll down it will fallow it it,
    3.I need Parallex scrolling where you can have the timeline or animations run while you scroll in the meantime and have animation running all the time, for example the infographic site where the bees are fluying but still have seperate animations while you scroll
    4.I am so sorry i have two more to go, i appreciate your help, I would also like to ask if like looping each animations sperately, not looping the whole timeline, can it be possible to loop an animation while you have all the interactivity witht he site like looping seperately all the time, without interfeering with all the other animation
    5.I also are wondering if you can create multiple pages on one animate project, like multiple pages with html
    I just moved on to edge animate from html, and html was also beirf learn for me and mostly i was doing design work, and i thought getting out of graphic river and moving on the theme forest would be a better idea for me, thank you guys so much of the help and add me on skype : kevin2019170 or add me on facebook ; [email protected] or graphicriver, www.graphicriver.net/user/phantomore I would appriciate if you just would like contact me through SNS since I have that in hany 24 hours long, but the thred will also do, thank you doo much foryour help,
    P.S, I want also all the five things to work on one aimate project not interfeering with other ideas liek all five questions i had should run on one site,
    THANK YOU SO MUCH FOR YOUR HELP AND I APPRICIATE YOUR HELP!

    1.
    write this code in your button Click
    $('html,body').animate({scrollTop: sym.$("Your Symbole Name Here").offset().top}, "slow"); // scroll to the top of that symbol name
    Or :
    $('html,body').animate({"scrollTop":"600px"}, 750); // Higher value means slower , scroll to top page
    1 and 2 see this post http://forums.adobe.com/message/5531344#5531344
    3 use edge commons plugin http://www.edgedocks.com/edgecommons
    4.just put the animations behind eachother so when 1 is done, start with the animating the other symbol/div
    5. i thin its best just to make for every page a new project or make the site in muse.

  • Help with scrolling Panel loop

    Hi,
    I doing a flash scrolling Panel creating the buttons dynamic
    with xml, like the scroll panel made in gotoandlearn "scrolling
    thumbnail Panel" but creating each button with xml. well this works
    fine.
    but I want to do if a panel that loop if I move the mouse
    right or left any idea to do this?
    I hope some see the code that I have now..
    saludos
    Carolina

    Check out this link: The Tom Kyte Blog: Varying in lists...

  • Help With Scrolling Menu / Button Rollovers

    First thank you to anyone who can answer and help with this
    question.
    http://paragon.sortismarketing.com
    - at this link I have created a site with a simple scrolling menu.
    Now what I want to happen is when you rollOver the buttons on the
    scrolling menu they get larger and then smaller again after you
    roll off them.
    I know how to do this with tweening in a non moving
    environment, by making them a movie clip instead of button. But for
    some reason when I did this in this case it screwed the menu all up
    and made it go crazy. Is there a way to do this with action script
    that isn't going to screw up the underlying code for the
    scrolling?

    You can use the below code also. As your mouse pointer goes
    over the down, it will scroll down.
    on(rollOver){
    scrolltext.scroll -= 1;

  • Help with Scrolling Text Item.

    Hi , need help with making a text item scrollable.
    i.e. A field is 30 characters and i can only display 10
    characters, now what I would like is a scroll bar under the text
    item.
    Is this possible. I am using Forms 5.
    Thanx for any help.
    Pankaj Patel.
    null

    Petr Valouch (guest) wrote:
    : Pankaj Patel (guest) wrote:
    : : Hi , need help with making a text item scrollable.
    : : i.e. A field is 30 characters and i can only display 10
    : : characters, now what I would like is a scroll bar under the
    : text
    : : item.
    : : Is this possible. I am using Forms 5.
    : : Thanx for any help.
    : : Pankaj Patel.
    : Hi
    : You need that scrollbar under the item? You can set length
    of
    : text item and its size independently, so you can have text
    item
    : char(30) with size of 10 characters.
    An alternative is to declare the item as a multi-line text item
    with wrap set on. This would give you a vertical scroll bar on
    the item.
    Another option is to programmaticaly pop up an Editor, each time
    focus is moved to the item, or to actually change the width of
    the item when focus moves to it (and shrink it back when focus
    moves away.
    Simon Hedges
    Gloucester
    UK
    null

  • Need Help with Scrolling Problem

    I have a JTree displayed in scrollpane. Based on search criterial I select the nodes where the search criteria is found. If the match is located off the screen further down into the tree, the node is highlighted but the scrollpane doesn't automatically scroll down to show it. Any help with this problem is appreciated.

    Wow.. Thanks. I thought I would need some fancy code to handle this problem. scrollPathToVisible did it for me. Thanks.

  • Help with creating thumbnail images

    Hi there
    I need some help with a webpage that displays images.
    I am capturing an internal xml file ..and want to display:
    An Image or images with a width of 130 px and height of 130
    px
    My problem is that when our users upload the pictures to the
    website ..they are not resized ..and they would not know how to use
    a program to do this.
    Is there a code or way to take the uploaded picture file and
    reduce it to a size of 130 x 130 in the existing page?
    It currently is displaying the full size image(s) which are
    take up 2 screens.
    thanks for your time ..Rob

    > Is there a code or way to take the uploaded picture file
    and reduce it to
    > a
    > size of 130 x 130 in the existing page?
    In the HTML you can just give it a width and height of those
    values.
    However, the full image is still loaded by the browser, so if
    the image is
    large, it's still going to be a bandwidth hog.
    Ideally, you'd resize on the server at time of upload. This
    can be done with
    various components depending on the particular back-end
    server/scripting
    language.
    -Darrel

  • URGENT! Need help with scrolling on a JPanel!

    Hello Guys! I guess there has been many postings about this subject in the forum, but the postings I found there.... still couldn't solve my problem...
    So, straight to the problem:
    I am drawing some primitive graphic on a JPanel. This JPanel is then placed in a JScrollPane. When running the code, the scrollbars are showing and the graphic is painted nicely. But when I try to scroll to see the parts of the graphics not visible in the current scrollbarview, nothing else than some flickering is happening... No movement what so ever...
    What on earth must I do to activate the scroll functionality on my JPanel??? Please Help!
    And yes, I have tried implementing the 'Scrollable' interface... But it did not make any difference...
    Code snippets:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    import java.util.*;
    public class FilterComp extends JPanel {//implements Scrollable {
      protected DefaultMutableTreeNode root;
      protected Image buffer;
      protected int lastW = 0;
      protected int origoX = 0;
      protected final StringBuffer sb = new StringBuffer();
    //  protected int maxUnitIncrement = 1;
      protected JScrollPane scrollpane = new JScrollPane();
       *  Constructor for the FilterComp object
       *@param  scrollpane  Description of the Parameter
      public FilterComp(JScrollPane scrollpane) {
        super();
    //    setPreferredSize(new Dimension(1000, 500));
        this.setBackground(Color.magenta);
    //    setOpaque(false);
        setLayout(
          new BorderLayout() {
            public Dimension preferredLayoutSize(Container cont) {
              return new Dimension(1000, 600);
        this.scrollpane = scrollpane;
        scrollpane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        scrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        scrollpane.setPreferredSize( new Dimension( 500, 500 ) );
        scrollpane.getViewport().add( this, null );
    //    scrollpane.getViewport().setScrollMode(JViewport.SIMPLE_SCROLL_MODE);
        repaint();
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        int w = getSize().width;
        if (w != lastW) {
          buffer = null;
        Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
        if (root != null) {
          int h = getHeight(root);
          if (buffer == null) {
            buffer = new BufferedImage(getWidth(), getHeight(), BufferedImage.TYPE_INT_ARGB);
            Graphics2D g3 = (Graphics2D) buffer.getGraphics();
            g3.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g3.setColor(Color.black);
            g3.setStroke(new BasicStroke(2));
            paint(g3, (w / 2) + origoX, 10, w / 2, root); 
          lastW = w;
          AffineTransform old = g2.getTransform();
          AffineTransform trans = new AffineTransform();
          trans.translate((w / 2) + origoX, (getHeight() - (h * 40)) / 2);
          g2.setTransform(trans);
          g2.drawImage(buffer, (-w / 2) + origoX, 0, null);
          g2.setTransform(old);
        updateUI();
       *  Description of the Method
       *@param  g  Description of the Parameter
      public void update(Graphics g) {
        // Call paint to reduce flickering
        paint(g);
       *  Description of the Method
       *@param  g2    Description of the Parameter
       *@param  x     Description of the Parameter
       *@param  y     Description of the Parameter
       *@param  w     Description of the Parameter
       *@param  node  Description of the Parameter
      private void paint(Graphics2D g2, int x, int y, int w, DefaultMutableTreeNode node) {
        if (node.getChildCount() == 2) {
          DefaultMutableTreeNode c1 = (DefaultMutableTreeNode) node.getChildAt(0);
          DefaultMutableTreeNode c2 = (DefaultMutableTreeNode) node.getChildAt(1);
          if (c1.getChildCount() == 0 && c2.getChildCount() == 0) {
            String s = c1.getUserObject().toString() + " " + node.getUserObject() + " " + c2.getUserObject();
            paint(g2, x, y, s);
          } else {
            g2.drawLine(x - (w / 2), y, x + (w / 2), y);
            Font f = g2.getFont();
            g2.setFont(new Font(f.getName(), Font.BOLD | Font.ITALIC, f.getSize() + 2));
            paint(g2, x, y, node.getUserObject().toString());
            g2.setFont(f);
            g2.drawLine(x - (w / 2), y, x - (w / 2), y + 40);
            g2.drawLine(x + (w / 2), y, x + (w / 2), y + 40);
            paint(g2, x - (w / 2), y + 40, w / 2, c1);
            paint(g2, x + (w / 2), y + 40, w / 2, c2);
        } else if (node.getChildCount() == 0) {
          paint(g2, x, y, node.getUserObject().toString());
       *  Description of the Method
       *@param  g2  Description of the Parameter
       *@param  x   Description of the Parameter
       *@param  y   Description of the Parameter
       *@param  s   Description of the Parameter
      private void paint(Graphics2D g2, int x, int y, String s) {
        y += 10;
        StringTokenizer st = new StringTokenizer(s, "\\", false);
        if (s.indexOf("'") != -1 && st.countTokens() > 1) {
          int sh = g2.getFontMetrics().getHeight();
          while (st.hasMoreTokens()) {
            String t = st.nextToken();
            if (st.hasMoreTokens()) {
              t += "/";
            int sw = g2.getFontMetrics().stringWidth(t);
            g2.drawString(t, x - (sw / 2), y);
            y += sh;
        } else {
          int sw = g2.getFontMetrics().stringWidth(s);
          g2.drawString(s, x - (sw / 2), y);
       *  Sets the root attribute of the FilterComp object
       *@param  root  The new root value
      public void setRoot(DefaultMutableTreeNode root) {
        this.root = root;
        buffer = null;
       *  Gets the root attribute of the FilterComp object
       *@return    The root value
      public DefaultMutableTreeNode getRoot() {
        return root;
       *  Gets the height attribute of the FilterComp object
       *@param  t  Description of the Parameter
       *@return    The height value
      private int getHeight(TreeNode t) {
        int h = 1;
        int c = t.getChildCount();
        if (c > 0) {
          if (c > 1) {
            h += Math.max(getHeight(t.getChildAt(0)), getHeight(t.getChildAt(1)));
          } else {
            h += getHeight(t.getChildAt(0));
        return h;
       *  Sets the x attribute of the FilterComp object
       *@param  x  The new x value
      public void setX(int x) {
        origoX = x;
       *  Gets the x attribute of the FilterComp object
       *@return    The x value
      public int getX() {
        return origoX;
       *  Gets the preferredScrollableViewportSize attribute of the FilterComp
       *  object
       *@return    The preferredScrollableViewportSize value
    //  public Dimension getPreferredScrollableViewportSize() {
    //    return getPreferredSize();
       *  Gets the scrollableBlockIncrement attribute of the FilterComp object
       *@param  r            Description of the Parameter
       *@param  orientation  Description of the Parameter
       *@param  direction    Description of the Parameter
       *@return              The scrollableBlockIncrement value
    //  public int getScrollableBlockIncrement(Rectangle r, int orientation, int direction) {
    //    return 10;
       *  Gets the scrollableTracksViewportHeight attribute of the FilterComp object
       *@return    The scrollableTracksViewportHeight value
    //  public boolean getScrollableTracksViewportHeight() {
    //    return false;
       *  Gets the scrollableTracksViewportWidth attribute of the FilterComp object
       *@return    The scrollableTracksViewportWidth value
    //  public boolean getScrollableTracksViewportWidth() {
    //    return false;
       *  Gets the scrollableUnitIncrement attribute of the FilterComp object
       *@param  r            Description of the Parameter
       *@param  orientation  Description of the Parameter
       *@param  direction    Description of the Parameter
       *@return              The scrollableUnitIncrement value
    //  public int getScrollableUnitIncrement(Rectangle r, int orientation, int direction) {
    //    return 10;
    }

    The Scrollable interface should be implemented by a JPanel set as the JScrollPane's viewport or scrolling may not function. Although it is said to be only necessary for tables, lists, and trees, without it I have never had success with images. Even the Java Swing Tutorial on scrolling images with JScrollPane uses the Scrollable interface.
    I donot know what you are doing wrong here, but I use JScrollPane with a JPanel implementing Scrollable interface and it works very well scrolling images drawn into the JPanel.
    You can scroll using other components, such as the JScrollBar or even by using a MouseListener/MouseMotionListener combination, but this is all done behind the scenes with the use of JScrollPane/Scrollable combination.
    You could try this approach using an ImageIcon within a JLabel:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Test extends JFrame {
         BufferedImage bi;
         Graphics2D g_bi;
         public Test() {
              super("Scroll Test");
              makeImage();
              Container contentPane = getContentPane();
              MyView view = new MyView(new ImageIcon(bi));
              JScrollPane sp = new JScrollPane(view);
              contentPane.add(sp);
              setSize(200, 200);
              setVisible(true);
         private void makeImage() {
              bi = new BufferedImage(320, 240, BufferedImage.TYPE_INT_ARGB);
              g_bi = bi.createGraphics();
              g_bi.setColor(Color.white);
              g_bi.fillRect(0,0,320,240);
              g_bi.setColor(Color.black);
              g_bi.drawLine(0,0,320,240);
         public static void main(String args[]) {
              Test test = new Test();
    class MyView extends JLabel {
         ImageIcon icon;
         public MyView(ImageIcon ii) {
              super(ii);
              icon = ii;
         public void paintComponent(Graphics g) {
              g.drawImage(icon.getImage(),0,0,this);
    }Robert Templeton

  • Help with scrolling photo gallery

    I'm using the code below to for a scrolling photo gallery. I got this from another forum on Adobe. My problem is that I can't get my images to upload. I uploaded this for an image but it's not working:
    <img src="images/baca_poster_small.jpg" data-cycle-title="image1">
    Can someone please help me with getting my pictures to work in this?
    Thanks!
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 document with Cycle2</title>
    <!--Latest jQuery Core Library-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!--Cycle2 Plugin Script-->
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20130409/jquery.cycle2.min.js"></script>
    <style>
    .cycle-slideshow, .cycle-slideshow * {
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin:0 auto;
    width:45%; /**adjust width as required**/
    .cycle-slideshow img {width: 100%;}
    </style>
    </head>
    <body>
    <h1><a href="http://www.malsup.com/jquery/cycle2/">jQuery Cycle 2</a> Responsive Slideshow</h1>
    <!--begin slideshow-->
    <div class="cycle-slideshow"
        data-cycle-pause-on-hover="true"
        data-cycle-speed="700"
    >
    <!--your images go here-->
    <img src="http://malsup.github.com/images/beach1.jpg" data-cycle-title="beach1">
    <img src="http://malsup.github.com/images/beach2.jpg" data-cycle-title="beach2">
    <img src="http://malsup.github.com/images/beach3.jpg" data-cycle-title="beach3">
    <img src="http://malsup.github.com/images/beach4.jpg" data-cycle-title="beach4">
    <img src="http://malsup.github.com/images/beach9.jpg" data-cycle-title="beach9">
    <!--end slideshow-->
    </div>
    </body>
    </html>

    Is this supposed to be a WordPress site?  None of these images are found on the server.  Those folders don't exist either.
    <img class="first" src="mosspictures/DSCN0038.JPG" alt="">
       <img src="mosspictures/DSCN0040.JPG" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-5.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-6.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-1.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-2.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
    Nancy O.

  • Help with scrolling please

    hey everyone,
    I just figured out a way to scroll a strip of thumbnails
    using left/right buttons on rollOver. it's masked so it only shows
    about 3-4 pics at a time but there'e about 20 pics in the strip.
    The problem is that when I get to the end of the strip on either
    side, it just keeps on going and doesn't stop.
    "fatController" is just an invisible MC that tells the slide
    what to do.
    and "masker.contentText" is just some code I haven't
    converted yet (becuase it used to be a text scroll instead of
    pics).
    //my left button code:
    on (rollOver) {
    direction = -1;
    _level0.fatController.gotoAndPlay(2);
    on (press, release, releaseOutside, rollOut, dragOut) {
    _level0.fatController.gotoAndStop(1);
    //Right button code:
    on (rollOver) {
    direction = 1;
    _level0.fatController.gotoAndPlay(2);
    on (press, release, releaseOutside, rollOut, dragOut) {
    _level0.fatController.gotoAndStop(1);
    //and my slide code:
    //frame1
    stop();
    //frame2
    _level0.masker.contentText._x = _level0.masker.contentText._x
    + ( _level0:direction * 5);
    //frame3
    _level0.masker.contentText._x = _level0.masker.contentText._x
    + ( _level0:direction * 5);
    gotoAndPlay (2);
    any help would be so great!
    B-rad

    Move your finger around the scroll surface more quickly, do not stop turning and do not lift your finger off the surface. It's the stopping or lifting that prevents the letter coming up.
    There is a skill to it, so start by simply moving around the scroll wheel as quickly as you can just to get the letters coming up. Don't try to aim for any letter or song, just get the letters appearing and then move between them. For it to show up, you have to keep turning, if you stop, the iPod regards that as a "start scrolling again" thing. Also, if you lift your finger off the surface, once again the iPod regards that as a "start again" thing.
    But once the letter has appeared, you can stop turning, which will allow you to turn more slowly so that you can choose the particular letter you want, but while moving slowly between letters, keep you finger on the surface or the feature will turn off again.
    Phil

  • Help with scrolling screen

    I am writing a turn based strategy game in Java but I am unable to make a scrolling screen you can "move" your view of the game board around in.
    I can do every other aspect of the game myself, except for this.
    Examples of this on the internet are only for Applets(My program is a JFrame)
    Can anyone help?

    http://java.sun.com/javase/6/docs/api/javax/swing/JViewport.html
    Edit: Don't even start with the Swing fascist thing George ;-D
    Further edit: Here, i'll keep it neutral. http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.draw2d.doc.isv/reference/api/org/eclipse/draw2d/Viewport.html
    Message was edited by:
    jGardner

  • Help with Scrolling Text

    I am a big iMovie fan, but I have just had a problem while attempting to create a video game trailer. I have never experienced this before, and I do not know how to get by it.
    Ok. So I have 20 seconds of scrolling text, and about 28 lines of text. 247 characters with no spaces if you really want to know. I have 20 seconds of video behind it.
    Here's the problem: The last five lines of text are cut off. They are completely normal: Helvectia, Bold, 16 size, Left sided, white. There is no fancy text or images around it besides for the video behind it. (It played fine before with no video behind it).
    I've tried resizing the video, the text length, everything I can think of, and nothing works. Please help ASAP.
    I am running this on a MacBook, iMovie '08, the total time of video is 41 seconds. The video behind the scrolling text is a .mov file.
    Thanks!

    Note: The problem seems to have fixed itself. I do not know what the problem was, but I was messing around with the text and I noticed the missing lines were back. If anybody knows what the problem was, or wants to contribute to this post, please do so.
    Thanks!
    Contact: jomskylark [AT] gmail [DOT] com
    Message was edited by: sky_lark

  • Help with scrolling background

    i am following a tutorial and in it, when the Hero hits a
    wall he respawns somewhere on the screen. The problem with that
    was, that i didnt know where he would respawn. And In order to make
    the maze bigger i used a scrolling background and I couldnt figure
    out how to change the respawn location either. Here is the site
    that I am following the tutorial from
    http://www.emanueleferonato.com/2007/02/09/flash-game-creation-tutorial-part-51/
    Below is the code that I'm using
    onClipEvent (load) {
    yspeed = 0;
    xspeed = 0;
    wind = 0.00;
    power = 0.65;
    gravity = 0.1;
    upconstant = 0.75;
    friction = 0.99;
    onClipEvent (enterFrame) {
    if (Key.isDown(Key.LEFT)) {
    xspeed = xspeed-power;
    if (Key.isDown(Key.RIGHT)) {
    xspeed = xspeed+power;
    if (Key.isDown(Key.UP)) {
    yspeed = yspeed-power*upconstant;
    if (Key.isDown(Key.DOWN)) {
    yspeed = yspeed+power*upconstant;
    xspeed = (xspeed+wind)*friction;
    yspeed = yspeed+gravity;
    _root.wall._y -=yspeed;
    _root.wall._x -=xspeed;
    _rotation = _rotation+xspeed;
    if (_root.wall.hitTest(_x, _y, true)) {
    xspeed = 0;
    yspeed = 0;
    _root.wall._x = 2500;
    _root.wall._y = 1681;
    Can anyone help me?

    there's no width property in a2.  use _width:
    animator = createEmptyMovieClip('animator',1);
    bg_1 = animator.attachMovie('bg_mc','bg_1',1);
    bg_2 = animator.attachMovie('bg_mc','bg_2',2);
    bg_1._x = -bg_1._width/2;
    bg_2._x = bg_2._width/2;
    speed = 1;
    cloudWidth = 380;
    animator.onEnterFrame = function () {
        bg_1._x -= speed;
        bg_2._x -= speed;
        if (bg_1._x <= -bg_1._width) bg_1._x = cloudWidth;
        if (bg_2._x <= -bg_2._width) bg_2._x = cloudWidth;

Maybe you are looking for

  • Import goods and Sell directly to Customer

    Dear Gurus, I have a scenario in which the customer (outside INdia) will send their goods to India. And from India it has to be sold to the final customer (In India) without any further processing. Should the place at which the goods will be rcieved

  • How to connect Trigger USB-6009 on a flowmeter

    I have a flowmeter with the data: sensing principle: hall-effect, non contacting output square wave: NPN o.c. Voltage supply: 4,5-24 VDC output current: 13mA max more you can find in the attachement and i use the USB-6009. How i have to connect the f

  • ERS settlement - GR based invoice verification

    I have a problem. I have a PO for 20000. GR done for 10000.Invoicing done for 10000. Now for this vendor ERS activated. But in PO I cannot activate GR based Inv verfication because its grayed out.The  is SPRO config. I cannot change it. Is there any

  • "Oracle Fusion Apps" is launched @ ORACLE OPENWORLD

    Hi All, Oracle has made Oracle Fusion Applications to general availability. Please do visit this following press release to know more about this launch: http://www.oracle.com/us/corporate/press/173456 regards, Anand

  • PDF Embed Problems

    I am running a command line batch program to generate a bunch of PDFs. I need the fonts to be embedded in the PDF, but whenever I change the uifont.ali file it doesn't work. The alias section works fine, but as soon as I try to use a font in the embe