Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

EdwardKing

Members
  • Posts

    5
  • Joined

  • Last visited

EdwardKing's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have two picture,and put them into spirte,I want to realize two picture switch effect. I don't know if tweening support it. Example code is better. Thanks in advance
  2. Thanks for carl,I modify my code,like follows: var tl:TimelineMax=new TimelineMax({repeat:-1,yoyo:true,repeatDelay:2}); var stf1:SplitTextField = new SplitTextField(myTextField1); tl.appendMultiple(TweenMax.allFrom(stf1.textFields, 1, {y:"-100", autoAlpha:0, ease:Elastic.easeOut}, 0.05)); stf2= new SplitTextField(myTextField2); tl.appendMultiple(TweenMax.allFrom(stf2.textFields, 1, {y:"-100", autoAlpha:0, ease:Elastic.easeOut}, 0.05)); addChild(stf1); addChild(stf2); I find the result isn't what I wanted! It display myTextField1,but before myTextField1 disappear,and it begin display myTextField2!!! I hope after myTextField1 disappear,and then myTextField1 appear.How to correct above code?
  3. I have two text,such as myTextField1 and myTextField2, I want to display the two text display,for example: First display myTextField1 and myTextField1 disappear,second display myTextField2 and myTextField2 disappear. Then display myTextField1 and myTextField1 disappear,then display myTextField2 and myTextField2 disappear. and so on,not stop. So I write following code: var tl:TimelineMax=new TimelineMax({repeat:-1,yoyo:true,repeatDelay:2}); var stf1:SplitTextField = new SplitTextField(myTextField1); tl.appendMultiple(TweenMax.allFrom(stf1.textFields, 1, {y:"-100", autoAlpha:0, ease:Elastic.easeOut}, 0.05)); stf2= new SplitTextField(myTextField2); tl.appendMultiple(TweenMax.allFrom(stf2.textFields, 1, {y:"-100", autoAlpha:0, ease:Elastic.easeOut}, 0.05)); addChild(stf1); addChild(stf2); I find the result isn't what I wanted! It display myTextField1,but when myTextField1 is still on,and show myTextField2!!! I hope after myTextField1 disappear,and then myTextField1 appear.How to correct above code? Thanks
  4. I have download greensock-as3.zip,and put folder com into the same folder in my as files,then I write following code in my as file: import com.greensock.text.SplitTextField; But when I compile my as file,it raise compile errors: c:\test.as(2): col: 2 error: can't find definition com.greensock.text:SplitTextField import com.greensock.text.SplitTextField; ^ I look the com folder,it don't contains text folder,but I look api of greensock,I can find SpliteTextField in package com.greensock.text of this document. Need I download other file? Where can I get it? Thanks
  5. I have a word,its content is follows: var txt:String="abcdefg"; I want to show word from the first letter to the last letter,the word effect is one by one. For example,at the beginning I only show the first letter 'a',the 'a' size is big,such as 30,and then the letter 'a' size minish gradually to 20.Then show the second letter 'b',first,the letter 'b' size is big also,such as 30,and then the letter 'b' size minish gradually to 20,and the letter 'b' is behind the letter 'a',and so on with letter 'c'. When all letters show,the effect stops. I am puzzling with it.I don't know how to realize above function. Anyone could tell me how to do it,an example code is better. Thanks in advance!
×