Wrong DataGridEvent.columnIndex returned when the DG scrolled

Hello all !
Next strange bug for me (using the Flash datagrid is a real challenge !)
I have a datagrid with 7 colums. Because of their widths, I have to use an horizontal toolbar.
When the datagrid is on its initial topleft position, no problem: if I click on the column0, the returned DataGridEvent.columnIndex is 0. If I click on column 3, the returned DataGridEvent.columnIndex 3, the dataField is perfect.
Now, I scroll to the right (scrollpolicy = auto) and the "old" column 3 is the first column I see now to the left in my DataGrid.
If I then click on the "old" column 5, the returned DataGridEvent.columnIndex is .. 2. More than that, the returned dataField is the datafield of the "old" column 2.
In fact, it seems the DataGrid forgets I scrolled to the right and think the newly visible top left column (3) is the zero one.
Is it a known bug ?
How to avoid it ?
Thanks for all

I began to think it was a bug of mines
But no ! I just copied the following code from Adobe examples and got the same behaviour
I just added the event on click to check the row and column indexes.
You'll see: scroll to the rigth and click on a cell: its columnIndex will be 0, 1 or 2 in the event. But, its real columnindex is 5, 6 or 7. How to retrieve this real index ?
Thanks for all
======
/* note: import following classes if needed
import fl.controls.DataGrid;
import fl.controls.ScrollPolicy;
import fl.data.DataProvider;
import fl.events.*;
var i:uint;
   var totalRows:uint = 42;
   var dp:DataProvider = new DataProvider();
   for (i = 0; i < totalRows; i++) {
    dp.addItem({col1:getRandomNumber(), col2:getRandomNumber(), col3:getRandomNumber(), col4:getRandomNumber(), col5:getRandomNumber(), col6:getRandomNumber(), col7:getRandomNumber()});
   var dg:DataGrid = new DataGrid();
   dg.setSize(200,300);
   dg.addColumn("col1");
   dg.addColumn("col2");
   dg.addColumn("col3");
   dg.addColumn("col4");
   dg.addColumn("col5");
   dg.addColumn("col6");
   dg.addColumn("col7");
   dg.dataProvider = dp;
   dg.horizontalScrollPolicy = ScrollPolicy.ON;
   addChild(dg);
   dg.addEventListener(ListEvent.ITEM_CLICK, ListClickedHandle);
   function getRandomNumber():uint {
    return Math.round(Math.random() * 100);
   function ListClickedHandle(event:ListEvent):void {
    trace("ListClickedHandle.click: "+event.rowIndex);
    trace("ListClickedHandle.columnIndex: "+event.columnIndex);

Similar Messages

  • How can I create a scrolling effect where when the user scrolls down the image will blur out?

    How can I create a scrolling effect where when the user scrolls down the image will blur out?

    Hi there,
    You can create a scroll motion where the image will fade out on scrolling, you need to use the Opacity tab under Scroll Effects Panel.
    If you particularly need the image to be blur out, then you need to edit that image in any image editing program and make one copy of that image as blurred, then place both images (actual and blurred) on that page and use scroll motion or fade option to replace images.

  • Wrong page numer (1) when the numer of printed page is 2 using group

    I use crystal XI to print a document (facture) from a program.
    When the number of printed lines (details) is the max number is possible to print , the number of page (PageNumber) is wrong because the printed page is 2 (the second page is only a line of notes inserted in a group section).
    For the sotfware society of the program the problem is the printer driver but i have tested with more then one driver and the error is the same.
    what's the problem?
    Sorry! My english is not good.
    Thank you.

    If the page number is in the page header, and the page header prints on each page, then I cant see what the problem is.
    Perhaps it is a printer error.  Try a different printer and see if it happens.
    If a different printer is the same, try putting the page number in different areas of your report.
    If still no change, create a new test report and see if it happens there.

  • Firefox is hanging when the page scrolls down to a html5 video or the page to a slideshow with fade effect

    Every time a page has a html5 video or a slideshow with fade effect Firefox 3.6 becomes terriblely slow. It freezes with this test: http://demos.hacks.mozilla.org/openweb/HWACCEL/
    I have Fedora 14 and before that Fedora 13 and the problem happens with both.
    The same doesn't happen on Opera or Google Chrome.
    '''UPDATE 1''': I have already tryed the Safe Mode and the problem happens the same.
    '''UPDATE 2:''' This page full of videos scroll smothly without any problemas: http://brettgaylor.tumblr.com/tagged/webmademovies

    I forgot to say that I did tryed the Safe Mode just to see if the slow was not being caused by some extension or plugin. However the result was all the same. By the way, the slow happens even if there is only one page opened. I am not thinking it is something related to the ATI video card or even Fedora because the same slow does't happen in Chrome and Opera...

  • What is wrong with apple tv when the blue light flashes quickly

    I am having trouble with my apple tv device.  The blue light flashes continuously and will not reset at all.

    Welcome to the Apple Community.
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.

  • SWF movies are not animated when the file's opened directly.

    Firstly, although I've been using Flash on and off for years (since CS3) I don't use it very often so I apologise if my issue seems simplistic!
    Basically, I used Flash CS3 for a few years to create basic animations for clients, involving simple scrolling text, without any problems.  Recently I upgraded to the CS4 Master Suite and then CS5 Master Suite within a couple of days of each other and I now need to use Flash to make a change to an old animation.  When I opened the CS3 file it appears as expected and I made the changes to the text (changing a word or two within a line of type).
    When I right clicked on the type relevant frames within the timeline I noticed that there is now more than one version of tween available, and that classic tween was already selected (I think I better buy a new teach yourself Flash CS5 book!)
    Anyway, that was allI needed to do so I initially pressed return and the text scrolled across the stage as expected.  But when I clicked on CONTROL / TEST MOVIE / TEST (or cmd+Return on my Mac) the SWF file that appears is static and the text does not scroll at all.  If I publish the movie using Actionscript 3 or 2 the resulting SWF file is also totally static.  But if I drop the SWF file into the relevant website folder and view it through Dreamweaver's browser view facility it works perfectly and scrolls just as expected.  Equally, opening it using the Opera browser works too.
    I've tried altering the CS3 file and testing the movie in Flash CS4 and Flash CS5 but the same thing happens.  It's a bit time wasting and inefficient wanting to test an animation as a SWF file by double clicking on it and only being shown a static image.  Is this a well known problem as I couldn't find any mention of it during my search?
    Thanks for reading and I'd really appreciate help resolving this issue.

    Update:
    I downloaded the newest Flash Player and double clicked the problematic swf file again.  I was a bit surprised to see Flash CS5 start up and display the floating test window with the problematic static animation as before.  I closed Flash CS5, right clicked on the swf file and chose "Open With Flash Player".  The animation opened in the new Flash Player and was working fine.
    So it appears that only Flash CS5 and CS4 are having the issue playing the test movie that was created in the very same program?

  • Database adapter not returning all the records

    I've taken over a BPEL from a developer who left the organization and have been having an issue during our User Acceptance Testing. We are querying a table that will return the insurance enrollment information for employee's and their dependants. When an employee change plans, or adds people, the old plan is terminated and a new once is created. When this happens there will be two records on the database to show the old plan and the new plan.
    When we run the SQL thru JDEV or SQLDeveloper, the data comes out fine. When we run it through a BPEL Database Adapter we are only getting one of the rows returned.
    I have created a small tester BPEL that is easily modified and deployed to run the same query to try multiple configurations changes within the DBAdapter. What I have found is all the records are returned when the "Return single result set" box on the DBAdapter Wizard is unchecked. When it's checked then it only returns one record for the employees with an old and a new plan.
    Can someone explain what the "Return single result set" option does, and what the impact will be if it's unchecked?

    Hello,
    In same way i am using two parent-child(header-line) tables. they have one to many relationship.
    I want to generate XML which contains multiple line items under a child elements for header elements.
    I have tried it but i am getting only one line under that child item. i am using jdev10.0.3.3.0
    can u help me please.
    -regards
    satyendra

  • VOD Sound drop at commercials and does not return when TV show resumes

    i've noticed that there are other customers experiencing this problem and I have not seen any response from COmast support.When playing a TV-Show from On-Demand, the sound drops when a commerical starts and does not return when the TV Show resumes.A reenct example: Walking Dead 515.Yes, I have called comcast support to report it.Of course they wanted me to go through the standard drill - Power Off/On; Refresh Signal; etc. with no result...The  problem occurs on series, e.g. - Walking Dead 515; Grey's Anatomy;  It happens after the episode has been in the On Demand listing for about a week.It seems that the sponsors are no longer paying for the commercial, so the sound drops when the commercial comes on.However, the sound does not come back when the commercials end and the show comes back on.Stopping playback and starting at that point returns the sound, but, - oftentimes, the counter doesn't advance correctly in the Recently Viewed listing, so you end up starting back to the last time you stopped it. This is clearly a bug on the back-end, and I don't expect it to be fixed until enough people complain and Comcast Support replicates the problem observes it for themselves.

    I have this EXACT problem on Anthony Bourdain's show Parts Unknown and the Last Ship.  As soon as it hits the advertizement sound drops and continues as dropped.  Pausing and restarting the program completely after exit regains sound but as soon as it hits another commercial it goes out again.  The counter problem makes this option only good for a few times.  Then it resets back.

  • Oracle error -6508 returned when executing JSP

    The JSP program executes a stored procedure from a package. I've recompiled the package after some changes. The JSP returns -6508 error when it is executing the procedure. The error is returned only after recompiling the stored package. What could be the problem?

    Hi,
    ORA-6508 error is returned when the stored procedure cannot be found.
    ORA-06508 PL/SQL: could not find program unit being called
    Cause: An attempt was made to call a stored program that could not be found. The program may have been dropped or incompatibly modified, or have compiled with errors.
    Action: Check that all referenced programs, including their package bodies, exist and are compatible.
    Please check the package signature and the specifications.
    Thanks,
    Rashmi.

  • The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    The scroll function on my mousepad is disabled when viewing a pdf file in firefox version 5.0. The scroll works on the pdf, but not on the other tabs. When the pdf is closed, the scroll function returns to normal. Any ideas?!

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • At times when dragging the vertical scroll bar my computer screen oscillates up and down for some time before going blank or not responding to any clicks requiring a forced system restart. What is wrong?

    Hi,
    Suddenly while working with Firefox if I happen to drag the vertical scroll bar, a very abnormal behavior occurs. My screen dances up and down for a short time before either going black or getting restored but with no clicks working. The only way to resume is to force a restart of the system.
    Any help would be deeply appreciated.
    Thanks and Regards
    Deepak

    That didn't work. On trying to install a new driver I got the error the graphics driver could not find compatible graphics hardware. Is there anything else that can be done to at least prevent the hanging of the computer even if it means less features from Firefox being available?

  • When using the "Books" app on my ipod touch, if I open one of my books there is no way to return to the library without stopping and restarting the app. What am I doing wrong?

    Once I open a book in my library there is no option to close it and return to the library. I must leave the app, stop the app and then restart it. How do I exit an opened book to return to my library without having to exit, stop, and restart the app?

    Assuming you are talking about "iBooks", then just
    tap the center of the screen
    and you should see a "Library" in the upper left corner of the screen.
    tap the center of the screen again,
    and you should return to full screen mode.
    if this is NOT iBooks, then I do not know what controls that app

  • A magazine's app on my iPad has stopped working.  When I open the Newsstand folder and click on the app, the screen dims briefly, then returns to the Newsstand folder. The other app in my Newsstand folder (Wall Street Journal) opens without any problem.

    A magazine's app on my iPad has stopped working.  When I open the Newsstand folder and click on the app, the screen dims briefly, then returns to the Newsstand folder. The other app in my Newsstand folder (Wall Street Journal) opens without any problem, and this magazine's app opens just fine on my wife's iPad.
    I have deleted the app and reinstalled it from the Apple store and that makes no difference.  I have also done a hard reboot on my iPad with no result.
    Any thoughts about what might be wrong? 

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • How can I remember the last place I browsed? When I return to the main page it would be great if a marking of some kind would show the last place I browsed.

    When I return to the main browsing page after checking a site it would be great if the last place I checked would highlight on the main browsing page or have an indicator of some sort to let me know.
    When returning to the Browsing page it is difficult to remember which link I clicked on and have to guess or start over again so can someone let me know how to do this if it can be done?
    Can't remember but I think that you can do this with Internet Explorer.
    Thank you.

    I am not sure exactly what you are trying to do but firefox calls favorites bookmarks, and has a variety of methods of making, sorting and displaying these, it also stores your 'history' and lets you see that or use it in the location bar search.
    Have a look at some of the following
    * [[Bookmarks]] <-- coloured text is a clickable link --
    * [[Location bar autocomplete]]
    *[[Browsing basics#w_retracing-your-steps]] <-- this is a long article it will scroll up and down once opened

  • When adding a time to an event in the calender in the new ios7 the page scrolls up when trying to adjust the time .How do I finely adjust the time without the page moving upwards?

    When entering an event in the calender the page scrolls up when trying to enter and adjust the time,how do you adjust thge time upwards without moving the page?

    I see no direct connection.. a printer and the computer setup for internet are not related.
    But it sounds like the router in the wife's office is now in the wrong mode..
    If you have an existing main router replace the second router for a switch .. that is the easy way.
    Otherwise you need to bridge the router if it has that option.. most do not. Or use wan bypass.. where you turn off the dhcp server in the router and fix its ip to match the range of the main router.. this is the hassle of using router as a switch.
    BUT I am making a huge number of assumptions.
    What I need is the full network layout.. a quick picture would help.
    I need main modem.. main router.. (maybe same box or different).. make model and current IP address and how dhcp is setup.
    I need secondary router.. if that is what it is, IP and settings.
    I want the printer type and model. How it is connected.
    BTW I much prefer to see a network printer plugged into the network rather than usb.. it is only a matter of sorting the IP settings and driver pointing to the network rather than local.
    Or you should think of it as a broken washing machine and call the technician.. who could fix the whole lot in an hour.

Maybe you are looking for