Hi,
I am developing an application for N 97 mini in which i am trying to implement the kinetic scrolling component http://wiki.forum.nokia.com/index.ph...for_Flash_Lite
The problem i have locked the app orientation to landscape for this the component is not working as expected and also i have created an separate movie clip for the same and calling it form the home screen.. Please help
FYR
// import APIBridge library
import si.apibridge.*;
// import Device library
import com.nokia.lib.Device;
var stageSizeListener:Object = new Object();
stageSizeListener.onResize=function()
{
if(Stage.height > Stage.width) {
_root.Main._rotation = +90;
_root.Main._x = 360;
//_root.Main._y = 0;
} else {
_root.Main._rotation = 0;
_root.Main._x = 0;
_root.Main._y = 0;
}
}
Stage.addListener(stageSizeListener);
fscommand2("FullScreen", true);
fscommand2("SetSoftKeys", "", "");
fscommand2("SetQuality", "high");
fscommand2("DisableKeypadCompatibilityMode");
Stage.scaleMode = "noScale";
Stage.align = "TL";
_focusrect = false;
//fscommand2("SetFocusRectColor", 000, 000, 255);
//-------------- Attaching movie to main time line
this.Main.attachMovie("Splash","Splash", 0);
Splash Movie Clip....
stop();
myScroll.setPlaceHolder("placeholder");
myScroll.addContent("contentItem1");
myScroll.addContent("contentItem2");
myScroll.addContent("contentItem3");
myScroll.addContent("contentItem4");
//myScroll.addContent("contentItem");
//myScroll.addContent("contentItem");
// List onItemSelected event
var event_itemSelected = myScroll.onItemSelectedEvent();
myScroll.addEventListener(event_itemSelected, eventHandler);
function eventHandler(evt:Object):Void {
var mcArray:Array = myScroll.getContent();
var mc:MovieClip = evt.hitItem;
for(i = 0; i < mcArray.length; i++) {
mcArray[i].gotoAndStop(1);
}
mc.gotoAndStop(2);
}
Regards,
Elmi..



