animated window transactions
Hi I am struggling with animating windows, I have a tab show profiles and then a label with a button. When the button is clicked the is no animation, navbar, back button or anything.
The page just shows blank.
This is the profile.js that load on the profile tab
drop_button.addEventListener('click',function() {
var medicalInfo = Titanium.UI.createWindow({url: 'medicalInfo.js'});
var slide_it_left = Titanium.UI.createAnimation();
slide_it_left.left = 0; // to put it back to the left side of the window
slide_it_left.duration = 600;
medicalInfo.add(button);
medicalInfo.open(slide_it_left);
//win.blur();
});
and this is the medicalInfo.js which loads when the medical info button is pressed.
var medicalInfo = Titanium.UI.currentWindow;
var thisWin = Titanium.UI.createWindow({
title:'medicalInfo',
backgroundColor:'#000',
barImage:'titles/titleHome.png',
//bottom:0,
//height:0,
//top:0,
left:320
});
thisWin.open();
I've looked at the kitchen sink I can get it to work without customising anything but that no good so I though Id ask the pro's.
I've look in the docs and search the questions and answer forum but I can't find anything that helps me.