Best way to make a smooth scrolling list of 100's of objects ?

Hi there.I need a smooth scrolling list! for eg the scrolling list of contacts in iOS.
I can make a scrolling list by just vertically moving a huge sprite that contains all of the elements as movie clips but this is slow !
how could I make something that doesnt slow down depending on the size of that data ?
Thanks
Luke

I made a simplified test and it also was running slower without
import flash.display.MovieClip;
import hiResStats.net.hires.debug.Stats;
import flash.display.BitmapData;
import flash.display.Bitmap;
import com.greensock.*;
import flash.events.*;
var stats:Stats = new Stats();
var holder:MovieClip = new MovieClip();
addChild(holder);
for (var i=0; i<1000; i++) {
var newitem:item = new item();
newitem.label.text=String(Math.random());
var bmp:BitmapData=new BitmapData(320,60);
bmp.draw(newitem);
var bitmap:Bitmap=new Bitmap(bmp);
bitmap.y=i*60;
holder.addChild(bitmap);
var blitMask:BlitMask=new BlitMask(holder,0,0,320,480,true,true);
addChild(stats);
addEventListener(Event.ENTER_FRAME,go);
function go(e:Event) {
holder.y-=10

Similar Messages

  • Best way to make a to do list

    new to apple - what is the best way to make a to do list? Reminders, an app, sticky notes?

    If I read your post correctly you want to build a string that looks the same as how Script Editor would display a list, correct?
    If so, that's not hard.
    You can use 'text item delimiters' to tell AppleScript how to convert a list to a text object - the TID will be inserted between each list item.
    Then all you have to do is prefix the list with {" and suffix it with "} and you're done:
    -- start off with something in the list:
    set theList to {"cold", "drink", "beer"}
    set oldDelims to my text item delimiters
    set my text item delimiters to "\", \""
    set myString to theList as text
    set my text item delimiters to oldDelims
    return "{\"" & myString & "\"}" as text
    This will result in a text object that looks like:
    {"cold", "drink", "beer"}
    which you can easily store in your Filemaker database.
    Note the copious use of the backslash to escape the quote characters so they can be embedded in a text object.
    I'm curious as to why you want to do this, though.

  • What is the best way to make a list of addresses for envelopes or labels?  Address book, numbers or pages?

    What is the best way to make a list of addresses for envelopes and labels?  Address book, Pages or Numbers?

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

  • Best way to make a booklet?

    What's the best way to make a booklet on my Mac?  I need to make something that is 8 1/2 x 5 1/2 (so regular paper folded in half) allowing me to put 4 pages on one sheet of paper.
    In the past, I've been able to make full sized pages, and make booklets via the copy machine at school (think music programs here) but someone recently told me there are ways to do this on a mac so that I could make as booklet and just bring to staples to print.
    Any ideas would be greatly appreciated.

    For starters, look at the "more like this" list on the right side of this page.
    Then there is the answer I've used for several years.
    1 - For a folded US letter-size booklet start with your Pages document in Legal size & larger than normal font size. Export the Pages document to a PDF & then drag the PDF to the icon of Cocoa Booklet. It will create a new PDF in booklet form. For international paper sizes, create the Pages document in the larger size with a larger font, i.e. create A4 pages to create A5 folded booklets. You can also use US tabloid or A3 to create larger booklets.
    Next you'll need to use Create Booklet Service to create a booklet with any number of pages (best in a multiple of 4). You can create the booklet directly from the print dialog after you install the service. Again, for US letter size booklets, I find it best to create them in legal size as above. Downlond it from the link & run its installer. It will open the booklet in Preview. If you're using Lion, I suggest using File > Export to save the PDF where you can find it.
    2 - This involves setting your Pages document in File > Page Setup… to landscape orientation & then paginating the document manually. 
    Use linked text boxes. This is easier done with the layout showing. First you need to add a page break to have two pages. Click in the body area & then Insert > Page Break. Now click outside the layout area to enter object mode & click the "T" in the tool bar or Insert > Text to create a text box & type something in it. This is to keep the box from disappearing if you click elsewhere & the text can be replaced later. If you already have some text to paste in you can just paste while in object mode & a text box containing your text will be created. You will now need to click outside the layout again & drag the cursor toward the text box to select it. You can now position the first text box in the lower right of your 2-page document. It is easier to see where it goes if you have the document set up with 2 columns. Click on the blue-outlined tab at the lower right of the text box to create a new of the same size & move the box to the upper left. Repeat for a box for the upper right & again for the lower right. You will now have 4 linked text boxes.
    This will not let you automatically use page numbers because Pages "sees" each page & you actually have 2 pages per page. You'll need to create them manually. I would use text boxes.

  • What is the best way to make PSD into HTML for emails

    What is the best way to make PSDs into HTML for emails? Will the new feature in Dreamweaver work for emails as well? I am using Cheetah mail, but I need to be able to turn PSDs into HTML so I can use it in Cheetah mail.  I have a general idea of how to do this, but I'm stumped about where to begin.

    Use PShop for images only.  Use DW to create your tables and inline CSS styles.
    Many e-mail clients do not show images for security reasons.  So graphics heavy e-mails are not an optimal way to communicate with your mailing list.
    See Alt-Web Articles, HTML E-mails and Newsletters
    Nancy O.

  • What is the best way to make skin uniform (not necessarily blurring it!)

    Hi,
    I have some photographs where the skin of the model's leg is not of uniform brighteness. Without blurring it, I have tried the clone stamp but it is very difficult to not introduce further variations in brightness.
    What is the best way to make skin uniform in brightness (actually, the same color!)?
    Thanks,
    Juan Dent

    I know EXACTLY what you mean.  I was doing something exactly on those lines just yesterday.
    It's not trivial, but it's doable.
    For hard "spots", you can try the Spot Healing Brush first.
    But here's a neat trick I sometimes use that can nicely increase the overall smoothness:
    1.  Select just the skin area.
    2.  Contract the selection a bit and feather the edge, just to make sure you don't mess up the edges.
    3.  Filter - Noise - Median, and adjust the radius to be fairly large.  Watch the image to see the smoothness level.
    4.  Edit - Fade and knock back the effect, so that it's not perfect, but makes a subtle improvement.
    Then, for gentle darkening lightening, try the Burn and Dodge Tools, set to a low Exposure level (and possibly with Airbrush Mode on).  Work gently.
    Cloning with low opacity can sometime help as well.
    -Noel

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • What is the best way to make a DVD from iMovie

    What is the best way to make a DVD from iMovie?
    I am using iMovie 06 (Naturally) with iDVD 08. I have always used;
    iMovie 06, File > Share to iDVD 08. And got pretty good results.
    Some say the best way is to quit iMovie 06, open iDVD and import the movie from the Media button.
    I have tried both methods in the results look the same. I'm interested in getting the very best quality possible.

    You likely have one of the most expensive media converter boxes on the market today.
    But does it work well with most macs? (my guess is that it does). But more specifically can it "handshake" with an intel based mac? I personally haven't tried it.
    But you may want to read this for yourself if you haven't already:
    http://discussions.apple.com/thread.jspa?threadID=1179361&tstart=2362
    Assuming it works then the best format is .dv which this unit will support apparently.

  • Best way to make a Constant Power Load

    What would be the best way to make a load that always draws the same amount of power whatever the voltage on it. For exemple, an load would draw 100 mA at 24 VDC, 150 mA at 18 VDC and 200 mA at 12 VDC. All I found is to use Nonlinear Dependant source.
    Any easier way to do this? Thanks.

    Sorry about the file mix up, I was anxious to get it posted for you that I failed to realize you were using a different version.
    As far as the last "amplifier" in your Leaky Feeder design, I actually hooked it up to the 24VDC supply on the left and this was a direct connect before the first resistor.  I realize this is not what would be ideal for your application as probably you have only a certain place in the Leaker Feeder to tap off from. I would suppose this would be going into a different entry way off the main entry at an intersection so I do not know how my adjusting the placing of this would effect the results because it seems to me by doing this I have bypassed a bunch resistance in the Feeder cable itself (if that is what the resistors represent) and also bypassed a number of amplification stages in the process as well.
    I will post a picture of my circuit for you to examine and try in Version 9.  This is the only thing I could come up with to where the power draw was the same no matter what the voltage input was. The only thing I can see as a drawback is that with this circuit the current remains constant but the voltage fluctuates. If I use a 24V regualtor and drop the input voltage to 12V the current remains at approx 118ma but the voltage drops to 12V when I plug it into your circuit.. I will let you try it and see what you may be able to do with it.
    Message Edited by lacy on 04-28-2008 05:47 PM
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day
    Attachments:
    Possible Constant Power Load.JPG ‏285 KB

  • What is the best way to make a clickable grid

    What would be the best way to make a clickable area that can
    differentiate between discrete parts of the area when clicked on.
    In other words, instead a having multiple buttons in a row that the
    user can click on, is there a way to have an area that has lines to
    distinguish the different areas(buttons) but that acts as though
    there were multiple consecutive buttons?
    For example, if I wanted to graphically simulate the buttons
    on a phone but without using buttons. Instead use some kind of grid
    or area that is divided into multiple sub areas that can
    distinguish the discrete positions (each button on the phone, or
    sub-area).
    Thank you,
    Salchichasa

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

  • What is best way to make disk backup of CS5 downloaded installation?

    Hi,
    We purchased the downloadable version of the CS5 Production Premium installer rather than waiting 2 weeks to receive it in box form.
    What do you suggest is the best way to make a backup of the downloaded installers, which total about 13.8 gigs?  I was thinking of putting the main one on a dual layer DVD-R but the biggest file is 9.23 gb's, nearly a gig over the data limit for dual layer disks.  Is it possible to use Toast to split a disk image over multiple files or use Apple Disk Utility to compress the .dmg even further to fit?  Or perhaps is the easiest way to just copy it over to a USB thumb drive?
    I know Adobe allows you to re-download the software whenever needed, but it would be more handy for us to have a backup here rather than wait for another really long download...
    Suggestions?
    Thanks!

    You can buy a set of backup disks from Adobe for a nominal fee. You might want to give them a call and ask about it.
    Otherwise, just back it all up to an external drive.
    Bob

  • What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer do not seem to have the capacity. Thanks!

    What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer to the PC in the classroom do not seem to work because of the file size. Thanks! Quincy

    How to Transfer Photos from an iPad to a Computer
    http://www.wikihow.com/Transfer-Photos-from-an-iPad-to-a-Computer
    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
     Cheers, Tom

  • What is the best way to make a program fit different monitor resoultions?

    In our lab all our test stations have 1280x1024 resoultion monitors. In the "other lab" all the test station monitors are 1440x900 resoultion.
    Now I am tasked with making my programs run on the test stations in the other lab. I have tried setting the options "maintain proportions of windows for different monitor resoultions" and "Scale all object on front panel as the windows resizes" and of course neither one of these options really does what I would expect it to do.
    What is the best way to make programs fit different monitor resoultions?

    J-M wrote:
    I resize the Front Panel when the program start to fit the monitor resolution.  After that, I use the "SBE_Determine If Screen Resized.vi" from TomBrass (http://forums.ni.com/t5/LabVIEW/Resizing-controls-on-a-tab-control-within-a-pane/td-p/1520244 ).  This vi is very useful if you don't want to monopolize the CPU with the "Panel Resize" event.
    I don't like this function for a couple reasons.  First for the example you don't need any custom code to handle the window resizing, just use a couple splitters.  Even if you did need to handle the resize, you only resize after the mouse is up after the resize which is not how normal Windows programs work they resize as the mouse moves.  So I modified the VI to resize objects as you resize the window.  Then because doing this can generate 100 events very quickly, I use a boolean in a shift register to make sure that we only handle the resize event if there is no new resize events after 0ms.  This essentially makes a lossy queue and handles the last resize event.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Resizable_Graph.vi ‏22 KB

  • How to make the Smooth Scrolling work even H Swipe is tick?

    In my article, if I tick the H Swipe only and the Smooth Scrolling is Both direction, Why is it in previewing it in my iPad the Scrolling seems Off because it's snapping into the pages.
    Smooth scrolling is not working if H Swipe only is tick.
    How to make the Smooth Scrolling work even H Swipe is tick?

    Horizontal scrolling is only for 1024x768 or 768x1024 pages. That’s it.
    You cannot combine horizontal only with smooth scrolling.
    Bob

  • What is best way to make business cards in iwork

    what is the best way to make business cards.  is have iwork.  the business card templet doesn't seem to copy after you create the first card.  it wants each card on the temp. page to be filled in.

    You can buy a set of backup disks from Adobe for a nominal fee. You might want to give them a call and ask about it.
    Otherwise, just back it all up to an external drive.
    Bob

Maybe you are looking for