Lesson 4 Ebook Academy

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
anmldr
Posts: 438
Joined: Tue Sep 11, 2012 11:13 pm

Lesson 4 Ebook Academy

Post by anmldr » Sat Dec 20, 2014 6:21 am

In the Lesson 4 pdf file, there is a misprint between pg3 and pg4. iphoneClearTouches is used in one place and mobileClearTouches in the other. If not developing for Android, it wouldn't matter. For the beginner, it would be unclear why one is used on one page and the other on the next page of the pdf.

With the code as is seen in the lesson for the Navigation1 button (Proceed button), the user has to click the button twice to show all 5 images. Is this what is intended for this lesson?

Shouldn't the code be: (Swap the positions of the if statements)

Code: Select all

on mouseUp
   if the visible of image "p1-inset-text-1.png" is false then
      show image "p1-inset-text-1.png" with visual effect dissolve
      show image "p1-inset-text-2.png" with visual effect dissolve
      show image "p1-inset-text-3.png" with visual effect dissolve
   end if
   
   if the visible of image "p1-inset-text-1.png" is true then
      move image "p1-inset-panel-1.png" to 842,140 in 1 second
      move image "p1-inset-panel-2.png" to 842,472 in 1 second
      
      put flushEvents("all") into tFlush
      
      if the environment is "mobile" then
         mobileClearTouches
      end if
   end if
end mouseUp

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”