CoronaSimulator 2012.922:
I’m trying to build a mask for a ScrollView widget that is generated by the app, on the fly, to fit the screen size, rather than shipping multiple masks.
I have successfully created the mask in the DocumentsDirectory. I set a path for the mask:
local scrollViewPath = system.pathForFile( scrollViewMask, system.DocumentsDirectory )
The code to instantiate the ScrollView:
scrollView = widget.newScrollView{
…
maskFile = scrollViewPath,
…
}
returns the error:
WARNING: Failed to find image(/Users/tbuchler/Library/Application Support/Corona Simulator/TT_Mobile-EBA79B234D8438084039545880A3D640/Documents/960x460Mask.jpg)
The file exists in the specified folder, and can later be verified to be found with the code:
local fh, errStr = io.open( scrollViewPath, “r” )
if fh then
…
Am I missing something, or is this a bug that the ScrollView mask file can’t be in the DocumentsDirectory?
-Tom
[import]uid: 100708 topic_id: 31612 reply_id: 331612[/import]