Smooth horizontal Image Scroller

I have a series of images that have merged into a single large 2400 pixels jpg. I want this loop continuous acrooss the background of a Web site. I tried using TweenLite and TweenGroup but can't get to behave properly. Is there a way of Actionscript 3 to do this? In the end it is added to a Flex site.

  • put the jpg on stage
  • convert it to a MovieClip
  • Delete it
  • In the library, right click on the MovieClip and select the link
  • Check export to actionscript and give a class name to the mc
  • In your actionscript code, create a var like new yourMCclassName() yourPic:yourMCclassName;
  • create an another var yourPic2:yourMCclassName as new yourMCclassName();
  • Add two photos on stage one behind the other

In fact, it might just be easyer to look at this example of woking

var slide1:Stretch1 = new Stretch1();
var slide2:Stretch1 = new Stretch1();
addChild (slide1);
Slide1.x = 0;
Slide1.y = 40;
addChild (slide2);
Slide2.x = slide1. Width;
Slide2.y = 40;

Slide1.addEventListener (Event.ENTER_FRAME, moveIt);

function moveIt(e:Event):void {}
this.stage.frameRate = 40;
-Slide1.x;
-Slide2.x;
If (slide1.x<=>
Slide1.x = slide2.x + slide2.width;
}

If (slide2.x<=>
Slide2.x = slide1.x + slide1.width;
}
   
}

Tags: Adobe Animate

