楼主: Asen
打印 上一主题 下一主题

[Anark] Focusable (Interactive Behavior)

[复制链接]
Asen    

867

主题

0

听众

1万

积分

外协人员

Rank: 7Rank: 7Rank: 7

纳金币
17488
精华
1
跳转到指定楼层
楼主
发表于 2011-10-15 10:51:00 |只看该作者 |倒序浏览






               Focusable (Interactive Behavior)
              









           Summary
         

           Causes the parent object to be 'focusable', sending events as it gains and loses focus.
         





               Category
              


              Latest Behaviors
            




               Author
              


              Gavin Kistner
            




               Difficulty
              


              (Reference)
            




               Time to Complete
              


              5 Minutes
            








           Downloads
         


            Click Here
           
           to download the associated files.
         


            (This document covers version 1.1.5 of the 'Focusable' behavior, current as of 2005-Apr-08)
           

            Description
           


             The parent of this object will have
            
              .focus()
            
             and
            
              .blur()
            
             methods exposed in script, and will itself fire an
            
              onFocus
            
             event when clicked on (or explicitly focused through script or action), and will fire an
            
              onBlur
            
             event when another object gets focus.
            

             For convenience in the Studio environment, this behavior also provides a
            
              Focus Parent
            
             action and a
            
              Blur Parent
            
             action, as well as catching the
            
              onFocus
            
             and
            
              onBlur
            
             events from the parent and passing them along.
            

             When using script to subscribe to the
            
              onFocus
            
             or
            
              onBlur
            
             events of the action, the .object property of the event object will point to the parent object of this behavior.
            

             The core of this behavior is used in the Arrow Nudge and Editable Text behaviors, to give focus to only one element at a time for user input.
            


            Basic Properties
           



              Use Selected Color?
            

              Change the object to another color when focused?
            

              Selected Color
            

              Color to use for the object when focused.
            



            Actions
           



              Focus Parent
            

              Move focus to the parent element.
            

              Blur Parent
            

              Remove focus from the parent element.
            



            Events
           



              onFocus
            

              Fires when the parent element receives focus.
            

              onBlur
            

              Fires when the parent element loses focus.
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            





分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

沙发
发表于 2012-2-1 23:28:27 |只看该作者
先顶上去,偶要高亮加精鸟!
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

板凳
发表于 2012-3-4 23:22:56 |只看该作者
路过……
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

地板
发表于 2012-5-10 23:18:35 |只看该作者
赞一个,哈哈
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

5#
发表于 2012-5-14 23:21:28 |只看该作者
长了不少见识
回复

使用道具 举报

1023

主题

3

听众

359

积分

设计实习生

Rank: 2

纳金币
335582
精华
0

最佳新人

6#
发表于 2012-8-22 23:48:53 |只看该作者
既来之,则看之!
回复

使用道具 举报

   

671

主题

1

听众

3247

积分

中级设计师

Rank: 5Rank: 5

纳金币
324742
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

7#
发表于 2012-10-8 23:25:57 |只看该作者
呵呵,真得不错哦!!
回复

使用道具 举报

5969

主题

1

听众

39万

积分

首席设计师

Rank: 8Rank: 8

纳金币
-1
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

8#
发表于 2012-12-15 23:26:35 |只看该作者
加精、加亮滴铁子,尤其要多丁页丁页
回复

使用道具 举报

462

主题

1

听众

31万

积分

首席设计师

Rank: 8Rank: 8

纳金币
2
精华
0

最佳新人 活跃会员 热心会员 灌水之王 突出贡献

9#
发表于 2013-2-26 23:28:48 |只看该作者
好可爱的字,学习了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

手机版|纳金网 ( 闽ICP备2021016425号-2/3

GMT+8, 2025-7-29 21:58 , Processed in 0.164129 second(s), 27 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部