Hi Jacque,
So for the referenced image i made as the lesson said:
1.- I added an image object to the stack
2.- I opened the property inspector and i selected an image stored in my folder (in my case the folder is "Images", the one i copied for the standalone settings). Being more precise, i choose the image "
DoNotEnter@medium.png"
And this time i have nothing scripted in my card / stack.
And then i associated this image (named "Image 1" ) to the icon of my button.
And to see if really was making something, i named another image (different to my image ) as "
DoNotEnter@high.png". So they have the same name till the '@', but the image is completely different. Like this i can see if it is changing really when i test in the iPhone or iPad simulator.
But not!

the image is always the 'medium' one.
Am i still doing something wrong? It seems that yes, so the correct question is what i am doing wrong now, even if i followed the lesson, concretely the part that speaks about "Referencing Images"?
and this is my code to create the scroller:
Code: Select all
mobileControlCreate "scroller", "groupScroller2Iphone"
put the result into sScrollerListIDIphone
put the topLeft of group "objectsListIphone" into tRect2
put the right of group "objectsListIphone" into item 3 of tRect2
put the height of this card into item 4 of tRect2
put the formattedWidth of group "objectsListIphone" into tWidth
put the formattedHeight of group "objectsListIphone" into tHeight
mobileControlSet sScrollerListIDIphone,"rect", tRect2
mobileControlSet sScrollerListIDIphone, "contentRect", (0,0,tWidth,tHeight)
mobileControlSet sScrollerListIDIphone, "visible", "true"
iphoneControlSet sScrollerListIDIphone, "canBounce", "true"
iphoneControlSet sScrollerListIDIphone, "scrollingEnabled", "true"
iphoneControlSet sScrollerListIDIphone, "canScrollToTop", "true"
iphoneControlSet sScrollerListIDIphone, "lockDirection", "true"
iphoneControlSet sScrollerListIDIphone, "decelerationRate", "normal"
iphoneControlSet sScrollerListIDIphone, "pagingEnabled", "false"
iphoneControlSet sScrollerListIDIphone, "indicatorStyle", "black"
iphoneControlSet sScrollerListIDIphone, "vIndicator", "true"
iphoneControlSet sScrollerListIDIphone, "delayTouches", "true"
iphoneControlSet sScrollerListIDIphone, "canCancelTouches", "true"
iphoneControlSet sScrollerListIDIphone, "hscroll", 0
iphoneControlSet sScrollerListIDIphone, "vscroll", 0
As the lesson says, about experiencing hidden text after scroll it should replace the script with the next line to avoid hidden text / parts:
Code: Select all
put 0,0,(the formattedWidth of group "scrollArea"),(the formattedHeight of group "scrollArea") into tContentRect
but in my case i already have it in this part of my code when i create the scroller:
Code: Select all
put the topLeft of group "objectsListIphone" into tRect2
put the right of group "objectsListIphone" into item 3 of tRect2
put the height of this card into item 4 of tRect2
put the formattedWidth of group "objectsListIphone" into tWidth
put the formattedHeight of group "objectsListIphone" into tHeight
mobileControlSet sScrollerListIDIphone,"rect", tRect2
mobileControlSet sScrollerListIDIphone, "contentRect", (0,0,tWidth,tHeight)
So, it should work well, no?
Regards,
fko