App Programming‎ > ‎

SimpleApps - Greeting Cards

Simple Apps - greeting card style
        for more info check out bit.ly/erhslc bit.ly/erhsapps 

    Game Resources Mostly Free and for Commercial Use:
           SoundEffects - site1 - site2 - site3 
           Do It Yourself Free Software - Gimp - Graphics/Drawing - Blender - 3D Art - Audacity - Sound Effects and Recording

Graphics, Photos 
    - Free Photos



1. Greeting Cards

Happy Mothers Day - make a "Happy Mother's Day" greeting card program (or Happy Halloween, Thanksgiving, Merry Christmas, Happy New Year, Happy Birthday cards... depending on the season)
 (see file "HappyMDay" at bottom of page)

             


1. Start with a new 'Mainstack"
2. On the first card add the following:
    import a photo for the background
    add a label field - for the greeting
    add a button for the next page
    
    Edit the label field - in the "contents" write your greeting. change the properties to make it look like you want it to.
    On the button, put the following code:

on mouseUp
   visual  effect wipe up
   go to next   
end mouseUp

 to go to the next card (with visual effects)

 3. Add a new card
    Add a background picture, a label field (for the message) and maybe a button to go back to the first page.
    on the button put:

on mouseUp
   visual  effect wipe up
   go to prev   
end mouseUp

 to go to the previous card (with visual effects)



Another way is to name the cards and use the names in the go to's. If you name the cards "home" and "card 2", you could do it this way:

    On the first card ("Home")  you would put the code:


on mouseUp
   visual  effect wipe up
   go to card "card 2"   
end mouseUp

 to go to the next card  which you named "card 2" (with visual effects)


      On that card, to go back to the "home" card, the code would be

on mouseUp
   visual  effect wipe up
   go to card "Home"   
end mouseUp

 to go back to the "Home" card


  How-To:

    To add a new card: 
        On the top menubar, click on "Object", "Add new card"

    To switch between cards:
        Open the "Project Browser"  - on the menubar: click on "Tools", "Project Browser"
        Expand your project by clicking on the little triangles
        Click on either card to go to it.



   Visual Effects:

  These are some of the effects you can use:
plain
checkerboard - Desktop / Web
venetian blinds - Desktop / Web
iris close | iris open - Desktop / Web
zoom close | zoom in | zoom open | zoom out - Desktop / Web
wipe up | wipe down | wipe right | wipe left - Desktop / Web
dissolve
push up | push down | push right | push left
reveal up | reveal down | reveal right | reveal left - Desktop / Web / iOS / Android
shrink to bottom | shrink to center | shrink to top - Desktop / Web
stretch from bottom | stretch from center | stretch from top - Desktop / Web
scroll up | scroll left | scroll down | scroll right - iOS / Android
curl up | curl down - iOS
flip left | flip right - iOS. The background behind the flip is taken from the background color of the current stack - i.e. the card is cut out and flipped over the stack.
  
    Click on the Dictionary icon, do a search on "visual" and see all the other neat stuff you can do...


note: If you are going to put this on a Android phone, you need to add code so it will auto-size to the size of the phone's screen.

Add the following code to the "Stack" script:

on preOpenStack 
   if the environment is "mobile" then 
      set the fullscreenmode of me to "exactFit" 
   end if 
end preOpenStack

That is it. Generate the executable for the platform you want (PC/Mac/Linux/Android) and email it to your mother

2. Action Cards
Add actions, moving objects, animated Gifs.

Go Prom - Invite someone to your prom in an app (see file "Go Prom" at bottom of page)
This has an animated Gif of Snoop Dog dancing and it moves across the screen.

(If you press the "Yes" button, he dances his way across the screen)

                   


Look at the code to see how it was done...


Apps by Students - created for smartphones, 
    then emailed to their mothers to put on their phones
   
             
 


               


              


                                                       
                                




ċ
GoProm.livecode
(2278k)
cyril.pruszko@pgcps.org,
May 8, 2015, 8:42 AM
ċ
HappyMDay.livecode
(616k)
cyril.pruszko@pgcps.org,
May 8, 2015, 8:42 AM
Comments