Hi

I have compiled my mxml file into an swf file and embedded it in a
jsp. My mxml has a datagrid inside a VBox. 

I found that when there are certain number of rows to display  a
veritcal scroll bar shows up. I have no problem with the scroll bar.
But when I roll over and try to scroll down nothing happens. Somehow
after I have to first click anywhere in the VBox (or DataGrid) that
wraps the datagrid to activate the scrolling of the datagrid. I tried
doing this on mouse over but it does not help.

 private function init():void
          {
                regVBox.addEventListener(MouseEvent.MOUSE_OVER,  
                                          regMouseOverHandler);
                regVBox.addEventListener(MouseEvent.CLICK, 
                                         regClickHandler);
          }

private function regMouseOverHandler(event:MouseEvent):void
                {
                        regVBox.dispatchEvent(new    
                        MouseEvent(MouseEvent.CLICK, true, false, 
                        10,10,null,false,false,false,true));
                }
I have to physically CLICK in order to activate scrolling.Is there
anyway I can activate scrolling for the VBox (or datagrid)
on page load itself? 

Thank You,
Tarun

Reply via email to