Gesture driven scrolling list

Hi, I am so frustrated guys. I am brand new to flash and am
using flash CS3. I have been trying to follow this tutorial at
http://www.peachpit.com/articles/article.aspx?p=27149&seqNum=3
to make a gesture driven scrolling list. I am stuck on the
first actions slide code. I have basically followed this tutorial
exactly and yet I get a bunch of compiling errors when i run my
code. If someone could please look at this for me I would really
appreciate it. I am stuck on the Frame 1 actionscript. Is there
some way i can upload my .fla file?
The errors i get are listed below:
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 16: 1120: Access of undefined property _parent.
tempOffset = clipObj._x - clipObj.getBounds(_parent).xMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 18: 1120: Access of undefined property _parent.
tempOffset = clipObj._y - clipObj.getBounds(_parent).yMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 25: 1120: Access of undefined property _parent.
if (null != _parent[baseName + i]) {
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 26: 1120: Access of undefined property _parent.
tempArray
= _parent[baseName + i];
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 39: 1120: Access of undefined property _parent.
gTopBounds = gClipArray[0].getBounds(_parent).yMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 40: 1120: Access of undefined property _parent.
gBottomBounds = gClipArray[0].getBounds(_parent).yMax;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 41: 1120: Access of undefined property _parent.
gLeftBounds = gClipArray[0].getBounds(_parent).xMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 42: 1120: Access of undefined property _parent.
gRightBounds = gClipArray[0].getBounds(_parent).xMax;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 59: 1120: Access of undefined property tempTop.
tempTop = gClipArray.getBounds(_parent).yMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 59: 1120: Access of undefined property _parent.
tempTop = gClipArray
.getBounds(_parent).yMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 60: 1120: Access of undefined property tempTop.
if (tempTop < gTopBounds) { gTopBounds = tempTop };
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 60: 1120: Access of undefined property tempTop.
if (tempTop < gTopBounds) { gTopBounds = tempTop };
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 62: 1120: Access of undefined property tempBottom.
tempBottom = gClipArray.getBounds(_parent).yMax;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 62: 1120: Access of undefined property _parent.
tempBottom = gClipArray
.getBounds(_parent).yMax;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 63: 1120: Access of undefined property tempBottom.
if (tempBottom > gBottomBounds) {
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 64: 1120: Access of undefined property tempBottom.
gBottomBounds = tempBottom
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 66: 1120: Access of undefined property tempLeft.
tempLeft = gClipArray.getBounds(_parent).xMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 66: 1120: Access of undefined property _parent.
tempLeft = gClipArray
.getBounds(_parent).xMin;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 67: 1120: Access of undefined property tempLeft.
if (tempLeft < gLeftBounds) { gLeftBounds = tempLeft };
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 67: 1120: Access of undefined property tempLeft.
if (tempLeft < gLeftBounds) { gLeftBounds = tempLeft };
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 69: 1120: Access of undefined property tempRight.
tempRight = gClipArray.getBounds(_parent).xMax;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 69: 1120: Access of undefined property _parent.
tempRight = gClipArray
.getBounds(_parent).xMax;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 70: 1120: Access of undefined property tempRight.
if (tempRight > gRightBounds) {
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 71: 1120: Access of undefined property tempRight.
gRightBounds = tempRight
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 83: 1119: Access of possibly undefined property scaleMode
through a reference with static type Class.
var tempScaleMode = Stage.scaleMode;
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 84: 1119: Access of possibly undefined property scaleMode
through a reference with static type Class.
Stage.scaleMode = "exactFit";
**Error** Symbol 'ScrollingList', Layer 'actions', Frame 1,
Line 87: 1119: Access of possibly undefined property scaleMode
through a reference with static type Class.
Stage.scaleMode = tempScaleMode;
Total ActionScript Errors: 27, Reported Errors: 27

Hi there,
The code was written with Actionscript 1.0. Try changing your
Publish settings to target the Flash Player 6 and Actionscript 1.0.
You'll also have to do Save As and save it as a Flash 8
document.
Now you can test the movie and hopefully it should
work.

Similar Messages

  • Performance advice required - creating images for a scrolling list view on Android

    This is a question about how best to manage thumbnail images in an list view style app written in Actionscript 3 for Android.
    I am building an app that uses a list view control to show lists of data.  As each list item appears on screen during a scroll through the list I create a thumbnail image to display in the list item cell. 
    Currently I am embedding the jpg thumbnails in actionscript and using mx.core.bitmapasset to get bitmaps on the fly.  On a live device this is unfortunately slowing things down - the smooth scrolling list jerks every time a new cell appears on screen.
    There are probably going to be 500+ thumbnails but a list will only ever have about 150 items in it at any one time, of which only about 6 or 7 are onscreen at the same time.  The list view control is one that I have created myself in actionscript but I am pretty sure the thumbnail creation is the cause of the slowdown.  If I take out thumbnails the scrolling is smooth.  If I reuse the same thumbnail across all cells then scrolling is smooth too.  The component reuses cells as they disappear off one end of the list so there isn't much creation of objects going on.
    I am running this in debug so it might be possible that in release things are better (maybe?).
    Does anyone have any advice on how best to approach this problem of getting jpg assets available quickly?

    Hi,
    I think you can use ContentCache here. See http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/core/ContentCache .html. You need to create an instance of ContentCache and set the contentLoader property of your Bitmap object to this instance. You can control the number of cachedEntries by setting maxCacheEntries. The tutorial by Mihai Corlan http://corlan.org/?p=3106 shows how you can use it. I hope you find it useful.
    Thanks,
    Sanika

  • CS6 scroll list

    Hello, Does anyone know if they updated the scrolling lists for mobile applications in the new Flash CS6? I'm talking about the smooth iOS type scroll. Since they have it in Flash Builder i really hope they put it in Flash Professional.

    It's possible to use Flex in Flash you know.. Although it runs on a different layer so you'd need to plan for it. Have a read here for an example:
    http://seeing-is-believing.blogspot.com/2007/11/flex-components-in-flash-example-with.html
    You just need the Flex SDK which is free, here:
    http://opensource.adobe.com/wiki/display/flexsdk/Downloads

  • My multi gesture for scrolling back to my library won't work in Lion

    When I updated to Lion the multi touch gesture to scroll back to the previous selection won't work anymore.  Any help or did apple just not fix this yet?

    As it has been almost a week since I last posted here I am forced to conclude there is no solution to the problem I have posed.

  • 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

  • I just upgraded to OSX Mavericks and when i use the gestures on my magic track pad it responds oddly.  Sometimes it won't recognize when my simple gesture of scrolling through a document.

    I just upgraded to OSX Mavericks and when i use the gestures on my magic track pad it responds oddly.  Sometimes it won't recognize when my simple gesture of scrolling through a document.

    Gestures is not working like it did before. The side to side, forward back swipe, is very picky. Sometimes it takes four or five tries before it works. And yes I know how to do it. I have had a magic trackpad for about one year. And was greatly pleased by how it worked, BEFORE Mavericks. It has has indeed changed.

  • Horiz scrolling list a la JFileChooser

    I'd like to use a horizontally scrolling list like the file list in JFileChooser. Obviously the widget exists, but I can't see a way to get at it. Does anyone know if thiis is possible?
    thx
    jim

    Hi Jim,
    Does this help you?
    import javax.swing.*;
    class ListTest extends JFrame {
        public ListTest() {
            String[] data = {"One", "Two", "three", "four", "five", "six", "seven",
    "eight", "nine", "Ten"};
            JList myList = new JList(data);
            myList.setLayoutOrientation(JList.VERTICAL_WRAP);
            myList.setVisibleRowCount(2);
            myList.setFixedCellWidth(125);
            JScrollPane scrollPane = new JScrollPane(myList);
            scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR
    _AS_NEEDED);
            getContentPane().add(scrollPane);
            setSize(400,400);
            setVisible(true);
        public static void main(String args[]) {
            new ListTest();
    }Regards,
    Matt
    Java Developer Technical Support
    Sun Microsystems.

  • Tabbing into a Scroll List

    hi,
    I am wondering if it is possible to be able to tab into a scroll list?
    Say, I use a JPanel (with GridBagLayout) containing a JScrollPane
    in which a JList is added, and also a few JButtons exist in this JPanel.
    What I want to is that:
    (1) whenever pressing TAB key, the correct tabbing order for this wizard should be: button1, button2, ..., buttonX, scroll list, and then again button1, ...
    (2) whenever pressing Shift + TAB keys, the correct tabbing order for this wizard should be the reversed order, i.e. scroll list, buttonX, ..., button2, button1, and then again scroll list,
    buttonX, ...
    The problem is that I could not tab into this scroll list but only buttons now. Anybody know how to solve such a problem? Any sample codes are appreciated if possible.
    Regards,
    Jrabi

    Take a look at this in the API docs:
    javax.swing.DefaultFocusManager
    Hope that helps,
    Bryan

  • Gesture driven list?

    Im making a flash mp3 player and was looking at some exaples
    on the net, one of which had a drop down menu from which you could
    select an song from a list. I don't know if it used a list
    component but you were able to scrool just using the position of
    the mouse on the list.
    For example, the closer you are to the top of the list, the
    faster it scrolls up. I'd show you the example but unfortunately
    the link is down. It's similar to what i've seen before in online
    gallery type sites but contained within a list box.
    So, can this be done with a list component, if so how?
    otherwise how can it be done? It's a really nice effect.
    Thanks

    it's more like the one on this site:
    http://www.userenabled.com/downloads/rssfeeder/
    I've since found a tutorial on how to create this effect. I'm
    not sure that it best suits my application but i think it will
    work.
    At the moment i'm using a list component to store the data
    and label information for the mp3 files. This tutorial uses a
    one-dimensional array so im sure I can customize it to work with
    what i'm doing even though I'm new to actionscript.
    An tutorial's file is on this website:
    http://www.friendsofed.com/download.html?isbn=1590595947
    It's in the folder Chapter 4 if you're interested in checking
    it out.
    If you have any ideas on a better way to implement this for
    my application let me know.
    Thanks :)

  • Is it possible to make/get a scrolling list in Muse?

    So I have been trying all types of built in widget combining and online searching and am unable to find out how to make a scrollable content area. I want to make a a content area that is 300X600px and has 3 Tabs or something similar at the top. Inside each tab I need to put around 70 300X100px content areas for text/pictures. Obviously I can't put all 70 in there and have it fit in the 600px area, so I need them to be behind everything and simply scroll into view with a scroll bar or scrolling motion on a touch pad. Anyone know how to do this or where to get a widget that could accomplish this?
    Something similar to the one found here Rental Listings - All 166003 Rentals - Zillow
    Thanks

    You can use tabbed panel for this , where the container will include the content listed and users can scroll the content on page. The tabs can be used to list different contents and categories like the example you have provided.
    https://helpx.adobe.com/muse/how-to/organize-content-with-tabbed-panel.html
    Adobe Muse Help | Working with Tabbed and Accordion Panel widgets
    https://www.youtube.com/watch?v=orlSdVAaY_Y
    Thanks,
    Sanjit

  • Scroll list down by page wise using mouse

    hi experts,
      how   can we scroll a list page wise  rather than line wise using scroll button of  mouse .
      my requirement is to generate a list consisting of 38 lines per page and each set of 38 lines
      should come in a new page that i have done using new-page, but problem is when i scroll
      down a list using mouse scroll button next page should be displayed rather than scrolling
      line by line . just like using pagedown key of the keyboard,
    thanks in advance.

    I think this is not possible, I don't think controlling the mouse operation is possible

  • FireFox 7 displays YouTube related videos thumbnails in small scrolling list with blank thumbnails.

    FireFox 6 used to display them just like IE and other browsers... in a long list to the right of the video. Now there is a small list only 5 thumbnails high (which makes it a scrolling nightmare) and only the first 10 thumbnails have pictures, the rest are blank white thumbnails. I'd hate to revert back to using IE but if this isn't acknowledged and fixed soon I'll have no choice. It's driving me nuts. I was really starting to like FireFox. Too bad I can't attach a screenshot as it would be easier than explaining it.

    No, nothing changes. It reloads still telling me to join. I tried it in the latest Safari as well, but no dice. My default browser is Chrome, but I've been trying everything that doesn't work in Chrome in Safari because I might as well, right?
    I mean clearly it's an issue with my Mac, because if it were just a browser thing, YouTube would be working in other browsers, and if it were a YouTube thing it'd be happening to everyone else, and if it were a connection thing it'd be happening to everyone else on my connection, but it's not so it must be my Mac but then...you know...what is it? Apart from YouTube and the weird images thing, which seems to be a recent development, I haven't noticed any other symptoms.
    But the YouTube page won't even load properly for me all the way. It's not limited to the video, it's the entire page refusing to load any images or anything other than plain text. Except, bizarrely, the login page, which looks just fine.

  • How do I gesture to scroll to top or bottom of page in safari?

    On my Macbook Pro using Safari, the three finger swipe left or right takes me to the previous or next page in history.
    How do I gesture to take me to the top or bottom of the page?  BTW it works in FF.  Whenever I decide to give Safari another try I find I really miss this.
    Thanks!
    Alex

    Hi Alex,
    You could use two fingers and set scrolling speed to Fast

  • I need some one's help making a scrolling list of links

    I am working on a project where I need to make a list of
    links that are text and can be manipulated like buttons and also
    scroll mabey using the scroller from the components section in
    Flash. Please help if you are able by responding to this post.
    AN EXAMPLE OS WHAT I AM TRYING TO DO IS ON THE RIGHT SIDE OF
    THE PAGE OF ( www.streamingfaith.com)
    Thanks!

    Great assignment (congratulations to your lecturer/professor/teacher, I'd give that 8 or 9 out of 10). I hope noone does it for you and spoils your fun!

  • Ipad 4 having multitasking gestures and scrolling issues

    I have an iPad 4 and after the iOS 8 update the multitasking gestures stopped working. They work at their will. I waited for the 8.0.1 to solve it, it didn't nor did 8.0.2 and even the latest iOS 8.1 have no affect on it.
    Another problem is the scrolling is so buggy in several apps, especially in notes.
    Is there a fix or workaround?
    Device: iPad 4, iOS 8.1 running

    Have you tried resetting the iPad or resetting all settings?
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    Reset all settings. You will not lose any data, but most of the device settings will have to be entered in the settings app again. Settings>General>Reset>Reset all Settings.

Maybe you are looking for