Scrolling a list/movieclip in flash5.5 (not flex) your best script?.. this is my script..

Hi,
I want to create a good class for this as I know I will use it alot. So I want to get it right!...
I want to create a script that will allow a user to scroll through a list of items on there phone.
My script is missing some inertia, but it works....
If any one can improve and is willing to share please post.
package com  {
     import com.*
     import flash.display.MovieClip;
     import flash.geom.Point;
     import flash.ui.Multitouch
     import flash.events.TouchEvent
     import flash.events.GestureEvent
     import flash.events.PressAndTapGestureEvent
     import flash.ui.MultitouchInputMode;
     Multitouch.inputMode = MultitouchInputMode.GESTURE;
     public class MobileScroller{
          public var troot:MovieClip;
          public var model:Model
          public var scrollPan:MovieClip
          public var itemMoving:Boolean = false;
          public var itemMOVED:Boolean = false;
          public var _mouseDownPoint:Point
          public var _mouseDownY:int          
          public function MobileScroller(_troot,_model) {
               troot = _troot
               model = _model          
          public function iniz(_scrollPan:MovieClip) {
               scrollPan = _scrollPan;
               startScrollingItems();
          public function startScrollingItems(){
               if(Multitouch.supportsTouchEvents){
                    Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;                    
                    square_mc.tappedItem.addEventListener(TouchEvent.TOUCH_TAP, tappadItem);
                    scrollPan.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin);
                    scrollPan.addEventListener(TouchEvent.TOUCH_MOVE, onTouchMove);
                    scrollPan.addEventListener(TouchEvent.TOUCH_END, onTouchEnd);
          public function onTouchBegin(e:TouchEvent) {
               trace("on touch begin")
               itemMoving = false;          
               itemMOVED = false
               _mouseDownPoint = new Point(e.stageX, e.stageY);
               _mouseDownY = scrollPan.y;               
          public function onTouchEnd(e:TouchEvent) {
               itemMoving = false;
          public function tappadItem(e:TouchEvent) {
               if (itemMOVED == true) {
                    trace("should do somthing");
          public function onTouchMove(e:TouchEvent) {
               var crad:MovieClip = scrollPan
               itemMoving = true;
               itemMOVED = true
               if(crad.y <_mouseDownY-4 || crad.y >_mouseDownY+4){
                    itemMoving = true;
               var point:Point = new Point(e.stageX, e.stageY);
               crad.y = _mouseDownY + (point.y - _mouseDownPoint.y);                              
          public function cleanup() {

Here is a component with the source code:
http://code.google.com/p/as3-iphone-scroll/downloads/list
A sample program:
http://www.shinedraw.com/text-effect/silverlight-3-and-flash-iphone-dragging-effect/

Similar Messages

  • "We could not complete your purchase. (This Game) doesn't support this computer's graphics hardware.

    I have posted this question in the "App Store" support community, but received no response. Therefore I would like to try here to see whether someone has any knowledge about this, the original question as follows:
    I have repeatedly tried to download a game from App-Store, but always receive the prompt: "We could not complete your purchase. (This Game) doesn't support this computer's graphics hardware.
    I have been in contact with the game studio's support, and they say: "This issue has already been fixed and works fine on all computers except yours (mine)". The cause allegedly related to Yosemite 10.10.--.
    I've apparently been left to my own devices and decided to try this community.
    "This Mac" is a late 2012 iMac 27, 3,2 GHz intel i5 that runs Yosemite 10.10.2. With 1 TB Hybrid HDD, NVIDIA GeForce GTX 680MX 2048 MB and 16 GB ram, which according to Game Studio's is well within specs.
    Is there anyone out there who know a way around this or should I just face it and get on with the rest of my life?
    Please?

    Halonk wrote:
    "We could not complete your purchase. (This Game) doesn't support this computer's graphics hardware.
    Is there anyone out there who know a way around this or should I just face it and get on with the rest of my life?
    There is no way around.
    Best.

  • TS1424 still getting itunes store error 4002...  could not complete your request.  This happens 100% of the time when I load iTunes

    Every time I load iTunes I get:
    We could not complete your iTunes Store request.  An unknown error occured(4002)

    Same problme for me. no solution found on Google searches.

  • I am getting the error "we're sorry but we can not complete your request at this time through the itunes store"

    Hi Itunes was working on monday and now it isn't, it's giving me this error anytime I try to access updates for my apps or buy new apps, any ideas?

    just started having the same issue since aobut 2 hours ago.  I did downloads yesterday morning and it was working just fine.
    as of 2 hours ago it's showing cannot connect to itunes store at all not even under top 25, cateogories nothing.  just wondering if there is anything that has gone wrong with the itunes store.

  • Horizontal Scroll in list component

    Hi,
    I'm using a list component which is populated from a textbox.  I've set the horizontal scroll policy to auto and also to on however  the scroll either doesn't appear (in the case of auto) or doesn't move (in the case of on).  Is there a setting which I need to modify to have the horizontal scroll working normally?
    Thanks

    I tried the invalidate method as follows but nothing happened:
    mylist.invalidate();
    Not sure if I explained myself well, I just want the horizontal scrollbar to appear and be able to move it when one or more items in the list are long and thus not all visible...thanks

  • I purchased an iBook on my iPad air and all software updates are done but the book is listed under purchased and will not open to view

    I Purchased a book in iBooks on my iPad air with all updates complete 8.0.2 and the book is listed under purchased and will not open to view

    Tapping the icloud arrow should get it to download to your bookshelf and it should then get 'downloaded' against it in Purchased instead of the arrow. See if any of the following fix it :
    - close the iBooks app via the device's taskbar and then re-open the app and re-try downloading it : iOS: Force an app to close.
    - soft-reset of the device : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the equivalent of a reboot.
    - log out and back into your account : select the Featured tab in the app, scroll to the bottom of it, tap on your id and log out, and then log back in

  • Best way to create a scrolling expandable list of checkboxes

    Stupid question time: I want to create a list of checkboxes where there can be more than will fit into the fixed space in the UI so I want it to scroll as necessary. I also need to add and remove items to reflect changes in external factors.
    I've tried to use the Radio Buttons item (which seems to be an NSMatrix that contains NSButtonCell objects) but I'm having problems (added items disappear off the top/bottom of the NSMatrix area, they seem to revert to the radio-button even if I set the 'prototype' to be a checkbox, I cannot get it is scroll).
    I'm sure that this is a standard thing to have (a scrolling dynamic list of checkboxes) but I'm not sure how to create this. It's almost like the pop-up list in the combobox control but I want it on the screen the whole time.
    In Windows I would simply use a CheckedListBox control - what is the equivalent in Cocoa?
    Thanks
    Susan

    For what it's worth...
    I kinda sorta got this to work using an NSMatrix instead of an NSTableView. Clicking the checkboxes afterwards only seemed to "select" the checkbox (ie put a focus ring around the checkbox) rather than actually checking or unchecking the checkbox. So you might still need code similar to what you've already done for your table view.
    Here's what I did. This was in Leopard with Xcode and IB v. 3.0, but it may be somewhat similar in earlier versions of IB.
    1. Drag a single checkbox into your window.
    2. While your checkbox is selected go to the menubar and select "Layout -> Embed Object In -> Matrix".
    3. The inspector window should change to "Matrix attributes"
    4. Use the "Cells" attribute counters in the inspector window to add more rows (or more columns if needed) to your matrix. This should add more checkboxes to the matrix.
    5. Add rows and/or columns until you get basically the number of checkboxes that you'd like to be able to see in your scrollable area.
    6. Now while your matrix is selected go to the menubar and select "Layout -> Embed Objects In -> Scroll View"
    Initially the scroll view will not show a scrollbar (because your scroll view was sized to encompass all of the current checkboxes). But if you click into the scroll view so that the embedded matrix becomes selected then you can use the "Cells" counters in the inspector window again to add some more rows or columns of checkboxes... and the scroll bars of the scroll view will become active.
    If you don't know the total number of checkboxes beforehand then you can do something like this in code at runtime:
    [theMatrix addRow];
    [theMatrix sizeToCells];
    This assumes that "theMatrix" is an outlet to the matrix. The addRow method will add a row to the end of the matrix but there are other methods that will allow you to add a row at a specific index. The "sizeToCells" seems to be required to get the scroll view to notice that the matrix has changed size and it's scroll bars may need to be adjusted.
    Steve

  • Scrolling a list in application published for iPhone

    I am creating an application in Flash CS5 which will be published for iPhone. I need to scroll a list of entries, just like we have a list of songs in iPhone. I am not able to get how to make the scrolling of the list possible. I tried using TouchEvent class but it is not firing any method in Device Central.

    FWIW - mouse events work on iPhone/iPad exactly like they do for a normal Flash app. So you'dprobably want to test for a CLICK or MOUSE_DOWN instead of a touch event...

  • Scrolling a list in safari on iPad

    I've had my iPad 2 since two weeks after it was released.  I love it a lot.  However, there are several issues of which i'm asking about one of them in this query.  When I go to a site, www.wakerupper.com, to set up a wake up phone call,creating a call involves specifying a date, a time, a telephone to call.  The issue at this point is the time.  In Safari 5.05 on the Mac, if I click the current time value (which defaults to something if never set or to the most recent value otherwise), a dropdown appears with about a dozen or so times at 15 min intervals.  I can scroll this list to further up or down.  I use the mouse wheel, the track pad, or the scroll bars to do this.  After I click the desired time, I can edit it to change if from 7:45 to 7:55 if that is my preference.  So far so good and so far nothing to do with the iPad.
    If I open this page in the iPad 2, it appears much the same.  If I tap on the time, a similar drop down list appears.  I can tap on any visible time to select it.  However, I have found NO WAY to scroll the list up or down to go earlier than it offered or later than it offered.  There is no scroll bar shown. 
    If this were the only site that had this problem, I would be going to that site support.  But I've encounter other cases in iPad 2 Safari (which has been updated with all the latest software updates) a dorp down box with a limited number of choices appear and no means to scroll the list.  I don't know HTML that well.  I'm guessing that some sort of code is used to describe a list box and the two versions of Safari implement it differently but the iPad 2 Ssfari has left out the ability to scroll the drop down list. 
    First, can anyone describe how I could scroll the list in this sitatuion I may have missed it.  If I put my finger on an item and slide it up or down, the entire screen tries to roll up or down not just the drop down list.
    Is this due to the way the page is coded or is it a lack in the implemntation os some HTML feature in Safari for iPad2?
    Thanks,
    Bruce

    Scroll using two fingers.

  • When I play games in Mozilla on fb..some setting changed and now the pop up window that appears to send gifts to my friends only lists 3 ppl at a time some games i have a scroll down button others i dont..can u help m fix this please?

    When I play games in Mozilla on fb..some setting changed and now the pop up window that appears to send gifts to my friends only lists 3 ppl at a time some games i have a scroll down button others i dont..can u help m fix this please?

    Hi Winnie
    Unfortunately I have been sick and did not read the message before. I apologize.
    I have not received help beyond what is on the page. But when I get I tell you.
    I hope you can get answers. If you receive, I ask that you share with me.
    thank you very much
    best regards
    AC
    Date: Mon, 27 Feb 2012 09:33:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        created by Win_Form in Forms - View the full discussion
    Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Forms by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • EC SALES LIST - Belgique: XML file: Content not accepted in prolog

    Hy tou you all,
    We've implemented all Ec sales list note oss for Belgium but at the upload in the delcaration vat system the xml file is not accepted : "Content not accepte in prolog"; Did this message encured to you ?
    Thanks,
    TF

    HI,
    I hope you are asking about below legal changes
    http://www.minfin.fgov.be/portail2/fr/e-services/intervat/calendrier.html
    and SAP DS colleagues are working on same and they are planning to release the note
    within soon.
    For same information will check the service market place.
    Thank you.
    Regards
    Madhu M

  • Sharepoint list dataheet view error "Cannot connect to the server at this time. You can continue working with this list, but some data may not be available"

    I have a List which is having around 14000 items in it.while opening that list in datasheet view it is giving error .
    Below is a summary of the issue:
    After selecting datasheet view beow error occurs:
        "Cannot connect to the server at this time.  You can continue working with this list, but some data may not be available."
        "Unable to retrieve all data."
        The item counts displays say 100 out of 14000 items.
    Exporting List to excel is giving only 2000 records out of 14000 records.
    Other Observations   -  
    This is happening to only one list on the site .There are other lists in the site whose no. of records is equal to 8000 to 9000.They are working absolutely fine without any error.
    Also, If I am saving this list as a template and creating another list with it ,then it is working absolutely fine with 14000 records,so the issue does not seem to be related with no. of records as the template list is working fine.
    I have checked the Alternate access mapping setting ,its fine.
    It should not be related to lookup,datefield or any other column as the list created from it template is working fine with all these columns.
    I checked below links also ,but doesn't seem to work in my case.
    http://social.technet.microsoft.com/forums/en-US/sharepointadminprevious/thread/974b9168-f548-409b-a7f9-a79b9fdd4c50/
    http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/87077dd8-a329-48e8-b42d-d0a8bf87b082
    http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneral/thread/dc757598-f670-4229-9f8a-07656346b9b0

    I have spent two days to resolve this issue. Microsoft has released two KBs with reference to this issue...but are not appearing in search results at the top.
    I am sharing my finding.
    1. First install the
    KB2552989 (Hopefully you might have already installed it. The KB detetcts it and informs the user.)
    2. Then update registry by adding new key for data fetch timeout as mentioned inKB2553007
    These two steps resolved the issue in our environment. Hope it might help others as well.
    Pradip T. ------------- MCTS(SharePoint 2010/Web)|MCPD(Web Development) https://www.mcpvirtualbusinesscard.com/VBCServer/paddytakate/profile

  • Is there a way to export a searchable list of artists/albums/songs (not the music files, just the text) to my iPhone 4?

    Basically, I have an iPod Classic which contains over 17,000 songs. I have a 16 GB iPhone 4. I don't always have the iPod with me, but just about always have the iPhone. Since I am still old school enough to actually buy CDs, I'd like a handily available and searchable list that I can export from iTunes to my iPhone so I can make sure I don't accidentally duplicate a purchase (it happens). I've tried searching the App Store but either I am doing it wrong, or nothing exists as yet. Obviously the phone can't carry all of that music so I am not looking to transfer those files en masse. Just want the lists so I can reference them as needed. Is this a pipe dream or is there actually a way to do this?  Thanks in advance...

    Sealion64
    I just saw your post
    Im using Adobe Elements 11 and my movie is a prel file. When I move it an
    external hard drive I want to maintain the order of of my movie in its
    original time line if possible
    The prel file is a project file which will eventually be exported to a file which will be your movie.
    If all this involves just changing the location where you save your project files routinely, that is one thing.
    But, once you move the source media that go into a project which has been saved closed, then you get
    into serious media - project reconnect issues.
    When you import media into a project, all you get are copies of the originals that are at a hard drive save location.
    But, the project needs to trace back to the originals at the hard drive save location where they were when first
    imported into the project.
    Moving the project file should not get you into trouble; whereas moving, deleting, renaming source media that went into the project will.
    If the project is finished, I can see using the Project Archiver to save it in a Copied Folder (saved to the external hard drive).
    But, to work from the Copied Folder on a routine basis needs some thinking about. I would think about pointing your project and
    it components to locations of your choice (even the external hard drive) for the "next" project but without involving the Project Archiver until you have finished
    with the project and want it safely out of the way.
    ATR

  • I tried to create a new google calendar in ical, but they did not show up, I tried this several times. Now when I sync my iPad via iTunes all these failed attempts are showing up under the ical sync list in iTunes, how can i clear them from this list?

    I tried to create a new google calendar in ical, but they did not show up, I tried this several times.
    Now when I sync my iPad via iTunes all these failed attempts are showing up under the ical sync list in iTunes, how can I clear them from this list?

    See https://bugs.downthemall.net/ticket/2147
    Google Search Bug
    Reported by: openid:nathan wride Owned by:
    Priority: major Milestone:
    Component: Polish/Usability Version: 2.0.10
    Keywords: Google search instant save bug Cc:
    Operating System: Windows
    Description
    Hi Guys
    I have found a bug/annoying thing that occurs frequently on google. When searching, DTA trys to download the search...
    I'll try to attach a screenshot.
    Attachments
    [https://bugs.downthemall.net/attachment/ticket/2147/Screenshot.png Screenshot.png] Download (113.0 KB) - added by openid:nathan wride 4 weeks ago.
    The screenshot that shows the bug.

  • How can I be certain the contact list in my iPod touch updates my computer Outlook contact list when I sync and not go the other way? The options in iTunes are not specific enough.

    How can I be certain the contact list in my iPod touch updates my computer Outlook contact list when I sync and not go the other way? The options in iTunes are not specific enough. In other words, I want to replace the information in my computer Outlook contact list with the data from my iPod touch. 

    How is your iPod configured to sync music from your iTunes library?  In other words, what options and configurations do you have enabled from under the iPod's Summary and Music configuration panes in iTunes?
    B-rock

Maybe you are looking for

  • FBL3N-cleared item visible in both open item and cleared item.

    Hi We have posted a line item to Bank clearing account-open item.                         XXXX a/c                              To bank clearing account Then we posted another entry of reconciliation                      Bank clearing account        

  • Vendor cutover / open items upload

    Dear SAP Gurus, I am going to upload vendor open items / cutover data on the server before GOLIVE. I just need to know whether the open items are to be uploaded : inclusive of the TDS i.e the Gross amount OR It has to be without the TDS amount and th

  • Swapping external drive causes new clips to be ingested onto internal Mac drive. Why?

    Hi folks, I've recently begun to swap my external hard drive (the one I use for ingesting AVCHD video clips) for another, due to many projects on the go. What I'm finding now is that when I ingest new footage, it winds up being ingested onto my lapto

  • Installment plan - Plans are scheduled and not paid , extend to other cust.

    Hi Masters, Please clarify and suggest on Installment plan. We have query in Auto industry , where the customer buys the vehicle on installment basis ,and the installment plan is for 2 years . The customer pays regularly for 1 year and after an year

  • FTP Root ignored ?

    I am setting up FTP access to my OS X ( 10.4 ) server, and I set the FTP Root folder to be the web folder on the server. ( /Library/WebServer/Documents ). When I login as one ofthe users, say "admin", instead of going to the FTP Root, I just get that