A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Scroll with a Sprite

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    4

    Scroll with a Sprite

    Dear Scripters,

    I need to see the full top of the sprite content and,

    Have the scroll not go off the page when you advance it.

    This is the coolest Scroll around!!!!

    This needs the height calculation to adjust to the sprite properly


    Fred
    Attached Files Attached Files

  2. #2
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797

  3. #3
    Flashkit historian Frets's Avatar
    Join Date
    Oct 2000
    Location
    flashkit
    Posts
    8,797
    hi,

    In reponse to your pm.

    You would need to define the length of your sprite. have that inside another sprite. You wouldn't be able to get line scroll

    Setting a mask inside the sprite will define the sprites dimensions of which you could assert an if statement to the top of your action
    On frame (1)
    if (mysprite.innersprite._y=>end location)
    {
    stop();
    }
    On frame(2)
    mysprite.innersprite._y=--;
    gotoSceneAndPlay("<current scene>",1);

    However you can't define an undefined length

    Which is why I suggested Brian's tute. The text is dynamic so you can incorporate render as html formation. Meaning inline italic underline bold color fontface and size

    If you were to take that a set further you could use CreateTextfield
    Which allows a wider variety of htmltext implimentation including images and css.

    I get further into Createtextfield here-
    http://www.swishzone.com/index.php?a...ed&link_id=187

    Thomas has a sample using css and swf8 via create textfield here.
    http://www.swish-max.de/swf/en/css_swf8.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center