Its hard to understand what actually going wrong without any code BTW ,
FYI:
You can destroy your image object by using parentObj.removeChild(yourImgObj), or you can use the same Image object but pass to it new image url.
Tested already the new image url with same Image object. But this doesn't help. The performance is still going down.
Code:
CODE
var ContainerText = new KONtx.element.Container({
styles: {
width: KONtx.utility.scale(40),
height: KONtx.utility.scale(26),
hAlign: 'left',
vAlign: 'top',
}
}).appendTo(this);
new KONtx.element.Image({
src: "image/MenuBackButton.jpg",
styles: {
height: ContainerText.height,
width: ContainerText.width,
//hAlign: 'center'
},
}).appendTo(ContainerText);
var backButton = new KONtx.control.TextButton({
label: '',
styles: {
width: KONtx.utility.scale(40),
height: KONtx.utility.scale(26),
hAlign: 'left',
vAlign: 'top',
hOffset: 0,
},
events: {
onFocus: function(event) {
new KONtx.element.Image({
src: "image/Movies.jpg",
styles: {
height: topContainerMovies.height,
width: selfmovies.width,
valign: 'top',
},
}).appendTo(topContainerMovies);
},
onSelect: function(event) {
KONtx.application.loadView("mainmenu");
}
}
}).appendTo(this);
......................................
cellCreator: function() {
cell = new KONtx.control.GridCell({
styles: this.getCellDimensions(),
events: {
onFocus: function(event) {
moviecells = this.getCellIndex();
movieside = selfmovies.ButtonGrid.getCurrentPage();
var gesamt = moviecells + 6*movieside + 1;
trailername = movietrailers[(moviecells + 6*movieside)];
new KONtx.element.Image({
src: "http://192.168.0.228/Widgets//Mediaportal/Movies/Header/Mov"+gesamt+"Head.jpg",
styles: {
width: this.width,
height: topContainerMovies.height,
valign: 'center',
hAlign: 'center',
},
}).appendTo(topContainerMovies);
........................