Jump to content
Search Community

BakerShoeMaker

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by BakerShoeMaker

  1. I have a 1 text field that displays a number sentence, i.e. 1 + 3 = ?. I would like to scramble the first and second number using the  scrambleText plugin.  I can accomplish this with multiple text fields, i.e, one for "1", one for "+", one for "3" and one for "= ?".

     

    However, that approach is cumbersome so I put everything into 1 text field. Is there a way to scramble some of the text in a text field or is there another way to do this?

     

    In this approach I only get one text item to display:

     

    //I want to scramble these two variables in on textfield
    var temp_c:String = c.toString();
    var temp_d:String = d.toString();
    
    //numberSentence.text = c.toString() +" + " + d.toString() +" = ?";
    numberSentence.text = temp_c +" + " + temp_d +" = ?"; //this line displays the text.
    TweenLite.to(numberSentence, 1, {scrambleText:{ text: temp_c, chars:"09", speed:2}}); //This only displays temp_c.
    //I would like to get scramble temp_c and temp_d, where temp_c = 1 and temp_d=3, 1 + 3 = ?

     

    I'm using actionScript.

  2. There is an issue with the throwprops plugin doesn't work with Air sdk 17.0.0.172. Is anyone aware of this and if there is an upate to Greensock.

    I was having problems with the swiping motion in some places of my app where the scrolling motion would not give the appearance of movement. I have a book app where I'm adding pages dynmically and when the user swipes the pages, they appear as one continuous page. In places where it does not work correctly, the pages just appear, as if tapped and not swiped in a continous motion.

  3. Just answered my own question. I converted the number into a string. Then used the string variable in the scramble text code. Kudos for me!

     

    var progress: Number = (1/11)*100;
    var progressString:String = progress.toString();

    TweenLite.to(txt_ProgressBarResults, 1, {scrambleText:{delay: 1, text:progressString, chars:"09", speed:0.2}});
     

    • Like 2
  4. Thanks for your response. Sorry for responding so late. I didn't recieve an alert message for this post.

     

    The problem I'm having is figuring out how to add Greensock functionality (e.g. Throwpops, FrameLabel plug-in etc.) without triggering a movieclip. In my case I want the user to be able to swipe left or right to go to the next frame. It is a book project and I want the user to be able to swipe from page to page (frame to frame) I also want to add some visual interest as they swipe from frame to frame.

  5. I've been researching Greensock solutions that tween frames. I've found the FramePlugin, FrameLable, etc. However, each of those requires the trigger to be the movieclip. However, I would like for a swipe to be the trigger instead of touching or interacting with a movieclip. In the project I would like the user to be able to swipe left or right to go to the previous or next page (frame).

     

    Is this possible with Greensock?

  6. Does Green Sock have a solution for scrolling text? For example, lets say I have a text box (in a movieClip) with text that has a few paragraphs that are below the stage. I would like for the user to be able to swipe up and down to scroll through text. I checked out the blit mask solution but I'm not sure if this is the same thing I'm looking for (https://greensock.com/blitmask).

    If this is possible can some please provide a reference.

×
×
  • Create New...