Hello
I am from Russia. English is none. So I use Google translator. Sorry for bad language.
In the AutoPlay Media Studio 7.5 theme is impossible to create. I ask the moderators to move my post where necessary.
Description of the problem.
The operator is used in two places:
event OnShow
code
event OnCliCk buttonCode:s_pic = "AutoPlay\\Images\\banner.jpg"; picatr = Image.GetFileInfo(s_pic); Image.SetSize("Image1", picatr.Width, picatr.Heigth); Image.Load("Image1", s_pic); Image.SetVisible("Image1", true);
code
Function Image.GetFileInfo () gives null values.Code:... pic = File.Find("AutoPlay\\Images\\kuh", "*.jpg", false, false, nil); --Written to the table all the files in the folder count = Table.Count(pic); --Get the number i = 1; --We get up to the first position. --These values will be needed when you click another button later. picatr = Image.GetFileInfo(pic[i]); --Get the attributes of the current image. Image.SetSize("Image1", picatr.Width, picatr.Heigth); --give the size of the object Image.Load("Image1", pic[i]); --Load the current image into an object Image.SetVisible("Image1", true);
He did try and see. Found that the variable gets picatr type Table. But NO values.
During the application object Image1 not visible. Because it has no dimensions.
What have I done wrong? I would be glad of any help.




Reply With Quote