동적라인 제어


침착하게 생각했으면,. 금방 해결 했을것이었다,
어려운 문제는 전혀 아니었다

var canvas:Sprite = new Sprite();
addChild( canvas );
var g:Graphics = canvas.graphics;

function drawLine():void
{
     g.clear();
     g.lineStyle(1, 0x000000, 1 );
     g.moveTo( a.x, a.y );
     g.lineTo( b.x, b.y );
}

b.addEventListener( MouseEvent.MOUSE_DOWN, onDown );
b.addEventListener( MouseEvent.MOUSE_UP, onUp );

function onDown( e:MouseEvent ):void
{
     b.startDrag( false );
     b.addEventListener( Event.ENTER_FRAME, onEnter );
}

function onEnter( e:Event ):void
{
     drawLine();
}

function onUp( e:MouseEvent ):void
{
     b.stopDrag();
     b.removeEventListener( Event.ENTER_FRAME, onEnter );
}

drawLine();




  • 지나가는 나그네 2009/11/19 16:27 # 삭제 답글

    a와 b에 대한 선언이나 설명이 없네요;;
  • superSC 2009/11/23 09:09 # 삭제 답글

    네.. a 와 b는 Sprite 쯤으로 생각하셔도 될듯 합니다. 위치를 갖는 객체겠죠, b는 인터랙티브 오브젝트 이겠고요.. ^^;
  •  
    Yamecoder 야매코더_
    AS3 2010. 12. 4. 02:37

    댓글을 달아 주세요

    1. 이전 댓글 더보기
    2. BlogIcon Guild Wars 2 Gold 2013.01.08 15:49  수정/삭제  댓글쓰기

        "Quickly! Pull the hose pipe back at once The fish eat your bait!the reason is Kaiser had become back all of the sudden and the individual shouted at my hand,but at that a period of time I do nothing more than wanted for more information regarding go and buy Guild Wars 2 gold.


        "What?" I was scared because that person yelled suddenly; I has been doing not at all are aware of that how to deal with lug back going to be the garden hose When I understood what happened, I i searched at going to be the fishing nightclub,but take heart I was able to find that going to be the fish had run away, there was significant a little bait everywhere in the going to be the clubhouse, http://www.ugw2gold.net Guild Wars 2 Gold.


        "It is that a multi function pity!associated with Kaiser said and shook his head.


        "I do nothing more than you sense my own personal hand a multi function little numbing as about whether or not going to be the fishing bartender was shaking, was that up a feeling I asked Kaiser timidly.


        "You are stupid! Of course element is the fact that I are aware of that going to be the fish ate your bait,but take heart you dont are aware of that Kaiser was speechless.


        "Well, http://www.ugw2gold.net buy Guild Wars 2 Gold,a period is the fact that in an airplane,exactly how much fish need to bother about all your family members catch?the reason is Tenor asked our way of life and checked all of our have been seen It made an appearance that I may or may not not consider getting much in the way Guild Wars 2 expensive jewelry.

    3. BlogIcon oakley sunglasses outlet 2013.03.19 18:38  수정/삭제  댓글쓰기

      매우 지원, 아주 좋아.

    4. BlogIcon nike lebron 9 2013.06.07 22:20  수정/삭제  댓글쓰기

      Tao.

      Now you know. Then he raised his hand and scratched his head, and said: For ah, hell, http://lebron10shoes.zohosites.com/ lebron 10, not anti Zhao Ling SG decomposition, that God is dead Africans ...... how to do?

      Old man stared, again after a long while electric fireball lit Qingchi with: You dead, gave you confused! If God Chau people, how would the souls of the sea of ​​blood? Here is responsible for digestion and deep spirit world Ling Temple, http://lebron8shoes.zohosites.com/ lebron 8, God Chau go ghost world huh.

      This dead sea of ​​blood, is one of Kokonoe prison ah? Sun Weiming asked.

      Now you know, the spirit world fifty Ming Ling Temple into A, B, C, D, http://timminsymca.org/nikelebronjames.html nike lebron 9, into five, each with a deep spiritual hell, five have three next layer of hell, and finally concentrated to the final layer , called 'one thousand thorns cannibal prison'. old said.

      So, that big red worms to eat, would go to the next level of hell Hello? Sun Weiming asked.

      Now you know, you see red worms called 'dead animal', it spiritual body after eating, it will bring spirit to the next level, where the next layer of what ah ...... I think want. old said.

      Sun Weiming shouted: Do not you try, http://newmanknights.com.au/nikeshox.html nike australia, the old man.

      Old he shouted: After you a shout, I think of it, called 'strange head rooted prison'!

      Sun Weiming dumbfounded, he Hao get me right, how the hell has that great name, but rather is a B & B farm.

      He looked at me a dismissive look, said: Believe it or not, anyway you want to leave here, http://lebronxshoes.zohosites.com/ lebron x, they have to enter into that dead beast's belly and let it take you to strange head rooted in prison, and then pull you out ... ...

      Sun Weiming Before he finished, vomit a cry, shouted: That I do not become a stool?

      Now you know, you know what those red juice you? The old man asked.

      See the Sun Weiming did not answer him, shouting: The stupid Oh, http://smart-cycling.org/static/nikelebronjames.html Lebron James Shoes, that souls digestive beast, undead sea of ​​hell purpose of this layer is to be digested into a massive spiritual body, and then through the mountain of dead animal spirits juice, so strange head rooted absorption, okay? your body against Zhao Ling SG, http://lebron9shoes.zohosites.com/ lebron 9, it can prevent the blood off spirits, but can not resist the body's powerful digestive undead beast ...... tell the truth, I have unclear. old said.

      Sun Weiming sighed and said: Well, anyway, now nothing at all, think about this if they can destroy the soul, so that red worms devoured him, once and for all, is a good thing.

      Then think of the devil said, some people would rather not do, http://newmanknights.com.au/nikeshox.html nike shox, as long as the energy of pure play, then thought the devil was joking, did not think much had happened, but they think that's good.

      Boy, you want to destroy the spirit, it really is not easy, to be robbed if suddenly ruined by this mess how close? Old road.

      Well, there are so many senior expert in, why must I? Sun Weiming Road.

      Boy, I'm good too, I can look into your body. Old said.

      Alas, this people are really strange, to see what the blanket into the Sun Weiming body, ranging from old Sun Weiming answer, a rosary fly into his body, and suddenly he shouted: You are a dragon! Not surprising enclosing another soul , or chaotic body! 's very strange!

      This Sun Weiming concerned, is not news, and for Sun Weiming laughing, learning his mantra: Now you just
      Related articles:


      http://www.scripter.co.kr/221 http://www.scripter.co.kr/221

      http://skenny.info/archives/175/ http://skenny.info/archives/175/

      http://www.scripter.co.kr/201 http://www.scripter.co.kr/201

    5. BlogIcon http://www.sishichayuan.com/bbs/forum.php?mod=viewthread&tid=416 2013.06.08 18:43  수정/삭제  댓글쓰기

      좋은
      How To Make Build it yourself Gift FavorsThese gorgeous purses are perfect for Bridal Bathtub, Baby Shower or even Wedding Gift Favors. It is rather easy to create. Step by step instructions can be obtained below. In addition, template is accessible.


      Cut Several pieces of cardstocks for the panel of one's box (I oftentimes tried Cricut Accent Important Cartridge , http://www.sham-room.com/vb/showthread.php?p=133173#post133173 http://www.sham-room.com/vb/showthread.php?p=133173#post133173, lower at Several Accent48s)

      Cut Some x Five? of report, score with 2? in both sides in the longer aspect. Score One of both sides of the quicker side. Observe template number below.

      Layer pre-cut purse template with Versamark Printer ink Pad.

      Include with clear embossing powder.

      While using the Bone Directory, run the point through the embossing powder, making a number of irregular outlines imitating the crocodile skin outlines. Just make the idea random as well as wavy for additional natural appears.

      Apply heat to the embossing powdered ingredients using a heat gun. Be sure entire surface is lustrous. Do not burn up.

      Assemble the lamp and outside panel. Adhere bits using desperate strips glue tape.

      Embellish and attached a disgusting grain lace for the handle.

      If you do not hold the tools yet still interested to create this venture, please message me. I have the total kit as well as detailed tutorials available for purchase. All you want do would be to assemble your kit and luxuriate in your cute purse.

      Learning to make a Favor Box - Video

      Learn how to come up with a favor field in this easy to follow video.

      Fun Shape 3 dimensional Gift Package Craft Box Templates.

      Modern Diy Present And Art Shape Packing containers For All Occasions.

      Best Marriage Shower Games Gift Ideas

      If you are going to chuck a wedding shower for somebody near as well as dear to your heart...

      This may be the most important E-book you are going to ever examine!

      Host The Best Bridal Bathe

      That Will Joy Every Invitee!

      The Scrap booking Academy : Scrapbook Video Training.

      Study the Art Of Scrapbooking Using Video On the internet Training. Find Scrapbooking Ideas To Help You Save Money That will create Amazing Scrapbooking design Layouts. Provide The Fun Into Scrapbooking!

      a%3A3%3A%7Bs%3A7%3A%22options%22%3Bs%3A167%3A%221a57cea209955e707da90c8e6c312cca%2CYES%2C35de33e1407b21ec09b81cf9241a97e9%2CMAYBE%2C235228a0fae8be9f7accb0ba99100bc3%2CNOT&%2344%3B+AT+ALL%2C125a50fdae9b496dcbdb6c8ee22399d5%2CSEMI-DIY+%22%3Bs%3A6%3A%22period%22%3Bs%3A1%3A%220%22%3Bs%3A8%3A%22question%22%3Bs%3A25%3A%22Are+you+a+DIY+party+host?%22%3B%7D

      Launching poll. Make sure you Wait...

      Had been this contact helpful? Everything else you would like to understand? Or Do-it-yourself paper projects to share? Please share your thoughts here

      Add Remark

      JinkysCrafts is known for Pop-Up Animations Papercrafts. Very popular regarding Custom Booming Box Invitations designed for Mis 15/ Quincea?period, Sweet Sixteen, Bat Mitzvah...

      more

    6. BlogIcon louis vuitton wallet 2013.10.17 12:38  수정/삭제  댓글쓰기

      표한皆さん、しゃっくりってわずらわしいデスよね。



      ある時急に襲ってきて、止めようとしても止まらない、

      そう思ったら、忘れた頃に止まってる。




      そんな わずらわしい しゃっくりを止める方法を皆さんにお教えしたいと思います。




      しゃっくりとは


      しゃっくりとは横隔膜、又は呼吸補助筋が痙攣し

      声帯が閉じてあの独特の「ヒック」という音が出るものです,ヴィトン新作バッグ。

      大体は数分で治まるものですが、治療が必要なものもあります。






      止める方法


      さあ、ここからが本題です。

      親戚の耳鼻科の先生に聞いた、しゃっくりを止める方法を皆さんにお教えします,ルイヴィトン新作。







      ①10秒かけて限界まで息を吸う。

      この時に吸うのが浅いと×







      일일

    7. BlogIcon sac à main paul smith 2013.10.30 12:45  수정/삭제  댓글쓰기

      이선1: what the whole dead you, my lover.

      2: the cashier said: didn't change, you find two plastic bags!

      3: my advantage is: I'm handsome; but my weakness is: I'm handsome not obvious.

      4: ugg pas cher what is happiness? Happiness is the cat ate the fish, dog meat, Ultraman monster!

      5: others installed Office, I had to install experience.

      6: veste belstaff I am not a fat man.

      7:일는

    8. BlogIcon 匿名 2013.11.04 00:33  수정/삭제  댓글쓰기

      시전splendidi gioielli vintage richiamo affascinante estate

      Allora perché tante persone si allontanano dall'amore. La collezione era ultra femini. Ma si sta andando a generare più calore e il dissipatore standard installati può ottenere troppo caldo per il comfort. Uggs sulle vendite hanno guadagnato una reputazione fantastica per tutto il globo. Il loro attributo di guardare impressionante con più들다

    9. BlogIcon 西西游戏网 2014.01.04 20:01  수정/삭제  댓글쓰기

      이에在帝国来了中各位玩家可以通过鼠标结合键盘进行快速操作,西西游戏网。那么它们分别都有什么指定的操作呢?跟随小编一起来学学吧!

      鼠标操作

      单选士兵:左键单击要选择的士兵。

      多选士兵:按住鼠标左键拖出方框选中多个士兵

      生产士兵:选择指定建筑后,xixi,在生产列表中左键单击生产兵种的图标。

      控制兵种移动、采集和攻击:选择兵种后右键单击指定目标,外挂。

      设定建筑集结点:选择建筑后右键单击指定位置。

      键盘操作

      移动并攻击:A

      进入防御模式:H

      返回城镇中心:空格

      快速训练兵种:选择建筑后使用A、S、D快速训练,具体兵种根据排列顺序而定。

      快捷编队:Shift+数字键

      杀死当前所选兵种:Delete

      网网页游戏攻略,为您提供最新最全的网页游戏资讯,更多页游攻略,请关注网攻略频道。로로

    10. BlogIcon 匿名 2014.08.19 14:29  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    11. BlogIcon 匿名 2014.08.25 12:28  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    12. BlogIcon oakley sunglasses wholesale 2014.08.31 03:43  수정/삭제  댓글쓰기

      메지The planet in addition to Snail mail

      $140 with regard to lunch time for just two together with wine beverages, taxation's in addition to recommendation

      Essentially have been to put my own initial consuming runs into inside Croatia dealing with my own previously sexual intercourse runs into, it may be a significant easy theorize the key reason why All of us started to be the actual coffee sho지료

    13. BlogIcon 匿名 2014.09.11 01:22  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    14. BlogIcon moncler sale online 2014.09.18 00:27  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    15. BlogIcon 匿名 2014.09.28 14:42  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    16. 匿名 2014.11.10 17:32  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    17. BlogIcon 深圳横岗眼镜批发 2014.11.12 00:52  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    18. BlogIcon moncler grenoble prix 2014.11.12 11:46  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    19. 匿名 2014.12.03 05:44  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    20. BlogIcon cheap moncler vest 2014.12.03 10:46  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    21. 匿名 2015.01.15 12:22  수정/삭제  댓글쓰기

      이용약관위배로 관리자 삭제된 댓글입니다.

    Powerd by Tistory, designed by criuce
    rss