Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Order of events?

Ok, I am trying to make a on click event. When ever the user touches the textPlay1.png it will hide this image and show textPlay2.png and then open a new window. textPlay1 and textPlay2 were suppose to be like a button mouseover. It just goes straight to the new window. I never see textPlay2 show up EVENTHOUGH it is before the window in order. I have noticed this on several occasions. How do I maintain the order of events in which they are coded? nesting?

textPlay1.addEventListener('click', function()
{

textPlay1.hide();
textPlay2.show();
win = Titanium.UI.createWindow({
url:'views/levels.js',
title:'Levels'});
win.open({fullscreen:true});
window.close();

});

— asked June 18th 2010 by Jason Brock
  • events
  • of
  • order
0 Comments

2 Answers

  • can someone help me on this?

    — answered June 21st 2010 by Jason Brock
    permalink
    0 Comments
  • help me!

    — answered June 23rd 2010 by Jason Brock
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.