First, thank you to all. This forum is a great help for me and the humor and friendliness are energizing!
After taking some time for family matters and studying some scripting I’m finally back to working on my first project, a textbook. This is a continuation of a question I posted on May 23 http://www.indigorose.com/forums/showthread.php?t=11524 My thanks to Lonedge and TJ Tigger for helping me then!
I need to be able to click buttons -- “previous” and “next” -- to change pictures on a page, one picture replacing the next, positioned in the correct location. There is paragraph object on the left side and pictures on the right side of each page. The paragraph will remain the same; only pictures will need to change, replacing one another. I have a “container” object on the right side to hold the pictures. Pages will need to load with the first picture already in place. I’m hoping that by using Image.SetSize with a “container” I’ll be able to place pictures correctly. But I’ll tackle that next, with help from y’all I’m certain!
On March 25 Jack Sparrow posted this thread to which Longedge replied: http://www.indigorose.com/forums/showthread.php?t=10887.
Longedge included an attachment called Pictures.apz. I’m plagiarizing the script from Longedge’s Pictures.apz but I can’t get it to work for me. And I’m baffled…but not buffaloed! Here is the script I’m using. Thanks Longedge! (I’m not attempting the Image.SetSize yet).
OnPreload
-- Check if this is the first time the page has loaded.
-- If it is then the variable picset will be null so we'll set it to 1
-- We don't need the 'else' really but it completes the logic.
if pic_no==nil then pic_no = 1 end
pic = "AutoPlay\\Images\\Ears\\eaalert"..pic_no..".j pg"
Image.Load("eaalert2", pic);
OnClick
-- Increment the number by 1 then check if it's more than 4
-- if so then reset it to 1
pic_no = pic_no + 1
if pic_no > 3 then pic_no = 1 end
-- Build the name of the picture to load
-- then load it.
pic = "AutoPlay\\Images\\Ears\\eaalert"..pic_no..".j pg"
Image.Load("eaalert2", pic);
Thank you and Happy Independence Day!
Craig
After taking some time for family matters and studying some scripting I’m finally back to working on my first project, a textbook. This is a continuation of a question I posted on May 23 http://www.indigorose.com/forums/showthread.php?t=11524 My thanks to Lonedge and TJ Tigger for helping me then!
I need to be able to click buttons -- “previous” and “next” -- to change pictures on a page, one picture replacing the next, positioned in the correct location. There is paragraph object on the left side and pictures on the right side of each page. The paragraph will remain the same; only pictures will need to change, replacing one another. I have a “container” object on the right side to hold the pictures. Pages will need to load with the first picture already in place. I’m hoping that by using Image.SetSize with a “container” I’ll be able to place pictures correctly. But I’ll tackle that next, with help from y’all I’m certain!
On March 25 Jack Sparrow posted this thread to which Longedge replied: http://www.indigorose.com/forums/showthread.php?t=10887.
Longedge included an attachment called Pictures.apz. I’m plagiarizing the script from Longedge’s Pictures.apz but I can’t get it to work for me. And I’m baffled…but not buffaloed! Here is the script I’m using. Thanks Longedge! (I’m not attempting the Image.SetSize yet).
OnPreload
-- Check if this is the first time the page has loaded.
-- If it is then the variable picset will be null so we'll set it to 1
-- We don't need the 'else' really but it completes the logic.
if pic_no==nil then pic_no = 1 end
pic = "AutoPlay\\Images\\Ears\\eaalert"..pic_no..".j pg"
Image.Load("eaalert2", pic);
OnClick
-- Increment the number by 1 then check if it's more than 4
-- if so then reset it to 1
pic_no = pic_no + 1
if pic_no > 3 then pic_no = 1 end
-- Build the name of the picture to load
-- then load it.
pic = "AutoPlay\\Images\\Ears\\eaalert"..pic_no..".j pg"
Image.Load("eaalert2", pic);
Thank you and Happy Independence Day!
Craig
Comment