Similar Questions

  • Smooth horizontal scrolling

    Hello

    I noticed that National Geographic has horizontal aritcles marching slowly from left to right (not up and down). How do do that? What is only a function of business account?

    Would appreciate a quick response.

    Thank you.

    They have either a large pan and zoom overlay on the page, or they simply two items that have the good-aligned content it looks like a smooth roll (but isn't).

    There is no feature of magic smooth horizontal scrolling for the clients of the company.

    Neil

  • How to smooth the image zoom/scroll jerks (CS4)?

    Hi guys/girls,

    Is it possible that I can smooth out images that zoom in/out with normal classic Tween. they are so nervous, it looks terrible. I even kind of appeasement and frames per second set at 30.

    Info much appreciated!

    Jeff

    In the library, right-click on the image and select Properties.  In the interface that appears, select allow smoothing.

  • How to recover the horizontal & vertical scroll bars in Outook Express

    I have XP OS House & use Microsoft Outtook Express.  recently, the horizontal & vertical scroll bars disappeared from all but one of my follders. Any suggetions on how to recover these bars thanks to you all.

    I think it may have something to do with the largest compensation part of the Inbox on & leaving very few emails in there.

    I noticed that records I keep have very few emails in them are also without the scroll bar.

    Which is part of what Steve said. They will not appear if there is nothing to achieve. I'm glad that it's as simple as that.

  • Creating a homepage for Apex using horizontal Images with label list?

    Hello

    I am trying to create a homepage for my application, which contains some intro text and images that would like specific interactive apex reports.

    However, I created a list using the horizontal Images with the list of the label template and during execution of the page - no images are displayed - it just displays the missing image icon

    The question I have, this is where are these defined images and how do I add a custom image for each item in the list

    You can do it in the apex by simply using a predefined list templates or even customize existing list templates.

    I suggest you to go through the sample application and try to understand how the entries in the list are defined and where to use the IMAGES.

    In the APEX of the layout defined in the templates page and the positioning of regions (lists in your case) are based on their Display Position

    Pass by this
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/nav_list.htm#CACCJHEE

  • Centering a horizontal image with label list...

    Hello

    Image list is aligned to the left by default. I would like to know if it is possible to it aligned in the center of the page? If so, please inform me. Thank you in advance...

    Chris :)

    Published by: Chris K.W. on December 11, 2009 08:54

    You have caused a dispute very little. Microsoft on the other hand...

    To do this using CSS, you consider bugs in Internet Explorer, which means that it takes 4 times more than necessary. We will not go into the chain of unfortunate who is ensuivie of events involving virtual machines, but it meant that I could not test this on IE8.

    1. define the model for the region containing the "model No.".

    2. to deal with broken Microsoft browsers, enter

    
    

    in the header of the region, and

    
    

    in the foot of the region.

    3. Add this internal style sheet in the header HTML page

    
    

    If that doesn't work in IE8 not then try to remove 'lt' and '8' in step 2.

    This will bring all the horizontal Images whose label says on a page: we can change this option if necessary, but skip redundant code if it is not necessary.

  • Horizontal &amp; vertical scroll bar on Image-Item

    Hello
    I have an image issue... I put a button to zoom-in and zoom-out, but I noticed that when I zoom-in, I see only the top left of the image.
    How can I insert scrolling both vertical and horizontal bars so that the user can see the rest of the zoomed image?
    Any clue?

    Thank you!

    Pezzo,
    You can display bars vertical and Horizontal scrolling on the Image_Item by setting properties "Show vertical scroll bar" and 'Show horizontal scroll bar' to 'yes '. Unfortunately, you can't dynamically set these properties so that they appear only when you zoom in on the image. :-(

    I hope this helps.
    Craig...

    Published by: Silvere on October 23, 2008 09:06

    After I clicked 'Save the Message' a thought struck me that you could have two Image_Items in your form. The one with the scroll bars and the other without. Your Zoom button you could switch back and forth between the Image_Items so it would give you the effect to activate the scroll bars and turn off when you zoom / zoom back in the picture. :-)

  • horizontal Parallax scrolling

    Hello I am trying to build a Web site and like the idea of horizontal scrolling. I watched how a video where he explains the key points should be at the top of the section, to set the scroll vertical at 0 and horizontal for 1 etc... but I found this site and I LOVE it!

    COOK IN THE OVEN. Agency

    How can I define my pages so that they as does this site?

    Thank you!!

    In our Western world, with its orientation to read in detail from top to bottom, using horizontal scrolling is very rare. A page using wide veeeeery is difficult allow users to navigate in, but you can try something like this: http://horizontal-test-pv.businesscatalyst.com/index.html.

    Adobe is a very small image of the Musepage.

    I used anchors (these little dots) to leave the buttons highlight.

    The page is 3000 wide, but that is just the beginning. You must create a lot of space between steps (and anchors) that you think is necessary, taking into account the fact that wide desktop browsers can span more than one section horizontally.

  • Images scroll box

    What I have is an image file very long I want to scroll in a stationary box on my page. There seems to be a lot of custom widgets for text that scrolls vertically; Maybe is one in which I can put my picture as a fill? And who can be made to scroll horizontally?

    You're probably better off using one of the iFrame widgets and just put your picture in it.

  • Move horizontally when scroll vertically

    Is it posible to move object (image button) when scrolling horizontally vertically

    Hello

    Yes, it can be done. The values of the query must be registered to the direction left or right, not up and down.

    You can refer to the screenshot.

    Kind regards

    Neha

  • Image scrolling speed

    I create a folio for the platform Android using CS6 and I have several horizontal scrolling frame overlays that contain images. When I preview the folio on my Galaxy, scrolling is slow and little lag. It is not good that encounter you when you drag horizontally to an additional article, for example.

    I don't see any option to change this in the Panel inlays of Folio. Everyone knows this?

    That there symtom of your device, not the platform. Scrollables executives have always been a little bit of lag on Android devices. You can usually improve performance a bit by closing all the apps running in the background and restarting the device.

    What version of the Galaxy do you use?

  • How to add URLS to a banner image scrolling

    Hello

    I have a photo scrolling banner where a series of about 10 photos are placed horizontally; This banner scrolls slowly horizontally on the screen. An example can be seen here (I replaced the cloud layer in this example with a layer that contains all the images that border one another): http://www.kirupa.com/developer/flash5/imagescroll.htm

    Now I want each image contains a hyperlink on the area of the photo or on a part of the area of the image. This hyperlink must for each photo point to a differetn my site page. At any time the links should stay accessible to click the visible images, while the banner scrolls.

    I was advised to use a function attached to each photo: onClipEvent (mousedown) getURL ("http://www.mysite.com","_self"); another consultant had to use imagex.onRelease = function () {getURL ("http://www.site1.com") ;} }

    imagey.onRelease = function () {getURL ("http://www.site2.com") ;} }

    etc...

    but I'm not familiar with this and I'd like to get help or more on how to attach such a function to each image.

    Otherwise, I thought to use a transparent button placed on each image with a hyperlink. But it's just my inexperienced idea, and I think that the first two proposals are much more appropriate.

    Thanks for your help,

    Erik

    This error message is because you attach the code to the movieclip, not a framework.  to remedy this, click on your movieclip, copying the HTML code to remove it, click on an empty part of the scene, now right-click in the Panel actions and click on paste.  Repeat the test.

  • Google chrome like horizontal shift + scroll function

    How can I feature FETD ad for firefox?
    Google chrome's default.
    Steps to follow.
    (1) to go to a Web site that fits your screen width beyong. ZOOM in the current page, or
    (2) once you see a horizontal scrolling, (I want to use) press the SHIFT key, and scroll by mousewheel to scroll on the page horizintally.

    Well, it helped
    Greasemonkey script.
    http://userscripts.org/scripts/show/168193

  • image scroll bars synchronization control

    Hello, I have a LabVIEW program using the Vision I want to use several Image controls in a VI.  I would like to be able to synchronize the movements of the scroll bars.  If a user scrolls left a window, I want the other windows to also scroll to the left the same amount.  Is this possible?  I know it can be done with 2D image controls, but I would do it with a picture (not external) control.  It would also be useful to zoom in a synchronous way.

    Thank you.

    -I think we can turn the nodes property scrollbars. Let's see if someone else has an idea on the bars scrolling for an image programmatically.
    -For zoom, you can use zoom property from the control of the selected image node and write the same thing to other controls of the image.

  • List Horizontal image centering in a region

    I have 3 standard regions.  Each region, I have an image of the single horizontal list.   By default, only the image is left aligned within the region.    How can I align the center of the image within the frame of the region

    George

    gkthomas wrote:

    Here is the link to test case

    https://Apex.Oracle.com/pls/Apex/f?p=36075:1:3388490748799:

    Workspace: penwick

    Username: [email protected]

    password: natural

    Thanks for creating that.

    What I did is:

    1 added an invisible area to act as a container for the parts of the list, with the model of the region Region of DIV with ID and static ID as the image-list-container. This allows us to apply the specific style for three regions in need, without impact on other regions on the page CSS.

    2 define the Parent area on three areas list so that they become of the subregions of the new container.

    3 added a style sheet to the page of Inline CSS property that center list items in each region:

    #image-list-container .uRegion .uRegionContent {
      text-align: center;
    }
    #image-list-container .uRegion .uRegionContent>.uHorizontalImagesList {
      display: inline-block;
    }
    #image-list-container .uRegion .uRegionContent>.uHorizontalImagesList>ul>li>a {
      margin: 0;
    }
    

Maybe you are looking for

  • Satellite A300 - cannot locate any wireless network

    Hi all I just bougth today a Satellite A300, everything works fine except the wireless access. Ethernet access works very well, and the problem is not with my wireless device since it works with my old laptop. It cannot locate any wireless network. I

  • Sound went out on a Dell desk top.

    Sound went out of my Dell desk top and does not know why. Troubleshooting says it all right, but I don't hear anything more.  Help, please.

  • Why can't I just run the code developed in Lookout Lookout 6.5 6.2?

    Our client has developed the code in point 6.2 Lookout. Now that they have purchased Lookout Run Time 6.5 and they are unable to run their code. Is there a limitation that could cause this kind of behavior? Thank you...

  • 5550dn printer delay between pages

    I have 40 pages it prints well but there is a delay between each page. is this normal or should it keep just print?

  • BlackBerry smartphone how to change my BBID on PRIV

    I just bought my PRIV today and up to now, but I accidentally logged in my BBID on BBM with the wrong account. Now it won't let me switch accounts and all my old bbm contacts are on the other account. Any ideas? Thanks in advance.