Programming Your App’s Memory 靜宜大學資管系 楊子青

Slides:



Advertisements
Similar presentations
广州市教育局教学研究室英语科 Module 1 Unit 2 Reading STANDARD ENGLISH AND DIALECTS.
Advertisements

高考短文改错专题 张柱平. 高考短文改错专题 一. 对短文改错的要求 高考短文改错的目的在于测试考生判断发现, 纠正语篇中 语言使用错误的能力, 以及考察考生在语篇中综合运用英 语知识的能力. 二. 高考短文改错的命题特点 高考短文改错题的形式有说明文. 短文故事. 书信等, 具有很 强的实用性.
碧桂园集团开启全球人才招募之旅. 这里是社会精英云集的公司 这里是人才施展才华的好地方 这里是学习进步的好学校 这里是和谐的大家庭 这里是诚实守信、合法合规经营的公司 这里是讲道理、勇于自我修正的公司 这里是公平公正、论功行赏的公司 这里是欣欣向荣、不断总结好经验并付诸实践的公司 这里是为全世界建造又好又便宜的房子的公司.
《互联网运营管理》系列课程 觉浅网 荣誉出品
Android App簡介及 App Inventor 2體驗 靜宜大學資管系 楊子青
2014 年上学期 湖南长郡卫星远程学校 制作 13 Getting news from the Internet.
-CHINESE TIME (中文时间): Free Response idea: 你周末做了什么?
神愛世人, 甚至將他的獨生子賜給他們, 叫一切信他的, 不至滅亡, 反得永生。 約翰3:16.
Business English Reading
简化 IT,促进创新 — 为现代企业带来新生机
3.2 打地鼠游戏 学习目标: 随机图片的显示 时间控件的用法 函数的定义使用方法 随机数的产生使用方法 数学公式的使用方法 任务目标:
完形填空技巧 CET4.
How can we become good leamers
How can we be a member of the Society? You should finish the following tasks if you want to be a member of the Birdwatching Society.
59 中 张丽娟 学习目标: 1. 识记并理解运用 6 个单词和 5 个短语。 (source, accessible, network, access, via, create come up with, from the moment on, consist of, go down , at the.
项目六 职业生涯规划的方法与步骤.
Module 7 Computers 第2课时.
Reading Do you remember what you were doing? 学习目标 1、了解几个重要历史事件。
Do you want to watch a game show?
Unit 3 Families Celebrate Together Lesson 22 Presents from Canada!
Module 5 Shopping 第2课时.
人际交往:科学与艺术.
MIT App Inventor簡介及 「Hello World」程式初體驗 靜宜大學資管系 楊子青
樹狀結構 陳怡芬 2018/11/16 北一女中資訊專題研究.
Working with Databases (II) 靜宜大學資管系 楊子青
Creating Animated Apps (I) 靜宜大學資管系 楊子青
Working with Databases (II) 靜宜大學資管系 楊子青
App Inventor 2體驗 靜宜大學資管系 楊子青
Decision Support System (靜宜資管楊子青)
第4章(2) 空间数据库 —关系数据库 北京建筑工程学院 王文宇.
Working with Databases (II) 靜宜大學資管系 楊子青
The expression and applications of topology on spatial data
但是如果你把它发给最少两个朋友。。。你将会有3年的好运气!!!
LCCC 2018 Spring Festival April 28, 2018.
Android App簡介及 App Inventor 2體驗 靜宜大學資管系 楊子青
Lesson 44:Popular Sayings
App Inventor 2體驗 靜宜大學資管系 楊子青
PubMed整合显示图书馆电子资源 医科院图书馆电子资源培训讲座.
Decision Support System (靜宜資管楊子青)
Microsoft SQL Server 2008 報表服務_設計
App Inventor 2初體驗 靜宜大學資管系 楊子青
資料庫 靜宜大學資管系 楊子青.
The human brain … 人類的大腦 … tricks us whenever it can! 随時都在欺騙我們!
Good Karma 善因緣 This is a nice reading, but short. Enjoy! This is what The Dalai Lama has to say for All it takes is a few seconds to read and think.
Good Karma 善業 原稿:牛Sir 配楽:懺悔經 捕頭恭製 按鍵換頁.
突出语篇语境,夯实词汇语法 一模试卷单选完形分析 及相应的二轮复习对策 永嘉罗浮中学 周晓媚.
Unit 5 First aid Warming up 《和你一样》 中国红十字会宣传曲 高二年级 缪娜.
Philosophy of Life.
Good Karma 善因緣 This is a nice reading, but short. Enjoy! This is what The Dalai Lama has to say for All it takes is a few seconds to read and think.
HelloPurr_Extend 靜宜大學資管系 楊子青
App Inventor 2體驗 靜宜大學資管系 楊子青
Repeating Blocks: Iteration 靜宜大學資管系 楊子青
The human brain … 人類的大腦 … tricks us whenever it can! 随時都在欺騙我們!
TinyDB資料庫 靜宜大學資管系 楊子青.
變數與選擇判斷 靜宜大學資管系 楊子青.
Good Karma 善因緣 This is a nice reading, but short. Enjoy! This is what The Dalai Lama has to say for All it takes is a few seconds to read and think.
反覆迴圈、陣列、副程式 靜宜大學資管系 楊子青
反覆迴圈、陣列、副程式 靜宜大學資管系 楊子青
Prepare for Cozy & Lazy HOME Life
打Mole不打Ladybug (IV): 讓使用者控制Ladybug移動 靜宜大學資管系 楊子青
A Presentation By: Mike Sharobim Pictures By: Unknown source
怎樣把同一評估 給與在不同班級的學生 How to administer the Same assessment to students from Different classes and groups.
App Inventor 2基礎概念 靜宜大學資管系 楊子青
Programming Your App to Make Decisions: Conditional Blocks 靜宜大學資管系 楊子青
NFC (近場通訊, Near Field Communication) 靜宜大學資管系 楊子青
Sun-Star第六届全国青少年英语口语大赛 全国总决赛 2015年2月 北京
A Presentation By: Mike Sharobim Pictures By: Unknown source
Programming Your App to Make Decisions: Conditional Blocks 靜宜大學資管系 楊子青
教會 關懹事工 1.
When using opening and closing presentation slides, use the masterbrand logo at the correct size and in the right position. This slide meets both needs.
Presentation transcript:

Programming Your App’s Memory 靜宜大學資管系 楊子青

Memory Slots Just as people need to remember things, so do apps. When someone tells you the phone number of a pizza place for a onetime immediate call, your brain stores it in a memory slot. In this chapter, you’ll learn how to set up an app’s memory, how to store information in it, and how to retrieve that information at a later time.

Named Memory Slots An app’s memory consists of a set of named memory slots. Some of these memory slots are created when you drag a component into your app; these slots are called properties. You can also define named memory slots that are not associated with a particular component; these are called variables.

1. Properties Components (Button, TextBox, and Canvas…) are part of the user interface. Each component is completely defined by a set of properties. The values stored in the memory slots of each property determine how the component appears.

Modifying the memory slots in the property form to change the app’s appearance

2. Variables Defining Variables Setting and getting a Variable Setting a Variable to an Expression Incrementing a Variable Building Complex Expressions Displaying Variables

2.1 Defining Variables You define a variable when your app needs to remember something that is not being stored within a component property. For example, a game app might need to remember what level the user has reached. If the level number is not something the user will see, you’d define a variable to store it.

Defining Variables 1. 拖曳出 initialize global name to

Defining Variables 2. 設定變數名稱 3. 設定初值

2.2 Setting and getting a Variable 設定(變更)變數值 選擇變數名稱

Setting and getting a Variable 取得變數值 選擇變數名稱

2.3 Setting a Variable to an Expression Incrementing a Variable Building Complex Expressions

Math drawer In the Math drawer, App Inventor provides a wide range of mathematical functions.

2.4 Displaying Variables Changing a variable has no direct effect on the app’s appearance. When you modify a component property, the user interface is directly affected. This is not true for variables. This is one of the advantages of storing data in a variable as opposed to a component property it allows you to show just the data you want when you want to show it. It also allows you to separate the computational part of your app from the user interface, making it easier to change that user interface later.

HelloPurr_Extend

1. 複製專案進行修改 開啟HelloPurr專案,Save as為HelloPurr_Extend

Media部分,以Upload File加入獅子圖片(lion.jpg)與獅吼聲音(roar.mp3)

回顧:LabelName的Text屬性,決定顯示文字內容

回顧:Button1的Image屬性,決定該按鈕的長相(顯示哪張圖片)

回顧:Sound1的Source屬性,決定 播放哪個聲音檔

如何動態調整顯示文字? 圖片?聲音?

執行結果: 初次播放roar.mp3發生error

Google找解決方法

Screen1.Initialize

鱷魚拔牙整人玩具 http://www.i-gamer.net/play/2978.html

2. 按圖片,第6次出現獅子

3. 隨機第2-6次出現獅子