纳金网

标题: Set Property from Text (Text Behavior) [打印本页]

作者: Asen    时间: 2011-10-15 10:59
标题: Set Property from Text (Text Behavior)






               Set Property from Text (Text Behavior)
              









           Summary
         

           Set a property on the parent object to be the text contained in another text object.
         





               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 0.8 of the 'Set Property from Text' behavior, current as of 2005-Feb-11)
           

            Description
           


             This behavior changes a property on the parent object (specified with the
            
              Property Name
            
             property) to be the same as the text string of a Text object (chosen with the
            
              Text Object
            
             property).
            

             If
            
              As Number?
            
             is checked, the value of the text object will be turned into a number before setting the property to that value. If the string isn’t a number (such as “z”, “1a”, or even “1,000”), then the value will not be changed.
            

             If
            
              While Editing?
            
             is checked, this behavior will continuously update the property if the user is editing the text, using the Editable Text behavior. Otherwise, the property will only be updated when the user finishes editing the text.
            

             A simple demonstration of this behavior in action can be seen on the example for the Progress Bar behavior, where this behavior is used to allow the user to change the
            
              URL
            
             that will be loaded by the Preload Module behavior.
            


            Basic Properties
           



              Text Object
            

              The Text object to use the text of.
            

              Property Name
            

              The script name of the property on the parent to set.
            



            Advanced Properties
           



              As Number?
            

              Treat the text string as a number?
            

              While Editing?
            

              Update the value continuously while the text is being edited?
            




作者: 晃晃    时间: 2012-1-25 23:29
春节即将来到,我用祝福捻制成的绒线,烛光下为您织起一件红色的毛衣:前身是平安,后身是幸福,吉祥是厚厚的肩,如意戴在袖子里,领子蕴藏着体贴,口袋把快乐盛满,穿在身上让暖和包裹着您,让我的心陪伴您度过新年。

作者: tc    时间: 2012-2-6 23:28
真不错,全存下来了.

作者: C.R.CAN    时间: 2012-2-6 23:36
很经典,很实用,学习了!

作者: tc    时间: 2012-3-26 23:34
既来之,则看之!

作者: 晃晃    时间: 2012-3-29 23:30
发了那么多,我都不知道该用哪个给你回帖了,呵呵

作者: 晃晃    时间: 2012-7-18 23:19
百度的叫度娘,网易的叫易娘,新浪内部还在为是叫新娘还是浪娘而争论不休!……不管你们是企鹅的额娘,豆瓣的伴娘,还是华为的伪娘,都要记得,淘宝才是你们的亲娘啊!亲!!

作者: 奇    时间: 2012-7-21 23:28
都闪开,介个帖子,偶来顶

作者: 奇    时间: 2012-10-20 23:28
不错哦,顶一下......

作者: 菜刀吻电线    时间: 2013-2-20 23:19
加精、加亮滴铁子,尤其要多丁页丁页

作者: C.R.CAN    时间: 2013-3-3 23:56
不错哦,谢谢楼主

作者: 晃晃    时间: 2013-3-3 23:59
非常感谢,管理员设置了需要对新回复进行审核,您的帖子通过审核后将被显示出来,现在将转入主题

作者: tc    时间: 2013-3-11 23:21
其实楼主所说的这些,俺支很少用!

作者: C.R.CAN    时间: 2013-3-14 23:26
很经典,很实用,学习了!





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5